Home » SQL & PL/SQL » SQL & PL/SQL » Calling EXECUTE command from UNIX script
Calling EXECUTE command from UNIX script [message #1077] Thu, 28 March 2002 01:47 Go to next message
Mick Wall
Messages: 2
Registered: March 2002
Junior Member
Here is my unix script

#!/bin/sh
sqlplus cfs/cfs << EOF

set echo on
spool log/p16_anal_schema.log
EXECUTE dbms_utility.analyze_schema('CFS','COMPUTE');

EOF

the problem is that the sqlplus sessions just sits there until i type quit... then the execute starts.

but if i replace the EXECUTE line with say DESC tablename then the unix script runs, does the command and then exits as i would expect.

anybody and ideas?

Cheers

Mick
Re: Calling EXECUTE command from UNIX script [message #1079 is a reply to message #1077] Thu, 28 March 2002 05:33 Go to previous message
Rawlings
Messages: 2
Registered: March 2002
Junior Member
Maybe chanaging the line where you launch SQLPLUS, so that it will also spool to the log file:

sqlplus -S / << EOF > p16_anal_schema.log

Hope this helps.
Previous Topic: Oracle errors
Next Topic: SQL Loader question - Using a sequence to populate column
Goto Forum:
  


Current Time: Fri Apr 26 21:28:52 CDT 2024