{"id":2535,"date":"2021-03-09T08:45:54","date_gmt":"2021-03-09T08:45:54","guid":{"rendered":"https:\/\/swiv.com.br\/changing-the-state-of-a-specific-pdb-when-thr-current-container-is-the-root\/"},"modified":"2026-05-27T20:02:51","modified_gmt":"2026-05-27T19:02:51","slug":"changing-the-state-of-a-specific-pdb-when-thr-current-container-is-the-root","status":"publish","type":"post","link":"https:\/\/swiv.com.br\/index.php\/2021\/03\/09\/changing-the-state-of-a-specific-pdb-when-thr-current-container-is-the-root\/","title":{"rendered":"Changing the state of a specific PDB when the current container is the root"},"content":{"rendered":"\n<p>Confirmando se o banco \u00e9 CDB:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;oracle@oel8 ~]$ sqlplus \/ as sysdba\n \nSQL*Plus: Release 18.0.0.0.0 - Production on Tue Mar 9 05:39:13 2021\nVersion 18.3.0.0.0\n \nCopyright (c) 1982, 2018, Oracle.  All rights reserved.\n \n \nConnected to:\nOracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production\nVersion 18.3.0.0.0\n \nSQL&gt; SELECT NAME, CDB FROM V$DATABASE;\n \nNAME      CDB\n--------- ---\nTALAMO    YES\n \nSQL&gt;\n<\/pre><\/div>\n\n\n<p>Verificando se estou conectado ao root:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSQL&gt; SHOW CON_ID CON_NAME\n \nCON_ID\n------------------------------\n1\n \nCON_NAME\n------------------------------\nCDB$ROOT\nSQL&gt;\n<\/pre><\/div>\n\n\n<p>Checando o estado no PDB HIPOFISE1:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSQL&gt; SELECT OPEN_MODE FROM V$PDBS WHERE NAME=&#039;HIPOFISE1&#039;;\n \nOPEN_MODE\n----------\nMOUNTED\n<\/pre><\/div>\n\n\n<p>Abrindo o PDB:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSQL&gt; ALTER PLUGGABLE DATABASE HIPOFISE1 OPEN;\n \nPluggable database altered.\n \nSQL&gt; SELECT OPEN_MODE FROM V$PDBS WHERE NAME=&#039;HIPOFISE1&#039;;\n \nOPEN_MODE\n----------\nREAD WRITE\n<\/pre><\/div>\n\n\n<p>Para baixar o PDB:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSQL&gt; ALTER PLUGGABLE DATABASE HIPOFISE1 CLOSE IMMEDIATE;\n \nPluggable database altered.\n \nSQL&gt; SELECT OPEN_MODE FROM V$PDBS WHERE NAME=&#039;HIPOFISE1&#039;;\n \nOPEN_MODE\n----------\nMOUNTED\n<\/pre><\/div>\n\n\n<p>Outra sintaxe para abrir o PDB:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSQL&gt; STARTUP PLUGGABLE DATABASE HIPOFISE1;\nPluggable Database opened.\nSQL&gt; SELECT OPEN_MODE FROM V$PDBS WHERE NAME=&#039;HIPOFISE1&#039;;\n \nOPEN_MODE\n----------\nREAD WRITE\n<\/pre><\/div>\n\n\n<p>Obs: Este procedimento foi criado pelo senhor Ahmed Baraka (www.ahmedbaraka.com) e foi apenas reproduzido por mim em um laborat\u00f3rio pessoal para fins de aprendizado.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Confirmando se o banco \u00e9 CDB: Verificando se estou conectado ao root: Checando o estado no PDB HIPOFISE1: Abrindo o PDB: Para baixar o PDB: Outra sintaxe para abrir o PDB: Obs: Este procedimento foi criado pelo senhor Ahmed Baraka (www.ahmedbaraka.com) e foi apenas reproduzido por mim em um laborat\u00f3rio pessoal para fins de aprendizado.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-2535","post","type-post","status-publish","format-standard","hentry","category-multitenant"],"_links":{"self":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=2535"}],"version-history":[{"count":1,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2535\/revisions"}],"predecessor-version":[{"id":9242,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2535\/revisions\/9242"}],"wp:attachment":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=2535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=2535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=2535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}