Professional Documents
Culture Documents
Oracle11gR2 Installation RHEL 5.6 x86 64 Document
Oracle11gR2 Installation RHEL 5.6 x86 64 Document
INSTALLATION DOCCUMENT
: :
CONTENT AT A GLANCE
STEP
1. 2. 3. 4. 5. 6. 7. 8. 9. 10.
TOPIC
DOWNLOAD ORACLE SETUP DOWNLOAD AND INSTALLL THE REQUIRED PACKAGES CONFIGURING KERNEL PARAMETERS SETTING SHELL LIMITS FOR THE ORACLE USER CREATING REQUIRED OS GROUPS AND USERS CREATING REQUIRED DIRECTORIES CONFIGURING THE ORACLE USERS ENVIRONMENT INSTALLING ORACLE DATABASE CREATING AN ORACLE DATABASE VERIFICATION AND QUERIES TO RUN
PAGE 3 3 4 5 5 6 7 7 14 25
1.rpm qa 2.rpm q (package_ name) 3.rpm -Uvh (package _name) 4.rmp Ivh(package_ name)
: : : :
for query all RPM package for query an RPM package. for updating the package for installing the package
The following are the list of packages required for Oracle Database 11g Release 2 (11.2):
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.2 gcc-c++-4.1.2 glibc-2.5-24 glibc-2.5-24 (32 bit) glibc-common-2.5 glibc-devel-2.5 glibc-devel-2.5 (32 bit) glibc-headers-2.5
3
ksh-20060214 libaio-0.3.106 libaio-0.3.106 (32 bit) libaio-devel-0.3.106 libaio-devel-0.3.106 (32 bit) libgcc-4.1.2 libgcc-4.1.2 (32 bit) libstdc++-4.1.2 libstdc++-4.1.2 (32 bit) libstdc++-devel 4.1.2 make-3.81 sysstat-7.0.2 unixODBC-2.2.11 unixODBC-2.2.11 (32 bit) unixODBC-devel-2.2.11 unixODBC-devel-2.2.11 (32 bit)
fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 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
Note: The minimum value required for shmmax is 0.5 GB. However,Oracle recommends that you set the value of shmmax to 2.0 GB for optimum performance of the system.
2 . Enter the following command to change the current values of the kernel parameters: # /sbin/sysctl p Review the output from this command to verify that the values are correct. If the values are
incorrect, edit the /etc/sysctl.conf file, then enter this command again.
# vi /etc/security/limits.conf
Add the following lines in the /etc/security/limits.conf file:
# /etc/pam.d/login
Add the following line to the /etc/pam.d/login file, if it does not already exist:
Session
required
pam_limits.so
# more /etc/oraInst.loc
If the oraInst.loc file exists, then the output from this command is similar to the following:
inventory_loc=/u01/app/oraInventory inst_group=oinstall
5
2. To determine whether the dba group exists, enter the following command: # grep dba /etc/group
Output:dba:x:501: If the output from this commands shows the dba group name, then the group already exists. 3. If group not created already then put the following commands
# groupadd oinstall for creating oinstall group. # groupadd dba for creating dba group.
4. If the oracle user exists, but its primary group is not oinstall or it is not a member of the dba group, then enter the following command:
# passwd oracle
$ . .bash_profile
$ /mount_point/db/runInstaller
As a oracle user Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory. Where I have given permission
You can leave empty email textbox and click on next 2. Select Install Option : select install database software only
10
7. Summary
8. Installing Product
11
10. Database Configuration Assistant: you can set password for Schema from Password Management or Click OK
12
-rwxr-xr-x 1 oracle oracle 22536192 Aug 14 2009 example01.dfb -rwxr-xr-x 1 oracle oracle 1179648 Aug 14 2009 example.dmp -rw-r--r-- 1 oracle oracle -rw-r--r-- 1 oracle oracle 4986 Aug 13 2009 General_Purpose.dbc 11492 Feb 25 2009 New_Database.dbt
-rwxr-xr-x 1 oracle oracle 9748480 Aug 13 2009 Seed_Database.ctl -rwxr-xr-x 1 oracle oracle 258711552 Aug 13 2009 Seed_Database.dfb
2. LISTENER
Before start dbca you should Launch the Net Configuration Assistant, The radio button for Listener Configuration will be selected. Click Next three times. If there is a message stating that a listener already exists, you can exit the tool immediately by clicking Cancel and Finish, and proceed to Step 3. Otherwise, click Next another four times to define the default listener, and then Finish to exit the tool.
3 DBCA
Enter the command
Click on Next.
15
1.
2.
Selecte Database Template and then Click on Next. Note:In our case we selected Clarity 11g
16
3.
4.
17
5.
6.
18
7.
If you click on browse button then you will get following screen and enter the path where you want to selt flash Recovery area..click OK
19
8. Database Content:
Click Next
9.
Set Initialization parameter .according to your requirement ,Set Memory from following Screen
20
21
22
11.Creation Option.
23
After completed 100% processes your database successfully created and then click ok and then close to exit.
Starting the Database Listener lsnrctl start [listener] lsnrctl status [listener] Starting and Connecting to Database Control emctl start dbconsole emctl stop dbconsole emctl status dbconsole
To connect to Database Control, use any reasonably up-to-date browser. The URL is
https://hostname:port/em
24
SQLPLUS connect user/pass[@connect_alias] connect user/pass[@connect_alias] as sysdba connect user/pass[@connect_alias] as sysoper connect / as sysdba connect / as sysoper
1. Launch SQL*Plus, using the /nolog switch to prevent an immediate logon prompt: sqlplus /nolog
2. Connect as SYS with operating system authentication: connect / as sysdba 3. Start the instance only: startup nomount; 4. Mount the database: alter database mount; 5. Open the database: alter database open; 6. Confirm that the database is open by querying a data dictionary view: select count(*) from dba_data_files;
7. Confirm that the instance status:
25