Oracle 10G Installation: Step I: Check For Following Required Package Versions (Or Later)
Oracle 10G Installation: Step I: Check For Following Required Package Versions (Or Later)
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
./runInstaller
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
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.
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.
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
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
12. To check successful installation, Execute # ps -ef |grep -i ora If several ora_ files are seen then oracle is running successfully