Anda di halaman 1dari 11

Swapna 11g(11.1.0.

6) software installation and database creation document

Step1>

downloaded software from my company intranet site http://192.168.1.150/ to stage area

Step2>

unzip the software

[root@of20 11g]# unzip V14216-01_1of2.zip

[root@of20 11g]# unzip V14216-01_2of2.zip

Step3>

create user under group dba

[root@of20 11g]# groupadd -g 1700 dba

[root@of20 11g]# useradd -u 1717 -g dba -d /d01/swapna -m swapna

[root@of20 11g]# passwd swapna

Step4>

give permissions to user

[root@of20 stage]# chown -R swapna:dba 11g/

[root@of20 stage]# chmod -R 755 11g/

Step 5>

switch into the root user and enable the xwindows using xhost +

[root@of20 stage]# xhost +

access control disabled, clients can connect from any host

Step6>

checking memory requirements

1>To see ram memory:

[root@of20 stage]# grep MemTotal /proc/meminfo

MemTotal: 8036872 kB
2>To see swap memory:

[root@of20 stage]# grep SwapTotal /proc/meminfo

SwapTotal: 8385920 kB

3>To see ram and swap memory:

[root@of20 stage]# free

total used free shared buffers cached

Mem: 8036872 7960888 75984 0 48968 7142732

-/+ buffers/cache: 769188 7267684

Swap: 8385920 0 8385920

Step7>

to check more shared memory (/dev/shm)and file descriptors

[root@of20 stage]# df -h /dev/shm

Filesystem Size Used Avail Use% Mounted on

tmpfs 3.9G 0 3.9G 0% /dev/shm

[root@of20 stage]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/sda2 20G 5.1G 14G 28% /

/dev/sda8 769G 16G 714G 3% /d01

/dev/sda7 5.0G 147M 4.6G 4% /tmp

/dev/sda6 5.0G 139M 4.6G 3% /home

/dev/sda5 97G 9.3G 83G 11% /stage

/dev/sda1 99M 12M 83M 13% /boot

tmpfs 3.9G 0 3.9G 0% /dev/shm


Step 8>
to check o/s version :

[root@of20 stage]# cat /etc/issue

Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)

Kernel \r on an \m

To check kernel version:

[root@of20 stage]# cat /proc/version

Linux version 2.6.18-194.el5 (mockbuild@ca-build10.us.oracle.com) (gcc version 4.1.2 20080704


(Red Hat 4.1.2-48)) #1 SMP Mon Mar 29 22:10:29 EDT 2010

[root@of20 stage]# uname -a

Linux of20.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

Step9>

Package requirements:

[root@of20 stage]# rpm -qa|grep binutil

binutils-2.17.50.0.6-14.el5

like this we have to check all below packages:

binutils-2.17.50.0.6

compat-libstdc++-33-3.2.3

compat-libstdc++-33-3.2.3 (32 bit)

elfutils-libelf-0.125

elfutils-libelf-devel-0.125

gcc-4.1.1

gcc-c++-4.1.1

glibc-2.5-12

glibc-2.5-12 (32 bit)


glibc-common-2.5

glibc-devel-2.5

glibc-devel-2.5-12 (32 bit)

libaio-0.3.106

libaio-0.3.106 (32 bit)

libaio-devel-0.3.106

libgcc-4.1.1

libgcc-4.1.1 (32 bit)

libstdc++-4.1.1

libstdc++-4.1.1 (32 bit)

libstdc++-devel 4.1.1

make-3.81

numactl-devel-0.9.8.x86_64

sysstat-7.0.0

other ODBC drivers:

unixODBC-2.2.11 (32 bit) or later

unixODBC-devel-2.2.11 (64 bit) or later

unixODBC-2.2.11 (64 bit) or later

below packages are not installed in my system:

libaio-devel-0.3.106

numactl-devel-0.9.8.x86_64

sysstat-7.0.0

unixODBC-2.2.11 (32 bit) or later

unixODBC-devel-2.2.11 (64 bit) or later

unixODBC-2.2.11 (64 bit) or late


Step10>

So we need to install above packages :

[root@of20 stage]# rpm -Uvh libaio-devel-0.3.106-3.2.x86_64.rpm

warning: libaio-devel-0.3.106-3.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159

Preparing... ########################################### [100%]

1:libaio-devel ########################################### [100%]

Like this way we need install above uninstalled packages

Step11>

Verify browser requirements

[root@of20 stage]# firefox -version

Mozilla Firefox 3.0.18, Copyright (c) 1998 - 2010 mozilla.org

Step12>

Set kernel values in /etc/sysctl.conf

[root@of20 core]#vi /etc/sysctl.conf

fs.file-max = 65536

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 = 1048576
Step13>

Increase the shell limits:

[root@of20 core]# vi /etc/security/limits.conf

swapna soft nproc 2047

swapna hard nproc 16384

swapna soft nofile 1024

swapna hard nofile 65536

Step14>

[root@of20 core]# vi /etc/pam.d/login

session required pam_limits.so

[root@of20 core]# vi /etc/profile

if [ $USER = "swapna" ]; then

