简体   繁体   中英

Orace 11g : Create table in another schema with only select permission to schema owner

I have 2 users: User1 and User2

I am able to create table in schema of User2 from User1

create table user2.tmp_tab (
     temp1 varchar2(20),
     temp2 varchar2(20)
);
Table created Successfully

but I want User2 to have only select privileges on the table. and also I don't want to create table in Schema User1.

Is it possible ? How can it be done ?

No, you can't. The schema owner automatically has all object privileges for his own schema.

From documentation ,

A user automatically has all object privileges for schema objects contained in his or her schema. A user can grant any object privilege on any schema object he or she owns to any other user or role.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM