当前位置:网站首页>Docker deploy Oracle
Docker deploy Oracle
2022-07-07 14:15:00 【Today, the flowers are sad】
1. Pull the mirror image
docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
2. Start the container
docker run -d -p 1521:1521 --name oracle11g registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
perform docker ps Command to confirm that the container started successfully
3. To configure , First execute the following command to enter oracle In a container environment :
docker
exec
-it oracle11g bash
Then execute the following command to switch to oracle Database root Under the user ( The password for :helowin)
su root
edit profile file :
vi /etc/profile
Add the following at the end ORACLE Save the environment variable parameters and exit :
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
export ORACLE_SID=helowin
export PATH=
$ORACLE_HOME
/bin:
$PATH
Then execute the following command to create a soft connection :
ln -s
$ORACLE_HOME
/bin/sqlplus /usr/bin
Then execute the following command to switch to oracle user :
su - oracle
Then execute the following commands to log in sqlplus:
sqlplus /nolog
conn /
as
sysdba
Executing the following command will system and sys The passwords of the two accounts are set to 123456:
alter user system identified by 123456;
alter user sys identified by 123456;
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
We can also execute the following command to unlock scott user , At the same time, set its password to 123456:
alter user scott account unlock;
alter user scott identified by 123456;
commit;
After configuration , Continuous execution of multiple exit You can exit the container , Return to the host .
Connect the test , We use the client tool to connect this Oracle database ( among SID by helowin), It can be found that the connection is successful :
边栏推荐
- docker部署oracle
- C # switch pages through frame and page
- UML 状态图
- ndk初学习(一)
- WPF DataGrid realizes the UI interface to respond to a data change in a single line
- 最长上升子序列模型 AcWing 482. 合唱队形
- [fortress machine] what is the difference between cloud fortress machine and ordinary fortress machine?
- 杭电oj2054 A == B ? ???
- requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement
- 最长上升子序列模型 AcWing 1014. 登山
猜你喜欢
Advanced Mathematics - Chapter 8 differential calculus of multivariate functions 1
2022-7-6 beginner redis (I) download, install and run redis under Linux
Did login metamask
libSGM的horizontal_path_aggregation程序解读
用例图
2022-7-6 Leetcode27. Remove the element - I haven't done the problem for a long time. It's such an embarrassing day for double pointers
Evolution of customer service hotline of dewu
最长上升子序列模型 AcWing 482. 合唱队形
The longest ascending subsequence model acwing 1014 Mountaineering
Hands on Teaching: XML modeling
随机推荐
bashrc与profile
常用数字信号编码之反向不归零码码、曼彻斯特编码、差分曼彻斯特编码
Clickhouse (03) how to install and deploy Clickhouse
mysql ”Invalid use of null value“ 解决方法
Selenium Library
Environment configuration
Reverse non return to zero code, Manchester code and differential Manchester code of common digital signal coding
Lavarel之环境配置 .env
Redis 核心数据结构 & Redis 6 新特性详
Horizontal of libsgm_ path_ Interpretation of aggregation program
用例图
[untitled]
ndk初学习(一)
Selenium库
PERT图(工程网络图)
Battle Atlas: 12 scenarios detailing the requirements for container safety construction
Realization of search box effect [daily question]
Excuse me, when using Flink SQL sink data to Kafka, the execution is successful, but there is no number in Kafka
课设之百万数据文档存取
3D Detection: 3D Box和点云 快速可视化