当前位置:网站首页>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;
边栏推荐
- [detailed explanation of AUTOSAR 14 startup process]
- Exemple Quelle est la relation entre le taux d'échantillonnage, l'échantillon et la durée?
- 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
- 什么是文本挖掘 ?「建议收藏」
- sample_rate(采樣率),sample(采樣),duration(時長)是什麼關系
- 个人对卷积神经网络的理解
- Windows Oracle 开启远程连接 Windows Server Oracle 开启远程连接
- 关于服装ERP,你想知道的都在这里了
- 案例分享|金融业数据运营运维一体化建设
- 紧固件行业供应商绩效考核繁琐?选对工具才能轻松逆袭!
猜你喜欢
AI金榜题名时,MLPerf榜单的份量究竟有多重?
Idea configuring NPM startup
A cloud opens a new future of smart transportation
Web3.0时代来了,看天翼云存储资源盘活系统如何赋能新基建(下)
Windows Oracle 开启远程连接 Windows Server Oracle 开启远程连接
Powerful tool for collection processing
中文版Postman?功能真心强大!
如何快速进阶自动化测试?听听这3位BAT大厂测试工程师的切身感想....
About statistical power
蚂蚁集团开源可信隐私计算框架「隐语」:开放、通用
随机推荐
What are the cache interfaces of nailing open platform applet API?
[QNX hypervisor 2.2 user manual]6.3.2 configuring VM
LeetCode 6109. 知道秘密的人数
ICML2022 | 长尾识别中分布外检测的部分和非对称对比学习
Precautions for RTD temperature measurement of max31865 module
Share: ZTE Yuanhang 30 Pro root unlock BL magick ZTE 7532n 8040n 9041n brush mask original brush package root method Download
Thoroughly understand why network i/o is blocked?
vs2017 qt的各种坑
Insufficient picture data? I made a free image enhancement software
2022 latest Android interview written examination, an Android programmer's interview experience
中文版Postman?功能真心强大!
Is it safe for Apple mobile phone to speculate in stocks? Is it a fraud to get new debts?
How much does the mlperf list weigh when AI is named?
使用文件和目录属性和属性
2022 Alibaba Android advanced interview questions sharing, 2022 Alibaba hand Taobao Android interview questions
Trust counts the number of occurrences of words in the file
Ant group open source trusted privacy computing framework "argot": open and universal
2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]
2022全网最全的腾讯后台自动化测试与持续部署实践【万字长文】
Memory leak of viewpager + recyclerview