oracle 11g db creation

24
Oracle Database 11g Software Installation & Database Creation NAME : SURESH.V PLATFORM : ORACLE ENTERPRISE LINUX 5.x 64bit VERSION : 11.1.0.6.0 DATE : 29.06.2010

Upload: srinivas4312865

Post on 28-Apr-2015

74 views

Category:

Documents


1 download

DESCRIPTION

Oracle 11G DB creation

TRANSCRIPT

Page 1: Oracle 11G DB creation

Oracle Database 11g Software Installation

&

Database Creation

NAME : SURESH.VPLATFORM : ORACLE ENTERPRISE LINUX 5.x 64bitVERSION : 11.1.0.6.0DATE : 29.06.2010

Page 2: Oracle 11G DB creation

Oracle 11g Software Installation

Server Configuration

Operating System : Oracle Enterprise Linux 5.5 x86_64RAM : 8GBHard Disk : 1TBSwap : 10GBServer Name : of80.orafact.comIP Address : 192.168.1.80

Reference Documents

Books are downloaded from our intranet site http://connect.orafact.comRelease Notes for Linux ( B32001.pdf )Database Quick Installation Guide for Linux x86-64 (B32285.pdf)

Software

Softwarw downloaded from http://connect.orafact.com (V14230-01_1of2.zip & V14230-01_2of2.zip)[root@of80 ~]# cd /stage/

[root@of80 stage]# mkdir -p suresh/11.1.0.6[root@of80 suresh]# ls11.1.0.6

Enable the host to display X applications

Login as root user and issue the below command[root@of80 ~]# xhost +access control disabled, clients can connect from any host

/etc/hosts file

[root@of80 ~]# vi /etc/hosts127.0.0.1 of80.orafact.com of80 localhost.localdomain localhost192.168.1.80 of80.orafact.com of80

Hardware requirementsMemory Requirements

[root@of80 ~]# grep MemTotal /proc/meminfoMemTotal: 7971364 kB

[root@of80 ~]# grep SwapTotal /proc/meminfoSwapTotal: 10088780 kB

[root@of80 ~]# df -h /dev/shm/

Page 3: Oracle 11G DB creation

Filesystem Size Used Avail Use% Mounted ontmpfs 3.9G 0 3.9G 0% /dev/shm

System Architecture

[root@of80 ~]# uname -mx86_64

Disk Space Requirements

[root@of80 ~]# df -h /tmp/Filesystem Size Used Avail Use% Mounted on/dev/sda7 5.0G 215M 4.5G 5% /tmp

[root@of80 ~]# df -h /d01/Filesystem Size Used Avail Use% Mounted on/dev/sda8 767G 19G 710G 3% /d01

Software RequirementsOperating System Requirements

[root@of80 ~]# cat /etc/issueEnterprise Linux Enterprise Linux Server release 5.5 (Carthage)Kernel \r on an \m

[root@of80 ~]# cat /proc/version Linux version 2.6.18-194.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Mon Mar 29 22:10:29 EDT 2010

[root@of80 ~]# uname -aLinux of80.orafact.com 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

Package Requirements

[root@of80 ~]# rpm -qabinutils-2.17.50.0.6-2.el5elfutils-libelf-0.125-3.el5elfutils-libelf-devel-0.125glibc-2.5-12glibc-common-2.5-12glibc-devel-2.5-12glibc-headers-2.5-12gcc-4.1.1-52gcc-c++-4.1.1-52libaio-0.3.106libgcc-4.1.1-52libstdc++-4.1.1make-3.81-1.1

Page 4: Oracle 11G DB creation

[root@of80 ~]# rpm -Uvh *.rpmcompat-libstdc++-33-3.2.3-61.x86_64.rpmlibaio-devel-0.3.106-3.2.x86_64.rpmnumactl-devel-0.9.8-7.el5.x86_64.rpmsysstat-5.0.6-3.i586.rpmsysstat-7.0.2-3.el5.x86_64.rpmunixODBC-2.2.11-7.1.x86_64.rpmunixODBC-devel-2.2.11-7.1.x86_64.rpm

Creating OS Group and User

[root@of80 ~]# groupadd dba[root@of80 ~]# useradd -g dba suresh[root@of80 ~]# passwd sureshChanging password for user suresh.New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully.

[root@of80 ~]# id sureshuid=501(suresh) gid=501(dba) groups=501(dba)

Configuring Kernel Parameters

[root@of80 etc]# vi sysctl.conffs.file-max = 6815744kernel.shmmax = 68719476736kernel.shmall = 4294967296kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 1024 65500net.core.rmem_default = 4194304net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576

[root@of80 etc]# sysctl -p

Setting SHELL Limits for the User

[root@of80 ~]# vi /etc/security/limits.conf suresh soft nproc 2047 suresh hard nproc 16384 suresh soft nofile 1024 suresh hard nofile 65536

[root@of80 ~]# vi /etc/pam.d/loginsession required pam_limits.so

Page 5: Oracle 11G DB creation

[root@of80 ~]# vi /etc/profile if [ $USER = "suresh" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi

Creating Required Directories

[root@of80 ~]# cd /d01/

[root@of80 d01]# mkdir oracle11g

[root@of80 d01]# chown -R suresh:dba /d01/oracle11g/[root@of80 d01]# chmod -R 775 /d01/oracle11g/

Configuring the User’s Environment

[root@of80 d01]# su - suresh

