Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: setting TWO_TASK

Re: setting TWO_TASK

From: <markp7832_at_my-deja.com>
Date: Tue, 16 Nov 1999 14:40:55 GMT
Message-ID: <80rqdm$k9$1@nnrp1.deja.com>


In article <80rp33$vho$1_at_nnrp1.deja.com>,   screwbai_at_my-deja.com wrote:
> Do you know how you set TWO_TASK?
>
> What does this parameter do?
>

The $TWO_TASK parameter exists on most if not all Unix versions of Oracle and is used to set the sqlnet (net8) default connect string used when connecting to Oracle without specifying an explicit destination so that when you type userid/password you get userid/password_at_sqlnet_dest pointed to by the TWO_TASK parameter. This overrides the setting of $ORACLE_SID. In borne shell you set it with:
TWO_TASK=sqlnet_alias; export TWO_TASK
and in korn
export TWO_TASK=sqlnet_alias

If you do not set TWO_TASK Oracle connects to the sid pointed to by $ORACLE_SID and gives you a 'beq' or local connection.

I hope this answers your question.

--
Mark D. Powell -- The only advice that counts is the advice that  you follow so follow your own advice --

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Tue Nov 16 1999 - 08:40:55 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US