当前位置:网站首页>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;边栏推荐
- What is text mining? "Suggested collection"
- jdbc读大量数据导致内存溢出
- About Estimation with Cross-Validation
- LeetCode 6111. Spiral matrix IV
- 一文读懂简单查询代价估算
- 【在優麒麟上使用Electron開發桌面應】
- Tupu software digital twin | visual management system based on BIM Technology
- 在通达信上做基金定投安全吗?
- A2L file parsing based on CAN bus (3)
- 2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]
猜你喜欢

IDEA配置npm启动

Idea configuring NPM startup

Oracle日期格式转换 to_date,to_char,to_timetamp 相互转换

Icml2022 | partial and asymmetric comparative learning of out of distribution detection in long tail recognition

ConvMAE(2022-05)

Various pits of vs2017 QT

解决 contents have differences only in line separators

2022年阿里Android高级面试题分享,2022阿里手淘Android面试题目

视频自监督学习综述

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
随机推荐
LeetCode 6109. 知道秘密的人数
MySQL优化六个点的总结
C language makes it easy to add, delete, modify and check the linked list "suggested collection"
LeetCode 6111. Spiral matrix IV
How to obtain the coordinates of the aircraft passing through both ends of the radar
Thoroughly understand why network i/o is blocked?
生词生词生词生词[2]
中文版Postman?功能真心强大!
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
怎么自动安装pythn三方库
【Autosar 十四 启动流程详解】
开户注册挖财安全吗?有没有风险的?靠谱吗?
How to choose the most formal and safe external futures platform?
《ClickHouse原理解析与应用实践》读书笔记(5)
爬虫01-爬虫基本原理讲解
【在優麒麟上使用Electron開發桌面應】
[utiliser Electron pour développer le Bureau sur youkirin devrait]
Use of websocket tool
Pytorch yolov5 training custom data
7-1 链表也简单fina