您的位置:首页 > 数据库 > Oracle

oracle10在rehl5.1下的命令行安装

2009-08-27 19:17 162 查看
首先建立用户和用户组

myshell.sh

#!/bin/sh

###########################################################################################
#
# add group and user
#
user_oracle=`awk -F: '{print $1}' /etc/passwd | grep oracle`
group_oinstall=`awk -F: '{print $1}' /etc/group | grep oinstall`
group_dba=`awk -F: '{print $1}' /etc/group | grep dba`
group_oper=`awk -F: '{print $1}' /etc/group | grep oper`

if [ "$user_oracle" != "oracle" ] || [ "$group_oinstall" != "oinstall" ] || [ "$group_dba" != "dba" ] || [ "$group_oper" != "oper" ];
then

groupadd oinstall
groupadd dba
groupadd oper
echo "a. add group 'oinstall dba oper' success"

/usr/sbin/useradd -m -g oinstall -G dba oracle
passwd oracle
echo "b. add user 'oracle' success"

fi
###########################################################################################
#
# create directory for oracle install
#
mkdir -p /oracle/product/10.2.0/db_1
chown -R oracle.oinstall /oracle
chmod -R 755 /oracle
echo "c. create dir /oracle/product/10.2.0/db_1 success"
###########################################################################################
#
# create directory for oracle setup file
#
mkdir /usr/oracle-install
chmod 777 /usr/oracle-install
chown -R oracle.oinstall /usr/oracle-install
echo "create /usr/oracle-install successs"


以下是我安装oracle10时的响应文件内容my_install.rsp

####################################################################
## Copyright (c) 1999, 2004 Oracle. All rights reserved.          ##
##                                                                ##
## Specify values for the variables listed below to customize     ##
## your installation.                                             ##
##                                                                ##
## Each variable is associated with a comment. The comment        ##
## identifies the variable type.                                  ##
##                                                                ##
## Please specify the values in the following format:             ##
##                                                                ##
##         Type         Example                                   ##
##         String       "Sample Value"                            ##
##         Boolean      True or False                             ##
##         Number       1000                                      ##
##         StringList   {"String value 1","String Value 2"}       ##
##                                                                ##
## The values that are given as <Value Required> need to be       ##
## specified for a silent installation to be successful.          ##
##                                                                ##
##                                                                ##
## This response file is generated by Oracle Software             ##
## Packager.                                                      ##
####################################################################

RESPONSEFILE_VERSION=2.2.1.0.0

#-------------------------------------------------------------------------------
#Name       : UNIX_GROUP_NAME
#Datatype   : String
#Description: Unix group to be set for the inventory directory. Valid only in Unix platforms.
#Example: UNIX_GROUP_NAME = "install"
#-------------------------------------------------------------------------------
UNIX_GROUP_NAME="oinstall"

#-------------------------------------------------------------------------------
#Name       : FROM_LOCATION
#Datatype   : String
#Description: Complete path to the products.xml.
#Example: FROM_LOCATION = "../stage/products.xml"
#-------------------------------------------------------------------------------
FROM_LOCATION="/usr/oracle-install/database/stage/products.xml"

#-------------------------------------------------------------------------------
#Name       : FROM_LOCATION_CD_LABEL
#Datatype   : String
#Description: This variable should only be used in multi-CD installations. It includes the label of the compact disk where the file "products.xml" exists. The label can be found in the file "disk.label" in the same directory as products.xml.
#Example: FROM_LOCATION_CD_LABEL = "CD Label"
#-------------------------------------------------------------------------------
FROM_LOCATION_CD_LABEL=<Value Unspecified>

#-------------------------------------------------------------------------------
#Name       : ORACLE_HOME
#Datatype   : String
#Description: Complete path of the Oracle Home.
#Example: ORACLE_HOME = "C:/OHOME1"
#-------------------------------------------------------------------------------
ORACLE_HOME="/oracle/product/10.2.0/db_1"

#-------------------------------------------------------------------------------
#Name       : ORACLE_HOME_NAME
#Datatype   : String
#Description: Oracle Home Name. Used in creating folders and services.
#Example: ORACLE_HOME_NAME = "OHOME1"
#-------------------------------------------------------------------------------
ORACLE_HOME_NAME="OraDb10g_home1"

