Restrictions for SQL Commands
Autonomous Database allows most of the SQL commands available in Oracle Database. To ensure the security and the performance of Autonomous Database, some SQL commands are restricted.
This section provides a list of SQL command limitations that are required to protect security and for the performance integrity of Autonomous Databases. Most of the standard SQL and PL/SQL syntax and constructs available with Oracle Database work in Autonomous Databases.
Note:
If you try to use a restricted SQL command the system reports:
ORA-01031: insufficient privileges
This error indicates that you are not allowed to run the SQL command in Autonomous Database.
The following SQL statements are not available in Autonomous Database:
-
ADMINISTER KEY MANAGEMENT
-
ALTER TABLESPACE
-
CREATE DATABASE LINK
Use
DBMS_CLOUD_ADMIN.CREATE_DATABASE_LINK
to create database links in Autonomous Database. See Create Database Links from Autonomous Database to Oracle Databases for more information. -
CREATE LIBRARY
-
CREATE TABLESPACE
-
DROP TABLESPACE
SQL Statements with Restrictions in Autonomous Database
The following DDL statements are available in Autonomous Database with restrictions:
SQL Command | Restrictions |
---|---|
|
Only the following clauses are allowed:
|
|
See Manage Password Complexity on Autonomous Database for more information. Using See Create Users on Autonomous Database - Connecting with a Client Tool for information on the password parameter values defined in the default profile. |
|
Only the following clauses are allowed:
|
|
|
|
The following clause is ignored: The The |
|
For restrictions, see |
|
See Manage Password Complexity on Autonomous Database for more information. Using See Create Users on Autonomous Database - Connecting with a Client Tool for information on the password parameter values defined in the default profile. |
|
For restrictions, see |
|
The following clause is ignored:
The |
CREATE TABLE Restrictions
XMLType
tables using XML schema-based storage are not
allowed. See Restrictions for Oracle XML DB for more information.
The clauses not in this list are allowed.
Clause | Comment |
---|---|
|
Ignored |
|
Ignored |
|
Ignored |
|
Ignored |
|
Ignored |
|
Ignored |
|
Creates a regular table with a primary key. Using
the |
|
Ignored |
Note:
For more information on CREATE TABLE, see Database SQL Language Reference.ALTER TABLE Restrictions
The clauses not in this list are allowed.
Clause | Comment |
---|---|
|
Ignored |
|
Ignored |
|
Ignored |
|
Ignored |
|
Ignored |
|
Ignored |
|
Ignored |
|
Ignored |
|
Ignored |
Note:
For more information on ALTER TABLE, see Database SQL Language Reference.