Redhat Enterprise Edition 5安裝Oracle 11g

來源:互聯網
上載者:User

系統安裝:    選擇盡量多的開發軟體,X Windows為必需。一.建立必要的使用者,組和目錄   #mkdir -p /u01/Oracle   #groupadd dba   #groupadd oinstall   #useradd -g oinstall -G dba /u01/oracle  oracle   #passwd oracle bobo365   #chown -R oracle:oinstall /u01 把u01目錄賦予oracle使用者oinstall組   #ls -l 查看命令是否生效二.安裝前準備(1)用rpm -qa|grep * 查看是否已安裝如下軟體包,如沒安裝則安裝之。    binutils-2.15.92.0.2-18     compat-libstdc++-33.2.3-47.3    elfutils-libelf-0.97-5    elfutils-libelf-devel-0.97-5    glibc-2.3.9.4-2.19    glibc-common-2.3.9.4-2.19    glibc-devel-2.3.9.4-2.19    gcc-3.4.5-2    gcc-c++-3.4.5-2    libaio-devel-0.3.105-2    libaio-0.3.105-2    libgcc-3.4.5    libstdc++-3.4.5-2    libstdc++-devel-3.4.5-2    make-3.80-5    sysstat-5.0.5    unixODBC-2.2.11    unixODBC-devel-2.2.11 (2)修改/etc/sysctl.conf檔案,設定linux核心,在最後加入以下內容:   kernel.shmall = 2097152   kernel.shmmax = 2147483648   kernel.shmmni = 4096   kernel.sem = 250 32000 100 128   net.ipv4.ip_local_port_range = 1024 65000   net.core.rmem_default = 4194304   net.core.rmem_max = 4194304   net.core.wmem_default = 262144   net.core.wmem_max = 262144結束後#sbin/sysctl  -p 使系統生效 (3) 修改 /etc/security/limits.conf檔案,加入如下內容:oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536(4)修改/etc/profile檔案,加入如下內容:if [ $USER = "oracle" ]; thenif [ $SHELL = "/bin/ksh" ]; thenulimit -p 16384ulimit -n 65536elseulimit -u 16384 -n 65536fifi三.進入oracle使用者佈建oracle的環境變數 #su oracle     開啟 v .bash_profile 加入   ORACLE_BASE=/u01   ORACLE_HOME=$ORACLE_BASE/oracle   ORACLE_SID=cache(資料庫名字)   PATH=$ORACLE_HOME/bin:$PATH   export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH四.開始安裝在系統圖形介面下,使用root使用者,#xhost + localhost                                #xhost + 關閉訪問限制,允許任何訪問。oracle安裝完用xhost - 關閉。將資料庫安裝檔案database移動到/u01目錄下#mv database /u01#chown -R oracle:oinstall /u01/databasesu oracle 在database目錄下$./runInstaller選擇進階安裝,進行自訂安裝在安裝中,假如出現一個關於oraInventory目錄的警告 ,點擊OK繼續,在隨後的視窗中將/oraInventory修改為/u01/oraInventory即可.隨後參數都是預設,在安裝中會彈出一個要求執行u01/oraInventory/oraInstRoot.sh和/u01/oracle /root.sh的提示框,可在secureCRT中,以ROOT使用者執行這兩個檔案 ,一定要注意大小寫,其入進行End of installtion視窗,安裝結束.
進入/u01/app/oracle/product/11.2.0/dbhome_2/bin,輸入./netca & 命令進行偵聽配置.其中參數一律預設即可.可以用ps -ef 查看該服務是否已啟用.輸入./dbca命令,進行資料庫的建立.選擇gernel purpose,在SID和全域名稱中,選擇你在.bash_profile中建立的SID.在Character Sets字元集選項中選擇第2項AL32UTF8.完成.
存在的問題,將在第二稿中解決。1、無法使用sqlplus、netmr等命令;2、無法啟動emctl start dbconsole,無法使用web方式進行資料庫管理;3、SSH遠端連線工具下如何啟用X Windows工具進行管理。

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.