首頁 > 資料庫 > Oracle > oracle11g 怎麼靜默安裝

oracle11g 怎麼靜默安裝

PHPz
發布: 2023-04-17 17:14:25
原創
1970 人瀏覽過

Oracle是全球領先的資料庫管理系統,其11g版本受到許多企業和個人使用者的青睞。然而,Oracle11g的安裝過程較為繁瑣,如果需要在多台機器上進行安裝,則會耗費大量的時間和人力資源。為了提高安裝效率,Oracle提供了靜默安裝的方法,可在不人為幹預的情況下完成軟體的自動安裝。本文將介紹如何進行Oracle11g的靜默安裝。

一、準備工作
在進行Oracle11g的靜默安裝之前,需要先準備好以下工作:
1.Oracle11g安裝介質,一般為光碟或ISO鏡像;
2.Oracle11g安裝檔案的回應檔案(.rsp檔案),可以使用Oracle提供的範本檔案進行修改;
3.安裝計畫表(.lst檔案),用於記錄安裝流程和錯誤訊息;
4.管理員權限的命令列介面或終端,以及足夠的磁碟空間和記憶體資源。

二、建立回應檔
回應檔(.rsp檔)是Oracle11g靜默安裝的關鍵,其記錄了安裝過程中需要輸入的各種參數資訊。 Oracle提供了範本檔案(如db_install.rsp)可供修改,如果需要自訂安裝參數,可以根據實際情況對檔案內容進行修改。以下是典型的回應檔案範例:

The response file for installing Oracle Database 11gR2

This file is generated by the Oracle Universal Installer.

[GENERAL]

Location of the Oracle base directory.

ORACLE_BASE="/u01/app/oracle"

Name of the Oracle inventory directory.

INVENTORY_LOCATION="/ u01/app/oraInventory"

The location for your Oracle home.

ORACLE_HOME="/u01/app/oracle/product/11.2.0/dbhome_1"

The name of the database. This is typically a name that

starts with a letter and contains up to 8 characters.

ORACLE_SID="orcl"

Global database name.

GDBNAME="orcl"

Character set of the database.

CHARACTERSET="AL32UTF8"

Specify whether to install the database software or create a

database. Choose "Software Only" for database software

installation.

INSTALL_OPTION="INSTALL_DB_AND_CONFIG"

Specify whether to create a database or upgrade an existing Specify whether to create a database or upgrade an existing Specify whether to create a database or upgrade an existing .

Choose "Create Database" for new database creation.

Choose "Upgrade an Existing Database" to upgrade an

existing database.

#CREATE_DATABASE_TYPE= "CREATE_DATABASE"

Password for SYS and SYSTEM users.

SYS_PASSWORD="password"
SYSTEM_PASSWORD="password"

Database file location.

#DATA_LOCATION="/u01/app/oracle/oradata"

Control file location.

DB_CONTROL_FILES_LOCATION="/u01/app/oracle/oradata"
DB_CONTROL_FILES="ora_control1/app/oracle/oradata"

DB_CONTROL_FILES="ora_control1/app/ora_control1,2 。 PGA.

TOTAL_MEMORY=2048


[LANGUAGE]

Language of the installation.

##Valid values are: AMERICAN_AMERICA.WE8ISO8859P1,

#P1,

# #AMERICAN_AMERICA.UTF8, or other valid character set names.

You can also supply your own language name.

SELECTED_LANGUAGES="AMERICAN_AMERICA.UTF8"#O.

##Installation type.

INSTALL_TYPE="Typical"

[INSTALLUPDATES]

Specify whether to check for product updates.

##UPDATES_CHECK= TRUE

[SECURITY]

Activate security options

SECURITY_UPDATES_VIA_MYORACLESUPPORT=FALSE

[SYSTEMCLASS]

Enter the system class,

[SYSTEMCLASS]

Enter the system class, which determines the maximum number

of memory allowed for SGA and PGA.

Valid values are: Desktop, Server, or Custom

#If you choose Custom, you must specify the memory size##If you choose Custom, you must specify the memory size##If you choose Custom, you must specify the memory size##If you choose Custom, you must specify the memory size yourself.

The following example is for a server class machine.

oracle.install.db.config.starterdb.memoryLimit=1024

[DATABASE]

Specify the template to use when creating the database.

TEMPLATE_NAME="General_Purpose.dbc"

Global database name for this database.

GDBNAME="orcl"

Password for SYS and SYSTEM users.

SYS_PASSWORD="password"

SYSTEM_PASSWORD="password"

Character set for the database.

CHARACTERSET ="AL32UTF8"

National character set for the database.

NATIONAL_CHARACTERSET="UTF8"

Database file location.

#DATA_LOCATION="/u01/ app/oracle/oradata"

Control file location.

DB_CONTROL_FILES_LOCATION="/u01/app/oracle/oradata"

Redo log file location.


######################################################################################################################################################################################### # #DB_RECOVERY_FILE_DEST="/u01/app/oracle/flash_recovery_area"###DB_RECOVERY_FILE_DEST_SIZE=2G###

Perform database backup after installation.

Valid values are: YES or NO

DB_INSTALLATION_SLIM_CONFIG=true

[EMCONFIG]

##Enter Y if you want to configure Enterprise Manager.

EM_CONFIGURATION=LOCAL

Enterprise Manager password.

EM_PASSWORD="password"

[REAL_APPLICATION_CLUSTER]

Specify whether this is a Real Application Clusters installation.

CLUSTER_NODES=a1,a2,a3

Specify the VIP name and port.

NODEVIP="orclvip"

NODEVIP_PORT=1521

Specify the SCAN name and port.

CLUSTER_SCAN_NAME="orclscan"

CLUSTER_SCAN_PORT="1521"
CLUSTER_SCAN_PORTS="1522,1523,1554"
##Specify the database name and listener port.

DB_NAME="racdb"

DB_UNIQUE_NAME="racdb1"

DB_LISTENER_PORT=1521

Specify the database storage type.

DB_STORAGE_TYPE="ASM"

Configure Automatic Storage Management.

ASM_DISK_STRING="ORCL:*"

#以上是回應檔案範例的一部分,它包含了常用的安裝參數設置,可以根據實際情況進行修改。

三、建立安裝計畫表

安裝計畫表(.lst檔)用來記錄Oracle11g靜默安裝過程中產生的日誌訊息和錯誤訊息。建立安裝計劃表可以方便排查安裝過程中的問題。通常,安裝計劃表可以在回應檔案中進行配置,如下所示:


[GENERIC]

The name and file location of the installer log file.

#If you do not specify a log file name or directory, the log

file is created in the /tmp directory. By default, the log

#file name is "installActions.log".

Example:

LOGFILE=/u01/app/oracle/installer/log/installation.log

LOG_FILE="oraInstall.log"

The name and location for storing the inventory of installed software.

If you do not specify an inventory location, the software is

#installed in the default inventory directory.

##Example:##installed in the default inventory directory.

##Example:

INVENTORY_LOCATION=/tmp/oracleInventory

INVENTORY_LOCATION="/u01/app/oraInventory"

Specify the name and file location for the installation plan file.

## The installation plan file provides a record of all the configuration

settings you selected during installation.

Example:

INSTALL_PLAN=/u01/app/oracle/installer/log/

##INSTALL_PLAN=/u01/app/oracle/installer/log/

##INSTALL_PLAN=/u01/app/oracle/installer/log/

##INSTALL_PLAN=/u01/app/oracle/installer/log/

##INSTALL_PLAN=/u01/app/oracle/installer/log / planFile.lst

INSTALL_PLAN="ora_install_plan.lst"

Specify the path to the remote shell program, if any.

This setting is required only if you are installing Oracle software

on a remote computer.

Example:

SSH_PATH=/usr/local/bin/ssh

#SSH_PATH="/usr/bin/ ssh"

以上範例為建立安裝計劃表的設定檔。

四、執行靜默安裝

執行靜默安裝需要使用命令列介面或終端,以管理員權限運行,進入Oracle11g安裝媒體所在的路徑,執行以下命令:

. /runInstaller -silent -responseFile /path/to/response/file -ignoreSysPrereqs -ignorePrereq

其中,-responseFile參數指定回應檔案的路徑和檔案名,-silent參數表示以靜默模式運行,-ignoreSysPrereqs和-ignorePrereq參數表示忽略系統前提條件和前提條件檢查。

安裝過程中,可以根據實際情況對參數進行修改,並按照提示進行操作,直到安裝完成。安裝完成後,會在安裝計劃表中產生日誌訊息和錯誤訊息,可用於排查問題。

總結###本文介紹了Oracle11g靜默安裝的步驟,包括建立回應檔案、建立安裝排程表和執行靜默安裝。靜默安裝可以顯著提高安裝效率,尤其在需要在多台機器上進行Oracle11g安裝時,更為方便和快速。希望本文能幫助正在進行Oracle11g安裝的用戶,減輕其工作負擔。 ###

以上是oracle11g 怎麼靜默安裝的詳細內容。更多資訊請關注PHP中文網其他相關文章!

來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板