最近公司要进行oracle11G的现网环境的搭建,对于oracle的windows安装来讲简单化的图形化界面比较容易,但是对于linux来讲,之前没有搭建过,结合在博客园以及csdn博客园的资料查询,今天大半夜我要在没有外网的环境下,对centos7 64位的系统进行oracle11G的搭建。

首先申明,由于公司的linux机器不允许连接外网,所以一切工作都在离线环境下进行,所以我们需要第一步做的就是下载所有oracle的离线安装包。

记录:离线安装依赖包放置于:百度云盘\我的网盘\我的资源\oracle-linux环境下离线依赖所有包。有c币的童鞋可以到下方下载,没有的需要下载的可私信我我单发。

 依赖包下载地址:https://download.csdn.net/download/qq_35907918/13218158

首先我们将下载好的离线包放置于我们要部署搭建的对应的linux机器上。接下来我们按照下面的步骤进行离线安装。

 

    查看主机名称:hostname      修改主机名称: hostname  要修改的名称

 

 vi   /etc/hosts

在下面添加自己ip和自定义的主机名

 

 

 

sed -i “s/SELINUX=enforcing/SELINUX=disabled/” /etc/selinux/config

setenforce 0

 

 

cd /tools/oracle-yilai/

rpm -ivh ./* –nodeps –force

 

 

 安装完后检测有没有未安装成功的依赖包:

rpm -q binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make sysstat unixODBC unixODBC-devel |grep “not installed”

 

 

 

命令执行完未收到响应证明安装成功无缺失

systemctl disable firewalld.service

 

 

 

groupadd oinstall   //添加oinstall组

groupadd dba       //添加dba组

useradd -g oinstall -G dba oracle    //创建oracle用户并加入这两个组中

passwd oracle  给oracle用户设置密码

id oracle   //测试刚刚上面的操作是否成功

 

 

  1. mkdir -p /u01/app/oracle/product/11.2.0/db_1
  2. mkdir /u01/app/oracle/oradata
  3. mkdir /u01/app/oracle/oraInventory
  4. mkdir /u01/app/oracle/fast_recovery_area
  5. chown -R oracle:oinstall /u01/app
  6. chmod -R 775 /u01/app

 

vim /etc/sysctl.conf

在文件中添加如下设置:(其中kernel.shmmax = 1073741824为本机物理内存(2G)的一半,单位为byte。)

fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 1073741824
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

 

 

 

执行命令使配置生效 :sysctl -p

 

vi /etc/security/limits.conf

在文件里添加如下内容

oracle           soft    nproc           2047
oracle           hard    nproc           16384
oracle           soft    nofile          1024
oracle           hard    nofile          65536
oracle           soft    stack           10240

 

 

  1. vim /etc/pam.d/login

添加内容如下 

session required /lib64/security/pam_limits.so

session required pam_limits.so

 

vim /etc/profile

添加如下内容:

if [ $USER = “oracle” ];

then   if [ $SHELL = “/bin/ksh” ];then 

 ulimit -p 16384  

ulimit -n 65536 

else    ulimit -u 16384 -n 65536

 fi

fi

 cd /tools

unzip linux.x64_11gR2_database_1of2.zip

unzip linux.x64_11gR2_database_2of2.zip

修改目录的属性

chmod -R 775 /tools

chown -R oracle:oinstall /tools

 

 

 

 

 

su –  oracle

vim .bash_profile

添加以下内容

#for oracle

export ORACLE_BASE=/u01/app/oracle 
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export ORACLE_PID=orcl
export ORACLE_SID=orcl        

#export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib

export LANG=”zh_CN.UTF-8″
export NLS_LANG=”SIMPLIFIED CHINESE_CHINA.AL32UTF8″
export NLS_DATE_FORMAT=\’yyyy-mm-dd hh24:mi:ss\’

执行以下命令使环境变量生效

 source ~/.bash_profile

cd /home/oracle

vi  db_install.rsp

添加以下内容:

  1. oracle.install.option=INSTALL_DB_SWONLY
  2. ORACLE_HOSTNAME= oracletest //这个是hostname
  3. UNIX_GROUP_NAME=oinstall
  4. INVENTORY_LOCATION=/u01/app/oraInventory
  5. SELECTED_LANGUAGES=en,zh_CN
  6. ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
  7. ORACLE_BASE=/u01/app/oracle
  8. oracle.install.db.InstallEdition=EE
  9. oracle.install.db.DBA_GROUP=dba
  10. oracle.install.db.OPER_GROUP=dba
  11. DECLINE_SECURITY_UPDATES=true

在静默安装之前建议先重启系统,使所有配置都生效。

具体命令如下方:

sudo reboot   —–重启

su – oracle     切换到oracle用户

source .bash_profile  使环境变量生效

cd /tools/database/  切换到oracle安装包解压后的目录下

./runInstaller -silent -ignorePrereq -ignoreSysPrereqs -responseFile /home/oracle/db_install.rsp      静默安装

当出现以下用root执行脚本的命令之后,切换root执行提示中的脚本内容。

 

 

 

  1. @1切换到oracle用户下:

    netca /silent /responsefile /home/oracle/netca.rsp

 

 @2检验:在 /u01/app/oracle/product/11.2.0/db_1/network/admin/ 中生成 listener.ora 和 sqlnet.ora

 

 

@3、通过netstat命令可以查看1521端口正在监听

     netstat -tnul | grep 1521

 

 

 

 

@4:通过命令直接建立oracle实例

 

dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname orcl -sid orcl -sysPassword syc -systemPassword syc -responseFile NO_VALUE -datafileDestination /u01/app/oracle/oradata -redoLogFileSize 50 -recoveryAreaDestination /u01/app/oracle/fast_recovery_area -storageType FS -characterSet ZHS16GBK -nationalCharacterSet AL16UTF16 -sampleSchema true -memoryPercentage 30 -totalMemory 200 -databaseType OLTP -emConfiguration NONE

 

 

 

 @5:检查监听的启动与启动oracle监听


  1. lsnrctl status

 

 

 

 未启动可执行命令:lsnrctl start

至此oracle数据库已经安装完成,可以使用 sqlplus执行命令了

 

 


 

 

<<<<<<<<<<<<<<<<<<<<<<<<<<<额外补充>>>>>>>>>>>>>>>>>>>>>>>>>>

设置开机自启动:

将下面两个文件的ORACLE_HOME_LISTNER=$1修改为ORACLE_HOME_LISTNER=$ORACLE_HOME

vim /u01/app/oracle/product/11.2.0/db_1/bin/dbstart

vim /u01/app/oracle/product/11.2.0/db_1/bin/dbshut

 
 

找到testsid:/opt/oracle/102:N,改为testsid:/opt/oracle/102:Y

 

添加如下行

su oracle -lc "/u01/app/oracle/product/11.2.0/db_1/bin/lsnrctl start"

su oracle -lc /u01/app/oracle/product/11.2.0/db_1/bin/dbstart

 





  1. --------------------------------------------------------------------------------------------------------------------------------------------------

    关于有的园友是新手静默安装的时候有报错

    WARNING: Unable to find the namespace URI. Reason: Start of root element expected.
    SEVERE: [FATAL] [INS-10105] 指定的响应文件/home/oracle/db_install.rsp无效。
    原因: 响应文件在语法上不正确。在响应文件中指定了意外的变量或未指定预期的变量。
    操作: 参阅最新的产品特定响应文件模板

    解决办法:这个是因为我在博客园记录响应文件是参数不全的,仅做参考,由于出现了这个问题,
    我这里给补充一下完整的应答文件按照完整的应答文件保存后再去静默安装。

    以下是完整的应答文件以及说明参数


    -------------------------------------------------------------完整的应答文件(/home/oracle/db_install.rsp------------------------------

 

  1. ####################################################################
  2. ## Copyright(c) Oracle Corporation1998,2008. All rights reserved. ##
  3. ## Specify values for the variables listedbelow to customize your installation. ##
  4. ## Each variable is associated with acomment. The comment ##
  5. ## can help to populate the variables withthe appropriate values. ##
  6. ## IMPORTANT NOTE: This file contains plaintext passwords and ##
  7. ## should be secured to have readpermission only by oracle user ##
  8. ## or db administrator who owns thisinstallation. ##
  9. ##对整个文件的说明,该文件包含参数说明,静默文件中密码信息的保密 ##
  10. ####################################################################
  11. #------------------------------------------------------------------------------
  12. # Do not change the following system generatedvalue. 标注响应文件版本,这个版本必须和要#安装的数据库版本相同,安装检验无法通过,不能更改
  13. #------------------------------------------------------------------------------
  14. oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
  15. #------------------------------------------------------------------------------
  16. # Specify the installation option.
  17. # It can be one of the following:
  18. # 1. INSTALL_DB_SWONLY
  19. # 2. INSTALL_DB_AND_CONFIG
  20. # 3. UPGRADE_DB
  21. #选择安装类型:1.只装数据库软件 2.安装数据库软件并建库 3.升级数据库
  22. #-------------------------------------------------------------------------------
  23. oracle.install.option=INSTALL_DB_AND_CONFIG
  24. #-------------------------------------------------------------------------------
  25. # Specify the hostname of the system as setduring the install. It can be used
  26. # to force the installation to use analternative hostname rather than using the
  27. # first hostname found on the system.(e.g., for systems with multiple hostnames
  28. # and network interfaces)指定操作系统主机名,通过hostname命令获得
  29. #-------------------------------------------------------------------------------
  30. ORACLE_HOSTNAME=oracletest
  31. #-------------------------------------------------------------------------------
  32. # Specify the Unix group to be set for theinventory directory.
  33. #指定oracle inventory目录的所有者,通常会是oinstall或者dba
  34. #-------------------------------------------------------------------------------
  35. UNIX_GROUP_NAME=oinstall
  36. #-------------------------------------------------------------------------------
  37. # Specify the location which holds theinventory files.
  38. #指定产品清单oracle inventory目录的路径,如果是Win平台下可以省略
  39. #-------------------------------------------------------------------------------
  40. INVENTORY_LOCATION=/u01/app/oracle/oraInventory
  41. #-------------------------------------------------------------------------------
  42. # Specify the languages in which thecomponents will be installed.
  43. # en : English ja : Japanese
  44. # fr : French ko : Korean
  45. # ar : Arabic es : Latin American Spanish
  46. # bn : Bengali lv : Latvian
  47. # pt_BR: Brazilian Portuguese lt : Lithuanian
  48. # bg : Bulgarian ms : Malay
  49. # fr_CA: Canadian French es_MX: Mexican Spanish
  50. # ca : Catalan no : Norwegian
  51. # hr : Croatian pl : Polish
  52. # cs : Czech pt : Portuguese
  53. # da : Danish ro : Romanian
  54. # nl : Dutch ru : Russian
  55. # ar_EG: Egyptian zh_CN: Simplified Chinese
  56. # en_GB: English (Great Britain) sk :Slovak
  57. # et : Estonian sl : Slovenian
  58. # fi : Finnish es_ES: Spanish
  59. # de : German sv : Swedish
  60. # el : Greek th : Thai
  61. # iw : Hebrew zh_TW:Traditional Chinese
  62. # hu : Hungarian tr : Turkish
  63. # is : Icelandic uk : Ukrainian
  64. # in : Indonesian vi :Vietnamese
  65. # it : Italian
  66. # Example : SELECTED_LANGUAGES=en,fr,ja
  67. #指定数据库语言,可以选择多个,用逗号隔开。选择en, zh_CN(英文和简体中文)
  68. #------------------------------------------------------------------------------
  69. SELECTED_LANGUAGES=en,zh_CN
  70. #------------------------------------------------------------------------------
  71. # Specify the complete path of the OracleHome.设置ORALCE_HOME的路径
  72. #------------------------------------------------------------------------------
  73. ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
  74. #------------------------------------------------------------------------------
  75. # Specify the complete path of the OracleBase. 设置ORALCE_BASE的路径
  76. #------------------------------------------------------------------------------
  77. ORACLE_BASE=/u01/app/oracle
  78. #------------------------------------------------------------------------------
  79. # Specify the installation edition of thecomponent.
  80. # The value should contain only one ofthese choices.
  81. # EE : EnterpriseEdition
  82. # SE : Standard Edition
  83. # SEONE Standard Edition One
  84. # PE : Personal Edition (WINDOWS ONLY)
  85. #选择Oracle安装数据库软件的版本(企业版,标准版,标准版1),不同的版本功能不同
  86. #详细的版本区别参考附录D
  87. #------------------------------------------------------------------------------
  88. oracle.install.db.InstallEdition=EE
  89. #------------------------------------------------------------------------------
  90. # This variable is used to enable ordisable custom install.
  91. # true : Components mentioned as part of \'customComponents\' property
  92. #are considered for install.
  93. # false : Value for \'customComponents\' isnot considered.
  94. #是否自定义Oracle的组件,如果选择false,则会使用默认的组件
  95. #如果选择true否则需要自己在下面一条参数将要安装的组件一一列出。
  96. #安装相应版权后会安装所有的组件,后期如果缺乏某个组件,再次安装会非常的麻烦。
  97. #------------------------------------------------------------------------------
  98. #oracle.install.db.isCustomInstall=false
  99. #------------------------------------------------------------------------------
  100. # This variable is considered only if\'IsCustomInstall\' is set to true.
  101. # Description: List of Enterprise EditionOptions you would like to install.
  102. # The following choices areavailable. You may specify any
  103. # combination of thesechoices. The components you chooseshould
  104. # be specified in the form"internal-component-name:version"
  105. # Below is a list of components youmay specify to install.
  106. # oracle.rdbms.partitioning:11.2.0.1.0- Oracle Partitioning
  107. # oracle.rdbms.dm:11.2.0.1.0- Oracle Data Mining
  108. # oracle.rdbms.dv:11.2.0.1.0- Oracle Database Vault
  109. # oracle.rdbms.lbac:11.2.0.1.0- Oracle Label Security
  110. # oracle.rdbms.rat:11.2.0.1.0- Oracle Real Application Testing
  111. # oracle.oraolap:11.2.0.1.0- Oracle OLAP
  112. # oracle.install.db.isCustomInstall=true的话必须手工选择需要安装组件的话
  113. #------------------------------------------------------------------------------
  114. #oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0
  115. ###############################################################################
  116. # PRIVILEGED OPERATING SYSTEM GROUPS
  117. # Provide values for the OS groups to whichOSDBA and OSOPER privileges #
  118. # needs to be granted. If the install isbeing performed as a member of the #
  119. # group "dba", then that will beused unless specified otherwise below. #
  120. #指定拥有OSDBA、OSOPER权限的用户组,通常会是dba组
  121. ###############################################################################
  122. #------------------------------------------------------------------------------
  123. # The DBA_GROUP is the OS group which is tobe granted OSDBA privileges.
  124. #------------------------------------------------------------------------------
  125. oracle.install.db.DBA_GROUP=dba
  126. #------------------------------------------------------------------------------
  127. # The OPER_GROUP is the OS group which isto be granted OSOPER privileges.
  128. #------------------------------------------------------------------------------
  129. oracle.install.db.OPER_GROUP=oinstall
  130. #------------------------------------------------------------------------------
  131. # Specify the cluster node names selectedduring the installation.
  132. #如果是RAC的安装,在这里指定所有的节点
  133. #------------------------------------------------------------------------------
  134. #oracle.install.db.CLUSTER_NODES=
  135. #------------------------------------------------------------------------------
  136. # Specify the type of database to create.
  137. # It can be one of the following:
  138. # - GENERAL_PURPOSE/TRANSACTION_PROCESSING
  139. # - DATA_WAREHOUSE
  140. #选择数据库的用途,一般用途/事物处理,数据仓库
  141. #------------------------------------------------------------------------------
  142. oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
  143. #------------------------------------------------------------------------------
  144. # Specify the Starter Database GlobalDatabase Name. 指定GlobalName
  145. #------------------------------------------------------------------------------
  146. oracle.install.db.config.starterdb.globalDBName=orcl
  147. #------------------------------------------------------------------------------
  148. # Specify the Starter Database SID.指定SID
  149. #------------------------------------------------------------------------------
  150. oracle.install.db.config.starterdb.SID=orcl
  151. #------------------------------------------------------------------------------
  152. # Specify the Starter Database characterset.
  153. # It can be one of the following:
  154. # AL32UTF8, WE8ISO8859P15, WE8MSWIN1252,EE8ISO8859P2,
  155. # EE8MSWIN1250, NE8ISO8859P10,NEE8ISO8859P4, BLT8MSWIN1257,
  156. # BLT8ISO8859P13, CL8ISO8859P5,CL8MSWIN1251, AR8ISO8859P6,
  157. # AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253,IW8ISO8859P8,
  158. # IW8MSWIN1255, JA16EUC, JA16EUCTILDE,JA16SJIS, JA16SJISTILDE,
  159. # KO16MSWIN949, ZHS16GBK, TH8TISASCII,ZHT32EUC, ZHT16MSWIN950,
  160. # ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254,VN8MSWIN1258
  161. #选择字符集。不正确的字符集会给数据显示和存储带来麻烦无数。
  162. #通常中文选择的有ZHS16GBK简体中文库,建议选择unicode的AL32UTF8国际字符集
  163. #------------------------------------------------------------------------------
  164. oracle.install.db.config.starterdb.characterSet=AL32UTF8
  165. #------------------------------------------------------------------------------
  166. # This variable should be set to true ifAutomatic Memory Management
  167. # in Database is desired.
  168. # If Automatic Memory Management is notdesired, and memory allocation
  169. # is to be done manually, then set it tofalse.
  170. #11g的新特性自动内存管理,也就是SGA_TARGET和PAG_AGGREGATE_TARGET都#不用设置了,Oracle会自动调配两部分大小。
  171. #------------------------------------------------------------------------------
  172. #oracle.install.db.config.starterdb.memoryOption=true
  173. #------------------------------------------------------------------------------
  174. # Specify the total memory allocation forthe database. Value(in MB) should be
  175. # at least 256 MB, and should not exceedthe total physical memory available on the system.
  176. # Example:oracle.install.db.config.starterdb.memoryLimit=512
  177. #指定Oracle自动管理内存的大小,最小是256MB
  178. #------------------------------------------------------------------------------
  179. oracle.install.db.config.starterdb.memoryLimit=2048
  180. #------------------------------------------------------------------------------
  181. # This variable controls whether to loadExample Schemas onto the starter
  182. # database or not.是否载入模板示例
  183. #------------------------------------------------------------------------------
  184. #oracle.install.db.config.starterdb.installExampleSchemas=true
  185. #------------------------------------------------------------------------------
  186. # This variable includes enabling auditsettings, configuring password profiles
  187. # and revoking some grants to public. Thesesettings are provided by default.
  188. # These settings may also be disabled. 是否启用安全设置
  189. #------------------------------------------------------------------------------
  190. #oracle.install.db.config.starterdb.enableSecuritySettings=true
  191. ###############################################################################
  192. # Passwords can be supplied for thefollowing four schemas in the #
  193. # starter database: #
  194. # SYS #
  195. # SYSTEM #
  196. # SYSMAN (used by Enterprise Manager) #
  197. # DBSNMP (used by Enterprise Manager) #
  198. # Same password can be used for allaccounts (not recommended) #
  199. # or different passwords for each accountcan be provided (recommended) #
  200. #设置数据库用户密码
  201. ###############################################################################
  202. #------------------------------------------------------------------------------
  203. # This variable holds the password that isto be used for all schemas in the
  204. # starter database.
  205. #设定所有数据库用户使用同一个密码,其它数据库用户就不用单独设置了。
  206. #-------------------------------------------------------------------------------
  207. oracle.install.db.config.starterdb.password.ALL=Oracle_2021
  208. #-------------------------------------------------------------------------------
  209. # Specify the SYS password for the starterdatabase.
  210. #-------------------------------------------------------------------------------
  211. #oracle.install.db.config.starterdb.password.SYS=oracle
  212. #-------------------------------------------------------------------------------
  213. # Specify the SYSTEM password for thestarter database.
  214. #-------------------------------------------------------------------------------
  215. #oracle.install.db.config.starterdb.password.SYSTEM=oracle
  216. #-------------------------------------------------------------------------------
  217. # Specify the SYSMAN password for thestarter database.
  218. #-------------------------------------------------------------------------------
  219. #oracle.install.db.config.starterdb.password.SYSMAN=oracle
  220. #-------------------------------------------------------------------------------
  221. # Specify the DBSNMP password for thestarter database.
  222. #-------------------------------------------------------------------------------
  223. #oracle.install.db.config.starterdb.password.DBSNMP=oracle
  224. #-------------------------------------------------------------------------------
  225. # Specify the management option to beselected for the starter database.
  226. # It can be one of the following:
  227. # 1. GRID_CONTROL
  228. # 2. DB_CONTROL
  229. #数据库本地管理工具DB_CONTROL,远程集中管理工具GRID_CONTROL
  230. #-------------------------------------------------------------------------------
  231. #oracle.install.db.config.starterdb.control=DB_CONTROL
  232. #-------------------------------------------------------------------------------
  233. # Specify the Management Service to use ifGrid Control is selected to manage
  234. # the database. GRID_CONTROL需要设定grid control的远程路径URL
  235. #-------------------------------------------------------------------------------
  236. #oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
  237. #-------------------------------------------------------------------------------
  238. # This variable indicates whether toreceive email notification for critical
  239. # alerts when using DB control.是否启用Email通知, 启用后会将告警等信息发送到指定邮箱
  240. #-------------------------------------------------------------------------------
  241. #oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
  242. #-------------------------------------------------------------------------------
  243. # Specify the email address to which thenotifications are to be sent.设置通知EMAIL地址
  244. #-------------------------------------------------------------------------------
  245. #oracle.install.db.config.starterdb.dbcontrol.emailAddress=
  246. #-------------------------------------------------------------------------------
  247. # Specify the SMTP server used for emailnotifications.设置EMAIL邮件服务器
  248. #-------------------------------------------------------------------------------
  249. #oracle.install.db.config.starterdb.dbcontrol.SMTPServer=
  250. ###############################################################################
  251. # SPECIFY BACKUP AND RECOVERY OPTIONS #
  252. # Out-of-box backup and recovery optionsfor the database can be mentioned #
  253. # using the entries below. #
  254. #安全及恢复设置(默认值即可)out-of-box(out-of-box experience)缩写为OOBE
  255. #产品给用产品给用户良好第一印象和使用感受
  256. ###############################################################################
  257. #------------------------------------------------------------------------------
  258. # This variable is to be set to false ifautomated backup is not required. Else
  259. # this can be set to true.设置自动备份,和OUI里的自动备份一样。
  260. #------------------------------------------------------------------------------
  261. #oracle.install.db.config.starterdb.automatedBackup.enable=false
  262. #------------------------------------------------------------------------------
  263. # Regardless of the type of storage that ischosen for backup and recovery, if
  264. # automated backups are enabled, a job willbe scheduled to run daily at
  265. # 2:00 AM to backup the database. This jobwill run as the operating system
  266. # user that is specified in this variable.自动备份会启动一个job,指定启动JOB的系统用户ID
  267. #------------------------------------------------------------------------------
  268. #oracle.install.db.config.starterdb.automatedBackup.osuid=
  269. #-------------------------------------------------------------------------------
  270. # Regardless of the type of storage that ischosen for backup and recovery, if
  271. # automated backups are enabled, a job willbe scheduled to run daily at
  272. # 2:00 AM to backup the database. This jobwill run as the operating system user
  273. # specified by the above entry. Thefollowing entry stores the password for the
  274. # above operating system user.自动备份会开启一个job,需要指定OSUser的密码
  275. #-------------------------------------------------------------------------------
  276. #oracle.install.db.config.starterdb.automatedBackup.ospwd=
  277. #-------------------------------------------------------------------------------
  278. # Specify the type of storage to use forthe database.
  279. # It can be one of the following:
  280. # - FILE_SYSTEM_STORAGE
  281. # - ASM_STORAGE
  282. #自动备份,要求指定使用的文件系统存放数据库文件还是ASM
  283. #------------------------------------------------------------------------------
  284. oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE
  285. #-------------------------------------------------------------------------------
  286. # Specify the database file location whichis a directory for datafiles, control
  287. # files, redo logs.
  288. # Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM
  289. #使用文件系统存放数据库文件才需要指定数据文件、控制文件、Redo log的存放目录
  290. #-------------------------------------------------------------------------------
  291. oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/u01/app/oracle/fast_recovery_area
  292. #-------------------------------------------------------------------------------
  293. # Specify the backup and recovery location.
  294. # Applicable only whenoracle.install.db.config.starterdb.storage=FILE_SYSTEM
  295. #使用文件系统存放数据库文件才需要指定备份恢复目录
  296. #-------------------------------------------------------------------------------
  297. oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=/u01/app/oracle/fast_recovery_area
  298. #-------------------------------------------------------------------------------
  299. # Specify the existing ASM disk groups tobe used for storage.
  300. # Applicable only whenoracle.install.db.config.starterdb.storage=ASM
  301. #使用ASM存放数据库文件才需要指定存放的磁盘组
  302. #-------------------------------------------------------------------------------
  303. #oracle.install.db.config.asm.diskGroup=
  304. #-------------------------------------------------------------------------------
  305. # Specify the password for ASMSNMP user ofthe ASM instance.
  306. # Applicable only whenoracle.install.db.config.starterdb.storage=ASM_SYSTEM
  307. #使用ASM存放数据库文件才需要指定ASM实例密码
  308. #-------------------------------------------------------------------------------
  309. #oracle.install.db.config.asm.ASMSNMPPassword=
  310. #------------------------------------------------------------------------------
  311. # Specify the My Oracle Support AccountUsername.
  312. # Example :MYORACLESUPPORT_USERNAME=metalink
  313. #指定metalink账户用户名
  314. #------------------------------------------------------------------------------
  315. #MYORACLESUPPORT_USERNAME=
  316. #------------------------------------------------------------------------------
  317. # Specify the My Oracle Support AccountUsername password.
  318. # Example : MYORACLESUPPORT_PASSWORD=password
  319. # 指定metalink账户密码
  320. #------------------------------------------------------------------------------
  321. #MYORACLESUPPORT_PASSWORD=
  322. #------------------------------------------------------------------------------
  323. # Specify whether to enable the user to setthe password for
  324. # My Oracle Support credentials. The valuecan be either true or false.
  325. # If left blank it will be assumed to befalse.
  326. # Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
  327. # 用户是否可以设置metalink密码
  328. #------------------------------------------------------------------------------
  329. SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
  330. #------------------------------------------------------------------------------
  331. # Specify whether user wants to give anyproxy details for connection.
  332. # The value can be either true or false. Ifleft blank it will be assumed to be false.
  333. # Example : DECLINE_SECURITY_UPDATES=false
  334. # False表示不需要设置安全更新,注意,在11.2的静默安装中疑似有一个BUG
  335. # Response File中必须指定为true,否则会提示错误,不管是否正确填写了邮件地址
  336. #------------------------------------------------------------------------------
  337. DECLINE_SECURITY_UPDATES=true
  338. #------------------------------------------------------------------------------
  339. # Specify the Proxy server name. Lengthshould be greater than zero.
  340. #代理服务器名
  341. # Example : PROXY_HOST=proxy.domain.com
  342. #------------------------------------------------------------------------------
  343. #PROXY_HOST=
  344. #------------------------------------------------------------------------------
  345. # Specify the proxy port number. Should beNumeric and atleast 2 chars.
  346. #代理服务器端口
  347. # Example : PROXY_PORT=25
  348. #------------------------------------------------------------------------------
  349. #PROXY_PORT=
  350. #------------------------------------------------------------------------------
  351. # Specify the proxy user name. LeavePROXY_USER and PROXY_PWD
  352. # blank if your proxy server requires noauthentication.
  353. #代理服务器用户名
  354. # Example : PROXY_USER=username
  355. #------------------------------------------------------------------------------
  356. #PROXY_USER=
  357. #------------------------------------------------------------------------------
  358. # Specify the proxy password. LeavePROXY_USER and PROXY_PWD
  359. # blank if your proxy server requires noauthentication.
  360. #代理服务器密码
  361. # Example : PROXY_PWD=password
  362. #------------------------------------------------------------------------------
  363. #PROXY_PWD=

  

 

—————————————–结尾—————————————————–

复制保存后进行重新执行静默安装命令即可,保证安装空间充足!!

给新手的建议: 有问题的时候应该先自己思考,再去一一处理问题,对自己的提升会有很大的帮助!

版权声明:本文为cc66原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/cc66/p/12861794.html