您现在的位置是:主页 > news > 许昌哪个网站做苗木/流程优化
许昌哪个网站做苗木/流程优化
admin2025/5/2 16:24:33【news】
简介许昌哪个网站做苗木,流程优化,高端网站案例,龙岩做网站开发哪家做的好CentOS7 安装与配置 Oracle 11g(2) —— Oracle 软件的安装与配置 目录CentOS7 安装与配置 Oracle 11g(2) —— Oracle 软件的安装与配置一、上传并解压缩 Oracle 安装文件1、切换为 oracle 用户,把安装文件上传到 ora…
许昌哪个网站做苗木,流程优化,高端网站案例,龙岩做网站开发哪家做的好CentOS7 安装与配置 Oracle 11g(2) —— Oracle 软件的安装与配置 目录CentOS7 安装与配置 Oracle 11g(2) —— Oracle 软件的安装与配置一、上传并解压缩 Oracle 安装文件1、切换为 oracle 用户,把安装文件上传到 ora…
CentOS7 安装与配置 Oracle 11g(2) —— Oracle 软件的安装与配置
目录
- CentOS7 安装与配置 Oracle 11g(2) —— Oracle 软件的安装与配置
- 一、上传并解压缩 Oracle 安装文件
- 1、切换为 oracle 用户,把安装文件上传到 oracle 用户的家目录
- 2、解压缩安装文件
- 二、修改 oracle 应答模板文件 —— db_install.rsp
- 1、查看应答文件
- 2、修改应答文件
- 三、根据应答文件静默安装 oracle
- 1、切换为 oracle 用户,执行 /home/oracle/soft/database/runInstaller 文件
- 2、打开另一个终端,切换到 root 用户,执行 orainstRoot.sh 和 root.sh 脚本
- 四、配置监听
- 1、运行 netca 脚本
- 2、启动监听
- 3、查看监听情况
- 4、查看监听状态
一、上传并解压缩 Oracle 安装文件
1、切换为 oracle 用户,把安装文件上传到 oracle 用户的家目录
[root@localhost ~]# su - oracle
[oracle@wgx ~]$ cd soft
[oracle@wgx soft]$ pwd
/home/oracle/soft
[oracle@wgx soft]$ ll
总用量 2487200
-rw-r--r--. 1 oracle oinstall 1395582860 1月 7 2020 p13390677_112040_Linux-x86-64_1of7.zip
-rw-r--r--. 1 oracle oinstall 1151304589 1月 7 2020 p13390677_112040_Linux-x86-64_2of7.zip
2、解压缩安装文件
# 解压缩安装文件
[oracle@wgx soft]$ unzip p13390677_112040_Linux-x86-64_1of7.zip
[oracle@wgx soft]$ unzip p13390677_112040_Linux-x86-64_2of7.zip # 查看目录所有者及权限
[oracle@wgx soft]$ ll
总用量 2487200
drwxr-xr-x. 7 oracle oinstall 136 8月 27 2013 database
-rw-r--r--. 1 oracle oinstall 1395582860 1月 7 2020 p13390677_112040_Linux-x86-64_1of7.zip
-rw-r--r--. 1 oracle oinstall 1151304589 1月 7 2020 p13390677_112040_Linux-x86-64_2of7.zip
二、修改 oracle 应答模板文件 —— db_install.rsp
1、查看应答文件
该文件默认存放在解压后的安装包内,在 /home/oracle/database/response 目录下。
[oracle@wgx database]$ ll /home/oracle/soft/database/response/
总用量 80
-rwxr-xr-x. 1 oracle oinstall 44533 8月 27 2013 dbca.rsp
-rw-r--r--. 1 oracle oinstall 25116 8月 27 2013 db_install.rsp
-rwxr-xr-x. 1 oracle oinstall 5871 8月 27 2013 netca.rsp
2、修改应答文件
# 修改之前先备份 db_install.rsp 文件
[oracle@wgx database]$ cp /home/oracle/soft/database/response/db_install.rsp /home/oracle/soft/database/response/db_install.rsp.bak
[oracle@wgx database]$ ll /home/oracle/soft/database/response/
总用量 108
-rwxr-xr-x. 1 oracle oinstall 44533 8月 27 2013 dbca.rsp
-rw-r--r--. 1 oracle oinstall 25116 8月 27 2013 db_install.rsp
-rw-r--r--. 1 oracle oinstall 25116 6月 7 23:41 db_install.rsp.bak
-rwxr-xr-x. 1 oracle oinstall 5871 8月 27 2013 netca.rsp
修改应答文件的内容如下:
# 注:主要修改以下选项
# oracle.install.option=INSTALL_DB_SWONLY
# ORACLE_HOSTNAME=wgx
# UNIX_GROUP_NAME=oinstall
# INVENTORY_LOCATION=/usr/local/oraInventory
# SELECTED_LANGUAGES=en,zh_CN
# ORACLE_HOME=/usr/local/oracle/product/11.2.0/db_1
# ORACLE_BASE=/usr/local/oracle
# oracle.install.db.InstallEdition=EE
# oracle.install.db.DBA_GROUP=dba
# oracle.install.db.OPER_GROUP=oinstall
# oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
# oracle.install.db.config.starterdb.globalDBName=orcl
# oracle.install.db.config.starterdb.SID=orcl
# oracle.install.db.config.starterdb.characterSet=AL32UTF8
# oracle.install.db.config.starterdb.memoryLimit=81920
# oracle.install.db.config.starterdb.password.ALL=123456
# SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
# DECLINE_SECURITY_UPDATES=true[oracle@wgx database]$ vi /home/oracle/soft/database/response/db_install.rsp####################################################################
## Copyright(c) Oracle Corporation 1998,2013. All rights reserved.##
## ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## can help to populate the variables with the appropriate ##
## values. ##
## ##
## IMPORTANT NOTE: This file contains plain text passwords and ##
## should be secured to have read permission only by oracle user ##
## or db administrator who owns this installation. ##
## ##
#####################################################################------------------------------------------------------------------------------
# Do not change the following system generated value.
#------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0#------------------------------------------------------------------------------
# Specify the installation option.
# It can be one of the following:
# - INSTALL_DB_SWONLY
# - INSTALL_DB_AND_CONFIG
# - UPGRADE_DB
#-------------------------------------------------------------------------------# =============================================================================
# ========= 安装类型:INSTALL_DB_SWONLY(只装数据库软件) ===================
# =============================================================================
oracle.install.option=INSTALL_DB_SWONLY#-------------------------------------------------------------------------------
# Specify the hostname of the system as set during the install. It can be used
# to force the installation to use an alternative hostname rather than using the
# first hostname found on the system. (e.g., for systems with multiple hostnames
# and network interfaces)
#-------------------------------------------------------------------------------# =============================================================================
# ========= 安装 oracle 的主机名称:wgx ===================================
# =============================================================================
ORACLE_HOSTNAME=wgx#-------------------------------------------------------------------------------
# Specify the Unix group to be set for the inventory directory.
#-------------------------------------------------------------------------------# =============================================================================
# ========= 组名称:oinstall ========================================
# =============================================================================
UNIX_GROUP_NAME=oinstall#-------------------------------------------------------------------------------
# Specify the location which holds the inventory files.
# This is an optional parameter if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------# =============================================================================
# ========= INVENTORY 目录:/usr/local/oraInventory ===================
# =============================================================================
INVENTORY_LOCATION=/usr/local/oraInventory#-------------------------------------------------------------------------------
# Specify the languages in which the components will be installed.
#
# en : English ja : Japanese
# fr : French ko : Korean
# ar : Arabic es : Latin American Spanish
# bn : Bengali lv : Latvian
# pt_BR: Brazilian Portuguese lt : Lithuanian
# bg : Bulgarian ms : Malay
# fr_CA: Canadian French es_MX: Mexican Spanish
# ca : Catalan no : Norwegian
# hr : Croatian pl : Polish
# cs : Czech pt : Portuguese
# da : Danish ro : Romanian
# nl : Dutch ru : Russian
# ar_EG: Egyptian zh_CN: Simplified Chinese
# en_GB: English (Great Britain) sk : Slovak
# et : Estonian sl : Slovenian
# fi : Finnish es_ES: Spanish
# de : German sv : Swedish
# el : Greek th : Thai
# iw : Hebrew zh_TW: Traditional Chinese
# hu : Hungarian tr : Turkish
# is : Icelandic uk : Ukrainian
# in : Indonesian vi : Vietnamese
# it : Italian
#
# all_langs : All languages
#
# Specify value as the following to select any of the languages.
# Example : SELECTED_LANGUAGES=en,fr,ja
#
# Specify value as the following to select all the languages.
# Example : SELECTED_LANGUAGES=all_langs
#------------------------------------------------------------------------------# =============================================================================
# ========= 选择语言:en,zh_CN ============================================
# =============================================================================
SELECTED_LANGUAGES=en,zh_CN#------------------------------------------------------------------------------
# Specify the complete path of the Oracle Home.
#------------------------------------------------------------------------------# =============================================================================
# ========= oracle_home 的路径:/usr/local/oracle/product/11.2.0/db_1 =====
# =============================================================================
ORACLE_HOME=/usr/local/oracle/product/11.2.0/db_1#------------------------------------------------------------------------------
# Specify the complete path of the Oracle Base.
#------------------------------------------------------------------------------# =============================================================================
# ========= oracle_base 的路径:/usr/local/oracle ========================
# =============================================================================
ORACLE_BASE=/usr/local/oracle#------------------------------------------------------------------------------
# Specify the installation edition of the component.
#
# The value should contain only one of these choices.
# - EE : Enterprise Edition
# - SE : Standard Edition
# - SEONE : Standard Edition One
# - PE : Personal Edition (WINDOWS ONLY)
#------------------------------------------------------------------------------# =============================================================================
# ========= oracle版本选择:EE(企业版) ==================================
# =============================================================================
oracle.install.db.InstallEdition=EE#------------------------------------------------------------------------------
# This variable is used to enable or disable custom install and is considered
# only if InstallEdition is EE.
#
# true : Components mentioned as part of 'optionalComponents' property
# are considered for install.
# false : Value for 'optionalComponents' is not considered.
#------------------------------------------------------------------------------
oracle.install.db.EEOptionsSelection=false#------------------------------------------------------------------------------
# This variable is considered only if 'EEOptionsSelection' is set to true.
#
# Description: List of Enterprise Edition Options you would like to enable.
#
# The following choices are available. You may specify any
# combination of these choices. The components you choose should
# be specified in the form "internal-component-name:version"
# Below is a list of components you may specify to enable.
#
# oracle.oraolap:11.2.0.4.0 - Oracle OLAP
# oracle.rdbms.dm:11.2.0.4.0 - Oracle Data Mining
# oracle.rdbms.dv:11.2.0.4.0 - Oracle Database Vault
# oracle.rdbms.lbac:11.2.0.4.0 - Oracle Label Security
# oracle.rdbms.partitioning:11.2.0.4.0 - Oracle Partitioning
# oracle.rdbms.rat:11.2.0.4.0 - Oracle Real Application Testing
#------------------------------------------------------------------------------
oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.4.0,oracle.oraolap:11.2.0.4.0,oracle.rdbms.dm:11.2.0.4.0,oracle.rdbms.dv:11.2.0.4.0,oracle.rdbms.lbac:
11.2.0.4.0,oracle.rdbms.rat:11.2.0.4.0
###############################################################################
# #
# PRIVILEGED OPERATING SYSTEM GROUPS #
# ------------------------------------------ #
# Provide values for the OS groups to which OSDBA and OSOPER privileges #
# needs to be granted. If the install is being performed as a member of the #
# group "dba", then that will be used unless specified otherwise below. #
# #
# The value to be specified for OSDBA and OSOPER group is only for UNIX based #
# Operating System. #
# #
################################################################################------------------------------------------------------------------------------
# The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
#------------------------------------------------------------------------------# =============================================================================
# ========= dba 用户组:dba ==================================
# =============================================================================
oracle.install.db.DBA_GROUP=dba#------------------------------------------------------------------------------
# The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
# The value to be specified for OSOPER group is optional.
#------------------------------------------------------------------------------# =============================================================================
# ========= oper 用户组:oinstall =============================
# =============================================================================
oracle.install.db.OPER_GROUP=oinstall#------------------------------------------------------------------------------
# Specify the cluster node names selected during the installation.
# Example : oracle.install.db.CLUSTER_NODES=node1,node2
#------------------------------------------------------------------------------
oracle.install.db.CLUSTER_NODES=#------------------------------------------------------------------------------
# This variable is used to enable or disable RAC One Node install.
#
# - true : Value of RAC One Node service name is used.
# - false : Value of RAC One Node service name is not used.
#
# If left blank, it will be assumed to be false
#------------------------------------------------------------------------------
oracle.install.db.isRACOneInstall=#------------------------------------------------------------------------------
# Specify the name for RAC One Node Service.
#------------------------------------------------------------------------------
oracle.install.db.racOneServiceName=#------------------------------------------------------------------------------
# Specify the type of database to create.
# It can be one of the following:
# - GENERAL_PURPOSE/TRANSACTION_PROCESSING
# - DATA_WAREHOUSE
#------------------------------------------------------------------------------# =============================================================================
# ========= 数据库类型:GENERAL_PURPOSE =============================
# =============================================================================
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE#------------------------------------------------------------------------------
# Specify the Starter Database Global Database Name.
#------------------------------------------------------------------------------# =============================================================================
# ========= 数据库名:orcl ==========================================
# =============================================================================
oracle.install.db.config.starterdb.globalDBName=orcl#------------------------------------------------------------------------------
# Specify the Starter Database SID.
#------------------------------------------------------------------------------# =============================================================================
# ========= 实例名(SID):orcl ==================================
# =============================================================================
oracle.install.db.config.starterdb.SID=orcl#------------------------------------------------------------------------------
# Specify the Starter Database character set.
#
# It can be one of the following:
# AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
# EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
# BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
# AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
# IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
# KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
# ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
#------------------------------------------------------------------------------# =============================================================================
# ========= 字符集:AL32UTF8 =====================================
# =============================================================================
oracle.install.db.config.starterdb.characterSet=AL32UTF8#------------------------------------------------------------------------------
# This variable should be set to true if Automatic Memory Management
# in Database is desired.
# If Automatic Memory Management is not desired, and memory allocation
# is to be done manually, then set it to false.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.memoryOption=true#------------------------------------------------------------------------------
# Specify the total memory allocation for the database. Value(in MB) should be
# at least 256 MB, and should not exceed the total physical memory available
# on the system.
# Example: oracle.install.db.config.starterdb.memoryLimit=512
#------------------------------------------------------------------------------# =============================================================================
# ========= 管理的内存大小限制:91920 =============================
# =============================================================================
oracle.install.db.config.starterdb.memoryLimit=81920#------------------------------------------------------------------------------
# This variable controls whether to load Example Schemas onto
# the starter database or not.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.installExampleSchemas=false#------------------------------------------------------------------------------
# This variable includes enabling audit settings, configuring password profiles
# and revoking some grants to public. These settings are provided by default.
# These settings may also be disabled.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.enableSecuritySettings=true###############################################################################
# #
# Passwords can be supplied for the following four schemas in the #
# starter database: #
# SYS #
# SYSTEM #
# SYSMAN (used by Enterprise Manager) #
# DBSNMP (used by Enterprise Manager) #
# #
# Same password can be used for all accounts (not recommended) #
# or different passwords for each account can be provided (recommended) #
# #
################################################################################------------------------------------------------------------------------------
# This variable holds the password that is to be used for all schemas in the
# starter database.
#-------------------------------------------------------------------------------# =============================================================================
# ========= 设定 sys,system 等用户使用同一个密码:oracle =========
# =============================================================================
oracle.install.db.config.starterdb.password.ALL=oracle#-------------------------------------------------------------------------------
# Specify the SYS password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.SYS=#-------------------------------------------------------------------------------
# Specify the SYSTEM password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.SYSTEM=#-------------------------------------------------------------------------------
# Specify the SYSMAN password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.SYSMAN=#-------------------------------------------------------------------------------
# Specify the DBSNMP password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.DBSNMP=#-------------------------------------------------------------------------------
# Specify the management option to be selected for the starter database.
# It can be one of the following:
# - GRID_CONTROL
# - DB_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.control=DB_CONTROL#-------------------------------------------------------------------------------
# Specify the Management Service to use if Grid Control is selected to manage
# the database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=###############################################################################
# #
# SPECIFY BACKUP AND RECOVERY OPTIONS #
# ------------------------------------ #
# Out-of-box backup and recovery options for the database can be mentioned #
# using the entries below. #
# #
################################################################################------------------------------------------------------------------------------
# This variable is to be set to false if automated backup is not required. Else
# this can be set to true.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.automatedBackup.enable=false#------------------------------------------------------------------------------
# Regardless of the type of storage that is chosen for backup and recovery, if
# automated backups are enabled, a job will be scheduled to run daily to backup
# the database. This job will run as the operating system user that is
# specified in this variable.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.automatedBackup.osuid=#-------------------------------------------------------------------------------
# Regardless of the type of storage that is chosen for backup and recovery, if
# automated backups are enabled, a job will be scheduled to run daily to backup
# the database. This job will run as the operating system user specified by the
# above entry. The following entry stores the password for the above operating
# system user.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.automatedBackup.ospwd=#-------------------------------------------------------------------------------
# Specify the type of storage to use for the database.
# It can be one of the following:
# - FILE_SYSTEM_STORAGE
# - ASM_STORAGE
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.storageType=#-------------------------------------------------------------------------------
# Specify the database file location which is a directory for datafiles, control
# files, redo logs.
#
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=#-------------------------------------------------------------------------------
# Specify the backup and recovery location.
#
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=#-------------------------------------------------------------------------------
# Specify the existing ASM disk groups to be used for storage.
#
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.asm.diskGroup=#-------------------------------------------------------------------------------
# Specify the password for ASMSNMP user of the ASM instance.
#
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.asm.ASMSNMPPassword=#------------------------------------------------------------------------------
# Specify the My Oracle Support Account Username.
#
# Example : MYORACLESUPPORT_USERNAME=abc@oracle.com
#------------------------------------------------------------------------------
MYORACLESUPPORT_USERNAME=#------------------------------------------------------------------------------
# Specify the My Oracle Support Account Username password.
#
# Example : MYORACLESUPPORT_PASSWORD=password
#------------------------------------------------------------------------------
MYORACLESUPPORT_PASSWORD=#------------------------------------------------------------------------------
# Specify whether to enable the user to set the password for
# My Oracle Support credentials. The value can be either true or false.
# If left blank it will be assumed to be false.
#
# Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
#------------------------------------------------------------------------------SECURITY_UPDATES_VIA_MYORACLESUPPORT=false#------------------------------------------------------------------------------
# Specify whether user doesn't want to configure Security Updates.
# The value for this variable should be true if you don't want to configure
# Security Updates, false otherwise.
#
# The value can be either true or false. If left blank it will be assumed
# to be false.
#
# Example : DECLINE_SECURITY_UPDATES=false
#------------------------------------------------------------------------------# =============================================================================
# ========= 拒绝安全更新:true ==========================
# ========= 注意:此选项必须设置为 true ==========================
# =============================================================================
DECLINE_SECURITY_UPDATES=true#------------------------------------------------------------------------------
# Specify the Proxy server name. Length should be greater than zero.
#
# Example : PROXY_HOST=proxy.domain.com
#------------------------------------------------------------------------------
PROXY_HOST=#------------------------------------------------------------------------------
# Specify the proxy port number. Should be Numeric and at least 2 chars.
#
# Example : PROXY_PORT=25
#------------------------------------------------------------------------------
PROXY_PORT=#------------------------------------------------------------------------------
# Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
# blank if your proxy server requires no authentication.
#
# Example : PROXY_USER=username
#------------------------------------------------------------------------------
PROXY_USER=#------------------------------------------------------------------------------
# Specify the proxy password. Leave PROXY_USER and PROXY_PWD
# blank if your proxy server requires no authentication.
#
# Example : PROXY_PWD=password
#------------------------------------------------------------------------------
PROXY_PWD=#------------------------------------------------------------------------------
# Specify the proxy realm. This value is used if auto-updates option is selected.
#
# Example : PROXY_REALM=metalink
#------------------------------------------------------------------------------
PROXY_REALM=#------------------------------------------------------------------------------
# Specify the Oracle Support Hub URL.
#
# Example : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/
#------------------------------------------------------------------------------
COLLECTOR_SUPPORTHUB_URL=#------------------------------------------------------------------------------
# Specify the auto-updates option. It can be one of the following:
# - MYORACLESUPPORT_DOWNLOAD
# - OFFLINE_UPDATES
# - SKIP_UPDATES
#------------------------------------------------------------------------------
oracle.installer.autoupdates.option=
#------------------------------------------------------------------------------
# In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where
# the updates are to be downloaded.
# In case OFFLINE_UPDATES option is chosen, specify the location where the updates
# are present.
#------------------------------------------------------------------------------
oracle.installer.autoupdates.downloadUpdatesLoc=
#------------------------------------------------------------------------------
# Specify the My Oracle Support Account Username which has the patches download privileges
# to be used for software updates.
# Example : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com
#------------------------------------------------------------------------------
AUTOUPDATES_MYORACLESUPPORT_USERNAME=#------------------------------------------------------------------------------
# Specify the My Oracle Support Account Username password which has the patches download privileges
# to be used for software updates.
#
# Example : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password
#------------------------------------------------------------------------------
iAUTOUPDATES_MYORACLESUPPORT_PASSWORD=
三、根据应答文件静默安装 oracle
1、切换为 oracle 用户,执行 /home/oracle/soft/database/runInstaller 文件
[oracle@wgx ~]$ cd /home/oracle/soft/database[oracle@wgx database]$ ll
总用量 72
drwxr-xr-x. 4 oracle oinstall 248 8月 27 2013 install
-rw-r--r--. 1 oracle oinstall 30016 8月 27 2013 readme.html
drwxr-xr-x. 2 oracle oinstall 87 6月 8 00:50 response
drwxr-xr-x. 2 oracle oinstall 34 8月 27 2013 rpm
-rwxr-xr-x. 1 oracle oinstall 3267 8月 27 2013 runInstaller
drwxr-xr-x. 2 oracle oinstall 29 8月 27 2013 sshsetup
drwxr-xr-x. 14 oracle oinstall 4096 8月 27 2013 stage
-rw-r--r--. 1 oracle oinstall 500 8月 27 2013 welcome.html# =====================================================================================
# runInstaller 命令的参数说明
# =====================================================================================
# (1)-silent:静默模式;
# (2)-force:强制安装;
# (3)-ignorePrereq:忽略warning直接安装;
# (4)-responseFile:读取安装应答文件。[oracle@wgx database]$ ./runInstaller -silent -responseFile /home/oracle/soft/database/response/db_install.rsp -ignorePrereq
正在启动 Oracle Universal Installer...检查临时空间: 必须大于 120 MB。 实际为 18710 MB 通过
检查交换空间: 必须大于 150 MB。 实际为 4495 MB 通过
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2022-06-08_01-18-44AM. 请稍候...[oracle@wgx database]$ 可以在以下位置找到本次安装会话的日志:/usr/local/oraInventory/logs/installActions2022-06-08_01-18-44AM.log
Oracle Database 11g 的 安装 已成功。
请查看 '/usr/local/oraInventory/logs/silentInstall2022-06-08_01-18-44AM.log' 以获取详细资料。以 root 用户的身份执行以下脚本:1. /usr/local/oraInventory/orainstRoot.sh2. /usr/local/oracle/product/11.2.0/db_1/root.shSuccessfully Setup Software.
2、打开另一个终端,切换到 root 用户,执行 orainstRoot.sh 和 root.sh 脚本
# 执行脚本:orainstRoot.sh
[root@wgx ~]# /usr/local/oraInventory/orainstRoot.sh
更改权限/usr/local/oraInventory.
添加组的读取和写入权限。
删除全局的读取, 写入和执行权限。更改组名/usr/local/oraInventory 到 oinstall.
脚本的执行已完成。# 执行脚本:root.sh
[root@wgx ~]# /usr/local/oracle/product/11.2.0/db_1/root.sh
Check /usr/local/oracle/product/11.2.0/db_1/install/root_wgx_2022-06-08_01-25-14.log for the output of root script
四、配置监听
1、运行 netca 脚本
生成 sqlnet.ora 和 listener.ora 文件,文件位于 $ORACLE_HOME/network/admin 目录下:
# 查看 $ORACLE_HOME/network/admin 目录下的文件
[oracle@wgx database]$ cd $ORACLE_HOME/network/admin
[oracle@wgx admin]$ ll
drwxr-xr-x 2 oracle oinstall 64 6月 8 01:20 samples
-rw-r--r-- 1 oracle oinstall 381 12月 17 2012 shrept.lst# 运行脚本 netca
[oracle@wgx admin]$ netca -silent -responsefile /home/oracle/soft/database/response/netca.rsp正在对命令行参数进行语法分析:
参数"silent" = true
参数"responsefile" = /home/oracle/soft/database/response/netca.rsp
完成对命令行参数进行语法分析。
Oracle Net Services 配置:
完成概要文件配置。
Oracle Net 监听程序启动:正在运行监听程序控制: /usr/local/oracle/product/11.2.0/db_1/bin/lsnrctl start LISTENER监听程序控制完成。监听程序已成功启动。
监听程序配置完成。
成功完成 Oracle Net Services 配置。退出代码是0# 查看 $ORACLE_HOME/network/admin 目录下的文件
[oracle@wgx admin]$ ll
总用量 12
-rw-r--r-- 1 oracle oinstall 368 6月 8 01:30 listener.ora
drwxr-xr-x 2 oracle oinstall 64 6月 8 01:20 samples
-rw-r--r-- 1 oracle oinstall 381 12月 17 2012 shrept.lst
-rw-r--r-- 1 oracle oinstall 223 6月 8 01:30 sqlnet.ora
2、启动监听
[oracle@wgx admin]$ lsnrctl start LISTENERLSNRCTL for Linux: Version 11.2.0.4.0 - Production on 08-JUN-2022 01:33:46Copyright (c) 1991, 2013, Oracle. All rights reserved.TNS-01106: Listener using listener name LISTENER has already been started
3、查看监听情况
[oracle@wgx admin]$ netstat -tlnp
(Not all processes could be identified, non-owned process infowill not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp6 0 0 :::1521 :::* LISTEN 5576/tnslsnr
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:25 :::* LISTEN -
4、查看监听状态
[oracle@wgx admin]$ lsnrctl status LISTENERLSNRCTL for Linux: Version 11.2.0.4.0 - Production on 08-JUN-2022 01:38:43Copyright (c) 1991, 2013, Oracle. All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 08-JUN-2022 01:30:59
Uptime 0 days 0 hr. 7 min. 43 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /usr/local/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /usr/local/oracle/diag/tnslsnr/wgx/listener/alert/log.xml
Listening Endpoints Summary...(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wgx)(PORT=1521)))
The listener supports no services
The command completed successfully
没有监听服务,需要创建数据库。