#-------------------------------------------------------------------------------
#Name       : SHOW_WELCOME_PAGE
#Datatype   : Boolean
#Description: Set to true if the Welcome page in OUI needs to be shown.
#Example: SHOW_WELCOME_PAGE = false
#-------------------------------------------------------------------------------
SHOW_WELCOME_PAGE=true

#-------------------------------------------------------------------------------
#Name       : SHOW_CUSTOM_TREE_PAGE
#Datatype   : Boolean
#Description: Set to true if the custom tree page in OUI needs to be shown.
#Use this page to select or de-select dependencies. This page appears only in a custom install type.
#Example: SHOW_CUSTOM_TREE_PAGE = false
#-------------------------------------------------------------------------------
SHOW_CUSTOM_TREE_PAGE=true

#-------------------------------------------------------------------------------
#Name       : SHOW_COMPONENT_LOCATIONS_PAGE
#Datatype   : Boolean
#Description: Set to true if the component locations page in OUI needs to be shown.
#This page only appears if there are products whose installed directory can be changed.
#If you set this to false you will prevent the user from being able to specify alternate directories.
#Example: SHOW_COMPONENT_LOCATIONS_PAGE = false
#-------------------------------------------------------------------------------
SHOW_COMPONENT_LOCATIONS_PAGE=true

#-------------------------------------------------------------------------------
#Name       : SHOW_SUMMARY_PAGE
#Datatype   : Boolean
#Description: Set to true if the summary page in OUI needs to be shown.
#The summary page shows the list of components that will be installed in this session.
#Example: SHOW_SUMMARY_PAGE = true
#-------------------------------------------------------------------------------
SHOW_SUMMARY_PAGE=true

#-------------------------------------------------------------------------------
#Name       : SHOW_INSTALL_PROGRESS_PAGE
#Datatype   : Boolean
#Description: Set to true if the install progress page in OUI needs to be shown.
#This page shows the current status in the installation. The current status includes the product being installed and the file being copied.
#Example: SHOW_INSTALL_PROGRESS_PAGE = true
#-------------------------------------------------------------------------------
SHOW_INSTALL_PROGRESS_PAGE=true

#-------------------------------------------------------------------------------
#Name       : SHOW_REQUIRED_CONFIG_TOOL_PAGE
#Datatype   : Boolean
#Description: Set to true if the required config assistants page in OUI needs to be shown.
#This page shows the list of required configuration assistants that are part of this installation.
#It shows the status of each assistant, including any failures with detailed information on why it failed.
#Example: SHOW_REQUIRED_CONFIG_TOOL_PAGE = true
#-------------------------------------------------------------------------------
SHOW_REQUIRED_CONFIG_TOOL_PAGE=true

#-------------------------------------------------------------------------------
#Name       : SHOW_CONFIG_TOOL_PAGE
#Datatype   : Boolean
#Description: Set to true if the config assistants page in OUI needs to be shown.
#This page shows the list of configuration assistants that are part of this installation and are configured to launch automatically.
#It shows the status of each assistant, including any failures with detailed information on why it failed.
#Example: SHOW_CONFIG_TOOL_PAGE = true
#-------------------------------------------------------------------------------
SHOW_CONFIG_TOOL_PAGE=true

#-------------------------------------------------------------------------------
#Name       : SHOW_RELEASE_NOTES
#Datatype   : Boolean
#Description: Set to true if the release notes of this installation need to be shown at the end of installation.
#This dialog is launchable from the End of Installation page and shows the list of release notes available for the products just installed.
# This also requires the variable SHOW_END_SESSION_PAGE variable to be set to true.
#Example: SHOW_RELEASE_NOTES = true
#-------------------------------------------------------------------------------
SHOW_RELEASE_NOTES=true

#-------------------------------------------------------------------------------
#Name       : SHOW_ROOTSH_CONFIRMATION
#Datatype   : Boolean
#Description: Set to true if the Confirmation dialog asking to run the root.sh script in OUI needs to be shown.
#Valid only for Unix platforms.
#Example: SHOW_ROOTSH_CONFIRMATION = true
#-------------------------------------------------------------------------------
SHOW_ROOTSH_CONFIRMATION=true

