当前位置:网站首页>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;
边栏推荐
猜你喜欢
怎么自动安装pythn三方库
IDEA配置npm启动
2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]
AI Open2022|基于异质信息网络的推荐系统综述:概念,方法,应用与资源
vs2017 qt的各种坑
The era of Web3.0 is coming. See how Tianyi cloud storage resources revitalize the system to enable new infrastructure (Part 2)
深入底层C源码讲透Redis核心设计原理
Summary of six points of MySQL optimization
解决 contents have differences only in line separators
rust统计文件中单词出现的次数
随机推荐
面试官:Redis 过期删除策略和内存淘汰策略有什么区别?
RPC协议详解
进程间通信(IPC):共享内存
How much does the mlperf list weigh when AI is named?
Exemple Quelle est la relation entre le taux d'échantillonnage, l'échantillon et la durée?
技术分享 | 接口测试价值与体系
c语言简便实现链表增删改查「建议收藏」
尚硅谷尚优选项目教程发布
The main thread anr exception is caused by too many binder development threads
Is it safe for golden sun to open an account? Can I open an account free of 5 in case?
ROS安装报错 sudo: rosdep:找不到命令
vs2017 qt的各种坑
The monthly list of Tencent cloud developer community videos was released in May 2022
线性表——抽象数据类型
7-2 保持链表有序
MySQL数据库索引教程(超详细)
蚂蚁集团开源可信隐私计算框架「隐语」:开放、通用
解决 contents have differences only in line separators
sample_ What is the relationship between rate, sample and duration
EasyCVR授权到期页面无法登录,该如何解决?