当前位置:网站首页>CDB 实例的启动与关闭
CDB 实例的启动与关闭
2022-07-05 18:33:00 【用户8006012】
1.1 关闭 cdb 实例
[email protected]> show con_name;
[email protected]> shutdown immediate;
查看后台进程
[[email protected] ~]$ ps -ef | grep ora_ | grep -v grep1.2 启动 cdb 实例
[[email protected] ~]$ export ORACLE_SID=cdb1
[[email protected] ~]$ sqlplus / as sysdba
启动数据库实例到 nomount 状态
[email protected]> startup nomount;
查看实例状态
[email protected]> select instance_name,status from v$instance;
查看 v$pdbs 动态性能视图,显示没有结果
[email protected]> select name,con_id,open_mode from v$pdbs;1.3 mount 装载 CDB
从 nomount 切换数据库实例到 mount 状态
[email protected]> alter database mount;
[email protected]> select instance_name,status from v$instance;
查看 pdb 情况,显示 pdb 也处于 mounted 状态
[email protected]> col name for a10
[email protected]> select name,con_id,open_mode from v$pdbs;
[email protected]> show pdbs1.4 open 打开 CDB
open 打开数据库实例
[email protected]> alter database open;
[email protected]> select name,status from v$instance;
[email protected]> show pdbs1.5 打开与关闭 PDB
1.5.1 查看 pdb 状态
[email protected]> show pdbscdb 处于 open 状态时, pdb 默认处于 mounted 状态(种子 pdb PDB$SEED 始终 read only 状态)
1.5.2 pdb 中操作 打开 pdb
切换到 pdb1
[email protected]> conn sys/[email protected] as sysdba
[email protected]> show pdbs
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 中操作 关闭 pdb
pdb1 中执行命令
[email protected]> show pdbs;
[email protected]> shutdown immediate;
[email protected]> show pdbs1.5.4 cdb 中操作 打开 pdb
[email protected]> conn / as sysdba
[email protected]> show pdbs
在 cdb 中使用 alter pluggable database 语句 open 打开 pdb
[email protected]> alter pluggable database pdb1 open;
[email protected]> show pdbs1.5.5 cdb 中操作 关闭 pdb
使用 alter pluggable database 语句关闭 pdb
[email protected]> alter pluggable database pdb1 close immediate;
[email protected]> show pdbs1.5.6 cdb 中操作 打开所有非种子 pdb
[email protected]> alter pluggable database all open;
[email protected]> show pdbs;1.5.7 自动打开 pdb
1.5.7.1配置 CDB open 后 PDB 打开状态
当前 pdb1 open read write 状态
[email protected]> show pdbs
[email protected]> alter pluggable database pdb1 save state;边栏推荐
- Case sharing | integrated construction of data operation and maintenance in the financial industry
- 2022 Alibaba Android advanced interview questions sharing, 2022 Alibaba hand Taobao Android interview questions
- AI open2022 | overview of recommendation systems based on heterogeneous information networks: concepts, methods, applications and resources
- 【在优麒麟上使用Electron开发桌面应】
- 如何写出好代码 - 防御式编程
- Various pits of vs2017 QT
- buuctf-pwn write-ups (9)
- ICML2022 | 长尾识别中分布外检测的部分和非对称对比学习
- [use electron to develop desktop on youqilin]
- 快速生成ipa包
猜你喜欢

Copy the linked list with random pointer in the "Li Kou brush question plan"

Use JMeter to record scripts and debug

蚂蚁集团开源可信隐私计算框架「隐语」:开放、通用

rust统计文件中单词出现的次数

深入底层C源码讲透Redis核心设计原理

The 2022 China Xinchuang Ecological Market Research and model selection evaluation report released that Huayun data was selected as the mainstream manufacturer of Xinchuang IT infrastructure!

技术分享 | 接口测试价值与体系

node_ Exporter memory usage is not displayed

Use QT to traverse JSON documents and search sub objects

Summary of six points of MySQL optimization
随机推荐
Clickhouse (03) how to install and deploy Clickhouse
A2L file parsing based on CAN bus (3)
ConvMAE(2022-05)
Electron installation problems
The 2022 China Xinchuang Ecological Market Research and model selection evaluation report released that Huayun data was selected as the mainstream manufacturer of Xinchuang IT infrastructure!
How to choose the most formal and safe external futures platform?
在通达信上做基金定投安全吗?
Is it safe to make fund fixed investment on access letter?
JDBC reads a large amount of data, resulting in memory overflow
MySQL优化六个点的总结
快速生成ipa包
max31865模块RTD测温注意事项
开户注册股票炒股安全吗?有没有风险的?靠谱吗?
@Extension、@SPI注解原理
常见时间复杂度
sample_rate(采样率),sample(采样),duration(时长)是什么关系
深入底层C源码讲透Redis核心设计原理
Einstein sum einsum
How to automatically install pythn third-party libraries
All you want to know about clothing ERP is here