Dockerfile:一键创建个Oracle数据库容器怎么样?

答案是:做梦
Dockerfile:一键创建个Oracle数据库容器怎么样?_第1张图片
好啦,开个玩笑。虽然不能使用Dockerfile一键生出个活蹦乱跳的oracle baby,但离实现这个梦想的距离也只是多出两个步骤而已。下面跟我一起看看梦想是怎么实现的吧。

准备下安装资源

oracle12c安装包:linuxx64_12201_database.zip
Oracle深耕中国市场几十年了,着实没法理解近期把中国研究院一锅端的决策。中国大陆地区,虽然你在使用oracle数据库产品时没付费,但花钱用户的海了去了。oracle数据库+weblogic中间件这是多少企事业单位的梦幻组合(有钱任性)啊。
目前最新版本的oracle已经到了19c,感觉好快,以前的迭代速度是不是没有这么的快啊。总之,我只给大家拿12c做个示例,追新由你。

先来个Dockerfile的主菜

###########################################################
FROM centos:7
MAINTAINER watermelonbig 

RUN echo "root:YYtest2019" | chpasswd
RUN yum clean all; \
        rpm --rebuilddb; \
        yum install -y sudo curl which tar openssh-server openssh-clients rsync wget iproute net-tools sysstat lsof tcpdump telnet iputils lrzsz zip unzip kde-l10n-Chinese;\
        yum install -y binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33.i686 glibc glibc.i686 glibc-devel glibc-devel.i686 ksh libaio libaio.i686 libaio-devel libaio-devel.i686 libX11 libX11.i686 libXau libXau.i686 libXi libXi.i686 libXtst libXtst.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel libstdc++-devel.i686 libxcb libxcb.i686 make nfs-utils smartmontools unixODBC unixODBC-devel 
RUN groupadd -g 54321 oinstall;\
    groupadd -g 54322 dba;\
    groupadd -g 54323 oper;\
    useradd -u 54321 -g oinstall -G dba,oper oracle

RUN echo 'net.ipv6.conf.all.disable_ipv6 = 1' >> /etc/sysctl.conf;\
        echo 'net.ipv6.conf.default.disable_ipv6 = 1' >> /etc/sysctl.conf;\
        echo 'net.ipv4.ip_local_port_range = 9000 65000' >> /etc/sysctl.conf;\
        echo 'vm.swappiness = 10' >> /etc/sysctl.conf;\
        echo "session   required        /lib64/security/pam_limits.so" >> /etc/pam.d/login;\
        sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config;\
        sed -i '/UseDNS yes/s/.*/UseDNS no/g' /etc/ssh/sshd_config;\
        echo 'fs.file-max = 6815744' >> /etc/sysctl.conf;\
        echo 'kernel.sem = 250 32000 100 128' >> /etc/sysctl.conf;\
        echo 'kernel.shmmni = 4096' >> /etc/sysctl.conf;\
        echo 'kernel.shmall = 1073741824' >> /etc/sysctl.conf;\
        echo 'kernel.shmmax = 4398046511104' >> /etc/sysctl.conf;\
        echo 'kernel.panic_on_oops = 1' >> /etc/sysctl.conf;\
        echo 'net.core.rmem_default = 262144' >> /etc/sysctl.conf;\
        echo 'net.core.rmem_max = 4194304' >> /etc/sysctl.conf;\
        echo 'net.core.wmem_default = 262144' >> /etc/sysctl.conf;\
        echo 'net.core.wmem_max = 1048576' >> /etc/sysctl.conf;\
        echo 'net.ipv4.conf.all.rp_filter = 2' >> /etc/sysctl.conf;\
        echo 'net.ipv4.conf.default.rp_filter = 2' >> /etc/sysctl.conf;\
        echo 'fs.aio-max-nr = 1048576' >> /etc/sysctl.conf;\
        echo 'oracle   soft   nofile    1024' >> /etc/security/limits.conf;\
        echo 'oracle   hard   nofile    65536' >> /etc/security/limits.conf;\
        echo 'oracle   soft   nproc    16384' >> /etc/security/limits.conf;\
        echo 'oracle   hard   nproc    16384' >> /etc/security/limits.conf;\
        echo 'oracle   soft   stack    10240' >> /etc/security/limits.conf;\
        echo 'oracle   hard   stack    32768' >> /etc/security/limits.conf
		
