Solved

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

Posted on 2007-12-06
4
860 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Suggested Courses

636 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