In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The Oracle environment needs to be used frequently at work, but it takes time to build it each time. I wanted to install oracle vm quickly by using a virtual machine template, but it is also time-consuming to change the environment such as ip, so I wonder if there is a p_w_picpaths that has been done in docker, so I can get the Oracle environment quickly.
Root@- rac1:docker search oracle
INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED
Docker.io docker.io/wnameless/oracle-xe-11g Oracle Express 11g R2 on Ubuntu 16.04 LTS 417 [OK]
Docker.io docker.io/oraclelinux Oracle Linux is an open-source operating s... 304 [OK]
Docker.io docker.io/alexeiled/docker-oracle-xe-11g This is a working (hopefully) Oracle XE 11... 203 [OK]
Docker.io docker.io/sath89/oracle-12c Oracle Standard Edition 12c Release 1 with... 112 [OK]
Docker.io docker.io/sath89/oracle-xe-11g Oracle xe 11g with database files mount su... 91 [OK]
Docker.io docker.io/isuper/java-oracle This repository contains all java releases... 52 [OK]
Docker.io docker.io/jaspeen/oracle-11g Docker p_w_picpath for Oracle 11g database 38 [OK]
Docker.io docker.io/oracle/oraclelinux Oracle Linux is an open-source operating s... 34 [OK]
Docker.io docker.io/ingensi/oracle-jdk Official Oracle JDK installed on centos. 20 [OK]
Docker.io docker.io/airdock/oracle-jdk Docker Image for Oracle Java SDK (8 and 7)... 16 [OK]
Docker.io docker.io/oracle/openjdk Docker p_w_picpaths containing OpenJDK Oracle Linux 15 [OK]
Docker.io docker.io/cogniteev/oracle-java Oracle JDK 6, 7, 8, and 9 based on Ubuntu... 12 [OK]
Docker.io docker.io/n3ziniuka5/ubuntu-oracle-jdk Ubuntu with Oracle JDK. Check tags for ver... 12 [OK]
Docker.io docker.io/andreptb/oracle-java Debian Jessie based p_w_picpath with Oracle JDK... 8 [OK]
Docker.io docker.io/oracle/glassfish GlassFish Java EE Application Server on Or... 8 [OK]
Docker.io docker.io/oracle/nosql Oracle NoSQL on a Docker Image with Oracle... 7 [OK]
Docker.io docker.io/infogene/oracle Image for running Oracle Database 11g Stan... 6 [OK]
Docker.io docker.io/openweb/oracle-tomcat A fork off of Official tomcat p_w_picpath with O... 5 [OK]
Docker.io docker.io/flurdy/oracle-java7 Base p_w_picpath containing Oracle's Java 7 JDK 4 [OK]
Docker.io docker.io/jtech/oracle-jdk A Docker p_w_picpath based on the smallest Linux... 3 [OK]
Docker.io docker.io/davidcaste/debian-oracle-java Oracle Java 8 (and 7) over Debian Jessie 2 [OK]
Docker.io docker.io/kaluzki/oracle kaluzki/oracle 2 [OK]
Docker.io docker.io/clincase/oracle clincase oracle db server p_w_picpath 1 [OK]
Docker.io docker.io/jckrz/debian-oracle-jdk Vanilla Debian + Oracle JDK 1 [OK]
Docker.io docker.io/publicisworldwide/oracle-core This is the core p_w_picpath based on Oracle Lin... 1 [OK]
As you can see, there are many versions, 11gBI 12c.
Here you choose to get version 12c
Root@- rac1:/home/# docker pull sath89/oracle-12c
Using default tag: latest
Latest: Pulling from sath89/oracle-12c
863735b9fd15: Pull complete
4fbaa2f403df: Pull complete
Faadd00cf98e: Downloading [= >] 394.8 MB/2.768 GB
829e2e754405: Download complete
Root@- rac1:/home/# docker p_w_picpaths
REPOSITORY TAG IMAGE ID CREATED SIZE
Docker.io/sath89/oracle-12c latest b8bf52883bc7 5 weeks ago 5.692 GB
Create a container using the 12g p_w_picpath you just downloaded and run the oracle database on it
Docker run-d-p 8080R 8080-p 1521R 1521-v / my/oracle/data:/u01/app/oracle sath89/oracle-12c
[root@-rac1] # docker logs-f ffbeb07058449672c640ddb4e59b8376dae2e3b4dd54142871da7adbc069ee79
Ls: cannot access / u01/app/oracle/oradata: No such file or directory
Database not initialized. Initializing database.
Starting tnslsnr
Copying database files
1% complete
37% complete
Creating and starting Oracle instance
40% complete
45% complete
62% complete
Completing Database Creation
66% complete
100% complete
Look at the log file "/ u01/app/oracle/cfgtoollogs/dbca/xe/xe.log" for further details.
Configuring Apex console
Database initialized. Please visit http://#containeer:8080/em http://#containeer:8080/apex for extra configuration if needed
Starting web management console
PL/SQL procedure successfully completed.
Starting import from'/ docker-entrypoint-initdb.d':
Found file / docker-entrypoint-initdb.d//docker-entrypoint-initdb.d/*
[IMPORT] / entrypoint.sh: ignoring / docker-entrypoint-initdb.d/*
Import finished
Database ready to use. Enjoy!;)
At this point, the Oracle instance has been started.
You can see that the created container is already running
[root@-rac1] ~ $docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9e893d773494 sath89/oracle-12c "/ entrypoint.sh" 15 minutes ago Up 15 minutes 0.0.0.0 minutes ago Up 1521-> 1521/tcp, 0.0.0.0 minutes ago Up 8080-> 8080/tcp clever_chandrasekhar
Enter oracle container
[root@-rac1] ~ $docker exec-it 9e893d773494 / bin/bash
Root@9e893d773494:/# su oracle
Oracle@9e893d773494:~$ $ORACLE_HOME/bin/sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Fri Feb 24 03:03:00 2017
Copyright (c) 1982, 2014, Oracle. All rights reserved.
SQL >
The instance name, user name, and password used by Oracle are as follows
-
Hostname: localhost
Port: 1521
Sid: xe
Username: system
Password: oracle
-
Then you can use Oracle12C quickly.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.