|
|
[ÀϹÝ] ORA-29532 xml ÆÄÀÏÇڵ鸵ÇÒ¶§ ±ÇÇÑÁÖ±â |
|
È£¼® ´Ô²²¼ ¾´ ±ÛÀÔ´Ï´Ù - 211.¢½.74.31 |
ÀÐÀ½:4888 |
|
|
Á¦¸ñ: How to Resolve ORA-29532 Java Permission Problems In Database
¹®¼ ID: °øÁö:134280.1 À¯Çü: BULLETIN
¸¶Áö¸· °»½Å ³¯Â¥: 16-FEB-2006 »óÅÂ: PUBLISHED
- ¿À¶óŬ scott °èÁ¤¿¡ xml fileÀ» ·ÎµùÇÒ¼ö ÀÖµµ·Ï ±ÇÇѺο©
SQL> grant javauserpriv to scott;
SQL> grant javasyspriv to scott;
Problem Description
-------------------
Sometimes an application running in the Oracle JVM
will fail with a java permissions error having the
following format:
(Note: Message shown below have been reformatted for easier readability.)
java.sql.SQLException: ORA-29532:Java call terminated by uncaught Java exception:
followed by a detailed error message similar to one of the following messages:
-----------
Example # 1
-----------
java.security.AccessControlException: the Permission
(java.net.SocketPermission hostname resolve)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
-----------
Example # 2
-----------
java.security.AccessControlException: the Permission
(java.util.PropertyPermission * read,write)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
-----------
Example # 3
-----------
java.security.AccessControlException: the Permission
(java.io.FilePermission \matt1.gif read)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
-----------
Explanation
-----------
The java 2 permission stated in line # 2 of each of the above "Examples"
has not been granted to the user specified in line 4 of the above "Examples".
--------------------
Solution Description
--------------------
The methodology to solve this issue is identical for all java 2 permissions
cases.
1) Format a call "dbms_java.grant_permission" procedure as described below.
2) Logon as SYS or SYSTEM
3) Issue the TWO commands shown below
4) Logoff as SYS or SYSTEM
5) Retry your application
---------------
For Example # 1
---------------
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.net.SocketPermission',
'hostname',
'resolve');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
---------------
For Example # 2
---------------
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.util.PropertyPermission',
'*',
'read,write');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
---------------
For Example # 3
---------------
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.io.FilePermission',
'\matt1.gif',
'read');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
Other ORA-29532 related documents
----------------------------------
Note 142969.1 Java Stored Procedure Call External Program fails with ORA-29532
Note 1015353.102 ORA-29532: JAVA CALL TERMINATED BY UNCAUGHT JAVA EXCEPTION
Note 155517.1 ORA-29532 JAVA CALL TERMINATED BY UNCAUGHT JAVA EXCEPTION
.
|
|
|
|
|
|