Solved

Error SP2-0310 ; explain to me why it was fixed by substituting ; with  / (below) the line

Posted on 2007-12-06
4
858 Views
Last Modified: 2013-12-18
I was executing

-- install.sql includes
start c:\TABLES\deletetables.sql;
commit;
start c:\TABLES\createtables.sql;
commit;

So i rung install
sql>start c:\install.sql

it was giving me an  SP2-0310: unable to open file "c:\TABLES\deletetables.sql;"

Then what i did is changing the install.sql to

-- install.sql includes
start c:\TABLES\deletetables.sql
/
commit;
start c:\TABLES\createtables.sql
/
commit;


and it worked fine.

Can you please tell me why is that happening ?
0
Comment
Question by:cscg1976
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 200 total points
ID: 20418137
because START is not a PL/SQL statement, but a SQL/PLUS command, and does hence not require the ;
0
 
LVL 25

Expert Comment

by:imitchie
ID: 20418152
The forward slash / is a statement delimiter. it separates your start command from the commit
0
 
LVL 13

Assisted Solution

by:sonicefu
sonicefu earned 200 total points
ID: 20418172

-- now this is your install.sql 
@@c:\TABLES\deletetables.sql
 
commit;
 
@@start c:\TABLES\createtables.sql
 
commit;

Open in new window

0
 
LVL 12

Assisted Solution

by:jwahl
jwahl earned 100 total points
ID: 20418731
i try to explain what your code did:

start c:\TABLES\deletetables.sql -- starts deletetables.sql successfully
/ -- re-runs previous command (deletetables.sql)
commit;
start c:\TABLES\createtables.sql -- starts createtables.sql successfully
/ -- re-runs previous command (createtables.sql)
commit;
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to recover a database from a user managed backup

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question