COPY ./linuxx64_12201_database.zip /opt/
COPY ./setEnv.sh /home/oracle/
COPY ./12cR2.rsp /opt/

RUN chown -R oracle:oinstall /home/oracle;\
    chmod u+x /home/oracle/setEnv.sh;\
    echo ". /home/oracle/setEnv.sh" >> /home/oracle/.bash_profile;\
    sed -i 's/LANG="en_US.UTF-8"/LANG="zh_CN.UTF-8"/g' /etc/locale.conf;\
    cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime;\
    chmod u+s /usr/sbin/lsof;\
    chmod u+s /usr/sbin/tcpdump

RUN ssh-keygen -t rsa -P "" -f /etc/ssh/ssh_host_rsa_key;\
        ssh-keygen -t dsa -P ""  -f /etc/ssh/ssh_host_dsa_key

ENV LANG=zh_CN.UTF-8
CMD ["/usr/sbin/sshd","-D"]

EXPOSE 1521 22

基本上是干了这么几件事:

  • 安装各种基础工具包、依赖包;
  • 调优各种对oracle有益的系统参数;
  • 配置oracle用户相关的运行环境;
  • 复制后续安装数据库需要使用的安装包、静默安装配置文件以及脚本;
  • 随机附送了一个ssh server,帮你设置了下root/YYtest2019的账号;

对。这就是我们的Dockerfile生成容器镜像时所做的全部工作了。是不是离实现梦想还很远?不要灰心,已经把那些琐碎、细节又杂乱的配置都打包让Dockerfile完成了啊。离梦想达成,只差两步:

  • 安装数据库软件
  • 创建库实例

这两个步骤确实是重量级选手,不过好在也已经把它们收拾得服服贴贴的了,基本上客官您只需要刷个脚本就可以边喝茶边等着用上oracle啦。

仔细看上面的Dockerfile文件内容,可以看到我们总共使用到了三个资源文件:

  • 一个是linuxx64_12201_database.zip的安装包
  • 一个是名为setEnv.sh的环境变量设置脚本
  • 再一个是名为12cR2.rsp的静默安装oracle使用的配置文件

oracle12c的安装包和静默安装配置文件都预置入到了系统/opt目录下。设置环境变量的脚本,被放到了oracle的家目录下。

环境变量设置脚本 setEnv.sh

# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=`hostname -s`
export ORACLE_UNQNAME=crdb1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.2.0.1/db_1
export ORACLE_SID=crdb1
export PATH=/usr/sbin:/usr/local/bin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

oracle静默安装配置文件 12cR2.rsp

这个文件的内容太多了,我扔到文章最末尾了,避免给正常阅读造成干扰。

这里有几个疑问:为什么把zip的安装包放到容器镜像文件里去?不放会不会更好,放解压缩后的安装文件效果如何,直接继续在Dockerfile里把oracle也安装了、把库实例也创建了好不好。

我解释一下,欢迎观众们看过后自己继续尝试(踩坑):

  • oracle的zip安装包体积约3GB,上面的Dockerfile制作出来的容器镜像文件大于约3.8GB。这是一个我愿意接受的镜像体积范围。不算太大,又能帮省下不少事情。不然,每创建一个业务容器,都要手动上传一次zip安装包。
  • 与其放个压缩包到镜像里,不如放一份解压后的安装文件呢?经过实测对比,后者制作出的容器镜像体积约8GB。
  • 继续在Dockerfile里把oracle也安装了、把库实例也创建了好不好?不好,很不好。首先是,体积严重得大,单是执行完安装数据库软件这一步,镜像文件的体积就达15GB了。其次是,通过Dockerfile执行创建库实例的操作时会遇到问题,无法解决,不展开了。即便你成功地拿Dockerfile一健生出个oracle库实例服务出来了,此时的容器镜像文件体积会很夸张,以致于丧失了镜像存在的意义了。分发一个好大的镜像,或每次都docker build一把,都是不可思议的。

到此为止,我们继续回到正题。
请自行在凑足了安装资源后,归堆放到一个目录里,执行docker build -t oracle12c-preinstall . 创建出容器镜像来。

使用镜像创建个容器

方法不限。无外乎是以下两种:

  • 使用docker run创建个纯docker容器
  • 在kubernetes平台上使用kubectl create命令创建个Pod容器

注意:oracle是个大户人家的小姐,生活阔气惯了,你给人家创建容器时分配的资源不要太小气了,尤其是内存。在内存不富裕时,一定要在创建库实例时仔细计算下给SGA分配多大的可用内存。我们下文中提供的示例中是划分了16G内存,创建一个库实例,限定库SGA最大使用12GB。

登录容器并整理下安装资源

mkdir -p /u01/app/oracle/product/12.2.0.1/db_1
unzip -d /u01 /opt/linuxx64_12201_database.zip
rm -rf /opt/linuxx64_12201_database.zip
mv /opt/12cR2.rsp /u01
chown -R oracle:oinstall /u01
chmod  775 /u01

解释一下,为什么还要费力把安装文件从/opt往/u01下搬一次。因为我使用的是k8s平台啊,容器因故发生重启后,会是什么结果?所有镜像之外的安装和配置均消失不见。只有一个例外,就是给容器挂载数据磁盘的情况下,存放在数据盘中的数据是不会消失的。所以,我肯定是给容器的/u01路径挂了块数据盘的嘛,不想一夜回到解放前。

在容器中安装oracle数据库软件

我们这里说的是安装软件。安装了数据库软件,并不代表就有数据库服务可以使用了。就像安装了mysql数据库后,还得执行create database命令建库的嘛。

su - oracle -c "/u01/database/runInstaller -ignoreSysPrereqs -ignorePrereq -waitforcompletion -showProgress -silent -responseFile /u01/12cR2.rsp"
  • 使用root用户直接在容器中刷上面的脚本就好了,等多久完工要看你的机器性能,就是这么任性

上面的操作成功结果后,会提示你使用root用户继续执行下面的两个命令:

/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/12.2.0.1/db_1/root.sh
  • 至此,oracle数据库安装完毕。

创建数据库实例

建库

仍然是静默安装的方式。仍然是直接使用root用户刷脚本的方法,就是这么任性。

su - oracle -c "dbca -silent -createDatabase   -templateName /u01/app/oracle/product/12.2.0.1/db_1/assistants/dbca/templates/General_Purpose.dbc   -gdbname crdb1 -sid crdb1 -responseFile /u01/app/oracle/product/12.2.0.1/db_1/assistants/dbca/dbca.rsp   -characterSet AL32UTF8   -sysPassword testPasswd1   -systemPassword testPasswd1   -createAsContainerDatabase true   -numberOfPDBs 1   -pdbName pdb1   -pdbAdminPassword testPasswd1   -automaticMemoryManagement false   -totalMemory 12000   -ignorePreReqs"
  • 数据库的管理员账号设置为 system/testPasswd1
  • -totalMemory,限定数据库实例SGA分配的内存空间

大概又是一杯咖啡的工夫。

成功结束后,库已经有了,服务还没有网络监听,从外面访问不到。

创建监听服务

在容器中拿root刷脚本:

su - oracle -c "netca -silent -responseFile /u01/database/response/netca.rsp"
  • 可能有人好奇,为什么不切换成oracle用户,这多麻烦。我就是想一个root用户干到底,切来切去的,我嫌麻烦。而且后续我可能还会创建出更多的oracle数据库容器出来,就让我刷脚本吧,let me go.

检查下服务监听是否正常,lsnrctl status,如果显示没有可用的服务实例,则按下面方法添加注册监听的实例:

登录数据库:

$sqlplus / as sysdba

显示服务名:

SQL>show parameter service_names

强制注册服务:

SQL>alter system register;

查看监听状态:

$lsnrctl status

附件:12cR2.rsp

####################################################################
## Copyright(c) Oracle Corporation 1998,2017. All rights reserved.##
##                                                                ##
## Specify values for the variables listed below to customize     ##
## your installation.                                             ##
##                                                                ##
## Each variable is associated with a comment. The comment        ##
## can help to populate the variables with the appropriate        ##
## values.                                                        ##
##                                                                ##
## IMPORTANT NOTE: This file contains plain text passwords and    ##
## should be secured to have read permission only by oracle user  ##
## or db administrator who owns this installation.                ##
##                                                                ##
####################################################################


#-------------------------------------------------------------------------------
# Do not change the following system generated value. 
#-------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.2.0

#-------------------------------------------------------------------------------
# Specify the installation option.
# It can be one of the following:
#   - INSTALL_DB_SWONLY
#   - INSTALL_DB_AND_CONFIG
#   - UPGRADE_DB
#-------------------------------------------------------------------------------
oracle.install.option=INSTALL_DB_SWONLY

#-------------------------------------------------------------------------------
# Specify the Unix group to be set for the inventory directory.  
#-------------------------------------------------------------------------------
UNIX_GROUP_NAME=oinstall

#-------------------------------------------------------------------------------
# Specify the location which holds the inventory files.
# This is an optional parameter if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------
INVENTORY_LOCATION=/u01/app/oraInventory
#-------------------------------------------------------------------------------
# Specify the complete path of the Oracle Home. 
#-------------------------------------------------------------------------------
ORACLE_HOME=/u01/app/oracle/product/12.2.0.1/db_1

#-------------------------------------------------------------------------------
# Specify the complete path of the Oracle Base. 
#-------------------------------------------------------------------------------
ORACLE_BASE=/u01/app/oracle

#-------------------------------------------------------------------------------
# Specify the installation edition of the component.                     
#                                                             
# The value should contain only one of these choices.  
#   - EE     : Enterprise Edition 
#   - SE2     : Standard Edition 2


#-------------------------------------------------------------------------------

oracle.install.db.InstallEdition=EE
###############################################################################
#                                                                             #
# PRIVILEGED OPERATING SYSTEM GROUPS                                          #
# ------------------------------------------                                  #
# Provide values for the OS groups to which SYSDBA and SYSOPER privileges     #
# needs to be granted. If the install is being performed as a member of the   #
# group "dba", then that will be used unless specified otherwise below.       #
#                                                                             #
# The value to be specified for OSDBA and OSOPER group is only for UNIX based #
# Operating System.                                                           #
#                                                                             #
###############################################################################

#------------------------------------------------------------------------------
# The OSDBA_GROUP is the OS group which is to be granted SYSDBA privileges.
#-------------------------------------------------------------------------------
oracle.install.db.OSDBA_GROUP=dba

#------------------------------------------------------------------------------
# The OSOPER_GROUP is the OS group which is to be granted SYSOPER privileges.
# The value to be specified for OSOPER group is optional.
#------------------------------------------------------------------------------
oracle.install.db.OSOPER_GROUP=dba

#------------------------------------------------------------------------------
# The OSBACKUPDBA_GROUP is the OS group which is to be granted SYSBACKUP privileges.
#------------------------------------------------------------------------------
oracle.install.db.OSBACKUPDBA_GROUP=dba

#------------------------------------------------------------------------------
# The OSDGDBA_GROUP is the OS group which is to be granted SYSDG privileges.
#------------------------------------------------------------------------------
oracle.install.db.OSDGDBA_GROUP=dba

#------------------------------------------------------------------------------
# The OSKMDBA_GROUP is the OS group which is to be granted SYSKM privileges.
#------------------------------------------------------------------------------
oracle.install.db.OSKMDBA_GROUP=dba

#------------------------------------------------------------------------------
# The OSRACDBA_GROUP is the OS group which is to be granted SYSRAC privileges.
#------------------------------------------------------------------------------
oracle.install.db.OSRACDBA_GROUP=dba

###############################################################################
#                                                                             #
#                               Grid Options                                  #
#                                                                             #
###############################################################################
#------------------------------------------------------------------------------
# Specify the type of Real Application Cluster Database
# 
#   - ADMIN_MANAGED: Admin-Managed
#   - POLICY_MANAGED: Policy-Managed
# 
# If left unspecified, default will be ADMIN_MANAGED 
#------------------------------------------------------------------------------
oracle.install.db.rac.configurationType=

#------------------------------------------------------------------------------
# Value is required only if RAC database type is ADMIN_MANAGED
# 
# Specify the cluster node names selected during the installation.
# Leaving it blank will result in install on local server only (Single Instance)
# 
# Example : oracle.install.db.CLUSTER_NODES=node1,node2
#------------------------------------------------------------------------------
oracle.install.db.CLUSTER_NODES=

