Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> RE: Database name embedded in controlfile -- redundant?
If that's true then what does Oracle do with the database name
specified as part of the "CREATE DATABASE XYZ" command?
Here's where XYZ is specified:
ORACLE_SID=XYZ
DB_NAME = XYZ (in init.ora)
CREATE DATABASE XYZ ...
Since Oracle is supposedly using the "XYZ" in init.ora to stamp the
newly created control file, redo logs and SYSTEM datafile, what does
it do with the "XYZ" in "CREATE DATABASE"?
Or put another way, if Oracle is using the "XYZ" in "CREATE DATABASE" to stamp the newly created control file, redo logs and SYSTEM datafile, what does it do with the "XYZ" in init.ora?
Everyone seems to agree that the "XYZ" in ORACLE_SID is only used to find the default initXYZ.ora upon startup when no "pfile=" is specified.
-----Original Message-----
>What is the exact relationship between the database name in CREATE
>DATABASE and the DB_NAME parameter in init.ora?
>
>Is there ever a legitimate reason for not making them the same?
>
>It seems that ORACLE_SID environment variable tells Oracle about which
>init<SID>.ora to use. It doesn't use the environment variable to
>match up with the database name embedded within the controlfile.
>
>What is the purpose of having the database name inside the
>controlfile? Redundancy?
Received on Tue May 26 1998 - 04:42:08 CDT