ORA-01950: no privileges on tablespace xxxx, noprivileges

Source: Internet
Author: User

ORA-01950: no privileges on tablespace xxxx, noprivileges


Case scenario:

After creating a tablespace, TBS_MARKET_DAT wants to place the archived data in the tablespace.


SQL> CREATE TABLESPACE TBS_MARKET_DAT
  2  DATAFILE '/u04/oradata/gps/bookt_data_arch_01.dbf'
  3  SIZE 100M
  4  AUTOEXTEND ON
  5  NEXT 10M
  6  MAXSIZE 4G
  7  EXTENT MANAGEMENT LOCAL
  8  SEGMENT SPACE MANAGEMENT AUTO ONLINE ;

User A (the default tablespace is TBS_ODS_DAT) when creating A table, specify that the table is stored in the tablespace TBS_MARKET_DAT, encounter ORA-01950: no privileges on tablespace 'tbs _ MARKET_DAT'

 

Cause analysis:

As shown below, you are not authorized to allocate space in the specified tablespace. You only need to grant the tablespace permission to this user.

[Oracle @ DB-Server ~] $ Oerr ora 1, 01950
01950,000 00, "no privileges on tablespace '% S '"
// * Cause: User does not have privileges to allocate an extent in
// Specified tablespace.
// * Action: Grant the user the appropriate system privileges or grant the user
// Space resource on the tablespace.

Solution:

 

Method 1: grant the user an UNLIMITED quota for the tablespace.

 

SQL> ALTER USER ETL QUOTA UNLIMITED ON TBS_MARKET_DAT;

User altered.

SQL>

Method 2: After the resource role is re-authorized to the user, you can create a table.

 

SQL> GRANT RESOURCE TO ETL;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.