Entrar
¿Usuario nuevo? Regístrate
AdminBDOracle · Administración de Bases de Datos Oracle
? ¿Ya estás suscrito? Entrar en Yahoo!

Consejos de Yahoo! Grupos

¿Sabías que...?
Puedes buscar mensajes antiguos en un grupo.

Mensajes

  Mensajes Ayuda
Avanzado
Clonar base para testeo   Lista de mensajes  
Responder | Reenviar Mensaje #7070 de 7404 |
RE: [Oracle] Clonar base para testeo

Muchas gracias Diego, Byron, Alvaro
esos eran los tips que necesitaba,
ahora los voy a probar todos, y de seguro alguno me tiene que salir... como
dijo un amigo "La practica hace al maestro"

Saludos



--- En AdminBDOracle@yahoogroups.com, Byron Michael Motta Bonilla <amfodd@...>
escribió:
>
> Hola Diego,
>
> Excelente!!!, decididamente sencillo de hacer y sin inconvenientes.
>
> Un cordial saludo,
>
> Byron
>
> 2009/6/2 Diego Duque <diego.duque@...>
>
> >
> >
> > Bueno, tambien les propongo este procedimiento.
> >
> > Con un poco de ajustes serviria para Windows.
> >
> > Tomado de:
*http://oracle-tips.c.topica.com/maamMzyabNEn9cixffzb/*<http://oracle-tips.c.top\
ica.com/maamMzyabNEn9cixffzb/
>
> >
> > Super fast Database Copying/Cloning
> >
> > *Oracle Tips by Burleson Consulting*
> >
> > A database cloning procedure is especially useful for the DBA who wants to
> > give his developers a full-sized TEST and DEV instance by cloning the PROD
> > instance into the development server areas.
> >
> > This Oracle clone procedure can be use to quickly migrate a system from one
> > UNIX server to another. It clones the Oracle database and this Oracle
> > cloning procedures is often the fastest way to copy a Oracle database.
> >
> > *STEP 1:* On the old system, go into SQL*Plus, sign on as SYSDBA and
> > issue: "alter database backup controlfile to trace". This will put the
> > create database syntax in the trace file directory. The trace keyword tells
> > oracle to generate a script containing a create controlfile command and
> > store it in the trace directory identified in the user_dump_dest parameter
> > of the init.ora file. It will look something like this:
> >
> > STARTUP NOMOUNT
> > CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGS
> > NOARCHIVELOG
> > MAXLOGFILES 16
> > MAXLOGMEMBERS 2
> > MAXDATAFILES 240
> > MAXINSTANCES 1
> > MAXLOGHISTORY 113
> > LOGFILE
> > GROUP 1 ('/u03/oradata/oldlsq/log1a.dbf',
> > '/u03/oradata/olslsq/log1b.dbf') SIZE 30M,
> > GROUP 2 ('/u04/oradata/oldlsq/log2a.dbf',
> > '/u04/oradata/oldlsq/log2b.dbf') SIZE 30M
> > DATAFILE
> > '/u01/oradata/oldlsq/system01.dbf',
> > '/u01/oradata/oldlsq/mydatabase.dbf'
> > ;
> > # Recovery is required if any of the datafiles are restored
> > # backups, or if the last shutdown was not normal or immediate.
> > RECOVER DATABASE
> > # Database can now be opened normally.
> > ALTER DATABASE OPEN;
> >
> >
> > *STEP 2: *Shutdown the old database
> >
> > *STEP 3:* Copy all data files into the new directories on the new server.
> > You may change the file names if you want, but you must edit the controlfile
> > to reflect the new data files names on the new server.
> >
> > rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq
> > rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsq
> > rcp /u03/oradata/oldlsq/* newhost:/u03/oradata/newlsq
> > rcp /u04/oradata/oldlsq/* newhost:/u04/oradata/newlsq
> >
> >
> > *STEP 4:* Copy and Edit the Control file – Using the output syntax from
> > STEP 1, modify the controlfile creation script by changing the following:
> >
> > Old:
> >
> > CREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGS
> >
> > New:
> >
> > CREATE CONTROLFILE SET DATABASE "NEWLSQ" RESETLOGS
> >
> > *STEP 5:* Remove the "recover database" and "alter database open" syntax
> >
> > # Recovery is required if any of the datafiles are restored
> > # backups, or if the last shutdown was not normal or immediate.
> > RECOVER DATABASE
> > # Database can now be opened normally.
> > ALTER DATABASE OPEN;
> >
> >
> > *STEP 6*: Re-names of the data files names that have changed.
> >
> > Save as *db_create_controlfile.sql.*
> >
> > Old:
> >
> > DATAFILE
> > '/u01/oradata/oldlsq/system01.dbf',
> > '/u01/oradata/oldlsq/mydatabase.dbf'
> >
> > New:
> >
> > DATAFILE
> > '/u01/oradata/newlsq/system01.dbf',
> > '/u01/oradata/newlsq/mydatabase.dbf'
> >
> > *STEP 7: *Create the bdump, udump and cdump directories
> >
> > cd $DBA/admin
> > mkdir newlsq
> > cd newlsq
> > mkdir bdump
> > mkdir udump
> > mkdir cdump
> > mkdir pfile
> >
> >
> > *STEP 8:* Copy-over the old init.ora file
> >
> > rcp $DBA/admin/olslsq/pfile/*.ora newhost:/u01/oracle/admin/newlsq/pfile
> >
> > *STEP 9: *Start the new database
> >
> > @db_create_controlfile.sql
> >
> > *STEP 10: *Place the new database in archivelog mode
> >
> >
> > El 2 de junio de 2009 12:55, Alvaro Gomez <agomez@...>escribió:
> >
> >>
> >>
> >> Primero instala la version de Oracle en el nuevo servidor posteriormente
> >> puedes hacer un export de la base de produccion a la nueva base en tu
> >> servidor instalado y wala terminado.
> >>
> >> Solo te quedara configurar y crear los usuarios que puedas utilizar.
> >>
> >> ------------------------------
> >> *De:* ruelas.emil [mailto:estiven_ruelas@...]
> >> *Enviado el:* Martes, 02 de Junio de 2009 11:49 a.m.
> >> *Para:* AdminBDOracle@yahoogroups.com
> >> *Asunto:* [Oracle] Clonar base para testeo
> >>
> >> Hola como están amigos en esta ocasión tengo que realizar la siguiente
> >> tarea se que para mucho debe ser fácil pero yo recien empiezo.
> >>
> >> Tengo orcale 9i ultima versión y S.O. Windows, tengo una base instalada en
> >> este servidor y ahora necesito clonar esta base en otro servidor para
usarla
> >> como testeo la clonación es desde cero y también voy a realizar refrehs una
> >> ves por mes y la base clonada tendrá un nombre distinto a la original.
> >> La pregunta es como realizo todo esto..
> >>
> >> Bueno les lo agradecería si me tiran alguna data..
> >>
> >> Saludos
> >>
> >>
> >
> >
> > --
> > Cordialmente,
> >
> >
> > Diego Andrés Duque Jiménez
> >
> >
>





Mié, 3 de Jun, 2009 1:52 pm

ruelas.emil
Sin conexión Sin conexión
Enviar mensaje Enviar mensaje

Reenviar Mensaje #7070 de 7404 |
Desplegar mensajes Autor Ordenar por fecha

Hola como están amigos en esta ocasión tengo que realizar la siguiente tarea se que para mucho debe ser fácil pero yo recien empiezo. Tengo orcale 9i ultima...
ruelas.emil
Sin conexión Enviar mensaje
2 de Jun, 2009
5:49 pm

Primero instala la version de Oracle en el nuevo servidor posteriormente puedes hacer un export de la base de produccion a la nueva base en tu servidor ...
Alvaro Gomez
ernestomarti...
Sin conexión Enviar mensaje
2 de Jun, 2009
6:09 pm

Amigo Estiven, Tal y como lo dijo el compañero Álvaro, puedes hacer export / import de la BBDD y ya con eso, solo checa la configuración exacta del server...
Byron Michael Motta B...
bimigtm
Sin conexión Enviar mensaje
2 de Jun, 2009
8:58 pm

Bueno, tambien les propongo este procedimiento. Con un poco de ajustes serviria para Windows. Tomado de:...
Diego Duque
diegod_comm1
Sin conexión Enviar mensaje
2 de Jun, 2009
10:56 pm

Hola Diego, Excelente!!!, decididamente sencillo de hacer y sin inconvenientes. Un cordial saludo, Byron 2009/6/2 Diego Duque <diego.duque@...> ... Hola...
Byron Michael Motta B...
bimigtm
Sin conexión Enviar mensaje
2 de Jun, 2009
11:03 pm

Muchas gracias Diego, Byron, Alvaro esos eran los tips que necesitaba, ahora los voy a probar todos, y de seguro alguno me tiene que salir... como dijo un...
ruelas.emil
Sin conexión Enviar mensaje
3 de Jun, 2009
9:34 pm

Me parece excelente esta respuesta, aunque considero que es mas facil el proceso de instalacion y export/import. Pero las opciones son muchas la verdad _____ ...
Alvaro Gomez
ernestomarti...
Sin conexión Enviar mensaje
2 de Jun, 2009
11:13 pm
Avanzado

Copyright © 2009 Yahoo! Todos los derechos reservados.
Política de Privacidad Actualizada - Condiciones del servicio - Directrices - Ayuda