#-------------------------------------------------------------------------------
#Name       : SHOW_END_SESSION_PAGE
#Datatype   : Boolean
#Description: Set to true if the end of session page in OUI needs to be shown.
#This page shows if the installation is successful or not.
#Example: SHOW_END_SESSION_PAGE = true
#-------------------------------------------------------------------------------
SHOW_END_SESSION_PAGE=true

#-------------------------------------------------------------------------------
#Name       : SHOW_EXIT_CONFIRMATION
#Datatype   : Boolean
#Description: Set to true if the confirmation when exiting OUI needs to be shown.
#Example: SHOW_EXIT_CONFIRMATION = true
#-------------------------------------------------------------------------------
SHOW_EXIT_CONFIRMATION=true

#-------------------------------------------------------------------------------
#Name       : NEXT_SESSION
#Datatype   : Boolean
#Description: Set to true to allow users to go back to the File Locations page for another installation. This flag also needs to be set to true in order to process another response file (see NEXT_SESSION_RESPONSE).
#Example: NEXT_SESSION = true
#-------------------------------------------------------------------------------
NEXT_SESSION=false

#-------------------------------------------------------------------------------
#Name       : NEXT_SESSION_ON_FAIL
#Datatype   : Boolean
#Description: Set to true to allow users to invoke another session even if current install session has failed. This flag is only relevant if NEXT_SESSION is set to true.
#Example: NEXT_SESSION_ON_FAIL = true
#-------------------------------------------------------------------------------
NEXT_SESSION_ON_FAIL=true

#-------------------------------------------------------------------------------
#Name       : NEXT_SESSION_RESPONSE
#Datatype   : String
#Description: Set to true to allow users to go back to the File Locations page for another installation. This flag also needs to be set to true in order to process another response file (see NEXT_SESSION_RESPONSE).
#Example: NEXT_SESSION_RESPONSE = "nextinstall.rsp"
#-------------------------------------------------------------------------------
NEXT_SESSION_RESPONSE=<Value Unspecified>

#-------------------------------------------------------------------------------
#Name       : DEINSTALL_LIST
#Datatype   : StringList
#Description: List of components to be deinstalled during a deinstall session.
#Example: DEINSTALL_LIST = {"oracle.server","10.2.0.1.0"}
#-------------------------------------------------------------------------------
DEINSTALL_LIST={"oracle.server","10.2.0.1.0"}

#-------------------------------------------------------------------------------
#Name       : SHOW_DEINSTALL_CONFIRMATION
#Datatype   : Boolean
#Description: Set to true if deinstall confimation is needed during a deinstall session.
#Example: SHOW_DEINSTALL_CONFIRMATION = true
#-------------------------------------------------------------------------------
SHOW_DEINSTALL_CONFIRMATION=true

#-------------------------------------------------------------------------------
#Name       : SHOW_DEINSTALL_PROGRESS
#Datatype   : Boolean
#Description: Set to true if deinstall progress is needed during a deinstall session.
#Example: SHOW_DEINSTALL_PROGRESS = true
#-------------------------------------------------------------------------------
SHOW_DEINSTALL_PROGRESS=true

#-------------------------------------------------------------------------------
#Name       : CLUSTER_NODES
#Datatype   : StringList
#Description: This variable represents the cluster node names selected by the user for installation.
#Example: CLUSTER_NODES = {"node1","node2"}
#-------------------------------------------------------------------------------
CLUSTER_NODES={}

#-------------------------------------------------------------------------------
#Name       : ACCEPT_LICENSE_AGREEMENT
#Datatype   : Boolean
#Description: By setting this variable to true, you are accepting the license agreement. This variable is used only for silent installations.
#Example: ACCEPT_LICENSE_AGREEMENT = true
#-------------------------------------------------------------------------------
ACCEPT_LICENSE_AGREEMENT=false

