{"id":13823,"date":"2017-04-05T07:49:00","date_gmt":"2017-04-05T10:49:00","guid":{"rendered":"http:\/\/orabr.com\/?p=13823"},"modified":"2017-04-05T07:49:00","modified_gmt":"2017-04-05T10:49:00","slug":"instalando-oraclebanco-11g-r2-no-centos-7","status":"publish","type":"post","link":"https:\/\/orabr.virttus.com\/?p=13823","title":{"rendered":"Instalando Oracle(Banco 11g R2)  no CentOS 7"},"content":{"rendered":"<p><HTML><HTML>01 &#8211;\u00a0Unpack Files<\/p>\n<p>Unzip the files.<br \/>\nunzip linux.x64_11gR2_database_1of2.zip<br \/>\nunzip linux.x64_11gR2_database_2of2.zip<\/p>\n<p>02 &#8211; Hosts File<br \/>\nThe &#8220;\/etc\/hosts&#8221; file must contain a fully qualified name for the server.<br \/>\n&lt;IP-address&gt; &lt;fully-qualified-machine-name&gt; &lt;machine-name&gt;<br \/>\nFor example.<br \/>\n127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4<br \/>\n192.168.0.215 ol7.localdomain ol7<\/p>\n<p>Set the correct hostname in the &#8220;\/etc\/hostname&#8221; file.<br \/>\nol7.localdomain<br \/>\nAutomatic Setup<br \/>\nIf you plan to use the &#8220;oraclerdbmsserver11gR2preinstall&#8221;<br \/>\npackage to perform all your prerequisite setup, follow the instructions at http:\/\/publicyum.<br \/>\noracle.com (http:\/\/publicyum.<br \/>\noracle.com) to setup the yum repository for OL, then perform the following command.<br \/>\n# yum install oracle-rdbms-server-11gR2-preinstall<br \/>\nIt is probably worth doing a full update as well, but this is not strictly speaking necessary.<br \/>\n# yum update<br \/>\nManual Setup<br \/>\nIf you have not used the &#8220;oraclerdbmsserver11gR2preinstall&#8221;<br \/>\npackage to perform all prerequisites, you will need to manually perform the following<br \/>\nsetup tasks.<br \/>\nAdd or amend the following lines in the &#8220;\/etc\/sysctl.conf&#8221; file.<br \/>\nfs.aio-max-nr = 1048576<br \/>\nfs.file-max = 6815744<br \/>\nkernel.shmall = 2097152<br \/>\nkernel.shmmax = 536870912<br \/>\nkernel.shmmni = 4096<br \/>\n# semaphores: semmsl, semmns, semopm, semmni<br \/>\nkernel.sem = 250 32000 100 128<br \/>\nnet.ipv4.ip_local_port_range = 9000 65500<br \/>\nnet.core.rmem_default=262144<br \/>\nnet.core.rmem_max=4194304<br \/>\nnet.core.wmem_default=262144<br \/>\nnet.core.wmem_max=1048586<br \/>\nRun the following command to change the current kernel parameters.<br \/>\n\/sbin\/sysctl -p<\/p>\n<p>Add the following lines to the &#8220;\/etc\/security\/limits.conf&#8221; file.<br \/>\noracle soft nproc 2047<br \/>\noracle hard nproc 16384<br \/>\noracle soft nofile 4096<br \/>\noracle hard nofile 65536<br \/>\noracle soft stack 10240<\/p>\n<p>Add the following line to the &#8220;\/etc\/pam.d\/login&#8221; file, if it does not already exist.<br \/>\nsession required pam_limits.so<br \/>\nyum install binutils -y<br \/>\nyum install compat-libstdc++-33 -y<br \/>\nyum install compat-libstdc++-33.i686 -y<br \/>\nyum install gcc -y<br \/>\nyum install gcc-c++ -y<br \/>\nyum install glibc -y<br \/>\nyum install glibc.i686 -y<br \/>\nyum install glibc-devel -y<br \/>\nyum install glibc-devel.i686 -y<br \/>\nyum install ksh -y<br \/>\nyum install libgcc -y<br \/>\nyum install libgcc.i686 -y<br \/>\nyum install libstdc++ -y<br \/>\nyum install libstdc++.i686 -y<br \/>\nyum install libstdc++-devel -y<br \/>\nyum install libstdc++-devel.i686 -y<br \/>\nyum install libaio -y<br \/>\nyum install libaio.i686 -y<br \/>\nyum install libaio-devel -y<br \/>\nyum install libaio-devel.i686 -y<br \/>\nyum install libXext -y<br \/>\nyum install libXext.i686 -y<br \/>\nyum install libXtst -y<br \/>\nyum install libXtst.i686 -y<br \/>\nyum install libX11 -y<br \/>\nyum install libX11.i686 -y<br \/>\nyum install libXau -y<br \/>\nyum install libXau.i686 -y<br \/>\nyum install libxcb -y<br \/>\nyum install libxcb.i686 -y<br \/>\nyum install libXi -y<br \/>\nyum install libXi.i686 -y<br \/>\nyum install make -y<br \/>\nyum install sysstat -y<br \/>\nyum install unixODBC -y<br \/>\nyum install unixODBC-devel -y<br \/>\nyum install zlib-devel -y<br \/>\nyum install elfutils-libelf-devel -y<br \/>\nCreate the new groups and users.<br \/>\n#groupadd -g 54321 oinstall<br \/>\n#groupadd -g 54322 dba<br \/>\n#groupadd -g 54323 oper<br \/>\n#groupadd -g 54324 backupdba<br \/>\n#groupadd -g 54325 dgdba<br \/>\n#groupadd -g 54326 kmdba<br \/>\n#groupadd -g 54327 asmdba<br \/>\n#groupadd -g 54328 asmoper<br \/>\n#groupadd -g 54329 asmadmin<br \/>\n#useradd -g oinstall -G dba,oper oracle<br \/>\nAdditional Setup<br \/>\nThe following steps must be performed, whether you did the manual or automatic setup.<br \/>\nSet the password for the &#8220;oracle&#8221; user.<br \/>\npasswd oracle<br \/>\nSet secure Linux to permissive by editing the &#8220;\/etc\/selinux\/config&#8221; file, making sure the SELINUX flag<br \/>\nis set as follows.<br \/>\nSELINUX=permissive<br \/>\nOnce the change is complete, restart the server or run the following command.<br \/>\n# setenforce Permissive<\/p>\n<p>If you have the Linux firewall enabled, you will need to disable or configure it, as shown here (\/articles\/linux\/oraclelinux6installation#<br \/>\nfirewall) or here<br \/>\n(\/articles\/linux\/linuxfirewall#<br \/>\ninstallation). To disable it, do the following.<br \/>\n# systemctl stop firewalld<br \/>\n# systemctl disable firewalld<br \/>\nCreate the directories in which the Oracle software will be installed.<br \/>\nmkdir -p \/u01\/app\/oracle\/product\/11.2.0.4\/db_1<br \/>\nchown -R oracle:oinstall \/u01<br \/>\nchmod -R 775 \/u01<\/p>\n<p>Unless you are working from the console, or using SSH tunnelling, login as root and issue the following command.<br \/>\nxhost +&lt;machine-name&gt;<br \/>\nAdd the following lines at the end of the &#8220;\/home\/oracle\/.bash_profile&#8221; file.<br \/>\n# Oracle Settings<br \/>\nTMP=\/tmp; export TMP<br \/>\nTMPDIR=$TMP; export TMPDIR<br \/>\nORACLE_HOSTNAME=ol7.localdomain; export ORACLE_HOSTNAME<br \/>\nORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME<br \/>\nORACLE_BASE=\/u01\/app\/oracle; export ORACLE_BASE<br \/>\nORACLE_HOME=$ORACLE_BASE\/product\/11.2.0.4\/db_1; export ORACLE_HOME<br \/>\nORACLE_SID=DB11G; export ORACLE_SID<br \/>\nORACLE_TERM=xterm; export ORACLE_TERM<br \/>\nPATH=\/usr\/sbin:$PATH; export PATH<br \/>\nPATH=$ORACLE_HOME\/bin:$PATH; export PATH<br \/>\nLD_LIBRARY_PATH=$ORACLE_HOME\/lib:\/lib:\/usr\/lib; export LD_LIBRARY_PATH<br \/>\nCLASSPATH=$ORACLE_HOME\/JRE:$ORACLE_HOME\/jlib:$ORACLE_HOME\/rdbms\/jlib; export CLASSPATH<\/p>\n<p>Installation<br \/>\nLog into the oracle user. If you are using X emulation then set the DISPLAY environmental variable.<br \/>\nDISPLAY=&lt;machine-name&gt;:0.0; export DISPLAY<\/p>\n<p>Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory.<br \/>\n.\/runInstaller<\/p>\n<p>Post Installation<br \/>\nEdit the &#8220;\/etc\/oratab&#8221; file setting the restart flag for each instance to &#8216;Y&#8217;.<br \/>\nDB11G:\/u01\/app\/oracle\/product\/11.2.0.4\/db_1:Y<\/HTML><\/HTML><\/p>\n","protected":false},"excerpt":{"rendered":"<p>01 &#8211;\u00a0Unpack Files Unzip the files. unzip linux.x64_11gR2_database_1of2.zip unzip linux.x64_11gR2_database_2of2.zip 02 &#8211; Hosts File The &#8220;\/etc\/hosts&#8221; file must contain a fully qualified name for the&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124,56],"tags":[],"class_list":["post-13823","post","type-post","status-publish","format-standard","hentry","category-database","category-oracle"],"_links":{"self":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts\/13823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13823"}],"version-history":[{"count":1,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts\/13823\/revisions"}],"predecessor-version":[{"id":13824,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts\/13823\/revisions\/13824"}],"wp:attachment":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}