做了一个创建目录的java存储过程,java.io.FilePermission的权限也都付了,
dbms_java.grant_permission('SCOTT', 
'java.io.FilePermission', 
'*',
'read,write');但是,执行的时候还是有下面的错误,是为什么?エラー行: 1: エラーが発生しました。
ORA-29532: 不明なJava例外でJavaコールが終了しました: java.security.AccessControlException: 
thePermission (java.io.FilePermission c:\test\aaaa read) has not been granted by
dbms_java.grant_permission to SchemaProtectionDomain(NISSAN|PolicyTableProxy(SCOTT))

解决方案 »

  1.   

    dbms_java.grant_permission('SCOTT', 
    'java.io.FilePermission', 
    '<<ALL FILES>>',
    'read,write');
      

  2.   

    ORA-29532 Java call terminated by uncaught Java exception: string
    Cause: A Java exception or error was signaled and could not be resolved by the Java code. Action: Modify Java code, if this behavior is not intended
      

  3.   

    楼主你用的是oci连接还是thin连接模式?java编码有问题.