Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: ORACLE_SID
On Fri, 02 Mar 2007 10:20:56 -0800, DA Morgan wrote:
> gazzag wrote:
>
>> Frank, I may be wrong but I think that the OP is asking about changing >> the value of the variable ORACLE_SID, rather than the database >> identifier.
Unless the purpose of setting the value of ORACLE_SID is to tell the next Oracle tool to use a different database and database instance - from the same ORACLE_HOME - perhaps to start it.
oracle_at_fuzzy:~> export ORACLE_SID=orcl
oracle_at_fuzzy:~> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 2 21:01:13 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
SQL> show parameter db_name
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_name string orclSQL> exit
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 2 21:01:13 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
SQL> show parameter db_name
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_name string testSQL> exit
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 2 21:04:09 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> exit
Disconnected
oracle_at_fuzzy:~>
-- Hans Forbrich (mailto: Fuzzy.GreyBeard_at_gmail.com) *** Feel free to correct me when I'm wrong! *** Top posting [replies] guarantees I won't respond.Received on Fri Mar 02 2007 - 22:05:06 CST
![]() |
![]() |