Install Oracle11gr1 on RHEL5.5 (32-bit Server)

Source: Internet
Author: User
Install Oracle11gr1 on RHEL5.5 (32-bit Server)

Install Oracle 11gr1 on RHEL5.5 (32-bit Server)

Because Oracle 11gr1 needs to be installed on RHEL5.5 for testing, there are many problems, first sort out the following and search a lot online

Refer to the connection and oracle documents:

Do not perform the following steps

Need to prepare the software: RHEL5.5 32-bit server version of the system disk and Oracle11gr1-32 bit, Baidu Network Disk:

1. First, install the Operating System. Note that all the packages are selected during installation. The details about how to install the operating system are not described in detail.

2. log in as root and execute the following command on the command line

# Rpm-q compat-libstdc ++-33 elfutils-libelf-devel glibc-devel-2.5 gcc-c ++ libaio-devel libstdc ++-develunixODBC unixODBC-devel sysstat binutils elfutils-libelf glibc glibc-common libaio libgcc libstdc ++ make

If *** is not installed is prompted, it indicates that the software package is not installed. Find the corresponding rpm package in the Server directory of the RHEL5.5 installation disc for installation, for example, after installing compat-libstdc ++-and entering the directory of the disc Server, run the command: rpm-ivh compat-libstdc ++-33.3.2-61. i386.rpm

If all the software packages have been installed, the prompt is (because the specific version numbers are different, but the version numbers must not be earlier than the following versions ):

Compat-libstdc ++-33-3.2.3-61

Elfutils-libelf-devel-0.125-3.el5

Glibc-devel-2.5-12

Gcc-4.1.1-52.el5

Gcc-c ++-4.1.1-52. el5

Libaio-devel-0.3.106-3.2

Libstdc +-devel-4.1.1-52.el5

UnixODBC-2.2.11-7.1

UnixODBC-devel-2.2.11-7.1

Sysstat-7.0.0-3.el5

Binutils-2.17.50.0.6-2.el5

Elfutils-libelf-0.125-3.el5

Glibc-2.5-12

Glibc-common-2.5-12

Libaio-0.3.106-3.2

Libgcc-4.1.1-52.el5

Libstdc ++-4.1.1-52. el5

Make-3.81-1.1

Run the following command:

#/Usr/sbin/groupadd oinstall

#/Usr/sbin/groupadd dba

#/Usr/sbin/useradd-m-g oinstall-G dba oracle

# Passwd oracle (this command sets the password for the user, and the weak password will not be set successfully)

# Mkdir-p/u01/app/oracle

# Chown-R oracle: oinstall/u01/app

# Chmod-R 775/u01/app

Edit/etc/hosts and add 192.168.19, 116 abc.net oracleserver to the last line. edit/etc/sysconfig/network and change the host name to abc.net.

# Cat>/etc/sysctl. conf

# Cat>/etc/pam. d/login

Session required pam_limits.so

EOF

#/Sbin/sysctl-p (used to check whether the write operation of the previous command takes effect. You can compare the items with the displayed results)

# Cat>/etc/security/limits. conf

# Cat>/etc/profile

# Cat>/etc/csh. login

Log out of the root user and use the oracle user to log in and open the command line.

# Mkdir 11gR1_db

Copy (CUT) linux_11gr1_database_1013.zip to 11gR1_db

# Cd 11gR1_db

# Unzip linux_11gR1_database_1013.zip

# Cd linux-11gR1_database_1013/database

#./RunInstaller

Gui installation and startup

Select default installation, select only install database software, select single-instance database installation, and select default installation.

During the pre-Installation check, the network check may not run as follows: Oracle supports installation on systems with IP addresses assigned by DHCP ......

Solution: configure a static IP address for the NIC and restart the network service (run the service network restart or/sbin/ifdown eth0/sbin/ifup eth0 as root)

In oracle Installation, select "Re-check". If it fails, add the network adapter eth1, set IP192.168.0.1, and activate it, and then re-check the oracle installer.

If both of the preceding methods cannot be solved, add 192.168.19, 116 abc.net oracleserver to the last line of/etc/hosts and restart the network. Check again on the oracle installer.

By default, the operating system group uses oinstall. Before the installation is complete, the system prompts you to use the root identity to execute two sh

$ Su-

# Cd/u01/app/oraInventory

#./OrainstRoot. sh

# Cd/u01/app/oracle/product/11.1.0/db_1

#./Root. sh

Click Finish. The database installation is complete. Next, configure the environment variables.

$ Vi. bash_profile

Add: export ORACLE_BASE =/u01/app/oracle

Export ORACLE_HOME = $ ORACLE_BASE/product/11.1.0/db_1

Export ORACLE_SID = ztao

Export PATH = $ ORACLE_HOME/bin: $ PATH

Next, create a database instance.

$ Vi/u01/app/oracle/product/11.1.0/db1/network/admin/listener. ora

Add: SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(GLOBAL_DBNAME = ztao)

(SID_NAME = ztao)

)

)

$ Cd/u01/app/oracle/product/11.1.0/db_1

$./Netca

$./Dbca

Restart the computer and use oracle to log on

$ Lsnrtcl start

$ Sqlplus/as sysdba

SQL> startup

SQL> select * from all_users; (test whether the database can be accessed)

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.