#-------------------------------------------------------------------------------
#Name       : TOPLEVEL_COMPONENT
#Datatype   : StringList
#Description: The top level component to be installed in the current session.
#Example: TOPLEVEL_COMPONENT = {"oracle.server","10.2.0.1.0"}
#-------------------------------------------------------------------------------
TOPLEVEL_COMPONENT={"oracle.server","10.2.0.1.0"}

#-------------------------------------------------------------------------------
#Name       : SHOW_SPLASH_SCREEN
#Datatype   : Boolean
#Description: Set to true if the initial splash screen in OUI needs to be shown.
#Example: SHOW_SPLASH_SCREEN = true
#-------------------------------------------------------------------------------
SHOW_SPLASH_SCREEN=true

#-------------------------------------------------------------------------------
#Name       : SELECTED_LANGUAGES
#Datatype   : StringList
#Description: Languages in which the components will be installed.
#Component  : oracle.server
#-------------------------------------------------------------------------------

SELECTED_LANGUAGES={"en"}

#-------------------------------------------------------------------------------
#Name       : COMPONENT_LANGUAGES
#Datatype   : StringList
#Description: Languages supported by this component.List of supported languages : {"en","fr","ar","bn","pt_BR","bg","fr_CA","ca","hr","cs","da","nl","ar_EG","en_GB","et","fi","de","el","iw","hu","is","in","it","ja","ko","es","lv","lt","ms","es_MX","no","pl","pt","ro","ru","zh_CN","sk","sl","es_ES","sv","th","zh_TW","tr","uk","vi"}
#Component  : oracle.server
#-------------------------------------------------------------------------------

COMPONENT_LANGUAGES={"en"}

#-------------------------------------------------------------------------------
#Name       : INSTALL_TYPE
#Datatype   : String
#Description: Installation type of the component.
#Component  : oracle.server
#-------------------------------------------------------------------------------

INSTALL_TYPE="Enterprise Edition"

#-------------------------------------------------------------------------------
#Name       : sl_superAdminPasswds
#Datatype   : StringList
#Description: List of passwords
#Component  : oracle.server
#-------------------------------------------------------------------------------

sl_superAdminPasswds=<Value Unspecified>

#-------------------------------------------------------------------------------
#Name       : sl_dlgASMCfgSelectableDisks
#Datatype   : StringList
#Description: Disk Groups that can be selected
#Component  : oracle.server
#-------------------------------------------------------------------------------

sl_dlgASMCfgSelectableDisks={}

#-------------------------------------------------------------------------------
#Name       : s_superAdminSamePasswd
#Datatype   : String
#Description: Same Password Field
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_superAdminSamePasswd="mypasswd"

#-------------------------------------------------------------------------------
#Name       : s_globalDBName
#Datatype   : String
#Description: Global Database Name
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_globalDBName="MYDB"

#-------------------------------------------------------------------------------
#Name       : s_dlgASMCfgRedundancyValue
#Datatype   : String
#Description: Redundancy Value
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgASMCfgRedundancyValue="2 (Norm)"

#-------------------------------------------------------------------------------
#Name       : s_dlgASMCfgNewDisksSize
#Datatype   : String
#Description: New Disks Size
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgASMCfgNewDisksSize="0"

#-------------------------------------------------------------------------------
#Name       : s_dlgASMCfgExistingFreeSpace
#Datatype   : String
#Description: Existing Freee Space
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgASMCfgExistingFreeSpace="0"

#-------------------------------------------------------------------------------
#Name       : s_dlgASMCfgDiskGroupName
#Datatype   : String
#Description: Disk Group Name
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgASMCfgDiskGroupName="DATA"

#-------------------------------------------------------------------------------
#Name       : s_dlgASMCfgDiskDiscoveryString
#Datatype   : String
#Description: Disk Discovery STring
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgASMCfgDiskDiscoveryString=""

#-------------------------------------------------------------------------------
#Name       : s_dlgASMCfgAdditionalSpaceNeeded
#Datatype   : String
#Description: Additional Space Needed
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgASMCfgAdditionalSpaceNeeded=" MB"

#-------------------------------------------------------------------------------
#Name       : s_dbSelectedUsesASM
#Datatype   : String
#Description: SID selected for upgrade
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dbSelectedUsesASM=""

