srvctl setenv nodeapps

Sets the environment variables for the node application configurations.


This command is only available with Oracle Clusterware.

Syntax and Parameters

Use the srvctl setenv nodeapps command with the following syntax model:

srvctl setenv nodeapps {-namevals "name=val[,name=val][...]" | 
    -nameval "name=val"} [-viponly] [-gsdonly] [-onsonly] [-verbose]

Table A-147 srvctl setenv nodeapps Parameters

Parameter Description
-envs "name=val[,name=val] [...]"

Comma-delimited list of name-value pairs of environment variables

-env "name=val"

Enables single environment variable to be set to a value that contains commas or other special characters


Modify only the VIP configuration


Modify only the GSD configuration


Modify only the ONS daemon configuration


Verbose output


To set an environment variable for all node applications:

$ srvctl setenv nodeapps -env "CLASSPATH=/usr/local/jdk/jre/rt.jar" -verbose