{"id":3650,"date":"2014-10-28T21:26:41","date_gmt":"2014-10-28T13:26:41","guid":{"rendered":"http:\/\/rmohan.com\/?p=3650"},"modified":"2014-10-31T22:59:54","modified_gmt":"2014-10-31T14:59:54","slug":"centos-6-5_x64-install-oracle-11g-r2","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3650","title":{"rendered":"CentOS 6.5_x64 install Oracle 11g R2"},"content":{"rendered":"<p>[root@oracledb ~]# hostname<br \/>\noracledb<br \/>\n[root@oracledb ~]#<\/p>\n<p>[root@oracledb ~]# vi \/etc\/hosts<br \/>\n[root@oracledb ~]# ifconfig -a<br \/>\neth0\u00a0\u00a0\u00a0\u00a0\u00a0 Link encap:Ethernet\u00a0 HWaddr 00:0C:29:E7:97:A3<br \/>\ninet addr:192.168.1.8\u00a0 Bcast:192.168.1.255\u00a0 Mask:255.255.255.0<br \/>\ninet6 addr: fe80::20c:29ff:fee7:97a3\/64 Scope:Link<br \/>\nUP BROADCAST RUNNING MULTICAST\u00a0 MTU:1500\u00a0 Metric:1<br \/>\nRX packets:306 errors:0 dropped:0 overruns:0 frame:0<br \/>\nTX packets:202 errors:0 dropped:0 overruns:0 carrier:0<br \/>\ncollisions:0 txqueuelen:1000<br \/>\nRX bytes:32272 (31.5 KiB)\u00a0 TX bytes:24144 (23.5 KiB)<\/p>\n<p>lo\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Link encap:Local Loopback<br \/>\ninet addr:127.0.0.1\u00a0 Mask:255.0.0.0<br \/>\ninet6 addr: ::1\/128 Scope:Host<br \/>\nUP LOOPBACK RUNNING\u00a0 MTU:16436\u00a0 Metric:1<br \/>\nRX packets:12 errors:0 dropped:0 overruns:0 frame:0<br \/>\nTX packets:12 errors:0 dropped:0 overruns:0 carrier:0<br \/>\ncollisions:0 txqueuelen:0<br \/>\nRX bytes:720 (720.0 b)\u00a0 TX bytes:720 (720.0 b)<\/p>\n<p>[root@oracledb ~]# vi \/etc\/hosts<br \/>\n[root@oracledb ~]# hostname<br \/>\noracledb<br \/>\n[root@oracledb ~]# hostname<br \/>\noracledb<br \/>\n[root@oracledb ~]# sed -i &#8220;s\/SELINUX=enforcing\/SELINUX=disabled\/&#8221; \/etc\/selinux\/config<br \/>\n[root@oracledb ~]#\u00a0 setenforce 0<br \/>\n[root@oracledb ~]#\u00a0 yum -y install\u00a0 gcc gcc-c++ make binutilscompat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-commonglibc-devel libaio libaio-devel libgcclibstdc++ libstdc++-devel unixODBC unixODBC-devel<\/p>\n<p>[root@oracledb ~]# sysctl -p<br \/>\n[root@oracledb ~]# groupadd -g 200 oinstall<br \/>\n[root@oracledb ~]# groupadd -g 201 dba<br \/>\n[root@oracledb ~]# useradd -u 440 -g oinstall -G dba oracle<br \/>\n[root@oracledb ~]# passwd oracle<br \/>\n[root@oracledb ~]# vi \/etc\/sysctl.conf<br \/>\nnet.ipv4.ip_local_port_range= 9000 65500<br \/>\nfs.file-max = 6815744<br \/>\nkernel.shmall = 10523004<br \/>\nkernel.shmmax = 6465333657<br \/>\nkernel.shmmni = 4096<br \/>\nkernel.sem = 250 32000 100128<br \/>\nnet.core.rmem_default=262144<br \/>\nnet.core.wmem_default=262144<br \/>\nnet.core.rmem_max=4194304<br \/>\nnet.core.wmem_max=1048576<br \/>\nfs.aio-max-nr = 1048576<\/p>\n<p>[root@oracledb ~]# vi \/etc\/pam.d\/login<br \/>\nsession\u00a0\u00a0\u00a0 required\u00a0\u00a0\u00a0 pam_namespace.so<br \/>\nsession\u00a0\u00a0\u00a0 required\u00a0\u00a0\u00a0 pam_limits.so<br \/>\nvi \/etc\/profile<\/p>\n<p>if [ $USER =&#8221;oracle&#8221; ]; then<br \/>\nif [ $SHELL = &#8220;\/bin\/ksh&#8221; ];then<br \/>\nulimit -p 16384<br \/>\nulimit -n 65536<br \/>\nelse<br \/>\nulimit -u 16384 -n 65536<br \/>\nfi<br \/>\nfi<br \/>\n[root@oracledb ~]# mkdir \/opt\/oracle\/app\/<br \/>\n[root@oracledb ~]# mkdir \/opt\/oracle\/oradata\/<br \/>\n[root@oracledb ~]# chmod 755 \/opt\/oracle\/<br \/>\n[root@oracledb ~]# chmod 775 \/opt\/oracle\/app\/<br \/>\n[root@oracledb ~]# chown oracle.oinstall -R \/opt\/oracle\/<br \/>\n[oracle@oracledb ~]$ vi ~\/.bash_profile<br \/>\nexport ORACLE_BASE=\/opt\/oracle\/app<br \/>\nexport ORACLE_HOME=$ORACLE_BASE\/product\/11.2.0\/dbhome_1<br \/>\nexport PATH=$PATH:$ORACLE_HOME\/bin<br \/>\nexport ORACLE_PID=orcl<\/p>\n<p><strong>working one <\/strong><\/p>\n<p>ORACLE_BASE=\/opt\/oracle\/app\/oracle;<br \/>\nORACLE_HOME=$ORACLE_BASE\/product\/11.2.0\/dbhome_1;<br \/>\nORACLE_SID=orcl;<br \/>\nLD_LIBRARY_PATH=$ORACLE_HOME\/lib;<br \/>\nPATH=$PATH:$ORACLE_HOME\/bin:$HOME\/bin;<br \/>\nexport ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH;<\/p>\n<p>[oracle@oracledb ~]$ source .bash_profile<br \/>\n# vi \/etc\/rc.d\/init.d\/oracle<\/p>\n<p>Oracle<\/p>\n<p>#! \/bin\/bash<br \/>\n# chkconfig: 234 61 61<br \/>\n# description: Oracle 11g AutoRun Service<br \/>\n# \/etc\/rc.d\/init.d\/oracle<\/p>\n<p>case &#8220;$1&#8221; in<br \/>\nstart)<br \/>\n# starts oracle listener and instance<br \/>\necho &#8220;Starting Oracle Database:&#8221;<br \/>\nsu &#8211; oracle -lc &#8220;lsnrctl start&#8221;<br \/>\nsu &#8211; oracle -lc dbstartup<br \/>\n;;<br \/>\nstop)<br \/>\n# shutdown oracle listner and instance<br \/>\necho &#8220;Shuting down Oracle Database:&#8221;<br \/>\nsu &#8211; oracle -lc &#8220;lsnrctl stop&#8221;<br \/>\nsu &#8211; oracle -lc dbshutdown<br \/>\n;;<br \/>\nreload|restart)<br \/>\n$0 stop<br \/>\n$0 start<br \/>\n;;<br \/>\n*)<br \/>\necho &#8220;Usage: {start|stop|reload|restart}&#8221;<br \/>\nexit 1<br \/>\nesac<br \/>\nexit 0<br \/>\ndbstart dbshut<\/p>\n<p>2?dbstartup dbshutdown<\/p>\n<p>$ vi $ORACLE_HOME\/bin\/dbstartup<\/p>\n<p>#dbstartup<br \/>\n#\/opt\/oracle\/102\/bin<br \/>\nsqlplus \/ as sysdba &lt;&lt;EOF<br \/>\nstartup<br \/>\nexit<br \/>\nEOF<br \/>\nvi$ORACLE_HOME\/bin\/dbshutdown<\/p>\n<p>#dbshutdown<br \/>\n#\/home\/oracle\/102\/bin<br \/>\nsqlplus \/ as sysdba &lt;&lt;EOF<br \/>\nshutdown immediate<br \/>\nexit<br \/>\nEOF<\/p>\n<p>3?<\/p>\n<p># cd \/etc\/rc.d\/init.d<br \/>\n# .\/oracle start<br \/>\n# .\/oracle stop<\/p>\n<p>4?oracle<\/p>\n<p># chmod 750 \/etc\/rc.d\/init.d\/oracle<br \/>\n# chkconfig &#8211;level 234 oracle on<br \/>\n# chkconfig &#8211;add oracle<br \/>\n[root@oracledb software]# unzip linuxamd64_12102_database_1of2.zip<br \/>\n[root@oracledb software]# unzip linuxamd64_12102_database_2of2.zip<\/p>\n<p>[root@oracledb~]# xhost +<br \/>\n[root@oracledb~]# su \u2013 oracle<br \/>\n[root@oracledb~]# .\/software\/database\/runinstaller<\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-001.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3651\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-001.jpg\" alt=\"db 001\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-001.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-001-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-001-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-001-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-001-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-001-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-002.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3652\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-002.jpg\" alt=\"db 002\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-002.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-002-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-002-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-002-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-002-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-002-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-003.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3653\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-003.jpg\" alt=\"db 003\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-003.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-003-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-003-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-003-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-003-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-003-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-004.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3654\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-004.jpg\" alt=\"db 004\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-004.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-004-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-004-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-004-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-004-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-004-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-005.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3655\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-005.jpg\" alt=\"db 005\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-005.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-005-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-005-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-005-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-005-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-005-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-006.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3656\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-006.jpg\" alt=\"db 006\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-006.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-006-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-006-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-006-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-006-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-006-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-007.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3657\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-007.jpg\" alt=\"db 007\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-007.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-007-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-007-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-007-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-007-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-007-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-008.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3658\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-008.jpg\" alt=\"db 008\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-008.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-008-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-008-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-008-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-008-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-008-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-009.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3659\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-009.jpg\" alt=\"db 009\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-009.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-009-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-009-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-009-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-009-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-009-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-010.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3660\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-010.jpg\" alt=\"db 010\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-010.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-010-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-010-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-010-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-010-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-010-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-011.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3661\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-011.jpg\" alt=\"db 011\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-011.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-011-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-011-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-011-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-011-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-011-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-012.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3662\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-012.jpg\" alt=\"db 012\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-012.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-012-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-012-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-012-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-012-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-012-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-013.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3663\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-013.jpg\" alt=\"db 013\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-013.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-013-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-013-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-013-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-013-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-013-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-014.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3664\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-014.jpg\" alt=\"db 014\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-014.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-014-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-014-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-014-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-014-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-014-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-015.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3665\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-015.jpg\" alt=\"db 015\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-015.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-015-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-015-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-015-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-015-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-015-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-016.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3666\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-016.jpg\" alt=\"db 016\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-016.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-016-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-016-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-016-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-016-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-016-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-017.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3667\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-017.jpg\" alt=\"db 017\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-017.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-017-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-017-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-017-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-017-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-017-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-018.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3668\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-018.jpg\" alt=\"db 018\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-018.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-018-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-018-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-018-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-018-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-018-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-019.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3669\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-019.jpg\" alt=\"db 019\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-019.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-019-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-019-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-019-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-019-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-019-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-020.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3670\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-020.jpg\" alt=\"db 020\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-020.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-020-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-020-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-020-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-020-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-020-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-021.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3671\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-021.jpg\" alt=\"db 021\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-021.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-021-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-021-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-021-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-021-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-021-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-022.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3672\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-022.jpg\" alt=\"db 022\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-022.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-022-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-022-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-022-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-022-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-022-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a> <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-023.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3673\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2014\/10\/db-023.jpg\" alt=\"db 023\" width=\"1920\" height=\"1080\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-023.jpg 1920w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-023-300x168.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-023-1024x576.jpg 1024w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-023-150x84.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-023-400x225.jpg 400w, https:\/\/mohan.sg\/wp-content\/uploads\/2014\/10\/db-023-900x506.jpg 900w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>[root@oracledb CVU_11.2.0.1.0_oracle]# sh runfixup.sh<br \/>\nResponse file being used is :.\/fixup.response<br \/>\nEnable file being used is :.\/fixup.enable<br \/>\nLog file location: .\/orarun.log<br \/>\nSetting Kernel Parameters&#8230;<br \/>\nThe value for semopm in response file is not greater than value for semopm in \/etc\/sysctl.conf file. Hence not changing it.<br \/>\nkernel.sem = 250 32000 100 128<br \/>\nfs.file-max = 6815744<br \/>\nThe value for file-max in response file is not greater than value for file-max in \/etc\/sysctl.conf file. Hence not changing it.<br \/>\nfs.file-max = 6815744<br \/>\nThe upper limit of ip_local_port range in reponse file is not greater than value in \/etc\/sysctl.conf, hence not changing it.<br \/>\nnet.ipv4.ip_local_port_range = 9000 65500<br \/>\nnet.core.rmem_default=262144<br \/>\nThe value for rmem_default in response file is not greater than value for rmem_default in \/etc\/sysctl.conf file. Hence not changing it.<br \/>\nnet.core.rmem_default = 262144<br \/>\nnet.core.wmem_default=262144<br \/>\nThe value for wmem_default in response file is not greater than value for wmem_default in \/etc\/sysctl.conf file. Hence not changing it.<br \/>\nnet.core.wmem_default = 262144<br \/>\nnet.core.rmem_max=4194304<br \/>\nThe value for rmem_max in response file is not greater than value for rmem_max in \/etc\/sysctl.conf file. Hence not changing it.<br \/>\nnet.core.rmem_max = 4194304<br \/>\nnet.core.wmem_max=1048576<br \/>\nThe value for wmem_max in response file is not greater than value for wmem_max in \/etc\/sysctl.conf file. Hence not changing it.<br \/>\nnet.core.wmem_max = 1048576<br \/>\nfs.aio-max-nr = 1048576<br \/>\nThe value for aio-max-nr in response file is not greater than value for aio-max-nr in \/etc\/sysctl.conf file. Hence not changing it.<br \/>\nfs.aio-max-nr = 1048576<br \/>\n[root@oracledb CVU_11.2.0.1.0_oracle]#yum install libaio* glibc* compat-libstdc* libaio-devel* libgcc* libstc++* unixoDBC* pdksh*<\/p>\n<p>download the url from<\/p>\n<p>http:\/\/mirror.centos.org\/centos\/6.5\/os\/i386\/Packages\/<br \/>\nhttp:\/\/mirror.centos.org\/centos\/6.5\/os\/i386\/Packages\/<\/p>\n<p>wget http:\/\/mirror.centos.org\/centos\/6.5\/os\/i386\/Packages\/libaio-0.3.107-10.el6.i686.rpm<br \/>\nwget http:\/\/mirror.centos.org\/centos\/6.5\/os\/i386\/Packages\/libaio-devel-0.3.107-10.el6.i686.rpm<br \/>\nwget http:\/\/mirror.centos.org\/centos\/6.5\/os\/i386\/Packages\/compat-libstdc++-33-3.2.3-69.el6.i686.rpm<br \/>\nwget http:\/\/mirror.centos.org\/centos\/6.5\/os\/i386\/Packages\/libgcc-4.4.7-4.el6.i686.rpm<br \/>\nwget http:\/\/mirror.centos.org\/centos\/6.5\/os\/i386\/Packages\/libstdc++-4.4.7-4.el6.i686.rpm<br \/>\nwget http:\/\/mirror.centos.org\/centos\/6.5\/os\/i386\/Packages\/unixODBC-2.2.14-12.el6_3.i686.rpm<br \/>\nwget http:\/\/mirror.centos.org\/centos\/6.5\/os\/i386\/Packages\/unixODBC-devel-2.2.14-12.el6_3.i686.rpm<\/p>\n<p>yum install libaio*<br \/>\nyum install libaio* glibc* compat-libstdc*<br \/>\nyum install libaio* glibc* compat-libstdc* libaio-devel* libgcc* libstc++* unixoDBC* pdksh*<br \/>\nyum install  libgcc* libstc++* unixoDBC* pdksh*<br \/>\nyum search unixODBC<br \/>\nyum install  libgcc* libstc++* unixODBC* pdksh*<br \/>\nyum install  libgcc++*<br \/>\nyum search PDF<br \/>\nyum search pdksh<br \/>\nyum install mksh<br \/>\nyum search unixODBC*<br \/>\nyum search unixODBC<br \/>\nyum install unixODBC-devel.i686 unixODBC-devel.x86_64 unixODBC.i686 unixODBC.x86_64<\/p>\n<p>rpm -ivh compat-libstdc++-33-3.2.3-69.el6.i686.rpm<br \/>\nrpm -ivh libaio-0.3.107-10.el6.i686.rpm<br \/>\nrpm -ivh libaio-devel-0.3.107-10.el6.i686.rpm<br \/>\nrpm -ivh libstdc++-4.4.7-4.el6.i686.rpm<br \/>\n   80  yum remove libstdc++<br \/>\n   81  rpm -ivh libstdc++-4.4.7-4.el6.i686.rpm<br \/>\n   82  ls<br \/>\n   83  yum remove unixODBC<br \/>\n   84  ls<br \/>\n   85  rpm -ivh unixODBC-2.2.14-12.el6_3.i686.rpm unixODBC-devel-2.2.14-12.el6_3.i686.rpm<\/p>\n<p> Oracle common commands<br \/>\n[root @ oracledb ~] # su -oracle<br \/>\n[oracle @ oracledb ~] # sqlplus \/ as sysdba<br \/>\nSQL> startup # Start the database instance<br \/>\nSQL> shutdown immediate # close the database instance<br \/>\nSQL> select * from tab; # View all the tables<br \/>\nSQL> select name from v$datafile; # view database storage directory<br \/>\nSQL> show parameter service # View service name<br \/>\nSQL> select * from v$instance; # View instance name<br \/>\nSQL> select name from v$database; # Check the database name<br \/>\nSQL> select * from dba_users; # view all user information<br \/>\nSQL> select username, password from dba_users; # only query the user and password<br \/>\nSQL> select * from v$pwfile_users; # View user with sysdba privileges<br \/>\nSQL> select * from dba_ustats; # view the current user information<br \/>\nSQL> select * fromuser_sys_privs # view the permissions of the current user&#8217;s system<br \/>\nSQL> select * fromuser_role_privs # view the current user role<br \/>\nSQL> select * fromdba_sys_privs # View system permissions for the specified user has<br \/>\nSQL> select * from v$version; # View oracle version<br \/>\nSQL> select * fromuser_views # View View Information<br \/>\nSQL>  show user<br \/>\nUSER is &#8220;SYS&#8221;<\/p>\n<p>SQL> select banner from v$version;<\/p>\n<p>BANNER<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nOracle Database 11g Enterprise Edition Release 11.2.0.1.0 &#8211; 64bit Production<br \/>\nPL\/SQL Release 11.2.0.1.0 &#8211; Production<br \/>\nCORE    11.2.0.1.0      Production<br \/>\nTNS for Linux: Version 11.2.0.1.0 &#8211; Production<br \/>\nNLSRTL Version 11.2.0.1.0 &#8211; Production<\/p>\n<p>[root @ oracledb ~] # lsnrctl start # turn on the remote listening port<br \/>\n### Remote connection information<\/p>\n<p>oracle user<br \/>\n#sys and system users difference<br \/>\nDifferent 1&gt; the importance of storing data<br \/>\nsys to store the data dictionary base tables and views, maintained by the database itself, any user can manually change, sys user owns dba, sysdba, sysoper other roles or privileges, is the highest authority oracle user.<br \/>\nThe system users only store some level of internal data, such as management information oracle of some features or tools. For database management, System users have ordinary dba role permissions.<br \/>\n2&gt; Different permissions<br \/>\nsysoper sys user with sysdba or system privileges, log em can only use these two identities, can not use normal.<br \/>\nsystem user can log on em with normal identity, unless you have it granted sysdba system privileges or syspoer system privileges.<br \/>\n#sysdba and sysoper difference between the two systems permissions<br \/>\nnormal ordinary users<br \/>\nsysdba has the highest system privileges, log is sys<br \/>\nsysoper mainly used to start, shut down the database login user is public after sysoper<br \/>\nThe difference #dba and sysdba<br \/>\nFirst understand the process of creating the next oracle service: Create an instance -&gt; Start Instance -&gt; Create Database<br \/>\nStartup process: Example start -&gt; Load Database -&gt; Open Database<br \/>\nsysdba is to manage the oracle instance, its existence does not depend on the entire database is fully activated, as long as the instance starts up, it already exists as sysdba login, load the database, open the database. Only the database is open, or the entire database completely after starting, dba role only exists foundation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[root@oracledb ~]# hostname oracledb [root@oracledb ~]#<\/p>\n<p>[root@oracledb ~]# vi \/etc\/hosts [root@oracledb ~]# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0C:29:E7:97:A3 inet addr:192.168.1.8 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fee7:97a3\/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:306 errors:0 dropped:0 overruns:0 frame:0 TX packets:202 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:32272 (31.5 KiB) TX bytes:24144 (23.5 KiB)<\/p>\n<p> [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3650"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3650"}],"version-history":[{"count":4,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3650\/revisions"}],"predecessor-version":[{"id":3677,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3650\/revisions\/3677"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}