RE: I want to change directory inside SQL script

  • From: "Reidy, Ron" <Ron.Reidy@xxxxxxxxxxxxxxxxxx>
  • To: <tpandian@xxxxxxxxx>, <Oracle-L@xxxxxxxxxxxxx>
  • Date: Thu, 27 Jan 2005 08:29:17 -0700

This does not work because the 'host' command to 'cd' creates a sub =
shell in your environment.  The cd will work in the sub shell, but when =
that sub shell exits, the effect of 'cd' is lost and your cwd is the =
directory of your parent shell.

Ron Reidy
Lead DBA
Array BioPharma, Inc.

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx]On Behalf Of Thiru Pandian
Sent: Thursday, January 27, 2005 7:33 AM
To: Oracle-L@xxxxxxxxxxxxx
Subject: I want to change directory inside SQL script


I want to change the directory from sql script. I am applying few
application patches which requires punch of sql needed to be run from
different directory, i would like to automate this.

change the directory=20

you may say that i should do @@  or specify the directory for parent
script. But in the script they did not have @@. Is there any way do

Thiru Pandian=20
Sr. Oracle DBA

This electronic message transmission is a PRIVATE communication which =
information which may be confidential or privileged. The information is =
to be for the use of the individual or entity named above. If you are =
not the=20
intended recipient, please be aware that any disclosure, copying, =
or use of the contents of this information is prohibited. Please notify =
sender  of the delivery error by replying to this message, or notify us =
telephone (877-633-2436, ext. 0), and then delete it from your system.


Other related posts: