ORA-00907: missing right parenthesis when creating a table in Oracle 11G

tom

In Oracle 11G, am recieving the error ORA-00907: missing right parenthesis when creating the table shown below

create table structured_1000( 
year varchar2(4) NOT NULL,
    CP varchar2(50),
      ONSG varchar2(50),
      ONSLA varchar2(9),
      road varchar2(100) NOT NULL,
      cat varchar2(20)
  Refs varchar2(20),
  Refn varchar2(20),
  ajunction varchar2(20),
  bjunction varchar2 (20),
  lennet char(2)`
   );

Ive listed the entire table as sometimes the error line changes - has shown both line 6 & 9. From what I can see all of the parenthesis are visible. This issue occurs in both the shell and APEX.

Lalit Kumar B

There are two issues in your create table statement:

  1. cat varchar2(20)

You have a missing comma.

  1. lennet char(2)`

An invalid backtick in the end.

Fixing the two issue would successfully create the table:

SQL> CREATE TABLE structured_1000
  2    (
  3      YEAR      VARCHAR2(4) NOT NULL,
  4      CP        VARCHAR2(50),
  5      ONSG      VARCHAR2(50),
  6      ONSLA     VARCHAR2(9),
  7      road      VARCHAR2(100) NOT NULL,
  8      cat       VARCHAR2(20),
  9      Refs      VARCHAR2(20),
 10      Refn      VARCHAR2(20),
 11      ajunction VARCHAR2(20),
 12      bjunction VARCHAR2 (20),
 13      lennet    CHAR(2)
 14    );

Table created.

SQL>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Lookup Error ORA-00907: missing right parenthesis

From Dev

Strange ORA-00907: missing right parenthesis

From Dev

Error at line 1: ORA-00907: missing right parenthesis

From Dev

ORA-00907: missing right parenthesis error

From Dev

Missing right parenthesis error (ORA-00907: missing right parenthesis)

From Dev

ORA-00907 Missing right parenthesis even when parenthesis are balanced

From Dev

ORA-00907: missing right parenthesis with PreparedStatement

From Dev

ORA-00907: missing right parenthesis, on Oracle 10 and not on Oracle 11

From Dev

ORA-00907: Missing Right Parenthesis on a left join of two subqueries

From Dev

ORA-00907: missing right parenthesis i cant find the mistake

From Dev

ORA:00907: missing right parenthesis, when using CASE in WHERE clause

From Dev

PORTING FROM DB2 TO ORACLE - ORA-00907: missing right parenthesis

From Dev

ORA-00907: Missing right parenthesis in SQL

From Dev

What results Oracle "ORA-00907: missing right parenthesis" error on table creation?

From Dev

Missing Right Parenthesis error in oracle query ORA00907

From Dev

Oracle11g SQL - Error missing right parenthesis while creating table

From Dev

Oracle SQL error ORA-00907: missing right parenthesis on table create

From Dev

ORA-00907:missing right parenthesis when taking sample from the data

From Dev

Hibernate : ORA-00907: missing right parenthesis

From Dev

SQL missing right parenthesis ORA-00907

From Dev

ORA-00907: missing right parenthesis with PreparedStatement

From Dev

ORA-00907: missing right parenthesis oracle sql

From Dev

SQL Error: ORA-00907: missing right parenthesis when trying to creating table

From Dev

"ORA-00907: missing right parenthesis" during inserting into table

From Dev

Oracle Apex 5 Error, ORA-00907: missing right parenthesis. Can't see missing parenthesis?

From Dev

ORA-00907: missing right parenthesis and ORA-00942: table or view does not exist

From Dev

CREATE TABLE, ORA-00907: missing right parenthesis error

From Dev

ORA-00907: missing right parenthesis when creating a table

From Dev

ORA-00907: missing right parenthesis?

Related Related

  1. 1

    Lookup Error ORA-00907: missing right parenthesis

  2. 2

    Strange ORA-00907: missing right parenthesis

  3. 3

    Error at line 1: ORA-00907: missing right parenthesis

  4. 4

    ORA-00907: missing right parenthesis error

  5. 5

    Missing right parenthesis error (ORA-00907: missing right parenthesis)

  6. 6

    ORA-00907 Missing right parenthesis even when parenthesis are balanced

  7. 7

    ORA-00907: missing right parenthesis with PreparedStatement

  8. 8

    ORA-00907: missing right parenthesis, on Oracle 10 and not on Oracle 11

  9. 9

    ORA-00907: Missing Right Parenthesis on a left join of two subqueries

  10. 10

    ORA-00907: missing right parenthesis i cant find the mistake

  11. 11

    ORA:00907: missing right parenthesis, when using CASE in WHERE clause

  12. 12

    PORTING FROM DB2 TO ORACLE - ORA-00907: missing right parenthesis

  13. 13

    ORA-00907: Missing right parenthesis in SQL

  14. 14

    What results Oracle "ORA-00907: missing right parenthesis" error on table creation?

  15. 15

    Missing Right Parenthesis error in oracle query ORA00907

  16. 16

    Oracle11g SQL - Error missing right parenthesis while creating table

  17. 17

    Oracle SQL error ORA-00907: missing right parenthesis on table create

  18. 18

    ORA-00907:missing right parenthesis when taking sample from the data

  19. 19

    Hibernate : ORA-00907: missing right parenthesis

  20. 20

    SQL missing right parenthesis ORA-00907

  21. 21

    ORA-00907: missing right parenthesis with PreparedStatement

  22. 22

    ORA-00907: missing right parenthesis oracle sql

  23. 23

    SQL Error: ORA-00907: missing right parenthesis when trying to creating table

  24. 24

    "ORA-00907: missing right parenthesis" during inserting into table

  25. 25

    Oracle Apex 5 Error, ORA-00907: missing right parenthesis. Can't see missing parenthesis?

  26. 26

    ORA-00907: missing right parenthesis and ORA-00942: table or view does not exist

  27. 27

    CREATE TABLE, ORA-00907: missing right parenthesis error

  28. 28

    ORA-00907: missing right parenthesis when creating a table

  29. 29

    ORA-00907: missing right parenthesis?

HotTag

Archive