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