.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
A special way of migration

A special way of migration

2005-09-28       - By Gogala, Mladen
Reply:     <<     11     12     13     14     15     16     17  

Comments inline

--
Mladen Gogala
Ext. 121

-- --Original Message-- --
From: Lex de Haan [mailto:lex.de.haan@(protected)]
Sent: Wednesday, September 28, 2005 1:06 PM
To: makbo@(protected)
Cc: ORACLE-L@(protected)
Subject: RE: A special way of migration

"The whole export will be read into undo segments" is wrong;
also, the export will *not* result in more undo generation or retention.
[Mladen Gogala]

Well, for an active database, it results in a very large quantities of undo
information being generated. It also results in corrupt dump file, if
direct=y option is used and if your version is 9.2.0.x, x<=4. It's not the
whole database being copied, it's just 70%. That is a huge difference on a
multi-TB database.

the export job "just" risks ORA-1555 (See ORA-1555.ora-code.com) (snapshot too old) in case concurrently
running transactions have overwritten undo info needed to reconstruct read
consistent block images. only the blocks dirtied since the export job
started
will be cloned in the buffer cache, and *only then* certain undo information
is
needed to reconstruct older block images.
[Mladen Gogala]

That is correct. Unfortunately, the full export is usually done by night, as
are various mass update jobs. Theoretically, you are correct. Practically,
I've had too many alarms caused by 1555 wake me up in the middle of the
night. Nobody will be using consistent=y for the full database export on
my watch. It's a fact of life and it's non-negotiable, just like gravity.
ORA-01555 (See ORA-01555.ora-code.com) will cause OEM to remember me and make sure that I'm awake. Failed
jobs and job re-runs have to be documented, cause all kinds of scheduling
problems and force me to write unwanted reports to my boss. It's anything
but harmless.

so what you need to do (as Mark suggests below) is to size your undo
tablespace
and to set the undo retention appropriately. in 10g, you can set the
retention
to be guaranteed; until 9i, it is based on best effort.
[Mladen Gogala]


Not using evil things like consistent=yes is the way I like it. I will
rather send my money to the victims of Katrina then to the disk
manufacturers. I know that 10g has several ways of ensuring that disk
manufacturers do not have to beg for food (flashback, recycle bin,
guaranteed retention) but at the moment I am not in the mood to help out
poor veeps at Seagate, Maxtor and Fujitsu any more than I already have to.
You can call me cruel, I will not mind. CONSISTENT=YES is evil, period.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: A special way of migration</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Comments inline</FONT>
</P>

<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>Mladen Gogala</FONT>
<BR><FONT SIZE=2>Ext. 121</FONT>
</P>

<P><FONT SIZE=2>-- --Original Message-- --</FONT>
<BR><FONT SIZE=2>From: Lex de Haan [<A HREF="mailto:lex.de.haan@(protected)"
>mailto:lex.de.haan@(protected)</A>] </FONT>
<BR><FONT SIZE=2>Sent: Wednesday, September 28, 2005 1:06 PM</FONT>
<BR><FONT SIZE=2>To: makbo@(protected)</FONT>
<BR><FONT SIZE=2>Cc: ORACLE-L@(protected)</FONT>
<BR><FONT SIZE=2>Subject: RE: A special way of migration</FONT>
</P>

<P><FONT SIZE=2>&quot;The whole export will be read into undo segments&quot; is
wrong; </FONT>
<BR><FONT SIZE=2>also, the export will *not* result in more undo generation or
retention.</FONT>
<BR><FONT SIZE=2>[Mladen Gogala] </FONT>
</P>

<P><FONT SIZE=2>Well, for an active database, it results in a very large
quantities of undo </FONT>
<BR><FONT SIZE=2>information being generated. It also results in corrupt dump
file, if direct=y option is used and if your version is 9.2.0.x, x&lt;=4. It's
not the</FONT></P>

<P><FONT SIZE=2>whole database being copied, it's just 70%. That is a huge
difference on a</FONT>
<BR><FONT SIZE=2>multi-TB database.</FONT>
</P>

<P><FONT SIZE=2>the export job &quot;just&quot; risks ORA-1555 (See ORA-1555.ora-code.com) (snapshot too
old) in case concurrently</FONT>
<BR><FONT SIZE=2>running transactions have overwritten undo info needed to
reconstruct read</FONT>
<BR><FONT SIZE=2>consistent block images. only the blocks dirtied since the
export job started</FONT>
<BR><FONT SIZE=2>will be cloned in the buffer cache, and *only then* certain
undo information is</FONT>
<BR><FONT SIZE=2>needed to reconstruct older block images.</FONT>
<BR><FONT SIZE=2>[Mladen Gogala] </FONT>
</P>

<P><FONT SIZE=2>That is correct. Unfortunately, the full export is usually done
by night, as are various mass update jobs. Theoretically, you are correct.
Practically, I've had too many alarms caused by 1555 wake me up in the middle
of the night. Nobody will be using consistent=y for the full database export on
</FONT></P>

<P><FONT SIZE=2>my watch. It's a fact of life and it's non-negotiable, just
like gravity.</FONT>
<BR><FONT SIZE=2>ORA-01555 (See ORA-01555.ora-code.com) will cause OEM to remember me and make sure that I'm
awake. Failed</FONT>
<BR><FONT SIZE=2>jobs and job re-runs have to be documented, cause all kinds of
scheduling problems and force me to write unwanted reports to my boss. It's
anything but harmless.</FONT></P>

<P><FONT SIZE=2>so what you need to do (as Mark suggests below) is to size your
undo tablespace</FONT>
<BR><FONT SIZE=2>and to set the undo retention appropriately. in 10g, you can
set the retention</FONT>
<BR><FONT SIZE=2>to be guaranteed; until 9i, it is based on best effort.</FONT>
<BR><FONT SIZE=2>[Mladen Gogala] </FONT>
</P>
<BR>

<P><FONT SIZE=2>Not using evil things like consistent=yes is the way I like it.
I will rather send my money to the victims of Katrina then to the disk
manufacturers. I know that 10g has several ways of ensuring that disk</FONT></P
>

<P><FONT SIZE=2>manufacturers do not have to beg for food (flashback, recycle
bin, guaranteed retention) but at the moment I am not in the mood to help out<
/FONT></P>

<P><FONT SIZE=2>poor veeps at Seagate, Maxtor and Fujitsu any more than I
already have to. </FONT>
<BR><FONT SIZE=2>You can call me cruel, I will not mind. CONSISTENT=YES is evil
, period.</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
</P>

</BODY>
</HTML>