当前位置:网站首页>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 :
边栏推荐
- 请问,redis没有消费消息,都在redis里堆着是怎么回事?用的是cerely 。
- FCOS3D label assignment
- Environment configuration of lavarel env
- Interface automation test - solution of data dependency between interfaces
- The meaning of variables starting with underscores in PHP
- js 获取当前时间 年月日,uniapp定位 小程序打开地图选择地点
- Excuse me, when using Flink SQL sink data to Kafka, the execution is successful, but there is no number in Kafka
- 属性关键字Aliases,Calculated,Cardinality,ClientName
- libSGM的horizontal_path_aggregation程序解读
- Parsing of XML files
猜你喜欢

使用day.js让时间 (显示为几分钟前 几小时前 几天前 几个月前 )

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

通过 iValueConverter 给datagrid 的背景颜色 动态赋值

Selenium库

UML 顺序图(时序图)

手把手教会:XML建模

AutoCAD - how to input angle dimensions and CAD diameter symbols greater than 180 degrees?

常用数字信号编码之反向不归零码码、曼彻斯特编码、差分曼彻斯特编码

The delivery efficiency is increased by 52 times, and the operation efficiency is increased by 10 times. See the compilation of practical cases of financial cloud native technology (with download)

Wired network IP address of VMware shared host
随机推荐
Data flow diagram, data dictionary
Laravel form builder uses
FCOS3D label assignment
Redis 核心数据结构 & Redis 6 新特性详
Arm cortex-a9, mcimx6u7cvm08ad processor application
How does MySQL control the number of replace?
PostgreSQL array type, each splice
Cesium 已知一点经纬度和距离求另一个点的经纬度
Common response status codes
Dry goods | summarize the linkage use of those vulnerability tools
接口自动化测试-接口间数据依赖问题解决
Selenium Library
ARM Cortex-A9,MCIMX6U7CVM08AD 处理器应用
js 获取当前时间 年月日,uniapp定位 小程序打开地图选择地点
SSRF vulnerability file pseudo protocol [netding Cup 2018] fakebook1
wpf dataGrid 实现单行某个数据变化 ui 界面随之响应
交换机和路由器的异同
IP and long integer interchange
C # use TCP protocol to establish connection
Seven propagation behaviors of transactions