{"id":2349,"date":"2019-07-05T17:06:16","date_gmt":"2019-07-05T20:06:16","guid":{"rendered":"https:\/\/zmsolution.laraclaud.com.br\/?p=2349"},"modified":"2019-07-05T17:06:16","modified_gmt":"2019-07-05T20:06:16","slug":"alterando-um-datafile-no-standby","status":"publish","type":"post","link":"http:\/\/zmsolution.com\/alterando-um-datafile-no-standby\/","title":{"rendered":"Alterando um datafile no standby"},"content":{"rendered":"
Quando um datafile \u00e9 criado no banco de produ\u00e7\u00e3o e o diskgroup ou a parti\u00e7\u00e3o n\u00e3o est\u00e1 mapeada no standby, pode ocorrer o erro abaixo:<\/p>\n
ORA-01119: erro ao criar o arquivo '+dg1_zmsolution' de banco de dados\r\nORA-17502: ksfdcre:4 Falhou ao criar o arquivo +dg1_zmsolution\r\nORA-15001: grupo de discos \"DG1_ZMSOLUTION\" n\u00e3o existe ou n\u00e3o est\u00e1 montado\r\nORA-15001: diskgroup \"DG1_ZMSOLUTION\" does not exist or is not mounted\r\nFile #198 added to control file as 'UNNAMED00198'.\r\nOriginally created as:\r\n'+DG1_ZMSOLUTION\/zmdb\/datafile\/zuim_ts_tx_data.280.1008514969'\r\nRecovery was unable to create the file as:\r\n'+dg1_zmsolution'\r\nErrors with log +DG_FRA\/zmdb\/zuim_arc_1_131660_890817996.dbf\r\nMRP0: Background Media Recovery terminated with error 1274\r\nErrors in file \/u01\/app\/zmdb\/diag\/rdbms\/zmdbsty\/zmdbsty1\/trace\/zmdbsty1_pr00_7388.trc:\r\nORA-01274: n\u00e3o \u00e9 poss\u00edvel adicionar o arquivo de dados '+DG1_ZMSOLUTION\/zmdb\/datafile\/zuim_ts_tx_data.280.1008514969' - o arquivo n\u00e3o p\u00f4de ser criado\r\nRecovery interrupted!\r\nFri May 17 16:20:59 2019\r\nRecovery stopped due to failure in applying recovery marker (opcode 17.30).\r\nDatafiles are recovered to a consistent state at change 6189833565041 but controlfile could be ahead of datafiles.\r\nFri May 17 16:20:59 2019\r\nMRP0: Background Media Recovery process shutdown (zmdbsty1)<\/pre>\nO procedimento para altera a localiza\u00e7\u00e3o do datafile \u00e9 bem\u00a0simples\u00a0.<\/p>\n
altere o\u00a0standby_file_management para manual<\/p>\n
alter system set standby_file_management='manual';<\/pre>\nCriei o novo datafile levando em quest\u00e3o o datafile criado fora de ordem.<\/p>\n
alter database create datafile '\/u01\/app\/zmdb\/product\/11.2.0.4\/dbs\/UNNAMED00023' as '+DG4\/zmdbsty\/datafile\/zuim_ts_tx_data.262';<\/pre>\nAltere o\u00a0standby_file_management para\u00a0Autom\u00e1tico<\/p>\n
alter system set standby_file_management='auto';<\/pre>\nHabilite novamente a replica\u00e7\u00e3o.<\/p>\n
recover managed standby database disconnect;<\/pre>\n<\/p>\n","protected":false},"excerpt":{"rendered":"
Quando um datafile \u00e9 criado no banco de produ\u00e7\u00e3o e o diskgroup ou a parti\u00e7\u00e3o n\u00e3o est\u00e1 mapeada no standby, pode ocorrer o erro abaixo: ORA-01119: erro ao criar o arquivo ‘+dg1_zmsolution’ de banco de dados ORA-17502: ksfdcre:4 Falhou ao criar o arquivo +dg1_zmsolution ORA-15001: grupo de discos “DG1_ZMSOLUTION” n\u00e3o existe ou n\u00e3o est\u00e1 montado ORA-15001: diskgroup “DG1_ZMSOLUTION” does not exist or is not mounted File #198 added to control file as ‘UNNAMED00198’. Originally created[…]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[21],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/posts\/2349"}],"collection":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/comments?post=2349"}],"version-history":[{"count":0,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/posts\/2349\/revisions"}],"wp:attachment":[{"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/media?parent=2349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/categories?post=2349"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zmsolution.com\/wp-json\/wp\/v2\/tags?post=2349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}