Install the 64-bit Oracle 10g ultra-Detailed tutorial

Source: Internet
Author: User
Tags dba oracle database installation

Installs 64-bit Oracle 10g Ultra-Detailed tutorial 1. Installation Preparation phase 1.1 installing the Oracle Environment

After the previous blog post, the installation of the Linux system has been completed, this example uses X-manager to implement a connection to the Linux system, and all the commands and operations used in this example are performed under X-manager. X-manager after the installation is complete, the following configuration methods:

    1. 1. Open X-manager's X-shell

    1. 2. Click New, create a new connection address, click OK when Setup is complete
      3. Login with username, password, login completed, enter the screen as shown to successfully connect to the Linux system

4.4 4. Place the downloaded Oracle Database installation package 10201_database_linux_x86_64.cpio.gz in the/opt/setup080305 directory. Use the X-manager software you just installed to do this, click the green New file Transfer, drag the file on the left to upload to the right file directory. As shown



5. Create the/u01/app/oracle directory for Oracle installed Oracle_base

1.2 Check if the required installation package is complete

Using the root user to enter the system, use terminal commands rpm-q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat -libstdc++-devel

Run results

Gcc-4.1.2-46.el5

Make-3.81-3.el5

Binutils-2.17.50.0.6-12.el5

Package openmotif are not installed

setarch-2.0-1.1

Package compat-db are not installed

Package COMPAT-GCC are not installed

Package compat-gcc-c++ are not installed

Package compat-libstdc++ are not installed

Package compat-libstdc++-devel are not installed

The missing packages need to be found and installed on the disc, and the following packages need to be installed from the DVD disc (installed in the following order)

Load the DVD disc or ISO image first, using the command cd/media/rhel_5.4\ x86_64\ dvd/server/

Skip to the directory where the installation package is located, install the owning package with the following command, and see if the installation package is successful.

RPM-UVH compat-db-4.2.52-5.1.x86_64.rpm

Package compat-db-4.2.52-5.1.x86_64 is already installed

RPM-UVH libaio-0.3.106-3.2.x86_64.rpm

Package libaio-0.3.106-3.2.x86_64 is already installed

RPM-UVH compat-libstdc++-33-3.2.3-61.x86_64.rpm

Package compat-libstdc++-33-3.2.3-61.x86_64 is already installed

RPM-UVH compat-gcc-34-3.4.6-4.x86_64.rpm

Package compat-gcc-34-3.4.6-4.x86_64 is already installed

RPM-UVH compat-gcc-34-c++-3.4.6-4.x86_64.rpm

Package compat-gcc-34-c++-3.4.6-4.x86_64 is already installed

RPM-UVH libxp-1.0.0-8.1.el5.x86_64.rpm

Package libxp-1.0.0-8.1.el5.x86_64 is already installed

RPM-UVH openmotif-2.3.1-2.el5.x86_64.rpm

Package openmotif-2.3.1-2.el5.x86_64 is already installed

RPM-UVH gcc-4.1.2-46.el5.x86_64.rpm

Package gcc-4.1.2-46.el5.x86_64 is already installed

RPM-UVH glibc-2.5-42.x86_64.rpm

Package glibc-2.5-42.x86_64 is already installed

RPM-UVH libxp-1.0.0-8.1.el5.i386.rpm

Package libxp-1.0.0-8.1.el5.i386 is Alrea dy installed

Then check that the required installation packages are all installed successfully: Rpm-q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat -libstdc++-devel


Note: After the installation has been reported LIBSTDC and gcc-c is not installed, in fact, has been successfully installed, you can continue to install the next step.

1.3 Check the hardware requirements for installing Oracle

Use command df–h, check memory, swap area, hard disk space, etc.

1.4 Add the following at the end of the vi/etc/sysctl.conf file line

#use for Oracle

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

Net.core.rmem_default = 262144

Net.core.rmem_max = 262144

Net.core.wmem_default = 262144

Net.core.wmem_max = 262144

Run sysctl–p again to apply the above parameters as shown in.
1.5 Add the following at the end of the vi/etc/security/limits.conf file line

#use for Oracle

* Soft Nproc 2047

* Hard Nproc 16384

* Soft Nofile 1024

* Hard Nofile 65536

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

# Use for Oracle

Session Required Pam_limits.so

1.7 Ensure the following in the Vi/etc/selinux/config file

# This file controls the state of the SELinux on the system.

# selinux= can take one of these three values:

# Enforcing-selinux security policy is enforced.

# Permissive-selinux Prints warnings instead of enforcing.

# Disabled-selinux is fully disabled.

Selinux=disabled

# selinuxtype= type of policy in use. Possible values are:

# Targeted-only targeted Network daemons is protected.

# Strict-full SELinux protection.

#SELINUXTYPE =targeted

Selinuxtype=disabled

Here, the preparation phase of installing Oracle is over.

2. Create a user, group, and configuration that installs Oracle 2.1 unzip the installation file 10201_database_linux_x86_64.cpio.gz

Since the installation files of the database have been placed in the/opt/setup080305/folder, you can now use the command to extract the installation files, but also can be extracted under Windows to re-upload to the Linux system, the completion of the results.

2.2 Creating a user and owning group to install Oracle

Use the following command:

Cd/opt/setup080305/database jump to the installation directory

