{"id":52795,"date":"2022-10-19T15:34:30","date_gmt":"2022-10-19T15:34:30","guid":{"rendered":"https:\/\/dbtut.com\/?p=52795"},"modified":"2022-10-19T15:36:01","modified_gmt":"2022-10-19T15:36:01","slug":"recovering-a-datafile-deleted-in-primary-with-standby","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/","title":{"rendered":"Recovering a Datafile Deleted in Primary with Standby"},"content":{"rendered":"<p>We can recover a datafile that is corrupted or deleted in the Primary Database, or from a datafile in the Standby Database, which is briefly damaged.<\/p>\n<p>Since our topic is Standby, in this section, we will restore a damaged Datafile using the Standby database.<\/p>\n<h4>Let&#8217;s Test<\/h4>\n<p>1. To set up the test environment, we first create a Tablespace on the Primary side.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; create tablespace SAMPLE datafile '\/u01\/app\/oracle\/oradata\/primary\/sample01.dbf' size 5M;\r\n\r\nTablespace created.\r\n<\/pre>\n<p>2. We check if Tablespace is formed in Primary and Physical Standby.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; select name from v$datafile;\r\n\r\nNAME\r\n--------------------------------------------------------------------------------\r\n\/u01\/app\/oracle\/oradata\/primary\/system01.dbf\r\n\/u01\/app\/oracle\/oradata\/primary\/sample01.dbf\r\n\/u01\/app\/oracle\/oradata\/primary\/sysaux01.dbf\r\n\/u01\/app\/oracle\/oradata\/primary\/undotbs01.dbf\r\n\/u01\/app\/oracle\/oradata\/primary\/example01.dbf\r\n\/u01\/app\/oracle\/oradata\/primary\/users01.dbf\r\n\r\n6 rows selected.\r\n<\/pre>\n<pre class=\"lang:default decode:true \">[Physical] SQL&gt; select name from v$datafile;\r\n\r\nNAME\r\n--------------------------------------------------------------------------------\r\n\/u01\/app\/oracle\/oradata\/physical\/system01.dbf\r\n\/u01\/app\/oracle\/oradata\/physical\/sample01.dbf\r\n\/u01\/app\/oracle\/oradata\/physical\/sysaux01.dbf\r\n\/u01\/app\/oracle\/oradata\/physical\/undotbs01.dbf\r\n\/u01\/app\/oracle\/oradata\/physical\/example01.dbf\r\n\/u01\/app\/oracle\/oradata\/physical\/users01.dbf\r\n\r\n6 rows selected.\r\n<\/pre>\n<p>The reason for adding Datafile to Physical Standby automatically is because STANDBY_FILE_MANAGEMENT parameter is in AUTO and DB_FILE _NAME_CONVERT parameter on Standby side is (Primary,Physical).<\/p>\n<p>3. A table is created as the tablespace that creates the tablespace.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; create table hr.employees2 tablespace sample as select * from hr.employees;\r\n\r\nTable created.\r\n<\/pre>\n<p>4. We check if the table is formed.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; select count(*) from hr.employees2;\r\n\r\n  COUNT(*)\r\n----------\r\n       107\r\n<\/pre>\n<p>5. A disaster situation is created by changing the datafile.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; !mv \/u01\/app\/oracle\/oradata\/primary\/sample01.dbf \/u01\/app\/oracle\/oradata\/primary\/sample01.sav\r\n<\/pre>\n<p>6. We close the primary database with Abort.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; shu abort;\r\nORACLE instance shut down.<\/pre>\n<p>7. Primary database is requested to be opened.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; startup;\r\nORACLE instance started.\r\n\r\nTotal System Global Area 3472883712 bytes\r\nFixed Size                  2930272 bytes\r\nVariable Size             822086048 bytes\r\nDatabase Buffers         2634022912 bytes\r\nRedo Buffers               13844480 bytes\r\nDatabase mounted.\r\nORA-01157: cannot identify\/lock data file 2 - see DBWR trace file\r\nORA-01110: data file 2: '\/u01\/app\/oracle\/oradata\/primary\/sample01.dbf'<\/pre>\n<p>8. The database gave the expected error and did not open. We question his status.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; select status from v$instance;\r\n\r\nSTATUS\r\n------------\r\nMOUNTED\r\n<\/pre>\n<p>When switching to OPEN mode, the database could not switch to OPEN mode because it opened Datafile and remained in MOUNT mode.<\/p>\n<p>9. Datafile is taken offline.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; alter tablespace sample datafile offline;\r\n\r\nTablespace altered.\r\n<\/pre>\n<p>10. The database opens.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; alter database open;\r\n\r\nDatabase altered.\r\n<\/pre>\n<p>11. The status of the problematic Datafile is questioned.<\/p>\n<pre class=\"lang:default decode:true \">Primary] SQL&gt; set linesize 9000\r\n[Primary] SQL&gt; column name format a45\r\n[Primary] SQL&gt; select NAME, STATUS from v$datafile;\r\n\r\nNAME                                          STATUS\r\n--------------------------------------------- -------\r\n\/u01\/app\/oracle\/oradata\/primary\/system01.dbf  SYSTEM\r\n\/u01\/app\/oracle\/oradata\/primary\/sample01.dbf  RECOVER\r\n\/u01\/app\/oracle\/oradata\/primary\/sysaux01.dbf  ONLINE\r\n\/u01\/app\/oracle\/oradata\/primary\/undotbs01.dbf ONLINE\r\n\/u01\/app\/oracle\/oradata\/primary\/example01.dbf ONLINE\r\n\/u01\/app\/oracle\/oradata\/primary\/users01.dbf   ONLINE\r\n\r\n6 rows selected.\r\n<\/pre>\n<p>12. From RMAN, it is connected to Physical Standby as TARGET and to Primary as Auxiliary. The reason for connecting like this is taking backup of Datafile in Physical Standby.<\/p>\n<pre class=\"lang:default decode:true \">[oracle@primary primary]$ rman\r\n\r\nRecovery Manager: Release 12.1.0.2.0 - Production on Tue Feb 14 16:29:40 2017\r\n\r\nCopyright (c) 1982, 2014, Oracle and\/or its affiliates.  All rights reserved.\r\n\r\nRMAN&gt; connect target sys\/Passw0rd4@physical\r\n\r\nconnected to target database: PRIMARY (DBID=1772883609)\r\n\r\nRMAN&gt; connect auxiliary sys\/Passw0rd4@primary\r\n\r\nconnected to auxiliary database: PRIMARY (DBID=1772883609)\r\n<\/pre>\n<p>13. Backup of problematic Datafile is taken.<\/p>\n<pre class=\"lang:default decode:true \">RMAN&gt; backup as copy datafile 2 auxiliary format '\/u01\/app\/oracle\/oradata\/primary\/sample01.bkp';\r\n\r\nStarting backup at 14-FEB-17\r\nusing target database control file instead of recovery catalog\r\nallocated channel: ORA_DISK_1\r\nchannel ORA_DISK_1: SID=253 device type=DISK\r\nchannel ORA_DISK_1: starting datafile copy\r\ninput datafile file number=00002 name=\/u01\/app\/oracle\/oradata\/physical\/sample01.dbf\r\noutput file name=\/u01\/app\/oracle\/oradata\/primary\/sample01.bkp tag=TAG20170214T164229\r\nchannel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01\r\nFinished backup at 14-FEB-17\r\n<\/pre>\n<p>14. Connects from RMAN to Primary as TARGET and to Catalog.<\/p>\n<pre class=\"lang:default decode:true \">[oracle@primary primary]$ rman target sys\/Passw0rd4@primary catalog rcowner\/rcowner@broker;\r\n\r\nRecovery Manager: Release 12.1.0.2.0 - Production on Tue Feb 14 16:44:46 2017\r\n\r\nCopyright (c) 1982, 2014, Oracle and\/or its affiliates.  All rights reserved.\r\n\r\nconnected to target database: PRIMARY (DBID=1772883609)\r\nconnected to recovery catalog database\r\n<\/pre>\n<p>15. I saved the received backup to the catalog.<\/p>\n<pre class=\"lang:default decode:true \">RMAN&gt; catalog datafilecopy '\/u01\/app\/oracle\/oradata\/primary\/sample01.bkp';\r\n\r\nnew incarnation of database registered in recovery catalog\r\nstarting full resync of recovery catalog\r\nfull resync complete\r\ncataloged datafile copy\r\ndatafile copy file name=\/u01\/app\/oracle\/oradata\/primary\/sample01.bkp RECID=3 STAMP=935945136\r\n<\/pre>\n<p>16. I change the name of the Datafile and recover it.<\/p>\n<pre class=\"lang:default decode:true \">RMAN&gt; run {\r\n2&gt; set newname for datafile 2 to '\/u01\/app\/oracle\/oradata\/primary\/sample01.bkp';\r\n3&gt; switch datafile 2;\r\n4&gt; recover datafile 2;\r\n5&gt; }\r\n\r\nexecuting command: SET NEWNAME\r\n\r\nRMAN-06169: could not read file header for datafile 2 error reason 4\r\ndatafile 2 switched to datafile copy\r\ninput datafile copy RECID=3 STAMP=935945136 file name=\/u01\/app\/oracle\/oradata\/primary\/sample01.bkp\r\nstarting full resync of recovery catalog\r\nfull resync complete\r\n\r\nStarting recover at 14-FEB-17\r\nallocated channel: ORA_DISK_1\r\nchannel ORA_DISK_1: SID=243 device type=DISK\r\n\r\nstarting media recovery\r\nmedia recovery complete, elapsed time: 00:00:00\r\n\r\nFinished recover at 14-FEB-17\r\n<\/pre>\n<p>17. I&#8217;m taking Tablespace online.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; alter tablespace sample datafile online;\r\n\r\nTablespace altered.\r\n<\/pre>\n<p>18. Checking the functionality of Tablespace.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; select count(*) from hr.employees2;\r\n\r\n  COUNT(*)\r\n----------\r\n       107\r\n<\/pre>\n<p>19. I am converting the name of Datafile to standard format.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; alter database move datafile '\/u01\/app\/oracle\/oradata\/primary\/sample01.bkp' to '\/u01\/app\/oracle\/oradata\/primary\/sample01.dbf';\r\n\r\nDatabase altered.\r\n<\/pre>\n<p>20. I&#8217;m querying the status of the configuration from the broker.<\/p>\n<pre class=\"lang:default decode:true \">DGMGRL&gt; show configuration\r\n\r\nConfiguration - DG_Solution\r\n\r\n  Protection Mode: MaxAvailability\r\n  Members:\r\n  primary  - Primary database\r\n    prmyFS   - Far sync instance \r\n      physical - Physical standby database \r\n\r\n  Members Not Receiving Redo:\r\n  physclFS - Far sync instance \r\n\r\nFast-Start Failover: DISABLED\r\n\r\nConfiguration Status:\r\nSUCCESS   (status updated 12 seconds ago)<\/pre>\n<p>21. Tests are passed.<\/p>\n<p>a. Log Switch operation is tested. Previously, the existing archive sequence numbers are queried.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; select max(sequence#),thread# from v$archived_log where first_time  &gt; to_date('14\/02\/2017 16:11:11', 'DD-MM-YYYY HH24:MI:SS') group by thread#;\r\n\r\nMAX(SEQUENCE#)    THREAD#\r\n-------------- ----------\r\n            12          1\r\n<\/pre>\n<pre class=\"lang:default decode:true \">[Physical] SQL&gt; select max(sequence#),thread# from v$archived_log where first_time  &gt; to_date('14\/02\/2017 16:11:11', 'DD-MM-YYYY HH24:MI:SS') group by thread#;\r\n\r\nMAX(SEQUENCE#)    THREAD#\r\n-------------- ----------\r\n            12          1\r\n<\/pre>\n<p>b. The archive sequence numbers are checked by performing the Log Switch operation.<\/p>\n<pre class=\"lang:default decode:true \">[Primary] SQL&gt; alter system switch logfile;\r\n\r\nSystem altered.\r\n\r\n[Primary] SQL&gt; select max(sequence#),thread# from v$archived_log where first_time  &gt; to_date('14\/02\/2017 16:11:11', 'DD-MM-YYYY HH24:MI:SS') group by thread#;\r\n\r\nMAX(SEQUENCE#)    THREAD#\r\n-------------- ----------\r\n            13          1\r\n<\/pre>\n<pre class=\"lang:default decode:true \">[Physical] SQL&gt; select max(sequence#),thread# from v$archived_log where first_time  &gt; to_date('14\/02\/2017 16:11:11', 'DD-MM-YYYY HH24:MI:SS') group by thread#;\r\n\r\nMAX(SEQUENCE#)    THREAD#\r\n-------------- ----------\r\n            13          1\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_52795\" class=\"pvc_stats all  \" data-element-id=\"52795\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We can recover a datafile that is corrupted or deleted in the Primary Database, or from a datafile in the Standby Database, which is briefly damaged. Since our topic is Standby, in this section, we will restore a damaged Datafile using the Standby database. Let&#8217;s Test 1. To set up the test environment, we first &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_52795\" class=\"pvc_stats all  \" data-element-id=\"52795\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":484,"featured_media":52796,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-52795","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-oracle"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Recovering a Datafile Deleted in Primary with Standby - Database Tutorials<\/title>\n<meta name=\"description\" content=\"We can recover a datafile that is corrupted or deleted in the Primary Database, or from a datafile in the Standby Database, which is briefly damaged.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Recovering a Datafile Deleted in Primary with Standby - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"We can recover a datafile that is corrupted or deleted in the Primary Database, or from a datafile in the Standby Database, which is briefly damaged.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-19T15:34:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-19T15:36:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2022\/10\/Ekran-goruntusu-2022-10-19-183305.png\" \/>\n\t<meta property=\"og:image:width\" content=\"772\" \/>\n\t<meta property=\"og:image:height\" content=\"347\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Onur ARDAHANLI\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Onur ARDAHANLI\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/\"},\"author\":{\"name\":\"Onur ARDAHANLI\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/7fcd466cd0d347ec64aaa48f18f780c6\"},\"headline\":\"Recovering a Datafile Deleted in Primary with Standby\",\"datePublished\":\"2022-10-19T15:34:30+00:00\",\"dateModified\":\"2022-10-19T15:36:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/\"},\"wordCount\":328,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2022\/10\/Ekran-goruntusu-2022-10-19-183305.png\",\"articleSection\":[\"ORACLE\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/\",\"name\":\"Recovering a Datafile Deleted in Primary with Standby - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2022\/10\/Ekran-goruntusu-2022-10-19-183305.png\",\"datePublished\":\"2022-10-19T15:34:30+00:00\",\"dateModified\":\"2022-10-19T15:36:01+00:00\",\"description\":\"We can recover a datafile that is corrupted or deleted in the Primary Database, or from a datafile in the Standby Database, which is briefly damaged.\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2022\/10\/Ekran-goruntusu-2022-10-19-183305.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2022\/10\/Ekran-goruntusu-2022-10-19-183305.png\",\"width\":772,\"height\":347},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Recovering a Datafile Deleted in Primary with Standby\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/7fcd466cd0d347ec64aaa48f18f780c6\",\"name\":\"Onur ARDAHANLI\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ecd20c3e1374ced4e1aefc82101cce4cd437be8fd957d1be3d106668b8a1b990?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ecd20c3e1374ced4e1aefc82101cce4cd437be8fd957d1be3d106668b8a1b990?s=96&d=mm&r=g\",\"caption\":\"Onur ARDAHANLI\"},\"url\":\"https:\/\/dbtut.com\/index.php\/author\/onurardahanli\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Recovering a Datafile Deleted in Primary with Standby - Database Tutorials","description":"We can recover a datafile that is corrupted or deleted in the Primary Database, or from a datafile in the Standby Database, which is briefly damaged.","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:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/","og_locale":"en_US","og_type":"article","og_title":"Recovering a Datafile Deleted in Primary with Standby - Database Tutorials","og_description":"We can recover a datafile that is corrupted or deleted in the Primary Database, or from a datafile in the Standby Database, which is briefly damaged.","og_url":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/","og_site_name":"Database Tutorials","article_published_time":"2022-10-19T15:34:30+00:00","article_modified_time":"2022-10-19T15:36:01+00:00","og_image":[{"width":772,"height":347,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2022\/10\/Ekran-goruntusu-2022-10-19-183305.png","type":"image\/png"}],"author":"Onur ARDAHANLI","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Onur ARDAHANLI","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/"},"author":{"name":"Onur ARDAHANLI","@id":"https:\/\/dbtut.com\/#\/schema\/person\/7fcd466cd0d347ec64aaa48f18f780c6"},"headline":"Recovering a Datafile Deleted in Primary with Standby","datePublished":"2022-10-19T15:34:30+00:00","dateModified":"2022-10-19T15:36:01+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/"},"wordCount":328,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2022\/10\/Ekran-goruntusu-2022-10-19-183305.png","articleSection":["ORACLE"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/","url":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/","name":"Recovering a Datafile Deleted in Primary with Standby - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2022\/10\/Ekran-goruntusu-2022-10-19-183305.png","datePublished":"2022-10-19T15:34:30+00:00","dateModified":"2022-10-19T15:36:01+00:00","description":"We can recover a datafile that is corrupted or deleted in the Primary Database, or from a datafile in the Standby Database, which is briefly damaged.","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2022\/10\/Ekran-goruntusu-2022-10-19-183305.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2022\/10\/Ekran-goruntusu-2022-10-19-183305.png","width":772,"height":347},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2022\/10\/19\/recovering-a-datafile-deleted-in-primary-with-standby\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"Recovering a Datafile Deleted in Primary with Standby"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/7fcd466cd0d347ec64aaa48f18f780c6","name":"Onur ARDAHANLI","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ecd20c3e1374ced4e1aefc82101cce4cd437be8fd957d1be3d106668b8a1b990?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ecd20c3e1374ced4e1aefc82101cce4cd437be8fd957d1be3d106668b8a1b990?s=96&d=mm&r=g","caption":"Onur ARDAHANLI"},"url":"https:\/\/dbtut.com\/index.php\/author\/onurardahanli\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/52795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/484"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=52795"}],"version-history":[{"count":1,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/52795\/revisions"}],"predecessor-version":[{"id":52797,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/52795\/revisions\/52797"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/52796"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=52795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=52795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=52795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}