├── Dockerfile ├── README.md ├── entrypoint.sh └── oracle-11g-ee-base ├── Dockerfile └── install ├── oracle-11g-ee.rsp └── oracle_install.sh /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM sath89/oracle-ee-11g-base:latest 2 | 3 | ENV DBCA_TOTAL_MEMORY 4096 4 | ENV WEB_CONSOLE true 5 | 6 | ENV ORACLE_SID=EE 7 | ENV ORACLE_HOME=/u01/app/oracle/product/11.2.0/EE 8 | ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/u01/app/oracle/product/11.2.0/EE/bin 9 | 10 | ADD entrypoint.sh /entrypoint.sh 11 | 12 | EXPOSE 1521 13 | EXPOSE 8080 14 | VOLUME ["/docker-entrypoint-initdb.d"] 15 | 16 | ENTRYPOINT ["/entrypoint.sh"] 17 | CMD [""] 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Oracle Enterprise Edition 11g Release 2 2 | ============================ 3 | 4 | Oracle Enterprise Edition 11g Release 2 on Oracle Linux 5 | 6 | This **Dockerfile** is a [trusted build](https://registry.hub.docker.com/u/sath89/oracle-ee-11g/) of [Docker Registry](https://registry.hub.docker.com/). 7 | 8 | [](https://asciinema.org/a/45878) 9 | 10 | ### Installation 11 | 12 | docker pull sath89/oracle-ee-11g 13 | 14 | Run with 8080 and 1521 ports opened: 15 | 16 | docker run -d -p 8080:8080 -p 1521:1521 sath89/oracle-ee-11g 17 | 18 | Run with data on host and reuse it: 19 | 20 | docker run -d -p 8080:8080 -p 1521:1521 -v /my/oracle/data:/u01/app/oracle sath89/oracle-ee-11g 21 | 22 | Run with Custom DBCA_TOTAL_MEMORY (in Mb): 23 | 24 | docker run -d -p 8080:8080 -p 1521:1521 -v /my/oracle/data:/u01/app/oracle -e DBCA_TOTAL_MEMORY=1024 sath89/oracle-11g 25 | 26 | Connect database with following setting: 27 | 28 | hostname: localhost 29 | port: 1521 30 | sid: EE 31 | service name: EE.oracle.docker 32 | username: system 33 | password: oracle 34 | 35 | To connect using sqlplus: 36 | 37 |
38 | sqlplus system/oracle@//localhost:1521/EE.oracle.docker 39 |40 | 41 | Password for SYS & SYSTEM: 42 | 43 | oracle 44 | 45 | Apex install up to v 5.* 46 | 47 | docker run -it --rm --volumes-from ${DB_CONTAINER_NAME} --link ${DB_CONTAINER_NAME}:oracle-database -e PASS=YourSYSPASS quay.io/maksymbilenko/docker-oracle-apex install 48 | Details could be found here: https://github.com/MaksymBilenko/docker-oracle-apex 49 | 50 | Connect to Oracle Enterprise Management console with following settings: 51 | 52 | http://localhost:8080/em 53 | user: sys 54 | password: oracle 55 | connect as sysdba: true 56 | 57 | By Default web management console is enabled. To disable add env variable: 58 | 59 | docker run -d -e WEB_CONSOLE=false -p 1521:1521 -v /my/oracle/data:/u01/app/oracle sath89/oracle-11g 60 | #You can Enable/Disable it on any time 61 | 62 | Start with additional init scripts or dumps: 63 | 64 | docker run -d -p 1521:1521 -v /my/oracle/data:/u01/app/oracle -v /my/oracle/init/SCRIPTSorSQL:docker-entrypoint-initdb.d sath89/oracle-11g 65 | By default Import from `docker-entrypoint-initdb.d` enabled only if you are initializing database(1st run). If you need to run import at any case - add `-e IMPORT_FROM_VOLUME=true` 66 | **In case of using DMP imports dump file should be named like ${IMPORT_SCHEME_NAME}.dmp** 67 | **User credentials for imports are ${IMPORT_SCHEME_NAME}/${IMPORT_SCHEME_NAME}** 68 | 69 | If you have an issue with database init like DBCA operation failed, please reffer to this [issue](https://github.com/MaksymBilenko/docker-oracle-11g/issues/16) 70 | 71 | 72 | 73 | **TODO LIST** 74 | * Web management console HTTPS port 75 | * Add functionality to run custom scripts on startup, for example User creation 76 | * Add Parameter that would setup processes amount for database (Currently by default processes=300) 77 | * Spike with clustering support 78 | * Spike with DB migration from 11g 79 | 80 | **In case of any issues please post it [here](https://github.com/MaksymBilenko/docker-oracle-11g/issues).** 81 | 82 | 83 | -------------------------------------------------------------------------------- /entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | # Prevent owner issues on mounted folders 5 | echo "Preparing oracle installer." 6 | chown -R oracle:dba /u01/app/oracle 7 | rm -f /u01/app/oracle/product 8 | ln -s /u01/app/oracle-product /u01/app/oracle/product 9 | 10 | #Run Oracle root scripts 11 | echo "Running root scripts." 12 | /u01/app/oraInventory/orainstRoot.sh 2>&1 13 | echo | /u01/app/oracle/product/11.2.0/EE/root.sh 2>&1 || true 14 | 15 | impdp () { 16 | set +e 17 | DUMP_FILE=$(basename "$1") 18 | DUMP_NAME=${DUMP_FILE%.dmp} 19 | cat > /tmp/impdp.sql << EOL 20 | -- Impdp User 21 | CREATE USER IMPDP IDENTIFIED BY IMPDP; 22 | ALTER USER IMPDP ACCOUNT UNLOCK; 23 | GRANT dba TO IMPDP WITH ADMIN OPTION; 24 | -- New Scheme User 25 | create or replace directory IMPDP as '/docker-entrypoint-initdb.d'; 26 | create tablespace $DUMP_NAME datafile '/u01/app/oracle/oradata/$DUMP_NAME.dbf' size 1000M autoextend on next 100M maxsize unlimited; 27 | create user $DUMP_NAME identified by $DUMP_NAME default tablespace $DUMP_NAME; 28 | alter user $DUMP_NAME quota unlimited on $DUMP_NAME; 29 | alter user $DUMP_NAME default role all; 30 | grant all to $DUMP_NAME; 31 | exit; 32 | EOL 33 | 34 | su oracle -c "NLS_LANG=.$CHARACTER_SET $ORACLE_HOME/bin/sqlplus -S / as sysdba @/tmp/impdp.sql" 35 | su oracle -c "NLS_LANG=.$CHARACTER_SET $ORACLE_HOME/bin/impdp IMPDP/IMPDP directory=IMPDP dumpfile=$DUMP_FILE $IMPDP_OPTIONS" 36 | #Disable IMPDP user 37 | echo -e 'ALTER USER IMPDP ACCOUNT LOCK;\nexit;' | su oracle -c "NLS_LANG=.$CHARACTER_SET $ORACLE_HOME/bin/sqlplus -S / as sysdba" 38 | set -e 39 | } 40 | 41 | case "$1" in 42 | '') 43 | #Check for mounted database files 44 | if [ "$(ls -A /u01/app/oracle/oradata)" ]; then 45 | echo "found files in /u01/app/oracle/oradata Using them instead of initial database" 46 | echo "EE:$ORACLE_HOME:N" >> /etc/oratab 47 | chown oracle:dba /etc/oratab 48 | chown 664 /etc/oratab 49 | rm -rf /u01/app/oracle-product/11.2.0/EE/dbs 50 | ln -s /u01/app/oracle/dbs /u01/app/oracle-product/11.2.0/EE/dbs 51 | #Startup Database 52 | su oracle -c "/u01/app/oracle/product/11.2.0/EE/bin/tnslsnr &" 53 | su oracle -c 'echo startup\; | $ORACLE_HOME/bin/sqlplus -S / as sysdba' 54 | else 55 | echo "Database not initialized. Initializing database." 56 | export IMPORT_FROM_VOLUME=true 57 | 58 | if [ -z "$CHARACTER_SET" ]; then 59 | export CHARACTER_SET="AL32UTF8" 60 | fi 61 | 62 | #printf "Setting up:\nprocesses=$processes\nsessions=$sessions\ntransactions=$transactions\n" 63 | 64 | mv /u01/app/oracle-product/11.2.0/EE/dbs /u01/app/oracle/dbs 65 | ln -s /u01/app/oracle/dbs /u01/app/oracle-product/11.2.0/EE/dbs 66 | 67 | echo "Starting tnslsnr" 68 | su oracle -c "/u01/app/oracle/product/11.2.0/EE/bin/tnslsnr &" 69 | #create DB for SID: EE 70 | echo "Running initialization by dbca" 71 | su oracle -c "$ORACLE_HOME/bin/dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname EE.oracle.docker -sid EE -responseFile NO_VALUE -characterSet $CHARACTER_SET -totalMemory $DBCA_TOTAL_MEMORY -emConfiguration LOCAL -dbsnmpPassword oracle -sysPassword oracle -systemPassword oracle" 72 | 73 | # echo "Configuring Apex console" 74 | # cd $ORACLE_HOME/apex 75 | # su oracle -c 'echo -e "0Racle$\n8080" | $ORACLE_HOME/bin/sqlplus -S / as sysdba @apxconf > /dev/null' 76 | # su oracle -c 'echo -e "${ORACLE_HOME}\n\n" | $ORACLE_HOME/bin/sqlplus -S / as sysdba @apex_epg_config_core.sql > /dev/null' 77 | # su oracle -c 'echo -e "ALTER USER ANONYMOUS ACCOUNT UNLOCK;" | $ORACLE_HOME/bin/sqlplus -S / as sysdba > /dev/null' 78 | # echo "Database initialized. Please visit http://#containeer:8080/em http://#containeer:8080/apex for extra configuration if needed" 79 | fi 80 | 81 | if [ $WEB_CONSOLE == "true" ]; then 82 | echo 'Starting web management console' 83 | su oracle -c 'echo EXEC DBMS_XDB.sethttpport\(8080\)\; | $ORACLE_HOME/bin/sqlplus -S / as sysdba' 84 | else 85 | echo 'Disabling web management console' 86 | su oracle -c 'echo EXEC DBMS_XDB.sethttpport\(0\)\; | $ORACLE_HOME/bin/sqlplus -S / as sysdba' 87 | fi 88 | 89 | if [ $IMPORT_FROM_VOLUME ]; then 90 | echo "Starting import from '/docker-entrypoint-initdb.d':" 91 | 92 | for f in /docker-entrypoint-initdb.d/*; do 93 | echo "found file /docker-entrypoint-initdb.d/$f" 94 | case "$f" in 95 | *.sh) echo "[IMPORT] $0: running $f"; . "$f" ;; 96 | *.sql) echo "[IMPORT] $0: running $f"; echo "exit" | su oracle -c "NLS_LANG=.$CHARACTER_SET $ORACLE_HOME/bin/sqlplus -S / as sysdba @$f"; echo ;; 97 | *.dmp) echo "[IMPORT] $0: running $f"; impdp $f ;; 98 | *) echo "[IMPORT] $0: ignoring $f" ;; 99 | esac 100 | echo 101 | done 102 | 103 | echo "Import finished" 104 | echo 105 | else 106 | echo "[IMPORT] Not a first start, SKIPPING Import from Volume '/docker-entrypoint-initdb.d'" 107 | echo "[IMPORT] If you want to enable import at any state - add 'IMPORT_FROM_VOLUME=true' variable" 108 | echo 109 | fi 110 | 111 | echo "Database ready to use. Enjoy! ;)" 112 | 113 | ## 114 | ## Workaround for graceful shutdown. 115 | ## 116 | while [ "$END" == '' ]; do 117 | sleep 1 118 | trap "su oracle -c 'echo shutdown immediate\; | $ORACLE_HOME/bin/sqlplus -S / as sysdba'" INT TERM 119 | done 120 | ;; 121 | 122 | *) 123 | echo "Database is not configured. Please run '/entrypoint.sh' if needed." 124 | exec "$@" 125 | ;; 126 | esac 127 | -------------------------------------------------------------------------------- /oracle-11g-ee-base/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM oraclelinux 2 | 3 | RUN groupadd dba && useradd -m -G dba oracle && mkdir /u01 && chown oracle:dba /u01 4 | RUN yum install -y yum install oracle-rdbms-server-11gR2-preinstall glibc-static wget unzip && yum clean all 5 | 6 | ADD install /install 7 | RUN /install/oracle_install.sh -------------------------------------------------------------------------------- /oracle-11g-ee-base/install/oracle-11g-ee.rsp: -------------------------------------------------------------------------------- 1 | 2 | #------------------------------------------------------------------------------- 3 | # Do not change the following system generated value. 4 | #------------------------------------------------------------------------------- 5 | oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0 6 | 7 | #------------------------------------------------------------------------------- 8 | # The installation option can be one of the following 9 | # 1. INSTALL_DB_SWONLY 10 | # 2. INSTALL_DB_AND_CONFIG 11 | # 3. UPGRADE_DB 12 | #------------------------------------------------------------------------------- 13 | oracle.install.option=INSTALL_DB_SWONLY 14 | 15 | #------------------------------------------------------------------------------- 16 | # This variable holds the hostname of the system as set by the user. 17 | # It can be used to force the installation to use an alternative 18 | # hostname rather than using the first hostname found on the system 19 | # (e.g., for systems with multiple hostnames and network interfaces). 20 | #------------------------------------------------------------------------------- 21 | ORACLE_HOSTNAME=3568707241aa 22 | 23 | #------------------------------------------------------------------------------- 24 | # Unix group to be set for the inventory directory. 25 | #------------------------------------------------------------------------------- 26 | UNIX_GROUP_NAME=dba 27 | 28 | #------------------------------------------------------------------------------- 29 | # Inventory location. 30 | #------------------------------------------------------------------------------- 31 | INVENTORY_LOCATION=/u01/app/oraInventory 32 | 33 | #------------------------------------------------------------------------------- 34 | # Specify the languages in which the components will be installed. 35 | # 36 | # en : English ja : Japanese 37 | # fr : French ko : Korean 38 | # ar : Arabic es : Latin American Spanish 39 | # bn : Bengali lv : Latvian 40 | # pt_BR: Brazilian Portuguese lt : Lithuanian 41 | # bg : Bulgarian ms : Malay 42 | # fr_CA: Canadian French es_MX: Mexican Spanish 43 | # ca : Catalan no : Norwegian 44 | # hr : Croatian pl : Polish 45 | # cs : Czech pt : Portuguese 46 | # da : Danish ro : Romanian 47 | # nl : Dutch ru : Russian 48 | # ar_EG: Egyptian zh_CN: Simplified Chinese 49 | # en_GB: English (Great Britain) sk : Slovak 50 | # et : Estonian sl : Slovenian 51 | # fi : Finnish es_ES: Spanish 52 | # de : German sv : Swedish 53 | # el : Greek th : Thai 54 | # iw : Hebrew zh_TW: Traditional Chinese 55 | # hu : Hungarian tr : Turkish 56 | # is : Icelandic uk : Ukrainian 57 | # in : Indonesian vi : Vietnamese 58 | # it : Italian 59 | # 60 | # Example : SELECTED_LANGUAGES=en,fr,ja 61 | #------------------------------------------------------------------------------- 62 | SELECTED_LANGUAGES=ar,bn,pt_BR,bg,fr_CA,ca,hr,cs,da,nl,ar_EG,en,en_GB,et,fi,fr,de,el,iw,hu,is,in,it,ja,ko,es,lv,lt,ms,es_MX,no,pl,pt,ro,ru,zh_CN,sk,sl,es_ES,sv,th,zh_TW,tr,uk,vi 63 | 64 | #------------------------------------------------------------------------------- 65 | # Complete path of the Oracle Home 66 | #------------------------------------------------------------------------------- 67 | ORACLE_HOME=/u01/app/oracle/product/11.2.0/EE 68 | 69 | #------------------------------------------------------------------------------- 70 | # Complete path of the Oracle Base. 71 | #------------------------------------------------------------------------------- 72 | ORACLE_BASE=/u01/app/oracle 73 | 74 | #------------------------------------------------------------------------------- 75 | # Installation Edition of the component. 76 | # 77 | # The value should contain only one of these choices. 78 | # EE : Enterprise Edition 79 | # SE : Standard Edition 80 | # SEONE : Standard Edition One 81 | # PE : Personal Edition (WINDOWS ONLY) 82 | #------------------------------------------------------------------------------- 83 | oracle.install.db.InstallEdition=EE 84 | 85 | #------------------------------------------------------------------------------- 86 | # This property is considered only if InstallEdition is EE. 87 | # 88 | # true : Components mentioned as part of 'customComponents' property 89 | # are considered for install. 90 | # false : Value for 'customComponents' is not considered. 91 | #------------------------------------------------------------------------------- 92 | oracle.install.db.isCustomInstall=false 93 | 94 | #------------------------------------------------------------------------------- 95 | # This property is considered only if 'IsCustomInstall' is set to true 96 | # 97 | # Description: List of Enterprise Edition Options you would like to install. 98 | # 99 | # The following choices are available. You may specify any 100 | # combination of these choices. The components you choose should 101 | # be specified in the form "internal-component-name:version" 102 | # Below is a list of components you may specify to install. 103 | # 104 | # oracle.oraolap:11.2.0.0.2 - Oracle OLAP 105 | # oracle.rdbms.dm:11.2.0.0.2 - Oracle Data Mining RDBMS Files 106 | # oracle.rdbms.dv:11.2.0.0.2 - Oracle Database Vault option 107 | # oracle.rdbms.lbac:11.2.0.0.2 - Oracle Label Security 108 | # oracle.rdbms.partitioning:11.2.0.0.2 - Oracle Partitioning 109 | # oracle.rdbms.rat:11.2.0.0.2 - Oracle Real Application Testing 110 | # oracle.clrintg.ode_net:11.2.0.0.2 - Oracle Database Extensions for .NET 1.x (Windows) 111 | # oracle.clrintg.ode_net_2:11.2.0.0.2 - Oracle Database Extensions for .NET 2.0 (Windows) 112 | #------------------------------------------------------------------------------- 113 | oracle.install.db.customComponents= 114 | 115 | #------------------------------------------------------------------------------- 116 | oracle.install.db.DBA_GROUP=dba 117 | 118 | #------------------------------------------------------------------------------- 119 | oracle.install.db.OPER_GROUP=dba 120 | 121 | #------------------------------------------------------------------------------- 122 | # This variable represents the cluster node names selected by the . 123 | # user for installation 124 | #------------------------------------------------------------------------------- 125 | oracle.install.db.CLUSTER_NODES= 126 | 127 | #------------------------------------------------------------------------------- 128 | # One of the following 129 | # - GENERAL_PURPOSE 130 | # - TRANSACTION_PROCESSING 131 | # - DATAWAREHOUSE 132 | #------------------------------------------------------------------------------- 133 | oracle.install.db.config.starterdb.type=GENERAL_PURPOSE 134 | 135 | #------------------------------------------------------------------------------- 136 | # Global Database Name 137 | #------------------------------------------------------------------------------- 138 | oracle.install.db.config.starterdb.globalDBName= 139 | 140 | #------------------------------------------------------------------------------- 141 | # The Starter Database SID 142 | #------------------------------------------------------------------------------- 143 | oracle.install.db.config.starterdb.SID= 144 | 145 | #------------------------------------------------------------------------------- 146 | # Database character set 147 | # 148 | # One of the following 149 | # AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2, 150 | # EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257, 151 | # BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6, 152 | # AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8, 153 | # IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, 154 | # KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950, 155 | # ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258 156 | #------------------------------------------------------------------------------- 157 | oracle.install.db.config.starterdb.characterSet= 158 | #------------------------------------------------------------------------------- 159 | # Specify the total memory allocation for the database. (in MB) 160 | # Value should be at least 256 MB, and should not exceed the 161 | # total physical memory available on the system. 162 | # Example: oracle.install.db.config.starterdb.memoryLimit=40 163 | #------------------------------------------------------------------------------- 164 | oracle.install.db.config.starterdb.memoryLimit= 165 | oracle.install.db.config.starterdb.memoryOption=false 166 | 167 | #------------------------------------------------------------------------------- 168 | # This variable controls whether to load Example Schemas onto 169 | # the starter database or not. 170 | #------------------------------------------------------------------------------- 171 | oracle.install.db.config.starterdb.installExampleSchemas=false 172 | 173 | #------------------------------------------------------------------------------- 174 | # This include enabling audit settings, configuring password 175 | # profiles and revoking some grants to public. These settings 176 | # are provided by default. You may choose to disable all. 177 | #------------------------------------------------------------------------------- 178 | oracle.install.db.config.starterdb.enableSecuritySettings=true 179 | 180 | #------------------------------------------------------------------------------- 181 | oracle.install.db.config.starterdb.password.ALL= 182 | 183 | #------------------------------------------------------------------------------- 184 | oracle.install.db.config.starterdb.password.SYS= 185 | 186 | #------------------------------------------------------------------------------- 187 | oracle.install.db.config.starterdb.password.SYSTEM= 188 | 189 | #------------------------------------------------------------------------------- 190 | oracle.install.db.config.starterdb.password.SYSMAN= 191 | 192 | #------------------------------------------------------------------------------- 193 | oracle.install.db.config.starterdb.password.DBSNMP= 194 | 195 | #------------------------------------------------------------------------------- 196 | # Can be one of the following 197 | # 1. GRID_CONTROL 198 | # 2. DB_CONTROL 199 | # 200 | oracle.install.db.config.starterdb.control=DB_CONTROL 201 | 202 | #------------------------------------------------------------------------------- 203 | # Determines the Management Service to use if Grid Control 204 | # is selected to manage the database. 205 | #------------------------------------------------------------------------------- 206 | oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL= 207 | 208 | #------------------------------------------------------------------------------- 209 | # Determines whether to receive email notification for 210 | # critical alerts when using DB control. 211 | #------------------------------------------------------------------------------- 212 | oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false 213 | 214 | #------------------------------------------------------------------------------- 215 | oracle.install.db.config.starterdb.dbcontrol.emailAddress= 216 | 217 | #------------------------------------------------------------------------------- 218 | oracle.install.db.config.starterdb.dbcontrol.SMTPServer= 219 | 220 | #------------------------------------------------------------------------------- 221 | oracle.install.db.config.starterdb.automatedBackup.enable=false 222 | 223 | #------------------------------------------------------------------------------- 224 | oracle.install.db.config.starterdb.automatedBackup.osuid= 225 | 226 | #------------------------------------------------------------------------------- 227 | oracle.install.db.config.starterdb.automatedBackup.ospwd= 228 | 229 | #------------------------------------------------------------------------------- 230 | # Can be one of the following 231 | # - FILE_SYSTEM_STORAGE 232 | # - ASM_STORAGE 233 | #------------------------------------------------------------------------------- 234 | oracle.install.db.config.starterdb.storageType= 235 | 236 | #------------------------------------------------------------------------------- 237 | # Database file location: 238 | # directory for datafiles, control files, redo logs. 239 | # 240 | # Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE 241 | #------------------------------------------------------------------------------- 242 | oracle.install.db.config.starterdb.fileSystemStorage.dataLocation= 243 | 244 | #------------------------------------------------------------------------------- 245 | # Backup and recovery location 246 | # 247 | # Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE 248 | #------------------------------------------------------------------------------- 249 | oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation= 250 | 251 | #------------------------------------------------------------------------------- 252 | # Name of ASM disk group to be used for storage. 253 | # 254 | # Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE 255 | #------------------------------------------------------------------------------- 256 | oracle.install.db.config.asm.diskGroup= 257 | 258 | #------------------------------------------------------------------------------- 259 | # Password for ASMSNMP user of the ASM instance. 260 | # 261 | # Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE 262 | #------------------------------------------------------------------------------- 263 | oracle.install.db.config.asm.ASMSNMPPassword= 264 | 265 | #------------------------------------------------------------------------------ 266 | # Specify the My Oracle Support Account Username. 267 | # 268 | # Example : MYORACLESUPPORT_USERNAME=metalink 269 | #------------------------------------------------------------------------------ 270 | MYORACLESUPPORT_USERNAME= 271 | 272 | #------------------------------------------------------------------------------ 273 | # Specify the My Oracle Support Account Username password. 274 | # 275 | # Example : MYORACLESUPPORT_PASSWORD=password 276 | #------------------------------------------------------------------------------ 277 | MYORACLESUPPORT_PASSWORD= 278 | 279 | #------------------------------------------------------------------------------ 280 | # Specify whether to enable the user to set the password for 281 | # My Oracle Support credentials. The value can be either true or false. 282 | # If left blank it will be assumed to be false. 283 | # 284 | # Example : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true 285 | #------------------------------------------------------------------------------ 286 | SECURITY_UPDATES_VIA_MYORACLESUPPORT=false 287 | 288 | #------------------------------------------------------------------------------ 289 | # Specify whether user wants to give any proxy details for connection. 290 | # The value can be either true or false. If left blank it will be assumed 291 | # to be false. 292 | # 293 | # Example : DECLINE_SECURITY_UPDATES=false 294 | #------------------------------------------------------------------------------ 295 | DECLINE_SECURITY_UPDATES=true 296 | 297 | #------------------------------------------------------------------------------ 298 | # Specify the Proxy server name. Length should be greater than zero. 299 | # 300 | # Example : PROXY_HOST=proxy.domain.com 301 | #------------------------------------------------------------------------------ 302 | PROXY_HOST= 303 | 304 | #------------------------------------------------------------------------------ 305 | # Specify the proxy port number. Should be Numeric and atleast 2 chars. 306 | # 307 | # Example : PROXY_PORT=25 308 | #------------------------------------------------------------------------------ 309 | PROXY_PORT= -------------------------------------------------------------------------------- /oracle-11g-ee-base/install/oracle_install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | #Delete limits cause of docker limits issue 6 | cat /etc/security/limits.conf | grep -v oracle | tee /etc/security/limits.conf 7 | 8 | echo 'Downloading linux.x64_11gR2_database_1of2.zip' 9 | wget -q -O linux.x64_11gR2_database_1of2.zip http://10.0.1.4:8080/linux.x64_11gR2_database_1of2.zip 10 | echo 'Downloading linux.x64_11gR2_database_2of2.zip' 11 | wget -q -O linux.x64_11gR2_database_2of2.zip http://10.0.1.4:8080/linux.x64_11gR2_database_2of2.zip 12 | echo 'Unzipping' 13 | unzip -q linux.x64_11gR2_database_1of2.zip 14 | unzip -q linux.x64_11gR2_database_2of2.zip 15 | rm -f linux*.zip 16 | 17 | mv database /home/oracle/ 18 | 19 | su oracle -c 'cd /home/oracle/database && ./runInstaller -ignorePrereq -ignoreSysPrereqs -silent -responseFile /install/oracle-11g-ee.rsp -waitForCompletion 2>&1' 20 | rm -rf /home/oracle/database 21 | 22 | mv /u01/app/oracle/product /u01/app/oracle-product 23 | 24 | #/u01/app/oraInventory/orainstRoot.sh 25 | #/u01/app/oracle/product/11.2.0/EE/root.sh 26 | 27 | 28 | #$ORACLE_HOME/bin/dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname EE.oracle.docker -sid EE -responseFile NO_VALUE -totalMemory 2048 -emConfiguration LOCAL -sysPassword oracle -systemPassword oracle -dbsnmpPassword oracle 29 | --------------------------------------------------------------------------------