dblink_ora_copy() v12
The dblink_ora_copy()
function copies an Oracle table to an EDB table. The dblink_ora_copy()
function returns a BIGINT
value that represents the number of rows copied. The signature is:
Where:
conn_name
specifies the name of the link.command
specifies the text of the SQLSELECT
statement that will be invoked on the Oracle server.schema_name
specifies the name of the target schema.table_name
specifies the name of the target table.truncate
specifies if the server shouldTRUNCATE
the table prior to copying; specifyTRUE
to indicate that the server shouldTRUNCATE
the table.truncate
is optional; if omitted, the value isFALSE
.count
instructs the server to report status information everyn
record, wheren
is the number specified. During the execution of the function, Advanced Server raises a notice of severityINFO
with each iteration of the count. For example, if FeedbackCount is10, dblink_ora_copy()
raises a notice every10
records.count
is optional; if omitted, the value is0
.