{"id":449,"date":"2010-04-15T10:50:51","date_gmt":"2010-04-15T07:50:51","guid":{"rendered":"http:\/\/blog.yavor.info\/?p=449"},"modified":"2010-04-15T10:50:51","modified_gmt":"2010-04-15T07:50:51","slug":"dataguard-%d0%b7%d0%b0%d0%ba%d0%b0%d1%87%d0%ba%d0%b0","status":"publish","type":"post","link":"http:\/\/blog.yavor.info\/?p=449","title":{"rendered":"DataGuard \u0437\u0430\u043a\u0430\u0447\u043a\u0430"},"content":{"rendered":"<p>\u0417\u0430\u043f\u0438\u0441\u0432\u0430\u043c \u0441\u0438 \u0434\u0430 \u043d\u0435 \u0437\u0430\u0431\u0440\u0430\u0432\u044f. <\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c: \u0431\u043e\u0440\u043a\u0435\u0440\u0430 \u043c\u0440\u044a\u043d\u043a\u0430, \u0447\u0435 \u043d\u0435\u0449\u043e \u043d\u0435 \u043c\u0443 \u0435 \u043d\u0430 \u043a\u0435\u0444:<\/p>\n<pre lang=\"text\">\r\nDGMGRL> show configuration\r\n\r\nConfiguration\r\n  Name:                DG_DEV\r\n  Enabled:             YES\r\n  Protection Mode:     MaxPerformance\r\n  Fast-Start Failover: DISABLED\r\n  Databases:\r\n    prim  - Primary database\r\n    stb1 - Logical standby database\r\n    stb2 - Physical standby database\r\n\r\nCurrent status for \"DG_DEV\":\r\nWarning: ORA-16608: one or more databases have warnings\r\n<\/pre>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430&#8230; \u0445\u043c, \u043d\u0435 \u0447\u0435 \u0441\u0442\u0430\u0432\u0430 \u044f\u0441\u0435\u043d, \u0430\u043c\u0430 \u043f\u043e\u043d\u0435 \u0434\u043e\u043b\u0443-\u0433\u043e\u0440\u0435 \u0441\u0435 \u0432\u0438\u0436\u0434\u0430 \u043e\u0442 Primary \u0431\u0430\u0437\u0430\u0442\u0430:<\/p>\n<pre lang=\"text\">\r\nDGMGRL> show database prim\r\n\r\nDatabase\r\n  Name:            prim\r\n  Role:            PRIMARY\r\n  Enabled:         YES\r\n  Intended State:  ONLINE\r\n  Instance(s):\r\n    prim\r\n\r\nCurrent status for \"prim\":\r\nWarning: ORA-16801: redo transport-related property is inconsistent with database setting\r\n<\/pre>\n<p>\u0422\u043e\u0432\u0430 \u0441\u044a\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0432\u0441\u044a\u0449\u043d\u043e\u0441\u0442, \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0435 \u043f\u043e-\u044f\u0441\u043d\u043e \u043e\u0442 \u043f\u0440\u0435\u0434\u0438\u0448\u043d\u043e\u0442\u043e. \u041e\u0442\u043d\u043e\u0432\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u0438\u044f \u043f\u0440\u0435\u0432\u043e\u0434 \u0435 <em>&#8222;\u0430\u0431\u0435 \u0431\u0430\u0447\u043a\u0430\u043c, \u0430\u043c\u0430 \u043d\u0435\u0449\u043e \u043d\u0435 \u043c\u0438 \u0435 \u0441\u044a\u0432\u0441\u0435\u043c \u043d\u0430 \u0442\u0430\u043c\u0430\u043d&#8220;<\/em>. \u0410\u043c\u0430 \u043f\u043e\u043d\u0435 \u0441 \u043f\u043e\u043e\u0433\u043b\u0435\u0436\u0434\u0430\u043d\u0435 \u0432 google \u0437\u0430 \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u044f \u0433\u0440\u0435\u0448\u043a\u0430 \u0441\u0435 \u0432\u0438\u0436\u0434\u0430, \u0447\u0435 \u0438\u043c\u0430 \u043d\u044f\u043a\u0430\u043a\u0432\u0430 \u0440\u0430\u0437\u043b\u0438\u043a\u0430 \u043e\u0442 \u0437\u0430\u0434\u0430\u0434\u0435\u043d\u0438\u0442\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0442\u0430 \u043e\u043f\u0446\u0438\u0438 \u0438 \u0440\u0435\u0430\u043b\u043d\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0430\u0449\u0438\u0442\u0435. \u0421 \u043e\u0449\u0435 \u043c\u0430\u043b\u043a\u043e \u0432\u044a\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u0435 \u043d\u0430\u043c\u0438\u0440\u0430 \u0438 \u043a\u0430\u043a \u0441\u0430 \u043f\u043e\u043f\u0438\u0442\u0430\u043c <em>&#8222;\u0434\u043e\u0431\u0440\u0435, \u0434\u0435, \u043a\u0430\u043a\u0432\u043e \u0442\u043e\u0447\u043d\u043e \u043d\u0435 \u0442\u0438 \u0435 \u043d\u0430 \u043a\u0435\u0444?&#8220;<\/em>:<\/p>\n<pre lang=\"text\">\r\nDGMGRL> show instance prim 'InconsistentLogXptProps';\r\nINCONSISTENT LOG TRANSPORT PROPERTIES\r\n   INSTANCE_NAME         STANDBY_NAME        PROPERTY_NAME         MEMORY_VALUE         BROKER_VALUE\r\n           prim                stb1             LogXptMode       (missing SRLs)                ASYNC\r\n<\/pre>\n<p>\u0410\u0445\u0430\u0430\u0430&#8230; \u0438 \u043c\u0430\u043b\u043a\u043e \u043e\u043f\u0438\u0442 \u0434\u0430 \u0438\u043c\u0430\u0448 \u0441 DataGuard, \u043d\u0430\u0443\u0447\u0430\u0432\u0430 \u0441\u0435 \u043d\u0435\u043f\u0438\u0441\u0430\u043d\u043e\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0447\u0435 STLs \u043e\u0437\u043d\u0430\u0447\u0430\u0432\u0430 standby redo logs. \u0417\u043d\u0430\u0447\u0438 \u043d\u0430 stb1 \u043d\u044f\u043c\u0430 \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0438\u0432\u0430. \u041f\u0440\u0430\u0432\u0438\u043c \u0433\u0438 \u043d\u0430 \u0431\u044a\u0440\u0437\u043e:<\/p>\n<pre lang=\"plsql\">\r\nALTER DATABASE ADD STANDBY LOGFILE THREAD 1 GROUP 110 SIZE 50M\r\n                                           ,GROUP 111 SIZE 50M\r\n                                           ,GROUP 112 SIZE 50M;\r\n<\/pre>\n<p>\u0421\u043b\u0435\u0434\u0432\u0430\u0449\u0438\u044f \u0432\u044a\u043f\u0440\u043e\u0441 \u043a\u044a\u043c \u0431\u0440\u043e\u043a\u0435\u0440\u0430 \u0435 &#8222;<em>\u0441\u0435\u0433\u0430 \u0443\u0439\u0434\u0438\u0441\u0432\u0430 \u043b\u0438 \u0442\u0438 \u0432\u0441\u0438\u0447\u043a\u043e?<\/em>&#8220;<\/p>\n<pre lang=\"text\">\r\n show configuration\r\n\r\nConfiguration\r\n  Name:                DG_DEV\r\n  Enabled:             YES\r\n  Protection Mode:     MaxPerformance\r\n  Fast-Start Failover: DISABLED\r\n  Databases:\r\n    prim  - Primary database\r\n    stb1 - Logical standby database\r\n    stb2 - Physical standby database\r\n\r\nCurrent status for \"DG_DEV\":\r\nWarning: ORA-16608: one or more databases have warnings\r\n<\/pre>\n<p>\u041e\u0444, \u043f\u0430\u043a \u043c\u0438 \u043d\u0430\u043c\u0438\u0440\u0430 \u043a\u0443\u0441\u0443\u0440\u0438! \u0425\u0430\u0439\u0434\u0435 \u0434\u0430 \u0432\u0438\u0434\u0438\u043c \u0441\u0435\u0433\u0430 \u043f\u044a\u043a \u043a\u0430\u043a\u0432\u043e \u043d\u0435 \u043c\u0443 \u0445\u0430\u0440\u0435\u0441\u0432\u0430:<\/p>\n<pre lang=\"text\">\r\nDGMGRL> show database stb1\r\n\r\nDatabase\r\n  Name:            stb1\r\n  Role:            LOGICAL STANDBY\r\n  Enabled:         YES\r\n  Intended State:  ONLINE\r\n  Instance(s):\r\n    lintgr\r\n\r\nCurrent status for \"stb1\":\r\nWarning: ORA-16826: apply service state is inconsistent with the DelayMins property\r\n<\/pre>\n<p>\u0422\u0443\u043a \u0433\u0440\u0435\u0448\u043a\u0430\u0442\u0430 \u0435 \u044f\u0441\u043d\u0430. \u0421\u043f\u043e\u0440\u0435\u0434 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0442\u0430, \u0442\u0430\u0437\u0438 \u0433\u0440\u0435\u0448\u043a\u0430 \u043e\u0437\u043d\u0430\u0447\u0430\u0432\u0430:<\/p>\n<blockquote><p><strong>Cause<\/strong><\/p>\n<p>This warning was caused by one of the following reasons:<\/p>\n<p>&#8211; The apply service was started without specifying the real-time apply option or without the NODELAY option when the DelayMins property was set to zero.<\/p>\n<p>&#8211; The apply service was started with the real-time apply option or with the NODELAY option when the DelayMins property was set to a value greater than zero.<\/p>\n<p><strong>Action<\/strong><\/p>\n<p>Reenable the standby database to allow the broker to restart the apply service with the apply options that are consistent with the specified value of the DelayMins property.<\/p><\/blockquote>\n<p>\u041c\u043d\u043e\u0433\u043e \u044f\u0441\u043d\u043e &#8211; standby \u0431\u0430\u0437\u0430\u0442\u0430 \u0435 \u043f\u0443\u0441\u043d\u0430\u0442\u0430, \u043a\u043e\u0433\u0430\u0442\u043e \u0435 \u043d\u044f\u043c\u0430\u043b\u043e SRLs. \u0421\u043b\u0435\u0434 \u0434\u043e\u0431\u0430\u0432\u044f\u043d\u0435\u0442\u043e, Apply-\u044f \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0441\u0435 \u043f\u0443\u0441\u043d\u0435 \u043e\u0442\u043d\u043e\u0432\u043e, \u0437\u0430 \u0434\u0430 \u0437\u0430\u0445\u0430\u043f\u0435 \u0441 NODELAY.<\/p>\n<pre lang=\"text\">\r\nDGMGRL> disable database stb1\r\nDisabled.\r\nDGMGRL> enable database stb1\r\nEnabled.\r\nDGMGRL> show configuration\r\n\r\nConfiguration\r\n  Name:                DG_DEV\r\n  Enabled:             YES\r\n  Protection Mode:     MaxPerformance\r\n  Fast-Start Failover: DISABLED\r\n  Databases:\r\n    prim  - Primary database\r\n    stb1 - Logical standby database\r\n    stb2 - Physical standby database\r\n\r\nCurrent status for \"DG_DEV\":\r\nSUCCESS\r\n<\/pre>\n<p>\u0415\u0439, \u043d\u0430\u0439-\u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0438\u0447\u043a\u043e \u043c\u0443 \u0435 \u043d\u0430\u0440\u0435\u0434! \u0421\u0435\u0433\u0430 \u0432\u0435\u0447\u0435 \u043c\u043e\u0433\u0430 \u0434\u0430 \u0433\u043e \u0447\u0443\u043f\u044f&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u043f\u0438\u0441\u0432\u0430\u043c \u0441\u0438 \u0434\u0430 \u043d\u0435 \u0437\u0430\u0431\u0440\u0430\u0432\u044f. <\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c: \u0431\u043e\u0440\u043a\u0435\u0440\u0430 \u043c\u0440\u044a\u043d\u043a\u0430, \u0447\u0435 \u043d\u0435\u0449\u043e \u043d\u0435 \u043c\u0443 \u0435 \u043d\u0430 \u043a\u0435\u0444:<\/p>\n<pre lang=\"text\">\r\nDGMGRL> show configuration<br \/>\r\n<br \/>\r\nConfiguration<br \/>\r\n  Name:                DG_DEV<br \/>\r\n  Enabled:             YES<br \/>\r\n  Protection Mode:     MaxPerformance<br \/>\r\n  Fast-Start Failover: DISABLED<br \/>\r\n  Databases:<br \/>\r\n    prim  - Primary database<br \/>\r\n    stb1 - Logical standby database<br \/>\r\n    stb2 - Physical standby database<br \/>\r\n<br \/>\r\nCurrent status for \"DG_DEV\":<br \/>\r\nWarning: ORA-16608: one or more databases have warnings<br \/>\r\n<\/pre>\n<p>(<a href=\"http:\/\/blog.yavor.info\/?p=449\">A\u043a\u043e \u0442\u0438 \u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0447\u0435\u0442\u0438 \u043d\u0430\u0442\u0430\u0442\u044a\u043a&#8230;<\/a>)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/blog.yavor.info\/index.php?rest_route=\/wp\/v2\/posts\/449"}],"collection":[{"href":"http:\/\/blog.yavor.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yavor.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yavor.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yavor.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=449"}],"version-history":[{"count":0,"href":"http:\/\/blog.yavor.info\/index.php?rest_route=\/wp\/v2\/posts\/449\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.yavor.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yavor.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=449"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yavor.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}