Oracle
 sql >> Datenbank >  >> RDS >> Oracle

Zugriff beim Festlegen von DBMS_XDB.SETHTTPORT verweigert

Schau dir das an:

SQL> conn hr/hr
Connected.
SQL> exec dbms_xdb.sethttpport(3000);
BEGIN dbms_xdb.sethttpport(3000); END;

*
ERROR at line 1:
ORA-31050: Access denied
ORA-06512: at "XDB.DBMS_XDB", line 528
ORA-06512: at "XDB.DBMS_XDB", line 667
ORA-06512: at line 1


SQL> conn / as sysdba
Connected.
SQL> exec dbms_xdb.sethttpport(3000);

PL/SQL procedure successfully completed.

SQL> grant execute on dbms_xdb to hr
  2  /

Grant succeeded.

SQL> conn hr/hr
Connected.
SQL> exec dbms_xdb.sethttpport(3002);
BEGIN dbms_xdb.sethttpport(3002); END;

*
ERROR at line 1:
ORA-31050: Access denied
ORA-06512: at "XDB.DBMS_XDB", line 528
ORA-06512: at "XDB.DBMS_XDB", line 667
ORA-06512: at line 1


SQL> conn / as sysdba
Connected.
SQL> grant sysdba to hr
  2  /

Grant succeeded.

SQL> conn hr/hr as sysdba
Connected.
SQL> exec dbms_xdb.sethttpport(3003);

PL/SQL procedure successfully completed.

Sie müssen also das SYSDBA-Privileg haben, um dieses Paket auszuführen.