Oracle 12c installation process under Oracle Linux 6.5

1. Check the hardware requirements Disk space: Enterprise Edition requires 6.4GB. /tmp space: 1G of free space. [root@oracle12c ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9 1.5G 421M 988M 30% / tmpfs 3.9G 1.9G 2.1G 48% /dev/shm /dev/sda1 477M 55M 397M 13 % /boot /dev/sda8 2.0G 4.7M 1.9G 1% /opt /dev/sda6 3.9G 18M 3.6G 1% /tmp /dev/sda2 9.8G 2.9G 6.4G 32% /usr /dev/sda7 3.9G 8.2M 3.7G 1% /usr/local /dev/sda3 9.8G 2.6G 6.7G 28% /var /dev/sdb1 59G 9.8G 47G 18% /u01 Created the /u01 directory and mounted /sdb1 before. [root@oracle12c ~]# df -h /tmp Filesystem Size Used Avail Use% Mounted on /dev/sda6 3.9G 18M 3.6G 1% /tmp Memory: at least 1GB, more than 2GB is recommended. [root@oracle12c ~]# grep MemTotal /proc/meminfo MemTotal: 8177432 kBSWAP: When the memory is between 1GB and 2GB, SWAP is recommended to be 1. 5 times; when the memory is between 2GB and 16GB, the swap is recommended to be equal to the memory size; when the memory is greater than 16GB, the swap is recommended to be set to 16G. [root@oracle12c ~]# cat /proc/swaps Filename Type Size Used Priority /dev/sda5 partition 8388604 0 -1 2. Check software requirements 2.1 Check operating system version and kernel [root@oracle12c ~]# cat /etc/oracle -release Oracle Linux Server release 6.5 [root@oracle12c ~]# uname -r 3.8.13-16.2.1.el6uek.x86_642.2 Check whether the package is installed Use the command rpm -q package_name to check whether the package is installed, use the command yum -y install package_name installs packages online. The following packages (or later versions) must be installed: binutils-2.20.51.0.2-5.11.el6 (x86_64) compat-libcap1-1.10-1 (x86_64) compat-libstdc++-33-3.2.3-69.el6 ( x86_64) gcc-4.4.4-13.el6 (x86_64) gcc-c++-4.4.4-13.el6 (x86_64) glibc-2.12-1.7.el6 (i686) glibc-2.12-1.7.el6 (x86_64) glibc- devel-2.12-1.7.el6 (x86_64) glibc-devel-2.12-1.7. el6 (i686) ksh libgcc-4.4.4-13.el6 (i686) libgcc-4.4.4-13.el6 (x86_64) libstdc++-4.4.4-13.el6 (x86_64) libstdc++-4.4.4-13.el6 (i686) libstdc++-devel-4.4.4-13.el6 (x86_64) libstdc++-devel-4.4.4-13.el6 (i686) libaio-0.3.107-10.el6 (x86_64) libaio-0.3.107-10 .el6 (i686) libaio-devel-0.3.107-10.el6 (x86_64) libaio-devel-0.3.107-10.el6 (i686) libXext-1.1 (x86_64) libXext-1.1 (i686) libXtst-1.0.99.2 (x86_64) libXtst-1.0.99.2 (i686) libX11-1.3 (x86_64) libX11-1.3 (i686) libXau-1.0.5 (x86_64) libXau-1.0.5 (i686) libxcb-1.5 (x86_64) libxcb-1.5 (i686) ) libXi-1.3 (x86_64) libXi-1.3 (i686) make-3.81-19.el6 sysstat-9.0.4-11.el6 (x86_64) Note: libX* package is a new requirement for 12c, in addition to these packages, The requirements are the same as 11g. 3. Create operating system users and groups 3.1 Create a group to check whether the group exists [root@oracle12c ~]# grep oinstall /etc/group [root@oracle12c ~]# grep dba /etc/group Create two groups, oinstall and dba [root @oracle12c ~]# /usr/sbin/groupadd oinstall [root@or http://www. wmem_max = 1048586 The two commented lines are added because the original file already exists and the setting value is larger than here. Enter the following command to make the change take effect: /sbin/sysctl -p 5. Set the resource limit of the installation user Log in to the root user, and add the content in /etc/security/limits.conf: oracle soft nofile 1024 oracle hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft stack 10240 oracle hard stack 10240 Log in again as the oracle user to take effect. 6. Assign permissions to the /u01 directory [root@oracle12c ~]# chown -R oracle:oinstall /u01 [root@oracle12c ~]# chmod -R 775 /u01 7. Set environment variables for the oracle user Log in with the oracle user and execute [root@oracle12c ~]# vi ~/.bash_profile Add the following lines: TMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIRORACLE_BASE=/u01/app/oracle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/12.1.0/dbhome_1 ; export ORACLE_HOMEORACLE_SID=orcl; export ORACLE_SIDNLS_LANG=American_America.zhs16gbk;export NLS_LANGORA_NLS10=$ORACLE_HOME/nls/data;export ORA_NLS10TNS_ADMIN=$ORACLE_HOME/network/admin;export TNS_ADMINORACLE_TERM=xterm; export ORACLE_TERMPATH=/usr/sbin:$PATH; export PATHPATH=$ORACLE_HOME/bin:$PATH; export PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATHSHLIB_PATH=$LD_LIBRARY_PATH;export SHLIB_PATHCLASSPATH=$ORACLE_HOME/ jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;export CLASSPATH Execute the following command to make the environment variable take effect: [oracle@oracle12c ~]$ source ~/.bash_profile 8. Install the database and create an instance to install the database using the graphical interface OUI And create instances and listeners (omitted). 9. Configure the database instance and monitor the automatic start After installing the Oracle database: Executing dbstart and dbshut will prompt: [oracle@oracle12c ~]$ dbstart ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener Usage: /u01/app/ oracle/oracle/product/10.2.0/db_1/bin/dbstart ORACLE_HOME Because there is a problem with the setting of ORACLE_HOME_LISTNER in the dbstart and dbshut script files, open two files to find: ORACLE_HOME_LISTNER=$1, and modify it to ORACLE_HOME_LISTNER=$ORACLE_HOME: [oracle@ oracle12c ~]$ vi $ORACLE_HOME/bin/dbstart[oracle@oracle12c ~]$ vi $ORACLE_HOME/bin/dbshut save and exit after modification, the first problem has been solved;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326396856&siteId=291194637