当前位置:网站首页>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 :
边栏推荐
- Arm cortex-a9, mcimx6u7cvm08ad processor application
- The reason why data truncated for column 'xxx' at row 1 appears in the MySQL import file
- Lavarel之环境配置 .env
- VSCode 配置使用 PyLint 语法检查器
- 【AI实战】应用xgboost.XGBRegressor搭建空气质量预测模型(二)
- Details of redis core data structure & new features of redis 6
- 高等數學---第八章多元函數微分學1
- UML 状态图
- Laravel form builder uses
- 搜索引擎接口
猜你喜欢
Assign a dynamic value to the background color of DataGrid through ivalueconverter
Advanced Mathematics - Chapter 8 differential calculus of multivariate functions 1
最长上升子序列模型 AcWing 1014. 登山
带你掌握三层架构(建议收藏)
Vscode configuration uses pylint syntax checker
Evolution of customer service hotline of dewu
Parsing of XML files
最长上升子序列模型 AcWing 482. 合唱队形
UML 状态图
js 获取当前时间 年月日,uniapp定位 小程序打开地图选择地点
随机推荐
Details of redis core data structure & new features of redis 6
接口自动化测试-接口间数据依赖问题解决
2022-7-6 beginner redis (I) download, install and run redis under Linux
杭电oj2092 整数解
PERT图(工程网络图)
ES日志报错赏析-Limit of total fields
Lavarel之环境配置 .env
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
wpf dataGrid 实现单行某个数据变化 ui 界面随之响应
Excuse me, why is it that there are no consumption messages in redis and they are all piled up in redis? Cerely is used.
请问,我kafka 3个分区,flinksql 任务中 写了 join操作,,我怎么单独给join
3D Detection: 3D Box和点云 快速可视化
现在网上开户安全么?那么网上开户选哪个证券公司?
NDK beginner's study (1)
Laravel form builder uses
Environment configuration of lavarel env
Laravel5 call to undefined function OpenSSL cipher IV length() error php7 failed to open OpenSSL extension
用例图
请问,PTS对数据库压测有好方案么?
Excellent open source system recommendation of ThinkPHP framework