rhel6/7如何自动安装oracle11g单实例

小编给大家分享一下rhel6/7如何自动安装oracle11g单实例,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

因日常工作,经常需要在rhel6.X,rhel7.X,CentOS6.X,CentOS7.x上安装oracle 11.2.0.4版本单实例数据库(基于文件系统)
故写了自动安装脚本oracle脚本。

全部文件列表如下:
rhel6/7如何自动安装oracle11g单实例

1、其中iso文件是对应的红帽系统的镜像源(根据cat /etc/redhat-release获取红帽版本)
2、其中两个zip安装包,可以从SR上下载(搜索13390677找到对应的文件,注意文件名必须一致)
3、其中三个rsp文件是安装oracle的配置文件,db_install.rsp用于安装数据库软件,dbca.rsp用于创建数据库,netca.rsp用于创建监听。
4、其中sh文件是本人写的脚本,直接使用root用户执行即可(需要chmod u+x auto_install_oracle_server.sh),期间需要用户输入几个信息:字符集、oracle_sid、主机ip地址,memory_target。

因只在红帽6与7的部分版本测试过,可能还有一些问题。可具体修改shell脚本。

操作过程:
1、查看文件是否齐全

点击(此处)折叠或打开

  1. [root@testlihb ~]# cd /tmp

  2. [root@testlihb tmp]# ls -lrt

  3. total 6120464

  4. -rw-r–r– 1 root root 5871 Apr 28 07:00 netca.rsp #监听配置文件

  5. -rwxr–r– 1 root root 17977 Apr 28 07:00 auto_install_oracle_server.sh #主脚本

  6. -rw-r–r– 1 root root 25287 Apr 28 07:00 db_install.rsp #数据库软件配置文件

  7. -rw-r–r– 1 root root 44580 Apr 28 07:00 dbca.rsp #数据库配置文件

  8. -rwxr-xr-x 1 root root 1395582860 Apr 28 07:07 p13390677_112040_Linux-x86-64_1of7.zip #11.2.0.4 安装包1

  9. -rwxr-xr-x 1 root root 1151304589 Apr 28 07:12 p13390677_112040_Linux-x86-64_2of7.zip #11.2.0.4 安装包2

  10. -rw-r–r– 1 root root 3720347648 Jul 24 2018 rhel-server-6.4-x86_64-dvd.iso #操作系统光盘文件

  11. [root@testlihb tmp]# chmod u+x auto_install_oracle_server.sh #root赋予可执行权限

2、配置yum源,如果确认yum源已经配置完毕,可忽略此步骤

点击(此处)折叠或打开

  1. [root@testlihb tmp]# ./auto_install_oracle_server.sh #root直接执行

  2. ========>——– seletion————

  3. ========>1.install database #安装数据库

  4. ========>2.deinstall database #卸载数据库(只可以卸载通过本脚本安装的数据库)

  5. ========>3.configure local yum #配置yum源

  6. ========>—————————–

  7. ========>Your choice:3 #选择配置yum源,如果确认yum源已经配置好了,此处可忽略

  8. ========>please input the iso location(eg:/tmp/xxx.iso):/tmp/rhel-server-6.4-x86_64-dvd.iso #输入iso文件的路径

  9. [OK]====>the yum configure

3、安装数据库

点击(此处)折叠或打开

  1. [root@testlihb tmp]# ./auto_install_oracle_server.sh

  2. ========>——– seletion————

  3. ========>1.install database

  4. ========>2.deinstall database

  5. ========>3.configure local yum

  6. ========>—————————–

  7. ========>Your choice:1 #安装数据库

  8. [ok]====>begin install_db

  9. [ok]====>current user is root #检查当前用户是否为root

  10. [OK]====>the yum configure #检查yum源是否正常

  11. [OK]====>the installfile #检查oracle安装包是否存在

  12. [OK]====>the config file #检查配置文件是否存在

  13. ========>—-charcaterset seletion—-

  14. ========>1.AMERICAN_AMERICA.ZHS16GBK

  15. ========>2.AMERICAN_AMERICA.AL32UTF8

  16. ========>—————————–

  17. ========>Your choice:(default 1):1 #选择数据库字符集,此处只有两个选择

  18. ========>please input sid(less than 8 letters):oragbk #输入sid,sid必须少于8个字符

  19. ========>please input memory target(MB):4096 #输入内存,其中sga和pga比例为3:1

  20. ========>please input ORACLE_BASE(will auto create):/database/oragbk #oracle软件目录(如果目录不存在,会自动创建。如果目录存在,该目录必须为空)

  21. ========>please input host IP address:192.168.75.236 #输入本机ip地址

  22. [ok]====>cpu #检查cpu

  23. [ok]====>memory #检查内存

  24. [ok]====>/tmp #检查/tmp目录

  25. [ok]====>swap #检查交换分区

  26. [ok]====>ORACLE_BASE #检查oracle软件目录

  27. [OK]====>the yum configure #检查yum源配置

  28. [ok]====>the yum package has been installed #通过yum安装依赖包

  29. [ok]====>the sysctl.conf has been backup and change #备份和修改sysctl.conf文件

  30. [ok]====>the limits.conf has been backup and change #备份和修改limits.conf文件

  31. [ok]====>the login has been backup and change #备份和修改login文件

  32. [ok]====>the profile has been backup and change #备份和修改profile文件

  33. [ok]====>the oracle user and oinstall,dba group has been created #创建oracle用户,oinstall和dba组

  34. [ok]====>the .bash_profile has been backup and change #备份和修改.bash_profile文件

  35. [ok]====>the dir has been created #检查和创建oracle_base目录

  36. [ok]====>the install file has been unzip #解压oracle安装包

  37. [ok]====>the hosts has been backup and change #备份和修改hosts文件

  38. [ok]====>the db_install.rsp has been backup and change #备份和修改db_install.rsp文件

  39. [ok]====>waiting for software install . . . . . . . . . . #此处在安装oracle软件,需要等较长时间,可查看/tmp/db_install.rsp.log

  40. [ok]====>software has installed #oracle软件安装完成

  41. [ok]====>two script has been run by root #root执行两个shell script文件

  42. [ok]====>netca.rsp has been backup and change #备份和修改netca.rsp文件

  43. [ok]====>waiting for netca install . #此处在创建listener,不需要等待太长时间,可查看/tmp/netca.rsp.log

  44. [ok]====>netca has installed #listener创建完成

  45. [ok]====>dbca.rsp has been backup and change #备份和修改dbca.rsp文件

  46. Copying database files

  47. 1% complete

  48. 3% complete

  49. 11% complete

  50. 18% complete

  51. 26% complete

  52. 37% complete

  53. Creating and starting Oracle instance

  54. 40% complete

  55. 45% complete

  56. 50% complete

  57. 55% complete

  58. 56% complete

  59. 60% complete

  60. 62% complete

  61. Completing Database Creation

  62. 66% complete

  63. 70% complete

  64. 73% complete

  65. 85% complete

  66. 96% complete

  67. 100% complete

  68. Look at the log file "/database/oragbk/cfgtoollogs/dbca/oragbk/oragbk.log" for further details.

  69. [ok]====>dbca has installed #数据库创建完成

  70. [ok]====>the install process success

4、检查数据库是否正常

点击(此处)折叠或打开

  1. [root@testlihb tmp]# ps -ef|grep smon_ |grep -v grep

  2. oracle 12863 1 0 07:34 ? 00:00:00 ora_smon_oragbk #进程存在

  3. [root@testlihb tmp]# su – oracle

  4. [oracle@testlihb ~]$ sqlplus / as sysdba

  5. SQL*Plus: Release 11.2.0.4.0 Production on Sat Apr 28 07:35:09 2018

  6. Copyright (c) 1982, 2013, Oracle. All rights reserved.

  7. Connected to:

  8. Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 – 64bit Production

  9. With the Partitioning, OLAP, Data Mining and Real Application Testing options

  10. SQL> show parameter name

  11. NAME TYPE VALUE

  12. ———————————— ———– ——————————

  13. cell_offloadgroup_name string

  14. db_file_name_convert string

  15. db_name string oragbk

  16. db_unique_name string oragbk

  17. global_names boolean FALSE

  18. instance_name string oragbk

  19. lock_name_space string

  20. log_file_name_convert string

  21. processor_group_name string

  22. service_names string oragbk

  23. SQL> show parameter memory

  24. NAME TYPE VALUE

  25. ———————————— ———– ——————————

  26. hi_shared_memory_address integer 0

  27. memory_max_target big integer 0

  28. memory_target big integer 0

  29. shared_memory_address integer 0

  30. SQL> show parameter sga

  31. NAME TYPE VALUE

  32. ———————————— ———– ——————————

  33. lock_sga boolean FALSE

  34. pre_page_sga boolean FALSE

  35. sga_max_size big integer 3G

  36. sga_target big integer 3G

  37. SQL> show parameter pga

  38. NAME TYPE VALUE

  39. ———————————— ———– ——————————

  40. pga_aggregate_target big integer 1G

  41. SQL> set lines 150 pages 10000

  42. SQL> select * from nls_database_parameters where PARAMETER='NLS_CHARACTERSET';

  43. PARAMETER VALUE

  44. —————————— ——————————————————————————–

  45. NLS_CHARACTERSET ZHS16GBK

  46. SQL> exit

  47. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 – 64bit Production

  48. With the Partitioning, OLAP, Data Mining and Real Application Testing options

  49. [oracle@testlihb ~]$ logout

5、卸载数据库

点击(此处)折叠或打开

  1. [root@testlihb tmp]# ./auto_install_oracle_server.sh

  2. ========>——– seletion————

  3. ========>1.install database

  4. ========>2.deinstall database

  5. ========>3.configure local yum

  6. ========>—————————–

  7. ========>Your choice:2

  8. please use oracle to run $ORACLE_HOME/deinstall/deinstall and use root to run /tmp/del_ora.sh #切到oracle用户执行脚本,然后在切到root用户执行脚本

  9. [root@testlihb tmp]# su – oracle

  10. [oracle@testlihb ~]$ $ORACLE_HOME/deinstall/deinstall

  11. Checking for required files and bootstrapping …

  12. Please wait …

  13. Location of logs /tmp/deinstall2018-04-28_07-36-48AM/logs/

  14. 。。。

  15. Specify all Single Instance listeners that are to be de-configured [LISTENER]:

  16. Specify the list of database names that are configured in this Oracle home [oragbk]:

  17. The details of database(s) oragbk have been discovered automatically. Do you still want to modify the details of oragbk database(s)? [n]: y

  18. Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [1]:

  19. Specify the diagnostic destination location of the database [/database/oragbk/diag/rdbms/oragbk]:

  20. Specify the storage type used by the Database ASM|FS [FS]:

  21. Specify the list of directories if any database files exist on a shared file system. If 'oragbk' subdirectory is found, then it will be deleted. Otherwise, the specified directory will be deleted. Alternatively, you can specify list of database files with full path [/database/oragbk/oradata/oragbk,/database/oragbk/fast_recovery_area/oragbk]:

  22. Specify the fast recovery area location, if it is configured on the file system. If 'oragbk' subdirectory is found, then it will be deleted. [/database/oragbk/fast_recovery_area/ORAGBK]:

  23. Specify the database spfile location [/database/oragbk/product/11.2.0/db_1/dbs/spfileoragbk.ora]:

  24. Do you want to continue (y – yes, n – no)? [n]: y

  25. 。。。

  26. [oracle@testlihb ~]$ logout

  27. [root@testlihb tmp]# /tmp/del_ora.sh

6、检查是否已经删除数据库

点击(此处)折叠或打开

  1. [root@testlihb tmp]# ps -ef|grep smon_

  2. root 16003 7948 0 07:45 pts/1 00:00:00 grep smon_

  3. [root@testlihb tmp]# id oracle

  4. id: oracle: No such user

如下是具体的脚本:
 auto_install_oracle_server.sh

