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, 2645🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions I am new to Oracle database. Here is a list of f...
How To View Data Files in the Current Database in Oracle? If you want to get a list of all tablespac...
Where to find tutorials to answer some frequently asked questions on Microsoft SQL Server Transact-S...
How To Start Instance with a Minimal Initialization Parameter File in Oracle? The sample initializat...
How to set database to be READ_ONLY in SQL Server? Databases in SQL Server have two update options: ...