Using SQLPlus copy command
SQL> COPY {FROM database | TO database | FROM database TO database} {APPEND|CREATE|INSERT|REPLACE} destination_table [(column, column, column, ...)]
USING query
example - (from any machine in your network)
SQL> copy from hr/hr@orcl to scott/tiger@orcl2 create employees_copy using
SQL> COPY {FROM database | TO database | FROM database TO database} {APPEND|CREATE|INSERT|REPLACE} destination_table [(column, column, column, ...)]
USING query
example - (from any machine in your network)
SQL> copy from hr/hr@orcl to scott/tiger@orcl2 create employees_copy using
select * from employees ;
Be carefull- SQLPlus COPY supports only the following datatypes:
CHAR
DATE
LONG
NUMBER
VARCHAR2
Be carefull- SQLPlus COPY supports only the following datatypes:
CHAR
DATE
LONG
NUMBER
VARCHAR2
No comments:
Post a Comment