{"id":284,"date":"2012-08-10T16:15:54","date_gmt":"2012-08-10T08:15:54","guid":{"rendered":"http:\/\/www.sulabs.net\/?p=284"},"modified":"2020-08-28T18:41:21","modified_gmt":"2020-08-28T10:41:21","slug":"centos-6-%e4%bd%bf%e7%94%a8-x-win32-%e5%ae%89%e8%a3%85oracle-11gr2","status":"publish","type":"post","link":"https:\/\/www.sulabs.net\/?p=284","title":{"rendered":"CentOS 6 \u4f7f\u7528 X-Win32 \u5b89\u88c5Oracle 11gR2"},"content":{"rendered":"<p><a href=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/firefox_test.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-285\" title=\"firefox_test\" src=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/firefox_test-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\"><\/a>X-Win32 \u662f\u4e00\u4e2a X Window \u5ba2\u6237\u7aef\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u5728 Win \u5e73\u53f0\u4e0a\u8fdc\u7a0b\u8fde\u63a5Linux \u670d\u52a1\u5668\uff0c\u5e76\u4f7f\u7528\u670d\u52a1\u5668\u4e0a\u7684\u56fe\u5f62\u5e94\u7528\u7a0b\u5e8f\uff0c\u7c7b\u4f3c\u7684\u8f6f\u4ef6\u8fd8\u6709 Xming ,XManager \u7b49\u7b49\uff0c\u5bf9\u4e8eOracle \u7c7b\u6570\u636e\u5e93\uff0c\u5c31\u4e0d\u518d\u9700\u8981\u5355\u72ec\u5b89\u88c5KDE,GNOME \u7b49\u5e9e\u5927\u7684\u56fe\u5f62\u754c\u9762\u73af\u5883\u6765\u8f85\u52a9\u5b89\u88c5\u3002<\/p>\n<p>1.\u4e0b\u8f7d\u5b89\u88c5 X-Win32&nbsp;\u6700\u65b0\u7248\u672c\u4e3a 9.1<br \/>\n\u4e0b\u56fe\u4e3a\u4f7f\u7528X-Win32 \u8fdc\u7a0b\u8fd0\u884c Linux&nbsp;\u865a\u62df\u673a\u4e2d\u7684&nbsp;Firefox \u6d4f\u89c8\u5668 \u6f14\u793a<br \/>\n<!--more--><\/p>\n<p><a href=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/firefox_test.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-285 alignnone\" title=\"firefox_test\" src=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/firefox_test-1024x747.jpg\" alt=\"\" width=\"620\" height=\"452\" srcset=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/firefox_test-1024x747.jpg 1024w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/firefox_test-300x218.jpg 300w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/firefox_test.jpg 1198w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>2.\u5728 CentOS 6.3 64\u4f4d\u7cfb\u7edf\u4e2d&nbsp;(\u9ed8\u8ba4\u6700\u5c0f\u5b89\u88c5)&nbsp;Yum \u5b89\u88c5 X \u663e\u793a\u914d\u7f6e\u7ba1\u7406\u5668\uff0cXterm \u7ec8\u7aef\uff0c\u5b57\u4f53\u7b49\u5de5\u5177<\/p>\n<pre class=\"brush: shell; gutter: true\">yum install xorg-x11-xdm xterm dbus-x11 xorg-x11-fonts* xorg-x11-utils<\/pre>\n<p>\u7cfb\u7edf\u8bed\u8a00\u9ed8\u8ba4\u4e3a EN-US \u82f1\u6587\uff0c\u5982\u679c\u9700\u8981\u7cfb\u7edf\u652f\u6301\u4e2d\u6587\u5b57\u4f53\u663e\u793a\uff0c\u8fd8\u9700\u8981\u989d\u5916\u5b89\u88c5<\/p>\n<pre class=\"brush: shell; gutter: true\">yum install &quot;@Chinese Support&quot;<\/pre>\n<p>3. \u5b89\u88c5Oracle \u4f9d\u8d56\u7ec4\u4ef6\u5305<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">yum install binutils compat-libstdc++-33 elfutils-libelf-devel-static elfutils-libelf-devel elfutils-libelf elfutils-devel-static elfutils-devel glibc-headers glibc glibc-common glibc-devel gcc gcc-c++ kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel sysstat unixODBC unixODBC-devel pdksh<\/pre>\n<p>4. \u521b\u5efa Oracle \u7528\u6237\u7ec4\u548c\u8d26\u6237\u53ca\u76ee\u5f55\u6743\u9650\u8bbe\u7f6e<\/p>\n<pre class=\"brush: shell; gutter: true\"># groupadd oinstall\t\t\t\/\/\u6dfb\u52a0oinstall \u7ec4\r\n# groupadd dba\t\t\t\t\/\/\u6dfb\u52a0dba \u7ec4\r\n# useradd -m -g oinstall -G dba oracle  \/\/\u5efa\u7acboracle \u7528\u6237\uff0c\u5e76\u6dfb\u52a0\u5230 oinstall \u7ec4\r\n# passwd oracle\t\t\t\t\/\/\u8bbe\u7f6eOracle \u8d26\u6237\u5bc6\u7801\r\n# mkdir -pv \/usr\/local\/oracle\t\t\/\/\u5efa\u7acb oracle \u76ee\u5f55\r\n\r\n# mkdir -pv \/usr\/local\/oracle\/\t\t\t\/\/\u521b\u5efaoracle \u5b89\u88c5\u76ee\u5f55\uff0c\u6839\u636e\u9700\u8981\u8fdb\u884c\u4fee\u6539\r\n# chown -R oracle:oinstall \/usr\/local\/oracle\t\/\/\u8d4b\u4e88\u76ee\u5f55\u8bbf\u95ee\u6743\u9650\r\n# mkdir -pv \/var\/oracle\/oradata\t\t\t\/\/\u521b\u5efaoracle \u6570\u636e\u5e93\u76ee\u5f55\uff0c\u6839\u636e\u81ea\u8eab\u9700\u8981\u8fdb\u884c\r\n# chown -R oracle:oinstall \/var\/oracle\/oradata\t\/\/\u8d4b\u4e88\u76ee\u5f55\u8bbf\u95ee\u6743\u9650\r\n# chmod -R 775 \/usr\/local\/oracle\t\t\/\/\u4fee\u6539\u5b89\u88c5\u76ee\u5f55\u6743\u9650\r\n# chmod -R 775 \/var\/oracle\t\t\t\/\/\u4fee\u6539\u6570\u636e\u5e93\u76ee\u5f55\u6743\u9650\r\n\r\n# \/usr\/local\/oraInventory                           \/\/\u5b89\u88c5\u4fe1\u606f\u5b58\u50a8\u76ee\u5f55\r\n# chown -R oracle.oinstall \/usr\/local\/oraInventory  \/\/\u8d4b\u4e88\u76ee\u5f55\u8bbf\u95ee\u6743\u9650<\/pre>\n<p>5. \u4fee\u6539\u5185\u6838\u53c2\u6570\u914d\u7f6e<\/p>\n<pre class=\"brush: shell; gutter: true\"># vi \/etc\/sysctl.conf<\/pre>\n<p>---\u52a0\u5165\u4ee5\u4e0b\u53c2\u6570---<br \/>\nkernel.shmmni = 4096<br \/>\nkernel.sem = 250 32000 100 128<br \/>\nnet.core.rmem_default=4194304<br \/>\nnet.core.wmem_default=262144<br \/>\nnet.core.rmem_max=4194304<br \/>\nfs.file-max = 6815744<br \/>\nnet.ipv4.ip_local_port_range = 9000 65500<br \/>\nnet.core.wmem_max = 1048576<br \/>\nfs.aio-max-nr = 1048576<\/p>\n<pre class=\"brush: actionscript3; gutter: true\"># sysctl -p<\/pre>\n<p>\u4f7f\u914d\u7f6e\u751f\u6548<\/p>\n<p>6. \u4fee\u6539\u7528\u6237\u7cfb\u7edf\u8fdb\u7a0b\u548c\u6587\u4ef6\u6253\u5f00\u9650\u5236\u6570<\/p>\n<pre># vi \/etc\/security\/limits.conf<\/pre>\n<p>------\u52a0\u5165\u4ee5\u4e0b\u5185\u5bb9<br \/>\noracle soft nproc 2047<br \/>\noracle hard nproc 16384<br \/>\noracle soft nofile 1024<br \/>\noracle hard nofile 65536<br \/>\n7. \u8bbe\u7f6e Oracle \u7528\u6237\u9ed8\u8ba4\u767b\u9646\u811a\u672c<\/p>\n<pre class=\"brush: shell; gutter: true\">vi \/etc\/pam.d\/login<\/pre>\n<p>---\u52a0\u5165\u4e0b\u9762\u5185\u5bb9<br \/>\nsession required \/lib64\/security\/pam_limits.so<br \/>\n\/\/ 64\u4f4d\u4e3a\/lib64 32\u4f4d\u4e3a \/lib<\/p>\n<p>-- \u4fee\u6539 Profile \u914d\u7f6e<\/p>\n<pre class=\"brush: shell; gutter: true\">vi \/etc\/profile<\/pre>\n<p>--\u52a0\u5165\u4ee5\u4e0b\u5185\u5bb9<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">if [ \\$USER = &quot;oracle&quot; ]; then \r\nif [ \\$SHELL = &quot;\/bin\/ksh&quot; ]; then\r\nulimit -p 16384\r\nulimit -n 65536\r\nelse\r\nulimit -u 16384 -n 65536\r\nfi\r\numask 022\r\nfi<\/pre>\n<p>\u4fee\u6539 sch.login<\/p>\n<pre class=\"brush: shell; gutter: false\">vi \/etc\/csh.login<\/pre>\n<p>---\u52a0\u5165\u4ee5\u4e0b\u5185\u5bb9<\/p>\n<pre class=\"brush: shell; gutter: true\">if ( \\$USER == &quot;oracle&quot; ) then\r\nlimit maxproc 16384\r\nlimit descriptors 65536\r\numask 022\r\nendif<\/pre>\n<p>8. \u4fee\u6539\u7cfb\u7edf\u4e3b\u673a\u540d\u914d\u7f6e<br \/>\n\u6ce8\u610f\uff0c\u5982\u679c\u7cfb\u7edf\u5b89\u88c5\u65f6\u6307\u5b9a\u4e86\u4e3b\u673a\u540d\uff0c\u9700\u8981\u7f16\u8f91 \/etc\/hosts \u505a\u4e00\u6761\u672c\u5730\u89e3\u6790\u8bb0\u5f55\uff0c\u4f8b\uff1a<\/p>\n<pre class=\"brush: shell; gutter: true\">127.0.0.1     VM-Linux localhost localhost.localdomain localhost4 localhost4.localdomain4\r\n::1           VM-Linux localhost localhost.localdomain localhost6 localhost6.localdomain6\r\n192.168.1.170 VM-Linux localhost localhost.localdomain<\/pre>\n<p>9.\u5f00\u59cb\u5b89\u88c5 Oracle<br \/>\n\u4f7f\u7528 oracle \u8d26\u6237\u767b\u5f55 X-Win32 \uff0c\u5e76\u5207\u6362\u5230 oracle \u5b89\u88c5\u5305\u76ee\u5f55\u4e0b\uff0c\u6267\u884c .\/runInstaller.sh \u5f00\u59cb\u5b89\u88c5\uff0c\uff08&nbsp;\u6ce8\u610f\u6587\u4ef6\u6743\u9650\uff0c\u4e3a\u65b9\u4fbf\u8d77\u89c1\uff0c\u53ef\u4ee5\u5148\u7528root \u767b\u5f55\uff0c\u5c06\u5b89\u88c5\u5305\u76ee\u5f55\u6743\u9650\u66f4\u6539\u4e3a 777\uff09<\/p>\n<p><a href=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/oracle_ins.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-287 alignnone\" title=\"oracle_ins\" src=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/oracle_ins-1024x845.jpg\" alt=\"\" width=\"620\" height=\"511\" srcset=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/oracle_ins-1024x845.jpg 1024w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/oracle_ins-300x247.jpg 300w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/oracle_ins.jpg 1141w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>\u6839\u636e\u5c4f\u5e55\u8fdb\u884c\u9009\u62e9\u8fdb\u884c\u5b89\u88c5\u5373\u53ef\uff0c\u53c2\u8003\u8def\u5f84<br \/>\nOracle Base&nbsp; \/usr\/local\/oracle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/\u57fa\u7840\u8def\u5f84<br \/>\nSoftware Location \/usr\/local\/oracle\/product\/11.2.0\/dbhome_1&nbsp; \/\/\u5b89\u88c5\u4f4d\u7f6e<br \/>\nData file \/var\/oracle\/oradata&nbsp; \/\/\u6570\u636e\u5e93\u76ee\u5f55<br \/>\n\u8fd9\u91cc\u4e0d\u518d\u8be6\u7ec6\u63cf\u8ff0\uff0c\u8bf7\u53c2\u8003\u5176\u4ed6\u8d44\u6599<\/p>\n<p>10.\u542f\u52a8\u65b9\u6cd5<br \/>\n# su oracle&nbsp;&nbsp; \/\/\u5207\u6362\u5230oracle \u7528\u6237<br \/>\n# export ORACLE_UNQNAME=orcl \/\/\u5bfc\u5165\u73af\u5883\u53d8\u91cf # \/usr\/local\/oracle\/product\/11.2.0\/dbhome_1\/bin\/emctl start dbconsole&nbsp;&nbsp; \/\/\u542f\u52a8\u63a7\u5236\u53f0<\/p>\n<p>\u8bbf\u95ee \uff1a <a href=\"https:\/\/192.168.1.250:1158\/em\">https:\/\/IP\u5730\u5740:1158\/em<\/a><\/p>\n<p>\/\/\u9ed8\u8ba4\u7ba1\u7406\u5458 system \u5bc6\u7801\u4e3a\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u7684\u5bc6\u7801<br \/>\n<a href=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/oracle_em.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"oracle_em\" src=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2012\/08\/oracle_em-1024x810.jpg\" alt=\"\" width=\"620\" height=\"490\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>X-Win32 \u662f\u4e00\u4e2a X Window \u5ba2\u6237\u7aef\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u5728 Win \u5e73\u53f0\u4e0a\u8fdc &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.sulabs.net\/?p=284\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,33],"tags":[57,59,60,58],"class_list":["post-284","post","type-post","status-publish","format-standard","hentry","category-other","category-db","tag-oracle","tag-x-win32","tag-x-window","tag-xming"],"_links":{"self":[{"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/posts\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=284"}],"version-history":[{"count":6,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":978,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/posts\/284\/revisions\/978"}],"wp:attachment":[{"href":"https:\/\/www.sulabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}