The following is the step of installing Oracle 9i on RAS3:
1. Environment Variables: If you want every user to manage the Oracle database, set the global environment variable, otherwise set the "Oracle User" environment variables.
Export Oracle_base = "/ data / oracle9ir2"
Export oracle_home = "/ data / oracle9ir2 / home"
Export oracle_owner = "oracle"
Export oracle_sid = "guandadb"
Export ld_assume_kernel = "2.4.1"
Export ld_library_path = "/ data / oracle9ir2 / lib"
Export Path = $ PATH: / DATA / ORACLE9IR2 / HOME / BIN
Export threads_flag = "native"
EXPORT LANG = "en_us.utf-8"
Export language = "en_us.utf-8"
Export Path
2, add Oracle users
3, modify related parameters
3.2, set the kernel parameters, adjust the signal lights and shared memory:
Echo 250 32000 100 128> / Proc / Sys / KERNEL / SEM
Echo 536870912> / proc / sys / kernel / shmmax
Echo 4096> / proc / sys / kernel / shmmni
Echo 2097152> / proc / sys / kernel / shmall
Echo 65536> / Proc / Sys / FS / File-Max
Echo 1024 65000> / proc / sys / net / ipv4 / ip_local_port_range
Of course, you can automatically help you set these parameters for a boot system, or change the file /etc/sysctl.conf, add the following statement:
Kernel.shmmax = 536870912
Kernel.shmmni = 4096
Kernel.shmall = 2097152
Kernel.sem = 250 32000 100 128
fs.file-max = 65536
Net.IPv4.ip_local_port_range = 1024 65000
After saving, you can. It is recommended not to change Net.IPv4.ip_local_port_range, you can use CAT / Proc / Sys / Net / IPv4 / IP_LOCAL_PORT_RANGE to see the red hat has been in line with this defined range, and the port range is smaller than this.
3.3 Setting Oracle's requirements for files:
Edit file: /etc/security/limits.conf Add the following statement:
Oracle Soft Nofile 65536
Oracle Hard Nofile 65536
Oracle Soft Nproc 16384
Oracle Hard Nproc 16384
This needs to be restarted before it can take effect. But it doesn't matter when installing.
3.4 Modify File / etc / fstab
Label = / home / home ext2 noatime 1 2
...........
4, unzip the installation file
Gunzip gunzip lnx_920_disk1.cpio.gz
Gunzip lnx_920_disk2.cpio.gz
Gunzip lnx_920_disk3.cpio.gzcpio -idmv CPIO -IDMV CPIO -IDMV 5, install patch Su - root # unzip p3006854_9204_linux.zip Archive: p3006854_9204_linux.zip Creating: 3006854 / INFL OFLATING: 3006854 / RHEL3_PRE_INSTALL.SH Inflating: 3006854 / readme.txt # CD 3006854 # sh rhel3_pre_install.sh Applying Patch ... Patch SuccessFully Applied # Note: if you get the following error when you run rhel3_pre_install.sh: RHEL3_PRE_INSTALL.SH: line 36: GCC: Command NOT FOUND THEN You Forgot To Install or Link GCC, See Above. This Means You can't Start Any Binaries ANY More: # ls Ls: Error While Loading Shared Libraries: /etc/libcwait.so: Cannot Open Shared Object File: No Such File or Directory # rm /etc/ld.so.preload RM: Error While Loading Shared Libraries: /etc/libcwait.so: Cannot Open Shared Object File: No Such File or Directory # To FIX THAT, Run The Echo Command Which is a Built-in Shell Command: # echo "> /etc/ld.so.preeload Rm /etc/ld.so.preload And Start over again. 6, use Oracle users to log in and run Runinstaller (please do not create a database) If prompted "Display" environment variable is incorrect, enter: xhost computername command in another terminal, after normal prompt information, re-run the runinstaller command installation. 7, install the patch, upgrade Oracle to Oracle 920 Su - Oracle $ CP P3095277_9204_linux.zip / TMP $ CD / TMP $ unzip p3095277_9204_linux.zip Archive: p3095277_9204_linux.zip INFLATING: 9204_LNX32_RELEASE.CPIO Inflating: readme.html INFLATING: PATHNOTE. CSS $ $ CPIO -IDMV <9204_lnx32_release.cpio DISK1 / Stage / LOCKS Disk1 / stage / patches / oracle.apache.isqlplus / 9.2.0.4.0 / 1 / datafiles / bin.1.1.jar Disk1 / stage / patches / oracle.apache.isqlplus / 9.2.0.4.0 / 1 / DataFiles / lib.1.1.jar ... To patch the runinstaller, run: Su - Oracle $ echo $ ld_assume_kernel # it is important what this variable is set! 2.4.1 $ CD / TMP / DISK1 / $ ./runinstaller - Welcome Screen: Click NEXT - File Locations: Use Default Values - Available Products: SELECT "Oracle Universial Installer 2.2.0.18.0!" - Components Locations: Accept Default Values and Click Next - Summary: Start the Install - at the end of the installation, you must exit runinstaller! To Patch Oracle9ir2, Run: Su - Oracle $ Echo $ ld_assume_kernel # it is important what this variable is set! 2.4.1 $ cd $ oracle_home / bin $ ./runinstaller - Welcome Screen: Click NEXT - File Locations: Use Default Values - Available Products: SELECT "Oracle9ir2 Patch Set 3 9.2.0.4.0!" - Summary: Start the Install - at the end of the installation, exit runinstaller 8, put the patch for Oracle 920 Su - Oracle $ CP P2617419_210_Generic.zip / TMP $ CD / TMP $ unzip p2617419_210_generic.zip Before you apply the 3119415 patch, you need to make sure the fuser binary can be found by the oracle user, see the PATH environment variable below. Otherwise the patch can not be applied because the fuser binary is used by opatch. To Apply the 3119415 Patch, Run Su - Oracle $ unzip p3119415_9204_linux.zip $ CD 3119415 $ export path = $ PATH: / TMP / OPATCH $ export path = $ path: / sbin # The patch Needs "fuse" Which is located in / sbin $ Which Opatch / TMP / OPATCH / OPATCH $ OPATCH APPLY 9, run DBCA Create Database