#------------------------------------------------------------------------------
# This variable is used to enable or disable RAC One Node install.
#
#   - true  : Value of RAC One Node service name is used.
#   - false : Value of RAC One Node service name is not used.
#
# If left blank, it will be assumed to be false.
#------------------------------------------------------------------------------
oracle.install.db.isRACOneInstall=

#------------------------------------------------------------------------------
# Value is required only if oracle.install.db.isRACOneInstall is true.
# 
# Specify the name for RAC One Node Service
#------------------------------------------------------------------------------
oracle.install.db.racOneServiceName=

#------------------------------------------------------------------------------
# Value is required only if RAC database type is POLICY_MANAGED
# 
# Specify a name for the new Server pool that will be configured
# Example : oracle.install.db.rac.serverpoolName=pool1
#------------------------------------------------------------------------------
oracle.install.db.rac.serverpoolName=

#------------------------------------------------------------------------------
# Value is required only if RAC database type is POLICY_MANAGED
# 
# Specify a number as cardinality for the new Server pool that will be configured
# Example : oracle.install.db.rac.serverpoolCardinality=2
#------------------------------------------------------------------------------
oracle.install.db.rac.serverpoolCardinality=

###############################################################################
#                                                                             #
#                        Database Configuration Options                       #
#                                                                             #
###############################################################################

#-------------------------------------------------------------------------------
# Specify the type of database to create.
# It can be one of the following:
#   - GENERAL_PURPOSE                       
#   - DATA_WAREHOUSE 
# GENERAL_PURPOSE: A starter database designed for general purpose use or transaction-heavy applications.
# DATA_WAREHOUSE : A starter database optimized for data warehousing applications.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.type=

#-------------------------------------------------------------------------------
# Specify the Starter Database Global Database Name. 
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.globalDBName=

#-------------------------------------------------------------------------------
# Specify the Starter Database SID.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.SID=

#-------------------------------------------------------------------------------
# Specify whether the database should be configured as a Container database.
# The value can be either "true" or "false". If left blank it will be assumed
# to be "false".
#-------------------------------------------------------------------------------
oracle.install.db.ConfigureAsContainerDB=

#-------------------------------------------------------------------------------
# Specify the  Pluggable Database name for the pluggable database in Container Database.
#-------------------------------------------------------------------------------
oracle.install.db.config.PDBName=

#-------------------------------------------------------------------------------
# Specify the Starter Database character set.
#                                               
#  One of the following
#  AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
#  EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
#  BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
#  AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
#  IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
#  KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
#  ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.characterSet=

#------------------------------------------------------------------------------
# This variable should be set to true if Automatic Memory Management 
# in Database is desired.
# If Automatic Memory Management is not desired, and memory allocation
# is to be done manually, then set it to false.
#------------------------------------------------------------------------------
oracle.install.db.config.starterdb.memoryOption=

#-------------------------------------------------------------------------------
# Specify the total memory allocation for the database. Value(in MB) should be
# at least 256 MB, and should not exceed the total physical memory available 
# on the system.
# Example: oracle.install.db.config.starterdb.memoryLimit=512
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.memoryLimit=

#-------------------------------------------------------------------------------
# This variable controls whether to load Example Schemas onto
# the starter database or not.
# The value can be either "true" or "false". If left blank it will be assumed
# to be "false".
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.installExampleSchemas=

###############################################################################
#                                                                             #
# Passwords can be supplied for the following four schemas in the	      #
# starter database:      						      #
#   SYS                                                                       #
#   SYSTEM                                                                    #
#   DBSNMP (used by Enterprise Manager)                                       #
#                                                                             #
# Same password can be used for all accounts (not recommended) 		      #
# or different passwords for each account can be provided (recommended)       #
#                                                                             #
###############################################################################

#------------------------------------------------------------------------------
# This variable holds the password that is to be used for all schemas in the
# starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.ALL=

#-------------------------------------------------------------------------------
# Specify the SYS password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.SYS=

#-------------------------------------------------------------------------------
# Specify the SYSTEM password for the starter database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.SYSTEM=

#-------------------------------------------------------------------------------
# Specify the DBSNMP password for the starter database.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.DBSNMP=

#-------------------------------------------------------------------------------
# Specify the PDBADMIN password required for creation of Pluggable Database in the Container Database.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.password.PDBADMIN=

