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-27       - By zhu chao

Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Why not take a supported way?
Simply build a recover database at new server, apply the logs from primary
and then apply the last log, shutdown the primary, copy over the logfiles,
and then activate it.
and then run your upgrade scripts, can be done within 1 hour no matter how
big your database is!


On 9/27/05, Michael McMullen <ganstadba@(protected)> wrote:
>
> How come the production server isn't available during the export or it
> isn't
> safe?
> It seems going the script way would require a whole lot more monitoring
> then
> an exp/imp. Think of all the hours spent writing/debugging/monitoring the
> code. Are your servers the same OS?
> -- -- Original Message -- --
> From: <jost@(protected)>
> To: <ORACLE-L@(protected)>
> Sent: Tuesday, September 27, 2005 10:10 AM
> Subject: A special way of migration
>
>
> >
> >
> >
> >
> >
> > Hi list,
> >
> > i have an unusal question i think, but i am curios about your meaning
> about
> > this.
> >
> > I am often in the situation to get a production database from an old
> > db-server
> > to a new one. In some cases i am also instructed to lift up the Oracle
> > Version. Naturally i use export/import to get all the data of our
> > application
> > into the new database.
> >
> > Sometimes the databases are quite big (about 20 to 200 Gig), so the
> Import
> > and
> > some other stuff lasts long. The consequence is, of course, to do it at
> > weekends or after buisness hours.
> >
> > So far so good. There is no problem so far, but i was thinking about
> > another
> > solution for this task.(maybe i am just lazy? ;-)
> >
> > Here is my idea.
> >
> > Write a package to get the application data via a database link into the
> > new
> > database. The easiest way is "create table ... as select * from
> > ...@(protected)"
> >
> > This is very fast, as my first tests have shown.
> >
> > After that, i get all Indexes via some dynamic SQL, the same with all
> sorts
> > of
> > constraints. At last i get all defaults for the table columns also via
> > dynamic SQL
> >
> > The advantage for me is, i can start one procedure, enjoy my weekend and
> > just
> > have to look for problems after everything is done. It seems to be safe
> for
> > the old production database, so, in worst case, we just have to cancel
> the
> > installation of the new db-server, but the production database is still
> > available.
> >
> > What did i miss? Where are the pitfalls?
> >
> > I started to write the package. It is working inside a test - scenario
> with
> > a
> > small database.
> >
> > Some things are still missing. Views are not implemented now, also
> Triggers
> > are not ready yet. Packages of the application are no problem, because
> they
> > are part of the installation of the application so i can install it
> after
> > the
> > process is done. if they are compiling without errors, it is also a good
> > sign
> > for the whole "migration" of the data because of the dependencies.
> > Sequences are also not totally ready now.
> >
> > So, what is your opinion?
> >
> > Thx in advance
> >
> > Joerg
> >
> > --
> > http://www.freelists.org/webpage/oracle-l
> >
> --
> http://www.freelists.org/webpage/oracle-l
>



--
Regards
Zhu Chao
www.cnoug.org <http://www.cnoug.org>

<div>Why not take a supported way?</div>
<div>&nbsp;</div>
<div>Simply build a recover database at new server, apply the logs from primary
and then apply the last log, shutdown the primary, copy over the logfiles, and
then activate it.</div>
<div>and then run your upgrade scripts, can be done within 1 hour no matter how
big your database is!</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/27/05, <b class="gmail_sendername">Michael
McMullen</b> &lt;<a href="mailto:ganstadba@(protected)">ganstadba@(protected)<
/a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">How come the production server isn't
available during the export or it isn't<br>safe?<br>It seems going the script
way would require a whole lot more monitoring then
<br>an exp/imp. Think of all the hours spent writing/debugging/monitoring the
<br>code. Are your servers the same OS?<br>-- -- Original Message -- --<br>From:
&lt;<a href="mailto:jost@(protected)">jost@(protected)</a>&gt;
<br>To: &lt;<a href="mailto:ORACLE-L@(protected)">ORACLE-L@(protected)</a>
&gt;<br>Sent: Tuesday, September 27, 2005 10:10 AM<br>Subject: A special way of
migration<br><br><br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Hi list,
<br>&gt;<br>&gt; i have an unusal question i think, but i am curios about your
meaning<br>about<br>&gt; this.<br>&gt;<br>&gt; I am often in the situation to
get a production database from an old<br>&gt; db-server<br>&gt; to a new one.
In some cases i am also instructed to lift up the Oracle
<br>&gt; Version. Naturally i use export/import to get all the data of our<br>
&gt; application<br>&gt; into the new database.<br>&gt;<br>&gt; Sometimes the
databases are quite big (about 20 to 200 Gig), so the Import<br>&gt; and
<br>&gt; some other stuff lasts long. The consequence is, of course, to do it
at<br>&gt; weekends or after buisness hours.<br>&gt;<br>&gt; So far so good.
There is no problem so far, but i was thinking about<br>&gt; another
<br>&gt; solution for this task.(maybe i am just lazy? ;-)<br>&gt;<br>&gt; Here
is my idea.<br>&gt;<br>&gt; Write a package to get the application data via a
database link into the<br>&gt; new<br>&gt; database. The easiest way is &quot
;create table ... as select * from
<br>&gt; ...@(protected)&quot;<br>&gt;<br>&gt; This is very fast, as my first tests
have shown.<br>&gt;<br>&gt; After that, i get all Indexes via some dynamic SQL,
the same with all<br>sorts<br>&gt; of<br>&gt; constraints. At last i get all
defaults for the table columns also via
<br>&gt; dynamic SQL<br>&gt;<br>&gt; The advantage for me is, i can start one
procedure, enjoy my weekend and<br>&gt; just<br>&gt; have to look for problems
after everything is done. It seems to be safe<br>for<br>&gt; the old production
database, so, in worst case, we just have to cancel the
<br>&gt; installation of the new db-server, but the production database is
still<br>&gt; available.<br>&gt;<br>&gt; What did i miss? Where are the
pitfalls?<br>&gt;<br>&gt; I started to write the package. It is working inside
a test - scenario
<br>with<br>&gt; a<br>&gt; small database.<br>&gt;<br>&gt; Some things are
still missing. Views are not implemented now, also<br>Triggers<br>&gt; are not
ready yet. Packages of the application are no problem, because<br>they
<br>&gt; are part of the installation of the application so i can install it
after<br>&gt; the<br>&gt; process is done. if they are compiling without errors
, it is also a good<br>&gt; sign<br>&gt; for the whole &quot;migration&quot; of
the data because of the dependencies.
<br>&gt; Sequences are also not totally ready now.<br>&gt;<br>&gt; So, what is
your opinion?<br>&gt;<br>&gt; Thx in advance<br>&gt;<br>&gt;&nbsp;&nbsp;Joerg
<br>&gt;<br>&gt; --<br>&gt; <a href="http://www.freelists.org/webpage/oracle-l">
http://www.freelists.org/webpage/oracle-l</a><br>&gt;<br>--<br><a href="http:/
/www.freelists.org/webpage/oracle-l">http://www.freelists.org/webpage/oracle-l<
/a><br></blockquote></div><br><br clear="all"><br>-- <br>Regards
<br>Zhu Chao<br><a href="http://www.cnoug.org">www.cnoug.org</a><br>