{"id":2746,"date":"2021-03-16T14:18:42","date_gmt":"2021-03-16T14:18:42","guid":{"rendered":"https:\/\/swiv.com.br\/changing-the-oracle-global-database-name-of-a-pdb\/"},"modified":"2026-05-27T20:02:50","modified_gmt":"2026-05-27T19:02:50","slug":"changing-the-oracle-global-database-name-of-a-pdb","status":"publish","type":"post","link":"https:\/\/swiv.com.br\/index.php\/2021\/03\/16\/changing-the-oracle-global-database-name-of-a-pdb\/","title":{"rendered":"Changing the Oracle Global Database Name of a PDB"},"content":{"rendered":"\n<p>Criando um PDB a partir do SEED:<\/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 16 11:03:03 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,OPEN_MODE,CDB FROM V$DATABASE;\n \nNAME      OPEN_MODE            CDB\n--------- -------------------- ---\nTALAMO    READ WRITE           YES\n \nSQL&gt; CREATE PLUGGABLE DATABASE BSS ADMIN USER BSSADMIN IDENTIFIED BY BSS;\n \nPluggable database created.\n \nSQL&gt; ALTER PLUGGABLE DATABASE BSS OPEN;\n \nPluggable database altered.\n<\/pre><\/div>\n\n\n<p>Baixando o banco de dados e subindo em modo restrito:<\/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 BSS CLOSE IMMEDIATE;\n \nPluggable database altered.\n \nSQL&gt; ALTER PLUGGABLE DATABASE BSS OPEN RESTRICTED;\n \nPluggable database altered.\n \nSQL&gt; SELECT CON_ID, OPEN_MODE, RESTRICTED FROM V$PDBS WHERE NAME=&#039;BSS&#039;;\n \n    CON_ID OPEN_MODE  RES\n---------- ---------- ---\n         5 READ WRITE YES\n<\/pre><\/div>\n\n\n<p>Realizando a altera\u00e7\u00e3o:<\/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 SESSION SET CONTAINER=BSS;\n \nSession altered.\n \nSQL&gt; ALTER PLUGGABLE DATABASE BSS RENAME GLOBAL_NAME to AXONIO;\n \nPluggable database altered.\n \nSQL&gt; SELECT CON_ID, OPEN_MODE, RESTRICTED FROM V$PDBS WHERE NAME=&#039;AXONIO&#039;;\n \n    CON_ID OPEN_MODE  RES\n---------- ---------- ---\n         5 READ WRITE YES\n \nSQL&gt; ALTER PLUGGABLE DATABASE AXONIO CLOSE IMMEDIATE;\n \nPluggable database altered.\n \nSQL&gt; ALTER PLUGGABLE DATABASE AXONIO OPEN;\n \nPluggable database altered.\n \nSQL&gt; SELECT CON_ID, OPEN_MODE, RESTRICTED FROM V$PDBS WHERE NAME=&#039;AXONIO&#039;;\n \n    CON_ID OPEN_MODE  RES\n---------- ---------- ---\n         5 READ WRITE NO\n<\/pre><\/div>\n\n\n<p>Realizando o teste de conex\u00e3o usando easyconnect:<\/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; conn BSSADMIN\/BSS@\/\/oel8.localdomain:1521\/AXONIO.localdomain\nConnected.\n<\/pre><\/div>\n\n\n<p>Dropando o banco de dados:<\/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 AXONIO CLOSE IMMEDIATE;\n \nPluggable database altered.\n \nSQL&gt; DROP PLUGGABLE DATABASE AXONIO INCLUDING DATAFILES;\n \nPluggable database dropped.\n \nSQL&gt; col name format a10\nSQL&gt; SELECT NAME, CON_ID, OPEN_MODE, RESTRICTED FROM V$PDBS ORDER BY 1;\n \nNAME           CON_ID OPEN_MODE  RES\n---------- ---------- ---------- ---\nHIPOFISE1           3 READ WRITE NO\nHIPOFISE2           4 READ WRITE NO\nPDB$SEED            2 READ ONLY  NO\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>Criando um PDB a partir do SEED: Baixando o banco de dados e subindo em modo restrito: Realizando a altera\u00e7\u00e3o: Realizando o teste de conex\u00e3o usando easyconnect: Dropando o banco de dados: 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 [&hellip;]<\/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-2746","post","type-post","status-publish","format-standard","hentry","category-multitenant"],"_links":{"self":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2746","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=2746"}],"version-history":[{"count":1,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2746\/revisions"}],"predecessor-version":[{"id":9227,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2746\/revisions\/9227"}],"wp:attachment":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=2746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=2746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=2746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}