Pull Image#
docker pull sath89/oracle-12c
Run Container#
docker run -d -p 8080:8080 -p 1521:1521 sath89/oracle-12c
During this period, the wait time is relatively long. Taking I5-12600KF, 32G (DDR4-3200), 1TSSD as an example, the measured complete startup time is 8 minutes and 50 seconds:
2022-12-13 19:39:30 Database not initialized. Initializing database.
2022-12-13 19:39:30 Starting tnslsnr
2022-12-13 19:39:54 Copying database files
2022-12-13 19:39:54 1% complete
2022-12-13 19:40:19 3% complete
2022-12-13 19:40:19 11% complete
2022-12-13 19:40:59 18% complete
2022-12-13 19:41:34 37% complete
2022-12-13 19:41:34 Creating and starting Oracle instance
2022-12-13 19:42:00 40% complete
2022-12-13 19:42:10 45% complete
2022-12-13 19:43:48 50% complete
2022-12-13 19:43:48 55% complete
2022-12-13 19:43:49 56% complete
2022-12-13 19:43:49 60% complete
2022-12-13 19:43:49 62% complete
2022-12-13 19:43:49 Completing Database Creation
2022-12-13 19:43:49 66% complete
2022-12-13 19:43:49 70% complete
2022-12-13 19:43:49 73% complete
2022-12-13 19:43:49 85% complete
2022-12-13 19:45:46 96% complete
2022-12-13 19:45:46 100% complete
2022-12-13 19:45:46 Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log" for further details.
2022-12-13 19:45:47 Configuring Apex console
2022-12-13 19:47:20 Database initialized. Please visit http://#containeer:8080/em http://#containeer:8080/apex for extra configuration if needed
2022-12-13 19:47:20 Starting web management console
2022-12-13 19:47:20
2022-12-13 19:47:20 PL/SQL procedure successfully completed.
2022-12-13 19:47:20
2022-12-13 19:47:20 Starting import from '/docker-entrypoint-initdb.d':
2022-12-13 19:47:20 Import finished
2022-12-13 19:47:20
2022-12-13 19:47:20 Database ready to use. Enjoy! ;)
2022-12-13 19:47:20 ls: cannot access /docker-entrypoint-initdb.d/*: No such file or directory
Access Verification#
HTTP Access#
The docker startup command carries the web mapping of 8080, you can access http://localhost:8080/apex to see if it starts successfully,
- Default account:
ADMIN
- Default password:
0Racle$
Logging in will require entering a new password that meets the rules.
Navicat Access#
Configure as follows:
- Connection Type:
Basic
- Host:
localhost
- Port:
1521
- Service Name:
xe
- Service Type:
SID
- Username:
oracle
The default connection configuration content is:
hostname: localhost
port: 1521
sid: xe
service name: xe.oracle.docker
username: system
password: oracle
This concludes the installation of Docker Installing Oracle 12c
.