隨筆-62  評論-29  文章-0  trackbacks-0

          無圖形界面情況下靜默安裝oracle
          如果Server段沒有安裝X界面,如何來安裝Oracle呢?我們可以使用Oracle提供的靜默安裝來實現提示符下的Oracle安裝。安裝前的系統環境變量及內核參數的設置這里就不重復了,可以查看安裝光盤中的安裝文檔.

          oracle 靜默安裝,
          1:修改enterprise.rsp 文件
          RESPONSEFILE_VERSION=2.2.1.0.0
          FROM_LOCATION="../stage/products.xml"
          ORACLE_HOME="/u01/app/oracle/product/10.2.0/db_1/"
          ORACLE_HOME_NAME="OraDb10g_home1"
          TOPLEVEL_COMPONENT={"racle.server","10.2.0.1.0"}
          DEINSTALL_LIST={"racle.server","10.2.0.1.0"}
          SHOW_SPLASH_SCREEN=false
          SHOW_WELCOME_PAGE=false
          SHOW_COMPONENT_LOCATIONS_PAGE=false
          SHOW_CUSTOM_TREE_PAGE=false
          SHOW_SUMMARY_PAGE=false
          SHOW_INSTALL_PROGRESS_PAGE=false
          SHOW_REQUIRED_CONFIG_TOOL_PAGE=false
          SHOW_CONFIG_TOOL_PAGE=false
          SHOW_RELEASE_NOTES=false
          SHOW_ROOTSH_CONFIRMATION=false
          SHOW_END_SESSION_PAGE=false
          SHOW_EXIT_CONFIRMATION=false
          NEXT_SESSION=false
          NEXT_SESSION_ON_FAIL=false
          SHOW_DEINSTALL_CONFIRMATION=false
          SHOW_DEINSTALL_PROGRESS=false
          ACCEPT_LICENSE_AGREEMENT=true
          COMPONENT_LANGUAGES={"en"}
          CLUSTER_NODES=
          INSTALL_TYPE="EE"
          s_nameForDBAGrp=dba
          s_nameForOPERGrp=dba
          b_oneClick=false
          SHOW_DATABASE_CONFIGURATION_PAGE=false
          b_createStarterDB=false
          相關屬性的值的意義,請參考Oracle提供的enterprise.rsp文檔中的說明 。
          2. 開始安裝
          cd /u02/database/
          ./runInstaller -silent -responseFile /u02/database/response/enterprise01.rsp
          #注意-responseFile參數后的文件路徑一定是絕對路徑 ,并且enterprise01.rsp oracle用戶可讀。
          執行過程如下:
          Installation in progress (Mon May 12 20:27:18 CST 2008)
          ...............................................................  11% Done.
          ...............................................................  23% Done.
          ...............................................................  35% Done.
          ...............................................................  47% Done.
          ...........................................                      55% Done.
          Install successful

          Linking in progress (Mon May 12 20:30:01 CST 2008)
          .                                                                55% Done.
          Link successful

          Setup in progress (Mon May 12 20:31:21 CST 2008)
          ....................                                            100% Done.
          Setup successful

          End of install phases.(Mon May 12 20:31:29 CST 2008)
          Starting to execute configuration assistants
          Configuration assistant "Oracle Net Configuration Assistant" succeeded
          Configuration assistant "Oracle Database Configuration Assistant" failed
          SEVEREUI-10104:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured. Select the failed assistants and click the 'Retry' button to retry them.
          --------------------------------------
          The "/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
          The "/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/configToolAllCommands" script contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.

          --------------------------------------
          The installation of Oracle Database 10g was successful, but some optional configuration assistants failed, were cancelled or skipped.

          ./runInstaller -silent -force -ignoreSysprereqs ORACLE_HOME=/opt/oracle/product/10gr2 ORACLE_HOME_NAME=OHOME_1 -responseFile /opt/oracle/database/response/enterprise.rsp

          2:執行root.sh
          /opt/oracle/oraInventory/orainstRoot.sh
          /opt/oracle/product/10gr2/root.sh

          3:修改dbca.rsp文件
          TEMPLATENAME = "General_Purpose.dbc"
          dbca -silent -createdatabase -responseFile /opt/oracle/database/response/dbca.rsp


          //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

          ./runInstaller -silent -responseFile /opt/oracle/database/response/enterprise.rsp

          dbca -silent -createdatabase -responseFile /opt/oracle/database/response/dbca.rsp

          dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname "orcl" -sid "orcl" -sysPassword "oracle" -systemPassword "oracle" -characterSet "AL32UTF8"


          dbca -silent -deleteDatabase -sourceDB orcl10g -sid sog1 -sysDBAUserName sys -sysDBAPassword oracle

          netca /silent /responseFile /opt/oracle/database/response/netca.rsp


          ./runInstaller -silent -force -ignoreSysprereqs ORACLE_HOME=/opt/oracle/product/10gr2 ORACLE_HOME_NAME=OHOME_1 -responseFile /opt/oracle/database/response/enterprise.rsp

          ./runInstaller -silent -deinstall -removeallfiles -removeAllPatches "REMOVE_HOMES={$ORACLE_HOME}" -responseFile /opt/oracle/database/response/enterprise.rsp

           

          /opt/oracle/oraInventory/orainstRoot.sh
          /opt/oracle/product/10gr2/root.sh


          useradd -g oinstall –G dba –d /export/home/oracle –s /bin/csh –m oracle





          posted on 2009-10-16 17:59 閱讀(2169) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 科尔| 勐海县| 濉溪县| 潼南县| 商都县| 共和县| 磴口县| 义乌市| 东方市| 姜堰市| 丰城市| 张家港市| 武鸣县| 炉霍县| 麻城市| 贵港市| 西充县| 新和县| 雅江县| 通河县| 元朗区| 东乡县| 河北省| 中方县| 宜兴市| 陆川县| 新民市| 自治县| 霸州市| 巧家县| 富锦市| 凤凰县| 白银市| 海林市| 新建县| 连城县| 电白县| 襄樊市| 闽清县| 桐庐县| 乐陵市|