#-------------------------------------------------------------------------------
#Name       : s_dbSIDSelectedForUpgrade
#Datatype   : String
#Description: SID selected for upgrade
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dbSIDSelectedForUpgrade=""

#-------------------------------------------------------------------------------
#Name       : s_dbRetChar
#Datatype   : String
#Description: Return value for database character set.
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dbRetChar="Responsefile entry Simplified Chinese ZHS16GBK"

#-------------------------------------------------------------------------------
#Name       : s_dbOHSelectedForUpgrade
#Datatype   : String
#Description: OH selected for upgrade
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dbOHSelectedForUpgrade=""

#-------------------------------------------------------------------------------
#Name       : s_ASMSYSPassword
#Datatype   : String
#Description: ASM SYS Password
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_ASMSYSPassword=<Value Unspecified>

#-------------------------------------------------------------------------------
#Name       : n_performUpgrade
#Datatype   : Number
#Description: 1 if user selects to perform upgrade
#Component  : oracle.server
#-------------------------------------------------------------------------------

n_performUpgrade=0

#-------------------------------------------------------------------------------
#Name       : n_dlgASMCfgRedundancySelected
#Datatype   : Number
#Description: Redundancy value selected
#Component  : oracle.server
#-------------------------------------------------------------------------------

n_dlgASMCfgRedundancySelected=2

#-------------------------------------------------------------------------------
#Name       : n_dbType
#Datatype   : Number
#Description: This variable contains the dbType i.e. GP, TP, DW or Advanced
#Component  : oracle.server
#-------------------------------------------------------------------------------

n_dbType=1

#-------------------------------------------------------------------------------
#Name       : n_dbSelection
#Datatype   : Number
#Description: row selected in the spread table of upgradable DB instances
#Component  : oracle.server
#-------------------------------------------------------------------------------

n_dbSelection=0

#-------------------------------------------------------------------------------
#Name       : b_useSamePassword
#Datatype   : Boolean
#Description: Usable only when SHOW_SCHEMA_PASSWORDS_PAGE is set to false.
Set this to true if same password across all the schemas is desired, else false to enter distinguish passwords for each schema.
If set to true, values from s_superAdminSamePasswd and s_superAdminSamePasswdAgain are picked up, else stringlists sl_superAdminPasswds and sl_superAdminPasswdsAgain are used.
#Component  : oracle.server
#-------------------------------------------------------------------------------

b_useSamePassword=true

#-------------------------------------------------------------------------------
#Name       : b_useFileSystemForRecovery
#Datatype   : Boolean
#Description: Usable only when SHOW_BACKUP_RECOVERY_OPTION_PAGE is set to false and b_enableAutoBackup is set to true.
Set this to true (default) if recovery into file system is desired, else to false for ASM recovery .
#Component  : oracle.server
#-------------------------------------------------------------------------------

b_useFileSystemForRecovery=true

#-------------------------------------------------------------------------------
#Name       : b_receiveEmailNotification
#Datatype   : Boolean
#Description: Usable only when SHOW_DATABASE_MANAGEMENT_PAGE is set to false and b_useDBControl is set to true.
Set this to true if email update is desired, false is the default .
#Component  : oracle.server
#-------------------------------------------------------------------------------

b_receiveEmailNotification=false

#-------------------------------------------------------------------------------
#Name       : b_loadExampleSchemas
#Datatype   : Boolean
#Description: Usable only when SHOW_DATABASE_OPTIONS_PAGE is set to false.
Set this to true if loading example schemas is desired, else false so database won't be created with example schemas. The default is false.
#Component  : oracle.server
#-------------------------------------------------------------------------------

b_loadExampleSchemas=false

#-------------------------------------------------------------------------------
#Name       : b_enableAutoBackup
#Datatype   : Boolean
#Description: Usable only when SHOW_BACKUP_RECOVERY_OPTION_PAGE is set to false.
Set this to true if automatic backup of the database is desired, else false to disable backup.
#Component  : oracle.server
#-------------------------------------------------------------------------------

b_enableAutoBackup=false

