dblink_ora_copy() v18
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:
dblink_ora_copy(<conn_name>, <command>, <schema_name>, <table_name>, <truncate>, <count>)
Where:
conn_namespecifies the name of the link.commandspecifies the text of the SQLSELECTstatement invoked on the Oracle server.schema_namespecifies the name of the target schema.table_namespecifies the name of the target table.truncatespecifies whether the server performs aTRUNCATEon the table prior to copying. SpecifyTRUEif you want the server toTRUNCATEthe table.truncateis optional. If omitted, the value isFALSE.countreports status information everynrecords, wherenis a number. While the function executes, EDB Postgres Advanced Server raises a notice of severityINFOwith each iteration of the count. For example, if FeedbackCount is10,dblink_ora_copy()raises a notice every 10 records.countis optional. If omitted, the value is0.