HP Neoview SQL Reference Manual page 229

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

replicate source schema neo.SCH, copy ddl, target system \tin0101;
SrcSchema:
TgtSchema:
SrcSystem:
TgtSystem:
StartTime:
EndTime:
ElapsedTime:
*** ERROR[11205] Java class 'employee' was not found in external path '/home'.
*** ERROR[1231] User-defined routine NEO.SCH.PROC_EMPLOYEE could not be created.
*** ERROR[8659] BDR Listener process on TIN0101 received an error from CLI.
--- SQL operation failed with errors.
Authorization
The REPLICATE command is allowed for:
The owner of the table, if a table is being replicated.
The owner of the schema.
ROLE.DBA
The privilege to perform a replicate operation does not change the table properties after the
replicate operation. The table/schema owner remains the same as before the replicate operation.
For example, if SUPERUSER replicates a table owned by ROLE.DBA, the target table will be
owned by ROLE.DBA.
If permissions are granted on the table to roles which do not exist on the target system, you will
see errors indicating that the role does not exist (Error 1008). In this case, the table will still be
replicated, but corresponding permissions on the target table will not exist. To avoid this, make
sure that the roles giving permission to the tables exist on both source and target systems.
Restrictions
Only one REPLICATE command can be active on a source table for a particular target system.
A DDL lock will be acquired on the source table to prevent multiple DDL operations. For
example, the following REPLICATE statements are allowed to be issued simultaneously
from two sessions because they go to two different target systems:
REPLICATE SOURCE TABLE t, TARGET SYSTEM \exe0101;
REPLICATE SOURCE TABLE t, TARGET SYSTEM \exe0102;
However, the following REPLICATE statements are not allowed because they go to the same
target system:
REPLICATE SOURCE TABLE t, TARGET SYSTEM \exe0101;
REPLICATE SOURCE TABLE t, TARGET SYSTEM \exe0101;
If the COPY DDL option is not used, the target table must preexist.
Source and target systems must have the same software version.
Source and target must be of the same table type: non-partitioned or hash partitioned tables.
The target system must be specified.
Only one filter can be specified (LIKE, NOT LIKE).
Source and target objects must have the same number of partitions during replication.
Depending on the transform criteria, an object may have a different number of partitions
by the time the REPLICATE command is finished. Transform applies for example, when
the COPY DDL option was specified for schema replication, and the physical layout of the
source and target tables differ. In this case, replicate (either single table or multiple tables)
will transform the target table unless the NO TRANSFORM option is explicitly specified.
Volatile tables cannot be replicated.
Only dependent user-created indexes will be automatically replicated.
SCH
SCH
EXE0201
TIN0101
2010-05-05 17:16:48.601352
2010-05-05 17:18:39.907549
00:01:51.306
REPLICATE Command
229

Advertisement

Table of Contents
loading

Table of Contents