You might want to try sqlcopy command, like:

copy from schame/password@source_db to schema/password@target_db -
append target_table -
using select * from source_table;