huawen5

          Ubuntu 9.04安裝Oracle 11

          1.安裝wcid
             sudo aptitude install wicd

          2.安裝Oracle
          ruijc@jackalope:~$sudo apt-get install unzip build-essential x11-utils rpm ksh lsb-rpm libaio1

          ruijc@jackalope:~$ sudo su -

          root@jackalope:~# cd /bin

          root@jackalope:/bin# ls -l /bin/sh
          lrwxrwxrwx 1 root root 4 2009-05-26 12:58 /bin/sh -> dash

          root@jackalope:/bin# ln -sf /bin/bash /bin/sh

          root@jackalope:/bin# ls -l /bin/sh
          lrwxrwxrwx 1 root root 9 2009-05-26 13:27 /bin/sh -> /bin/bash

          root@jackalope:/bin#

          root@jackalope:/bin# cd

          root@jackalope:~# addgroup oinstall
          Adding group `oinstall' (GID 1001) ...
          Done.

          root@jackalope:~# addgroup dba
          Adding group `dba' (GID 1002) ...
          Done.

          root@jackalope:~# addgroup nobody
          Adding group `nobody' (GID 1003) ...
          Done.

          root@jackalope:~# usermod -g nobody nobody

          root@jackalope:~# useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle

          root@jackalope:~# mkdir /home/oracle

          root@jackalope:~# chown -R oracle:dba /home/oracle

          root@jackalope:~# ln -s /usr/bin/awk /bin/awk

          root@jackalope:~# ln -s /usr/bin/rpm /bin/rpm

          root@jackalope:~# ln -s /usr/bin/basename /bin/basename

          root@jackalope:~# mkdir /etc/rc.d

          root@jackalope:~# for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done

          root@jackalope:~# mkdir -p /u01/app/oracle

          root@jackalope:~# chown -R oracle:dba /u01

          root@jackalope:~#

          ----------------
          root@jackalope:~# cd /etc

          root@jackalope:/etc# cp sysctl.conf sysctl.conf.original

          root@jackalope:/etc# vi sysctl.conf
          #Edit it, adding the following lines to the bottom of the file:
          fs.file-max = 65535
          kernel.shmall = 2097152
          kernel.shmmax = 2147483648
          kernel.shmmni = 4096
          kernel.sem = 250 32000 100 128
          net.ipv4.ip_local_port_range = 1024 65535
          net.core.rmem_default = 4194304
          net.core.rmem_max = 4194304
          net.core.wmem_default = 262144
          net.core.wmem_max = 262144

          root@jackalope:/etc# cd /etc/security/

          root@jackalope:/etc/security# cp limits.conf limits.conf.original

          root@jackalope:/etc/security# vi limits.conf
          #Add the following lines to the bottom of the file:
          oracle soft nproc 2047
          oracle hard nproc 16383
          oracle soft nofile 1023
          oracle hard nofile 65535

          root@jackalope:/etc/security#

          root@jackalope:/etc/security#cd /etc/pam.d/

          root@jackalope:/etc/pam.d# sysctl -p
          fs.file-max = 65535
          kernel.shmall = 2097152
          kernel.shmmax = 2147483648
          kernel.shmmni = 4096
          kernel.sem = 250 32000 100 128
          net.ipv4.ip_local_port_range = 1024 65535
          net.core.rmem_default = 4194304
          net.core.rmem_max = 4194304
          net.core.wmem_default = 262144
          net.core.wmem_max = 262144
          root@jackalope:/etc/pam.d# logout
          ruijc@jackalope:~$ logout
          Connection to 192.168.254.118 closed.

          ruijc@jackalope:~$

          ruijc@jackalope:~$ unzip Oracle.11g.Release.1.linux_11gR1_database.zip
          Archive:  Oracle.11g.Release.1.linux_11gR1_database.zip
             creating: database/
             creating: database/doc/
             creating: database/doc/dcommon/
             creating: database/doc/dcommon/css/
            inflating: database/doc/dcommon/css/blafdoc.css
            inflating: database/doc/dcommon/css/bp_layout.css
          (...)
            inflating: database/stage/properties/oracle.server_Custom.properties
            inflating: database/stage/properties/oracle.server_PE.properties
            inflating: database/welcome.html

          ruijc@jackalope:~$

          ruijc@jackalope:~$ whoami
          ruijc

          ruijc@jackalope:~$ sudo su -

          root@jackalope:~# su - oracle

          oracle@jackalope:~$ export DISPLAY=127.0.0.1:0.0

          oracle@jackalope:~$ cd /home/ruijc/database

          oracle@jackalope:/home/ruijc/database$ ./runInstaller -jreLoc $JAVA_HOME/jre
          Starting Oracle Universal Installer...

          Oracle 安裝時亂碼的解決


          確定java環(huán)境可以顯示中文,如果不行:
          方法很簡單,就是在java安裝目錄下放進(jìn)去一個中文字體即可。

          cd $JAVA_HOME/jre/lib/fonts

          sudo mkdir fallback

          cd fallback

          sudo ln -s /usr/share/fonts/truetype/wqy/wqy-zenhei.ttc(把某個中文字體鏈接進(jìn) fallback 目錄,我選了最新的文泉驛夸父字體)

          sudo mkfontdir

          sudo mkfontscale

                 sudo cp wqy-zenhei.ttc wqy-zenhei.ttf


          oracle@ts:/home/tangshuai/database$ ./runInstaller -jreLoc $JAVA_HOME/jre正在啟動 Oracle Universal Installer...

          檢查臨時空間: 必須大于 80 MB。   實(shí)際為 7456 MB    通過
          檢查交換空間: 必須大于 150 MB。   實(shí)際為 2949 MB    通過
          檢查監(jiān)視器: 監(jiān)視器配置至少必須顯示 256 種顏色
              >>> 無法使用命令 /usr/X11R6/bin/xdpyinfo 自動檢查顯示器顏色。請檢查是否設(shè)置了 DISPLAY 變量。    未通過 <<<<

          未通過某些要求檢查。必須先滿足這些要求,
          出錯解決方法
          corection:

          You are logged as different user than root or oracle.
          I don't know your login so in examples I'll call it my_login

          So as my_login execute in shell:
          xhost +

          As oracle execute:
          export DISPLAY=:0
          ./runInstaller

          If this don't help then as root execute:
          # gdmconfig
          Go to "Security" section and there is something like "Always disallow TCP ..." this checkbox must be unchecked.


          ----------------------------------------------------
          rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
          error: cannot open Packages index using db3 - No such file or directory (2)
          error: cannot open Packages database in /var/lib/rpm
          apt-get install  rpm alien



          posted on 2009-11-08 19:17 開發(fā)者 閱讀(686) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           

          導(dǎo)航

          <2009年11月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          統(tǒng)計(jì)

          常用鏈接

          留言簿

          隨筆檔案

          相冊

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 安远县| 玉林市| 藁城市| 鄱阳县| 沽源县| 崇州市| 柘荣县| 凤山县| 斗六市| 含山县| 宝丰县| 曲水县| 沙雅县| 叶城县| 满城县| 大名县| 阳高县| 长白| 大宁县| 叶城县| 互助| 克拉玛依市| 天门市| 湖口县| 磴口县| 仁布县| 南昌县| 禄劝| 乐安县| 区。| 北票市| 普格县| 南京市| 紫金县| 时尚| 肇东市| 天长市| 青神县| 墨竹工卡县| 高青县| 南城县|