Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: DB Link Error - More Info

RE: DB Link Error - More Info

From: Kevin Lange <kgel_at_ppoone.com>
Date: Fri, 09 Aug 2002 14:13:22 -0800
Message-ID: <F001.004B11E6.20020809141322@fatcity.com>


Here is a copy of the SQlPLUS command used:

SQL> set arraysize 1
SQL> set copycommit 1000
SQL> copy from kgel/vinotamu_at_nxtp -

> insert nxtp.temp_mgh -
> using -
> select * from rrs$.temp_mgh

Array fetch/bind size is 1. (arraysize is 1) Will commit after every 1000 array binds. (copycommit is 1000) Maximum long size is 80. (long is 80)

  select * from rrs$.temp_mgh
*
Error in SELECT statement: ORA-01002: fetch out of sequence

The table on the remote system is owned by RRS$ where the table I want to copy it to is owned by NXTP.

The table structure is :

SQL> describe temp_mgh

 Name                                      Null?    Type
 ----------------------------------------- --------
----------------------------
 CALC_SCHED_ID                                      VARCHAR2(6)
 CALC_SCHED_TYPE                                    VARCHAR2(15)
 SELECT_DATE                                        DATE



-----Original Message-----
Sent: Friday, August 09, 2002 3:32 PM
To: ORACLE-L_at_fatcity.com
Cc: kgel_at_ppoone.com
Importance: High

Kevin,

This part just now caught my eye:

> 3. When I try to use the plsql copy command (ultimately what I want to

> do) , on machine B, I get an error stating that I am trying to Fetch out

> of sequence. On machine A I get an unknow error that can not be
> interpreted .... a long string of numbers as the error number.

The COPY command is a SQLPLUS command, not PL/SQL.

Can you post the actual PL./SQL code, or a simplified example if it is complex?

Jared

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Kevin Lange
  INET: kgel_at_ppoone.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_at_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).
Received on Fri Aug 09 2002 - 17:13:22 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US