Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Running Oracle SQL DDL from the IDE

Running Oracle SQL DDL from the IDE

Scheduled Pinned Locked Moved Database
databaseoraclehelpvisual-studiotools
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ranjan Banerji
    wrote on last edited by
    #1

    I have a Database project in which I put all my DDL code. I have a database connection for this project connecting to an Oracle database. Unlike when I am using SQLServer, my scripts do not run properly when I right click on a script file and say run. If I have a simple select * from table then it runs. However the DDL such as: CREATE TABLE "CMD"."TBL_BLAH" ( "BLAH_ID" VARCHAR2(38) NOT NULL, "DESCRIPTION" VARCHAR2(50) NOT NULL, PRIMARY KEY("BLAH_ID") ) / I get an error saying: ORA-00922: missing or invalid option The same runs on sqlplus. Ok, so now I removed the / and it owrks. But I have a new problem. The DDL is actually: CREATE TABLE "CMD"."TBL_BLAH" ( "BLAH_ID" VARCHAR2(38) NOT NULL, "DESCRIPTION" VARCHAR2(50) NOT NULL, PRIMARY KEY("BLAH_ID") ) GRANT SELECT ON "Q"."TBL_BLAH" TO "BLAH_BLAH"; And now I get the same error again. Anyone know how to set these scripts up so that they can be run from the IDE? Thanks.

    R 1 Reply Last reply
    0
    • R Ranjan Banerji

      I have a Database project in which I put all my DDL code. I have a database connection for this project connecting to an Oracle database. Unlike when I am using SQLServer, my scripts do not run properly when I right click on a script file and say run. If I have a simple select * from table then it runs. However the DDL such as: CREATE TABLE "CMD"."TBL_BLAH" ( "BLAH_ID" VARCHAR2(38) NOT NULL, "DESCRIPTION" VARCHAR2(50) NOT NULL, PRIMARY KEY("BLAH_ID") ) / I get an error saying: ORA-00922: missing or invalid option The same runs on sqlplus. Ok, so now I removed the / and it owrks. But I have a new problem. The DDL is actually: CREATE TABLE "CMD"."TBL_BLAH" ( "BLAH_ID" VARCHAR2(38) NOT NULL, "DESCRIPTION" VARCHAR2(50) NOT NULL, PRIMARY KEY("BLAH_ID") ) GRANT SELECT ON "Q"."TBL_BLAH" TO "BLAH_BLAH"; And now I get the same error again. Anyone know how to set these scripts up so that they can be run from the IDE? Thanks.

      R Offline
      R Offline
      RichardGrimmer
      wrote on last edited by
      #2

      Which IDE do you mean? Assume that you mean Enterprise manager? "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

      R 1 Reply Last reply
      0
      • R RichardGrimmer

        Which IDE do you mean? Assume that you mean Enterprise manager? "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

        R Offline
        R Offline
        Ranjan Banerji
        wrote on last edited by
        #3

        Ah, I should have made myself clear. I meant the VS .Net IDE. The IDE lets you create Database projects and you can execute DDL from the VS .Net IDE itself. Works really well with SQLServer. With Oracle I am having problems as mentioned in my post.

        R 1 Reply Last reply
        0
        • R Ranjan Banerji

          Ah, I should have made myself clear. I meant the VS .Net IDE. The IDE lets you create Database projects and you can execute DDL from the VS .Net IDE itself. Works really well with SQLServer. With Oracle I am having problems as mentioned in my post.

          R Offline
          R Offline
          RichardGrimmer
          wrote on last edited by
          #4

          Ahhhhh.....don't have an ORA installation here to test, but if manage it, will let you know.... Sorry about that! "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups