Sie sind auf Seite 1von 37

ORACLE GRID INFRASTRUCTURE INSTALLATION

Steps to improve the screen resolution any LINUX flavours. Here is how you fix that problem # cd /etc/X11 # vi xorg.conf Step 1: Install X and GNOME, if not already present. yum groupinstall "X Window System" "GNOME Desktop Environment" [Note: to install KDE, substitute the "GNOME..." string with "KDE (K Desktop Environment)"] Step 2: Edit /etc/X11/xorg.conf You should already have Section "Device" Identifier "Videocard0" Driver "vmware" EndSection Add the following monitor section Section "Monitor" Identifier "Monitor0" HorizSync 1.0 - 10000.0 VertRefresh 1.0 - 10000.0 EndSection Modify the existing Screen section Note to replace the following 16001200 string with the highest resolution your monitor can handle. Section "Screen" Identifier "Screen0" Device "Videocard0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Modes "1600x1200" "800x600" "640x480" EndSubSection EndSection Step 3: Start X # startx xauth: creating new authority file /root/.serverauth.3481

Fatal server error: Server is already active for display 0 If this server is no longer running, remove /tmp/.X0-lock and start again. # rm /tmp/.X0-lock rm: remove regular file `/tmp/.X0-lock'? y # init 6 (reboot) Add the below values to configure the Kernel values. vi /etc/security/limits.conf
oracle oracle oracle oracle oracle soft hard soft hard soft nproc nproc nofile nofile stack 2047 16384 4096 65536 10240

vi /etc/sysctl.conf fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586

Once saved to reflect the changes give the below command # sysctl -p Create Oracle user and group and create the directory and change permission # groupadd -g 1000 oinstall # groupadd -g 2000 dba # useradd -g oinstall -G dba -d /home/oracle -u 1002 -m oracle # passwd oracle Output: Changing password for user oracle. New UNIX password: BAD PASSWORD: it is based on a dictionary word Retype new UNIX password: passwd: all authentication tokens updated successfully. # mkdir -p /u01/app/oracle # chown oracle:oinstall -R /u01/ # chmod -R 755 /u01/ # fdisk -l # /sbin/fdisk <disk name> # /sbin/fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disk label Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The

number of cylinders for this disk is set to 3263.There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) e Partition number (1-4): 1 First cylinder (1-3263, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-3263, default 3263): Using default value 3263 Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (1-3263, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-3263, default 3263): Using default value 3263 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@localhost asmrpm]# partprobe Give W to save Do the above steps to all the disk which is been added to SAN Install RPMs which is need for OS level # cd /opt/asmrpm # rpm -ivh * --nodeps warning: oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159 warning: oracleasm-support-2.1.4-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID b38a8516 Preparing... ########################################### [100%]

1:oracleasm-support ########################################### [ 17%] 2:oracleasm-2.6.18194.el########################################### [ 33%] 3:oracleasm-2.6.18194.el########################################### [ 50%] 4:oracleasm-2.6.18194.el########################################### [ 67%] 5:oracleasm-2.6.18194.el########################################### [ 83%] 6:oracleasmlib ########################################### [100%] # /etc/init.d/oracleasm enable # /etc/init.d/oracleasm configure

Once the ASM RMPs are installed create disk for ASM # /etc/init.d/oracleasm createdisk DISK1 /dev/sdb5 # /etc/init.d/oracleasm listdisks DISK1 # /etc/init.d/oracleasm querydisk -p DISK1 Disk "DISK1" is a valid ASM disk /dev/sdb5: LABEL="DISK1" TYPE="oracleasm" # chmod -R 777 /dev/sdb*

Add ORACLE_BASE, ORACLE_HOME and PATH to .bash profile under oracle home directory su - oracle vi .bash_profile export ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid #export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 export PATH=$ORACLE_HOME/bin:$PATH:. export ORACLE_BASE=/u01/app/oracle/ :wq

Cluster Installation:

Run the below command as root user as there is bug during installation

cd /opt/grid ./runInstaller

If listener gets killed repeatedly then add this parameter in the listener.ora file

SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF This should already be there in listener.ora file ADR_BASE_LISTENER=/u01/app/oracle {the base location}

ASM Disk Configuration steps

Click on create

Click on OK

SQL> select name, total_mb, state from v$asm_diskgroup;

Manage ASM Dynamic volumes Login as root user and start the ACFS service to create dynamic vlolume manager

Connect as SYSASM user and create the Volume

ORACLE SOFTWARE INSTALLATION STEPS


# vi /etc/hosts IP address and hostname of the local machine:

Clicks continue irrespective of the error count

Oracle 11g Database Creation Steps

su oracle vi .bash_profile Add the entry for ORACLE_SID and edit the ORACLE_HOME to the Oracle binary location

Once the profile has been set open a new session as Oracle user and execute dbca

Click Next

Select the Option and click Next

Click Next

Give the database name oracl

Click Next Select the option Configure Enterprise Manager if needed

Select the Storage Type as ASM

Click Browse and Select DATA

Once Next is clicked it will ask for ASM password which was given during the GRID INFRASTRUCTURE installation.

Click Browse and select FRA

Click Ok and then Next you will get the below screen

Click Next

Click Finish

SQL> select name, open_mode from v$database;

# vi /etc/rc.d/rc5.d/S99kernel chmod -R 777 /dev/sdb*

Das könnte Ihnen auch gefallen