dbTalk Databases Forums  

instance

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss instance in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nick
 
Posts: n/a

Default instance - 02-22-2008 , 04:24 PM






When you use the sql*plus connect command, how does sql*plus know
which instance to connect you to? Does this depend on the value of the
ORACLE_SID variable?

Reply With Quote
  #2  
Old   
DA Morgan
 
Posts: n/a

Default Re: instance - 02-22-2008 , 10:16 PM






nick wrote:
Quote:
When you use the sql*plus connect command, how does sql*plus know
which instance to connect you to? Does this depend on the value of the
ORACLE_SID variable?
Depends on what you specify as a connect string.

If none then ORACLE_SID. Otherwise the mapping in your TNSNAMES.ORA.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #3  
Old   
DA Morgan
 
Posts: n/a

Default Re: instance - 02-22-2008 , 10:16 PM



nick wrote:
Quote:
When you use the sql*plus connect command, how does sql*plus know
which instance to connect you to? Does this depend on the value of the
ORACLE_SID variable?
Depends on what you specify as a connect string.

If none then ORACLE_SID. Otherwise the mapping in your TNSNAMES.ORA.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #4  
Old   
DA Morgan
 
Posts: n/a

Default Re: instance - 02-22-2008 , 10:16 PM



nick wrote:
Quote:
When you use the sql*plus connect command, how does sql*plus know
which instance to connect you to? Does this depend on the value of the
ORACLE_SID variable?
Depends on what you specify as a connect string.

If none then ORACLE_SID. Otherwise the mapping in your TNSNAMES.ORA.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #5  
Old   
DA Morgan
 
Posts: n/a

Default Re: instance - 02-22-2008 , 10:16 PM



nick wrote:
Quote:
When you use the sql*plus connect command, how does sql*plus know
which instance to connect you to? Does this depend on the value of the
ORACLE_SID variable?
Depends on what you specify as a connect string.

If none then ORACLE_SID. Otherwise the mapping in your TNSNAMES.ORA.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #6  
Old   
Mark D Powell
 
Posts: n/a

Default Re: instance - 02-24-2008 , 01:17 PM



On Feb 22, 11:16*pm, DA Morgan <damor... (AT) psoug (DOT) org> wrote:
Quote:
nick wrote:
When you use the sql*plus connect command, how does sql*plus know
which instance to connect you to? Does this depend on the value of the
ORACLE_SID variable?

Depends on what you specify as a connect string.

If none then ORACLE_SID. Otherwise the mapping in your TNSNAMES.ORA.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damor...@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Groupwww.psoug.org
Nick, if Daniel's comment on what you pass as a connect string is not
clear to you then he is referring to passing the tnsnames.ora service
name in the connect string as in "sqlplus bob@service".

You can also, at least on UNIX platforms, define an environment
variable $TWO_TASK and if you issue "sqlplus bob" the service name
that the value of TWO_TASK is set to will be used instead of the value
of $ORACLE_SID so that effectivey you have entered: "sqlplus bob@
$TWO_TASK"

HTH -- Mark D Powell --






Reply With Quote
  #7  
Old   
Mark D Powell
 
Posts: n/a

Default Re: instance - 02-24-2008 , 01:17 PM



On Feb 22, 11:16*pm, DA Morgan <damor... (AT) psoug (DOT) org> wrote:
Quote:
nick wrote:
When you use the sql*plus connect command, how does sql*plus know
which instance to connect you to? Does this depend on the value of the
ORACLE_SID variable?

Depends on what you specify as a connect string.

If none then ORACLE_SID. Otherwise the mapping in your TNSNAMES.ORA.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damor...@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Groupwww.psoug.org
Nick, if Daniel's comment on what you pass as a connect string is not
clear to you then he is referring to passing the tnsnames.ora service
name in the connect string as in "sqlplus bob@service".

You can also, at least on UNIX platforms, define an environment
variable $TWO_TASK and if you issue "sqlplus bob" the service name
that the value of TWO_TASK is set to will be used instead of the value
of $ORACLE_SID so that effectivey you have entered: "sqlplus bob@
$TWO_TASK"

HTH -- Mark D Powell --






Reply With Quote
  #8  
Old   
Mark D Powell
 
Posts: n/a

Default Re: instance - 02-24-2008 , 01:17 PM



On Feb 22, 11:16*pm, DA Morgan <damor... (AT) psoug (DOT) org> wrote:
Quote:
nick wrote:
When you use the sql*plus connect command, how does sql*plus know
which instance to connect you to? Does this depend on the value of the
ORACLE_SID variable?

Depends on what you specify as a connect string.

If none then ORACLE_SID. Otherwise the mapping in your TNSNAMES.ORA.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damor...@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Groupwww.psoug.org
Nick, if Daniel's comment on what you pass as a connect string is not
clear to you then he is referring to passing the tnsnames.ora service
name in the connect string as in "sqlplus bob@service".

You can also, at least on UNIX platforms, define an environment
variable $TWO_TASK and if you issue "sqlplus bob" the service name
that the value of TWO_TASK is set to will be used instead of the value
of $ORACLE_SID so that effectivey you have entered: "sqlplus bob@
$TWO_TASK"

HTH -- Mark D Powell --






Reply With Quote
  #9  
Old   
Mark D Powell
 
Posts: n/a

Default Re: instance - 02-24-2008 , 01:17 PM



On Feb 22, 11:16*pm, DA Morgan <damor... (AT) psoug (DOT) org> wrote:
Quote:
nick wrote:
When you use the sql*plus connect command, how does sql*plus know
which instance to connect you to? Does this depend on the value of the
ORACLE_SID variable?

Depends on what you specify as a connect string.

If none then ORACLE_SID. Otherwise the mapping in your TNSNAMES.ORA.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damor...@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Groupwww.psoug.org
Nick, if Daniel's comment on what you pass as a connect string is not
clear to you then he is referring to passing the tnsnames.ora service
name in the connect string as in "sqlplus bob@service".

You can also, at least on UNIX platforms, define an environment
variable $TWO_TASK and if you issue "sqlplus bob" the service name
that the value of TWO_TASK is set to will be used instead of the value
of $ORACLE_SID so that effectivey you have entered: "sqlplus bob@
$TWO_TASK"

HTH -- Mark D Powell --






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.