Pages

Sunday, February 23, 2014

Installing Oracle Restart

Download the software from My Oracle Support.

From the file download window, click the file name to download the selected software.
$ cd /u01/app/oracle
$ mkdir software
$ cd software
$ unzip p13390677_112040_Linux-x86-64_3of7.zip

$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 1884 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 4063 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-01-07_08-33-29PM. Please wait ...

On Download Software Updates screen, select Skip software updates.

On Select Installation Option screen, select Install Oracle Grid Infrastructure Software Only.

The Selected Language is English. Click Next to continue.

On Privileged Operation System Groups screen, select the Privileged Operating System Groups. Click Next.

As dba group is selected for all, this group will not allow job role separation. A warning will appear. Click Yes.

On Specify Installation Location screen, the Oracle Base path appears by default. Accept the default values or enter the Grid Infrastructure home directory path in which you want to install Oracle Restart. The directory path should not contain spaces.

This screen checks that the system meets the minimum requirements for the installation and configuration.

Correct any errors that Oracle Universal Installer may have found. If there are no issues, you will directly move to the Summary screen.

Review the Summary screen. Click Install button if the information seems OK.

The Install Product page provides status so that you can monitor installation progress as Installer continues.

As root, execute the configuration scripts.
 
# /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.

To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:
/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl

To configure Grid Infrastructure for a Cluster execute the following command:
/u01/app/11.2.0/grid/crs/config/config.sh
This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.

Click on Close to exit from Installer.

# /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'dba'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node orarac1 successfully pinned.
Adding Clusterware entries to upstart

orarac1     2014/01/07 21:28:46     /u01/app/11.2.0/grid/cdata/orarac1/backup_20140107_212846.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server

Disable HAS
Disable automatic startup of Oracle High Availability Services when server boots up.
# crsctl disable has

Enable HAS
Enable automatic startup of Oracle High Availability Services when server boots up.
# crsctl enable has

Check HAS Status
# crsctl config has

Add Listener to HAS
$ srvctl add listener -l LISTENER -p 1521 -o /u01/app/11.2.0/grid

Start Listener
$ srvctl start listener -l LISTENER

Stop Listener
$ srvctl stop listener -l LISTENER

Remove Listener from HAS
$ srvctl remove listener -l LISTENER

Add Database to HAS
$ srvctl add database -d orcl -o /u01/app/oracle/product/11.2.0/dbhome_1 -m example.com

Start Database
$ srvctl start database -d orcl

Start Database in nomount mode
$ srvctl start database -d orcl -o nomount

Start Database in mount mode
$ srvctl start database -d orcl -o mount

Stop Database
$ srvctl stop database -d orcl

Remove Database from HAS
$ srvctl remove database -d orcl


Configuring Data Guard to HAS

Primary:


$ srvctl add listener -p tcp:1521 -o /u01/app/11.2.0/grid
$ srvctl add database -d  orcl  -o /u01/app/oracle/product/11.2.0/dbhome_1 -n oradg1  -i orcl -s OPEN -t IMMEDIATE -r PRIMARY -y AUTOMATIC
$ srvctl add database -d  orcl  -o /u01/app/oracle/product/11.2.0/dbhome_1 -n oradg1  -i orcl -s MOUNT -t IMMEDIATE -r PHYSICAL_STANDBY  -y AUTOMATIC
$ srvctl add service -d orcl -s orcl_prim  -l  PRIMARY -y AUTOMATIC -q TRUE -e SELECT -m BASIC -w 10 -z 150


Standby:

$ srvctl add listener -p tcp:1521 -o
/u01/app/11.2.0/grid
$ srvctl add database -d  orcls  -o /u01/app/oracle/product/11.2.0/dbhome_1 -n oradg2  -i orcl -s MOUNT -t IMMEDIATE -r PHYSICAL_STANDBY -y AUTOMATIC
$ srvctl add service -d orcls -s orcl_prim  -l PRIMARY -y AUTOMATIC -q TRUE -e SELECT -m BASIC -w 10 -z 150

No comments:

Post a Comment