banner



How To Set Oracle_home And Oracle_sid In Windows

Oracle Database - Oracle Home Directory (ORACLE_HOME|OH)

Table of Contents

Most

The Oracle dwelling house directory (ORACLE_HOME) is the directory where y'all choose to install the software for a particular Oracle product. You lot must install unlike Oracle products or different releases of the aforementioned Oracle product in separate Oracle domicile directories. When you run Oracle Universal Installer, it prompts you lot to specify the path to this directory as well every bit a name that identifies it. The directory that yous specify must be a subdirectory of the Oracle base directory. Oracle recommends that you lot specify a path like to the following for the Oracle dwelling directory:

              oracle_base/product/11.2.0/dbhome_1            

Oracle Universal Installer creates the directory path that you specify under the Oracle base directory. It also sets the right permissions on it. You do not need to create this directory.

During installation, you must not specify an existing directory that has predefined permissions applied to it equally the Oracle dwelling house directory. If you exercise, then you may experience installation failure due to file and group ownership permission errors.

Question marking

In Oracle Database files and programs, a question mark (?) represents the value of the ORACLE_HOME environment variable. For example, Oracle Database expands the question marker in the following SQL statement to the full path of the Oracle abode directory:

              SQL> ALTER TABLESPACE TEMP ADD DATAFILE '?/dbs/temp02.dbf' SIZE 200M            

How to identify an existing Oracle abode directory

On Windows

To check the path of the Oracle dwelling directory:

  • From the Offset carte, cull Programs, then Oracle - HOME_NAME, so Oracle Installation Products, then Universal Installer.

  • When the Welcome window appears, click Installed Products.

  • The Inventory window appears, listing all of the Oracle homes on the system and the products installed in each Oracle home.

On Linux

Enter the post-obit command to display the contents of the oratab file:

              # more /etc/oratab            

Entries are of the form:

              $ORACLE_SID:$ORACLE_HOME:<N|Y>            

where: ORACLE_SID

If the oratab file exists, and so information technology contains lines similar to the post-obit:

              *:/u03/app/oracle/production/11.2.0/dbhome_1:Due north *:/opt/orauser/infra_904:Due north *:/oracle/9.2.0:North            

The directory paths specified on each line identify Oracle abode directories. Directory paths that end with the user name of the Oracle software possessor that you want to utilise are valid choices for an Oracle base directory. If yous intend to use the oracle user to install the software, then you can choose i of the following directories listed in the previous example:

              /u03/app/oracle /oracle            

If possible, choose a directory path like to the first i (/u03/app/oracle). This path complies with the OFA guidelines.

Confirmation

From the orainventory dir:

              cat /u01/app/oraInventory/ContentsXML/inventory.xml            

Source: https://datacadamia.com/db/oracle/oracle_home

Posted by: robinsondointow.blogspot.com

0 Response to "How To Set Oracle_home And Oracle_sid In Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel