欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

如何使用應(yīng)答文件安裝Oracle11g數(shù)據(jù)庫-創(chuàng)新互聯(lián)

小編給大家分享一下如何使用應(yīng)答文件安裝Oracle11g數(shù)據(jù)庫,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

創(chuàng)新互聯(lián)是專業(yè)的當(dāng)陽網(wǎng)站建設(shè)公司,當(dāng)陽接單;提供成都網(wǎng)站制作、網(wǎng)站建設(shè)、外貿(mào)網(wǎng)站建設(shè),網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進(jìn)行當(dāng)陽網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團(tuán)隊,希望更多企業(yè)前來合作!

注:如果實在無法連上圖形化界面,可選擇該方案。

安裝之前:

打開XShell,以root用戶身份創(chuàng)建/oraInventory文件夾。

  1. [root@Pet ~]# mkdir /oraInventory

  2. [root@Pet ~]# cd /

  3. [root@Pet /]# chown -R oracle:oinstall oraInventory

  4. [root@XLJ181 ~]# export DISPLAY=:0.0

  5. [root@XLJ181 ~]# xhost +

  6. access control disabled, clients can connect from any host

(在/etc/hosts文件中加入用戶)如下:

如何使用應(yīng)答文件安裝Oracle11g數(shù)據(jù)庫

1.找到oracle數(shù)據(jù)庫對應(yīng)的應(yīng)答文件。

如何使用應(yīng)答文件安裝Oracle11g數(shù)據(jù)庫

2.切換到Oracle用戶,修改對應(yīng)的應(yīng)答文件內(nèi)容并執(zhí)行相關(guān)命令。

一、db_install.rsp 安裝Oracle數(shù)據(jù)庫軟件

先進(jìn)入/Oracle_11g/database目錄

修改response文件的如下選項:

oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/oraInventory
ORACLE_HOME=/Oracle_11g/oracle
ORACLE_BASE=/Oracle_11g
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oinstall
DECLINE_SECURITY_UPDATES=true
然后執(zhí)行命令: ./runInstaller -ignoreSysPrereqs -ignorePrereq  -silent -responseFile /Oracle_11g/database/response/db_install.rsp -debug

注意: 

1.-ignoreSysPrereqs  linux上必須加上此項
2.靜默安裝,如果發(fā)現(xiàn)錯誤 “SEVERE: Email Address Not Specified .......”,需要設(shè)置:

                DECLINE_SECURITY_UPDATES=true

執(zhí)行后出現(xiàn)如下提示:
如何使用應(yīng)答文件安裝Oracle11g數(shù)據(jù)庫

安裝到這里會有兩個腳本需要用root用戶運行的。打開XShell,以root用戶運行這兩個腳本。

[root@Pet ~]# /oraInventory/orainstRoot.sh

[root@Pet ~]# /Oracle_11g/oracle/root.sh

待腳本運行完后,Oracle 11g R2數(shù)據(jù)庫軟件已經(jīng)安裝完成。


二、netca.rsp  配置監(jiān)聽程序

[oracle@XLJ182 database]$ /Oracle_11g/oracle/bin/netca -silent -responseFile /Oracle_11g/database/response/netca.rsp

運行后,出現(xiàn)如下提示:

  1. Parsing command line arguments:

  2.     Parameter "silent" = true

  3.     Parameter "responsefile" = /Oracle_11g/database/response/netca.rsp

  4. Done parsing command line arguments.

  5. Oracle Net Services Configuration:

  6. Profile configuration complete.

  7. Oracle Net Listener Startup:

  8.     Running Listener Control:

  9.       /Oracle_11g/oracle/bin/lsnrctl start LISTENER

  10.     Listener Control complete.

  11.     Listener started successfully.

  12. Listener configuration complete.

  13. Oracle Net Services configuration successful. The exit code is 0

如果此處出現(xiàn)類似異常,需要用root權(quán)限用戶登錄服務(wù)器,在/etc/hosts文件中添加:

IP  hostname

如何使用應(yīng)答文件安裝Oracle11g數(shù)據(jù)庫

三、dbca.rsp  創(chuàng)建數(shù)據(jù)庫

修改response文件的如下選項:

GDBNAME = "cams"
SID = "cams"
SYSPASSWORD    = "**********"
SYSTEMPASSWORD = "**********"
SYSMANPASSWORD = "**********"
DBSNMPPASSWORD = "**********"
CHARACTERSET        = "UTF8"                  --字符集
NATIONALCHARACTERSET   =   "UTF8"   --國家字符集,默認(rèn)值