#-------------------------------------------------------------------------------
#Name       : b_dlgASMShowCandidateDisks
#Datatype   : Boolean
#Description: set to true if Candidate Disks is selected in ASM dialog
#Component  : oracle.server
#-------------------------------------------------------------------------------

b_dlgASMShowCandidateDisks=true

#-------------------------------------------------------------------------------
#Name       : b_centrallyManageASMInstance
#Datatype   : Boolean
#Description: true if ASM instance needs to be managed by grid control
#Component  : oracle.server
#-------------------------------------------------------------------------------

b_centrallyManageASMInstance=true

#-------------------------------------------------------------------------------
#Name       : sl_dlgASMDskGrpSelectedGroup
#Datatype   : StringList
#Description: Disk Groups that is selected
#Component  : oracle.server
#-------------------------------------------------------------------------------

sl_dlgASMDskGrpSelectedGroup={" "," "," "," "}

#-------------------------------------------------------------------------------
#Name       : s_dlgRBOUsername
#Datatype   : String
#Description: Username
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgRBOUsername=""

#-------------------------------------------------------------------------------
#Name       : s_dlgEMCentralAgentSelected
#Datatype   : String
#Description: Strores the central agent selected
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgEMCentralAgentSelected="No Agents Found"

#-------------------------------------------------------------------------------
#Name       : b_useDBControl
#Datatype   : Boolean
#Description: Usable only when SHOW_DATABASE_MANAGEMENT_PAGE is set to false.
Set this to true if using database control to manage the database is desired, else false so database can be managed by grid control.
#Component  : oracle.server
#-------------------------------------------------------------------------------

b_useDBControl=true

#-------------------------------------------------------------------------------
#Name       : s_superAdminSamePasswdAgain
#Datatype   : String
#Description: Confirmation of password.
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_superAdminSamePasswdAgain="mypasswd"

#-------------------------------------------------------------------------------
#Name       : s_dlgEMSMTPServer
#Datatype   : String
#Description: Stores SMTP Server name
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgEMSMTPServer=""

#-------------------------------------------------------------------------------
#Name       : s_dlgEMEmailAddress
#Datatype   : String
#Description: stores the email address
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgEMEmailAddress=""

#-------------------------------------------------------------------------------
#Name       : s_dlgRBORecoveryLocation
#Datatype   : String
#Description: Recovery area location
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgRBORecoveryLocation="/oracle/flash_recovery_area/"

#-------------------------------------------------------------------------------
#Name       : n_upgradeDB
#Datatype   : Number
#Description: 1 if user selects to upgrade DB
#Component  : oracle.server
#-------------------------------------------------------------------------------

n_upgradeDB=1

#-------------------------------------------------------------------------------
#Name       : n_configurationOption
#Datatype   : Number
#Description: This variable contains the configuration option i.e. createDB or configureASM or SoftwareOnly
#Component  : oracle.server
#-------------------------------------------------------------------------------

n_configurationOption=1

#-------------------------------------------------------------------------------
#Name       : sl_upgradableSIDBInstances
#Datatype   : StringList
#Description: This is list of SIDs, OH and whether SID uses ASM or not. contains DB instance details that are displayed in dialog's spread table.
#Component  : oracle.server
#-------------------------------------------------------------------------------

sl_upgradableSIDBInstances={}

#-------------------------------------------------------------------------------
#Name       : n_upgradeASM
#Datatype   : Number
#Description: 1 is user selects to upgrade DB
#Component  : oracle.server
#-------------------------------------------------------------------------------

n_upgradeASM=0

#-------------------------------------------------------------------------------
#Name       : sl_dlgASMCfgDiskSelections
#Datatype   : StringList
#Description: List of Selected Member Disks
#Component  : oracle.server
#-------------------------------------------------------------------------------

sl_dlgASMCfgDiskSelections={}

#-------------------------------------------------------------------------------
#Name       : s_ASMSYSPasswordAgain
#Datatype   : String
#Description: ASM Sys password confirmation
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_ASMSYSPasswordAgain=<Value Unspecified>

