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: how to connect to second instance

Re: how to connect to second instance

From: Balaji <balajisrivatsan_at_hotmail.com>
Date: 21 May 2001 12:10:25 -0700
Message-ID: <487e3885.0105211110.4743c9cf@posting.google.com>

"Woodstock" <woodstock1172_at_yahoo.com.sg> wrote in message news:<9eb94a$39c$1_at_coco.singnet.com.sg>...
> I have a machine running oracle database. there are 2 instance installed and
> both are running. Instance #1 was setup when oracle ws install initially,
> while instance #2 was created at a later stage. Everytime I type
>
> SQL > connect internal
>
> I will be automatically connect to instance #1. How can i connect to the
> second instance?

Hi woodstock,

Letz take a small example. Let us call Instance 1 as one and Instance 2 as two.

By default the db will be connected to one. If you want to connect to instance 2 follow the following steps.

If you are working in Unix environment (say ksh)

$ export ORACLE_SID=two
type svrmgrl
then connect internal

select name from v$database ;

this should return instance name two.

If you are using windows mac

SET ORACLE_SID=two

Hope you are clear

Balaji Received on Mon May 21 2001 - 14:10:25 CDT

Original text of this message

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