Topic: SQL*Plus and PL/SQL >> Privileges!!!!!!
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Rush |
Posted: Dec 17, 2007 12:18:38 AM |
Total Post: 127
Joined: Jan, 2007
|
Hi all
I want some hint on "create table" and "create any table" privileges.
what is meaning of "any" keyword regarding various privileges?
Thanks in Advance
RUPESH |
|
|
Mohammed Taj |
| Posted: Dec 17, 2007 08:47:10 AM | |
|
Total Post: 746
Joined: Jul, 2007
|
ANY means any where in the database you can create tables.
Create Table
Means you can create tables only your schemas/user.
Create Any Table
Means you can create tables any schemas/user.
SQL> conn system/oracle
Connected.
SQL> create user aa identified by aa;
User created.
SQL> grant connect,create table ,unlimited tablespace to aa;
Grant succeeded.
SQL> conn aa/aa
Connected.
SQL> create table a ( no number);
Table created.
SQL> create table system.a ( no number);
create table system.a ( no number)
*
ERROR at line 1:
ORA-01031: insufficient privileges
SQL> conn system/oracle
Connected.
SQL> grant CREATE ANY TABLE to aa;
Grant succeeded.
SQL> conn aa/aa
Connected.
SQL> create table system.a ( no number);
Table created.
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Vinoth Kumar | 357 |
| Gopu Gopi | 340 |
| Gitesh Trivedi | 322 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|