ln1d:/u01/oracle/software/11g_gridinfrastructure/grid>€¦ · web view11/02/2010 · hdisk6...

12
Installation of grid infrastructure software in 11g release 2 involves a stand alone installation or a cluster installation with or without asm disks. In this example we will install a stand alone grid infrastructure with asm disks and an asm instance. Configuring Disks for ASM To ensure that the disks are available, enter the following command: LN1D:/u01/oracle> /usr/sbin/lsdev -Cc disk hdisk0 Available Virtual SCSI Disk Drive hdisk1 Available Virtual SCSI Disk Drive hdisk2 Available Virtual SCSI Disk Drive hdisk3 Available Virtual SCSI Disk Drive hdisk4 Available Virtual SCSI Disk Drive hdisk5 Available Virtual SCSI Disk Drive hdisk6 Available Virtual SCSI Disk Drive hdisk7 Available Virtual SCSI Disk Drive hdisk8 Available Virtual SCSI Disk Drive LN1D:/u01/oracle> ls -l /dev | grep asm crw-rw---- 1 oracle dba 17, 4 Feb 16 14:31 asm_disk1 crw-rw---- 1 oracle dba 17, 2 Feb 16 14:31 asm_disk2 crw-rw---- 1 oracle dba 17, 1 Feb 16 14:31 asm_disk3 crw-rw---- 1 oracle dba 17, 8 Feb 16 14:31 asm_disk4 crw-rw---- 1 oracle dba 17, 3 Feb 16 14:31 asm_disk5 crw-rw---- 1 oracle dba 17, 7 Feb 16 14:31 asm_disk6 crw-rw---- 1 oracle dba 17, 5 Feb 16 14:31 asm_disk7 Create a staging area for the software and then begin the installation – Software zip file copied to an unzipped to create foll directory . /u01/oracle/software/11g_gridinfrastructure/grid Get rootpre.sh run from the same area above with root user. export DISPLAY=10.107.105.182:0.0 = Your laptop’s ip address. Launch installer – LN1D:/u01/oracle/software/11g_gridinfrastructure/grid> ./runInstaller ******************************************************************************** Your platform requires the root user to perform certain pre-installation OS preparation. The root user should run the shell script 'rootpre.sh' before you proceed with Oracle installation. rootpre.sh can be found at the top level of the CD or the stage area. Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle installation. Answer 'n' to abort installation and then ask root to run 'rootpre.sh'. ******************************************************************************** Has 'rootpre.sh' been run by root? [y/n] (n) y Starting Oracle Universal Installer... Checking Temp space: must be greater than 190 MB. Actual 2041 MB Passed Checking swap space: must be greater than 150 MB. Actual 8192 MB Passed

Upload: dinhtram

Post on 16-Jul-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

Installation of grid infrastructure software in 11g release 2 involves a stand alone installation or a cluster installation with or without asm disks.

In this example we will install a stand alone grid infrastructure with asm disks and an asm instance.

Configuring Disks for ASM

To ensure that the disks are available, enter the following command:

LN1D:/u01/oracle> /usr/sbin/lsdev -Cc diskhdisk0 Available Virtual SCSI Disk Drivehdisk1 Available Virtual SCSI Disk Drivehdisk2 Available Virtual SCSI Disk Drivehdisk3 Available Virtual SCSI Disk Drivehdisk4 Available Virtual SCSI Disk Drivehdisk5 Available Virtual SCSI Disk Drivehdisk6 Available Virtual SCSI Disk Drivehdisk7 Available Virtual SCSI Disk Drivehdisk8 Available Virtual SCSI Disk Drive