点击(此处)折叠或打开

  1. #!/bin/bash

  2. HOSTNAME=`hostname`

  3. PWD="$( cd "$( dirname "$0"  )" && pwd  )"

  4. # 102 去掉目录最后的/

  5. change_dir(){

  6. flag=${1##*/}

  7. if [ -z $flag  ];then

  8. ORACLE_BASE=${1%?}

  9. fi

  10. }

  11. ##change_dir $dir

  12. # 101 检查文件夹是否可以作为ORACLE_BASE目录

  13. check_dir(){

  14. if [ -d $1 ];then

  15. if [ `ls -al $1|wc -l` -gt 3 ];then

  16. echo "[fail]====>the ORACLE_BASE must without any file(s)"

  17. exit 101

  18. fi

  19. else

  20. mkdir -p $1

  21. fi

  22. }

  23. ##read -p "input dir:" dir

  24. ##check_dir $dir

  25. # 0 检查传入参数是否为空

  26. isnull(){

  27. if [ -z $1 ];then

  28. echo $1

  29. echo "[fail]====>parameter is null"

  30. exit 0

  31. fi

  32. }

  33. ##isnull $hah

  34. # 1 检查yum源是否正常

  35. check_yum(){

  36. yum clean all >/dev/null 2>&1

  37. var=`yum repolist|grep repolist|awk -F : '{print $2}'|awk -F , '{print $1}'`

  38. ##    echo $var

  39. if [ $var -eq 0 ];then

  40. echo "[fail]====>the yum configure is wrong ,see /etc/yum.repos.d/*.repo"

  41. exit 1

  42. else

  43. echo "[OK]====>the yum configure"

  44. fi

  45. }

  46. ##check_yum

  47. # 2 检查数据库安装软件是否已经上传

  48. check_installfile(){

  49. cd $PWD

  50. if [ -f "p13390677_112040_Linux-x86-64_1of7.zip" -a -f "p13390677_112040_Linux-x86-64_2of7.zip" ];then

  51. echo "[OK]====>the installfile"

  52. else

  53. echo "[fail]====>the $PWD does not have p13390677_112040_Linux-* "

  54. exit 2

  55. fi

  56. if [ -f "dbca.rsp" -a -f "netca.rsp" -a -f "db_install.rsp" ];then

  57. echo "[OK]====>the config file"

  58. else

  59. echo "[fail]====>the $PWD does not have *.rsp"

  60. exit 2

  61. fi

  62. }

  63. ##check_installfile

  64. # 3 判断执行用户是否root

  65. isroot(){

  66. if [ $USER != "root" ];then

  67. echo "[fail]====>current user is not root"

  68. exit 3

  69. else

  70. echo "[ok]====>current user is root"

  71. fi

  72. }

  73. ##isroot

  74. # 4 获取输入数据库基本信息

  75. get_information(){

  76. echo "========>—-charcaterset seletion—-"

  77. echo "========>1.AMERICAN_AMERICA.ZHS16GBK"

  78. echo "========>2.AMERICAN_AMERICA.AL32UTF8"

  79. echo "========>—————————–"

  80. echo -e "========>Your choice:(default 1):/c"

  81. read NLS_LANG

  82. case $NLS_LANG in

  83. 1) NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

  84. CHARACTERSET=ZHS16GBK

  85. ;;

  86. 2) NLS_LANG=AMERICAN_AMERICA.AL32UTF8

  87. CHARACTERSET=AL32UTF8

  88. ;;

  89. *) NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

  90. CHARACTERSET=ZHS16GBK

  91. ;;

  92. esac

  93. echo -e "========>please input sid(less than 8 letters):/c"

  94. read SID

  95. isnull $SID

  96. echo -e "========>please input memory target(MB):/c"

  97. read MEMORY

  98. isnull $MEMORY

  99. echo -e "========>please input ORACLE_BASE(will auto create):/c"

  100. read ORACLE_BASE

  101. isnull $ORACLE_BASE

  102. check_dir $ORACLE_BASE

  103. change_dir $ORACLE_BASE

  104. ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1

  105. echo -e "========>please input host IP address:/c"

  106. read IP

  107. isnull $IP

  108. }

  109. ##get_information

  110. # 5 检查cpu,内存,磁盘空间

  111. check_cpu_mem_disk(){

  112. cpu=`cat /proc/cpuinfo | grep name|wc -l`

  113. ##    echo $cpu

  114. if [ $cpu -gt 1 ];then

  115. echo "[ok]====>cpu "

  116. else

  117. echo "[fail]====>cpu must more than 1 cores"

  118. exit 5

  119. fi

  120. mem=`free -m|grep '+'|awk '{print $4}'`

  121. mem7=`free -m|grep Mem|awk '{print $7}'`

  122. ##    echo $mem

  123. if [[ $mem -gt 2048 || $mem7 -gt 2048 ]];then

  124. echo "[ok]====>memory"

  125. else

  126. echo "[fail]====>the memory must more than 2G available"

  127. exit 5

  128. fi

  129. if [ `df -m /tmp|wc -l` -eq 2 ];then

  130. tmp=`df -m /tmp|tail -1|awk '{print $4}'`

  131. else

  132. tmp=`df -m /tmp|tail -1|awk '{print $3}'`

  133. fi

  134. if [ $tmp -gt 120 ];then

  135. echo "[ok]====>/tmp"

  136. else

  137. echo "[fail]====>/tmp must more than 120MB"

  138. exit 5

  139. fi

  140. if [ `free -m|grep Swap|awk '{print $2}'` -gt 150 ];then

  141. echo "[ok]====>swap"

  142. else

  143. echo "[fail]====>swap must more than 150MB"

  144. exit 5

  145. fi

  146. if [ `df -m $ORACLE_BASE|wc -l` -eq 2 ];then

  147. base=`df -m $ORACLE_BASE|tail -1|awk '{print $4}'`

  148. else

  149. base=`df -m $ORACLE_BASE|tail -1|awk '{print $3}'`

  150. fi

  151. if [ $base -gt 8000 ];then

  152. echo "[ok]====>ORACLE_BASE"

  153. else

  154. echo "[fail]====>ORACLE_BASE must more than 20g"

  155. exit 5

  156. fi

  157. }

  158. ##check_cpu_mem_disk

  159. # 6 安装依赖包

  160. yum_install(){

  161. check_yum

  162. yum install -y binutils  >/dev/null

  163. yum install -y compat-libstdc++-33 >/dev/null

  164. yum install -y elfutils-libelf  >/dev/null

  165. yum install -y elfutils-libelf-devel  >/dev/null

  166. yum install -y gcc  >/dev/null

  167. yum install -y gcc-c++ >/dev/null

  168. yum install -y glibc-common >/dev/null

  169. yum install -y glibc-devel >/dev/null

  170. yum install -y glibc-headers >/dev/null

  171. yum install -y libaio >/dev/null

  172. yum install -y libaio-devel >/dev/null

  173. yum install -y libgcc >/dev/null

  174. yum install -y libstdc++ >/dev/null

  175. yum install -y libstdc++-devel >/dev/null

  176. yum install -y make >/dev/null

  177. yum install -y sysstat >/dev/null

  178. yum install -y unzip >/dev/null

  179. echo "[ok]====>the yum package has been installed"

  180. }

  181. ##yum_install

  182. # 7 修改/etc/sysctl.conf文件

  183. sysctl_set(){

  184. if [ ! -f /etc/sysctl.conf.lihb_bak ];then

  185. cp /etc/sysctl.conf /etc/sysctl.conf.lihb_bak

  186. echo "kernel.shmmni = 4096" >>/etc/sysctl.conf

  187. echo "kernel.sem = 250 32000 100 128" >>/etc/sysctl.conf

  188. echo "fs.file-max = 6815744" >>/etc/sysctl.conf

  189. echo "net.ipv4.ip_local_port_range = 9000 65500" >>/etc/sysctl.conf

  190. echo "net.core.rmem_default = 1048576" >>/etc/sysctl.conf

  191. echo "net.core.rmem_max = 4194304" >>/etc/sysctl.conf

  192. echo "net.core.wmem_default = 262144" >>/etc/sysctl.conf

  193. echo "net.core.wmem_max = 1048576" >>/etc/sysctl.conf

  194. echo "fs.aio-max-nr = 1048576" >>/etc/sysctl.conf

  195. /sbin/sysctl -p >/dev/null 2>&1

  196. echo "[ok]====>the sysctl.conf has been backup and change"

  197. fi

  198. }

  199. ##sysctl_set

  200. # 8 修改/etc/security/limits.conf文件

  201. limits_set(){

  202. if [ ! -f /etc/security/limits.conf.lihb_bak ];then

  203. cp /etc/security/limits.conf /etc/security/limits.conf.lihb_bak

  204. echo "oracle    soft    nproc    2047" >>/etc/security/limits.conf

  205. echo "oracle    hard    nproc    16384" >>/etc/security/limits.conf

  206. echo "oracle    soft    nofile    1024" >>/etc/security/limits.conf

  207. echo "oracle    hard    nofile    65536" >>/etc/security/limits.conf

  208. echo "[ok]====>the limits.conf has been backup and change"

  209. fi

  210. }

  211. ##limits_set

  212. # 9 修改/etc/pam.d/login文件

  213. login_set(){

  214. if [ ! -f /etc/pam.d/login.lihb_bak ];then

  215. cp /etc/pam.d/login /etc/pam.d/login.lihb_bak

  216. echo "session    required    /lib64/security/pam_limits.so" >>/etc/pam.d/login

  217. echo "[ok]====>the login has been backup and change"

  218. fi

  219. }

  220. ##login_set

  221. # 10 修改/etc/profile文件

  222. profile_set(){

  223. if [ ! -f /etc/profile.lihb_bak ];then

  224. cp /etc/profile /etc/profile.lihb_bak

  225. echo 'if [ "$USER" = "oracle" ];then ' >>/etc/profile

  226. echo '    if [ "$SHELL" = "/bin/ksh" ];then ' >>/etc/profile

  227. echo '        ulimit -p 16384' >>/etc/profile

  228. echo '        ulimit -n 65536' >>/etc/profile

  229. echo '    else' >>/etc/profile

  230. echo '        ulimit -u 16384' >>/etc/profile

  231. echo '        ulimit -n 65536' >>/etc/profile

  232. echo '    fi' >>/etc/profile

  233. echo '    umask 022' >>/etc/profile

  234. echo 'fi' >>/etc/profile

  235. echo "[ok]====>the profile has been backup and change"

  236. fi

  237. }

  238. ##profile_set

  239. # 11 创建oracle用户和oinstall,dba用户组

  240. user_group_add(){

  241. if [[ `grep "oinstall" /etc/group` = "" ]];then

  242. /usr/sbin/groupadd  -g 1100 oinstall >/dev/null 2>&1

  243. fi

  244. if [[ `grep "dba" /etc/group` = "" ]];then

  245. /usr/sbin/groupadd  -g 1101 dba   >/dev/null 2>&1

  246. fi

  247. if [[ `grep "oracle" /etc/passwd` = "" ]];then

  248. /usr/sbin/useradd -g 1100 -G 1101 -u 1100 -m oracle >/dev/null 2>&1

  249. echo "[ok]====>the oracle user and oinstall,dba group has been created"

  250. else

  251. echo "[fail]====>the oracle user has exist"

  252. exit 11

  253. fi

  254. }

  255. ##user_group_add

  256. # 12 修改/home/oracle/.bash_profile文件

  257. bash_profile_set(){

  258. if [ ! -f /home/oracle/.bash_profile.lihb_bak ];then

  259. cp /home/oracle/.bash_profile /home/oracle/.bash_profile.lihb_bak

  260. echo "" >>/home/oracle/.bash_profile

  261. echo "export ORACLE_BASE=$ORACLE_BASE" >>/home/oracle/.bash_profile

  262. echo "export ORACLE_HOME=$ORACLE_HOME" >>/home/oracle/.bash_profile

  263. echo "export ORACLE_SID=$SID" >>/home/oracle/.bash_profile

  264. echo 'export LD_LIBRARY_PATH=$ORACLE_HOME/lib' >>/home/oracle/.bash_profile

  265. echo 'stty erase ^H' >>/home/oracle/.bash_profile

  266. echo 'export NLS_LANG10=$ORACLE_HOME/nls/data' >>/home/oracle/.bash_profile

  267. echo 'export ORACLE_HOME_LISTNER=$ORACLE_HOME' >>/home/oracle/.bash_profile

  268. echo 'export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin' >>/home/oracle/.bash_profile

  269. echo 'export TEMP=/tmp' >>/home/oracle/.bash_profile

  270. echo 'export TMPDIR=/tmp' >>/home/oracle/.bash_profile

  271. echo "export NLS_LANG=$NLS_LANG" >>/home/oracle/.bash_profile

  272. echo "export NLS_DATE_FORMAT='yyyy-mm-dd hh34:mi:ss'" >>/home/oracle/.bash_profile

  273. echo 'umask 022' >>/home/oracle/.bash_profile

  274. echo "[ok]====>the .bash_profile has been backup and change"

  275. fi

  276. }

  277. ##bash_profile_set

  278. # 13 创建ORACLE_BASE和ORACLE_HOME和数据文件目录并授权

  279. create_dir(){

  280. mkdir -p $ORACLE_HOME

  281. mkdir -p $ORACLE_BASE/oradata

  282. mkdir -p $ORACLE_BASE/oraInventory

  283. mkdir -p $ORACLE_BASE/flash_recovery_area

  284. chown -R oracle:oinstall  $ORACLE_BASE

  285. echo "[ok]====>the dir has been created"

  286. }

  287. ##create_dir

  288. # 14 解压数据库安装包

  289. unzip_file(){

  290. cd $PWD

  291. /usr/bin/unzip p13390677_112040_Linux-x86-64_1of7.zip >/dev/null 2>&1

  292. /usr/bin/unzip p13390677_112040_Linux-x86-64_2of7.zip >/dev/null 2>&1

  293. chown -R oracle:oinstall $PWD/database

  294. echo "[ok]====>the install file has been unzip"

  295. }

  296. ##unzip_file

  297. # 15 修改/etc/hosts文件

  298. hosts_set(){

  299. if [ ! -f /etc/hosts.lihb_bak ];then

  300. cp /etc/hosts /etc/hosts.lihb_bak

  301. echo "$IP    $HOSTNAME" >>/etc/hosts

  302. echo "[ok]====>the hosts has been backup and change"

  303. fi

  304. }

  305. ##hosts_set

  306. # 16 修改db_install.rsp 数据库软件安装配置文件

  307. db_install_set(){

  308. cd $PWD

  309. chown oracle:oinstall db_install.rsp

  310. if [ ! -f db_install.rsp.lihb_bak ];then

  311. cp db_install.rsp db_install.rsp.lihb_bak

  312. sed -i "s|lihb_hostname|$HOSTNAME|g" db_install.rsp

  313. sed -i "s|lihb_location|$ORACLE_BASE/oraInventory|g" db_install.rsp

  314. sed -i "s|lihb_home|$ORACLE_HOME|g" db_install.rsp

  315. sed -i "s|lihb_base|$ORACLE_BASE|g" db_install.rsp

  316. sed -i "s|lihb_globaldbname|$SID|g" db_install.rsp

  317. sed -i "s|lihb_sid|$SID|g" db_install.rsp

  318. sed -i "s|lihb_datalocation|$ORACLE_BASE/oradata|g" db_install.rsp

  319. echo "[ok]====>the db_install.rsp has been backup and change"

  320. fi

  321. }

  322. ##db_install_set

  323. # 17 开始安装oracle软件

  324. install_software(){

  325. su – oracle -c "$PWD/database/runInstaller -silent -force -ignorePrereq -responseFile $PWD/db_install.rsp"  >/tmp/db_install.rsp.log

  326. sleep 10s

  327. echo -e "[ok]====>waiting for software install /c"

  328. while [ ! `grep "root.sh" /tmp/db_install.rsp.log |wc -l` -eq 1 ]

  329. do

  330. echo -e ". /c"

  331. sleep 2s

  332. done

  333. echo "."

  334. echo "[ok]====>software has installed"

  335. $ORACLE_BASE/oraInventory/orainstRoot.sh >/dev/null 2>&1

  336. $ORACLE_BASE/product/11.2.0/db_1/root.sh >/dev/null 2>&1

  337. echo "[ok]====>two script has been run by root"

  338. }

  339. ##install_software

  340. # 18 修改netca.rsp  监听安装配置文件

  341. netca_set(){

  342. cd $PWD

  343. chown oracle:oinstall netca.rsp

  344. if [ ! -f netca.rsp.lihb_bak ];then

  345. cp netca.rsp netca.rsp.lihb_bak

  346. echo "[ok]====>netca.rsp has been backup and change"

  347. fi

  348. }

  349. ##netca_set

  350. # 19 开始安装监听软件

  351. install_netca(){

  352. #    ORACLE_HOME=/database/oracle/product/11.2.0/db_1/

  353. chown -R oracle:dba /var/tmp/.oracle >/dev/null 2>&1

  354. chown -R oracle:dba /tmp/.oracle >/dev/null 2>&1

  355. su – oracle -c "$ORACLE_HOME/bin/netca -silent -responseFile $PWD/netca.rsp" >/tmp/netca.rsp.log

  356. sleep 2s

  357. echo -e "[ok]====>waiting for netca install /c"

  358. while [ ! `grep "The exit code is" /tmp/netca.rsp.log|wc -l` -eq 1 ]

  359. do

  360. echo -e ". /c"

  361. sleep 1s

  362. done

  363. echo "."

  364. echo "[ok]====>netca has installed"

  365. chown -R oracle:dba /var/tmp/.oracle >/dev/null 2>&1

  366. chown -R oracle:dba /tmp/.oracle >/dev/null 2>&1

  367. }

  368. ##install_netca

  369. # 20  修改dbca.rsp 创建数据库配置文件

  370. dbca_set(){

  371. cd $PWD

  372. chown oracle:oinstall dbca.rsp

  373. if [ ! -f dbca.rsp.lihb_bak ];then

  374. cp dbca.rsp dbca.rsp.lihb_bak

  375. #        SID=cgkcglxt

  376. #        ORACLE_BASE=/database/oracle

  377. #        CHARACTERSET=ZHS16GBK

  378. #        MEMORY=4096

  379. sed -i "s|lihb_sid|$SID|g" dbca.rsp

  380. sed -i "s|lihb_datafiledestination|$ORACLE_BASE/oradata|g" dbca.rsp

  381. sed -i "s|lihb_recoveryareadestination|$ORACLE_BASE/flash_recovery_area|g" dbca.rsp

  382. sed -i "s|lihb_characterset|$CHARACTERSET|g" dbca.rsp

  383. sed -i "s|lihb_totalmemory|$MEMORY|g" dbca.rsp

  384. sed -i "s|lihb_gdbname|$SID|g" dbca.rsp

  385. echo "[ok]====>dbca.rsp has been backup and change"

  386. fi

  387. }

  388. ##dbca_set

  389. # 21 开始创建数据库

  390. install_dbca(){

  391. #    ORACLE_HOME=/database/oracle/product/11.2.0/db_1/

  392. su – oracle -c "$ORACLE_HOME/bin/dbca -silent -force -responseFile $PWD/dbca.rsp"

  393. echo "[ok]====>dbca has installed"

  394. }

  395. ##install_dbca

  396. # install_db 安装数据库

  397. install_db(){

  398. echo "[ok]====>begin install_db"

  399. #    check_dir  $dir        #检查文件夹是否可以作为ORACLE_BASE目录

  400. #    isnull $hah            #检查传入参数是否为空

  401. isroot                 #判断执行用户是否root

  402. check_yum              #检查yum源是否正常

  403. check_installfile      #检查数据库安装软件是否已经上传

  404. get_information        #获取输入数据库基本信息

  405. check_cpu_mem_disk     #检查cpu,内存,磁盘空间

  406. yum_install            #安装依赖包

  407. sysctl_set             #修改/etc/sysctl.conf文件

  408. limits_set             #修改/etc/security/limits.conf文件

  409. login_set              #修改/etc/pam.d/login文件

  410. profile_set            #修改/etc/profile文件

  411. user_group_add         #创建oracle用户和oinstall,dba用户组

  412. bash_profile_set       #修改/home/oracle/.bash_profile文件

  413. create_dir             #创建ORACLE_BASE和ORACLE_HOME和数据文件目录并授权

  414. unzip_file             #解压数据库安装包

  415. hosts_set              #修改/etc/hosts文件

  416. db_install_set         #修改db_install.rsp 数据库软件安装配置文件

  417. install_software       #开始安装oracle软件

  418. netca_set              #修改netca.rsp  监听安装配置文件

  419. install_netca          #开始安装监听软件

  420. dbca_set               #修改dbca.rsp 创建数据库配置文件

  421. install_dbca           #开始创建数据库

  422. echo "[ok]====>the install process success"

  423. }

  424. ##install_db

  425. # deinstall_db 卸载数据库软件

  426. deinstall_db(){

  427. PWD="$( cd "$( dirname "$0"  )" && pwd  )"

  428. touch /tmp/del_ora.sh >/dev/null 2>&1

  429. echo "#!/bin/bash" >/tmp/del_ora.sh

  430. echo "cd $PWD" >>/tmp/del_ora.sh

  431. echo 'rm -rf database' >>/tmp/del_ora.sh

  432. echo 'mv -f db_install.rsp.lihb_bak db_install.rsp >/dev/null 2>&1' >>/tmp/del_ora.sh

  433. echo 'mv -f netca.rsp.lihb_bak netca.rsp >/dev/null 2>&1' >>/tmp/del_ora.sh

  434. echo 'mv -f dbca.rsp.lihb_bak dbca.rsp >/dev/null 2>&1' >>/tmp/del_ora.sh

  435. echo 'mv -f /etc/hosts.lihb_bak /etc/hosts >/dev/null 2>&1' >>/tmp/del_ora.sh

  436. echo 'mv -f /etc/profile.lihb_bak /etc/profile >/dev/null 2>&1' >>/tmp/del_ora.sh

  437. echo 'mv -f /etc/pam.d/login.lihb_bak /etc/pam.d/login >/dev/null 2>&1' >>/tmp/del_ora.sh

  438. echo 'mv -f /etc/security/limits.conf.lihb_bak /etc/security/limits.conf >/dev/null 2>&1' >>/tmp/del_ora.sh

  439. echo 'mv -f /etc/sysctl.conf.lihb_bak /etc/sysctl.conf >/dev/null 2>&1' >>/tmp/del_ora.sh

  440. echo '/sbin/sysctl -p >/dev/null 2>&1' >>/tmp/del_ora.sh

  441. echo 'rm -rf /opt/tmp/.oracle' >>/tmp/del_ora.sh

  442. echo 'rm -rf /tmp/.oracle' >>/tmp/del_ora.sh

  443. echo 'rm -rf /opt/ORCLfmap' >>/tmp/del_ora.sh

  444. echo 'rm -rf /etc/oraInst.loc' >>/tmp/del_ora.sh

  445. echo 'rm -rf /etc/oratab' >>/tmp/del_ora.sh

  446. echo 'userdel -r oracle >/dev/null 2>&1' >>/tmp/del_ora.sh

  447. ORACLE_BASE=`cat /home/oracle/.bash_profile|grep ORACLE_BASE|awk -F = '{print $2}'`

  448. echo "rm -rf $ORACLE_BASE" >>/tmp/del_ora.sh

  449. chmod u+x /tmp/del_ora.sh

  450. echo 'please use oracle to run $ORACLE_HOME/deinstall/deinstall and use root to run /tmp/del_ora.sh'

  451. }

  452. ##deinstall_db

  453. # configure_yum 配置yum源

  454. configure_yum(){

  455. echo -e "========>please input the iso location(eg:/tmp/xxx.iso):/c"

  456. read ISOLOCATION

  457. mkdir -p /media/lihb_iso

  458. mount -t iso9660 -o loop $ISOLOCATION /media/lihb_iso

  459. mkdir -p /etc/yum.repos.d/lihb_bak

  460. mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/lihb_bak

  461. touch /etc/yum.repos.d/lihb_local.repo

  462. echo "[lihb_local]" >/etc/yum.repos.d/lihb_local.repo

  463. echo "name=lihb_local" >>/etc/yum.repos.d/lihb_local.repo

  464. echo "baseurl=file:///media/lihb_iso" >>/etc/yum.repos.d/lihb_local.repo

  465. echo "gpgcheck=0" >>/etc/yum.repos.d/lihb_local.repo

  466. echo "enabled=1" >>/etc/yum.repos.d/lihb_local.repo

  467. check_yum

  468. }

  469. ##configure_yum

  470. # main 程序入口

  471. main(){

  472. echo "========>——– seletion————"

  473. echo "========>1.install database"

  474. echo "========>2.deinstall database"

  475. echo "========>3.configure local yum"

  476. echo "========>—————————–"

  477. echo -e "========>Your choice:/c"

  478. read FLAG

  479. case $FLAG in

  480. 1) install_db     #安装数据库

  481. ;;

  482. 2) deinstall_db   #卸载数据库

  483. ;;

  484. 3) configure_yum  #配置本地yum源

  485. ;;

  486. *) exit 200

  487. ;;

  488. esac

  489. }

  490. main

