当前位置:网站首页>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 :
边栏推荐
- 内存溢出和内存泄漏的区别
- IP address home location query full version
- 2022-7-7 Leetcode 844. Compare strings with backspace
- Leetcode——剑指 Offer 05. 替换空格
- PHP中用下划线开头的变量含义
- Laravel form builder uses
- Clickhouse (03) how to install and deploy Clickhouse
- 使用day.js让时间 (显示为几分钟前 几小时前 几天前 几个月前 )
- The longest ascending subsequence model acwing 1012 Sister cities
- Supply chain supply and demand estimation - [time series]
猜你喜欢
Vscode configuration uses pylint syntax checker
Redis 核心数据结构 & Redis 6 新特性详
常用數字信號編碼之反向不歸零碼碼、曼徹斯特編碼、差分曼徹斯特編碼
Take you to master the three-tier architecture (recommended Collection)
Best practice | using Tencent cloud AI willingness to audit as the escort of telephone compliance
Introduction to sakt method
Redis can only cache? Too out!
AI人才培育新思路,这场直播有你关心的
Reverse non return to zero code, Manchester code and differential Manchester code of common digital signal coding
UML 顺序图(时序图)
随机推荐
PC端页面如何调用QQ进行在线聊天?
请问,在使用flink sql sink数据到kafka的时候出现执行成功,但是kafka里面没有数
2022-7-6 Leetcode 977. Square of ordered array
Parameter keywords final, flags, internal, mapping keywords internal
Excuse me, I have three partitions in Kafka, and the flinksql task has written the join operation. How can I give the join operation alone
Excuse me, as shown in the figure, the python cloud function prompt uses the pymysql module. What's the matter?
最长上升子序列模型 AcWing 482. 合唱队形
【AI实战】应用xgboost.XGBRegressor搭建空气质量预测模型(二)
Horizontal of libsgm_ path_ Interpretation of aggregation program
课设之百万数据文档存取
Hands on Teaching: XML modeling
Cesium knows the longitude and latitude of one point and the distance to find the longitude and latitude of another point
Leetcode——236. 二叉树的最近公共祖先
Bashrc and profile
XML文件的解析操作
UML sequence diagram (sequence diagram)
SAKT方法部分介绍
手里的闲钱是炒股票还是买理财产品好?
The difference between memory overflow and memory leak
手把手教会:XML建模