当前位置:网站首页>Startup and shutdown of CDB instances
Startup and shutdown of CDB instances
2022-07-05 18:47:00 【User 8006012】
1.1 close cdb example
[email protected]> show con_name;
[email protected]> shutdown immediate;
View background processes
[[email protected] ~]$ ps -ef | grep ora_ | grep -v grep
1.2 start-up cdb example
[[email protected] ~]$ export ORACLE_SID=cdb1
[[email protected] ~]$ sqlplus / as sysdba
Start the database instance to nomount state
[email protected]> startup nomount;
View instance status
[email protected]> select instance_name,status from v$instance;
see v$pdbs Dynamic performance view , Show no results
[email protected]> select name,con_id,open_mode from v$pdbs;
1.3 mount load CDB
from nomount Switch database instance to mount state
[email protected]> alter database mount;
[email protected]> select instance_name,status from v$instance;
see pdb situation , Show pdb Also in mounted state
[email protected]> col name for a10
[email protected]> select name,con_id,open_mode from v$pdbs;
[email protected]> show pdbs
1.4 open open CDB
open Open the database instance
[email protected]> alter database open;
[email protected]> select name,status from v$instance;
[email protected]> show pdbs
1.5 Open and close PDB
1.5.1 see pdb state
[email protected]> show pdbs
cdb be in open In the state of , pdb Default to mounted state ( seeds pdb PDB$SEED Throughout read only state )
1.5.2 pdb In the operation open pdb
Switch to pdb1
[email protected]> conn sys/[email protected] as sysdba
[email protected]> show pdbs
open open pdb1
[email protected]> alter database open;
[email protected]> show pdbs;
SQL>CONNECT [email protected] AS SYSDBA
SQL> ALTER PLUGGGABLE DATABASE ALL OPEN;
SQL> select name,con_id,open_mode from v$pdbs;
1.5.3 pdb In the operation close pdb
pdb1 Middle execution command
[email protected]> show pdbs;
[email protected]> shutdown immediate;
[email protected]> show pdbs
1.5.4 cdb In the operation open pdb
[email protected]> conn / as sysdba
[email protected]> show pdbs
stay cdb Use in alter pluggable database sentence open open pdb
[email protected]> alter pluggable database pdb1 open;
[email protected]> show pdbs
1.5.5 cdb In the operation close pdb
Use alter pluggable database Statement closing pdb
[email protected]> alter pluggable database pdb1 close immediate;
[email protected]> show pdbs
1.5.6 cdb In the operation Open all non seeds pdb
[email protected]> alter pluggable database all open;
[email protected]> show pdbs;
1.5.7 Turn on automatically pdb
1.5.7.1 To configure CDB open after PDB open
At present pdb1 open read write state
[email protected]> show pdbs
[email protected]> alter pluggable database pdb1 save state;
边栏推荐
- c期末复习
- 集合处理的利器
- How to obtain the coordinates of the aircraft passing through both ends of the radar
- FCN: Fully Convolutional Networks for Semantic Segmentation
- Oracle日期格式转换 to_date,to_char,to_timetamp 相互转换
- XML基础知识概念
- Deep copy and shallow copy [interview question 3]
- Precautions for RTD temperature measurement of max31865 module
- How to write good code defensive programming
- 怎么自动安装pythn三方库
猜你喜欢
企业级数据安全,天翼云是这样理解的
[HCIA cloud] [1] definition of cloud computing, what is cloud computing, architecture and technical description of cloud computing, Huawei cloud computing products, and description of Huawei memory DD
2022 Alibaba Android advanced interview questions sharing, 2022 Alibaba hand Taobao Android interview questions
解决 contents have differences only in line separators
Reptile 01 basic principles of reptile
Oracle日期格式转换 to_date,to_char,to_timetamp 相互转换
Shang Silicon Valley Shang preferred project tutorial release
Mysql database indexing tutorial (super detailed)
中文版Postman?功能真心强大!
Pytorch yolov5 training custom data
随机推荐
Mysql database indexing tutorial (super detailed)
Overview of video self supervised learning
鱼和熊掌可以兼得!天翼云弹性裸金属一招鲜!
Is it safe to open an account, register and dig money? Is there any risk? Is it reliable?
websocket 工具的使用
Is it safe for Apple mobile phone to speculate in stocks? Is it a fraud to get new debts?
AI Open2022|基于异质信息网络的推荐系统综述:概念,方法,应用与资源
How to choose the most formal and safe external futures platform?
中文版Postman?功能真心强大!
Exemple Quelle est la relation entre le taux d'échantillonnage, l'échantillon et la durée?
自动化测试的好处
Optimization of middle alignment of loading style of device player in easycvr electronic map
lombok @Builder注解
技术分享 | 常见接口协议解析
How to automatically install pythn third-party libraries
Web3.0时代来了,看天翼云存储资源盘活系统如何赋能新基建(下)
[QNX Hypervisor 2.2用户手册]6.3.2 配置VM
AI表现越差,获得奖金越高?纽约大学博士拿出百万重金,悬赏让大模型表现差劲的任务
EasyCVR授权到期页面无法登录,该如何解决?
RPC协议详解