如下是db_install.rsp的内容:

点击(此处)折叠或打开

  1. ####################################################################

  2. ## Copyright(c) Oracle Corporation 1998,2013. All rights reserved.##

  3. ##                                                                ##

  4. ## Specify values for the variables listed below to customize     ##

  5. ## your installation.                                             ##

  6. ##                                                                ##

  7. ## Each variable is associated with a comment. The comment        ##

  8. ## can help to populate the variables with the appropriate        ##

  9. ## values.  ##

  10. ##                                                                ##

  11. ## IMPORTANT NOTE: This file contains plain text passwords and    ##

  12. ## should be secured to have read permission only by oracle user  ##

  13. ## or db administrator who owns this installation.                ##

  14. ##                                                                ##

  15. ####################################################################

  16. #——————————————————————————

  17. # Do not change the following system generated value.

  18. #——————————————————————————

  19. oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0

  20. #——————————————————————————

  21. # Specify the installation option.

  22. # It can be one of the following:

  23. #   – INSTALL_DB_SWONLY

  24. #   – INSTALL_DB_AND_CONFIG

  25. #   – UPGRADE_DB

  26. #——————————————————————————-

  27. oracle.install.option=INSTALL_DB_SWONLY

  28. #——————————————————————————-

  29. # Specify the hostname of the system as set during the install. It can be used

  30. # to force the installation to use an alternative hostname rather than using the

  31. # first hostname found on the system. (e.g., for systems with multiple hostnames

  32. # and network interfaces)

  33. #——————————————————————————-

  34. ORACLE_HOSTNAME=lihb_hostname

  35. #——————————————————————————-

  36. # Specify the Unix group to be set for the inventory directory.

  37. #——————————————————————————-

  38. UNIX_GROUP_NAME=oinstall

  39. #——————————————————————————-

  40. # Specify the location which holds the inventory files.

  41. # This is an optional parameter if installing on

  42. # Windows based Operating System.

  43. #——————————————————————————-

  44. INVENTORY_LOCATION=lihb_location

  45. #——————————————————————————-

  46. # Specify the languages in which the components will be installed.

  47. #

  48. # en   : English                  ja   : Japanese

  49. # fr   : French                   ko   : Korean

  50. # ar   : Arabic                   es   : Latin American Spanish

  51. # bn   : Bengali                  lv   : Latvian

  52. # pt_BR: Brazilian Portuguese     lt   : Lithuanian

  53. # bg   : Bulgarian                ms   : Malay

  54. # fr_CA: Canadian French          es_MX: Mexican Spanish

  55. # ca   : Catalan                  no   : Norwegian

  56. # hr   : Croatian                 pl   : Polish

  57. # cs   : Czech                    pt   : Portuguese

  58. # da   : Danish                   ro   : Romanian

  59. # nl   : Dutch                    ru   : Russian

  60. # ar_EG: Egyptian                 zh_CN: Simplified Chinese

  61. # en_GB: English (Great Britain)  sk   : Slovak

  62. # et   : Estonian                 sl   : Slovenian

  63. # fi   : Finnish                  es_ES: Spanish

  64. # de   : German                   sv   : Swedish

  65. # el   : Greek                    th   : Thai

  66. # iw   : Hebrew                   zh_TW: Traditional Chinese

  67. # hu   : Hungarian                tr   : Turkish

  68. # is   : Icelandic                uk   : Ukrainian

  69. # in   : Indonesian               vi   : Vietnamese

  70. # it   : Italian

  71. #

  72. # all_langs   : All languages

  73. #

  74. # Specify value as the following to select any of the languages.

  75. # Example : SELECTED_LANGUAGES=en,fr,ja

  76. #

  77. # Specify value as the following to select all the languages.

  78. # Example : SELECTED_LANGUAGES=all_langs

  79. #——————————————————————————

  80. SELECTED_LANGUAGES=en

  81. #——————————————————————————

  82. # Specify the complete path of the Oracle Home.

  83. #——————————————————————————

  84. ORACLE_HOME=lihb_home

  85. #——————————————————————————

  86. # Specify the complete path of the Oracle Base.

  87. #——————————————————————————

  88. ORACLE_BASE=lihb_base

  89. #——————————————————————————

  90. # Specify the installation edition of the component.

  91. #

  92. # The value should contain only one of these choices.

  93. #   – EE     : Enterprise Edition

  94. #   – SE     : Standard Edition

  95. #   – SEONE  : Standard Edition One

  96. #   – PE     : Personal Edition (WINDOWS ONLY)

  97. #——————————————————————————

  98. oracle.install.db.InstallEdition=EE

  99. #——————————————————————————

  100. # This variable is used to enable or disable custom install and is considered

  101. # only if InstallEdition is EE.

  102. #

  103. # true  : Components mentioned as part of 'optionalComponents' property

  104. #         are considered for install.

  105. # false : Value for 'optionalComponents' is not considered.

  106. #——————————————————————————

  107. oracle.install.db.EEOptionsSelection=false

  108. #——————————————————————————

  109. # This variable is considered only if 'EEOptionsSelection' is set to true.

  110. #

  111. # Description: List of Enterprise Edition Options you would like to enable.

  112. #

  113. #              The following choices are available. You may specify any

  114. #              combination of these choices.  The components you choose should

  115. #              be specified in the form "internal-component-name:version"

  116. #              Below is a list of components you may specify to enable.

  117. #

  118. #              oracle.oraolap:11.2.0.4.0 – Oracle OLAP

  119. #              oracle.rdbms.dm:11.2.0.4.0 – Oracle Data Mining

  120. #              oracle.rdbms.dv:11.2.0.4.0 – Oracle Database Vault

  121. #              oracle.rdbms.lbac:11.2.0.4.0 – Oracle Label Security

  122. #              oracle.rdbms.partitioning:11.2.0.4.0 – Oracle Partitioning

  123. #              oracle.rdbms.rat:11.2.0.4.0 – Oracle Real Application Testing

  124. #——————————————————————————

  125. 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

  126. ###############################################################################

  127. #                                                                             #

  128. # PRIVILEGED OPERATING SYSTEM GROUPS                                        #

  129. # ——————————————                                  #

  130. # Provide values for the OS groups to which OSDBA and OSOPER privileges       #

  131. # needs to be granted. If the install is being performed as a member of the   #

  132. # group "dba", then that will be used unless specified otherwise below.      #

  133. #                                                                             #

  134. # The value to be specified for OSDBA and OSOPER group is only for UNIX based #

  135. # Operating System.                                                           #

  136. #                                                                             #

  137. ###############################################################################

  138. #——————————————————————————

  139. # The DBA_GROUP is the OS group which is to be granted OSDBA privileges.

  140. #——————————————————————————

  141. oracle.install.db.DBA_GROUP=dba

  142. #——————————————————————————

  143. # The OPER_GROUP is the OS group which is to be granted OSOPER privileges.

  144. # The value to be specified for OSOPER group is optional.

  145. #——————————————————————————

  146. oracle.install.db.OPER_GROUP=oinstall

  147. #——————————————————————————

  148. # Specify the cluster node names selected during the installation.

  149. # Example : oracle.install.db.CLUSTER_NODES=node1,node2

  150. #——————————————————————————

  151. oracle.install.db.CLUSTER_NODES=

  152. #——————————————————————————

  153. # This variable is used to enable or disable RAC One Node install.

  154. #

  155. #   – true  : Value of RAC One Node service name is used.

  156. #   – false : Value of RAC One Node service name is not used.

  157. #

  158. # If left blank, it will be assumed to be false

  159. #——————————————————————————

  160. oracle.install.db.isRACOneInstall=

  161. #——————————————————————————

  162. # Specify the name for RAC One Node Service.

  163. #——————————————————————————

  164. oracle.install.db.racOneServiceName=

  165. #——————————————————————————

  166. # Specify the type of database to create.

  167. # It can be one of the following:

  168. #   – GENERAL_PURPOSE/TRANSACTION_PROCESSING

  169. #   – DATA_WAREHOUSE

  170. #——————————————————————————

  171. oracle.install.db.config.starterdb.type=GENERAL_PURPOSE

  172. #——————————————————————————

  173. # Specify the Starter Database Global Database Name.

  174. #——————————————————————————

  175. oracle.install.db.config.starterdb.globalDBName=lihb_globaldbname

  176. #——————————————————————————

  177. # Specify the Starter Database SID.

  178. #——————————————————————————

  179. oracle.install.db.config.starterdb.SID=lihb_sid

  180. #——————————————————————————

  181. # Specify the Starter Database character set.

  182. #

  183. # It can be one of the following:

  184. # AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,

  185. # EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,

  186. # BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,

  187. # AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,

  188. # IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,

  189. # KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,

  190. # ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258

  191. #——————————————————————————

  192. oracle.install.db.config.starterdb.characterSet=AL32UTF8

  193. #——————————————————————————

  194. # This variable should be set to true if Automatic Memory Management

  195. # in Database is desired.

  196. # If Automatic Memory Management is not desired, and memory allocation

  197. # is to be done manually, then set it to false.

  198. #——————————————————————————

  199. oracle.install.db.config.starterdb.memoryOption=true

  200. #——————————————————————————

  201. # Specify the total memory allocation for the database. Value(in MB) should be

  202. # at least 256 MB, and should not exceed the total physical memory available

  203. # on the system.

  204. # Example: oracle.install.db.config.starterdb.memoryLimit=512

  205. #——————————————————————————

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

  207. #——————————————————————————

  208. # This variable controls whether to load Example Schemas onto

  209. # the starter database or not.

  210. #——————————————————————————

  211. oracle.install.db.config.starterdb.installExampleSchemas=false

  212. #——————————————————————————

  213. # This variable includes enabling audit settings, configuring password profiles

  214. # and revoking some grants to public. These settings are provided by default.

  215. # These settings may also be disabled.

  216. #——————————————————————————

  217. oracle.install.db.config.starterdb.enableSecuritySettings=true

  218. ###############################################################################

  219. #                                                                             #

  220. # Passwords can be supplied for the following four schemas in the      #

  221. # starter database:            #

  222. #   SYS                                                                       #

  223. #   SYSTEM                                                                    #

  224. #   SYSMAN (used by Enterprise Manager)                                       #

  225. #   DBSNMP (used by Enterprise Manager)                                       #

  226. #                                                                             #

  227. # Same password can be used for all accounts (not recommended)      #

  228. # or different passwords for each account can be provided (recommended)       #

  229. #                                                                             #

  230. ###############################################################################

  231. #——————————————————————————

  232. # This variable holds the password that is to be used for all schemas in the

  233. # starter database.

  234. #——————————————————————————-

  235. oracle.install.db.config.starterdb.password.ALL=mima_0001

  236. #——————————————————————————-

  237. # Specify the SYS password for the starter database.

  238. #——————————————————————————-

  239. oracle.install.db.config.starterdb.password.SYS=

  240. #——————————————————————————-

  241. # Specify the SYSTEM password for the starter database.

  242. #——————————————————————————-

  243. oracle.install.db.config.starterdb.password.SYSTEM=

  244. #——————————————————————————-

  245. # Specify the SYSMAN password for the starter database.

  246. #——————————————————————————-

  247. oracle.install.db.config.starterdb.password.SYSMAN=

  248. #——————————————————————————-

  249. # Specify the DBSNMP password for the starter database.

  250. #——————————————————————————-

  251. oracle.install.db.config.starterdb.password.DBSNMP=

  252. #——————————————————————————-

  253. # Specify the management option to be selected for the starter database.

  254. # It can be one of the following:

  255. #   – GRID_CONTROL

  256. #   – DB_CONTROL

  257. #——————————————————————————-

  258. oracle.install.db.config.starterdb.control=DB_CONTROL

  259. #——————————————————————————-

  260. # Specify the Management Service to use if Grid Control is selected to manage

  261. # the database.

  262. #——————————————————————————-

  263. oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=

  264. ###############################################################################

  265. #                                                                             #

  266. # SPECIFY BACKUP AND RECOVERY OPTIONS                                      #

  267. # ————————————                              #

  268. # Out-of-box backup and recovery options for the database can be mentioned    #

  269. # using the entries below.      #

  270. #                                                                             #

  271. ###############################################################################

  272. #——————————————————————————

  273. # This variable is to be set to false if automated backup is not required. Else

  274. # this can be set to true.

  275. #——————————————————————————

  276. oracle.install.db.config.starterdb.automatedBackup.enable=false

  277. #——————————————————————————

  278. # Regardless of the type of storage that is chosen for backup and recovery, if

  279. # automated backups are enabled, a job will be scheduled to run daily to backup

  280. # the database. This job will run as the operating system user that is

  281. # specified in this variable.

  282. #——————————————————————————

  283. oracle.install.db.config.starterdb.automatedBackup.osuid=

  284. #——————————————————————————-

  285. # Regardless of the type of storage that is chosen for backup and recovery, if

  286. # automated backups are enabled, a job will be scheduled to run daily to backup

  287. # the database. This job will run as the operating system user specified by the

  288. # above entry. The following entry stores the password for the above operating

  289. # system user.

  290. #——————————————————————————-

  291. oracle.install.db.config.starterdb.automatedBackup.ospwd=

  292. #——————————————————————————-

  293. # Specify the type of storage to use for the database.

  294. # It can be one of the following:

  295. #   – FILE_SYSTEM_STORAGE

  296. #   – ASM_STORAGE

  297. #——————————————————————————

  298. oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE

  299. #——————————————————————————-

  300. # Specify the database file location which is a directory for datafiles, control

  301. # files, redo logs.

  302. #

  303. # Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE

  304. #——————————————————————————-

  305. oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=lihb_datalocation

  306. #——————————————————————————-

  307. # Specify the backup and recovery location.

  308. #

  309. # Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE

  310. #——————————————————————————-

  311. oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=

  312. #——————————————————————————-

  313. # Specify the existing ASM disk groups to be used for storage.

  314. #

  315. # Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE

  316. #——————————————————————————-

  317. oracle.install.db.config.asm.diskGroup=

  318. #——————————————————————————-

  319. # Specify the password for ASMSNMP user of the ASM instance.

  320. #

  321. # Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE

  322. #——————————————————————————-

  323. oracle.install.db.config.asm.ASMSNMPPassword=

  324. #——————————————————————————

  325. # Specify the My Oracle Support Account Username.

  326. #

  327. #  Example   : MYORACLESUPPORT_USERNAME=abc@oracle.com

  328. #——————————————————————————

  329. MYORACLESUPPORT_USERNAME=

  330. #——————————————————————————

  331. # Specify the My Oracle Support Account Username password.

  332. #

  333. # Example    : MYORACLESUPPORT_PASSWORD=password

  334. #——————————————————————————

  335. MYORACLESUPPORT_PASSWORD=

  336. #——————————————————————————

  337. # Specify whether to enable the user to set the password for

  338. # My Oracle Support credentials. The value can be either true or false.

  339. # If left blank it will be assumed to be false.

  340. #

  341. # Example    : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true

  342. #——————————————————————————

  343. SECURITY_UPDATES_VIA_MYORACLESUPPORT=

  344. #——————————————————————————

  345. # Specify whether user doesn't want to configure Security Updates.

  346. # The value for this variable should be true if you don't want to configure

  347. # Security Updates, false otherwise.

  348. #

  349. # The value can be either true or false. If left blank it will be assumed

  350. # to be false.

  351. #

  352. # Example    : DECLINE_SECURITY_UPDATES=false

  353. #——————————————————————————

  354. DECLINE_SECURITY_UPDATES=true

  355. #——————————————————————————

  356. # Specify the Proxy server name. Length should be greater than zero.

  357. #

  358. # Example    : PROXY_HOST=proxy.domain.com

  359. #——————————————————————————

  360. PROXY_HOST=

  361. #——————————————————————————

  362. # Specify the proxy port number. Should be Numeric and at least 2 chars.

  363. #

  364. # Example    : PROXY_PORT=25

  365. #——————————————————————————

  366. PROXY_PORT=

  367. #——————————————————————————

  368. # Specify the proxy user name. Leave PROXY_USER and PROXY_PWD

  369. # blank if your proxy server requires no authentication.

  370. #

  371. # Example    : PROXY_USER=username

  372. #——————————————————————————

  373. PROXY_USER=

  374. #——————————————————————————

  375. # Specify the proxy password. Leave PROXY_USER and PROXY_PWD

  376. # blank if your proxy server requires no authentication.

  377. #

  378. # Example    : PROXY_PWD=password

  379. #——————————————————————————

  380. PROXY_PWD=

  381. #——————————————————————————

  382. # Specify the proxy realm. This value is used if auto-updates option is selected.

  383. #

  384. # Example    : PROXY_REALM=metalink

  385. #——————————————————————————

  386. PROXY_REALM=

  387. #——————————————————————————

  388. # Specify the Oracle Support Hub URL.

  389. #

  390. # Example    : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/

  391. #——————————————————————————

  392. COLLECTOR_SUPPORTHUB_URL=

  393. #——————————————————————————

  394. # Specify the auto-updates option. It can be one of the following:

  395. #   – MYORACLESUPPORT_DOWNLOAD

  396. #   – OFFLINE_UPDATES

  397. #   – SKIP_UPDATES

  398. #——————————————————————————

  399. oracle.installer.autoupdates.option=

  400. #——————————————————————————

  401. # In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where

  402. # the updates are to be downloaded.

  403. # In case OFFLINE_UPDATES option is chosen, specify the location where the updates

  404. # are present.

  405. #——————————————————————————

  406. oracle.installer.autoupdates.downloadUpdatesLoc=

  407. #——————————————————————————

  408. # Specify the My Oracle Support Account Username which has the patches download privileges

  409. # to be used for software updates.

  410. #  Example   : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com

  411. #——————————————————————————

  412. AUTOUPDATES_MYORACLESUPPORT_USERNAME=

  413. #——————————————————————————

  414. # Specify the My Oracle Support Account Username password which has the patches download privileges

  415. # to be used for software updates.

  416. #

  417. # Example    : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password

  418. #——————————————————————————

  419. AUTOUPDATES_MYORACLESUPPORT_PASSWORD=

