0% found this document useful (0 votes)
69 views

Oracle 10G Installation: Step I: Check For Following Required Package Versions (Or Later)

1. The document outlines the steps to install Oracle 10g including checking package requirements, creating user accounts and groups, configuring kernel parameters, running the Oracle Universal Installer, and configuring the database. 2. Key steps include running rpm commands to check packages, creating the 'oinstall' and 'dba' groups and the 'oracle' user, setting permissions on the /oracle directory, running the Oracle Universal Installer and selecting a standard database installation, and configuring the database using the Oracle Database Configuration Assistant. 3. Successful installation is verified by checking for running ora_ processes after executing configuration scripts.

Uploaded by

Faisal Sait
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views

Oracle 10G Installation: Step I: Check For Following Required Package Versions (Or Later)

1. The document outlines the steps to install Oracle 10g including checking package requirements, creating user accounts and groups, configuring kernel parameters, running the Oracle Universal Installer, and configuring the database. 2. Key steps include running rpm commands to check packages, creating the 'oinstall' and 'dba' groups and the 'oracle' user, setting permissions on the /oracle directory, running the Oracle Universal Installer and selecting a standard database installation, and configuring the database using the Oracle Database Configuration Assistant. 3. Successful installation is verified by checking for running ora_ processes after executing configuration scripts.

Uploaded by

Faisal Sait
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 46

ORACLE 10g INSTALLATION

Step I: Check for following Required package versions (or later): On DB Server 1. binutils-2.15.92.0.2-10.EL4 2. compat-db-4.1.25-9 3. compat-libstdc++-33-3.2.3-47.3.i386.rpm 4. control-center-2.8.0-12 5. gcc-3.4.3-9.EL4 6. gcc-c++-3.4.3-9.EL4 7. glibc-2.3.4-2 8. glibc-common-2.3.4-2 9. gnome-libs-1.4.1.2.90-44.1 10. libstdc++-3.4.3-9.EL4 11. libstdc++-devel-3.4.3-9.EL4 12. make-3.80-5 13. pdksh-5.2.14-30 14. sysstat-5.0.5-1 15. xscreensaver-4.18-5.rhel4.2 16. libaio-0.3.96

17. openmotif21-2.1.30-11.RHEL4.2

We can check whether each of the above packages are currently present by: # rpm -q pack_name

e.g. # rpm -q binutils To check whether all packages are installed or not in single step: # rpm -qa binutils compat-db control-center gcc gcc-c++ glibc glibccommon gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio openmotif21

If package is not installed: 1. If Internet connection is available # yum install pack_name e.g. # yum install openmotif21 2. If Internet connection is not available Download the rpm package along with the version number and put this rpm file in /oracle Use # rpm -ivh rpm_pack_name Commands to build and install rpm from source package rpmbuild rebuild source_pack_name It will give rpm packages Install required rpm package using rpm -ivh rpm_pack_name

Step II: Groups and Accounts: Groups On DB Server: Create two groups 1. Primary group: oinstall 2. Secondary group: dba

How to Create # groupadd oinstall # groupadd dba Users On DB Server: oracle How to Create # useradd -m -g oinstall -G dba oracle Set password for above created user as # passwd oracle Set Permissions: How to On DB Server: # chown -R oracle:oinstall /oracle # chmod -R 775 /oracle Step III: Kernel Parameters (Should be equal or higher): On DB Server: kernel.shmall kernel.shmmax kernel.shmmni = 4096 kernel.shmmin = 1 kernel.shmseg = 10 kernel.semmsl = 250 kernel.semmns = 32000 kernel.semopm = 100 kernel.sem = 250 fs.file-max net.ipv4.ip_local_port_range net.core.rmem_default=262144 net.core.wmem_default=262144 32000 = = 1024 100 128 65536 65000 = = 2097152 2147483648

net.core.rmem_max=262144 net.core.wmem_max=262144 To check the kernel parameters, execute the similar commands: /sbin/sysctl -a | grep sem /sbin/sysctl -a | grep shm /sbin/sysctl -a | grep file-max /sbin/sysctl -a | grep ip_local_port_ranges If you need to change any of the values, open up /etc/sysctl.conf in your favorite text editor (e.g., emacs21) and change the appropriate entries as follows: kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 Run /sbin/sysctl -p to apply the changes (only if you changed something of course.)

Insert Oracle 10g Disk 2 and copy the software to /oracle directory. Unzip the software into the directory as : # cd /oracle # unzip file_name

X-Display and setup of DISPLAY variables "ip_address" is the IP address of the workstation on which the windows are to be displayed. Replace the IP address shown in the example with the ip address to be used Use the command to export the DISPLAY variable. exportDISPLAY=ip_address:0

Examples: export export DISPLAY=129.219.300.790:0 To check whether it is working or not type xclock on terminal it will display clock.

DISPLAY=localhost:0

Login to server as oracle as : # ssh -X localhost -l oracle

Change .bash_profile Append the following command : umask 022

Run the .bash_profile as . .bash_profile


Change directory to /oracle/database Start the Oracle Universal Installer (OUI) -

./runInstaller

1. Select Installation Method a. Select Advanced Installation option

2. Specify Inventory Directory and Credentials a. Inventory Directory: /oracle/oraInventory

b. Operating System group name: oinstall

3. Select Installation Type: Standard Edition (1.3GB)

4. Specify Home Details Name: OraDb10g Path: /oracle/product/10.2.0/db_1

5. Product-specific Prerequisite Checks If you've been following the steps in this guide, all the checks should pass without difficulty. If one or more checks fail, correct the problem before proceeding. a. If some errors occur the following window will be shown

Click on Yes to proceed further

b. If every thing is correct then following window will be shown

1. Select Create a Database

2. Select Database configuration Advanced

3. Click Install to proceed

4. Configuration Assistants a. The Oracle Net and iSQL*Plus configuration assistants will run automatically b. Oracle Database Configuration Assistant 1. Select Custom Database

i.

Global Database Name: MBDB SID: MBDB

ii. iii.

Select Configure the Database with Enterprise Manager Select Use Database Control for Database Management

iv. Select Use different passwords Make sure to input complex passwords v. Select File System

vi.

Select Use Common Location For all Database Files : /oradata

vii. Select Defaults about Flash Recovery Area

viii. Dont Select Enable Archiving Archiving should be enabled before Go Live ix. Uncheck all the Database Components Except enterprise manager repository

x. Click on Character Sets tab. xi. Select Choose from the list of character sets
Database Character Set: UTF8 xii. National Character Set: UTF8

xiii. Click on Redo Log Groups a. Create 3 Redo Log groups Create two log files in each group e.g File Name: redo1_01.log redo1_02.log File Directory: /oradata/{DB_NAME}/

xiv. Select the database creation options Select a. Create Database b. Save as a Database Template Name: MBDB c. Generate Database Creation Scripts Destination Directory: /oracle/product/10.2.0/db_1/admin/MBDB/scripts

xv. Confirmation Click OK to proceed

xvi. Database script generation Click OK to proceed

xvii. Database creation complete Click Exit and then Finish

10. Execute Configuration Scripts on terminal: Login as root # /oracle/oraInventory/orainstRoot.sh # /oracle/product/10.2.0/db_1/root.sh Click OK to continue

11. End of Installation Click Exit

12. To check successful installation, Execute # ps -ef |grep -i ora If several ora_ files are seen then oracle is running successfully

You might also like