Oracle 12C--PDBs auto-start when CDB is set up

Source: Internet
Author: User

After CDB restarts, PDBs is in mounted state by default

Sql>SelectName,open_mode fromv$pdbs;name Open_mode------------------------------ ----------pdb$seed Read ONLYPDB1 read WRITEPDB2 read W Ritesql>shutdown immediate;database closed. Database dismounted. ORACLE instance shut down. SQL>Startup ORACLE instance started. Total System Global Area1174405120bytesfixed Size2923680bytesvariable Size436208480Bytesdatabase Buffers721420288Bytesredo Buffers13852672bytesdatabase mounted. Database opened. SQL>SelectName,open_mode fromv$pdbs;name Open_mode------------------------------ ----------pdb$seed READ ONLYPDB1 MOUNTEDPDB2 mountedsq L>

The command "Alter pluggable database ... save state" enables the PDB to maintain its pre-shutdown status after the CDB is restarted.
Cancel the settings using "Alter pluggable database ... discard state".

Sql>SelectName,open_mode fromv$pdbs;name Open_mode------------------------------ ----------pdb$seed Read ONLYPDB1 read WRITEPDB2 Mounte DSQL>Alter pluggable database PDB1 save state; Pluggable database altered. SQL>shutdown immediate;database closed. Database dismounted. ORACLE instance shut down. SQL>startup; ORACLE instance started. Total System Global Area1174405120bytesfixed Size2923680bytesvariable Size436208480Bytesdatabase Buffers721420288Bytesredo Buffers13852672bytesdatabase mounted. Database opened. SQL>SelectName,open_mode fromv$pdbs;name Open_mode------------------------------ ----------pdb$seed Read ONLYPDB1 read WRITEPDB2 Mounte DSQL>

Oracle 12C--PDBs auto-start when CDB is set up

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.