Check and Set environment variables using SRVCTL command

Set Environment Variables with SRVCTL command Oracle RAC

Check the Environment Variables with SRVCTL

srvctl getenv database -db ORCL

Set the Environment Variables with SRVCTL

-- Set the ORACLE_HOME Environment Variable
srvctl setenv database -db ORCL -env "ORACLE_HOME=/oracle/app/oracle/product/12.1.0.2/dbhome_1"


-- Set the TNS_ADMIN environment Variable
srvctl setenv database -db ORCL -env "TNS_ADMIN=/oracle/app/oracle/product/12.1.0.2/dbhome_1/network/admin"

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.