错误提示1:identifier 'DBMS_JAVA.GRANT_PERMISSION' must be declared附原代码:
beginDbms_Java.Grant_Permission('DBSNMP', 
'java.io.FilePermission', '<<ALL FILE>>', 
'read ,write, execute, delete');Dbms_Java.Grant_Permission('hr', 
'java.io.FilePermission', 'd:aa.bat', 
'read ,write, execute, delete');  dbms_java.grant_permission
   ('hr',
    'java.lang.RuntimePermission',
    '*',
    'writeFileDescriptor' );
end;
/
============错误提示2:ORA-29547: Java system class not available: oracle/aurora/rdbms/Compiler附代码:
create or replace and compile
   java source named "Test"
   as
   import java.io.*;
  import java.lang.*; 
   public class Util extends Object
   {
    public static int RunThis(String args)
    {
   Runtime rt = Runtime.getRuntime();
   int rc = -1; 
   try
   {
   Process p = rt.exec(args);
   int bufSize = 4096;
   BufferedInputStream bis =
     new BufferedInputStream(p.getInputStream(), bufSize);
     int len;
     byte buffer[] = new byte[bufSize];
      // Echo back what the program spit out
    while ((len = bis.read(buffer, 0, bufSize)) != -1)
         System.out.write(buffer, 0, len); 
       rc = p.waitFor();
    }
     catch (Exception e)
     {
        e.printStackTrace();
        rc = -1;
     }
    finally
    {
        return rc;
     }
     }
   }
请高手指点!初学oracle开发