- Installation process: Pre-Preparation---> Install Oracle software---> Install upgrade patches---> Install ODBC CREATE DATABASE---> Install listener---> Install em
- "Pre-preparatory work"
- Install the configuration system environment
Install Linux, all services are not selected, just choose to install the development tools, do not install a firewall (of course, can also be closed later)
- Open Terminal, execute the following command, check the installation package, do not have to install
Make , glibc, Libaiocompat-libstdc++, compat-gcc-, compat-gcc--c++, GCC, Libxpopenmotif, Compat--qa | grep glib
- If it is not installed, the installation needs to mount the RHEL5 disc
# mount /dev/cdrom //media/server
- Then install it using the RPM package installation method
# RPM-IVH compat-gcc--*---IVH openmotif-*---IVH libxp-*---IVH compat-db-*-- Nodeps
- modifying kernel parameters
Add the following content to the file/etc/sysctl.conf in: Kernel.shmall=2097152--maximum number of memory pages that the system can use Kernel.shmmax=2147483648--maximum size of a single shared memory segment, in bytes Kernel.shmmni=4096--size of Memory pages # SEMAPHORES:SEMMSL, Semmns, SEMOPM, Semmnikernel.sem= - 32000 - -Fs.file-max =65536Net.ipv4.ip_local_port_range=1024x768 65000Net.core.rmem_default=262144Net.core.rmem_max=262144Net.core.wmem_default=262144Net.core.wmem_max=262144
- Run the following command to make the kernel parameters effective:
/sbin/sysctl-p
- Add the following at the end of the vi/etc/security/limits.conf line
for Oracle 2047 16384 1024x768 65536
- Add the following at the end of the Vi/etc/pam.d/login line
Session Required Pam_limits.so
- Close the firewall, vi/etc/selinux/config ensure the following
selinux=disabled off Seliinux
- The configuration work is done, and we are now starting to really graphical interface installation
- New Groups and Users:
-G Oinstall-G. dba ORACLEPASSWD Oracleoinstall: Users belonging to this group can install ORACLEDBA: users belonging to this group can perform sys this user's operating system verification oper: Users belonging to this group can be public this user's operating system validation
- Create an Oracle installation directory and pay the permissions to the Oracle User:
Mkdir-p/u01/app/-R oracle:oinstall/775 /u01
- Since Oracle's official support is only available to RHEL4, to modify the release notes, edit the file/etc/redhat-release change red Hat Enterprise Linux Server Release 5 (tikanga) to version 4:red Hat-4
- Environment Variables for Oracle users
Log in as Oracle and add the following line through the. Bash_profile
Add the following content:
Export oracle_base=/u01/app/oracleexport oracle_home= $ORACLE _base/10.2. 0/db_1export oracle_sid=orclexport PATH= $PATH: $ORACLE _home/bin
- Switch account
? # Su- Oracle explains here: The difference between Su and no -plus-the current user environment is determined by the user behind it. If not added, the user's environment is determined by root.
- We copy the 10201_database_linux32.zip,p8202632_10205_linux.zip,p8350262_10205_generic.zip to the/u01 path. Here is a description of the role of three files:
10201_database_linux32.zip : oracle_database_10. 2.0. 1 . version 0. P8202632_10205_linux.zip : Will oracle_database_10. 2. version 01 is upgraded to 10. 2.0. 5 . 0 version of patch file P8350262_10205_generic.zip : This is the patch file for EM
- Unzip after the copy is complete
#: Unzip 10201_database_linux32.zip
- After the decompression is complete, the folder has a database folder.
#: CD Database
- After entering, there are so many files inside.
"Doc, install, response, Runinstaller, stage, welcome.html"
- To perform the operation:
#:./runinstaller
- An exception will occur here:
ExceptioninchThread"Main"Java.lang.InternalError:Can't connect to X11 window server using':0.0'As the value of the DISPLAY variable.At Sun.awt.X11GraphicsEnvironment.initDisplay (Native Method) at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown source) at JAVA.LANG.CLASS.FORNAME0 (Native Method) at Java.lang.Class.forName (Unknown source) At Java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment (Unknown Source) at Java.awt.Window.init (Unknown S Ource) at Java.awt.Window.<init>(Unknown Source) at Java.awt.Frame.<init>(Unknown Source) at Oracle.ewt.popup.PopupFrame.<init>(Unknown Source) at Oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source) at Oracle.sysman.oio.oioc.OiocOneClickInstaller.<init> (Oioconeclickinstaller.java:378) at Oracle.sysman.oio.oioc.OiocOneClickInstaller.main (Oioconeclickinstaller.java:2091Explanation: The exception occurred because the Oracle user did not have permission to perform a graphical interface
- We open a new window: Switch to Administrator privileges
# Xhost + from any host
Here's an explanation: Xhost + This command allows other users ' launcher programs to display graphics on the current screen.
- Go back to the last window to execute again:
$:. Runinstall
- The screen immediately appears and the next step is to install the graphical interface. To install the contents please see the picture of the red color notes.
- A network error has been reported here, and we need to deal with it at this time.
$ vi/etc/hosts modifies the hosts configuration file to delete the last line of content, add the host's IP address and hostname to the last line, and delete the third line of IP address above your hostname, and not allow two IP addresses to correspond to the same host name. That is, two Oracle cannot be present. The configuration is as follows.
- OK, this interface will appear when finished, we need to run the two scripts below.
#/u01/app/oracle/orainventory/770/u01/app/oracle/ is complete
- Execute the second script, this time there are some inquiries, regardless of him, press the ENTER key directly.
#/u01/app/oracle/10.2.0/db_1/root.shrunning Oracle10 root.sh script ... The following environment variables isSet as: Oracle_owner=Oracle Oracle_home=/u01/app/oracle/10.2.0/Db_1enter the full pathname of the Local bin directory: [/usr/local/bin]: the file"Dbhome"already existsinch/usr/local/bin. Overwrite it? (y/n) [n]: the file"oraenv"already existsinch/usr/local/bin. Overwrite it? (y/n) [n]: the file"coraenv"already existsinch/usr/local/bin. Overwrite it? (y/n) [n]: Creating/etc/oratab File ... Entries 'll be added to the/etc/oratab file asneeded bydatabase Configuration Assistant when a database iscreatedfinished running generic part of root.sh script. Now product-specific root actions would be performed.
- At this point, the installation of oracle-10.2.0.1.0 in our Linux installation is complete.
You can enter the following actions in the Oracle User directory: as Sysdbale DSQL 10.2. 0.1. 0 A Max:19822005, Oracle. All rightsreserved. Connected to an idle instance. SQL>10.2. 0.1. 0 installation succeeded.
- Now we need to install the upgrade patch.
- See the world's most detailed graphical VMware installation of Oracle in Linux Environment (ii) "Weber products must be a boutique"