当前位置:网站首页>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期末复习
- Problems encountered in the project u-parse component rendering problems
- 彻底理解为什么网络 I/O 会被阻塞?
- 2022最新Android面试笔试,一个安卓程序员的面试心得
- 蚂蚁集团开源可信隐私计算框架「隐语」:开放、通用
- Low code practice of xtransfer, a cross-border payment platform: how to integrate with other medium-sized platforms is the core
- 《ClickHouse原理解析与应用实践》读书笔记(5)
- AI open2022 | overview of recommendation systems based on heterogeneous information networks: concepts, methods, applications and resources
- [QNX hypervisor 2.2 user manual]6.3.2 configuring VM
- 2022 latest Android interview written examination, an Android programmer's interview experience
猜你喜欢
Interprocess communication (IPC): shared memory
瞅一瞅JUC提供的限流工具Semaphore
2022最新中高级Android面试题目,【原理+实战+视频+源码】
Powerful tool for collection processing
The 11th China cloud computing standards and Applications Conference | cloud computing national standards and white paper series release, and Huayun data fully participated in the preparation
Pytorch yolov5 training custom data
彻底理解为什么网络 I/O 会被阻塞?
The main thread anr exception is caused by too many binder development threads
@Extension、@SPI注解原理
rust统计文件中单词出现的次数
随机推荐
Use of websocket tool
进程间通信(IPC):共享内存
The 10th global Cloud Computing Conference | Huayun data won the "special contribution award for the 10th anniversary of 2013-2022"
Insufficient picture data? I made a free image enhancement software
7-2 保持链表有序
Personal understanding of convolutional neural network
视频融合云平台EasyCVR增加多级分组,可灵活管理接入设备
EMQX 5.0 正式发布:单集群支持 1 亿 MQTT 连接
Word查找红色文字 Word查找颜色字体 Word查找突出格式文本
Low code practice of xtransfer, a cross-border payment platform: how to integrate with other medium-sized platforms is the core
Solutions contents have differences only in line separators
项目中遇到的问题 u-parse 组件渲染问题
How to write good code defensive programming
线性表——抽象数据类型
XML基础知识概念
Common time complexity
ViewPager + RecyclerView的内存泄漏
Optimization of middle alignment of loading style of device player in easycvr electronic map
Reading notes of Clickhouse principle analysis and Application Practice (5)
Use QT to traverse JSON documents and search sub objects