Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g67Ctol25642
 for <oracle-l@naude.co.za>; Sun, 7 Jul 2002 08:55:50 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id FAA24261;
 Sun, 7 Jul 2002 05:55:32 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 00490A2B; Sun, 07 Jul 2002 05:23:18 -0800
Message-ID: <F001.00490A2B.20020707052318@fatcity.com>
Date: Sun, 07 Jul 2002 05:23:18 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Rachel Carmichael <wisernet100@yahoo.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Rachel Carmichael <wisernet100@yahoo.com>
Subject: Re: Copy
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

copy has been around for a loooong time
from the 8.1.7 docs

COPY {FROM database | TO database | FROM database TO database}
            {APPEND|CREATE|INSERT|REPLACE} destination_table
            [(column, column, column, ...)] USING query

and the example

SQL> COPY FROM SCOTT/TIGER@HQ -
> CREATE SALESMEN (EMPNO,SALESMAN) -
> USING SELECT EMPNO, ENAME FROM EMP -
> WHERE JOB='SALESMAN'

if you are copying within the same database you can leave out the
from/to clause. If you are logged onto one of the two databases, you
can leave out the from or to clause


--- Yechiel Adar <adar76@inter.net.il> wrote:
> I checked the docs for 8.1.6 and 9.0.1.
> I think that the copy command is new in 9i.
> make sure that you are logged on to 9i sqlplus when you issue this
> command.
> 
> Yechiel Adar
> Mehish
>   ----- Original Message ----- 
>   From: Ramon E. Estevez 
>   To: Multiple recipients of list ORACLE-L 
>   Sent: Friday, July 05, 2002 10:08 PM
>   Subject: Copy
> 
> 
>   Hi list,
>    
>   I am trying to copy one table from a DB 9.0.1 on Linux RH to a DB
> 8.1.7 on NT using this statement
>    
>   COPY FROM RAMON@ORLNX TO RAMON@IBOR CREATE DATBAL_TMP USING SELECT
> * FROM DATOS_BALANCES;
>    
>   ERROR at line 1:
>   ORA-00900: invalid SQL statement
>    
>   Do I need a DBLINK, if yes, is it obligatory ?
>    
>   TIA,
>    
>    
>   Ramon E. Estevez
>   com.banilejas@codetel.net.do
>   809-565-3121
> 


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
  INET: wisernet100@yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

