Install Oracle10g in RedLinux6.0

Source: Internet
Author: User
I. Environment Description RedHatEnterpriseLinux6.0VirtualBox4.1.8Oracle10g II. Pre-installation configuration 1. install the software package required for Oracle10gR2 log on to the system with root, install the following package # cdmntcdromServer # rpm-Uvhsetarch-2 * # rpm-Uvhmake-3 * (here

I. environment Description RedHat Enterprise Linux 6.0 Virtual Box 4.1.8 Oracle 10g II. configuration before installation 1. install the software package required for Oracle 10g R2 and log on to the system as root, install the following package # cd/mnt/cdrom/Server/# rpm-Uvh setarch-2 * # rpm-Uvh make-3 * # rpm-Uvh glibc-2 * (here

I. Environment Description

RedHat Enterprise Linux 6.0 + Virtual Box 4.1.8 + Oracle 10g

2. Pre-installation Configuration

1. install the software packages required for Oracle 10g R2


UseRootLog on to the system and install the following packages in sequence.


# Cd/mnt/cdrom/Server/# rpm-Uvh setarch-2 * # rpm-Uvh make-3 * # rpm-Uvh glibc-2 * (here two matching packages with one i386 cannot be installed, directly # rpm-Uvh glibc-2 * i686 * on the line) # rpm-Uvh libaio-0 * # rpm-Uvh compat-libstdc ++-33-3 * # rpm-Uvh kernel-headers-* # rpm-Uvh glibc-header-* # rpm -Uvh glibc-devel-2 * # rpm-Uvh compat-gcc-34-3 * (depending on the above three packages in turn) # rpm-Uvh compat-gcc-34-c + +-3 * # rpm-Uvh libgomp-4 * # rpm-Uvh gcc-4 * (dependent on the above package) # rpm-Uvh libXp-1 * # rpm-Uvh openmotif22-* # rpm-Uvh compat-db-4 *


Note: This software is located in the Server directory on the linux installation disk and is a required software package for installing the oracle database. Mount the ISO image file using mount XXX. ISO/mnt-o loop

2. Modify the/etc/redhat-release file


Oracle 10 Gb supports only RHEL4, so you need to change the version description, edit the/etc/redhat-release file, and delete Red Hat Enterprise Linux Server release 6, change to redhat-4 (it is best to back up after the installation is complete to restore)

3. Modify Kernel Parameters


# Vi/etc/sysctl. conf


kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=262144net.core.rmem_max=262144net.core.wmem_default=262144net.core.wmem_max=262144


Note: There is a kernel when you modify the preceding kernel parameters. shmall = "16475728" Kernel. shmmax = "268435468"; if the parameter is too large, an "out of memory" error occurs when you create a database after installing the database.

To make the change take effect immediately, run the following command:

# Sysctl-p

4. Create users, groups, and directories required for Oracle Installation

#groupadd oinstall#groupadd dba#useradd -g oinstall -G dba oracle#passwd oracle#mkdir /oracle#chown -R oracle:oinstall /oracle#chmod -R 775 /oracle


We recommend that you install the oracle installation directory in a separate partition or disk.

5. Set shell limit for oracle users


# Vi/etc/security/limits. conf

oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536


Next, modify the/etc/pam. d/login file and add the following content to make the shell limit take effect:

# Vi/etc/pam. d/login

session                  required                pam_limits.so


6. Configure the IP address (skip setting redhat linux to a static IP address)

It is best to use a static IP address when installing RHEL. If DHCP is selected at the time, now you need to change the/etc/sysconfig/network-scripts/ifcfg-eth0 File

[root@TSM54-Test network-scripts]# cat ifcfg-eth0# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]DEVICE=eth0BOOTPROTO=staticHWADDR=00:0C:29:4B:17:C4ONBOOT=yesIPADDR=192.168.68.98NETMASK=255.255.255.0GATEWAY=192.168.68.10


7. Configure oracle user environment variables

The following operations should be performed by logging in to oracle. (Log out of the root account and log on to oracle)

To prevent garbled characters during oracle Installation, first change the language environment to English and enter it in the terminal. (The installation result is that the graphic interface is unclear because the language is not set ):

[oracle@TSM54-TEST ~]$export LC_CTYPE=en_US.UTF-8


Next, edit the. bash_profile file in the/home/oracle directory and add the following content:

export ORACLE_BASE=/oracleexport ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1export ORACLE_SID=orclexport PATH=$PATH:$ORACLE_HOME/binexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/libCLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlibexport CLASSPATHif [ $USER = "oracle" ]; then        if [ $SHELL = "/bin/ksh" ]; then                ulimit -p 16384                ulimit -n 65536        else                ulimit -u 16384 -n 65536        fifi


Note: The original path and export should be commented out when adding the environment configuration; if the environment variable configuration changes, you should modify the above configuration; otherwise, the database startup command is invalid.

3. Install Oracle 10g

I put 10201_database_linux32.zip in the/opt directory and decompress it through # unzip 10201_database_linux32.zip. Now I use the oracle user to install it in the/opt/database directory:

[oracle@TSM54-Test opt]$ cd /opt/database/[oracle@TSM54-Test database]$ lsdoc install response runInstaller stage welcome.html[oracle@TSM54-Test database]$ ./runInstaller


1. Select the installation type. Here I select Advanced installation, as shown in:

2. Specify the certificate storage directory ,:

