|
|
Re: SQL ERROR [message #359379 is a reply to message #359375] |
Sat, 15 November 2008 09:42 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
OracleDBA1
Messages: 7 Registered: November 2008
|
Junior Member |
|
|
HI,
the script has to be executed in Linux.
#/bin/sh
export DIRE=/oracle/prod/
for j in `cat $DIRE/data.txt` -- the data.txt has 3 database names in it--
do
val=$(sqlplus -s user1/passwd@j <<END
select destination from v\$archive_dest where dest_name = 'LOG_ARCHIVE_DEST_1';
exit
END)
The script works fine when executed in the db however doesnot work when executed within a script.
I cannot understand this.
Thanks & kind regards..
[Updated on: Sat, 15 November 2008 09:46] Report message to a moderator
|
|
|
|
|