DBA Hub

📋Steps in this guide1/1

Set env variables using srvctl

-- setenv to set env variables.(ORCL is the db_unique_name)

oracle configurationintermediate
by OracleDba
15 views
1

Set env variables using srvctl

Code/Command (click line numbers to comment):

1
2
3
4
5
-- setenv to set env variables.(ORCL is the db_unique_name)
srvctl setenv database -db ORCL -env "ORACLE_HOME=/oracle/app/oracle/product/12.1.0.2/dbhome_1"
srvctl setenv database -db ORCL -env "TNS_ADMIN=/oracle/app/oracle/product/12.1.0.2/dbhome_1/network/admin"
--getenv to view the env setting:
srvctl getenv database -db ORCL

Comments (0)

Please to add comments

No comments yet. Be the first to comment!