Oracle installation Graphics tutorial in VMware Linux Environment (i) _oracle

Source: Internet
Author: User
Tags dba create database

Installation process: Pre-Preparation---> Install Oracle software---> Install upgrade---> Install ODBC CREATE DATABASE---> Install listener---> Install em

Pre-preparation work

Installing the configuration system environment

Install Linux,

All services are not selected, just choose to install the development tools, do not install the firewall (of course, you can also close behind) Open the terminal, execute the following command, check the installation package, do not have to install

Make, glibc, Libaio
Compat-libstdc++, compat-gcc-34, compat-gcc-34-c++, GCC, LIBXP
Openmotif, Compat-db
Query glib there is no installation
# Rpm-qa | grep glib

If it is not installed, installation needs to be mounted RHEL5 this disc

# Mount/dev/cdrom/media
# Cd/media/server

Then use the RPM package installation method to install

# RPM-IVH compat-gcc-34-*--nodeps
# RPM-IVH openmotif-*--nodeps
# RPM-IVH libxp-*--nodeps
# RPM-IVH com pat-db-*--nodeps

modifying kernel parameters

Add the following to file/etc/sysctl.conf:
Kernel.shmall = maximum number of memory pages that 2097152--system can use
Kernel.shmmax = 2147483648-- The maximum size of a single shared memory segment, in bytes
Kernel.shmmni = 4096--memory page size
# SEMAPHORES:SEMMSL, Semmns, semopm, semmni kernel.sem
= 128
Fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 32000 65000
262144
net.core.rmem_max=262144
net.core.wmem_default=262144net.core.wmem_max=262144

Run the following command to make the kernel parameters effective:

/sbin/sysctl-p

Vi/etc/security/limits.conf Add the following at the end of the line

#use for Oracle
* Soft Nproc 2047
* Hard nproc 16384
* Soft nofile 1024
* Hard Nofile 65536

Vi/etc/pam.d/login Add the following at the end of the line

Session Required Pam_limits.so

Close the firewall and vi/etc/selinux/config ensure that the following

Selinux=disabled off Seliinux

Configuration is done, we are now starting to really graphical interface to install new groups and users:

Groupadd oinstall
groupadd dba
groupadd operuseradd-g oinstall-g dba 
oraclepasswd Oracle
Oinstall: Users who belong to this group can install ORACLEDBA: users who belong to this group can authenticate to the user's
operating system
oper: Users who belong to this group can authenticate the operating system of this user

Create an Oracle installation directory and pay the permissions to Oracle users:

Mkdir-p/u01/app/oracle
chown-r 
oracle:oinstall/u01
chmod-r 775/u01

Because Oracle's official support only to RHEL4, so to modify the version description, edit the file/etc/redhat-release red Hat Enterprise Linux Server Release 5 (tikanga) to version 4:red Hat-4oracle User's environment variables

Log on as an Oracle and add the following line in. bash_profile

Add the following:

Export Oracle_base=/u01/app/oracle
Export Oracle_home= $ORACLE _base/10.2.0/db_1
Export ORACLE_SID=ORCL
Export path= $PATH: $ORACLE _home/bin

Switch account

# su-oracle
here to explain: the difference between SU Plus-plus-the current user environment is determined by the user behind it. If not, then the user's environment is determined by the root.

We copy the 10201_database_linux32.zip,p8202632_10205_linux.zip,p8350262_10205_generic.zip to the/u01 path. Here's how the three files work:

10201_database_linux32.zip:oracle_database_10.2.0.1.0 version.
P8202632_10205_linux.zip: Upgrade the oracle_database_10.2.01 version to the 10.2.0.5.0 version of the patch file
P8350262_10205_generic.zip: This is the EM patch file.

Decompression after copy is complete

#: Unzip 10201_database_linux32.zip

After the decompression is complete, the folder has a database folder.

#: CD Database

There are so many files in there after entering

"Doc, install, response, Runinstaller, stage, welcome.html"

To perform an action:

#:./runinstaller

An exception will occur here:

Exception in thread "main" Java.lang.InternalError:Can ' t connect to X11 Window server using ': 0.0 ' as the value of the DI Splay 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 Source)
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:2091)
Explanation: An exception occurred because the Oracle user does not have permission to perform a graphical interface

We opened a new window: Switch to Administrator privileges

# Xhost +access control disabled, clients can connect to any host
Here's an explanation: Xhost + This command allows another user's launcher to display the graphic on the current screen.

Go back to the last window and execute again:

$:. Runinstall

Immediately appear the screen, followed by the installation of the graphical interface. To install the contents please see the red color notes of the picture.

A network error has been reported here, and we need to deal with it at this time.

$ vi/etc/hosts  
Modify hosts configuration file delete the last line of content, in the last line plus the host's IP address and host name, and the third row of IP address above your host name to delete, can not have two IP addresses corresponding to the same host name, That is, no two Oracle appears. The configuration is as follows.

OK, this interface appears when you're done, and we need to run these two scripts at this point.

#/u01/app/oracle/orainventory/orainstroot.sh
Changing permissions of/u01/app/oracle/orainventory to 770.
Changing groupname of/u01/app/oracle/orainventory to Oinstall.
The execution of the script is complete

Execute the second script, this time there are some inquiries, regardless of him, just press the Enter button is good

#/u01/app/oracle/10.2.0/db_1/root.sh
Running Oracle10 root.sh Script ...
The following environment variables are set as:
Oracle_owner= Oracle
Oracle_home=/u01/app/oracle/10.2.0/db_1







Creating/etc/oratab file ...
Entries'll be added to The/etc/oratab file as needed by
Database Configuration Assistant When a database is created
Finished running generic part of root.sh script.
Now product-specific root actions would be performed.

At this point, our Linux installation oracle-10.2.0.1.0 installation is complete.
You can enter the following actions in the Oracle User directory:

$ sqlplus/as SYSDBA
Le dsql*plus:release 10.2.0.1.0-production on Tue Aug 21:40:20 2014ase]copyright (c) 1982, Oracle. All rightsreserved.
Connected to a idle instance.

The

Display so proves that release 10.2.0.1.0 installed successfully.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.