Message-Id: <10530.109607@fatcity.com> From: Chuck Hamilton Date: Fri, 16 Jun 2000 12:32:10 -0700 (PDT) Subject: Re: TWO task --0-2044897763-961183930=:23326 Content-Type: text/plain; charset=us-ascii TWO_TASK is a way to set a default connect string for subsequent net8 connections. For example the following are equivalent: sqlplus user/password@mydb -and- TWO_TASK=mydb export TWO_TASK sqlplus user/password Where do you set it? Depends on what you want to use it for. If you want all connections for your login session to go to a specific database, set int in your .profile script. If you're writing a shell script that repeatedly connects to the same remote database, you could set it in the top of the script and then not have to specify an @connect-string each time you run sqlplus. "Gopal, Umesh" wrote: Can anyone please tell me the following : what is the significance of the TWO_TASK variable ?? where do I set it on a Sun Solaris machine and Oracle 8i? Thanks Umesh -- Author: Gopal, Umesh INET: ugopal@proxicom.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). --------------------------------- Do You Yahoo!? Send instant messages with Yahoo! Messenger. --0-2044897763-961183930=:23326 Content-Type: text/html; charset=us-ascii

TWO_TASK is a way to set a default connect string for subsequent net8 connections. For example the following are equivalent:

  1. sqlplus user/password@mydb

    -and-
  2. TWO_TASK=mydb
    export TWO_TASK
    sqlplus user/password

Where do you set it? Depends on what you want to use it for. If you want all connections for your login session to go to a specific database, set int in your .profile script. If you're writing a shell script that repeatedly connects to the same remote database, you could set it in the top of the script and then not have to specify an @connect-string each time you run sqlplus.

 
"Gopal, Umesh" wrote:




Can anyone please tell me the following :
what is the significance of the TWO_TASK variable ??
where do I set it on a Sun Solaris machine and Oracle 8i?

Thanks
Umesh

--
Author: Gopal, Umesh
INET: ugopal@proxicom.com

Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).



Do You Yahoo!?
Send instant messages with Yahoo! Messenger.