{"id":334,"date":"2016-11-24T08:55:47","date_gmt":"2016-11-23T23:55:47","guid":{"rendered":"https:\/\/onaraboo.com\/?p=334"},"modified":"2016-11-23T11:56:55","modified_gmt":"2016-11-23T02:56:55","slug":"linux-centos6-8%e3%81%aboracle11g%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/onaraboo.com\/?p=334","title":{"rendered":"Linux CentOS6.8\u306bOracle11g\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u2460"},"content":{"rendered":"<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/onaraboo.com\/?p=334\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/onaraboo.com\/?p=334\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Linux CentOS6.8\u306bOracle11g\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u2460\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img loading=\"lazy\" decoding=\"async\" src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_line\"><a href='http:\/\/line.me\/R\/msg\/text\/?Linux%20CentOS6.8%E3%81%ABOracle11g%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E2%91%A0%0D%0Ahttps%3A%2F%2Fonaraboo.com%2F%3Fp%3D334' title='LINE\u3067\u9001\u308b' rel=nofollow class='wp_social_bookmarking_light_a' ><img src='https:\/\/onaraboo.com\/wordpress\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/line20x20.png' alt='LINE\u3067\u9001\u308b' title='LINE\u3067\u9001\u308b' width='20' height='20' class='wp_social_bookmarking_light_img' \/><\/a><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/onaraboo.com\/?p=334\" data-text=\"Linux CentOS6.8\u306bOracle11g\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u2460\" data-lang=\"ja\">Tweet<\/a><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n<p>\u6700\u8fd1\u306fLinux\uff08CentOS\uff09\u3092\u5229\u7528\u3059\u308b\u6a5f\u4f1a\u304c\u591a\u304f\u306a\u3063\u305f\u3002<br \/>\n\u7279\u6bb5Windows\u3092\u5229\u7528\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u30b1\u30fc\u30b9\u3092\u9664\u304f\u3068\u30e9\u30a4\u30bb\u30f3\u30b9\u306e\u554f\u984c\u3092\u62b1\u3048\u308b\u3068\u7533\u8acb\u66f8\u3092\u66f8\u304f\u624b\u3082\u920d\u304f\u306a\u308b\u3002<br \/>\n\u305d\u3093\u306a\u4e2d\u3067\u306f\u3084\u308c\u308b\u3082\u306e\u306fLinux\u3067\u7d0d\u3081\u3066\u3057\u307e\u304a\u3046\u3068\u3044\u3046\u6c17\u6301\u3061\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u6a5f\u80fd\u3082\u5145\u5b9f\u3057\u3066\u3044\u3066\u7121\u511f\u5229\u7528\u3067\u304d\u308bLinux\u306f\u305d\u308c\u306a\u308a\u306b\u69cb\u7bc9\u30fb\u7ba1\u7406\u306e\u6577\u5c45\u304c\u9ad8\u304f\u306a\u308b\u90fd\u5408\u4e0a\u3001Windows\u306b\u6163\u308c\u89aa\u3057\u3093\u3060\u4eba\u306b\u306f\u656c\u9060\u3055\u308c\u304c\u3061\u306a\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u304c\u3001\u3053\u3093\u306a\u306b\u81ea\u5206\u3067\u3044\u308d\u3044\u308d\u3067\u304d\u308b\u306e\u3082\u697d\u3057\u3044\u3082\u306e\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u9244\u677f\u30bd\u30d5\u30c8\u306eOracle11g(\u3061\u3087\u3063\u3068\u53e4\u3044)\u3092Linux(CentOS 6.8)\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u305d\u306e\u624b\u9806\u3092\u8a18\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u5c1a\u3001Oracle11g\u306fCentOS7\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u4f55\u5ea6\u3082\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u307e\u3057\u305f\u304c\u3001\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002Oracle\u306e\u30b5\u30dd\u30fc\u30c8\u306b\u805e\u3044\u305f\u3068\u3053\u308d\u3067\u306f\u300cCentOS7\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u304f\u3066\u3001CentOS 6.8\u306a\u3089\u3044\u3051\u307e\u3059\u300d\u3068\u306e\u304a\u544a\u3052\u3092\u3044\u305f\u3060\u3044\u305f\u6b21\u7b2c\u3067\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u8a2d\u5b9a<\/h2>\n<p>\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u521d\u3081\u306b\u6c7a\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u30b5\u30fc\u30d0\u30fc\u540d\u3000\uff1aCentOS68Oracle-SV<br \/>\n\uff29\uff30\u30a2\u30c9\u30ec\u30b9\uff1a192.168.1.100<br \/>\n\u3068\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h3>\uff11\u3001CentOS 6.8\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/h3>\n<p>\u3000\u3053\u3053\u3067\u306fOS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u307e\u3067\u306f\u8a00\u53ca\u3057\u307e\u305b\u3093\u3002\u65e2\u306b\u69cb\u7bc9\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09\u5b8c\u4e86\u3057\u3066\u3044\u308b\u72b6\u6cc1\u3068\u307f\u306a\u3057\u3066\u8a18\u9332\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\uff12\u3001yum\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u66f4\u65b0<\/h3>\n<p>\u3000\u521d\u3081\u306byum\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u66f4\u65b0\u3092\u3057\u307e\u3059\u3002wget\u3067\u5404\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u53d6\u5f97\u3057\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# cd \/etc\/yum.repos.d\/\r\n# wget https:\/\/public-yum.oracle.com\/public-yum-ol6.repo --no-check-certificate\r\n# wget https:\/\/public-yum.oracle.com\/RPM-GPG-KEY-oracle-ol6 -O \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-oracle --no-check-certificate\r\n# yum install oracle-rdbms-server-11gR2-preinstall\r\n\r\n# yum install pdksh-5.2.14\r\n\r\n\u25cf\u4ee5\u4e0b\u306f\u81ea\u52d5\u3067\u306f\u5165\u3089\u306a\u3044\u306e\u3067yum\u3067\u500b\u5225\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\r\n# yum install gcc-c++ elfutils-libelf-devel glibc-devel libaio-devel unixODBC unixODBC-devel sysstat\r\n# yum install compat-libstdc++-33-3.2.3-69.el6.i686\r\n\r\n# yum install unixODBC\r\n# rpm -ivh --replacefiles glibc-common-2.3.4-2.41.x86_64.rpm glibc-2.3.4-2.41.i386.rpm\r\n<\/pre>\n<h3>\uff13\u3001Oracle\u7528\u306e\u30e6\u30fc\u30b6\u30fc\u30fb\u30b0\u30eb\u30fc\u30d7\u306e\u8ffd\u52a0<\/h3>\n<p>\u3000oinstall,dba\u30b0\u30eb\u30fc\u30d7\u3092\u8ffd\u52a0\u3001oracle\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\uff08\u4efb\u610f\u3067\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u8aac\u660e\u306f\u7f6e\u304d\u63db\u3048\u3067\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\uff09<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# groupadd oinstall\r\n# groupadd dba\r\n# groupadd oper\r\n# useradd -g oinstall -G dba,oper oracle\r\n# passwd oracle\r\n<\/pre>\n<p>\u203b\uff11\u5ea6\u3001\u30e6\u30fc\u30b6\u30fc\u300coracle\u300d\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3053\u306e\u52d5\u4f5c\u3067\u30e6\u30fc\u30b6\u30fc\u7528\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u60c5\u5831\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002(\u3053\u308c\u3092\u3057\u306a\u3044\u3068\u30e6\u30fc\u30b6\u30fc\u306e\u74b0\u5883\u5909\u6570\u8a2d\u5b9a\u6642\u306b\u30e1\u30f3\u30c9\u30af\u30b5\u30a4\u3067\u3059)<\/p>\n<h3>\uff14\u3001\u30ab\u30fc\u30cd\u30eb\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5909\u66f4\u3059\u308b<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nvi \/etc\/sysctl.conf\r\n<\/pre>\n<p>\u2193 \u4ee5\u4e0b\u3092\u8ffd\u52a0or\u5909\u66f4<\/p>\n<p>kernel.sem = 250 32000 100 128<br \/>\nfs.file-max = 6815744<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 = 1048576<br \/>\nfs.aio-max-nr = 1048576 <\/p>\n<p>\u3000\u9069\u7528\u3055\u305b\u308b<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsysctl -p\r\n<\/pre>\n<h3>\uff15\u3001\u5404\u7a2e\u30d5\u30a1\u30a4\u30eb\u306b\u8a2d\u5b9a\u3092\u5165\u308c\u308b<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nvi \/etc\/security\/limits.conf\r\n<\/pre>\n<p>\u3000\u30d5\u30a1\u30a4\u30eb\u306b\u6b21\u306e\u884c\u3092\u8ffd\u52a0<br \/>\noracle              soft    nproc   2047<br \/>\noracle              hard    nproc   16384<br \/>\noracle              soft    nofile  1024<br \/>\noracle              hard    nofile  65536<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nvi \/etc\/pam.d\/login\r\n<\/pre>\n<p>\u3000\u30d5\u30a1\u30a4\u30eb\u306b\u6b21\u306e\u884c\u3092\u8ffd\u52a0<br \/>\nsession required \/lib\/security\/pam_limits.so<br \/>\nsession required pam_limits.so<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nvi \/etc\/profile\r\n<\/pre>\n<p>\u3000\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u306b\u6b21\u306e\u884c\u3092\u8ffd\u52a0<br \/>\nif [ $USER = &#8220;oracle&#8221; ]; then<br \/>\n    if [ $SHELL = &#8220;\/bin\/ksh&#8221; ]; then<br \/>\n        ulimit -p 16384<br \/>\n        ulimit -n 65536<br \/>\n    else<br \/>\n        ulimit -u 16384 -n 65536<br \/>\n    fi<br \/>\n    umask 022<br \/>\nfi <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\/etc\/hosts\r\n<\/pre>\n<p>127.0.0.1\t[hostname]\nhosts\u306b\u81ea\u30db\u30b9\u30c8\u306e\u60c5\u5831\u3092\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n127.0.0.1       localhost.localdomain localhost<br \/>\n::1             localhost6.localdomain6 localhost6<br \/>\n192.168.1.10     Cent68Oracle-SV<br \/>\n\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<h3>\uff16\u3001Oracle\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30fc\u30bf\u3092\u30b5\u30fc\u30d0\u3078\u30bb\u30c3\u30c8\u3059\u308b<\/h3>\n<p>\u3000\u4e8b\u524d\u306bOracle\u306e\u30b5\u30a4\u30c8\u304b\u3089\u8f09\u305b\u308bOS\u306b\u3042\u3063\u305fbit\u306eOracle\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30fc\u30bf\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u30bb\u30c3\u30c8\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u3000\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u300c\/media\/file\/\u300d\u306b\u5165\u308c\u307e\u3059\u3002<br \/>\n\u3000Oracle\u306e\u30b5\u30a4\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3068\uff12\u3064\u306e\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u308a\u307e\u3059\u304c\uff11\u3064\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u307e\u3068\u3081\u3066\u30b5\u30fc\u30d0\u30fc\u306b\u30bb\u30c3\u30c8\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\uff17\u3001\u30e6\u30fc\u30b6\u30fc\u300coracle\u300d\u306e\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsu \u2012 oracle\r\nvi .bash\u0332profile\r\n<\/pre>\n<p>**** \u4e0b\u8a18\u3092\u8a18\u8f09 ***************************<br \/>\n# For Oracle<br \/>\numask 022<br \/>\nexport PATH<br \/>\nexport ORACLE_SID=[\u8a2d\u5b9a\u3059\u308bSID]\nexport ORACLE_BASE=\/opt\/oracle(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148)<br \/>\nexport ORACLE_HOME=$ORACLE_BASE\/product\/11.2.0\/dbhome_1<br \/>\nexport PATH=$PATH:$ORACLE_HOME\/bin<br \/>\nexport ORA_NLS10=$ORACLE_HOME\/nls\/data<br \/>\nexport LD_LIBRARY_PATH=.:$ORACLE_HOME\/lib:$LD_LIBRARY_PATH<br \/>\nexport TNS_ADMIN=$ORACLE_HOME\/network\/admin<br \/>\nexport NLS_LANG=JAPANESE_JAPAN.JA16SJISTILDE<br \/>\nexport ORACLE_HOSTNAME=Cent68Oracle-SV(\u30b5\u30fc\u30d0\u30fc\u540d)<\/p>\n<h3>\uff18\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u6e96\u5099<\/h3>\n<p>\u3000\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f5c\u6210<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmkdir -p \/opt\/oracle\/oradata\r\nmkdir \/opt\/oraInventory\r\nchown -R oracle:oinstall \/opt\/oracle\r\nchmod -R 775 \/opt\/oracle\r\nchown -R oracle:oinstall \/opt\/oraInventory\r\nchmod -R 775 \/opt\/oraInventory\r\n<\/pre>\n<h3>\uff19\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u306e\u5b9f\u884c<\/h3>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nxhost +\r\ncd \/media\/file\/database\/\r\n. runInstaller -jreLoc \/usr\/lib\/jvm\/java-1.7.0-openjdk-1.7.0.51-2.4.5.5.el7.x86_64\/jre\r\n<\/pre>\n<p>\u203b\uff13\u884c\u76ee\u306f\u5404\u3005\u306e\u74b0\u5883\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u304c\u59cb\u307e\u308a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u6b21\u56de\u306f\u5404\u7a2e\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u8a18\u8853\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u306fLinux\uff08CentOS\uff09\u3092\u5229\u7528\u3059\u308b\u6a5f\u4f1a\u304c\u591a\u304f\u306a\u3063\u305f\u3002 \u7279\u6bb5Windows\u3092\u5229\u7528\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u30b1\u30fc\u30b9\u3092\u9664\u304f\u3068\u30e9\u30a4\u30bb\u30f3\u30b9\u306e\u554f\u984c\u3092\u62b1\u3048\u308b\u3068\u7533\u8acb\u66f8\u3092\u66f8\u304f\u624b\u3082\u920d\u304f\u306a\u308b\u3002 \u305d\u3093\u306a\u4e2d\u3067\u306f\u3084\u308c\u308b\u3082\u306e\u306fLi&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/onaraboo.com\/?p=334\">Read more<span class=\"screen-reader-text\">Linux CentOS6.8\u306bOracle11g\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u2460<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,7,4,2,6],"tags":[],"class_list":["post-334","post","type-post","status-publish","format-standard","hentry","category-linux","category-oracle","category-4","category-2","category-6","entry"],"_links":{"self":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts\/334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=334"}],"version-history":[{"count":0,"href":"https:\/\/onaraboo.com\/index.php?rest_route=\/wp\/v2\/posts\/334\/revisions"}],"wp:attachment":[{"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onaraboo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}