Home » Infrastructure » Unix » sql script from sh script. (oracle 9i , solaris)
sql script from sh script. [message #386655] |
Mon, 16 February 2009 08:09  |
koff10
Messages: 58 Registered: December 2006 Location: france
|
Member |
|
|
Hi all,
I got 2 script: test.sql an test.sh
I'm trying to lunch sql script from sh script.
**test.sh script content is ****:
#!/bin/sh
sqlplus scott/password@dev5;
@test.sql;
exit;
** test.sql script content is ****:
select * from department;
exit
/
From my unix prompt, I launch :
$ ./test.sh **** the result is below.**
SQL*Plus: Release 9.2.0.5.0 - Production on Lu Fev 16 14:44:07 2009
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connecté à :
Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
JServer Release 9.2.0.7.0 - Production
SQL>
this means that @test.sql is not execute.
of course test.sql is in my current directory.
Any help welcome.
thanks
koff
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat May 03 10:56:20 CDT 2025
|