RDSADMIN_UTIL: what syntax to grant a system privilege?

0

The "common DBA answers" thoroughly document the code to define DML grants such as SELECT or UPDATE. I'm at a loss to "grant create" or "revoke create". I'd appreciate a source reference but just the right parameters would be very helpful. TIA.

질문됨 2년 전629회 조회
1개 답변
2

Thank you for reaching out. I understand you need some guidance on " GRANT CREATE *" or "REVOKE CREATE *" for your database schema in RDS Oracle. Please correct me if I am wrong.

You can login with your MASTER user in the RDS Oracle instance and you can assign the " CREATE " privileges to your custom schema.

You can run the below query to find the list of privileges assigned to the MASTER user.

SELECT * FROM session_privs ORDER BY privilege;

I logged in to my lab instance using RDS Master user and please find the below output :

Created a demo schema

SQL> create user TEST1 identified by admin123;

User created.

SQL>

Added Privileges

SQL> grant create any job to TEST1; Grant succeeded.

SQL> revoke create any job from TEST1; Revoke succeeded.

SQL> grant CREATE TABLE to TEST1; Grant succeeded.

SQL> revoke CREATE TABLE from TEST1; Revoke succeeded.

The above information will provide you with guidance for this situation. However, Please note this is general guidance only and offered on best effort basis.

As always, Happy Cloud Computing.

AWS
지원 엔지니어
Arnab_S
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