I am recreating the schema of a database (without its data) on a local instance of Oracle 21c XE instance, using the DDL scripts exported with SQL Developer. The CREATE TABLE statements include the option SEGMENT CREATION IMMEDIATE. When attempting to run them, I get an error: SQL Error [1950] [42000]: ORA-01950: no privileges on tablespace 'TABLESPACENAME'. If I change from SEGMENT CREATION IMMEDIATE to SEGMENT CREATION DEFERRED, the statement succeeds. Why is this happening? The user has supposedly been granted the necessary privileges. I have already ran the command GRANT RESOURCE TO superuser; on the XEPDB1 instance.
Oracle: "no privileges" error when creating table with SEGMENT CREATION IMMEDIATE, success with DEFERRED - why?
520 Views Asked by porcupine At
1
There are 1 best solutions below
Related Questions in SQL
- SQL schema for a fill-in-the-blank exercise
- Hibernate: JOIN inheritance question - why the need for two left joins
- What's supposed to be the problem in this query?
- Compare fields in two tables
- How to change woocomerce or full wordpress currency with value from USD to AUD
- Dynamic query creation with Array like implementation
- SQL query to get student enrolled in this month in a course - Moodle
- SQL LAG() function returning 0 for every row despite available previous rows
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Use row values from another table to select them as columns and establish relations between them (pivot table)
- SQL: Generate combination table based on source and destination column from same table
- how to use system's environnement variables in sql script
- PHP fetchAll on JOIN
- Multitable joining in Sql
- How to display name starting from 'z' by using BETWEEN cmd only?
Related Questions in ORACLE
- sqlplus myusername/mypassword@ORCL not working with Oracle on Docker
- Oracle setting up on k8s cluster using helm charts enterprise edition
- Oracle Managed Data Access Client can't work from IIS but work for local debug environment
- If composite indexing created - indexing is called?
- Oracle Http server ISNT-07551
- why here not creating table?
- Data migration from Oracle Database Clob to GCP Bucket
- SQL Alchemy custom type, forcing blob bind parameter
- How to send message to syslog agent in plsql
- Whatever the data available in previous record it should add to the new record
- I have an Oracle SQL query that is giving me a "ORA-00918: column ambiguously defined" error on a line that is a comment line
- 'ORA-12170: TNS:Connect timeout occurredORA-12170: TNS:Connect timeout occurred' ERROR while working on oracle with laravel
- Is their any way i can open parallel query tabs
- VSCode Libraries not showing for New Java Project
- I can't ssh to my instance, Connection refused
Related Questions in PRIVILEGES
- With which user does Oracle APEX create apps?
- What are the Risks of using app with dangerous delegated permissions in azure?
- Rundeck/Ansible privilege escalation doesn't work
- Do Shell Script From Apple Script Requires Terminal To Have Full Disk Access - But It Already Has Full Disk Access
- Error 1217 vs 1452: Still less verbose despite `GRANT_ALL`
- How exception occurred in debug mode do end execution of program buffer in RISCV architecture?
- I was installing the python for the first time, but I can't access the check box for admin privileges, it doesn't allow to check or uncheck it
- Pivileges of a new user in PostgreSQL
- List of role's privileges in Postgres
- MySQL Workbench Creating Users and Privileges
- confine snowflake warehouse usage on user level
- Is it possible to give my Android app root permissions without rooting the device? Perhaps with an MDM or a UEM?
- Creating a Limited Privilege PostgreSQL Role for Backend Server
- Is it possible in node to attain super user / root privileges for a set of actions without running the entire application as root?
- Wow64 subsystem and its implementation on x86_64
Related Questions in ORACLE-XE
- Oracle XE container (as child / sibling) startup error
- Cant connect to Oracle XE database from simple Python code
- ORA-17059 SQL Exception (Fixed)
- Could not obtain JDBC connection Oracle-xe with testcontainers - SpringBoot
- Running Oracle XE docker container with colima not working on Apple M2
- Oracle Database XE21C Error 203 1297 after moving to another machine
- I can't connect my javafx project to an Oracle 11 database
- SQL Oracle 21c XE, ORA-01017 Invalid User / Password
- ORA-01017: invalid username/password error with oracle express:21.3.0-xe container
- Connecting oracle XE db on AWS EC2 - configure TNSLIstenr for internal and external IP
- Why does the creation of a pluggable database in Oracle XE 21c fail with ORA-65100: "missing or invalid path prefix"?
- Oracle XE 21c: cannot associate tablespace with user
- Oracle database 21c Express editon: startup ORA-01031: insufficient privileges
- Windows 10 pro x64, Oracle database 21c express edition: How to set ORACLE_HOME correct?
- Cannot install HR schema for Oracle 21c express
Related Questions in TABLESPACE
- Mysql create a general tablespace in a specific directory
- What to do if there are two tablespace directories after pg_upgrade using hard-links option
- How to move schema to other tablespace
- Copy Oracle database to my local database oracle xe problem with tablespace
- Find the sum of tablespaces in PostgreSQL
- Is it possible in PostgreSQL to restrict changes for files whose data is not actually changed?
- How to Determine Tablespace from ROWID if data_object_id is not Unique?
- tamp tablespace in oracle
- Oracle data pump export issue ORA-31655: no data or metadata objects selected for job
- I have all the permissions but it still shows permission denied - Linux Terminal
- Import tablespace fails after exchange partition in MySQL (Percona Server 5.7.26-29)
- Free Up Space Oracle Tablespace (Users)
- ORA-12609: tns: receive timeout occurred- Error Occurs When Running Query to Create Tablespace
- DB2 online backup not working and can't force the application
- What are some real-world examples of Bigfile Tablespaces in Oracle 19c?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Because with deferred segment creation, not storage is allocated in the tablespace when the table is created, only when the first data is inserted.
From the documentation:
So with the successful table creation, you will get the same error when you try to insert data, as seen in this db<>fiddle:
(using SYSTEM just to demonstrate; don't create objects in there...)
You said: "The user has supposedly been granted the necessary privileges."
This isn't about privileges, it's about having a quota allocated in the tablespace(s). You haven't shown the full create statements so we don't know if you included storage clauses to specify the tablespaces to use, or if you're just using the owner's default tablespace.
From the documentation again:
and
So in addition to granting privileges you will need to assign a quota, with something like:
providing the owner name, tablespace name, and an appropriate limit on the amount of space they are expected to consume, or
UNLIMITEDif that is appropriate - probably only if the tablespace has been created specifically for that user's objects.If the user will create objects in more than one tablespace then they will need to have a quota assigned in each one.
Read more