Analyze the problem of pulling down the Oracle 11g image configuration in Docker

Analyze the problem of pulling down the Oracle 11g image configuration in Docker

1. Pull the image

docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g

Image details: https://dev.aliyun.com/detail.html?spm=5176.1972343.2.8.E6Cbr1&repoId=1969

Since I have already pulled the image, it is shown here as existing. Check the image information

docker images

2. Create and container information

docker run -d -p 1521:1521 --name oracle_11g registry.aliyuncs.com/helowin/oracle_11g

Since my container has been created here (the command is as expected, the container name is oracle_11g), I can start it directly here.

docker start oracle_11g

3. Enter the console to set user information

docker exec -it oracle_11g bash

Log in to sqlplus. It is found that the sqlplus command is not available here, so relevant configuration is required. The steps are as follows:

(1) Switch to root user mode

su root

Enter the password helowin

(2) Edit the profile file to configure the ORACLE environment variables

vi /etc/profile and add the following command at the end of the file

export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2

export ORACLE_SID=helowin

export PATH=$ORACLE_HOME/bin:$PATH

Exit and save.

(3) Software connection

ln -s $ORACLE_HOME/bin/sqlplus /usr/bin

Because I have already created it, the package flag already exists.

(4) Switch to oracle user

Log in to sqlplus and modify the passwords of sys and system users

sqlplus /nolog

conn /as sysdba

Then execute the following command

alter user system identified by oracle;

alter user sys identified by oracle;

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

4. Login verification

Login successful

5. Submit changes

docker commit container name or ID new image name: version

This is the end of this article about Docker to pull down the Oracle 11g image configuration. For more relevant Docker Oracle 11g image configuration content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed tutorial on Docker pulling Oracle 11g image configuration
  • How to install Oracle_11g using Docker
  • Detailed explanation of installing and configuring Oracle database in Docker
  • Tutorial on installing and configuring Oracle on Docker

<<:  What knowledge systems do web designers need?

>>:  MySQL foreign key constraint (FOREIGN KEY) case explanation

Recommend

How to use Cron Jobs to execute PHP regularly under Cpanel

Open the cpanel management backend, under the &qu...

Knowledge about MySQL Memory storage engine

Knowledge points about Memory storage engine The ...

Implementation of nginx worker process loop

After the worker process is started, it will firs...

MySQL index failure principle

Table of contents 1. Reasons for index failure 2....

How to solve the problem of case insensitivity in MySQL queries

question Recently, when I was completing a practi...

Summary of Linux file basic attributes knowledge points

The Linux system is a typical multi-user system. ...

Take you to understand MySQL character set settings in 5 minutes

Table of contents 1. Content Overview 2. Concepts...

MySQL uses UNIQUE to implement non-duplicate data insertion

SQL UNIQUE constraint The UNIQUE constraint uniqu...

Vue echarts realizes dynamic display of bar chart

This article shares the specific code of vue echa...

Web page HTML ordered list ol and unordered list ul

Lists for organizing data After learning so many ...

JS array loop method and efficiency analysis comparison

Array Methods JavaScript has provided many array ...

Press Enter to automatically submit the form. Unexpected discovery

Copy code The code is as follows: <!DOCTYPE ht...

SQL Server Comment Shortcut Key Operation

Batch comments in SQL Server Batch Annotation Ctr...