Install Oracle 11gr2 in Oracle Linux 6

Source: Internet
Author: User

1. Set Vmware

Set hard disk to be greater than 20 GB; otherwise, the database fails to be created due to insufficient space. Set hard disk to 40 GB.

2. Install Oracle Linux 6

Select the following package when installing the OS:

 
Base System> basebase system> Client Management toolsbase system> compatibility librariesbase system> Hardware Monitoring isolation system> large systems performancebase system> Network File System clientbase system> Performance toolsbase system> Perl supportservers> server platformservers> system administration> Publish topic navigation tops> desktop platformdesktops> fontsdesktops> general purpose publish topdesktops> graphical administration> input methodsdesktops> X Window systemdevelopment> additional browse> development toolsapplications> Internet browser

3. Install Oracle 11gr2

3.1 modify the hosts file
Vim/etc/hosts
<IP-address> <machine-Name>
Eg:
127.0.0.1 vsky
If this parameter is not modified, the following error occurs during installation: Net configuration assistant failed.

3.2 Configuration
3.2.1 create related users and groups
Create a user and enter the following command:
Groupadd oinstall
Groupadd DBA
Create an oracle user and password, and enter the following command:
Useradd-G oinstall-g dba-M Oracle
Passwd Oracle
The password will be entered twice, but the password must be consistent. Press enter to confirm.

3.2.2 create the Database Software Directory and data file storage directory and directory location
Enter the following command:
Mkdir/home/Oracle/APP
Mkdir/home/Oracle/APP/Oracle
Mkdir/home/Oracle/APP/oradata
Mkdir/home/Oracle/APP/Oracle/product

Change the directory owner to an oracle user
Chown-r ORACLE: oinstall/home/Oracle/APP

3.2.3 configure Oracle user environment variables
Su-Oracle
CD/home/Oracle
Vi. bash_profile

Umask 022 export oracle_base =/home/Oracle/appexport ORACLE_HOME = $ oracle_base/Oracle/product/11.2.0/dbhome_1export oracle_sid = orclexport Path = $ path: $ home/bin: $ ORACLE_HOME/binexport LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib

3.3 formal installation
CD database
./Runinstaller
All the way to next

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.