envvariable

anishtv
anishtv used Ask the Experts™
on
How can we



 set environment variable "ORA_CLIENTTRACE_DIR" to a valid directory
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Oracle DBA
Commented:
Depends on the shell you are using.  The most common shell for a Linux system being bash, this would work:

export ORA_CLIENTTRACE_DIR=/tmp

You can put any directory you want in there.

That would work in most other shells as well.  If you run up against pure Bourne shell you have to split it into 2 commands (not this will work on every shell I know of except csh and its derivatives):

ORA_CLIENTTRACE_DIR=/tmp
export ORA_CLIENTTRACE_DIR
nociSoftware Engineer
Distinguished Expert 2018

Commented:
if you want it relative to a current directory you can use:

export ORA_CLIENTTRACE_DIR=./subdir

or

export ORA_CLIENTTRACE_DIR=$(pwd)/subdir

Author

Commented:
fine
nociSoftware Engineer
Distinguished Expert 2018

Commented:
agreed.

Author

Commented:
Thanks.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial