Monday, August 9, 2010

what is TWO_TASK

TWO_TASK is an environment variable used to specify that connections should be made to a remote database (via SQL*Net) without specifying a service name (tnsnames.ora entry). This is equivalent to LOCAL registry entry on Windows platforms

Unix/Linux:
export TWO_TASK=DATABASE1


Windows:set TWO_TASK=DATABASE1

From command  prompt  sqlplus  username/passwd will connect  to  remote  DATABASE1  defined  in $ORACLE_HOME/network/admin/tnsnames.ora

TWO_TASK

No comments: