HOME   ·Î±×ÀΠ  ȸ¿ø°¡ÀÔ
    
ȸ¿ø°¡ÀÔ
ºñ¹Ð¹øÈ£ ã±â ÀÚµ¿·Î±ä
ÀÌÀü°Ô½ÃÆÇ
   free_board
   °Ç°­°Ô½ÃÆÇ
   ¿À¶óŬDB
   Linux
   HTML/javascript
   Áú¹®°ú ´ä
È£¼­±â
   À̹ÌÁö°Ô½ÃÆÇ  
   °Ç°­°Ô½ÃÆÇ  
   À½¾ÇÀÚ·á  
   ¼ºÁØÀÌ °Ô½ÃÆÇ  
[ÀϹÝ] 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


.


¸ñ·Ï

ºÐ·ù ¼±ÅÃ
ÀÏ¹Ý ORA-29532 xml ÆÄÀÏÇڵ鸵ÇÒ¶§ ±ÇÇÑÁÖ±â È£¼® 06-06-15 4889
49 ÀÏ¹Ý [sql] ƯÀÌÇÑ Äõ¸®¹® ¿¹Á¦ °èÃþÀûÀ¸·Î Äõ¸®µ¥ÀÌÅÍ ÃßÃâ È£¼® 06-06-14 4880
48 ÀÏ¹Ý [sql] Çѷο쿡 °°Àº ±×·ìµ¥ÀÌÅÍ ÃßÃâÇϱâ È£¼® 06-06-14 3654
47 ÀÏ¹Ý [sql]Æã¼ÇÀ̳ª ÇÁ·Î½ÃÁ® ÆÑÅ°Áö °°Àº ¸ñ·Ï º¸±â È£¼® 06-05-13 4125
46 ÀÏ¹Ý [sql]pakage ÆÐÅ°Áö ±¸Çö¿¹Á¦ (1) È£¼® 06-05-13 3570
45 ÀÏ¹Ý [sql trigger]Æ®¸®°Å ÀÛ¼º¿¹Á¦ È£¼® 06-05-01 4652
44 ÀÏ¹Ý [sql procedure]ÇÁ·Î½ÃÁ® ÀÛ¼º¿¹Á¦ È£¼® 06-05-01 4206
43 ÀÏ¹Ý [proc] proc Pro*C ¸®´ª½º¿¡¼­ ¼³Ä¡¹ý, ¼³Á¤, ÆÄÀÏÂüÁ¶ (1) È£¼® 06-04-28 5211
42 ÀÏ¹Ý ¿À¶óŬ 10g ¼³Ä¡ È£¼® 06-03-20 5486
41 ÀÏ¹Ý ¿À¶óŬ 10G ¼³Ä¡Çϱâ È£¼® 06-03-20 4927
40 ÀÏ¹Ý MySQL ¶óÀ̼¾½º Á¤Ã¥ È£¼® 06-03-17 4121
39 ÀÏ¹Ý [sql] Äõ¸®¿¹Á¦ ÇѲ¨¹ø¿¡ updatet Çϱâ (1) È£¼® 06-03-10 3553
38 ÀÏ¹Ý [sql] Äõ¸®¿¹Á¦ ÇѲ¨¹ø¿¡ insert Çϱâ È£¼® 06-03-09 3573
37 ÀÏ¹Ý export dump ¾ÈµÉ¶§ È£¼® 06-02-17 4294
  ÀÏ¹Ý    export dump ¾ÈµÉ¶§ È£¼® 06-02-20 5130
óÀ½ÀÌÀü  [1] [2] [3] [4] [5] [6] 7 [8] [9] [10]  ´ÙÀ½¸Ç³¡

 
Copyright © zenos.pe.kr. All rights reserved.