#-------------------------------------------------------------------------------
#Name       : n_dbStorageType
#Datatype   : Number
#Description: Usable only when SHOW_DATABASE_FILE_STORAGE_OPTION_PAGE is set to false.
Set this to the following numbers for corresponding database storage type desired:
1 - File System (default)
2 - ASM
3 - Raw Devices
#Component  : oracle.server
#-------------------------------------------------------------------------------

n_dbStorageType=1

#-------------------------------------------------------------------------------
#Name       : s_rawDeviceMapFileLocation
#Datatype   : String
#Description: Text2
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_rawDeviceMapFileLocation=""

#-------------------------------------------------------------------------------
#Name       : sl_upgradableRACDBInstances
#Datatype   : StringList
#Description: contains DB instance details that are displayed in dialog's sprea table.
#Component  : oracle.server
#-------------------------------------------------------------------------------

sl_upgradableRACDBInstances={}

#-------------------------------------------------------------------------------
#Name       : s_dlgRBOPassword
#Datatype   : String
#Description: Password
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dlgRBOPassword=<Value Unspecified>

#-------------------------------------------------------------------------------
#Name       : b_stateOfUpgradeDBCheckbox
#Datatype   : Boolean
#Description: stores the state of checkbox in UI
#Component  : oracle.server
#-------------------------------------------------------------------------------

b_stateOfUpgradeDBCheckbox=false

#-------------------------------------------------------------------------------
#Name       : s_dbSid
#Datatype   : String
#Description: Value that $ORACLE_SID will be set to.
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_dbSid="MYDB"

#-------------------------------------------------------------------------------
#Name       : b_dbSelectedUsesASM
#Datatype   : Boolean
#Description: stores the state of checkbox in UI
#Component  : oracle.server
#-------------------------------------------------------------------------------

b_dbSelectedUsesASM=false

#-------------------------------------------------------------------------------
#Name       : sl_superAdminPasswdsAgain
#Datatype   : StringList
#Description: Confirm Password list.
#Component  : oracle.server
#-------------------------------------------------------------------------------

sl_superAdminPasswdsAgain=<Value Unspecified>

#-------------------------------------------------------------------------------
#Name       : s_mountPoint
#Datatype   : String
#Description: Database file location:  directory for datafiles, control files, redo logs.
#Component  : oracle.server
#-------------------------------------------------------------------------------

s_mountPoint="/oracle/oradata/"

#-------------------------------------------------------------------------------
#Name       : b_stateOfUpgradeASMCheckbox
#Datatype   : Boolean
#Description: stores the state of checkbox in UI
#Component  : oracle.server
#-------------------------------------------------------------------------------

b_stateOfUpgradeASMCheckbox=false

#-------------------------------------------------------------------------------
#Name       : OPTIONAL_CONFIG_TOOLS
#Datatype   : String
#Description: #The following choices are available. The value should contain only one of these choices.
#The choices are of the form Internal Name : External name. Please use the internal name while specifying the value.List of optional config assistants that need to be launched.
#    localconfig,   : Cluster Synchronization Service Configuration
#    dbma,   : Database Upgrade Assistant
#Example: OPTIONAL_CONFIG_TOOLS = {"localconfig"}
#Component  : oracle.assistants.server
#-------------------------------------------------------------------------------

oracle.assistants.server:OPTIONAL_CONFIG_TOOLS="{}"

#-------------------------------------------------------------------------------
#Name       : OPTIONAL_CONFIG_TOOLS
#Datatype   : String
#Description: #The following choices are available. The value should contain only one of these choices.
#The choices are of the form Internal Name : External name. Please use the internal name while specifying the value.List of optional config assistants that need to be launched.
#    LocalConfig,   : Deinstall Oracle Cluster Synchronization Service
#Example: OPTIONAL_CONFIG_TOOLS = {"LocalConfig"}
#Component  : oracle.has.common
#-------------------------------------------------------------------------------

oracle.has.common:OPTIONAL_CONFIG_TOOLS="{}"

#-------------------------------------------------------------------------------
#Name       : OPTIONAL_CONFIG_TOOLS
#Datatype   : String
#Description: #The following choices are available. The value should contain only one of these choices.
#The choices are of the form Internal Name : External name. Please use the internal name while specifying the value.List of optional config assistants that need to be launched.
#    netca_deinst,   : Oracle Net Configuration Assistant - Deinstall Script
#Example: OPTIONAL_CONFIG_TOOLS = {"netca_deinst"}
#Component  : oracle.network.client
#-------------------------------------------------------------------------------