然后執(zhí)行命令: /Oracle_11g/oracle/bin/dbca -silent -cloneTemplate -responseFile /Oracle_11g/database/response/dbca.rsp

如何使用應(yīng)答文件安裝Oracle11g數(shù)據(jù)庫

注意:

如果安裝期間出現(xiàn)如下錯誤:

Initializing Java Virtual Machine from /tmp/OraInstall2014-11-27_08-53-23AM/jdk/jre/bin/java. Please wait...

./runInstaller: line 92: 11535 Segmentation fault      (core dumped) $CMDDIR/install/.oui $*

執(zhí)行:

  1. [oracle@XLJ182 database]$ cat runInstaller | tail -n +80 | head -n 50

  2.     PATH=/usr/bin:/usr/ccs/bin:$CMDDIR/install

  3.     export PATH

  4. fi

  5. # Determine whether there is an existing CRS or not.

  6. # Local is value of local_only in ocr.loc.

  7. # False means there is an existing CRS installation on the system.

  8. if [ -r $OCR_LOC ]; then

  9.     LOCAL=`$AWK -F= /$LOCALONLY/'{print $2}' $OCR_LOC |\

  10.            $SED 'y/aeflrstu/AEFLRSTU/'`

  11. fi

  12. case "$BUNDLE" in

  13. db)

  14. # One-click: only if there is no cmd line argument and it's not on CRS node

  15. if [ $# -gt 0 -o "$LOCAL" = "FALSE" -o \

  16.      ! -r $CMDDIR/install/oneclick.properties ]; then

  17.     $CMDDIR/install/.oui $*

  18. else

  19.     $CMDDIR/install/.oui -oneclick

  20. fi

  21. ;;

  22. client)

  23.     $CMDDIR/install/.oui $* CLUSTER_NODES={}

  24. ;;

  25. crs)

  26.     $CMDDIR/install/.oui $* -formCluster

  27. ;;

  28. dv)

  29.     $CMDDIR/install/.oui $* -oneclick

  30. ;;

  31. dbbundle)

  32.     for arg in "$@"

  33.         do

  34.             arg=`echo $arg | $SED 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/

92行的代碼為:$CMDDIR/install/.oui $* -oneclick

執(zhí)行:

  1. [oracle@XLJ182 tmp]$ /Oracle_11g/database/install/.oui $* -oneclick

  2. Starting Oracle Universal Installer...

  3. Checking Temp space: must be greater than 120 MB. Actual 30005 MB    Passed

  4. Checking swap space: must be greater than 150 MB. Actual 3967 MB    Passed

  5. Checking monitor: must be configured to display at least 256 colors

  6.     >>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

  7. Some requirement checks failed. You must fulfill these requirements before

  8. continuing with the installation,

  9. Continue? (y/n) [n] n

  10. User Selected: No

  11. Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2014-11-27_09-23-40AM/installActions2014-11-27_09-23-40AM.log

解決方案:

  1. [oracle@XLJ182 tmp]$ su - root

  2. [root@XLJ182 ~]# export DISPLAY=:0.0

  3. [root@XLJ182 ~]# xhost +

  4. access control disabled, clients can connect from any host

  5. [oracle@XLJ182 oracle]$ /Oracle_11g/database/install/.oui $* -oneclick

  6. Starting Oracle Universal Installer...

  7. Checking Temp space: must be greater than 120 MB. Actual 29995 MB    Passed

  8. Checking swap space: must be greater than 150 MB. Actual 3967 MB    Passed

  9. Checking monitor: must be configured to display at least 256 colors. Actual 16777216    Passed

  10. Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-11-27_09-43-13AM. Please wait ...

以上是“如何使用應(yīng)答文件安裝Oracle11g數(shù)據(jù)庫”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學(xué)習(xí)更多知識,歡迎關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道!

網(wǎng)站名稱:如何使用應(yīng)答文件安裝Oracle11g數(shù)據(jù)庫-創(chuàng)新互聯(lián)
網(wǎng)頁網(wǎng)址:http://chinadenli.net/article48/hhdep.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供搜索引擎優(yōu)化品牌網(wǎng)站設(shè)計App設(shè)計網(wǎng)站內(nèi)鏈服務(wù)器托管靜態(tài)網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都做網(wǎng)站