当前位置:网站首页>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 :
dockerexec-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 /assysdba
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 :
边栏推荐
- Common response status codes
- 请问,如图,pyhon云函数提示使用了 pymysql模块,这个是怎么回事?
- Csma/cd carrier monitoring multipoint access / collision detection protocol
- Evolution of customer service hotline of dewu
- PostgreSQL array type, each splice
- 请问,PTS对数据库压测有好方案么?
- 数据流图,数据字典
- 請問,在使用flink sql sink數據到kafka的時候出現執行成功,但是kafka裏面沒有數
- 2022-7-6 sigurg is used to receive external data. I don't know why it can't be printed out
- 属性关键字Aliases,Calculated,Cardinality,ClientName
猜你喜欢

js 获取当前时间 年月日,uniapp定位 小程序打开地图选择地点

高等數學---第八章多元函數微分學1

Redis 核心数据结构 & Redis 6 新特性详

Flask session forged hctf admin

手把手教会:XML建模

UML 状态图

Vmware 与主机之间传输文件

Use day JS let time (displayed as minutes, hours, days, months, and so on)

Help tenants

2022-7-7 Leetcode 34. Find the first and last positions of elements in a sorted array
随机推荐
请问,PTS对数据库压测有好方案么?
Seven propagation behaviors of transactions
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
call undefined function openssl_ cipher_ iv_ length
Social responsibility · value co creation, Zhongguancun network security and Information Industry Alliance dialogue, wechat entrepreneur Haitai Fangyuan, chairman Mr. Jiang Haizhou
杭电oj2054 A == B ? ???
高等數學---第八章多元函數微分學1
IP address home location query
Laravel5 call to undefined function openssl cipher iv length() 报错 PHP7开启OpenSSL扩展失败
请问,如图,pyhon云函数提示使用了 pymysql模块,这个是怎么回事?
Take you to master the three-tier architecture (recommended Collection)
Parameter keywords final, flags, internal, mapping keywords internal
Common response status codes
c#利用 TCP 协议建立连接
UML state diagram
AI人才培育新思路,这场直播有你关心的
Es log error appreciation -limit of total fields
一个简单LEGv8处理器的Verilog实现【四】【单周期实现基础知识及模块设计讲解】
搜索框效果的实现【每日一题】
[high frequency interview questions] difficulty 2.5/5, simple combination of DFS trie template level application questions