Step one, install VMware Tools:
The full screen interface is more convenient to install Oracle.
①umount? /media/centos 7 x86_64
②vmware--Virtual Machine Options--Installation tools
③ Auto Mount
④ into?/media/vmware\ tools/unzip the package under the directory to the specified directory:
???? Tar? zxvf vmwaretools-10.1.6-5214329.tar.gz?-C/tmp/
⑤ into the/tmp/directory, unzip the package to extract the generated directory: vmware-tools-distrib/execute the directory file:
????. /vmware-install.pl "Install, always enter until the end"
⑥ installed, reboot: Init? 3--init? 5
⑦ctrl+alt+enter into full Screen interface
Step two, install Oracle:
(1) Copy the two packages to the virtual machine:
???? P13390677_112040_linux-x86-64_1of7
???? P13390677_112040_linux-x86-64_2of7
(2) to perform the preparation before orainst_11g the automated installation script:
???? ① First configure the Yum source.
Vim?/etc/yum.repos.d/base.repo???? [Base]???? Name=centos???? baseurl=http://172.17.0.1/centos/centos-6.9-x86_64/???? gpgcheck=0???? [Epel]???? Name=epel???? baseurl=http://172.17.0.1/fedora-epel/6/x86_64/???? gpgcheck=0???? enable=1
② extract Two compressed packages:
???? The database directory that was generated after the Oracle installation package was decompressed is placed under/root.
???? To view the contents of the database directory:
③ Ensure that the IP address on the Internet is static, set as follows:
#vim? Ifcfg-eth0???? Device=eth0???? Onboot=yes???? Bootproto=static???? ipaddr=172.17.151.127?????? PREFIX=16???? dns1=172.17.0.1?????? #vim? ifcfg-eth1???? Device=eth1???? Type=ethernet???? Onboot=yes???? Bootproto=none???? ipaddr=192.168.41.129???? prefix=24???? hwaddr=00:0c:29:eb:72:4c
The ④ host name can be resolved: the IP address and hostname are written to/etc/hosts.
? vim?/etc/hosts???? 192.168.41.129?? Centos6.localdomain
? Note: This script is for the 11g installation of Enterprise Edition 6, not for 12g, or Centos7
(3) Execute script:./orainst_11g.
(4) After the script executes, the database directory contents are copied to the strange directory under the Oracle directory.
"The script has bugs, not all copied over, so manually copy the contents of the/root/database/."
(5) Switching Oracle users:
????? Xhost?? +???? Su?-? Oracle
(6) Enter the database and execute the script runinsatll. Start the Oracle installation.
(7) Where the installation process requires attention:
???? ① installation to the check section,
???????? Error 1: Missing package
???????????? FIX: Download pdksh-5.2.14-30.x86_64.rpm package to virtual machine
???????????????? rpm-e Ksh
???????????????? RPM-IVH pdksh-5.2.14-30.x86_64.rpm
???????????????? Yum Install Ksh
???????? error 2: Kernel parameters do not match
????? ? ?? FIX:? Modify kernel Parameters: vim/etc/sysctl.conf
???????????????? Kernel.shmmax = 1043634176
???????????????? entry into force: Sysctl-p
???? ② continue to the place, need to open a new terminal, under the root user, execute two scripts:
????? . /u01/app/oracle/11.2.0/db_1/root.sh
?????. /u01/app/orainventory/orainstroot.sh
? (8) Successful installation.
Step three, install the Oracle database:
(1) switch to Oracle user, execute DBCA, start installing Oracle database, ensure the GUI.
???? Xhost?? +???? Su?? -?? Oracle???? Dbca
(2) run to this step and execute the following command to open the process.
????? Su?-? Oracle???? Lsnrctl?start???? netstat?-tulnpa?| grep?-w?1521
? ? ??
(3) The installation process is generally selected in the following steps.
? (4) Installation completed, login as shown below, the installation is successful.
Additional:orainst_11g automated Installation Scripts
#!/bin/bashpkg= "unixodbcunixodbc-develbinutilscompat-libstdc++- 33elfutils-libelfelfutils-libelf-develelfutils-libelf-devel-staticgccgcc-c++ glibcglibc-commonglibc-develglibc-headerskernel-headerskshlibaiolibaio-devellibgcclibgomplibstdc++libstdc++- Develmakenumactl-develsysstat "Packinstall=for? Package?in? $PKG?; Do???? Rpm?-q? $PACKAGE? | |? Packinstall= "$PACKINSTALL? $PACKAGE" Doneechoif? [?-Z?] $PACKINSTALL "?]; Then??? True?? Else??? Echo? " The?followling?packages?will?be?install: $PACKINSTALL? "??? Read?-p? " Continue?? (y/n):? "? Answer??? Case? $answer???????? ([yy]| [Yy] [Ee] [Ss])????????????? Echo?1????????????? Yum?-y?install? $PACKINSTALL?;???????? (*);;??? esacficat?/etc/group?| grep?oinstall?&>?/dev/null?| |? /usr/sbin/groupadd?oinstallcat?/etc/group?| grep?dba?&>?/dev/null?| |? /usr/sbin/groupadd?dbaid?oracle?&>?/dev/null?if? [?$?? =?0?]; Then?groups?oracle?|? grep?dba?&>?/dev/null?| |? /usr/sbin/usermod?-g?oinstall?-g?dba?oracleelse?/usr/sbin/useradd?-g?oinstall?-g?dba?oracle?echo?oracle?| passwd?--stdin?oraclefikelnum=$ (cat?/etc/sysctl.conf?| grep?-v?^#?| grep?-v?^$?| Grep?-e? " fs.aio-max-nr|fs.file-max|kernel.shmall|kernel.shmmax|kernel.shmmni|kernel.sem|net.ipv4.ip_local_port_range| Net.core.rmem_default|net.core.rmem_max|net.core.wmem_default|net.core.wmem_max "? | Awk? ' {print?$1} '? | sort?-u?| Wc?-l?) If? [$KELNUM?-lt?11?]; Thencat?>>?/etc/sysctl.conf?<<eoffs.aio-max-nr?=?1048576fs.file-max?=?6815744kernel.shmall?=? 2097152kernel.shmmax?=?536870912kernel.shmmni?=?4096kernel.sem?=?250?32000?100?128net.ipv4.ip_local_port_range ? =?9000?65500net.core.rmem_default?=?262144net.core.rmem_max?=?4194304net.core.wmem_default?=? 262144net.core.wmem_max?=?1048586eof/sbin/sysctl?-pfigrep?oracle?/etc/security/limits.conf?&>?/dev/null ??? If? [?$??! =?0?]; thencat?>>?/etc/security/limits.conf?<<? Eoforacle?????????????? Soft???? Nproc??? 2047oracle?????????????? Hard???? Nproc??? 16384oracle?????????????? Soft???? Nofile?? 1024oracle?????????????? Hard???? Nofile?? 65536oracle?????????????? Soft???? Stack??? 1024eof?figrep?pam_limits.so?/etc/pam.d/login?&>?/dev/null?? If? [?$??! =?0?]; Thencat?>>?/etc/pam.d/login?<<eofsession?required?pam_limits.soeof?? fi[?-d?/u01/app?]?| |? (mkdir?-p?/u01/app/?;? Chown?-r?oracle:oinstall?/u01/app/?;? Chmod?-r?775?/u01/app?) Grep?-i?oracle?~oracle/.bash_profile?&>?/dev/null?? If? [?$??! =?0?]; Thencat?>>?~oracle/.bash_profile?<<eofexport? Oracle_base=/u01/app/oracleexport? Oracle_home=\ $ORACLE _base/11.2.0/db_1export? Oracle_sid=orclexport? Path=\ $PATH: \ $ORACLE _home/bineof?? fixhost?+[?-d?~oracle/database?]?| |? Mv?/root/database?~oracle?cd?~oracle;su?-? oracle?-c? ' Database/runinstaller '
Installing Oracle under CENTOS6