개발일기/DataBase
[oracle db] 다른 스키마에 테이블 생성하기, 테이블이 있는데 ora-00942
탐요
2023. 2. 16. 14:38
다른 스키마에 테이블 생성하기 위한 권한 부여
grant create session to <user>;
grant create table to <user>;
grant create any table to <user>;
grant create any index to <user>;
grant comment any table to <user>;
테이블이 있는데 ora-00942
(혹은 테이블이 있는데 dbeaver등에서 보이지 않는 경우)
-> 테이블에 권한이 없는 경우이므로 권한 부여
grant select, insert, update, delete, alter on <테이블 이름> to <user>;
권한부여 관련 reference:
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=geeyoming&logNo=220077370376
https://logic.edchen.org/how-to-resolve-ora-01031-insufficient-privileges/
How to Resolve ORA-01031: Insufficient Privileges - Ed Chen Logic
ORA-01031: Insufficient Privileges means that the current user did not use the right privilege to process the SQL statement.
logic.edchen.org