En version 8.5 el archivo de configuración (config file) cuando SharePlex procesa un DDL de renombrado de tabla.
Para versiones previas, hay un procedimiento en la guía de administración (admin guide) el cual explica como renombrar una tabla.
Como replicar una sentencia alter table rename
Renombrando tablas
Usted puede usar el comando ALTER TABLE RENAME para renombrar una table, si la tabla está en replicación Shareplex cambia el nombre de la tabla en el archivo de configuración comentando la linea de configuración anterior y añadiendo una nueva linea. Si el nombre de la tabla de destino es la misma que en el origen, la nueva linea reflejará el el cambio de nombre en ambos origen y destino, de otra manera, el nombre en el destino no cambiará.
Por ejemplo, la tabla en el origen, scott.table1, está replicando a scott.table1 en el destino.
scott.table1 ====> scott.table1
Si usted renombra la tabla del origen a scott.table2, el nombre de la tabla en el destino también cambiará a scott.table2
scott.table2 ====> scott.table2
El proceso de Capture comentará la antigua entrada en el archivo de configuración anteponiendo el signo de numeral (#) al inicio de la linea lo cual podría sobreescribir parte del nombre.
#scott.table1 scott.table1 sysA@o.ora555
Luego una nueva linea sera agregada al final del archive de configuración tal y como se muestra a continuación:
# Table scott.table1 renamed to scott.table2 August 5, 2003 10:14
scott.table2 scott.table2 sysA@o.ora555
Renombrar el nombre de la table en el origen puede causar un error en el destino si scott.table1 no existe en el destino. Si el proceso Post se detiene o no dependerá de el valor de el parámetro SP_OPO_STOP_ON_DDL_ERR. Refierase al capítulo 2 de la guía de referencia de SharePlex (Reference guide) para más información acerca de este parámetro.
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center