Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Recreating the controlefile with x$ tables
For my standby failover demo, I used perl to munge the trace controlfile. I would rely on the trace controlfile instead of trying to generate one yourself, because you never know in which version x$ tables are going to change.
Take a look at the subroutine called
"mangle_and_move_trace_controlfile()" at:
http://www.speakeasy.org/~jwilton/standby-failover
-- Jeremiah Wilton http://www.speakeasy.net/~jwilton On Fri, 13 Jul 2001, [iso-8859-1] paquette stephane wrote:Received on Fri Jul 13 2001 - 11:16:08 CDT
> I'll have to transfer a db between servers
> automatically.
>
> When doing it manually , I just do an alter database
> backup controlfile to trace, edit the trace file and
> change what I want.
>
> Now, let say I want to generate myself the create
> controlfile trace file. All the information is in the
> data dictionnary but in obscur table like
> x$kccdi.dimlm for the maxlogmembers parameter of
> create controlfile.
>
> I was wandering if others were doing it this way or
> using sed or awk (I know none of them) to do changes
> to the trace file.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jeremiah Wilton INET: jwilton_at_speakeasy.net Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
![]() |
![]() |