Site icon IT Tutorial

ORA-00922: missing or invalid option

I got ” ORA-00922: missing or invalid option ” error in Oracle.

 

ORA-00922: missing or invalid option

 

Details of error are as follows.

SQL> create user mehmet identified by deveci!
2 
create user mehmet identified by deveci!
*
ERROR at line 1:
ORA-00922: missing or invalid option

ORA-00922 missing or invalid option

Cause: An invalid option was specified in defining a column or storage clause. 
The valid option in specifying a column is NOT NULL to specify that the column cannot
 contain any NULL values. Only constraints may follow the datatype. Specifying a maximum
 length on a DATE or LONG datatype also causes this error.

Action: Correct the syntax. Remove the erroneous option or length specification from the
column or storage specification.



 

 

missing or invalid option

This ORA-00922 errors are related with the invalid option was specified in defining a column or storage clause.

The valid option in specifying a column is NOT NULL to specify that the column cannot
contain any NULL values. Only constraints may follow the datatype. Specifying a maximum
length on a DATE or LONG datatype also causes this error.

 

To solve this error, you should correct the syntax.

Or you should remove the erroneous option or length specification from the column or storage specification.

 

SQL> create user mehmet identified by deveci!;
2 
create user mehmet identified by deveci!
*
ERROR at line 1:
ORA-00922: missing or invalid option

 

 

To solve this error, add ” ” to password as follows, problem will be solved.

SQL> create user mehmet identified by "deveci!";


User created.

 

Mostly this error is caused because of missing comma or extra comma or dot.

So correct the syntax of SQL Statement.

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

Exit mobile version