if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

Step15>

Switch to own user and create home directory to install oracle home

And create environment file for recognizing base directory and home directory
[root@of20 swapna]# su - swapna

[swapna@of20 ~]$ mkdir 11.1.0.6

[swapna@of20~]$chmod –R 755 11.1.0.6

[swapna@of20 ~]$ vi swapna.env

export ORACLE_BASE=/d01/swapna

export ORACLE_HOME=$ORACLE_BASE/11.1.0.6

export ORACLE_SID=swapna

export PATH=$ORACLE_HOME/bin:$PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

[swapna@of20 ~]$ . swapna.env

Step16>

now invoke the runInstaller

[swapna@of20 ~]$ cd /stage/11g/database/

[swapna@of20 database]$ ./runInstaller

We will get “oracle database 11g installation – select a product to install” screen:

1>select “oracle database 11g” -> click “next” button

2>select “basic installation”

Oracle base location: /d01/swapna

Oracle home location: /d01/swapna/11.1.0.6

Installation type: enterprise edition(3.3GB)

Unix DBA group: dba

Disable all other check boxes and radio buttons -> click “next”

3>give inventory location and group dba -> click “next”

I got the error after invoking the runInstaller about oraInventory because I don’t have

Permissions on /d01 mount point


So I gave permissions on that mount point

[root@of20 ~]# chown -R swapna:dba /d01

[root@of20 ~]# chmod -R 755 /d01

4>all pre-requisite checks are successded -> click “next”

5>click “install”

6>installation will start

7>execute the scripts as a root user

Run root.sh as in root user because it will create the /etc/oratab directory

[root@of20 ~]# cd /d01/oraInventory/

[root@of20 oraInventory]# ls

ContentsXML logs oraInst.loc oui

install.platform oraInstaller.properties orainstRoot.sh

[root@of20 oraInventory]# ./orainstRoot.sh

Changing permissions of /d01/oraInventory to 770.

Changing groupname of /d01/oraInventory to dba.

The execution of the script is complete

[root@of20 oraInventory]# cd /d01/swapna/11.1.0.6/

[root@of20 11.1.0.6]# ./root.sh

Running Oracle 11g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= swapna

ORACLE_HOME= /d01/swapna/11.1.0.6
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 ...

Creating /etc/oratab file...

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.sh script.

Now product-specific root actions will be performed.

Finished product-specific root actions.

8>click “exit”

Step17>

After completion of installing oracle home, using DBCA utility create database before that using
NETCA utility create listener.

[root@of20 ~]#xhost +

[root@of20 ~]#su – swapna

[swapna@of20 ~]$. Swapna.env

[swapna@of20 ~]$netca

We will get “oracle net configuration assistant welcome” screen:

1>Select “listener configuration “ -> click “next” button

2>Select “add” -> click “next” button

3>select “listener name” as LISTENER -> click “next” button

4>select protocol “TCP” -> click “next” button

5>select “use the standard port number of 1521” -> click “next”

6>select “no” -> click “next”

7>listener configuration complete click “next”


8>click “finish”

To verify listener status :

[swapna@of20 ~]$lsnrctl status


creating database:

[swapna@of20 ~]$dbca

We will get “database configuration assistant:welcome” screen:

1>click “next”

2>select “create a database” -> click “next”

3>select “general purpose or transaction processing” -> click “next”

4>enter “global database name : swapna.orafact.com” as “SID : swapna” -> click “next”

5>enable ckeck box “configure enterprise manager” -> select “configure database control
for local management” -> click “next”

6>we will get warning -> click “ok” “resolve this warning up the listener already listener
is up we won’t get this warning”

7>select “use the same administrative password for all accounts”

Password: **********

Confirm password: ********* -> click “next”

8>select “file system” -> click “next”

9>select “use database file location from template” -> click “next”

10>select “specify flash recovery area” -> click “next”

11>select “sample schemas” -> click “next”

12>select “typical” “memory size( SGA and PGA) : 600 MB



on the ‘sizing’ tab “processes: 100” and leave the remaining as it is -> click “next”

13>select “keep the enhanced 11g default security settings” -> click “next”

14>select “enable automatic maintenance tasks” -> click “next”

15>click “next”
16>select “create database” and “generate database creation scripts” -> click “next”

17>click “ok”

18>click “ok”

19>start creating database server wait till complete

20>launch browser and connect to URL

https://swapna.orafact .com:1158/em

enter user name : sys

password:*********

connect as “sysdba” -> click “login”

successfully completed database server creation

shutdown database:

[swapna@of20 ~]$. Swapna.env

[swapna@of20 ~]$sqlplus ‘ / as sysdba’

SQL>shutdown immediate

SQL>exit

[swapna@of20 ~]$lsnrctl stop

[swapna@of20 ~]$emctl stop dbconsole

Start database:

[swapna@of20 ~]$. Swapna.env

[swapna@of20 ~]$lsnrctl start

[swapna@of20 ~]$sqlplus ‘ /as sysdba’

SQL>startup

SQL>exit

[swapna@of20 ~]$emctl start dbconsole

Anda mungkin juga menyukai