Groupadd Oinstall Add two groups

Groupadd dba

Useradd-m-G oinstall-g dba Oracle Add User

ID Oracle sets the password for Oracle users

passwd Oracle

Once you enter your password, it will take effect

2.3 Creating the installation directory Mkdir-p/opt/app/oracle/product/10.2

Use the following command to create an Oracle installation directory and Change permissions:

Mkdir-p/u01/app/oracle/

Chown-r oracle.oinstall/u01/app/oracle

Chown-r oracle.oinstall/u01/app/oracle

Chown-r 775/u01/app/oracle

Operation Result:

2.4 Set the. Bash_profile for the Oracle user

Using the following command, Oracle user executes, adding environment variables as follows:

Su–oracle Using Oracle Users

Vi. Bash_profile viewing bash_profile files

Click the I key to enter the edit mode, add the following content:

#Oracle Settings

tmp=/tmp; Export TMP

Tmpdir= $TMP; Export TMPDIR

Oracle_base=/u01/app/oracle

Oracle_home= $ORACLE _base/product/10.2.0/db_1

Oracle_sid=orcl

Oracle_term=xterm

Path= $PATH:/usr/sbin: $ORACLE _home/bin

Ld_library_path= $ORACLE _home/lib:/lib:/usr/lib:/lib64:/usr/lib64

tns_admin= $ORACLE _home/network/admin

oracle_admin= $ORACLE _base/admin

#CLASSPATH =.: $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib

Export oracle_base oracle_home oracle_sid oracle_term PATH ld_library_path tns_admin oracle_admin

#export CLASSPATH

When the edit is complete, ESC exits the edit state and uses the command: Wq to save the exit.

2.5 Setting the profile for an Oracle user

With the following command, the root user executes, adding the following at the end of the profile file:

Su–root using the root user

Vi/etc/profile Viewing profile files

Click the I key to enter the edit mode, add the following content:

#For Oracle

if [$USER = "Oracle"]; Then

if [$SHELL = "/bin/ksh"]; Then

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

When the edit is complete, ESC exits the edit state and uses the command: Wq to save the exit.

2.6 Setting host name and IP

To view and edit the Hosts file using terminal commands vi/etc/hosts

In this example, the IP is modified to 192.168.20.26



Run the command at the terminal after saving:

Hostname

If the hostname becomes linux5-oracle.domain.com, if it is not changed, run the following command

Service Network restart



After the above steps, Oracle's users, groups, and configurations have all been completed. The above preparation, is to be able to install successfully, the following can finally run the Oracle installation files.

3. Install Oracle 10g 64bit Database 3.1 run the Runinstaller file with an Oracle user

You cannot install the Oracle database with the root user and need to log out of the Oracle user to execute the following command:

Su–oracle Switch to Oracle user

cd/opt/setup080305/database/jump to the directory where the files are running

xhost+

Nnset LANG Set Default character encoding

./runinstanller executing the installation file

There is a possibility that the following error will occur, skipping if no errors occur.

Xhost:unable to open Display

X connection to localhost:10.0 broken (explicit kill or server shutdown)

-bash:./runinstaller: Insufficient Authority

The solution is as follows:

The first step: Login to Linux with root, start the VNC service; vncserver:1;
Step two: Set export Display=localhost:1 (1 for VNC on the first TTY) based on the VNC port.
Step Three: Execute Xhost +, and tip "access control disabled, clients can connect from any host" is correct.

Continue execution xhost+

Fourth step: Set the display environment variable to the IP address of the landing machine

Export display=192.168.20.26:0.0

Echo $DISPLAY

192.168.20.26

Fifth step: Using the "Xhost +" command

Xhost +
Access control disabled, clients can connect from any host

Sixth step: Switch to Oracle User

Su–oracle

Seventh Step: Set the display environment variable to the IP address of the landing machine once again by the Oracle user

If you do not operate this step, the environment variable may be lost after SU to the Oracle user

Export display=192.168.20.26:0.0

Echo $DISPLAY

192.168.20.26

After solving the above problem, we test the graphical interface, using the following command, appear to slice as normal:

Log in with the root user

Xhost local:oracle

Su–oracle

Xclock

The solution to insufficient authority:

To view Runinstaller permissions using the command ls–l



Use root login to modify Runinstaller permissions



Use command ls–l again to view Runinstaller permissions



You can see that the permission modification is complete, run the installation with the./runinstaller command, and the familiar graphical interface appears.





Note: If there is a problem with insufficient permissions, remember to increase the write permission for each level of the path

[email protected] ~]# sudo chmod-r 777/u01/app/

[email protected] ~]# sudo chmod-r 777/u01/app/oracle

[email protected] ~]# sudo chmod-r 777/u01/app/oracle/orainventory/

Click Next to continue

Click Next to proceed to the next

If the following error resolution occurs

First check the/u01/app/oracle/orainventory at each level below is not writable permission

If the above problem does not exist, then change the Oracle user rights (root user execution)

Sschown-r oracle:oinstall/u01

After all the environmental tests have been passed, select Next

Click Install for installation



Follow all instructions below



After this tutorial, you have completed installing the virtual machine, installing the LIUNX system, and installing the Oracle database and configuration. Have you learned it?

Install the 64-bit Oracle 10g ultra-Detailed tutorial

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.