当前位置:网站首页>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;
边栏推荐
- LeetCode 6109. Number of people who know the secret
- All you want to know about clothing ERP is here
- 深入底层C源码讲透Redis核心设计原理
- RPC protocol details
- Web3.0时代来了,看天翼云存储资源盘活系统如何赋能新基建(下)
- 怎么自动安装pythn三方库
- 小程序 修改样式 ( placeholder、checkbox的样式)
- CDB 实例的启动与关闭
- 中文版Postman?功能真心强大!
- Find in MySQL_ in_ Detailed explanation of set() function usage
猜你喜欢
5. 数据访问 - EntityFramework集成
Vulnhub's darkhole_ two
AI金榜题名时,MLPerf榜单的份量究竟有多重?
The 11th China cloud computing standards and Applications Conference | China cloud data has become the deputy leader unit of the cloud migration special group of the cloud computing standards working
AI Open2022|基于异质信息网络的推荐系统综述:概念,方法,应用与资源
面试官:Redis 过期删除策略和内存淘汰策略有什么区别?
The main thread anr exception is caused by too many binder development threads
How to write good code defensive programming
Mysql database indexing tutorial (super detailed)
[detailed explanation of AUTOSAR 14 startup process]
随机推荐
鱼和熊掌可以兼得!天翼云弹性裸金属一招鲜!
Memory leak of viewpager + recyclerview
Find in MySQL_ in_ Detailed explanation of set() function usage
[QNX hypervisor 2.2 user manual]6.3.2 configuring VM
MYSQL中 find_in_set() 函数用法详解
The easycvr authorization expiration page cannot be logged in. How to solve it?
2022年5月腾讯云开发者社区视频月度榜单公布
从外卖点单浅谈伪需求
Oracle 中文排序 Oracle 中文字段排序
Word查找红色文字 Word查找颜色字体 Word查找突出格式文本
XML basic knowledge concept
[QNX Hypervisor 2.2用户手册]6.3.2 配置VM
c语言简便实现链表增删改查「建议收藏」
LeetCode 6111. 螺旋矩阵 IV
EasyCVR电子地图中设备播放器loading样式的居中对齐优化
企业数字化转型之路,从这里开始
如何快速进阶自动化测试?听听这3位BAT大厂测试工程师的切身感想....
ROS installation error sudo: rosdep: command not found
2022 latest Android interview written examination, an Android programmer's interview experience
How to obtain the coordinates of the aircraft passing through both ends of the radar