
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	《logical standby ORA-1119》的评论	</title>
	<atom:link href="http://www.killdb.com/2012/07/31/logical-standby-ora-1119/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.killdb.com/2012/07/31/logical-standby-ora-1119/</link>
	<description>Phone:18180207355 提供专业Oracle/MySQL/PostgreSQL数据恢复、性能优化、迁移升级、紧急救援等服务</description>
	<lastBuildDate>Tue, 31 Jul 2012 08:40:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.3.18</generator>
			<item>
				<title>
				作者：lizhenxu				</title>
				<link>http://www.killdb.com/2012/07/31/logical-standby-ora-1119/#comment-1104</link>
		<dc:creator><![CDATA[lizhenxu]]></dc:creator>
		<pubDate>Tue, 31 Jul 2012 08:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.killdb.com/?p=1324#comment-1104</guid>
					<description><![CDATA[SKIPPING PARTITION DDL ON YOUR LOGICAL STANDBY DATABASE [ID 417597.1]
Skipping Partition DDL on your Logical Standby Database
This note addresses the following use case: Your application only needs to maintain 3 months of data on line, partitioned monthly, but you also have a requirement to keep the data for 7 years. You can use your Logical standby database to keep this data longer so that the Primary database does not have to maintain the data.
To do this you will need to manually maintain the physical structure changes to the partitioned table on both the primary database and the standby database so when you add next months partition and remove last months partition on the primary, the partitions on the Logical standby database will not be changed automatically (data in the table will continue to be maintained by SQL Apply).  To do this you need to‘SKIP’ the “ALTER TABLE” command on the standby database so the delete partition will not be executed.  You will then need to add next month&#039;s partition on to the standby database.  The ‘SKIP’ is done using the DBMS_LOGSTDBY.SKIP[1] procedure on the Logical Standby database. Consider the following simple table on the primary database.
create table orders
(order_date date not null
, order_number number not null
, customer_code varchar2(7) not null
) partition by range ( order_date )
( partition p200611 values less than (to_date(&#039;01-Dec-2006&#039;) )
, partition p200612 values less than (to_date(&#039;01-Jan-2007&#039;) )
, partition p200701 values less than (to_date(&#039;01-Feb-2007&#039;) )
, partition p200702 values less than (to_date(&#039;01-Mar-2007&#039;) )
, partition pnext values less than (maxvalue));
The normal process each month is to prepare next months partition and remove the oldest partition from this table on the 15th of each month.  This would be performed using the “ALTER TABLE” command as follows.
alter table orders drop partition p2000611 update indexes;
alter table orders split partition pnext at (to_date(&#039;01-Apr-2007&#039;))
into ( partition p200703 , partition pnext ) update indexes;
By default these two DDL commands will be executed on the Logical standby database.  To prevent that (and keep the data longer) you first must skip these commands by using the DBMS_LOGSTDBY.SKIP procedure, once, to setup the skip rule.
On the standby, define the skip as follows:
alter database stop logical standby apply;
execute dbms_logstdby.skip(&#039;alter table&#039;,&#039;scott&#039;,&#039;orders&#039;);
alter database start logical standby apply;
Now when the “alter table drop partition” command is executed on the primary, the command will be skipped on the standby, preserving the data.  However, this will also skip the “alter table split partition” command on the Logical standby database, something you do not want to happen.  You address this on the standby database by manually executing the “alter table split partition” command after it has completed on the primary.
alter database stop logical standby apply;
alter session disable guard;
alter table scott.orders split partition pnext at (to_date(&#039;01-Apr-2007&#039;))
into ( partition p200703 , partition pnext ) update indexes;
alter session enable guard;
alter database start logical standby apply;
Note that you must specify the schema as well as the table (scott.orders) as you must be logged into the Logical standby database as SYS to disable the guard.
If you want to allow all other “ALTER TABLE” commands to be executed on this table and only skip the drop partition command, you can define a PL/SQL Procedure that you want to have executed whenever the &quot;ALTER TABLE&quot; command is received.  Now, rather than skipping all &quot;ALTER TABLE&quot; commands for the “scott.orders” table, you can specify what commands should be skipped and which ones should execute normally. 
The following PL/SQL Procedure is an example of an extremely simplified procedure that could be used.
create or replace procedure sys.sql_apply_partition_handler
(statement IN VARCHAR2
,statement_type IN VARCHAR2
,schema IN VARCHAR2
,name IN VARCHAR2
,lxidusn IN NUMBER
,lxidslt IN NUMBER
,lxidsqn IN NUMBER
,skip_action OUT NUMBER
,new_statement OUT VARCHAR2) AS
begin
IF upper(statement) like &#039;%DROP%PARTITION%&#039;
THEN
skip_action := sys.dbms_logstdby.SKIP_ACTION_SKIP;
new_statement := null;
ELSE --upper(statement) = &#039;%DROP%PARTITION%&#039;
skip_action := sys.dbms_logstdby.SKIP_ACTION_APPLY;
new_statement := null;
END IF; --Schema Check
end sql_apply_partition_handler;
/
This procedure will tell SQL Apply to skip all “DROP PARTITION”commands and allow all other &quot;ALTER TABLE&quot; commands to be applied normally.
To direct SQL Apply to call your procedure whenever it receives an“ALTER TABLE” command, you must change the skip definition changed so that the PL/SQL procedure is called as follows:
alter database stop logical standby apply;execute dbms_logstdby.skip(&#039;alter table&#039;,&#039;scott&#039;,&#039;orders&#039;,&#039;SYS.SQL_APPLY_PARTITION_HANDLER&#039;);
alter database start logical standby apply;References:1. DBMS_LOGSTDBY.SKIP - Data Guard Concepts and Administrationhttp://download-west.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ls.htm- CHDDIHHI]]></description>
		<content:encoded><![CDATA[<p>SKIPPING PARTITION DDL ON YOUR LOGICAL STANDBY DATABASE [ID 417597.1]<br />
Skipping Partition DDL on your Logical Standby Database<br />
This note addresses the following use case: Your application only needs to maintain 3 months of data on line, partitioned monthly, but you also have a requirement to keep the data for 7 years. You can use your Logical standby database to keep this data longer so that the Primary database does not have to maintain the data.<br />
To do this you will need to manually maintain the physical structure changes to the partitioned table on both the primary database and the standby database so when you add next months partition and remove last months partition on the primary, the partitions on the Logical standby database will not be changed automatically (data in the table will continue to be maintained by SQL Apply).  To do this you need to‘SKIP’ the “ALTER TABLE” command on the standby database so the delete partition will not be executed.  You will then need to add next month&#8217;s partition on to the standby database.  The ‘SKIP’ is done using the DBMS_LOGSTDBY.SKIP[1] procedure on the Logical Standby database. Consider the following simple table on the primary database.<br />
create table orders<br />
(order_date date not null<br />
, order_number number not null<br />
, customer_code varchar2(7) not null<br />
) partition by range ( order_date )<br />
( partition p200611 values less than (to_date(&#8217;01-Dec-2006&#8242;) )<br />
, partition p200612 values less than (to_date(&#8217;01-Jan-2007&#8242;) )<br />
, partition p200701 values less than (to_date(&#8217;01-Feb-2007&#8242;) )<br />
, partition p200702 values less than (to_date(&#8217;01-Mar-2007&#8242;) )<br />
, partition pnext values less than (maxvalue));<br />
The normal process each month is to prepare next months partition and remove the oldest partition from this table on the 15th of each month.  This would be performed using the “ALTER TABLE” command as follows.<br />
alter table orders drop partition p2000611 update indexes;<br />
alter table orders split partition pnext at (to_date(&#8217;01-Apr-2007&#8242;))<br />
into ( partition p200703 , partition pnext ) update indexes;<br />
By default these two DDL commands will be executed on the Logical standby database.  To prevent that (and keep the data longer) you first must skip these commands by using the DBMS_LOGSTDBY.SKIP procedure, once, to setup the skip rule.<br />
On the standby, define the skip as follows:<br />
alter database stop logical standby apply;<br />
execute dbms_logstdby.skip(&#8216;alter table&#8217;,&#8217;scott&#8217;,&#8217;orders&#8217;);<br />
alter database start logical standby apply;<br />
Now when the “alter table drop partition” command is executed on the primary, the command will be skipped on the standby, preserving the data.  However, this will also skip the “alter table split partition” command on the Logical standby database, something you do not want to happen.  You address this on the standby database by manually executing the “alter table split partition” command after it has completed on the primary.<br />
alter database stop logical standby apply;<br />
alter session disable guard;<br />
alter table scott.orders split partition pnext at (to_date(&#8217;01-Apr-2007&#8242;))<br />
into ( partition p200703 , partition pnext ) update indexes;<br />
alter session enable guard;<br />
alter database start logical standby apply;<br />
Note that you must specify the schema as well as the table (scott.orders) as you must be logged into the Logical standby database as SYS to disable the guard.<br />
If you want to allow all other “ALTER TABLE” commands to be executed on this table and only skip the drop partition command, you can define a PL/SQL Procedure that you want to have executed whenever the &#8220;ALTER TABLE&#8221; command is received.  Now, rather than skipping all &#8220;ALTER TABLE&#8221; commands for the “scott.orders” table, you can specify what commands should be skipped and which ones should execute normally.<br />
The following PL/SQL Procedure is an example of an extremely simplified procedure that could be used.<br />
create or replace procedure sys.sql_apply_partition_handler<br />
(statement IN VARCHAR2<br />
,statement_type IN VARCHAR2<br />
,schema IN VARCHAR2<br />
,name IN VARCHAR2<br />
,lxidusn IN NUMBER<br />
,lxidslt IN NUMBER<br />
,lxidsqn IN NUMBER<br />
,skip_action OUT NUMBER<br />
,new_statement OUT VARCHAR2) AS<br />
begin<br />
IF upper(statement) like &#8216;%DROP%PARTITION%&#8217;<br />
THEN<br />
skip_action := sys.dbms_logstdby.SKIP_ACTION_SKIP;<br />
new_statement := null;<br />
ELSE &#8211;upper(statement) = &#8216;%DROP%PARTITION%&#8217;<br />
skip_action := sys.dbms_logstdby.SKIP_ACTION_APPLY;<br />
new_statement := null;<br />
END IF; &#8211;Schema Check<br />
end sql_apply_partition_handler;<br />
/<br />
This procedure will tell SQL Apply to skip all “DROP PARTITION”commands and allow all other &#8220;ALTER TABLE&#8221; commands to be applied normally.<br />
To direct SQL Apply to call your procedure whenever it receives an“ALTER TABLE” command, you must change the skip definition changed so that the PL/SQL procedure is called as follows:<br />
alter database stop logical standby apply;execute dbms_logstdby.skip(&#8216;alter table&#8217;,&#8217;scott&#8217;,&#8217;orders&#8217;,&#8217;SYS.SQL_APPLY_PARTITION_HANDLER&#8217;);<br />
alter database start logical standby apply;References:1. DBMS_LOGSTDBY.SKIP &#8211; Data Guard Concepts and Administrationhttp://download-west.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ls.htm- CHDDIHHI</p>
]]></content:encoded>
						</item>
						<item>
				<title>
				作者：lizhenxu				</title>
				<link>http://www.killdb.com/2012/07/31/logical-standby-ora-1119/#comment-1103</link>
		<dc:creator><![CDATA[lizhenxu]]></dc:creator>
		<pubDate>Tue, 31 Jul 2012 08:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.killdb.com/?p=1324#comment-1103</guid>
					<description><![CDATA[&lt;pre lang=&quot;text&quot;&gt;
ORA-18008: DDL Not Applied in Logical Standby [ID 233730.1]
The information in this article applies to:

9.2.0.1 and higher versions of oracle with a logical standby setup.


Symptom(s)
~~~~~~~~~~

You created the logical standby as per the documentation successfully.
Now when a table is created in primary, you noticed it is not getting 
created in the logical standby. 

Change(s)
~~~~~~~~~~

While setting your Primary, you dropped some unwanted users 
which includes OUTLN. 


Fix
~~~~

Check the alert.log of your logical standby database. You can see in the alert
the create table statement accompanied by ora-18008:

Example:
=======
LSP0 started with pid=15
LOGSTDBY event: ORA-16111: log mining and apply setting up
Thu Mar 27 04:05:16 2003
Attempt to start background Logical Standby process
Completed: alter database start logical standby apply
Thu Mar 27 04:05:20 2003
LOGSTDBY event: ORA-18008: cannot find OUTLN schema
LOGSTDBY stmt: create table TEST_CHANDRA ( I INT, J INT) 

Due to the error ORA-18008, your DDL (create table) is not applied
in the logical standby. To resolve this issue, recreate the user OUTLN
and then try the log apply statement again.
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p></p><!-- Crayon Syntax Highlighter v_2.7.2_beta -->

		<div id="crayon-669424657ebbb478929362" class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
		
			<div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><span class="crayon-title"></span>
			<div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;"><div class="crayon-button crayon-nums-button" title="Toggle Line Numbers"><div class="crayon-button-icon"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code"><div class="crayon-button-icon"></div></div><div class="crayon-button crayon-wrap-button" title="Toggle Line Wrap"><div class="crayon-button-icon"></div></div><div class="crayon-button crayon-expand-button" title="Expand Code"><div class="crayon-button-icon"></div></div><div class="crayon-button crayon-copy-button" title="Copy"><div class="crayon-button-icon"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window"><div class="crayon-button-icon"></div></div></div></div>
			<div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;"></div>
			<div class="crayon-plain-wrap"><textarea wrap="soft" class="crayon-plain print-no" data-settings="dblclick" readonly style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;">
ORA-18008: DDL Not Applied in Logical Standby [ID 233730.1]
The information in this article applies to:

9.2.0.1 and higher versions of oracle with a logical standby setup.


Symptom(s)
~~~~~~~~~~

You created the logical standby as per the documentation successfully.
Now when a table is created in primary, you noticed it is not getting 
created in the logical standby. 

Change(s)
~~~~~~~~~~

While setting your Primary, you dropped some unwanted users 
which includes OUTLN. 


Fix
~~~~

Check the alert.log of your logical standby database. You can see in the alert
the create table statement accompanied by ora-18008:

Example:
=======
LSP0 started with pid=15
LOGSTDBY event: ORA-16111: log mining and apply setting up
Thu Mar 27 04:05:16 2003
Attempt to start background Logical Standby process
Completed: alter database start logical standby apply
Thu Mar 27 04:05:20 2003
LOGSTDBY event: ORA-18008: cannot find OUTLN schema
LOGSTDBY stmt: create table TEST_CHANDRA ( I INT, J INT) 

Due to the error ORA-18008, your DDL (create table) is not applied
in the logical standby. To resolve this issue, recreate the user OUTLN
and then try the log apply statement again.</textarea></div>
			<div class="crayon-main" style="">
				<table class="crayon-table">
					<tr class="crayon-row">
				<td class="crayon-nums " data-settings="show">
					<div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;"><div class="crayon-num" data-line="crayon-669424657ebbb478929362-1">1</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-2">2</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-3">3</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-4">4</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-5">5</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-6">6</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-7">7</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-8">8</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-9">9</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-10">10</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-11">11</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-12">12</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-13">13</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-14">14</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-15">15</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-16">16</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-17">17</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-18">18</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-19">19</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-20">20</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-21">21</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-22">22</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-23">23</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-24">24</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-25">25</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-26">26</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-27">27</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-28">28</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-29">29</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-30">30</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-31">31</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-32">32</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-33">33</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-34">34</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-35">35</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-36">36</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-37">37</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-38">38</div><div class="crayon-num" data-line="crayon-669424657ebbb478929362-39">39</div><div class="crayon-num crayon-striped-num" data-line="crayon-669424657ebbb478929362-40">40</div></div>
				</td>
						<td class="crayon-code"><div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><div class="crayon-line" id="crayon-669424657ebbb478929362-1"><span class="crayon-v">ORA</span><span class="crayon-o">-</span><span class="crayon-cn">18008</span><span class="crayon-o">:</span><span class="crayon-h"> </span><span class="crayon-e">DDL </span><span class="crayon-st">Not</span><span class="crayon-h"> </span><span class="crayon-e">Applied </span><span class="crayon-st">in</span><span class="crayon-h"> </span><span class="crayon-e">Logical </span><span class="crayon-i">Standby</span><span class="crayon-h"> </span><span class="crayon-sy">[</span><span class="crayon-i">ID</span><span class="crayon-h"> </span><span class="crayon-cn">233730.1</span><span class="crayon-sy">]</span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-2"><span class="crayon-e">The </span><span class="crayon-e">information </span><span class="crayon-st">in</span><span class="crayon-h"> </span><span class="crayon-r">this</span><span class="crayon-h"> </span><span class="crayon-e">article </span><span class="crayon-e">applies </span><span class="crayon-st">to</span><span class="crayon-o">:</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-3">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-4"><span class="crayon-cn">9.2.0.1</span><span class="crayon-h"> </span><span class="crayon-st">and</span><span class="crayon-h"> </span><span class="crayon-e">higher </span><span class="crayon-e">versions </span><span class="crayon-e">of </span><span class="crayon-e">oracle </span><span class="crayon-i">with</span><span class="crayon-h"> </span><span class="crayon-i">a</span><span class="crayon-h"> </span><span class="crayon-e">logical </span><span class="crayon-e">standby </span><span class="crayon-v">setup</span><span class="crayon-sy">.</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-5">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-6">&nbsp;</div><div class="crayon-line" id="crayon-669424657ebbb478929362-7"><span class="crayon-e">Symptom</span><span class="crayon-sy">(</span><span class="crayon-v">s</span><span class="crayon-sy">)</span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-8"><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-9">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-10"><span class="crayon-e">You </span><span class="crayon-e">created </span><span class="crayon-e">the </span><span class="crayon-e">logical </span><span class="crayon-e">standby </span><span class="crayon-st">as</span><span class="crayon-h"> </span><span class="crayon-e">per </span><span class="crayon-e">the </span><span class="crayon-e">documentation </span><span class="crayon-v">successfully</span><span class="crayon-sy">.</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-11"><span class="crayon-e">Now </span><span class="crayon-i">when</span><span class="crayon-h"> </span><span class="crayon-i">a</span><span class="crayon-h"> </span><span class="crayon-e">table </span><span class="crayon-st">is</span><span class="crayon-h"> </span><span class="crayon-e">created </span><span class="crayon-st">in</span><span class="crayon-h"> </span><span class="crayon-v">primary</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-e">you </span><span class="crayon-e">noticed </span><span class="crayon-e">it </span><span class="crayon-st">is</span><span class="crayon-h"> </span><span class="crayon-st">not</span><span class="crayon-h"> </span><span class="crayon-e">getting </span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-12"><span class="crayon-e">created </span><span class="crayon-st">in</span><span class="crayon-h"> </span><span class="crayon-e">the </span><span class="crayon-e">logical </span><span class="crayon-v">standby</span><span class="crayon-sy">.</span><span class="crayon-h"> </span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-13">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-14"><span class="crayon-e">Change</span><span class="crayon-sy">(</span><span class="crayon-v">s</span><span class="crayon-sy">)</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-15"><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-16">&nbsp;</div><div class="crayon-line" id="crayon-669424657ebbb478929362-17"><span class="crayon-st">While</span><span class="crayon-h"> </span><span class="crayon-e">setting </span><span class="crayon-e">your </span><span class="crayon-v">Primary</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-e">you </span><span class="crayon-e">dropped </span><span class="crayon-e">some </span><span class="crayon-e">unwanted </span><span class="crayon-e">users </span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-18"><span class="crayon-e">which </span><span class="crayon-e">includes </span><span class="crayon-v">OUTLN</span><span class="crayon-sy">.</span><span class="crayon-h"> </span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-19">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-20">&nbsp;</div><div class="crayon-line" id="crayon-669424657ebbb478929362-21"><span class="crayon-v">Fix</span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-22"><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span><span class="crayon-o">~</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-23">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-24"><span class="crayon-e">Check </span><span class="crayon-e">the </span><span class="crayon-v">alert</span><span class="crayon-sy">.</span><span class="crayon-e">log </span><span class="crayon-e">of </span><span class="crayon-e">your </span><span class="crayon-e">logical </span><span class="crayon-e">standby </span><span class="crayon-v">database</span><span class="crayon-sy">.</span><span class="crayon-h"> </span><span class="crayon-e">You </span><span class="crayon-e">can </span><span class="crayon-e">see </span><span class="crayon-st">in</span><span class="crayon-h"> </span><span class="crayon-e">the </span><span class="crayon-e">alert</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-25"><span class="crayon-e">the </span><span class="crayon-e">create </span><span class="crayon-e">table </span><span class="crayon-e">statement </span><span class="crayon-e">accompanied </span><span class="crayon-e">by </span><span class="crayon-v">ora</span><span class="crayon-o">-</span><span class="crayon-cn">18008</span><span class="crayon-o">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-26">&nbsp;</div><div class="crayon-line" id="crayon-669424657ebbb478929362-27"><span class="crayon-v">Example</span><span class="crayon-o">:</span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-28"><span class="crayon-o">===</span><span class="crayon-o">===</span><span class="crayon-o">=</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-29"><span class="crayon-e">LSP0 </span><span class="crayon-e">started </span><span class="crayon-e">with </span><span class="crayon-v">pid</span><span class="crayon-o">=</span><span class="crayon-cn">15</span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-30"><span class="crayon-e">LOGSTDBY </span><span class="crayon-v">event</span><span class="crayon-o">:</span><span class="crayon-h"> </span><span class="crayon-v">ORA</span><span class="crayon-o">-</span><span class="crayon-cn">16111</span><span class="crayon-o">:</span><span class="crayon-h"> </span><span class="crayon-e">log </span><span class="crayon-e">mining </span><span class="crayon-st">and</span><span class="crayon-h"> </span><span class="crayon-e">apply </span><span class="crayon-e">setting </span><span class="crayon-e">up</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-31"><span class="crayon-e">Thu </span><span class="crayon-i">Mar</span><span class="crayon-h"> </span><span class="crayon-cn">27</span><span class="crayon-h"> </span><span class="crayon-cn">04</span><span class="crayon-o">:</span><span class="crayon-cn">05</span><span class="crayon-o">:</span><span class="crayon-cn">16</span><span class="crayon-h"> </span><span class="crayon-cn">2003</span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-32"><span class="crayon-e">Attempt </span><span class="crayon-st">to</span><span class="crayon-h"> </span><span class="crayon-e">start </span><span class="crayon-e">background </span><span class="crayon-e">Logical </span><span class="crayon-e">Standby </span><span class="crayon-e">process</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-33"><span class="crayon-v">Completed</span><span class="crayon-o">:</span><span class="crayon-h"> </span><span class="crayon-e">alter </span><span class="crayon-e">database </span><span class="crayon-e">start </span><span class="crayon-e">logical </span><span class="crayon-e">standby </span><span class="crayon-e">apply</span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-34"><span class="crayon-e">Thu </span><span class="crayon-i">Mar</span><span class="crayon-h"> </span><span class="crayon-cn">27</span><span class="crayon-h"> </span><span class="crayon-cn">04</span><span class="crayon-o">:</span><span class="crayon-cn">05</span><span class="crayon-o">:</span><span class="crayon-cn">20</span><span class="crayon-h"> </span><span class="crayon-cn">2003</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-35"><span class="crayon-e">LOGSTDBY </span><span class="crayon-v">event</span><span class="crayon-o">:</span><span class="crayon-h"> </span><span class="crayon-v">ORA</span><span class="crayon-o">-</span><span class="crayon-cn">18008</span><span class="crayon-o">:</span><span class="crayon-h"> </span><span class="crayon-e">cannot </span><span class="crayon-e">find </span><span class="crayon-e">OUTLN </span><span class="crayon-e">schema</span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-36"><span class="crayon-e">LOGSTDBY </span><span class="crayon-v">stmt</span><span class="crayon-o">:</span><span class="crayon-h"> </span><span class="crayon-e">create </span><span class="crayon-e">table </span><span class="crayon-e">TEST_CHANDRA</span><span class="crayon-h"> </span><span class="crayon-sy">(</span><span class="crayon-h"> </span><span class="crayon-i">I</span><span class="crayon-h"> </span><span class="crayon-t">INT</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-i">J</span><span class="crayon-h"> </span><span class="crayon-t">INT</span><span class="crayon-sy">)</span><span class="crayon-h"> </span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-37">&nbsp;</div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-38"><span class="crayon-e">Due </span><span class="crayon-st">to</span><span class="crayon-h"> </span><span class="crayon-e">the </span><span class="crayon-e">error </span><span class="crayon-v">ORA</span><span class="crayon-o">-</span><span class="crayon-cn">18008</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-e">your </span><span class="crayon-e">DDL</span><span class="crayon-h"> </span><span class="crayon-sy">(</span><span class="crayon-e">create </span><span class="crayon-v">table</span><span class="crayon-sy">)</span><span class="crayon-h"> </span><span class="crayon-st">is</span><span class="crayon-h"> </span><span class="crayon-st">not</span><span class="crayon-h"> </span><span class="crayon-e">applied</span></div><div class="crayon-line" id="crayon-669424657ebbb478929362-39"><span class="crayon-st">in</span><span class="crayon-h"> </span><span class="crayon-e">the </span><span class="crayon-e">logical </span><span class="crayon-v">standby</span><span class="crayon-sy">.</span><span class="crayon-h"> </span><span class="crayon-st">To</span><span class="crayon-h"> </span><span class="crayon-e">resolve </span><span class="crayon-r">this</span><span class="crayon-h"> </span><span class="crayon-v">issue</span><span class="crayon-sy">,</span><span class="crayon-h"> </span><span class="crayon-e">recreate </span><span class="crayon-e">the </span><span class="crayon-e">user </span><span class="crayon-e">OUTLN</span></div><div class="crayon-line crayon-striped-line" id="crayon-669424657ebbb478929362-40"><span class="crayon-st">and</span><span class="crayon-h"> </span><span class="crayon-st">then</span><span class="crayon-h"> </span><span class="crayon-st">try</span><span class="crayon-h"> </span><span class="crayon-e">the </span><span class="crayon-e">log </span><span class="crayon-e">apply </span><span class="crayon-e">statement </span><span class="crayon-v">again</span><span class="crayon-sy">.</span></div></div></td>
					</tr>
				</table>
			</div>
		</div>
<!-- [Format Time: 0.0040 seconds] -->
<p></p>
]]></content:encoded>
						</item>
			</channel>
</rss>