3. Select the database type to be installed and the language supported by oracle. Here, select Enterprise Edition. The language is English and simplified Chinese, as shown in:

4. Specify the oracle environment variable and installation path. Because we have already declared it in. bash_profile, it will be automatically filled here, as shown in:

Note: The folder configured in the environment variable is "ORACLE_BASE =/oracle"
5. check before installing Oracle, as shown in:

6. Select Configuration options, as shown in:

7. Select the created database mode, as shown in:

8. Specify related options for database configuration (SID, Character Set, etc.), as shown in:

9. Select the database management option, as shown in:

10. Specify database storage options, as shown in:

11. Specify the database backup and reply options, as shown in:

12. Specify the password of the database user, as shown in:

13. The installation overview is displayed, as shown in:

14. Start installation, as shown in:

15. After you click OK in the window above, the displayed content will appear:

Root permission required

#/Oracle/oraInventory/orainstRoot. sh

#/Oracle/product/10.2.0/db_1/root. sh

16. The installation is complete, as shown in:

17. After the installation is complete, the language environment and version information will be restored.

#export LC_CTYPE=zh_CN.UTF-8#vi /etc/redhat-releaseRed Hat Enterprise Linux Server release 6


Iv. Follow-up

1. After the installation is complete, start the listener first.

The Listener accepts client connection requests and creates a database connection after verifying the certificate. To use OEM or iSQL * PLUS, you must first start the listener.

Note: run the su-oracle command to log on and start the database.

[oracle@TSM54-Test database]$ lsnrctl start[oracle@TSM54-Test database]$ lsnrctl stop


2. Use Oracle Enterprise Manager 10 Gb for Database Control

The command to start and stop the OEM is:

[oracle@TSM54-Test database]$emctl start dbconsole[oracle@TSM54-Test database]$emctl stop dbconsole


In the web browser, enter: http: // 192.168.68.98: 1158/em (if the server does not perform DNS resolution, you can use the IP address)

Username: SYS

Password: <安装过程中建立的口令>

Connection: SYSDBA

3. Access the database using iSQL * Plus

Run the following command to start and stop iSQL * Plus:

[oracle@TSM54-Test database]$isqlplusctl start[oracle@TSM54-Test database]$isqlplusctl stop


ISQL * Plus is a web-based SQL * Plus interactive tool that has a long history and is used to access databases. To use iSQL * Plus, click the iSQL * Plus link in the connection section of the OEM console, or point the browser to the iSQL * Plus URL provided during installation.

In the web browser, enter:

Http: // 192.168.68.98: 5560/isqlplus

User name: SYSTEM

Password: <安装过程中创建的口令>

Connection ID: orcl

4. Start and Stop the database

The simplest way to start and stop a database is to start and stop it from the OEM console. To perform this operation from the command line, use SQL * Plus after logging on as an oracle user, as shown below:

Start:

$ sqlplusSQL*Plus:Release 10.1.0.2.0 - Production on Sun Jun 13 22:27:48 2004Copyright (c) 1982, 2004, Oracle.All rights reserved.Enter user-name:/ as sysdbaConnected to an idle instance.SQL> startupORACLE instance started.Total System Global Area  188743680 bytesFixed Size                   778036 bytesVariable Size             162275532 bytesDatabase Buffers           25165824 bytesRedo Buffers                 524288 bytesDatabase mounted.Database opened.SQL> exitShutdown:$ sqlplusSQL*Plus:Release 10.1.0.2.0 - Production on Sun Jun 13 22:25:55 2004Copyright (c) 1982, 2004, Oracle.All rights reserved.Enter user-name:/ as sysdbaConnected to:Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - ProductionWith the Partitioning, OLAP and Data Mining optionsSQL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.SQL> exit


5. Uninstall ORACLE

1. run $ ORACLE_HOME/bin/localconfig delete
2. rm-rf $ ORACLE_BASE /*
3. rm-f/etc/oraInst. loc/etc/oratab
4. rm-rf/etc/oracle
5. rm-f/etc/inittab.css d
6. rm-f/usr/local/bin/coraenv/usr/local/bin/dbhome/usr/local/bin/oraenv

7. Delete oracle users and groups.

Note: The uninstall method is from google. I used this method to delete oracle 11g (ASM was selected during installation 11 ).

Vi. Installation of Oracle 11g Release 1

Oracle 11gR1 supports RHEL5, so you do not need to change the redhat-release file.

In addition, the packages on which the installation depends are as follows:

      binutils-2.17.50.0.6-2.el5      compat-libstdc++-33-3.2.3-61      elfutils-libelf-0.125-3.el5      elfutils-libelf-devel-0.125      glibc-2.5-12      glibc-common-2.5-12      glibc-devel-2.5-12      gcc-4.1.1-52      gcc-c++-4.1.1-52      libaio-0.3.106      libaio-devel-0.3.106       libgcc-4.1.1-52      libstdc++-4.1.1       libstdc++-devel-4.1.1-52.e15      make-3.81-1.1      sysstat-7.0.0      unixODBC-2.2.11      unixODBC-devel-2.2.11


VII. References

Install oracle 10 Gb in inux (super detailed graphic tutorial)

Http://xjzhujunjie.blog.51cto.com/3582724/863367

Install Oracle 10g R2 in Linux (RHEL 5.4)

Http://blog.csdn.net/robinson_0612/article/details/5431428

Mounting ISO files in linux

Http://zhidao.baidu.com/question/20161944.html

@ Wentasy

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.