oracle.network.client:OPTIONAL_CONFIG_TOOLS="{}"

#-------------------------------------------------------------------------------
#Name       : OPTIONAL_CONFIG_TOOLS
#Datatype   : String
#Description: #The following choices are available. The value should contain only one of these choices.
#The choices are of the form Internal Name : External name. Please use the internal name while specifying the value.List of optional config assistants that need to be launched.
#    isqlplus,   : iSQL*Plus Configuration Assistant
#    removeisqlplusSrvc,   : Remove iSQL*Plus Service
#Example: OPTIONAL_CONFIG_TOOLS = {"isqlplus"}
#Component  : oracle.sqlplus.isqlplus
#-------------------------------------------------------------------------------

oracle.sqlplus.isqlplus:OPTIONAL_CONFIG_TOOLS="{}"

#-------------------------------------------------------------------------------
#Name       : OPTIONAL_CONFIG_TOOLS
#Datatype   : String
#Description: #The following choices are available. The value should contain only one of these choices.
#The choices are of the form Internal Name : External name. Please use the internal name while specifying the value.List of optional config assistants that need to be launched.
#    launchBrowser,   : Launch browser
#Example: OPTIONAL_CONFIG_TOOLS = {"launchBrowser"}
#Component  : oracle.sysman.console.db
#-------------------------------------------------------------------------------

oracle.sysman.console.db:OPTIONAL_CONFIG_TOOLS="{}"

#-------------------------------------------------------------------------------
#Name       : varSelect
#Datatype   : Number
#Description: Return index selected from dialog
#Component  : oracle.assistants.server
#-------------------------------------------------------------------------------

varSelect=1

#-------------------------------------------------------------------------------
#Name       : s_nameForOPERGrp
#Datatype   : String
#Description: oper group
#Component  : oracle.rdbms
#-------------------------------------------------------------------------------

s_nameForOPERGrp="dba"

#-------------------------------------------------------------------------------
#Name       : s_nameForDBAGrp
#Datatype   : String
#Description: dba group
#Component  : oracle.rdbms
#-------------------------------------------------------------------------------

s_nameForDBAGrp="dba"


注意安装的时候要确保LC_ALL这个宏的值是en_US.utf-8(执行export LC_ALL=en_US.utf-8)

下面是我的安装脚本my_ora_install.sh

#!/bin/sh

export LC_ALL=en_US.utf-8

cd /usr/oracle-install/
unzip 10201_database_linux32.zip

su - oracle -c "/usr/oracle-install/database/runInstaller -silent -responseFile /home/my_install.rsp"


安装完成后还要执行root.sh那些脚本,写一个shell脚本去完成这项工作,内容如下

#!/bin/sh

sh /oracle/oraInventory/orainstRoot.sh
sh /oracle/product/10.2.0/db_1/root.sh

rm -rf /usr/oracle-install

sed -i 's/ORACLE_HOME_LISTNER=.*/ORACLE_HOME_LISTNER=//oracle//product//10.2.0//db_1///' /oracle/product/10.2.0/db_1/bin/dbstart


把oracle作为服务启动,我的脚本如下,myoradb,把它放到/etc/init.d目录下:

#!/bin/sh
# chkconfig: 345 99 10
# description: Oracle auto start-stop script.
#
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
#
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.

ORA_HOME=/oracle/product/10.2.0/db_1/
ORA_OWNER=oracle

if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi

case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start"
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop"
;;
esac


执行chkconfig --level 345 myoradb on,这样oracle服务就会随系统启动了^_^,oracle也就安装完成了

ps:

安装oracle时,在进行系统环境检查的过程中,往往会由于ip地址的配置文件和/etc/hosts文件内容不对,造成检查通不过,解决方法如下

在ifcfg-eth0中加入BOOTPROTO=static(如果没有这句的话),修改/etc/hosts文件内容如下(每行都只有三项)

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
192.168.1.1     HOSTNAME    HOSTNAME
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: