ORA-01031: Insufficient privileges
Oracle의미
사용자에게 시도하는 작업에 필요한 권한(시스템 권한 또는 객체 권한)이 없다.
원인
필요한 시스템 또는 객체 권한이 부여되지 않음, 권한이 롤을 통해서만 부여됨(definer-rights PL/SQL 블록 안에서는 롤이 적용되지 않음), SYSDBA/SYSOPER 없이 관리 작업을 시도함, 또는 definer-rights 프로시저에 대한 직접 grant 누락.
해결 방법
누락된 권한을 부여한다. 예: GRANT CREATE TABLE TO app_user 또는 GRANT SELECT ON app_schema.my_table TO app_user. 이름이 있는 PL/SQL 객체에서는 권한을 롤이 아니라 직접 부여해야 한다는 점을 기억한다. SYSDBA가 필요한 작업은 올바른 자격 증명으로 접속한다. 현재 권한을 확인한다: SELECT * FROM session_privs / user_sys_privs.
같은 데이터베이스의 다른 항목
- ORA-12154TNS: could not resolve the connect identifier specified
- ORA-12514TNS: listener does not currently know of service requested in connect descriptor
- ORA-00942Table or view does not exist
- ORA-00257Archiver error. Connect internal only, until freed
- ORA-01000Maximum open cursors exceeded
- ORA-00018Maximum number of sessions exceeded
- ORA-28000The account is locked