LN1D:/u01/oracle> ls -l /dev | grep asmcrw-rw---- 1 oracle dba 17, 4 Feb 16 14:31 asm_disk1crw-rw---- 1 oracle dba 17, 2 Feb 16 14:31 asm_disk2crw-rw---- 1 oracle dba 17, 1 Feb 16 14:31 asm_disk3crw-rw---- 1 oracle dba 17, 8 Feb 16 14:31 asm_disk4crw-rw---- 1 oracle dba 17, 3 Feb 16 14:31 asm_disk5crw-rw---- 1 oracle dba 17, 7 Feb 16 14:31 asm_disk6crw-rw---- 1 oracle dba 17, 5 Feb 16 14:31 asm_disk7

Create a staging area for the software and then begin the installation –

Software zip file copied to an unzipped to create foll directory .

/u01/oracle/software/11g_gridinfrastructure/grid

Get rootpre.sh run from the same area above with root user.

export DISPLAY=10.107.105.182:0.0 = Your laptop’s ip address.

Launch installer –

LN1D:/u01/oracle/software/11g_gridinfrastructure/grid> ./runInstaller********************************************************************************

Your platform requires the root user to perform certain pre-installationOS preparation. The root user should run the shell script 'rootpre.sh' beforeyou proceed with Oracle installation. rootpre.sh can be found at the top levelof the CD or the stage area.

Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracleinstallation.Answer 'n' to abort installation and then ask root to run 'rootpre.sh'.

********************************************************************************

Has 'rootpre.sh' been run by root? [y/n] (n)y

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 190 MB. Actual 2041 MB PassedChecking swap space: must be greater than 150 MB. Actual 8192 MB PassedChecking monitor: must be configured to display at least 256 colors >>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] y

>>> Ignoring required pre-requisite failures. Continuing...

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-02-17_07-28-35AM. Please wait ...

Click on Change Discovery Path and enter /dev/asm* - ok

Click on external and 5 disks and next – Ensure disk group is named DATA

Next

Next

Next

Yes

Next

Yes

Next

Yes

Next

Finish

Click ok once completed

At this stage Oracle starts up the css services – cluster services –this must run even if RAC is not used –

LN1D:/u01/oracle> ps -ef |grep css oracle 299010 335872 0 13:46:07 pts/1 0:00 grep css oracle 418028 1 0 13:08:40 - 0:01 /u01/oracle/product/11.2.0/grid/bin/cssdagent oracle 503818 1 3 13:09:06 - 0:10 /u01/oracle/product/11.2.0/grid/bin/ocssd.bin

Close

Check ASM instance and cluster services –

LN1D:/u01/oracle> ps -ef |grep pmon oracle 483352 1 0 13:10:19 - 0:00 asm_pmon_+ASMLN1D:/u01/oracle>

LN1D:/u01/oracle> ps -ef |grep css – started by oracle once root.sh is run…. oracle 389164 335872 0 13:50:25 pts/1 0:00 grep css oracle 418028 1 0 13:08:40 - 0:01 /u01/oracle/product/11.2.0/grid/bin/cssdagent oracle 503818 1 3 13:09:06 - 0:12 /u01/oracle/product/11.2.0/grid/bin/ocssd.binLN1D:/u01/oracle>

Add second disk group called FRA – using asmca from gridinfrastructure home.

Create listener config from gridinfrastructure home/bin

+ASM:/u01/oracle/product/11.2.0/grid/bin> ./netca

Oracle Net Services Configuration:Configuring Listener:LISTENERListener configuration complete.Oracle Net Listener Startup: Listener started successfully.Oracle Net Services configuration successful. The exit code is 0+ASM:/u01/oracle/product/11.2.0/grid/bin>

Make sure listener.ora in the grid home has entry for ASM – Otherwise dbca will not create a new db and configure it via the asm instance –

SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = +ASM) (ORACLE_HOME = /u01/oracle/product/11.2.0/grid) (SID_NAME = +ASM) ) )

LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = DEVU042)(PORT = 1521)) ) )

Lsnrctl start – from the grid infrastructure home….

XXXXXXXXXXXXXXXXXXXXXX--------XXXXXXXXXXXXXXXXXXXXXXXX