Lab-verifiedReproduced and fixed on Oracle AI Database 26ai Free 23.26.3.0.0 · 2026-11-29 · container image gvenzl/oracle-free:23-slim
ORA-00990 is a syntax-level error in GRANT and REVOKE: the word you wrote is not a valid privilege at that position. The * under the statement points to the wrong privilege.
It is not a permission problem of the user running the GRANT (that is ORA-01031). Below are three causes verified on Oracle 23ai (26ai Free).
01Misspelled system privilege (for example CREATE VIEWS)
In GRANT CREATE SESSION, CREATE TABLE, CREATE VIEWS TO lab_b the plural CREATE VIEWS is not a privilege. The * points to it; the whole GRANT fails.
GRANT CREATE SESSION, CREATE TABLE, CREATE VIEWS TO lab_b;GRANT CREATE SESSION, CREATE TABLE, CREATE VIEWS TO lab_b
*
ERROR at line 1:
ORA-00990: missing or invalid privilege
Help: https://docs.oracle.com/error-help/db/ora-00990/COLUMN name FORMAT A30
SELECT name FROM system_privilege_map WHERE name LIKE 'CREATE%VIEW%' ORDER BY name;NAME
------------------------------
CREATE ANALYTIC VIEW
CREATE ANY ANALYTIC VIEW
CREATE ANY MATERIALIZED VIEW
CREATE ANY VIEW
CREATE MATERIALIZED VIEW
CREATE VIEW
6 rows selected.SYSTEM_PRIVILEGE_MAP lists the exact names. With LIKE 'CREATE%VIEW%' it shows CREATE VIEW. Using that name, the GRANT succeeds.
GRANT CREATE SESSION, CREATE TABLE, CREATE VIEW TO lab_b;Grant succeeded.02A system privilege (SELECT ANY TABLE) used with ON object
SELECT ANY TABLE is a system privilege for all tables, so it cannot have ON lab_a.orders. Writing both gives ORA-00990.
Setup
CREATE TABLE orders (order_id NUMBER PRIMARY KEY, amount NUMBER);
INSERT INTO orders VALUES (1, 100);
COMMIT;Table created.
1 row created.
Commit complete.GRANT SELECT ANY TABLE ON lab_a.orders TO lab_b;GRANT SELECT ANY TABLE ON lab_a.orders TO lab_b
*
ERROR at line 1:
ORA-00990: missing or invalid privilege
Help: https://docs.oracle.com/error-help/db/ora-00990/GRANT SELECT ON lab_a.orders TO lab_b;Grant succeeded.For one table, grant the object privilege: GRANT SELECT ON lab_a.orders TO lab_b. After that lab_b can query lab_a.orders.
SELECT order_id, amount FROM lab_a.orders; ORDER_ID AMOUNT
---------- ----------
1 100
1 row selected.03Typo in an object privilege list
GRANT SELECT, INSERTS ON customers TO lab_b has INSERTS instead of INSERT. The * points to it and SELECT is not granted either.
Setup
CREATE TABLE customers (cust_id NUMBER PRIMARY KEY, name VARCHAR2(30));Table created.GRANT SELECT, INSERTS ON customers TO lab_b;GRANT SELECT, INSERTS ON customers TO lab_b
*
ERROR at line 1:
ORA-00990: missing or invalid privilege
Help: https://docs.oracle.com/error-help/db/ora-00990/GRANT SELECT, INSERT ON customers TO lab_b;Grant succeeded.Fix the name: GRANT SELECT, INSERT ON customers TO lab_b. lab_b can then insert into and select from lab_a.customers.
INSERT INTO lab_a.customers VALUES (1, 'Kim');
SELECT cust_id, name FROM lab_a.customers;
ROLLBACK;1 row created.
CUST_ID NAME
---------- ------------------------------
1 Kim
1 row selected.
Rollback complete.FAQ
What causes ORA-00990 missing or invalid privilege?
The privilege name in GRANT or REVOKE is wrong: a typo, a plural, or a system privilege used with ON. Check the position marked with *.
How do I see the valid system privilege names in Oracle?
Query SYSTEM_PRIVILEGE_MAP, for example SELECT name FROM system_privilege_map WHERE name LIKE 'CREATE%VIEW%'.
How do I grant SELECT on one table only?
Use the object privilege: GRANT SELECT ON owner.table TO user. SELECT ANY TABLE is for all tables and has no ON clause.
What is the difference between ORA-00990 and ORA-01031?
ORA-00990 means the privilege name is invalid. ORA-01031 means the name is valid but you lack the right to do it.
How we verify
Each scenario starts from fresh database users. A script runs the setup, confirms the exact error code, applies the fix and runs the statement again. The output shown is what the database printed, saved by the script.
lab_a and lab_b are ordinary users created for the test; system is the DBA account. Oracle AI Database 26ai Free Release 23.26.3.0.0 - Develop, Learn, and Run for Free 23.26.3.0.0