{"id":17287870,"url":"https://github.com/wscherphof/oracle-12c","last_synced_at":"2025-04-14T11:06:47.767Z","repository":{"id":20604346,"uuid":"23885344","full_name":"wscherphof/oracle-12c","owner":"wscherphof","description":"Docker image with Oracle database server on Oracle Linux. Formerly known as https://registry.hub.docker.com/u/wscherphof/oracle-12c/","archived":false,"fork":false,"pushed_at":"2018-08-06T09:00:32.000Z","size":26,"stargazers_count":123,"open_issues_count":19,"forks_count":94,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-14T11:06:43.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wscherphof.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-10T17:54:58.000Z","updated_at":"2024-08-12T19:14:49.000Z","dependencies_parsed_at":"2022-08-21T05:20:07.166Z","dependency_job_id":null,"html_url":"https://github.com/wscherphof/oracle-12c","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wscherphof%2Foracle-12c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wscherphof%2Foracle-12c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wscherphof%2Foracle-12c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wscherphof%2Foracle-12c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wscherphof","download_url":"https://codeload.github.com/wscherphof/oracle-12c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868768,"owners_count":21174757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T10:06:43.921Z","updated_at":"2025-04-14T11:06:47.747Z","avatar_url":"https://github.com/wscherphof.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instant Oracle datase server\nA [Docker](https://www.docker.com/) [image](https://registry.hub.docker.com/u/wscherphof/oracle-12c/) with [Oracle Database 12c Enterprise Edition Release 12.1.0.2.0](http://www.oracle.com/technetwork/database/enterprise-edition/overview/index.html) running in [Oracle Linux 7](http://www.oracle.com/us/technologies/linux/overview/index.html)\n- Default ORCL database on port 1521\n\n## Install\n1. [Install Docker](https://docs.docker.com/installation/#installation)\n1. `$ docker pull wscherphof/oracle-12c`\n2. That worked once, but the image was removed by Docker Support on Oracle's request, so you'll need to [build](https://github.com/wscherphof/oracle-12c#build) it yourself\n\n## Run\nCreate and run a container named orcl:\n```\n$ docker run --shm-size=4g -dP --name orcl wscherphof/oracle-12c\n989f1b41b1f00c53576ab85e773b60f2458a75c108c12d4ac3d70be4e801b563\n```\n\n## Connect\nThe default password for the `sys` user is `change_on_install`, and for `system` it's `manager`\nThe `ORCL` database port `1521` is bound to the Docker host through `run -P`. To find the host's port:\n```\n$ docker port orcl 1521\n0.0.0.0:49189\n```\nSo from the host, you can connect with `system/manager@localhost:49189/orcl`\nThough if using [Boot2Docker](https://github.com/boot2docker/boot2docker), you need the actual ip address instead of `localhost`:\n```\n$ boot2docker ip\n\nThe VM's Host only interface IP address is: 192.168.59.103\n\n```\nIf you're looking for a databse client, consider [sqlplus](http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html)\n```\n$ sqlplus system/manager@192.168.59.103:49189/orcl\n\nSQL*Plus: Release 11.2.0.4.0 Production on Mon Sep 15 14:40:52 2014\n\nCopyright (c) 1982, 2013, Oracle.  All rights reserved.\n\n\nConnected to:\nOracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production\nWith the Partitioning, OLAP, Advanced Analytics and Real Application Testing options\n\nSQL\u003e |\n```\n\n## Monitor\nThe container runs a process that starts up the database, and then continues to check each minute if the database is still running, and start it if it's not. To see the output of that process:\n```\n$ docker logs orcl\n\nLSNRCTL for Linux: Version 12.1.0.2.0 - Production on 16-SEP-2014 11:34:56\n\nCopyright (c) 1991, 2014, Oracle.  All rights reserved.\n\nStarting /u01/app/oracle/product/12.1.0/dbhome_1/bin/tnslsnr: please wait...\n\nTNSLSNR for Linux: Version 12.1.0.2.0 - Production\nLog messages written to /u01/app/oracle/diag/tnslsnr/e90ad7cc75a1/listener/alert/log.xml\nListening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e90ad7cc75a1)(PORT=1521)))\n\nConnecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))\nSTATUS of the LISTENER\n------------------------\nAlias                     LISTENER\nVersion                   TNSLSNR for Linux: Version 12.1.0.2.0 - Production\nStart Date                16-SEP-2014 11:34:56\nUptime                    0 days 0 hr. 0 min. 0 sec\nTrace Level               off\nSecurity                  ON: Local OS Authentication\nSNMP                      OFF\nListener Log File         /u01/app/oracle/diag/tnslsnr/e90ad7cc75a1/listener/alert/log.xml\nListening Endpoints Summary...\n  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e90ad7cc75a1)(PORT=1521)))\nThe listener supports no services\nThe command completed successfully\n\nSQL*Plus: Release 12.1.0.2.0 Production on Tue Sep 16 11:34:56 2014\n\nCopyright (c) 1982, 2014, Oracle.  All rights reserved.\n\nConnected to an idle instance.\nORACLE instance started.\n\nTotal System Global Area 1073741824 bytes\nFixed Size\t\t    2932632 bytes\nVariable Size\t\t  721420392 bytes\nDatabase Buffers\t  343932928 bytes\nRedo Buffers\t\t    5455872 bytes\nDatabase mounted.\nDatabase opened.\nDisconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production\nWith the Partitioning, OLAP, Advanced Analytics and Real Application Testing options\n\nLSNRCTL for Linux: Version 12.1.0.2.0 - Production on 16-SEP-2014 11:35:24\n\nCopyright (c) 1991, 2014, Oracle.  All rights reserved.\n\nConnecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))\nSTATUS of the LISTENER\n------------------------\nAlias                     LISTENER\nVersion                   TNSLSNR for Linux: Version 12.1.0.2.0 - Production\nStart Date                16-SEP-2014 11:34:56\nUptime                    0 days 0 hr. 0 min. 28 sec\nTrace Level               off\nSecurity                  ON: Local OS Authentication\nSNMP                      OFF\nListener Log File         /u01/app/oracle/diag/tnslsnr/e90ad7cc75a1/listener/alert/log.xml\nListening Endpoints Summary...\n  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=e90ad7cc75a1)(PORT=1521)))\nServices Summary...\nService \"ORCL\" has 1 instance(s).\n  Instance \"ORCL\", status READY, has 1 handler(s) for this service...\nThe command completed successfully\n```\n\n## Enter\nThere's no ssh daemon or similar configured in the image. If you need a command prompt inside the container, consider [nsenter](https://github.com/jpetazzo/nsenter) (and mind the [Boot2Docker note](https://github.com/jpetazzo/nsenter#docker-enter-with-boot2docker) there)\n\n## Build\nShould you want to modify \u0026 build your own image:\n\n#### Step 1\n1) Download `linuxamd64_12102_database_1of2.zip` \u0026 `linuxamd64_12102_database_2of2.zip` from [Oracle Tech Net](http://www.oracle.com/technetwork/database/enterprise-edition/downloads/database12c-linux-download-2240591.html)\n\n2) Put the 2 zip files in the `step1` directory\n\n3) `cd` to the `oracle-12c` repo directory\n\n4) `$ docker build -t oracle-12c:step1 step1`\n\n5) `$ docker run --shm-size=4g -ti --name step1 oracle-12c:step1 /bin/bash`\n\n6) ` # /tmp/install/install` (takes about 5m)\n```\nTue Sep 16 08:48:00 UTC 2014\nStarting Oracle Universal Installer...\n\nChecking Temp space: must be greater than 500 MB.   Actual 40142 MB    Passed\nChecking swap space: must be greater than 150 MB.   Actual 1392 MB    Passed\nPreparing to launch Oracle Universal Installer from /tmp/OraInstall2014-09-16_08-48-01AM. Please wait ...[root@51905aa48207 /]# You can find the log of this install session at:\n /u01/app/oraInventory/logs/installActions2014-09-16_08-48-01AM.log\nThe installation of Oracle Database 12c was successful.\nPlease check '/u01/app/oraInventory/logs/silentInstall2014-09-16_08-48-01AM.log' for more details.\n\nAs a root user, execute the following script(s):\n\t1. /u01/app/oracle/product/12.1.0/dbhome_1/root.sh\n\n\n\nSuccessfully Setup Software.\nAs install user, execute the following script to complete the configuration.\n\t1. /u01/app/oracle/product/12.1.0/dbhome_1/cfgtoollogs/configToolAllCommands RESPONSE_FILE=\u003cresponse_file\u003e\n\n \tNote:\n\t1. This script must be run on the same host from where installer was run. \n\t2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation).\n\n```\n7) ` \u003center\u003e`\n\n8) ` # exit` (the scripts mentioned are executed as part of the step2 build)\n\n9) `$ docker commit step1 oracle-12c:installed`\n\n#### Step 2\n1) `$ docker build -t oracle-12c:step2 step2`\n\n2) `$ docker run --shm-size=4g -ti --name step2 oracle-12c:step2 /bin/bash`\n\n3) ` # /tmp/create` (takes about 15m)\n```\nTue Sep 16 11:07:30 UTC 2014\nCreating database...\n\nSQL*Plus: Release 12.1.0.2.0 Production on Tue Sep 16 11:07:30 2014\n\nCopyright (c) 1982, 2014, Oracle.  All rights reserved.\n\nConnected to an idle instance.\n\nFile created.\n\nORACLE instance started.\n\nTotal System Global Area 1073741824 bytes\nFixed Size\t\t    2932632 bytes\nVariable Size\t\t  721420392 bytes\nDatabase Buffers\t  343932928 bytes\nRedo Buffers\t\t    5455872 bytes\n\nDatabase created.\n\n\nTablespace created.\n\n\nTablespace created.\n\nDisconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production\nWith the Partitioning, OLAP, Advanced Analytics and Real Application Testing options\n\nTue Sep 16 11:07:50 UTC 2014\nCreating password file...\n\nTue Sep 16 11:07:50 UTC 2014\nRunning catalog.sql...\n\nTue Sep 16 11:08:51 UTC 2014\nRunning catproc.sql...\n\nTue Sep 16 11:19:38 UTC 2014\nRunning pupbld.sql...\n\nTue Sep 16 11:19:38 UTC 2014\nCreate is done; commit the container now\n```\n4) ` # exit`\n\n5) `$ docker commit step2 oracle-12c:created`\n\n#### Step 3\n1) `$ docker build -t oracle-12c step3`\n\n## License\n[GNU Lesser General Public License (LGPL)](http://www.gnu.org/licenses/lgpl-3.0.txt) for the contents of this GitHub repo; for Oracle's database software, see their [Licensing Information](http://docs.oracle.com/database/121/DBLIC/toc.htm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwscherphof%2Foracle-12c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwscherphof%2Foracle-12c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwscherphof%2Foracle-12c/lists"}