当前位置:网站首页>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 :
边栏推荐
- 数据流图,数据字典
- SSRF vulnerability file pseudo protocol [netding Cup 2018] fakebook1
- C # switch pages through frame and page
- 参数关键字Final,Flags,Internal,映射关键字Internal
- Leetcode——236. 二叉树的最近公共祖先
- 交换机和路由器的异同
- requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement
- 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
- UML state diagram
- 648. Word replacement: the classic application of dictionary tree
猜你喜欢

AI talent cultivation new ideas, this live broadcast has what you care about

一个简单LEGv8处理器的Verilog实现【四】【单周期实现基础知识及模块设计讲解】

Codes de non - retour à zéro inversés, codes Manchester et codes Manchester différentiels couramment utilisés pour le codage des signaux numériques

Introduction to sakt method

Flask session forged hctf admin

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)

Hands on Teaching: XML modeling

2022-7-6 Leetcode 977. Square of ordered array

The longest ascending subsequence model acwing 1012 Sister cities

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
随机推荐
Codes de non - retour à zéro inversés, codes Manchester et codes Manchester différentiels couramment utilisés pour le codage des signaux numériques
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
2022-7-6 Leetcode 977. Square of ordered array
How can the PC page call QQ for online chat?
Evolution of customer service hotline of dewu
Cesium knows the longitude and latitude of one point and the distance to find the longitude and latitude of another point
Excellent open source system recommendation of ThinkPHP framework
Did login metamask
现在网上开户安全么?那么网上开户选哪个证券公司?
最长上升子序列模型 AcWing 1012. 友好城市
648. Word replacement: the classic application of dictionary tree
MySQL "invalid use of null value" solution
UML 状态图
Laravel5 call to undefined function openssl cipher iv length() 报错 PHP7开启OpenSSL扩展失败
call undefined function openssl_cipher_iv_length
Es log error appreciation -limit of total fields
Parameter keywords final, flags, internal, mapping keywords internal
Is it safe to open an account online now? Which securities company should I choose to open an account online?
mysql ”Invalid use of null value“ 解决方法
[high frequency interview questions] difficulty 2.5/5, simple combination of DFS trie template level application questions