Linux System Oracle Installation

Source: Internet
Author: User
Tags chmod

system environment:Linux Redhat 6.3 Server 64-bit

Database version: oracle11g V11.2

Installation Method: Silent Installation

Installation steps:

First, the preparatory work:

1.1. Download Oracle 11g on Oracle website, download linux.x64_11gR2_database_1of2.zip,linux.x64_11gr2_database_ The 2of2.zip file is uploaded from Windows to the Linux operating system via the SSH tool. Unzip the compressed file:

Unzip Linux.x64_11gR2_database_1of2.zip

Unzip Linux.x64_11gR2_database_2of2.zip

1.2. Install package check (check installation package that Oracle relies on for Linux installation)

Rpm-qa | grep PackageName

The packages that depend on are as follows:

glibc-2.5-24

glibc-devel-2.5

libaio-0.3.106

libgcc-4.1.2

libstdc++-4.1.2

compat-libstdc++-33-

Libaio-devel

Note: The 32-bit Linux operating system or different versions of the operating system may require packages that vary

Ii. Creating users and Groups

Groupadd Oinstall/* Create Oinstall Group */

Groupadd DBA/ * Create DBA Group * /

Useradd-g oinstall-g dba-d/home/user_home Oracle /* Create a user and join the user to a group, the user directory can select the folder itself (if the selected folder encounters the following prompt: /c1> notcopying any file from Skel directory into it.

Creating mailbox File:file exists is due to missing files in the directory can be resolved by the following command

Cp/etc/skel/.bash_profile/home/user_home

Cp/etc/skel/.bashrc/home/user_home

Cp/etc/skel/.bash_logout/home/user_home

)* /

passwd Oracle/* Set the Oracle user password */

Under root user chmod 777/home/user_home/* To set folder Write permissions, configure environment variables for the following needs */

Third, create the Oracle installation directory:

Mkdir-p/opt/app/oracle/product/11.2.0/dbhome_1

Chown-r oracle.oinstall/opt/* Modify file user and genus Group */

chmod 777/opt/app

IV. Configuring environment variables

Su-oracle/* Switch to the Oracle directory */

VI. bash_profile/* Configure environment variables in the. bash_profile file */

Export Oracle_base=/opt/app/oracle

Export Oracle_home=/opt/app/oracle/product/11.2.0/dbhome_1

Export ORACLE_SID=ORCL

Export path=.: $ORACLE _home/bin: $ORACLE _home/apache/apache/bin: $PATH

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

Export Ld_library_path

Classpath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib

Classpath= $CLASSPATH: $ORACLE _home/network/jlib

Export CLASSPATH

Path= $PATH:/usr/sbin; Export PATH

Path= $PATH:/usr/bin; Export PATH

Press ESC to exit VI when Setup is complete

: Wq/* SAVE environment variable */

SOURCE. Bash_profile/* Set Environment variables effective immediately */

env | grep ORA/* See if the environment variable is in effect */

Five, Software Installation

5.1.oracle Installing database Software

Cd/data/oracle_install/database/*oracle installation file The database directory of the decompression path */

Modify these places in the Db_install.rsp file:

Oracle.install.option=install_db_swonly

Oracle_hostname=localhost

Unix_group_name=oinstall

Inventory_location=/opt/app/orainventory

Selected_languages=zh_cn,en

Oracle_home=/opt/app/oracle/product/11.2.0/dbhome_1

Oracle_base=/opt/app/oracle

Oracle.install.db.installedition=ee

Oracle.install.db.dba_group=oinstall

Oracle.install.db.oper_group=oinstall

Oracle.install.db.config.starterdb.globaldbname=orcl

Oracle.install.db.config.starterdb.sid=orcl

Oracle.install.db.config.starterdb.characterset=zhs16gbk

After the modification is complete, save, execute the following command

./runinstaller-silent-noconfig-force-responsefile/data/oracle_install/database/response/db_install.rsp

Execute after successful execution as root user

Cd/opt/app/orainventory

./orainstroot.sh

Cd/opt/app/oracle/product/11.2.0/dbhome_1

./root.sh

Silent installation of 5.2.oracle listening (no need to modify NETCA.RSP file by default)

Cd/opt/app/oracle/product/11.2.0/dbhome_1

Bin/netca/silent/responsefile/data/oracle_install/database/response/netca.rsp

5.3.oracle of database Installation

Modify these places in the Dbca.rsp file

Gdbname = "ORCL"

SID = "ORCL"

templatename = "Db_oracle.dbc"

CHARACTERSET = "ZHS16GBK"

After the modification is complete, save and execute the following statement:

Bin/dbca-silent-responsefile/data/oracle_install/database/response/dbca.rsp

You will be prompted to enter the SYS and system password when starting the installation



Start monitoring after completion of installation : lsnrctl start

View listening Status:lsnrctl status

Stop listening: Lsnrctl Stop

To start and stop an Oracle instance:

Sqlplus/nolog

Sql> Conection/as SYSDBA

Sql> Startup

sql> Shutdown Immediate

Connecting to an Oracle instance

sql> Conn [email protected] as SYSDBA


Reference Blog: http://blog.itpub.net/23890223/viewspace-757665/

Http://blog.sina.com.cn/s/blog_3eb222740100ij71.html

http://blog.csdn.net/yiqi0/article/details/7360503













Linux System Oracle Installation

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.