Collections:
Privilege to Create Tables in Oracle
What Privilege Is Needed for a User to Create Tables in Oracle?
✍: FYIcenter.com
To be able to create tables in a user's own schema, the user needs to have the CREATE TABLE privilege, or the CREATE ANY TABLE privilege, which is more powerful, and allows the user to create tables in other user's schema. The following tutorial exercise gives you a good example on CREATE TABLE privilege:
>.\bin\sqlplus /nolog SQL> CONNECT DEV/developer SQL> CREATE TABLE fyi (id NUMBER); ORA-01031: insufficient privileges SQL> disconnect SQL> connect SYSTEM/fyicenter SQL> GRANT CREATE TABLE TO dev; Grant succeeded. SQL> disconnect SQL> CONNECT DEV/developer SQL> CREATE TABLE fyi (id NUMBER); ORA-01950: no privileges on tablespace 'SYSTEM'
The above error message tells that user "dev" is not allowed to use the tablespace "SYSTEM". See the next question for answers.
⇒ Assign a Tablespace to a User in Oracle
⇐ Lock and Unlock a User Account in Oracle
2019-06-29, 3004🔥, 0💬
Popular Posts:
What Is Program Global Area (PGA) in Oracle? A Program Global Area (PGA) is a memory buffer that is ...
How To Break Query Output into Pages in MySQL? If you have a query that returns hundreds of rows, an...
How To Drop an Index in Oracle? If you don't need an existing index any more, you should delete it w...
How To List All Login Names on the Server in SQL Server? If you want to see a list of all login name...
How To Enter Unicode Character String Literals in SQL Server Transact-SQL? Unicode characters are mu...