You need execute addition steps and add user to ACL ( access control list )
How to check XML DB installed or not
.
| SQL> select COMP_NAME, status from dba_registry; |
How to install XML DB
If above query not show XML DB component then run following sql to install XML DB
sqlplus "/ as sysdba" |
How to add user to ACL
Following example show , how add scott user to ACL
SQL> exec DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('MY.xml',
|
As per Oracle 11g Upgrade manual
| Configure Fine-Grained Access to External Network Services Oracle Database 11g Release 1 (11.1) includes fine-grained access control to the UTL_TCP, UTL_SMTP, UTL_MAIL, UTL_HTTP, or UTL_INADDR packages using Oracle XML DB. If you have applications that use one of these packages, you must install Oracle XML DB if it is not already installed. You must also configure network access control lists (ACLs) in the database before these packages can work as they did in prior releases. The following example first looks for any ACL currently assigned to host_name. If one is found, then the example grants user_name the CONNECT privilege in the ACL only if that user does not already have it. If no ACL exists for host_name, then the example creates a new ACL called ACL_name, grants the CONNECT privilege to user_name, and assigns the ACL to host_name. DECLARE |
UTL_TCP, UTL_HTTP, UTL_SMTP, UTL_MAIL, and UTL_INADDR PL/SQL Packages A new security measure is introduced in this release for the following network-related Each external host that a database user wants to connect to or to resolve the name SQL> REM Creates a new ACL and adds SCOTT the privilege SQL> REM to the ACL to make TCP connections SQL> EXECUTE DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('acl_for_oracle.xml', -> 'ACL for www.oracle.com', 'SCOTT', TRUE, 'connect') SQL> REM Adds ADAMS the privilege to the ACL to make TCP connections also SQL> EXECUTE DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE('acl_for_oracle.xml', -> 'ADAMS', TRUE, 'connect') SQL> REM Assigns the new ACL to www.oracle.com for TCP/IP port 80 (HTTP) SQL> EXECUTE DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('acl_for_oracle.xml', -> 'www.oracle.com', 80) SQL> REM Commits to make the ACL take effect SQL> COMMIT The invoker of the The current ACL assignment to external hosts and the privileges currently defined The invokers of other database components that use those PL/SQL packages to |
TAG=> Oracle 11g New Features, Oracle 11g tips and tricks, Oracle Database 11g New Features for DBA, Oracle Database 11g New Features
0 comments:
Post a Comment