dockerfile oracle_部署oracle dockerfile - CSDN
精华内容
参与话题
  • docker 部署Oracle

    2019-03-18 18:12:38
    1.首先拉取Oracle镜像 https://hub.docker.com/ , 第二种方式,私人镜像在中央仓库只保留30天,我发现这次拉取的时候资源不存在,问了运维大佬,才知道,把保留的镜像tar包迁移部署 2.bulid oracle 镜像 ...

    1.首先拉取Oracle镜像

    https://hub.docker.com/  ,

    第二种方式,私人镜像在中央仓库只保留30天,我发现这次拉取的时候资源不存在,问了运维大佬,才知道,把保留的镜像tar 包迁移部署

    2.bulid  oracle   镜像

        Dockerfile 文件

        

     

       rebulid.sh 文件

    bulid Oracle 镜像

     

    查看所有已经启动的容器

    docker  ps  

     

    查看所有容器

    docker ps  -a

    查看所有镜像

    docker images

     

    工作区管理web 页面

    http://ip:端口/apex/

    初始口令:admin /oracle ,第一次登录进去,必须修改密码,

    通过这种方式可以创建用户

     

     

    展开全文
  • 1、 克隆oracle的docker-imges仓库 git clone https://github.com/oracle/docker-images.git 2、从oracle官网下载orcale-12c 的linux压缩包 linuxx64_12201_database_4.zip 下载链接如下: ...

    1、 克隆oracle的docker-imges仓库

    git clone https://github.com/oracle/docker-images.git

    2、从oracle官网下载orcale-12c 的linux压缩包 linuxx64_12201_database_4.zip

    下载链接如下:

    https://www.oracle.com/database/technologies/oracle-database-software-downloads.html

    3、将linuxx64_12201_database_4.zip放入docker-images内的12.2.0.1文件夹内

    路径如下:

    docker-images/OracleDatabase/SingleInstance/dockerfiles/12.2.0.1

    然后进入上一级目录,路径如下:

    docker-images/OracleDatabase/SingleInstance/dockerfile

    然后执行下列命令

    ./buildDockerImage.sh -v 12.2.0.1 -e

    安装好后

    docker运行容器

    docker run   --name myoracle \
    -p 1521:1521 -p 5500:5500 \
    -e ORACLE_SID=orcl \
    -e ORACLE_PDB=orclpdb1 \
    -e ORACLE_PWD=123456 \
    -e ORACLE_CHARACTERSET=al32utf8 \
    -e ORACLE_BASE=/opt/oracle \
    -e ORACLE_HOME=/opt/oracle/product/12.2.0.1/dbhome_1 \
    -e PATH=/opt/oracle/product/12.2.0.1/dbhome_1/bin:/opt/oracle/product/12.2.0.1/dbhome_1/OPatch/:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
    -v /home/nicemoe/oradata:/opt/oracle/oradata \
    oracle/database:12.2.0.1-ee

    注意/home/nicemoe/oradata为自己创建orcale数据存放目录,注意更改合适权限

    4、容器中的Oracle数据库还配置了Oracle Enterprise Manager Express。要访问OEM Express,请启动浏览器并按照以下URL进行操作:

    https://localhost:5500/em/
    用户名 system/sys等
    口令 123456
    容器名 orclpdb1

    若要以sysdba身份登录:

    用户名 sys
    口令 123456
    容器名 orclpdb1

    5、修改密码

    docker exec  <container name> ./setPassword.sh <your password>
    例如:
    
    docker exec  d38c6077ec85 ./setPassword.sh 123456

    6、登录数据库

    进入环境

    docker exec -it <container name> /bin/bash

    登录数据库

    sqlplus sys/<your password>@//localhost:1521/<your SID> as sysdba
    sqlplus system/<your password>@//localhost:1521/<your SID>
    sqlplus pdbadmin/<your password>@//localhost:1521/<Your PDB name>
    例子:
    sqlplus sys/123456@//localhost:1521/orcl as sysdba
    sqlplus system/123456@//localhost:1521/orcl
    sqlplus pdbadmin/123456@//localhost:1521/orclpdb1

     

    展开全文
  • FROM ubuntu RUN mkdir opt/fsd RUN apt-get update RUN apt install vim --assume-yes ADD jdk-8u231-linux-x64.tar.gz opt/fsd ENV JAVA_HOME=/opt/fsd/jdk1.8.0_231 ENV PATH=$JAVA_HOME/b...

    FROM ubuntu
    RUN mkdir opt/fsd
    RUN apt-get update
    RUN apt install vim --assume-yes
    ADD jdk-8u231-linux-x64.tar.gz opt/fsd
    ENV JAVA_HOME=/opt/fsd/jdk1.8.0_231
    ENV PATH=$JAVA_HOME/bin:$PATH
    ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
    COPY aaa-0.0.1-SNAPSHOT.jar /opt/fsd
    EXPOSE 8764

    ENTRYPOINT java -jar /opt/fsd/aaa-0.0.1-SNAPSHOT.jar

     

    >docker build -t aaa:latest .
    >docker run -p 8763:8763 -v C:\Temp:/data  --test bfyautocom -it aaa /bin/bash

    • -p: 指定端口映射,格式为:主机(宿主)端口:容器端口

    • --volume , -v: 绑定一个卷, 将本地的c:\Temp目录挂到docker的 data目录

    ENTRYPOINT : docker 启动后执行的命令

     

    展开全文
  • 虽然不能使用Dockerfile一键生出个活蹦乱跳的oracle baby,但离实现这个梦想的距离也只是多出两个步骤而已。下面跟我一起看看梦想是怎么实现的吧。 准备下安装资源 oracle12c安装包:linuxx64_12201_database.zip ...

    答案是:做梦
    在这里插入图片描述
    好啦,开个玩笑。虽然不能使用Dockerfile一键生出个活蹦乱跳的oracle baby,但离实现这个梦想的距离也只是多出两个步骤而已。下面跟我一起看看梦想是怎么实现的吧。

    准备下安装资源

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

    先来个Dockerfile的主菜

    ###########################################################
    FROM centos:7
    MAINTAINER watermelonbig <watermelonbig@163.com>
    
    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   : MYORACLESUPPORT_USERNAME=abc@oracle.com
    #------------------------------------------------------------------------------
    MYORACLESUPPORT_USERNAME=
    
    #------------------------------------------------------------------------------
    # Specify the My Oracle Support Account Username password.
    #
    # Example    : MYORACLESUPPORT_PASSWORD=password
    #------------------------------------------------------------------------------
    MYORACLESUPPORT_PASSWORD=
    
    #------------------------------------------------------------------------------
    # Specify whether to enable the user to set the password for
    # My Oracle Support credentials. The value can be either true or false.
    # If left blank it will be assumed to be false.
    #
    # Example    : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
    #------------------------------------------------------------------------------
    SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
    
    #------------------------------------------------------------------------------
    # Specify whether user doesn't want to configure Security Updates.
    # The value for this variable should be true if you don't want to configure
    # Security Updates, false otherwise.
    #
    # The value can be either true or false. If left blank it will be assumed
    # to be 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=
    
    
    展开全文
  • 这次讲讲使用DockerFile 安装Oracle jdk1.8,由于花了几个晚上,走了不少弯路,所以必须记录一下,都怪自己蠢到........ 一、准备 1、下载jdk 进入Oracle 官网,找到需要的jdk,这里我使用jdk1.8版本(别问为啥...
  • Docker快速搭建Oracle12c

    千次阅读 2018-12-21 09:34:44
    Docker快速搭建Oracle12c       快速启动 使用Docker命令拉取oracle-12c镜像 docker pull sath89/oracle-12c 启动并暴露8080&amp;1521端口,8080可以登录网页端管理,1521是数据连接端口: ...
  • docker搭建oracle11g服务

    千次阅读 2020-02-26 23:34:49
    1. oracle下载 版本:11.2.0.1,这个版本可以免费下载,11.2.0.4需要付费帐号才行 下载需要登陆Oracle账号,会有授权参数共2个zip包,下载速度很慢,推荐迅雷下载,但是我这里迅雷下第一个zip包很快,第二个非常慢,...
  • docker 安装:mac:先确保系统为最新版系统,然后直接到docker官网下载mac版安装版,傻瓜式安装即可。windows:win10直接官网下载最新docker版本即可,非win10下载docker-toolbox,同样傻瓜式安装。...
  • 使用了几天以后突然连接异常了,报的问题是oracle监听有问题了,我知道了是oracle服务自动关闭了,监听也跟着关了。所以我找了一些文章,总结如下。 一、如何启动数据库实例 进入到sqlplus启动实例 #“切换到oracle...
  • Docker安装oracle 11.0.2 64bit 企业版

    千次阅读 2019-08-02 15:39:53
    docker 基础以及配置镜像加速等这里不再描述,前面文章页提到过。直接进入安装步骤。 1,下载镜像 docker pull registry....docker run -d --name oracle -p 1521:1521 registry.cn-hangzhou.aliyuncs....
  • Docker下部署oracle11g

    万次阅读 2019-05-24 14:05:54
    docker search oracle 2、拉取oracle11g镜像文件 docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g 3、创建挂载目录 mkdir -p /data/oracle 4、创建oracle容器 docker run -d -p 1521:1521 -v /...
  • 由于公司的数据库需要使用新的oracle版本(12c-r2 --&gt;12.2.0.1),从之前的oracle11g迁移到12c。所以,便有了我们今天的内容。 首先,我们就先来介绍一下如何构建oracle12c的镜像(docker image)。 如果...
  • Dockfile是一种被Docker程序解释的脚本,Dockerfile由一条一条的指令组成,每条指令对应Linux下面的一条命令。Docker程序将这些Dockerfile指令翻译真正的Linux命令。Dockerfile有自己书写格式和支持的命令,Docker程
  • JDK8 dockerfile

    2019-09-28 19:17:33
    # AlpineLinux with a glibc-2.28-r0 and Oracle Java 8FROM hub.devops.docker.com/library/alpine-glibc:v2.28-r0 MAINTAINER xxxxx <xxxxx@163.com> # Java Version and other ENVENV JAVA_VERSION...
  • docker镜像制作之---oracle

    千次阅读 2016-10-31 15:42:06
    1、每次安装oracle其实真的很是繁琐,那么我们有啥办法能够解决这个问题呢?Docker给我们带来了福音 2、工作目录如下: . ├── assets │ ├── colorecho │ ├── dbca.rsp │ ├── db_install.rsp │ ├─...
  • Dockfile是一种被Docker程序解释的脚本,Dockerfile由一条一条的指令组成,每条指令对应Linux下面的一条命令。Docker程序将这些Dockerfile指令翻译真正的Linux命令。Dockerfile有自己书写格式和支持的命令,Docker...
  • 2 下载 Oracle 官方提供的dockerfile git clone https://github.com/oracle/docker-images 3 下载Oracle ZIP 安装包 略 4 以Oracle12.2.0.1为例,将 Oracle安装包 放到docker-images对应版本的文件夹下如 docker-...
  • http://www.tuicool.com/articles/ieE3ueM
  • CentOS zookeeper dockerfile

    千次阅读 2017-05-06 09:46:26
    DockerFile:FROM centos:7RUN yum -y install vim lsof wget tar bzip2 unzip vim-enhanced passwd sudo yum-utils hostname ...
  • CentOS kafka dockerfile

    千次阅读 2017-05-06 09:44:02
    DockerFile:FROM centos:7ENV KAFKA_VERSION "0.8.2.2"RUN yum -y install vim lsof wget tar bzip2 unzip vim-enhanced passwd sudo yum-utils hostname ...
1 2 3 4 5 ... 20
收藏数 2,976
精华内容 1,190
关键字:

dockerfile oracle