The purpose of Product_user_profile table of SYSTEM is to control users from executing SQL commands. For example, if you don't want one of your users to execute DELETE command, this can be implemented in this table. Below example shows the usage of Product_User_Profile
Connect as user system
SQL> insert into sqlplus_product_profile(product, userid, attribute, char_value) values('SQL*Plus','AKS','DELETE','DISABLED');
1 row created.
SQL> commit;
Commit complete.
[oracle@linux38 ~]$ sqlplus aks
SQL*Plus: Release 11.2.0.2.0 Production on Fri May 6 10:28:17 2016
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> delete from test_table;
SP2-0544: Command "delete" disabled in Product User Profile
Connect as user system
SQL> insert into sqlplus_product_profile(product, userid, attribute, char_value) values('SQL*Plus','AKS','DELETE','DISABLED');
1 row created.
SQL> commit;
Commit complete.
[oracle@linux38 ~]$ sqlplus aks
SQL*Plus: Release 11.2.0.2.0 Production on Fri May 6 10:28:17 2016
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> delete from test_table;
SP2-0544: Command "delete" disabled in Product User Profile
Comments
Post a Comment