Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Oracle (https://www.clubdelphi.com/foros/forumdisplay.php?f=22)
-   -   Migración a 10g release 2 (https://www.clubdelphi.com/foros/showthread.php?t=33358)

SMTZ 04-07-2006 22:16:13

Migración a 10g release 2
 
Hola, actualmente tengo instalada la primera versión de Oracle 10g y me he bajado la 10g release 2, la he instalado correctamente, pero da muchos errores a la hora de actualizar una base de datos con el asistente de migración (con la 10g 1 funciona perfectamente). ¿Qué debo tener en cuenta para hacer una migración manual? Que yo sepa, era copiar los directorios oradata\miBD y admin\mibd y modificar en el init.ora la nueva ubicación de la base de datos.

Gracias.

avmm2004 02-08-2006 18:26:55

Utiliza la sentencia export de ti usuario de base de datos y en la 10g release 2 la sentencia import. Funciona siempre.

SMTZ 03-08-2006 01:46:50

Funcionó
 
Hola, gracias por la información. Se me olvidó contestar el post. Hace tiempo que solucioné el problema y era como tú decías pero en Oracle 10g los comandos de importación y exportación son impdp y expdp. Ahí va un ejemplillo:

Código:


C:\oracle\product\10.1.0\Db_1\BIN>expdp system/password logfile=ecodomestica.log directory=data_dump_dir dumpfile=export.dmp full=y

Previamente, ya se había configurado el directorio de destino:

Código:

SQL> create or replace directory DATA_PUMP_DIR as 'D:\Tmp\Backup_Oracle\Export';


Directorio creado.

SQL> SELECT directory_path FROM dba_directories WHERE directory_name = 'DATA_PUM
P_DIR';  Desde el SQL Plus, se define el directorio donde se exportarán los datos

DIRECTORY_PATH
--------------------------------------------------------------------------------

D:\Tmp\Backup_Oracle\Export

SQL> commit; --> Se graba el cambio


Con un import:

Código:

impdp KEYWORD=value o KEYWORD=(value1,value2,...,valueN)
Adjunto la siguiente tabla, para quién le interese, que he encontrado por Internet:

Keyword Description (Default)
------------------------------------------------------------------------------
ATTACH Attach to existing job, e.g. ATTACH [=job name].
CONTENT Specifies data to unload where the valid keywords are:
(ALL), DATA_ONLY, and METADATA_ONLY.
DIRECTORY Directory object to be used for dumpfiles and logfiles.
DUMPFILE List of destination dump files (expdat.dmp),
e.g. DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp.
ESTIMATE Calculate job estimates where the valid keywords are:
(BLOCKS) and STATISTICS.
ESTIMATE_ONLY Calculate job estimates without performing the export.
EXCLUDE Exclude specific object types, e.g. EXCLUDE=TABLE:EMP.
FILESIZE Specify the size of each dumpfile in units of bytes.
FLASHBACK_SCN SCN used to set session snapshot back to.
FLASHBACK_TIME Time used to get the SCN closest to the specified time.
FULL Export entire database (N).
HELP Display Help messages (N).
INCLUDE Include specific object types, e.g. INCLUDE=TABLE_DATA.
JOB_NAME Name of export job to create.
LOGFILE Log file name (export.log).
NETWORK_LINK Name of remote database link to the source system.
NOLOGFILE Do not write logfile (N).
PARALLEL Change the number of active workers for current job.
PARFILE Specify parameter file.
QUERY Predicate clause used to export a subset of a table.
SCHEMAS List of schemas to export (login schema).
STATUS Frequency (secs) job status is to be monitored where
the default (0) will show new status when available.
TABLES Identifies a list of tables to export - one schema only.
TABLESPACES Identifies a list of tablespaces to export.
TRANSPORT_FULL_CHECK Verify storage segments of all tables (N).
TRANSPORT_TABLESPACES List of tablespaces from which metadata will be unloaded.
VERSION Version of objects to export where valid keywords are:
(COMPATIBLE), LATEST, or any valid database version.

The following commands are valid while in interactive mode.
Note: abbreviations are allowed

Command Description
------------------------------------------------------------------------------
ADD_FILE Add dumpfile to dumpfile set.
ADD_FILE=dumpfile-name
CONTINUE_CLIENT Return to logging mode. Job will be re-started if idle.
EXIT_CLIENT Quit client session and leave job running.
HELP Summarize interactive commands.
KILL_JOB Detach and delete job.
PARALLEL Change the number of active workers for current job.
PARALLEL=.
START_JOB Start/resume current job.
STATUS Frequency (secs) job status is to be monitored where
the default (0) will show new status when available.
STATUS=[interval]
STOP_JOB Orderly shutdown of job execution and exits the client.
STOP_JOB=IMMEDIATE performs an immediate shutdown of the
Data Pump job.


La franja horaria es GMT +2. Ahora son las 11:12:02.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi