11.2靜默安裝碰到的錯誤

yangtingkun發表於2011-03-05

11.2的靜默安裝改變了很多,簡單記錄一下碰到的錯誤。

 

 

11.1及以前的版本中,靜默安裝只需要提供必須的引數即可,但是在11.2responseFile似乎需要所有的引數,即使是那些根本不使用的。

最開始嘗試只給出下面的引數:

oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=Oracle111
UNIX_GROUP_NAME=dba
INVENTORY_LOCATION=/opt/oracle/oraInventory
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=/opt/oracle/product/11.2.0/db
ORACLE_BASE=/opt/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.EEOptionsSelection=false
oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.2.0,oracle.oraolap:11.2.0.2.0,oracle.rdbms.dm:11.2.0.2.0,oracle.rdbms.dv:11.2.0.2.0,orcle.rdbms.lbac:11.2.0.2.0,oracle.rdbms.rat:11.2.0.2.0
oracle.install.db.DBA_GROUP=dba

嘗試靜默安裝報錯:

[oracle@Oracle111 database]$ ./runInstaller -silent -noconfig -responseFile /data1/database/response/myinstall.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 7328 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 8191 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-02-16_10-55-12PM. Please wait ...[oracle@Oracle111 database]$ [FATAL] [INS-10105] The given response file /data1/database/response/myinstall.rsp is not valid.
   CAUSE: Syntactically incorrect response file. Either unexpected variables are specified or expected variables are not specified in the response file.
   ACTION: Refer the latest product specific response file template
   SUMMARY:
       - cvc-complex-type.2.4.b: The content of element 'properties' is not complete. One of '{"":oracle.install.db.CLUSTER_NODES, "":oracle.install.db.isRACOneInstall, "":oracle.install.db.racOneServiceName, "":oracle.install.db.OPER_GROUP, "":oracle.install.db.config.starterdb.type, "":oracle.install.db.config.starterdb.SID, "":oracle.install.db.config.starterdb.globalDBName, "":oracle.install.db.config.starterdb.characterSet, "":oracle.install.db.config.starterdb.memoryLimit, "":oracle.install.db.config.starterdb.enableSecuritySettings, "":oracle.install.db.config.starterdb.installExampleSchemas, "":oracle.install.db.config.starterdb.memoryOption, "":oracle.install.db.config.starterdb.storageType, "":oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation, "":oracle.install.db.config.starterdb.fileSystemStorage.dataLocation, "":oracle.install.db.config.starterdb.password.ALL, "":oracle.install.db.config.starterdb.password.SYS, "":oracle.install.db.config.starterdb.password.DBSNMP, "":oracle.install.db.config.starterdb.password.SYSMAN, "":oracle.install.db.config.starterdb.password.SYSTEM, "":oracle.install.db.config.starterdb.control, "":oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL, "":oracle.install.db.config.starterdb.automatedBackup.enable, "":oracle.install.db.config.starterdb.automatedBackup.osuid, "":oracle.install.db.config.starterdb.automatedBackup.ospwd, "":oracle.install.db.config.asm.diskGroup, "":oracle.install.db.config.asm.ASMSNMPPassword, "":SECURITY_UPDATES_VIA_MYORACLESUPPORT, "":DECLINE_SECURITY_UPDATES, "":MYORACLESUPPORT_USERNAME, "":MYORACLESUPPORT_PASSWORD, "":PROXY_PORT, "":PROXY_HOST, "":PROXY_USER, "":PROXY_PWD, "":COLLECTOR_SUPPORTHUB_URL, "":AUTOUPDATES_MYORACLESUPPORT_USERNAME, "":AUTOUPDATES_MYORACLESUPPORT_PASSWORD, "":oracle.installer.autoupdates.option, "":oracle.installer.autoupdates.downloadUpdatesLoc}' is expected.

A log of this session is currently saved as: /tmp/OraInstall2011-02-16_10-55-12PM/installActions2011-02-16_10-55-12PM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location to a more permanent location.

於是嘗試將所有不需要的引數留空,再次執行,仍然報錯:

[oracle@Oracle111 database]$ ./runInstaller -silent -noconfig -responseFile /data1/database/response/myinstall.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 7326 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 8191 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-02-16_11-00-06PM. Please wait ...[oracle@Oracle111 database]$ [SEVERE] - My Oracle Support Username/Email Address Not Specified
A log of this session is currently saved as: /tmp/OraInstall2011-02-16_11-00-06PM/installActions2011-02-16_11-00-06PM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location to a more permanent location.

不提供metalink帳號居然無法靜默安裝,Oracle現在的策略還真是有點意思。

隨便輸入一個使用者名稱,再次執行:

[oracle@Oracle111 database]$ ./runInstaller -silent -noconfig -responseFile /data1/database/response/myinstall.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 7326 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 8191 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-02-16_11-04-50PM. Please wait ...[oracle@Oracle111 database]$ [SEVERE] - This is an invalid email address. The email address must contain one "@" symbol and at least one dot("."). If you have a My Oracle Support account, specify the email address you use to log in to My Oracle Support, for example, johndoe@mycompany.com
A log of this session is currently saved as: /tmp/OraInstall2011-02-16_11-04-50PM/installActions2011-02-16_11-04-50PM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location to a more permanent location.

Oracle還去檢查了語法是否正確,安裝語法輸入oracle@oracle.com,再次嘗試安裝:

[oracle@Oracle111 database]$ ./runInstaller -silent -noconfig -responseFile /data1/database/response/myinstall.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 7326 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 8191 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-02-16_11-09-29PM. Please wait ...[oracle@Oracle111 database]$

安裝的命令退出了,但是從後臺看,安裝程式還在,不知道停在了什麼地方。

看了11.2responseFile方式很不靠譜,最終使用命令列的方式安裝完成:

[oracle@Oracle111 database]$ ./runInstaller -silent -debug -force \
> FROM_LOCATION=/data1/database/stage/products.xml \
> oracle.install.option=INSTALL_DB_SWONLY \
> UNIX_GROUP_NAME=oinstall \
> INVENTORY_LOCATION=/opt/oracle/oraInventory \
> ORACLE_HOME=/opt/oracle/product/11.2.0/db \
> ORACLE_HOME_NAME="Oracle111" \
> ORACLE_BASE=/opt/oracle \
> oracle.install.db.InstallEdition=EE \
> oracle.install.db.isCustomInstall=false \
> oracle.install.db.DBA_GROUP=dba \
> oracle.install.db.OPER_GROUP=dba \
> DECLINE_SECURITY_UPDATES=true

最後檢查了一下metalink,發現oracle還居然在專門的文件ID 883714.1描述了這個問題,錯誤原因是:

'My Oracle Support' Account user name and password were not specified in the response file.

而解決方法居然就是:

Specify the My Oracle Support Account User name and password in your response file

不過從Oracle對於metalink帳號要求越來越嚴格,也可以看出Oracle策略的趨勢。

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-688497/,如需轉載,請註明出處,否則將追究法律責任。

相關文章