Advertisement

11.15.2007 at 06:48AM PST, ID: 22962917
[x]
Attachment Details

execute script from sqlplus command line

Asked by s2000_com in Oracle 9.x, Oracle Database, PL / SQL

Tags: sqlplus, command, script, line

Hi,

I execute sqlplus myuser/mypassword@myhost @c:\temp\batchtest.sql

In the batchtest.sql, I have this :

spool C:\Temp\test1.txt
@C:\Temp\testphm.sql
spool off
exit


In the testphm.sql, I have this :

DECLARE
tbl_exist PLS_INTEGER;
BEGIN
SELECT COUNT(*) INTO tbl_exist FROM user_tables WHERE table_name = 'ADP';
END;

When I execute the prompt is like this :

Connected to:
Oracle9i Release 9.2.0.8.0 - Production
JServer Release 9.2.0.8.0 - Production

  8

It's stop with this "8" which seems the last line number of the script...

Any idea ?

TIA.Start Free Trial
[+][-]11.15.2007 at 06:53AM PST, ID: 20289266

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Oracle 9.x, Oracle Database, PL / SQL
Tags: sqlplus, command, script, line
Sign Up Now!
Solution Provided By: bobbymanocha
Participating Experts: 1
Solution Grade: B
 
 
[+][-]11.15.2007 at 06:57AM PST, ID: 20289308

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628