SQL*Plus Quick Reference Release 8.1.6 A75665-01 |
|
SQL*Plus Quick Reference, 8 of 10
Use the following commands to access and copy data between tables on different databases.
CONN[ECT] [[
logon
] [AS [SYSOPER|SYSDBA]]]
username[/password][@net_service_name]|/
Connects a given username to Oracle. If you omit net_service_name, connects you to the default database. If you omit username and/or password, SQL*Plus prompts you for them. CONNECT followed by a slash (/) connects you using a default (OPS$) logon.
DISC[ONNECT]
COPY {FROM
database | TO
database | FROM
database TO
database} {APPEND|CREATE|INSERT|REPLACE}
destination_table [(
column,
column,
column, ...)] USING
query
username[/
password]
@net_service_name
Copies data from one Oracle database to a table in another. APPEND, CREATE, INSERT or REPLACE specifies how COPY treats the existing copy of the destination table (if it exists). USING query identifies the source table and determines which rows and columns COPY copies from it.
PASSW[ORD] [
username
]
|
![]() Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|