Oracle 12c Operation CDB PDB

Source: Internet
Author: User

CREATE TRIGGER Open_all_pdbs after STARTUP on Databasebegin EXECUTE IMMEDIATE ' alter pluggable database all open ';END Open_all_pdbs;/alter Pluggable Database all Openalter pluggable database all close;alter session SET container= Pdbmyoracle;alter session SET container= Cdb$root;Create tablespace tbs_dys datafile ' d:/oracle_12c/app/dys/oradata/dys/tbs_dys.ba ' size 1024m reuse autoextend on Next 100m maxsize UNLIMITED extent management Local;CREATE temporary tablespace tbs_dys_temp tempfile ' d:/oracle_12c/app/dys/oradata/dys//tbs_dys_temp.ba ' SIZE 600M Auto Extend on next 32m maxsize 2048m extent management Local;CREATE USER Dingyingsi identified by Dingyingsi1988 DEFAULT tablespace tbs_dys temporary tablespace tbs_dys_temp ACCO UNT UNLOCK;GRANT CREATE TABLE to Dingyingsi;GRANT UNLIMITED tablespace to Dingyingsi;GRANT CONNECT to Dingyingsi with ADMIN OPTION;GRANT RESOURCE to Dingyingsi with ADMIN OPTION;GRANT DBA to Dingyingsi;
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.