[suresh@of80 ~]$ echo $SHELL/bin/bash

[suresh@of80 ~]$ umask0022

[suresh@of80 ~]$ vi ofdb.envexport ORACLE_BASE=/d01/oracle11gexport ORACLE_HOME=/d01/oracle11g/11.1.0.6export ORACLE_SID=ofdbexport PATH=$ORACLE_HOME/bin:$PATHexport LD_LIBRARY_PATH=$ORACLE_HOME/lib

Installing the Oracle Software

[suresh@of80 ~]$ cd /stage/suresh/11.1.0.6/database/

[suresh@of80 database]$ lsdoc install README response rpm runcluvfy.sh runInstaller source stage upgrade welcome.html

[suresh@of80 database]$ ./runInstaller

Page 6: Oracle 11G DB creation

Select the Oracle Database 11g and Click Next

Select the Basic InstalltionEnter ORACLE_BASE & ORACLE_HOMEInstallation Type - Enterprise EditionUnix DBA group - dbaClick Next

Page 7: Oracle 11G DB creation

Enter the Oracle Inventory directory & group and Click Next

Verify all the Product-Specific Pre-Requisite Checks are succeeded and Click Next

Page 8: Oracle 11G DB creation

Click Install

Installation on going....

Page 9: Oracle 11G DB creation

Execute the scripts as root user and Click OK

[root@of80 ~]# /d01/suresh/oraInventory/orainstRoot.sh Changing permissions of /d01/suresh/oraInventory to 770.Changing groupname of /d01/suresh/oraInventory to dba.The execution of the script is complete

[root@of80 bin]# /d01/suresh/oracle/product/11.1.0/db_1/root.sh Running Oracle 11g root.sh script...

The following environment variables are set as: ORACLE_OWNER= suresh ORACLE_HOME= /d01/suresh/oracle/product/11.1.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ...

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

Oracle 11g Software Installation Completed successfully.

Page 10: Oracle 11G DB creation

Oracle 11g Database Creation

Setting Environmental variable

[suresh@of80 ~]$ . ofdb.env [suresh@of80 ~]$ dbca

Database Configuration Assistant

Welcome screen Click Next

Select Create Database and Click Next

Page 11: Oracle 11G DB creation

Select General Purpose or Transaction Processing and Click Next

Enter Global Database Name as ofdb.orafact.com and SID as ofdb and Click Next

Page 12: Oracle 11G DB creation

Select Configure Enterprise Manager and Click Next

Database configuration assistant will give you the below warning

Page 13: Oracle 11G DB creation

Network Configuration Assistant

Use netca utility to configure the listener from another terminal[suresh@of80 ~]$ . ofdb.env [suresh@of80 ~]$ netca

Select Listener Configuration and Click Next

Select Add and Click Next

Page 14: Oracle 11G DB creation

Type Listener name and Click Next

Select Protocol as TCP and Click Next

Page 15: Oracle 11G DB creation

Select the Use the standard port number of 1521 and Click Next

Select No and Click Next

Page 16: Oracle 11G DB creation

Listener configuration is complete and Click Next followed by finish

By default Listener will be started automatically. Verify by using LSNRCTL Utility

[suresh@of80 ~]$ lsnrctl statusLSNRCTL for Linux: Version 11.1.0.6.0 - Production on 29-JUN-2010 16:58:20Copyright (c) 1991, 2007, Oracle. All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=of80.orafact.com)(PORT=1521)))STATUS of the LISTENER------------------------Alias LISTENERVersion TNSLSNR for Linux: Version 11.1.0.6.0 - ProductionStart Date 29-JUN-2010 15:01:17Uptime 0 days 1 hr. 57 min. 19 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter File /d01/suresh/oracle/product/11.1.0/db_1/network/admin/listener.oraListener Log File /d01/suresh/oracle/diag/tnslsnr/of80/listener/alert/log.xmlListening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=of80.orafact.com)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))Services Summary...Service "ofdb.orafact.com" has 1 instance(s). Instance "ofdb", status READY, has 1 handler(s) for this service...Service "ofdbXDB.orafact.com" has 1 instance(s). Instance "ofdb", status READY, has 1 handler(s) for this service...Service "ofdb_XPT.orafact.com" has 1 instance(s). Instance "ofdb", status READY, has 1 handler(s) for this service...The command completed successfully

Page 17: Oracle 11G DB creation

Go back to the warning window and click OK. Set Password for all accounts and Click Next

Select File System Option and Click Next

Page 18: Oracle 11G DB creation

Select Use Database File Locations from Template and Click Next

Select Specify Flash Recovery Area and Click Next

Page 19: Oracle 11G DB creation

Click Next

Select Typical and Memory Size as 600 MB. Click Next

Page 20: Oracle 11G DB creation

Select the security settings as below and Click Next

Select Enable automatic maintenance tasks and Click Next

Page 21: Oracle 11G DB creation

Click Next

Select the Create Database option and Click Finish

Page 22: Oracle 11G DB creation

Click OK to Confirm

It will be creating the database server.

Page 23: Oracle 11G DB creation

After successful completion of Database creation below screen will be displayed. Click Exit

Database creation completed successfully.

Launch browser and connect to URL https://of80.orafact.com:1158/emEnter user name as sys and password, connect as sysdba and Click login

Page 24: Oracle 11G DB creation

Home Page of Oracle Enterprise Manager(OEM)

********************************** End of Document *********************************