如下是dbca.rsp的内容:

点击(此处)折叠或打开

  1. ##############################################################################

  2. ##                                                                          ##

  3. ##                            DBCA response file                            ##

  4. ##                            ——————                            ##

  5. ## Copyright   1998, 2013, Oracle Corporation. All Rights Reserved.         ##

  6. ##                                                                          ##

  7. ## Specify values for the variables listed below to customize Oracle        ##

  8. ## Database Configuration installation.                                     ##

  9. ##                                                                          ##

  10. ## Each variable is associated with a comment. The comment identifies the   ##

  11. ## variable type.                                                           ##

  12. ##                                                                          ##

  13. ## Please specify the values in the following format :                      ##

  14. ##          Type       :  Example                                           ##

  15. ##          String     :  ""                                         ##

  16. ##          Boolean    :  True or False                                     ##

  17. ##          Number     :                                     ##

  18. ##          StringList :  {"",""}                           ##

  19. ##                                                                          ##

  20. ## Examples :                                                               ##

  21. ##     1. dbca -progress_only -responseFile                  ##

  22. ##        Display a progress bar depicting progress of database creation    ##

  23. ##        process.                                                          ##

  24. ##                                                                          ##

  25. ##     2. dbca -silent -responseFile                         ##

  26. ##        Creates database silently. No user interface is displayed.        ##

  27. ##                                                                          ##

  28. ##     3. dbca -silent -createDatabase -cloneTemplate                       ##

  29. ## -responseFile                       ##

  30. ##        Creates database silently with clone template. The template in    ##

  31. ##  responsefile is a clone template.            ##

  32. ##                                                                          ##

  33. ##     4. dbca -silent -deleteDatabase -responseFile         ##

  34. ##        Deletes database silently.                                        ##

  35. ##############################################################################

  36. #—————————————————————————–

  37. # GENERAL section is required for all types of database creations.

  38. #—————————————————————————–

  39. [GENERAL]

  40. #—————————————————————————–

  41. # Name          : RESPONSEFILE_VERSION

  42. # Datatype      : String

  43. # Description   : Version of the database to create

  44. # Valid values  : "11.1.0"

  45. # Default value : None

  46. # Mandatory     : Yes

  47. #—————————————————————————–

  48. RESPONSEFILE_VERSION = "11.2.0"

  49. #—————————————————————————–

  50. # Name          : OPERATION_TYPE

  51. # Datatype      : String

  52. # Description   : Type of operation

  53. # Valid values  : "createDatabase" / "createTemplateFromDB" / "createCloneTemplate" / "deleteDatabase" / "configureDatabase" / "addInstance" (RAC-only) / "deleteInstance" (RAC-only)

  54. # Default value : None

  55. # Mandatory     : Yes

  56. #—————————————————————————–

  57. OPERATION_TYPE = "createDatabase"

  58. #———————–*** End of GENERAL section ***————————

  59. #—————————————————————————–

  60. # CREATEDATABASE section is used when OPERATION_TYPE is defined as "createDatabase".

  61. #—————————————————————————–

  62. [CREATEDATABASE]

  63. #—————————————————————————–

  64. # Name          : GDBNAME

  65. # Datatype      : String

  66. # Description   : Global database name of the database

  67. # Valid values  : . – when database domain isn't NULL

  68. #                              – when database domain is NULL

  69. # Default value : None

  70. # Mandatory     : Yes

  71. #—————————————————————————–

  72. GDBNAME = "lihb_gdbname"

  73. #—————————————————————————–

  74. # Name          : RACONENODE

  75. # Datatype      : Boolean

  76. # Description   : Set to true for RAC One Node database

  77. # Valid values  : TRUE/FALSE

  78. # Default value : FALSE

  79. # Mandatory     : No

  80. #—————————————————————————–

  81. #RACONENODE  = "false"

  82. #—————————————————————————–

  83. # Name          : RACONENODESERVICENAME

  84. # Datatype      : String

  85. # Description   : Service is required by application to connect to RAC One

  86. #  Node Database

  87. # Valid values  : Service Name

  88. # Default value : None

  89. # Mandatory     : No [required in case RACONENODE flag is set to true]

  90. #—————————————————————————–

  91. #RACONENODESERVICENAME =

  92. #—————————————————————————–

  93. # Name          : POLICYMANAGED

  94. # Datatype      : Boolean

  95. # Description   : Set to true if Database is policy managed and

  96. #  set to false if  Database is admin managed

  97. # Valid values  : TRUE/FALSE

  98. # Default value : FALSE

  99. # Mandatory     : No

  100. #—————————————————————————–

  101. #POLICYMANAGED = "false"

  102. #—————————————————————————–

  103. # Name          : CREATESERVERPOOL

  104. # Datatype      : Boolean

  105. # Description   : Set to true if new server pool need to be created for database

  106. #  if this option is specified then the newly created database

  107. #  will use this newly created serverpool.

  108. #  Multiple serverpoolname can not be specified for database

  109. # Valid values  : TRUE/FALSE

  110. # Default value : FALSE

  111. # Mandatory     : No

  112. #—————————————————————————–

  113. #CREATESERVERPOOL = "false"

  114. #—————————————————————————–

  115. # Name          : FORCE

  116. # Datatype      : Boolean

  117. # Description   : Set to true if new server pool need to be created by force

  118. #  if this option is specified then the newly created serverpool

  119. #  will be assigned server even if no free servers are available.

  120. #  This may affect already running database.

  121. #  This flag can be specified for Admin managed as well as policy managed db.

  122. # Valid values  : TRUE/FALSE

  123. # Default value : FALSE

  124. # Mandatory     : No

  125. #—————————————————————————–

  126. #FORCE = "false"

  127. #—————————————————————————–

  128. # Name          : SERVERPOOLNAME

  129. # Datatype      : String

  130. # Description   : Only one serverpool name need to be specified

  131. #   if Create Server Pool option is specified.

  132. #   Comma-separated list of Serverpool names if db need to use

  133. #   multiple Server pool

  134. # Valid values  : ServerPool name

  135. # Default value : None

  136. # Mandatory     : No [required in case of RAC service centric database]

  137. #—————————————————————————–

  138. #SERVERPOOLNAME =

  139. #—————————————————————————–

  140. # Name          : CARDINALITY

  141. # Datatype      : Number

  142. # Description   : Specify Cardinality for create server pool operation

  143. # Valid values  : any positive Integer value

  144. # Default value : Number of qualified nodes on cluster

  145. # Mandatory     : No [Required when a new serverpool need to be created]

  146. #—————————————————————————–

  147. #CARDINALITY =

  148. #—————————————————————————–

  149. # Name          : SID

  150. # Datatype      : String

  151. # Description   : System identifier (SID) of the database

  152. # Valid values  : Check Oracle11g Administrator's Guide

  153. # Default value :  specified in GDBNAME

  154. # Mandatory     : No

  155. #—————————————————————————–

  156. SID = "lihb_sid"

  157. #—————————————————————————–

  158. # Name          : NODELIST

  159. # Datatype      : String

  160. # Description   : Comma-separated list of cluster nodes

  161. # Valid values  : Cluster node names

  162. # Default value : None

  163. # Mandatory     : No (Yes for RAC database-centric database )

  164. #—————————————————————————–

  165. #NODELIST=

  166. #—————————————————————————–

  167. # Name          : TEMPLATENAME

  168. # Datatype      : String

  169. # Description   : Name of the template

  170. # Valid values  : Template file name

  171. # Default value : None

  172. # Mandatory     : Yes

  173. #—————————————————————————–

  174. TEMPLATENAME = "General_Purpose.dbc"

  175. #—————————————————————————–

  176. # Name          : OBFUSCATEDPASSWORDS

  177. # Datatype      : Boolean

  178. # Description   : Set to true if passwords are encrypted

  179. # Valid values  : TRUE/FALSE

  180. # Default value : FALSE

  181. # Mandatory     : No

  182. #—————————————————————————–

  183. #OBFUSCATEDPASSWORDS = FALSE

  184. #—————————————————————————–

  185. # Name          : SYSPASSWORD

  186. # Datatype      : String

  187. # Description   : Password for SYS user

  188. # Valid values  : Check Oracle11g Administrator's Guide

  189. # Default value : None

  190. # Mandatory     : Yes

  191. #—————————————————————————–

  192. SYSPASSWORD = "mima_0001"

  193. #—————————————————————————–

  194. # Name          : SYSTEMPASSWORD

  195. # Datatype      : String

  196. # Description   : Password for SYSTEM user

  197. # Valid values  : Check Oracle11g Administrator's Guide

  198. # Default value : None

  199. # Mandatory     : Yes

  200. #—————————————————————————–

  201. SYSTEMPASSWORD = "mima_0001"

  202. #—————————————————————————–

  203. # Name          : EMCONFIGURATION

  204. # Datatype      : String

  205. # Description   : Enterprise Manager Configuration Type

  206. # Valid values  : CENTRAL|LOCAL|ALL|NONE

  207. # Default value : NONE

  208. # Mandatory     : No

  209. #—————————————————————————–

  210. #EMCONFIGURATION = "NONE"

  211. #—————————————————————————–

  212. # Name          : DISABLESECURITYCONFIGURATION

  213. # Datatype      : String

  214. # Description   : Database Security Settings

  215. # Valid values  : ALL|NONE|AUDIT|PASSWORD_PROFILE

  216. # Default value : NONE

  217. # Mandatory     : No

  218. #—————————————————————————–

  219. #DISABLESECURITYCONFIGURATION = "NONE"

  220. #—————————————————————————–

  221. # Name          : SYSMANPASSWORD

  222. # Datatype      : String

  223. # Description   : Password for SYSMAN user

  224. # Valid values  : Check Oracle11g Administrator's Guide

  225. # Default value : None

  226. # Mandatory     : Yes, if LOCAL specified for EMCONFIGURATION

  227. #—————————————————————————–

  228. #SYSMANPASSWORD = "password"

  229. #—————————————————————————–

  230. # Name          : DBSNMPPASSWORD

  231. # Datatype      : String

  232. # Description   : Password for DBSNMP user

  233. # Valid values  : Check Oracle11g Administrator's Guide

  234. # Default value : None

  235. # Mandatory     : Yes, if EMCONFIGURATION is specified

  236. #—————————————————————————–

  237. #DBSNMPPASSWORD = "password"

  238. #—————————————————————————–

  239. # Name          : CENTRALAGENT

  240. # Datatype      : String

  241. # Description   : Grid Control Central Agent Oracle Home

  242. # Default value : None

  243. # Mandatory     : Yes, if CENTRAL is specified for EMCONFIGURATION

  244. #—————————————————————————–

  245. #CENTRALAGENT =

  246. #—————————————————————————–

  247. # Name          : HOSTUSERNAME

  248. # Datatype      : String

  249. # Description   : Host user name for EM backup job

  250. # Default value : None

  251. # Mandatory     : Yes, if ALL is specified for EMCONFIGURATION

  252. #—————————————————————————–

  253. #HOSTUSERNAME =

  254. #—————————————————————————–

  255. # Name          : HOSTUSERPASSWORD

  256. # Datatype      : String

  257. # Description   : Host user password for EM backup job

  258. # Default value : None

  259. # Mandatory     : Yes, if ALL is specified for EMCONFIGURATION

  260. #—————————————————————————–

  261. #HOSTUSERPASSWORD=

  262. #—————————————————————————–

  263. # Name          : BACKUPSCHEDULE

  264. # Datatype      : String

  265. # Description   : Daily backup schedule in the form of hh:mm

  266. # Default value : 2:00

  267. # Mandatory     : Yes, if ALL is specified for EMCONFIGURATION

  268. #—————————————————————————–

  269. #BACKUPSCHEDULE=

  270. #—————————————————————————–

  271. # Name          : DVOWNERNAME

  272. # Datatype      : String

  273. # Description   : DataVault Owner

  274. # Valid values  : Check Oracle11g Administrator's Guide

  275. # Default value : None

  276. # Mandatory     : Yes, if DataVault option is chosen

  277. #—————————————————————————–

  278. #DVOWNERNAME = ""

  279. #—————————————————————————–

  280. # Name          : DVOWNERPASSWORD

  281. # Datatype      : String

  282. # Description   : Password for DataVault Owner

  283. # Valid values  : Check Oracle11g Administrator's Guide

  284. # Default value : None

  285. # Mandatory     : Yes, if DataVault option is chosen

  286. #—————————————————————————–

  287. #DVOWNERPASSWORD = ""

  288. #—————————————————————————–

  289. # Name          : DVACCOUNTMANAGERNAME

  290. # Datatype      : String

  291. # Description   : DataVault Account Manager

  292. # Valid values  : Check Oracle11g Administrator's Guide

  293. # Default value : None

  294. # Mandatory     : No

  295. #—————————————————————————–

  296. #DVACCOUNTMANAGERNAME = ""

  297. #—————————————————————————–

  298. # Name          : DVACCOUNTMANAGERPASSWORD

  299. # Datatype      : String

  300. # Description   : Password for  DataVault Account Manager

  301. # Valid values  : Check Oracle11g Administrator's Guide

  302. # Default value : None

  303. # Mandatory     : No

  304. #—————————————————————————–

  305. #DVACCOUNTMANAGERPASSWORD = ""

  306. #—————————————————————————–

  307. # Name          : DATAFILEJARLOCATION

  308. # Datatype      : String

  309. # Description   : Location of the data file jar

  310. # Valid values  : Directory containing compressed datafile jar

  311. # Default value : None

  312. # Mandatory     : No

  313. #—————————————————————————–

  314. #DATAFILEJARLOCATION =

  315. #—————————————————————————–

  316. # Name          : DATAFILEDESTINATION

  317. # Datatype      : String

  318. # Description   : Location of the data file's

  319. # Valid values  : Directory for all the database files

  320. # Default value : $ORACLE_BASE/oradata

  321. # Mandatory     : No

  322. #—————————————————————————–

  323. DATAFILEDESTINATION = lihb_datafiledestination

  324. #—————————————————————————–

  325. # Name          : RECOVERYAREADESTINATION

  326. # Datatype      : String

  327. # Description   : Location of the data file's

  328. # Valid values  : Recovery Area location

  329. # Default value : $ORACLE_BASE/flash_recovery_area

  330. # Mandatory     : No

  331. #—————————————————————————–

  332. RECOVERYAREADESTINATION= lihb_recoveryareadestination

  333. #—————————————————————————–

  334. # Name          : STORAGETYPE

  335. # Datatype      : String

  336. # Description   : Specifies the storage on which the database is to be created

  337. # Valid values  : FS (CFS for RAC), ASM

  338. # Default value : FS

  339. # Mandatory     : No

  340. #—————————————————————————–

  341. STORAGETYPE=FS

  342. #—————————————————————————–

  343. # Name          : DISKGROUPNAME

  344. # Datatype      : String

  345. # Description   : Specifies the disk group name for the storage

  346. # Default value : DATA

  347. # Mandatory     : No

  348. #—————————————————————————–

  349. #DISKGROUPNAME=DATA

  350. #—————————————————————————–

  351. # Name          : ASMSNMP_PASSWORD

  352. # Datatype      : String

  353. # Description   : Password for ASM Monitoring

  354. # Default value : None

  355. # Mandatory     : No

  356. #—————————————————————————–

  357. #ASMSNMP_PASSWORD=""

  358. #—————————————————————————–

  359. # Name          : RECOVERYGROUPNAME

  360. # Datatype      : String

  361. # Description   : Specifies the disk group name for the recovery area

  362. # Default value : RECOVERY

  363. # Mandatory     : No

  364. #—————————————————————————–

  365. #RECOVERYGROUPNAME=RECOVERY

  366. #—————————————————————————–

  367. # Name          : CHARACTERSET

  368. # Datatype      : String

  369. # Description   : Character set of the database

  370. # Valid values  : Check Oracle11g National Language Support Guide

  371. # Default value : "US7ASCII"

  372. # Mandatory     : NO

  373. #—————————————————————————–

  374. CHARACTERSET = "lihb_characterset"

  375. #—————————————————————————–

  376. # Name          : NATIONALCHARACTERSET

  377. # Datatype      : String

  378. # Description   : National Character set of the database

  379. # Valid values  : "UTF8" or "AL16UTF16". For details, check Oracle11g National Language Support Guide

  380. # Default value : "AL16UTF16"

  381. # Mandatory     : No

  382. #—————————————————————————–

  383. NATIONALCHARACTERSET= "AL16UTF16"

  384. #—————————————————————————–

  385. # Name          : REGISTERWITHDIRSERVICE

  386. # Datatype      : Boolean

  387. # Description   : Specifies whether to register with Directory Service.

  388. # Valid values  : TRUE / FALSE

  389. # Default value : FALSE

  390. # Mandatory     : No

  391. #—————————————————————————–

  392. #REGISTERWITHDIRSERVICE= TRUE

  393. #—————————————————————————–

  394. # Name          : DIRSERVICEUSERNAME

  395. # Datatype      : String

  396. # Description   : Specifies the name of the directory service user

  397. # Mandatory     : YES, if the value of registerWithDirService is TRUE

  398. #—————————————————————————–

  399. #DIRSERVICEUSERNAME= "name"

  400. #—————————————————————————–

  401. # Name          : DIRSERVICEPASSWORD

  402. # Datatype      : String

  403. # Description   : The password of the directory service user.

  404. #  You can also specify the password at the command prompt instead of here.

  405. # Mandatory     : YES, if the value of registerWithDirService is TRUE

  406. #—————————————————————————–

  407. #DIRSERVICEPASSWORD= "password"

  408. #—————————————————————————–

  409. # Name          : WALLETPASSWORD

  410. # Datatype      : String

  411. # Description   : The password for wallet to created or modified.

  412. #  You can also specify the password at the command prompt instead of here.

  413. # Mandatory     : YES, if the value of registerWithDirService is TRUE

  414. #—————————————————————————–

  415. #WALLETPASSWORD= "password"

  416. #—————————————————————————–

  417. # Name          : LISTENERS

  418. # Datatype      : String

  419. # Description   : Specifies list of listeners to register the database with.

  420. #  By default the database is configured for all the listeners specified in the

  421. #  $ORACLE_HOME/network/admin/listener.ora

  422. # Valid values  : The list should be space separated names like "listener1 listener2".

  423. # Mandatory     : NO

  424. #—————————————————————————–

  425. LISTENERS = "LISTENER"

  426. #—————————————————————————–

  427. # Name          : VARIABLESFILE

  428. # Datatype      : String

  429. # Description   : Location of the file containing variable value pair

  430. # Valid values  : A valid file-system file. The variable value pair format in this file

  431. #  is =. Each pair should be in a new line.

  432. # Default value : None

  433. # Mandatory     : NO

  434. #—————————————————————————–

  435. #VARIABLESFILE =

  436. #—————————————————————————–

  437. # Name          : VARIABLES

  438. # Datatype      : String

  439. # Description   : comma separated list of name=value pairs. Overrides variables defined in variablefile and templates

  440. # Default value : None

  441. # Mandatory     : NO

  442. #—————————————————————————–

  443. #VARIABLES =

  444. #—————————————————————————–

  445. # Name          : INITPARAMS

  446. # Datatype      : String

  447. # Description   : comma separated list of name=value pairs. Overrides initialization parameters defined in templates

  448. # Default value : None

  449. # Mandatory     : NO

  450. #—————————————————————————–

  451. #INITPARAMS =

  452. #—————————————————————————–

  453. # Name          : SAMPLESCHEMA

  454. # Datatype      : Boolean

  455. # Description   : Specifies whether or not to add the Sample Schemas to your database

  456. # Valid values  : TRUE / FALSE

  457. # Default value : FASLE

  458. # Mandatory     : No

  459. #—————————————————————————–

  460. #SAMPLESCHEMA=TRUE

  461. #—————————————————————————–

  462. # Name          : MEMORYPERCENTAGE

  463. # Datatype      : String

  464. # Description   : percentage of physical memory for Oracle

  465. # Default value : None

  466. # Mandatory     : NO

  467. #—————————————————————————–

  468. #MEMORYPERCENTAGE = "40"

  469. #—————————————————————————–

  470. # Name          : DATABASETYPE

  471. # Datatype      : String

  472. # Description   : used for memory distribution when MEMORYPERCENTAGE specified

  473. # Valid values  : MULTIPURPOSE|DATA_WAREHOUSING|OLTP

  474. # Default value : MULTIPURPOSE

  475. # Mandatory     : NO

  476. #—————————————————————————–

  477. #DATABASETYPE = "MULTIPURPOSE"

  478. #—————————————————————————–

  479. # Name          : AUTOMATICMEMORYMANAGEMENT

  480. # Datatype      : Boolean

  481. # Description   : flag to indicate Automatic Memory Management is used

  482. # Valid values  : TRUE/FALSE

  483. # Default value : TRUE

  484. # Mandatory     : NO

  485. #—————————————————————————–

  486. #AUTOMATICMEMORYMANAGEMENT = "TRUE"

  487. #—————————————————————————–

  488. # Name          : TOTALMEMORY

  489. # Datatype      : String

  490. # Description   : total memory in MB to allocate to Oracle

  491. # Valid values  :

  492. # Default value :

  493. # Mandatory     : NO

  494. #—————————————————————————–

  495. TOTALMEMORY = "lihb_totalmemory"

  496. #———————–*** End of CREATEDATABASE section ***————————

  497. #—————————————————————————–

  498. # createTemplateFromDB section is used when OPERATION_TYPE is defined as "createTemplateFromDB".

  499. #—————————————————————————–

  500. [createTemplateFromDB]

  501. #—————————————————————————–

  502. # Name          : SOURCEDB

  503. # Datatype      : String

  504. # Description   : The source database from which to create the template

  505. # Valid values  : The format is ::

  506. # Default value : none

  507. # Mandatory     : YES

  508. #—————————————————————————–

  509. SOURCEDB = "myhost:1521:orcl"

  510. #—————————————————————————–

  511. # Name          : SYSDBAUSERNAME

  512. # Datatype      : String

  513. # Description   : A user with DBA role.

  514. # Default value : none

  515. # Mandatory     : YES

  516. #—————————————————————————–

  517. SYSDBAUSERNAME = "system"

  518. #—————————————————————————–

  519. # Name          : SYSDBAPASSWORD

  520. # Datatype      : String

  521. # Description   : The password of the DBA user.

  522. #  You can also specify the password at the command prompt instead of here.

  523. # Default value : none

  524. # Mandatory     : YES

  525. #—————————————————————————–

  526. #SYSDBAPASSWORD = "password"

  527. #—————————————————————————–

  528. # Name          : TEMPLATENAME

  529. # Datatype      : String

  530. # Description   : Name for the new template.

  531. # Default value : None

  532. # Mandatory     : Yes

  533. #—————————————————————————–

  534. TEMPLATENAME = "My Copy TEMPLATE"

  535. #———————–*** End of createTemplateFromDB section ***————————

  536. #—————————————————————————–

  537. # createCloneTemplate section is used when OPERATION_TYPE is defined as "createCloneTemplate".

  538. #—————————————————————————–

  539. [createCloneTemplate]

  540. #—————————————————————————–

  541. # Name          : SOURCEDB

  542. # Datatype      : String

  543. # Description   : The source database is the SID from which to create the template.

  544. #  This database must be local and on the same ORACLE_HOME.

  545. # Default value : none

  546. # Mandatory     : YES

  547. #—————————————————————————–

  548. SOURCEDB = "orcl"

  549. #—————————————————————————–

  550. # Name          : SYSDBAUSERNAME

  551. # Datatype      : String

  552. # Description   : A user with DBA role.

  553. # Default value : none

  554. # Mandatory     : YES, if no OS authentication

  555. #—————————————————————————–

  556. #SYSDBAUSERNAME = "sys"

  557. #—————————————————————————–

  558. # Name          : SYSDBAPASSWORD

  559. # Datatype      : String

  560. # Description   : The password of the DBA user.

  561. #  You can also specify the password at the command prompt instead of here.

  562. # Default value : none

  563. # Mandatory     : YES

  564. #—————————————————————————–

  565. #SYSDBAPASSWORD = "password"

  566. #—————————————————————————–

  567. # Name          : TEMPLATENAME

  568. # Datatype      : String

  569. # Description   : Name for the new template.

  570. # Default value : None

  571. # Mandatory     : Yes

  572. #—————————————————————————–

  573. TEMPLATENAME = "My Clone TEMPLATE"

  574. #—————————————————————————–

  575. # Name          : DATAFILEJARLOCATION

  576. # Datatype      : String

  577. # Description   : Location of the data file jar

  578. # Valid values  : Directory where the new compressed datafile jar will be placed

  579. # Default value : $ORACLE_HOME/assistants/dbca/templates

  580. # Mandatory     : NO

  581. #—————————————————————————–

  582. #DATAFILEJARLOCATION =

  583. #———————–*** End of createCloneTemplate section ***————————

  584. #—————————————————————————–

  585. # DELETEDATABASE section is used when DELETE_TYPE is defined as "deleteDatabase".

  586. #—————————————————————————–

  587. [DELETEDATABASE]

  588. #—————————————————————————–

  589. # Name          : SOURCEDB

  590. # Datatype      : String

  591. # Description   : The source database is the SID

  592. #  This database must be local and on the same ORACLE_HOME.

  593. # Default value : none

  594. # Mandatory     : YES

  595. #—————————————————————————–

  596. SOURCEDB = "orcl"

  597. #—————————————————————————–

  598. # Name          : SYSDBAUSERNAME

  599. # Datatype      : String

  600. # Description   : A user with DBA role.

  601. # Default value : none

  602. # Mandatory     : YES, if no OS authentication

  603. #—————————————————————————–

  604. #SYSDBAUSERNAME = "sys"

  605. #—————————————————————————–

  606. # Name          : SYSDBAPASSWORD

  607. # Datatype      : String

  608. # Description   : The password of the DBA user.

  609. #  You can also specify the password at the command prompt instead of here.

  610. # Default value : none

  611. # Mandatory     : YES, if no OS authentication

  612. #—————————————————————————–

  613. #SYSDBAPASSWORD = "password"

  614. #———————–*** End of deleteDatabase section ***————————

  615. #—————————————————————————–

  616. # GENERATESCRIPTS section

  617. #—————————————————————————–

  618. [generateScripts]

  619. #—————————————————————————–

  620. # Name          : TEMPLATENAME

  621. # Datatype      : String

  622. # Description   : Name of the template

  623. # Valid values  : Template name as seen in DBCA

  624. # Default value : None

  625. # Mandatory     : Yes

  626. #—————————————————————————–

  627. TEMPLATENAME = "New Database"

  628. #—————————————————————————–

  629. # Name          : GDBNAME

  630. # Datatype      : String

  631. # Description   : Global database name of the database

  632. # Valid values  : . – when database domain isn't NULL

  633. #                              – when database domain is NULL

  634. # Default value : None

  635. # Mandatory     : Yes

  636. #—————————————————————————–

  637. GDBNAME = "lihb_gdbname"

  638. #—————————————————————————–

  639. # Name          : SCRIPTDESTINATION

  640. # Datatype      : String

  641. # Description   : Location of the scripts

  642. # Valid values  : Directory for all the scripts

  643. # Default value : None

  644. # Mandatory     : No

  645. #—————————————————————————–

  646. #SCRIPTDESTINATION =

  647. #———————–*** End of deleteDatabase section ***————————

  648. #—————————————————————————–

  649. # CONFIGUREDATABASE section is used when OPERATION_TYPE is defined as "configureDatabase".

  650. #—————————————————————————–

  651. [CONFIGUREDATABASE]

  652. #—————————————————————————–

  653. # Name          : SOURCEDB

  654. # Datatype      : String

  655. # Description   : The source database is the SID

  656. #  This database must be local and on the same ORACLE_HOME.

  657. # Default value : none

  658. # Mandatory     : YES

  659. #—————————————————————————–

  660. #SOURCEDB = "orcl"

  661. #—————————————————————————–

  662. # Name          : SYSDBAUSERNAME

  663. # Datatype      : String

  664. # Description   : A user with DBA role.

  665. # Default value : none

  666. # Mandatory     : YES, if no OS authentication

  667. #—————————————————————————–

  668. #SYSDBAUSERNAME = "sys"

  669. #—————————————————————————–

  670. # Name          : SYSDBAPASSWORD

  671. # Datatype      : String

  672. # Description   : The password of the DBA user.

  673. #  You can also specify the password at the command prompt instead of here.

  674. # Default value : none

  675. # Mandatory     : YES, if no OS authentication

  676. #—————————————————————————–

  677. #SYSDBAPASSWORD =

  678. #—————————————————————————–

  679. # Name          : REGISTERWITHDIRSERVICE

  680. # Datatype      : Boolean

  681. # Description   : Specifies whether to register with Directory Service.

  682. # Valid values  : TRUE / FALSE

  683. # Default value : FALSE

  684. # Mandatory     : No

  685. #—————————————————————————–

  686. #REGISTERWITHDIRSERVICE= TRUE

  687. #—————————————————————————–

  688. # Name          : UNREGISTERWITHDIRSERVICE

  689. # Datatype      : Boolean

  690. # Description   : Specifies whether to unregister with Directory Service.

  691. # Valid values  : TRUE / FALSE

  692. # Default value : FALSE

  693. # Mandatory     : No

  694. #—————————————————————————–

  695. #UNREGISTERWITHDIRSERVICE= TRUE

  696. #—————————————————————————–

  697. # Name          : REGENERATEDBPASSWORD

  698. # Datatype      : Boolean

  699. # Description   : Specifies whether regenerate database password in OID/Wallet

  700. # Valid values  : TRUE / FALSE

  701. # Default value : FALSE

  702. # Mandatory     : No

  703. #—————————————————————————–

  704. #REGENERATEDBPASSWORD= TRUE

  705. #—————————————————————————–

  706. # Name          : DIRSERVICEUSERNAME

  707. # Datatype      : String

  708. # Description   : Specifies the name of the directory service user

  709. # Mandatory     : YES, if the any of the reg/unreg/regenPasswd options specified

  710. #—————————————————————————–

  711. #DIRSERVICEUSERNAME= "name"

  712. #—————————————————————————–

  713. # Name          : DIRSERVICEPASSWORD

  714. # Datatype      : String

  715. # Description   : The password of the directory service user.

  716. #  You can also specify the password at the command prompt instead of here.

  717. # Mandatory     : YES, if the any of the reg/unreg/regenPasswd options specified

  718. #—————————————————————————–

  719. #DIRSERVICEPASSWORD= "password"

  720. #—————————————————————————–

  721. # Name          : WALLETPASSWORD

  722. # Datatype      : String

  723. # Description   : The password for wallet to created or modified.

  724. #  You can also specify the password at the command prompt instead of here.

  725. # Mandatory     : YES, if the any of the reg/unreg/regenPasswd options specified

  726. #—————————————————————————–

  727. #WALLETPASSWORD= "password"

  728. #—————————————————————————–

  729. # Name          : DISABLESECURITYCONFIGURATION

  730. # Datatype      : String

  731. # Description   : Database Security Settings

  732. # Valid values  : ALL|NONE|AUDIT|PASSWORD_PROFILE

  733. # Default value : NONE

  734. # Mandatory     : No

  735. #—————————————————————————–

  736. #DISABLESECURITYCONFIGURATION = "NONE"

  737. #—————————————————————————–

  738. # Name          : ENABLESECURITYCONFIGURATION

  739. # Datatype      : String

  740. # Description   : Database Security Settings

  741. # Valid values  : true|false

  742. # Default value : true

  743. # Mandatory     : No

  744. #—————————————————————————–

  745. #ENABLESECURITYCONFIGURATION = "true"

  746. #—————————————————————————–

  747. # Name          : EMCONFIGURATION

  748. # Datatype      : String

  749. # Description   : Enterprise Manager Configuration Type

  750. # Valid values  : CENTRAL|LOCAL|ALL|NONE

  751. # Default value : NONE

  752. # Mandatory     : No

  753. #—————————————————————————–

  754. #EMCONFIGURATION = "NONE"

  755. #—————————————————————————–

  756. # Name          : SYSMANPASSWORD

  757. # Datatype      : String

  758. # Description   : Password for SYSMAN user

  759. # Valid values  : Check Oracle11g Administrator's Guide

  760. # Default value : None

  761. # Mandatory     : Yes, if LOCAL specified for EMCONFIGURATION

  762. #—————————————————————————–

  763. #SYSMANPASSWORD = "password"

  764. #—————————————————————————–

  765. # Name          : DBSNMPPASSWORD

  766. # Datatype      : String

  767. # Description   : Password for DBSNMP user

  768. # Valid values  : Check Oracle11g Administrator's Guide

  769. # Default value : None

  770. # Mandatory     : Yes, if EMCONFIGURATION is specified

  771. #—————————————————————————–

  772. #DBSNMPPASSWORD = "password"

  773. #—————————————————————————–

  774. # Name          : CENTRALAGENT

  775. # Datatype      : String

  776. # Description   : Grid Control Central Agent Oracle Home

  777. # Default value : None

  778. # Mandatory     : Yes, if CENTRAL is specified for EMCONFIGURATION

  779. #—————————————————————————–

  780. #CENTRALAGENT =

  781. #—————————————————————————–

  782. # Name          : HOSTUSERNAME

  783. # Datatype      : String

  784. # Description   : Host user name for EM backup job

  785. # Default value : None

  786. # Mandatory     : Yes, if ALL is specified for EMCONFIGURATION

  787. #—————————————————————————–

  788. #HOSTUSERNAME =

  789. #—————————————————————————–

  790. # Name          : HOSTUSERPASSWORD

  791. # Datatype      : String

  792. # Description   : Host user password for EM backup job

  793. # Default value : None

  794. # Mandatory     : Yes, if ALL is specified for EMCONFIGURATION

  795. #—————————————————————————–

  796. #HOSTUSERPASSWORD=

  797. #—————————————————————————–

  798. # Name          : BACKUPSCHEDULE

  799. # Datatype      : String

  800. # Description   : Daily backup schedule in the form of hh:mm

  801. # Default value : 2:00

  802. # Mandatory     : Yes, if ALL is specified for EMCONFIGURATION

  803. #—————————————————————————–

  804. #BACKUPSCHEDULE=

  805. #———————–*** End of CONFIGUREDATABASE section ***————————

  806. #—————————————————————————–

  807. # ADDINSTANCE section is used when OPERATION_TYPE is defined as "addInstance".

  808. #—————————————————————————–

  809. [ADDINSTANCE]

  810. #—————————————————————————–

  811. # Name          : DB_UNIQUE_NAME

  812. # Datatype      : String

  813. # Description   : DB Unique Name of the RAC database

  814. # Valid values  :

  815. # Default value : None

  816. # Mandatory     : Yes

  817. #—————————————————————————–

  818. DB_UNIQUE_NAME = "orcl11g.us.oracle.com"

  819. #—————————————————————————–

  820. # Name          : INSTANCENAME

  821. # Datatype      : String

  822. # Description   : RAC instance name to be added

  823. # Valid values  : Check Oracle11g Administrator's Guide

  824. # Default value : +

  825. # Mandatory     : No

  826. #—————————————————————————–

  827. #INSTANCENAME = "orcl1"

  828. #—————————————————————————–

  829. # Name          : NODELIST

  830. # Datatype      : String

  831. # Description   : Node on which to add new instance

  832. #                 (in 10gR2, instance addition is supported on 1 node at a time)

  833. # Valid values  : Cluster node name

  834. # Default value : None

  835. # Mandatory     : Yes

  836. #—————————————————————————–

  837. NODELIST=

  838. #—————————————————————————–

  839. # Name          : OBFUSCATEDPASSWORDS

  840. # Datatype      : Boolean

  841. # Description   : Set to true if passwords are encrypted

  842. # Valid values  : TRUE/FALSE

  843. # Default value : FALSE

  844. # Mandatory     : No

  845. #—————————————————————————–

  846. #OBFUSCATEDPASSWORDS = FALSE

  847. #—————————————————————————–

  848. # Name          : SYSDBAUSERNAME

  849. # Datatype      : String

  850. # Description   : A user with DBA role.

  851. # Default value : none

  852. # Mandatory     : YES

  853. #—————————————————————————–

  854. SYSDBAUSERNAME = "sys"

  855. #—————————————————————————–

  856. # Name          : SYSDBAPASSWORD

  857. # Datatype      : String

  858. # Description   : The password of the DBA user.

  859. # Default value : none

  860. # Mandatory     : YES

  861. #—————————————————————————–

  862. #SYSDBAPASSWORD = "password"

  863. #———————–*** End of ADDINSTANCE section ***————————

  864. #—————————————————————————–

  865. # DELETEINSTANCE section is used when OPERATION_TYPE is defined as "deleteInstance".

  866. #—————————————————————————–

  867. [DELETEINSTANCE]

  868. #—————————————————————————–

  869. # Name          : DB_UNIQUE_NAME

  870. # Datatype      : String

  871. # Description   : DB Unique Name of the RAC database

  872. # Valid values  :

  873. # Default value : None

  874. # Mandatory     : Yes

  875. #—————————————————————————–

  876. DB_UNIQUE_NAME = "orcl11g.us.oracle.com"

  877. #—————————————————————————–

  878. # Name          : INSTANCENAME

  879. # Datatype      : String

  880. # Description   : RAC instance name to be deleted

  881. # Valid values  : Check Oracle11g Administrator's Guide

  882. # Default value : None

  883. # Mandatory     : Yes

  884. #—————————————————————————–

  885. INSTANCENAME = "orcl11g"

  886. #—————————————————————————–

  887. # Name          : NODELIST

  888. # Datatype      : String

  889. # Description   : Node on which instance to be deleted (SID) is located

  890. # Valid values  : Cluster node name

  891. # Default value : None

  892. # Mandatory     : No

  893. #—————————————————————————–

  894. #NODELIST=

  895. #—————————————————————————–

  896. # Name          : OBFUSCATEDPASSWORDS

  897. # Datatype      : Boolean

  898. # Description   : Set to true if passwords are encrypted

  899. # Valid values  : TRUE/FALSE

  900. # Default value : FALSE

  901. # Mandatory     : No

  902. #—————————————————————————–

  903. #OBFUSCATEDPASSWORDS = FALSE

  904. #—————————————————————————–

  905. # Name          : SYSDBAUSERNAME

  906. # Datatype      : String

  907. # Description   : A user with DBA role.

  908. # Default value : none

  909. # Mandatory     : YES

  910. #—————————————————————————–

  911. SYSDBAUSERNAME = "sys"

  912. #—————————————————————————–

  913. # Name          : SYSDBAPASSWORD

  914. # Datatype      : String

  915. # Description   : The password of the DBA user.

  916. # Default value : none

  917. # Mandatory     : YES

  918. #—————————————————————————–

  919. #SYSDBAPASSWORD = "password"

  920. #———————–*** End of DELETEINSTANCE section ***————————

