Q

Is it necessary to set ORACLE_SID when creating a database?

Is it necessary to set ORACLE_SID for creating a database? How will it identify SID? Is it through the instance_name in the initsid.ora file? How is the password file helpful?

Is it necessary to set ORACLE_SID for Windows NT when creating a database? How will it identify SID? Is it through the instance_name in the initsid.ora file? How is the password file helpful?
If there are no other Oracle databases on the server, then it is not necessary to set the SID as this will be your default SID in the registry, although I usually set it anyway mostly out of habit. If you are creating another database manually via the command prompt then, yes, it is necessary to set the ORACLE_SID. If you have two or more databases running from multiple ORACLE_HOMEs, this complicates matters a bit more. In this case, you will want to set the ORACLE_SID and also modify your path (or use the Home Selector depending on the version) so that the ORACLE_HOME corresponding to that SID is placed first in your PATH. It is not recommended that you set ORACLE_HOME as an environment variable. For more information, see Chapter 6 of the Oracle9i Database Getting Started Release 2 (9.2) for Windows available on Oracle's Technology Network Web site.

Using a password file is basically one method of authenticating administrators to the database. When the initialization

parameter REMOTE_LOGIN_PASSWORDFILE is set to EXCLUSIVE, and a password file has been created, users connecting to the database as SYSOPER or SYSDBA will be prompted for a password. Note that operating system authentication takes precedence over password file authentication. If you belong to the OSDBA or OSOPER group and connect as SYSDBA or SYSOPER, you will be connected with associated administrative privileges regardless of the username/password that you specify. If your userid is not in the OSDBA or OSOPER groups, and you are not in the password file, then the connection will fail.

This was first published in October 2005

Dig deeper on Oracle database installation, upgrades and patches

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close