#-------------------------------------------------------------------------------
# Specify the management option to use for managing the database.
# Options are:
# 1. CLOUD_CONTROL - If you want to manage your database with Enterprise Manager Cloud Control along with Database Express.
# 2. DEFAULT   -If you want to manage your database using the default Database Express option.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.managementOption=

#-------------------------------------------------------------------------------
# Specify the OMS host to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.omsHost=

#-------------------------------------------------------------------------------
# Specify the OMS port to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.omsPort=

#-------------------------------------------------------------------------------
# Specify the EM Admin user name to use to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.emAdminUser=

#-------------------------------------------------------------------------------
# Specify the EM Admin password to use to connect to Cloud Control.
# Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.emAdminPassword=

###############################################################################
#                                                                             #
# SPECIFY RECOVERY OPTIONS                                 	              #
# ------------------------------------		                              #
# Recovery options for the database can be mentioned using the entries below  #
#                                                                             #
###############################################################################

#------------------------------------------------------------------------------
# This variable is to be set to false if database recovery is not required. Else 
# this can be set to true.
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.enableRecovery=

#-------------------------------------------------------------------------------
# Specify the type of storage to use for the database.
# It can be one of the following:
#   - FILE_SYSTEM_STORAGE
#   - ASM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.storageType=

#-------------------------------------------------------------------------------
# Specify the database file location which is a directory for datafiles, control
# files, redo logs.         
#
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE 
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=

#-------------------------------------------------------------------------------
# Specify the recovery location.
#
# Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE 
#-------------------------------------------------------------------------------
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=

#-------------------------------------------------------------------------------
# Specify the existing ASM disk groups to be used for storage.
#
# Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE
#-------------------------------------------------------------------------------
oracle.install.db.config.asm.diskGroup=

#-------------------------------------------------------------------------------
# Specify the password for ASMSNMP user of the ASM instance.                 
#
# Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE 
#-------------------------------------------------------------------------------
oracle.install.db.config.asm.ASMSNMPPassword=

#------------------------------------------------------------------------------
# Specify the My Oracle Support Account Username.
#
#  Example   : [email protected]
#------------------------------------------------------------------------------
MYORACLESUPPORT_USERNAME=

#------------------------------------------------------------------------------
# Specify the My Oracle Support Account Username password.
#
# Example    : MYORACLESUPPORT_PASSWORD=password
#------------------------------------------------------------------------------
MYORACLESUPPORT_PASSWORD=

#------------------------------------------------------------------------------
# Specify whether to enable the user to set the password for
# My Oracle Support credentials. The value can be either true or false.
# If left blank it will be assumed to be false.
#
# Example    : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
#------------------------------------------------------------------------------
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

#------------------------------------------------------------------------------
# Specify whether user doesn't want to configure Security Updates.
# The value for this variable should be true if you don't want to configure
# Security Updates, false otherwise.
#
# The value can be either true or false. If left blank it will be assumed
# to be true.
#
# Example    : DECLINE_SECURITY_UPDATES=false
#------------------------------------------------------------------------------
DECLINE_SECURITY_UPDATES=true

#------------------------------------------------------------------------------
# Specify the Proxy server name. Length should be greater than zero.
#
# Example    : PROXY_HOST=proxy.domain.com 
#------------------------------------------------------------------------------
PROXY_HOST=

#------------------------------------------------------------------------------
# Specify the proxy port number. Should be Numeric and at least 2 chars.
#
# Example    : PROXY_PORT=25
#------------------------------------------------------------------------------
PROXY_PORT=

#------------------------------------------------------------------------------
# Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
# blank if your proxy server requires no authentication.
#
# Example    : PROXY_USER=username
#------------------------------------------------------------------------------
PROXY_USER=

#------------------------------------------------------------------------------
# Specify the proxy password. Leave PROXY_USER and PROXY_PWD  
# blank if your proxy server requires no authentication.
#
# Example    : PROXY_PWD=password
#------------------------------------------------------------------------------
PROXY_PWD=

#------------------------------------------------------------------------------
# Specify the Oracle Support Hub URL. 
# 
# Example    : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/
#------------------------------------------------------------------------------
COLLECTOR_SUPPORTHUB_URL=

你可能感兴趣的:(k8s)