如下是netca.rsp的具体内容:

点击(此处)折叠或打开

  1. ######################################################################

  2. ## Copyright(c) 1998, 2011 Oracle Corporation. All rights reserved. ##

  3. ##                                                                  ##

  4. ## Specify values for the variables listed below to customize your  ##

  5. ## installation.                                                    ##

  6. ##                                                                  ##

  7. ## Each variable is associated with a comment. The comment          ##

  8. ## identifies the variable type.                                    ##

  9. ##                                                                  ##

  10. ## Please specify the values in the following format:               ##

  11. ##                                                                  ##

  12. ##         Type         Example                                     ##

  13. ##         String       "Sample Value"                              ##

  14. ##         Boolean      True or False                               ##

  15. ##         Number       1000                                        ##

  16. ##         StringList   {"String value 1","String Value 2"}         ##

  17. ##                                                                  ##

  18. ######################################################################

  19. ##                                                                  ##

  20. ## This sample response file causes the Oracle Net Configuration    ##

  21. ## Assistant (NetCA) to complete an Oracle Net configuration during ##

  22. ## a custom install of the Oracle11g server which is similar to     ##

  23. ## what would be created by the NetCA during typical Oracle11g      ##

  24. ## install. It also documents all of the NetCA response file        ##

  25. ## variables so you can create your own response file to configure  ##

  26. ## Oracle Net during an install the way you wish.                   ##

  27. ##                                                                  ##

  28. ######################################################################

  29. [GENERAL]

  30. RESPONSEFILE_VERSION="11.2"

  31. CREATE_TYPE="CUSTOM"

  32. #——————————————————————————-

  33. # Name       : SHOW_GUI

  34. # Datatype   : Boolean

  35. # Description: This variable controls appearance/suppression of the NetCA GUI,

  36. # Pre-req    : N/A

  37. # Default    : TRUE

  38. # Note:

  39. # This must be set to false in order to run NetCA in silent mode.

  40. # This is a substitute of "/silent" flag in the NetCA command line.

  41. # The command line flag has precedence over the one in this response file.

  42. # This feature is present since 10.1.0.3.

  43. #——————————————————————————-

  44. #SHOW_GUI=false

  45. #——————————————————————————-

  46. # Name       : LOG_FILE

  47. # Datatype   : String

  48. # Description: If present, NetCA will log output to this file in addition to the

  49. #       standard out.

  50. # Pre-req    : N/A

  51. # Default    : NONE

  52. # Note:

  53. # This is a substitute of "/log" in the NetCA command line.

  54. # The command line argument has precedence over the one in this response file.

  55. # This feature is present since 10.1.0.3.

  56. #——————————————————————————-

  57. #LOG_FILE=""/oracle11gHome/network/tools/log/netca.log""

  58. [oracle.net.ca]

  59. #INSTALLED_COMPONENTS;StringList;list of installed components

  60. # The possible values for installed components are:

  61. # "net8","server","client","aso", "cman", "javavm"

  62. INSTALLED_COMPONENTS={"server","net8","javavm"}

  63. #INSTALL_TYPE;String;type of install

  64. # The possible values for install type are:

  65. # "typical","minimal" or "custom"

  66. INSTALL_TYPE=""typical""

  67. #LISTENER_NUMBER;Number;Number of Listeners

  68. # A typical install sets one listener

  69. LISTENER_NUMBER=1

  70. #LISTENER_NAMES;StringList;list of listener names

  71. # The values for listener are:

  72. # "LISTENER","LISTENER1","LISTENER2","LISTENER3", …

  73. # A typical install sets only "LISTENER"

  74. LISTENER_NAMES={"LISTENER"}

  75. #LISTENER_PROTOCOLS;StringList;list of listener addresses (protocols and parameters separated by semicolons)

  76. # The possible values for listener protocols are:

  77. # "TCP;1521","TCPS;2484","NMP;ORAPIPE","IPC;IPCKEY","VI;1521"

  78. # A typical install sets only "TCP;1521"

  79. LISTENER_PROTOCOLS={"TCP;1521"}

  80. #LISTENER_START;String;name of the listener to start, in double quotes

  81. LISTENER_START=""LISTENER""

  82. #NAMING_METHODS;StringList;list of naming methods

  83. # The possible values for naming methods are:

  84. # LDAP, TNSNAMES, ONAMES, HOSTNAME, NOVELL, NIS, DCE

  85. # A typical install sets only: "TNSNAMES","ONAMES","HOSTNAMES"

  86. # or "LDAP","TNSNAMES","ONAMES","HOSTNAMES" for LDAP

  87. NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}

  88. #NOVELL_NAMECONTEXT;String;Novell Directory Service name context, in double quotes

  89. # A typical install does not use this variable.

  90. #NOVELL_NAMECONTEXT = ""NAMCONTEXT""

  91. #SUN_METAMAP;String; SUN meta map, in double quotes

  92. # A typical install does not use this variable.

  93. #SUN_METAMAP = ""MAP""

  94. #DCE_CELLNAME;String;DCE cell name, in double quotes

  95. # A typical install does not use this variable.

  96. #DCE_CELLNAME = ""CELL""

  97. #NSN_NUMBER;Number;Number of NetService Names

  98. # A typical install sets one net service name

  99. NSN_NUMBER=1

  100. #NSN_NAMES;StringList;list of Net Service names

  101. # A typical install sets net service name to "EXTPROC_CONNECTION_DATA"

  102. NSN_NAMES={"EXTPROC_CONNECTION_DATA"}

  103. #NSN_SERVICE;StringList;Oracle11g database's service name

  104. # A typical install sets Oracle11g database's service name to "PLSExtProc"

  105. NSN_SERVICE={"PLSExtProc"}

  106. #NSN_PROTOCOLS;StringList;list of coma separated strings of Net Service Name protocol parameters

  107. # The possible values for net service name protocol parameters are:

  108. # "TCP;HOSTNAME;1521","TCPS;HOSTNAME;2484","NMP;COMPUTERNAME;ORAPIPE","VI;HOSTNAME;1521","IPC;IPCKEY"

  109. # A typical install sets parameters to "IPC;EXTPROC"

  110. NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}

以上是“rhel6/7如何自动安装oracle11g单实例”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!

原创文章,作者:carmelaweatherly,如若转载,请注明出处:https://blog.ytso.com/206512.html

(0)
上一篇 2021年12月3日
下一篇 2021年12月3日

相关推荐

发表回复

登录后才能评论