11gr2 installation
TRANSCRIPT
-
8/3/2019 11gR2 Installation
1/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 DesktopEnvironment)"]
Step 2: Edit /etc/X11/xorg.confYou should already have
Section "Device"Identifier "Videocard0"Driver "vmware"EndSection
Add the following monitor section
Section "Monitor"Identifier "Monitor0"HorizSync 1.0 - 10000.0VertRefresh 1.0 - 10000.0EndSection
Modify the existing Screen sectionNote to replace the following 16001200 string with the highest resolution yourmonitor can handle.
Section "Screen"Identifier "Screen0"Device "Videocard0"Monitor "Monitor0"DefaultDepth 24SubSection "Display"Viewport 0 0
Depth 24Modes "1600x1200" "800x600" "640x480"EndSubSectionEndSection
Step 3: Start X# startxxauth: creating new authority file /root/.serverauth.3481
-
8/3/2019 11gR2 Installation
2/37
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-lockrm: 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 soft nproc 2047oracle hard nproc 16384oracle soft nofile 4096oracle hard nofile 65536oracle soft stack 10240
vi /etc/sysctl.conf
fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586
-
8/3/2019 11gR2 Installation
3/37
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 wordRetype 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
# /sbin/fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disk labelBuilding a new DOS disklabel. Changes will remain in memory only, until you decideto write them. After that, of course, the previous content won't be recoverable. The
-
8/3/2019 11gR2 Installation
4/37
number of cylinders for this disk is set to 3263.There is nothing wrong with that, butthis 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): nCommand action
e extendedp primary partition (1-4)
ePartition number (1-4): 1First cylinder (1-3263, default 1):Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-3263, default 3263):Using default value 3263
Command (m for help): nCommand action
l logical (5 or over)p primary partition (1-4)
lFirst cylinder (1-3263, default 1):Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-3263, default 3263):Using default value 3263
Command (m for help): wThe 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 DSAsignature: NOKEY, key ID 1e5e0159warning: oracleasm-support-2.1.4-1.el5.x86_64.rpm: Header V3 DSA signature:NOKEY, key ID b38a8516Preparing...########################################### [100%]
-
8/3/2019 11gR2 Installation
5/37
-
8/3/2019 11gR2 Installation
6/37
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*
-
8/3/2019 11gR2 Installation
7/37
Add ORACLE_BASE, ORACLE_HOME and PATH to .bash profile under oracle home
directory
su - oracle
vi .bash_profileexport ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid#export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1export PATH=$ORACLE_HOME/bin:$PATH:.export ORACLE_BASE=/u01/app/oracle/:wq
-
8/3/2019 11gR2 Installation
8/37
Cluster Installation:
Run the below command as root user as there is bug during installation
-
8/3/2019 11gR2 Installation
9/37
cd /opt/grid
./runInstaller
-
8/3/2019 11gR2 Installation
10/37
-
8/3/2019 11gR2 Installation
11/37
-
8/3/2019 11gR2 Installation
12/37
-
8/3/2019 11gR2 Installation
13/37
-
8/3/2019 11gR2 Installation
14/37
-
8/3/2019 11gR2 Installation
15/37
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
-
8/3/2019 11gR2 Installation
16/37
Click on create
-
8/3/2019 11gR2 Installation
17/37
-
8/3/2019 11gR2 Installation
18/37
Connect as SYSASM user and create the Volume
-
8/3/2019 11gR2 Installation
19/37
ORACLE SOFTWARE INSTALLATION STEPS
# vi /etc/hosts
IP address and hostname of the local machine:
-
8/3/2019 11gR2 Installation
20/37
-
8/3/2019 11gR2 Installation
21/37
-
8/3/2019 11gR2 Installation
22/37
-
8/3/2019 11gR2 Installation
23/37
-
8/3/2019 11gR2 Installation
24/37
Clicks continue irrespective of the error count
-
8/3/2019 11gR2 Installation
25/37
-
8/3/2019 11gR2 Installation
26/37
-
8/3/2019 11gR2 Installation
27/37
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
-
8/3/2019 11gR2 Installation
28/37
Select the Option and click Next
Click Next
Give the database name oracl
-
8/3/2019 11gR2 Installation
29/37
Click Next
Select the option Configure Enterprise Manager if needed
-
8/3/2019 11gR2 Installation
30/37
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.
-
8/3/2019 11gR2 Installation
31/37
Click Browse and select FRA
Click Ok and then Next you will get the below screen
Click Next
-
8/3/2019 11gR2 Installation
32/37
-
8/3/2019 11gR2 Installation
33/37
-
8/3/2019 11gR2 Installation
34/37
Click Finish
-
8/3/2019 11gR2 Installation
35/37
-
8/3/2019 11gR2 Installation
36/37
-
8/3/2019 11gR2 Installation
37/37
SQL> select name, open_mode from v$database;
# vi /etc/rc.d/rc5.d/S99kernel
chmod -R 777 /dev/sdb*