{"id":16072,"date":"2021-04-02T06:49:33","date_gmt":"2021-04-02T04:49:33","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/"},"modified":"2021-04-02T06:49:33","modified_gmt":"2021-04-02T04:49:33","slug":"rename-your-db-clone-completely","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/","title":{"rendered":"Rename your DB clone completely"},"content":{"rendered":"<h3><strong>Introduction<\/strong><\/h3>\n<p>Have you ever renamed your database?<br \/>\nWhen you cloned a DB, you probably started it with a new name and cloning (duplicating) with RMAN provided a new DBID, right?<br \/>\nSo why should we need to rename a DB?<\/p>\n<p>There may be several reasons:<br \/>\ndue to changed company rules, you need to rename all your DBs<br \/>\nAfter a restore you need to run the DB with another name<br \/>\nAfter a snapshot clone, (see my recent blog) you want to run it with new name<\/p>\n<p>First, I want to mention that all I found in the Internet was incomplete \u2013 even the Oracle\u00ae <a href=\"https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/21\/sutil\/oracle-dbnewid-utility.html#GUID-D138A757-6A2A-41A2-B722-A98708C5F5AD\">Database Utilities<\/a> and MOS Doc Id 2258871.1. Incomplete regarding <u>all<\/u> the items that should be changed together with the DB-name or simply not working. Therefore, I write this article with the word \u201ccompletely\u201d at the end.<\/p>\n<h3><strong>Starting point<\/strong><\/h3>\n<p>We did a snapshot clone with our fancy new <a href=\"https:\/\/blog.purestorage.com\/products\/\">PureStorage<\/a>.<br \/>\nThe Oracle release and edition must be the same as on the source server, of course.<br \/>\nThe oratab, spfile, etc are created and the $ORACLE_SID is set to T01A <em>(the new SID will be changed to T01B)<\/em>.<br \/>\nJust to remember the commands \u2013 we did a snapshot and copied the volumes to the target server:<\/p>\n<pre>   purepgroup snap --suffix $SUFFIX ${SrcPG} --apply-retention\n   purevol copy --force ${SrcPG}.$SUFFIX.$SrcVol1 $TgtVol1\n   purevol copy --force ${SrcPG}.$SUFFIX.$SrcVol1 $TgtVol2\n   purevol copy --force ${SrcPG}.$SUFFIX.$SrcVol1 $TgtVol3<\/pre>\n<p>Then we mounted the volumes and were already able to and start the DB \u2013 done &#x1f60a;<br \/>\nBut here the story starts\u2026<\/p>\n<h3>1. Clean shutdown<\/h3>\n<p>First, before a rename, the DB needs a \u201cclean\u201d shutdown.<br \/>\nSo simply startup and<br \/>\nwhile the DB is open, create a <strong>pfile<\/strong> and a script to <strong>rename<\/strong> all DB-files for later use<br \/>\nthen shutdown the DB \u201cimmediate\u201d (not \u201cabort\u201d).<br \/>\nSome blogs mention to backup the controlfile and\/or switch the logfile, but this is not required.<\/p>\n<h3>2. The configuration files<\/h3>\n<table style=\"border-collapse: collapse;width: 65.7177%;height: 65px\">\n<tbody>\n<tr style=\"height: 13px\">\n<td style=\"width: 37.3994%;height: 13px\">The clone commands above \u201ccopied\u201d the<\/td>\n<td style=\"width: 12.6968%;height: 13px\">\/u02\/oradata<\/td>\n<td style=\"width: 35.7732%;height: 13px\">containing the tablespace files<\/td>\n<\/tr>\n<tr style=\"height: 13px\">\n<td style=\"width: 37.3994%;height: 13px\"><\/td>\n<td style=\"width: 12.6968%;height: 13px\">\/u03\/oradata<\/td>\n<td style=\"width: 35.7732%;height: 13px\">containing redologs<\/td>\n<\/tr>\n<tr style=\"height: 13px\">\n<td style=\"width: 37.3994%;height: 13px\"><\/td>\n<td style=\"width: 12.6968%;height: 13px\">\/u90\/fra<\/td>\n<td style=\"width: 35.7732%;height: 13px\">containing backups<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>In your environment you may have more volumes. Feel free to adapt \u2026<\/p>\n<p>For a fresh clone, we will need as well the spfile and orapw from either the ADMIN- or ORACLE_HOME-directory and the sqlnet configuration files.<br \/>\nWhen you are doing frequent clones, you probably have these files already on your target server.<\/p>\n<p style=\"padding-left: 200px\"><strong><em>Note:<\/em><\/strong><em> From here on I will use \u201cSRC\u201d for the original, the source DB-name and<br \/>\n     \u201cTGT\u201d for the new, the target DB-name.<\/em><\/p>\n<p>&nbsp;<br \/>\nHere in our example, we use:<\/p>\n<pre>$ADMIN = \/u01\/app\/oracle\/admin\/$ORACLE_SID\/pfile<\/pre>\n<p>for spfile and orapwd and<\/p>\n<pre>$TNS_ADMIN = \/u01\/app\/oracle\/network\/admin<\/pre>\n<p>So, we need links to the files for both old-SID and new-SID and set the variable:<\/p>\n<pre><strong>ln -fs<\/strong> $ADMDIR\/$ORACLE_SRC\/pfile\/orapw$ORACLE_SRC $ORACLE_HOME\/dbs\/orapw$ORACLE_SRC\n<strong>ln -fs<\/strong> $ADMDIR\/$ORACLE_TGT\/pfile\/orapw$ORACLE_TGT $ORACLE_HOME\/dbs\/orapw$ORACLE_TGT\n<strong>ln -fs<\/strong> $ADMDIR\/$ORACLE_SRC\/pfile\/spfile$ORACLE_SRC.ora $ORACLE_HOME\/dbs\/spfile$ORACLE_SRC.ora\n<strong>ln -fs<\/strong> $ADMDIR\/$ORACLE_TGT\/pfile\/spfile$ORACLE_TGT.ora $ORACLE_HOME\/dbs\/spfile$ORACLE_TGT.ora\n<strong>export TNS_ADMIN<\/strong>=\/u01\/app\/oracle\/network\/admin\n\/usr\/bin\/<strong>scp -pr<\/strong> oracle@$SRCHOST:$ADMDIR\/$ORACLE_SRC* $ADMDIR    (***)\n\/usr\/bin\/<strong>scp -pr<\/strong> oracle@$SRCHOST:$TNS_ADMIN\/*.ora $TNS_ADMIN<\/pre>\n<p style=\"padding-left: 200px\"><em>*** (if you do not want to copy a bulk load of *aud files, please modify the scp-command)<\/em><\/p>\n<p>For completeness I would like to mention directories containing the <strong>$DB_UNIQUE_NAME<\/strong> like<br \/>\n\/u01\/app\/oracle\/admin\/$DB_UNIQUE_NAME\/<strong>xdb_wallet or\u00a0<\/strong><br \/>\n\/u01\/app\/oracle\/<strong>diag<\/strong>\/rdbms\/$DB_UNIQUE_NAME\/\u2026<br \/>\nwhich are handled in my script.<\/p>\n<h3>3. DBNEWID<\/h3>\n<p>Now you can run the \u201cmain\u201d command.<\/p>\n<p><strong>\u00a0nid target=\/ dbname=$ORACLE_TGT<\/strong><\/p>\n<p>The output will tell you something about changed file names:<\/p>\n<pre>\u2026\nControl File \/u02\/oradata\/T01A\/control03T01A.dbf - modified\nDatafile \/u02\/oradata\/T01A\/system01T01A.db - dbid changed, wrote new name\n\u2026\nInstance shut down\nDatabase name changed to T01B.\nModify parameter file and generate a new password file before restarting.\nDatabase ID for database T01B changed to 2621333956.\nAll previous <strong>backups<\/strong> and <strong>archived redo logs<\/strong> for this database are <strong>unusable<\/strong>.\nDatabase is not aware of previous backups and archived logs in Recovery Area.\nDatabase has been shutdown, open database with RESETLOGS option.\nSuccesfully changed database name and ID.\nDBNEWID - Completed succesfully.<\/pre>\n<p>Be aware \u2013 the file names were NOT changed. They are just registered in the controlfile.<br \/>\nAnd it tells us that all the archives and backups are obsolete.<\/p>\n<h3>4. Rename and adapt all and everything<\/h3>\n<p>Most blogs tell you ALTER SYSTEM SET DB_NAME=T01B; and start your DB\u00a0 \u21d2\u00a0 \ud83d\ude25<\/p>\n<ul>\n<li>adapt the new pfile:<br \/>\nin step 1 we have already created the new parameter-file with the adequate name:<\/p>\n<pre>create pfile=\u2019 $ADMDIR\/$ORACLE_SRC\/pfile\/init$ORACLE_TGT.ora\u2019 from spfile;<\/pre>\n<p>on OS-level, we replace all SRC by TGT entries (not only the DB-name) and kick out all the heading lines:<\/p>\n<pre>sed -i '\/.archive_lag_target\/,$!d' $ADMDIR\/$ORACLE_SRC\/pfile\/init$ORACLE_TGT.ora\nsed -i \"s\/$ORACLE_SRC\/$ORACLE_TGT\/g\" $ADMDIR\/$ORACLE_SRC\/pfile\/init$ORACLE_TGT.ora\nsed -i \"s\/$SRCHOST\/$TGTHOST\/g\" $ADMDIR\/$ORACLE_SRC\/pfile\/init$ORACLE_TGT.ora<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li>Create a new Password file:\n<p style=\"padding-left: 40px\"><em>Since 12.2. the password must contain at least 8 characters and at least 1 special character.<\/em><\/p>\n<pre>orapwd file=$ADMDIR\/$ORACLE_SRC\/pfile\/orapw$ORACLE_TGT force=y password=Manager_19c entries=3<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li>complete the oratab:\n<pre>echo \"$ORACLE_TGT:$ORACLE_HOME:N\" &gt;&gt; \/etc\/oratab<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li>adapt the script to rename all DB-files:<br \/>\nin step 1 we have already created the script to rename the DB-files. You probably know, that since 12c, we can move datafiles online. This would be resource intensive operation. Moving on OS-level is a \u201ccheap\u201d command \u2013 not even the inode will be changed.<br \/>\nAnd renaming while the DB is in mount state, is as well a lightweight one.<\/p>\n<pre>@script_rename.sql $ORACLE_SRC $ORACLE_TGT  \u21d2  created script:  rename_db_files.sql<\/pre>\n<p style=\"padding-left: 40px\">We just need to remove the lines, containing the \u201cold\u00a0\u00a0 1: \u2026\u201d and \u201cnew:\u00a0\u00a0 1: \u2026\u201d<\/p>\n<pre>sed '\/old\/d;\/new\/d' -i rename_db_files.sql<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li>rename the path\/filenames on OS-level \u2013we can modify path as well as filenames in one command. I love \u201csed\u201d.\n<p style=\"padding-left: 120px\"><em>(here $filesys1 and $filesys2 are our volumes, \/u0*\/oradata)<\/em><\/p>\n<pre>cd $filsys1\n find . -type f -name \"*$ORACLE_SRC*\" | while read FN; do\n   BFN=$(basename \"$FN\")\n   NFN=$(echo ${BFN}|sed \"s\/$ORACLE_SRC\/$ORACLE_TGT\/g\")\n   mv \"$BFN\"  \"$NFN\"\n done\n#\n cd $filsys2\n find . -type f -name \"*$ORACLE_SRC*\" | while read FN; do\n   BFN=$(basename \"$FN\")\n   NFN=$(echo ${BFN}|sed \"s\/$ORACLE_SRC\/$ORACLE_TGT\/g\")\n   mv \"$BFN\"  \"$NFN\"\n done<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li>adapt the SQL-net files<br \/>\nreplace all ORACLE_SID and Hostnames in listener.ora:<\/p>\n<pre>cd $TNS_ADMIN\n  sed -i \"s\/$SRCHOST\/$TGTHOST\/g\"           $TNS_ADMIN\/listener.ora\n  sed -i \"s\/$ORACLE_SRC\/$ORACLE_TGT\/g\"     $TNS_ADMIN\/listener.ora<\/pre>\n<p>adapt tnsnames.ora and append a tns-entry for the new DB: (I tend to leave the old one unchanged)<\/p>\n<pre>SER=$(grep service_names $ADMDIR\/$ORACLE_TGT\/pfile\/init$ORACLE_TGT.ora |awk -F' '{print $2}')\n echo \"############\"    &gt;&gt; $TNS_ADMIN\/tnsnames.ora\n echo \"$ORACLE_TGT=\"    &gt;&gt; $TNS_ADMIN\/tnsnames.ora\n echo \" (DESCRIPTION=\"  &gt;&gt; $TNS_ADMIN\/tnsnames.ora\n echo \"   (ADDRESS=(PROTOCOL=TCP)(HOST=$TGTHOST)(PORT=1521)) \"  &gt;&gt; $TNS_ADMIN\/tnsnames.ora\n echo \"   (CONNECT_DATA=(SERVICE_NAME=$SER))) \"                 &gt;&gt; $TNS_ADMIN\/tnsnames.ora\n echo \u201c############\u201d<\/pre>\n<p>Restart the listener:<\/p>\n<pre>  lsnrctl stop\n  lsnrctl start<\/pre>\n<\/li>\n<\/ul>\n<p><strong>clean up!\u00a0 \u00a0clean up!\u00a0 \u00a0clean up!<\/strong><\/p>\n<ul>\n<li>Clean and copy the &#8220;old&#8221; ADMIN-directory\n<p style=\"padding-left: 120px\"><em>(I tend to leave the old one and remove it later)<\/em><\/p>\n<pre>rm -f $ADMDIR\/$ORACLE_SRC\/adump\/*.aud\n cd $ADMDIR\n ls -d $ORACLE_SRC* | while read FN; do\n  BFN=$(basename \"$FN\")\n  NFN=$(echo ${BFN}|sed \"s\/$ORACLE_SRC\/$ORACLE_TGT\/g\")\n  cp -ar \"$BFN\"  \"$NFN\"\n  echo  \"copied $BFN to  $NFN\"\n done<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li>clean the backups:<br \/>\nwhether your backups are in $FRA\/$ORACLE_SID or in $FRA\/$DB_UNIQUE_NAME, you can remove them all by:<\/p>\n<pre>cd $FRA\n ls -d $ORACLE_SRC* | while read FN; do\n  BFN=$(basename \"$FN\")\n  NFN=$(echo ${BFN}|sed \"s\/$ORACLE_SRC\/$ORACLE_TGT\/g\")\n  if [ -d $BFN ]; then\n   echo \"delete old $BFN ...\"\n   rm -rf  ${BFN}\n  fi\n  mkdir  ${NFN}\n done<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li>clean the DIAG-directory:<br \/>\nyou could simply remove the $ORACLE_BASE\/diag\/rdbms completely. If you have other DBs running on this machine, you do not want to delete all of them.<\/p>\n<pre>find $ORACLE_BASE\/diag\/rdbms -name \"${ORACLE_SRC,,}*\" -exec rm -rf {} ;\nfind $ORACLE_BASE\/diag\/rdbms -name \"${ORACLE_TGT,,}*\" -exec rm -rf {} ;<\/pre>\n<\/li>\n<\/ul>\n<ul>\n<li>at last, you set the ORACLE_SID:\n<pre>export ORACLE_SID=$ORACLE_TGT<\/pre>\n<\/li>\n<\/ul>\n<h3>Finalize<\/h3>\n<ul>\n<li>Finally, you should be able to start the cloned DB with its new namee.\n<pre>sqlplus \/ as sysdba\ncreate spfile='$ADMDIR\/$ORACLE_TGT\/pfile\/spfile$ORACLE_TGT.ora' from pfile='$ADMDIR\/$ORACLE_TGT\/pfile\/init$ORACLE_TGT.ora';\nstartup nomount;\nalter database mount;\nselect name, dbid, created, open_mode  from V$DATABASE;<\/pre>\n<p>rename all DB-files, including TEMP-files and redo-logs.<\/p>\n<pre>@$PWD\/rename_db_files.sql\nalter database open resetlogs;\nexit<\/pre>\n<\/li>\n<\/ul>\n<p>do not forget to save your result and check all files and the FRA.<\/p>\n<pre>rman target \/\nBACKUP as compressed backupset DATABASE plus ARCHIVELOG delete all input;\nexit<\/pre>\n<h3>Remarks<\/h3>\n<ul>\n<li>These steps and code snippets cover the tasks for a standalone <strong>single instance<\/strong> DB.<\/li>\n<li>In <strong>Data Guard<\/strong> environments you must be careful about renaming and moving files. The STANDBY_FILE_MANAGEMENT parameter determines how file changes on the primary server are applied to the standby server.<\/li>\n<li>When using <strong>Oracle Managed Files<\/strong> (OMF), the command in script_rename.sql is even simpler. You do not specify \u201c\u2026 rename \u2018oldpath\/filename\u2019 TO \u2018newpath\/filename\u2019\u201d because Oracle knows where to put and how to name files. You simply specify: \u201c\u2026 rename \u2018oldpath\/filename\u2019\u201d.<\/li>\n<li>When working on a <strong>Container Database<\/strong>, run the NID command with the parameter<br \/>\nPDB=[ALL | NONE] to change (or leave) all PDBs together with the container-DB.<br \/>\nFunnily Oracle recommends that you use PDB=ALL, but PDB=NONE is the default. (See <a href=\"https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/19\/sutil\/oracle-dbnewid-utility.html\">Database utilities<\/a>.)<\/li>\n<li>When using <strong>Global Database Names<\/strong>, double check the init$ORACLE_TGT.ora before creating a spfile.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Have you ever renamed your database? When you cloned a DB, you probably started it with a new name and cloning (duplicating) with RMAN provided a new DBID, right? So why should we need to rename a DB? There may be several reasons: due to changed company rules, you need to rename all your [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229,198,59],"tags":[1937,96,1232],"type_dbi":[],"class_list":["post-16072","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring","category-database-management","category-oracle","tag-clone","tag-oracle","tag-rename"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Rename your DB clone completely - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rename your DB clone completely\" \/>\n<meta property=\"og:description\" content=\"Introduction Have you ever renamed your database? When you cloned a DB, you probably started it with a new name and cloning (duplicating) with RMAN provided a new DBID, right? So why should we need to rename a DB? There may be several reasons: due to changed company rules, you need to rename all your [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-02T04:49:33+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"headline\":\"Rename your DB clone completely\",\"datePublished\":\"2021-04-02T04:49:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/\"},\"wordCount\":1011,\"commentCount\":0,\"keywords\":[\"clone\",\"Oracle\",\"Rename\"],\"articleSection\":[\"Database Administration &amp; Monitoring\",\"Database management\",\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/\",\"name\":\"Rename your DB clone completely - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2021-04-02T04:49:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rename your DB clone completely\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"caption\":\"Oracle Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Rename your DB clone completely - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/","og_locale":"en_US","og_type":"article","og_title":"Rename your DB clone completely","og_description":"Introduction Have you ever renamed your database? When you cloned a DB, you probably started it with a new name and cloning (duplicating) with RMAN provided a new DBID, right? So why should we need to rename a DB? There may be several reasons: due to changed company rules, you need to rename all your [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/","og_site_name":"dbi Blog","article_published_time":"2021-04-02T04:49:33+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"headline":"Rename your DB clone completely","datePublished":"2021-04-02T04:49:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/"},"wordCount":1011,"commentCount":0,"keywords":["clone","Oracle","Rename"],"articleSection":["Database Administration &amp; Monitoring","Database management","Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/","url":"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/","name":"Rename your DB clone completely - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2021-04-02T04:49:33+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/rename-your-db-clone-completely\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Rename your DB clone completely"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","caption":"Oracle Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/16072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=16072"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/16072\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=16072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=16072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=16072"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=16072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}