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"
This entry was posted in Oracle on by .
Unknown's avatar

About SandeepSingh

Hi, I am working in IT industry with having more than 15 year of experience, worked as an Oracle DBA with a Company and handling different databases like Oracle, SQL Server , DB2 etc Worked as a Development and Database Administrator.

Leave a Reply