Odd Error with UniLoader
Posted: Wed 21 Sep 2011 15:33
I am trying to load (copy) data from Oracle to Postgres. I am using UniDAC.
My Table in Oracle looks like this...
This is common text and number datatypes.
I am copying this into a Postgres Table which looks nearly identical...
I am using a dataset to copy the data via UniLoader
I get the error (on LoadFromDataSet)
.. raised exception class EPgError with message 'BINARY' is not supported.
The issue is this table has NO BINARY data.....
The error makes no sense.
Can anyone explain why this isn't working?
Thanks
GS
My Table in Oracle looks like this...
Code: Select all
SQL> desc countries
Name Null? Type
----------------------------------------- -------- ----------------
COUNTRY_ID NOT NULL NUMBER
COUNTRY_ISO_CODE NOT NULL CHAR(2)
COUNTRY_NAME NOT NULL VARCHAR2(40)
COUNTRY_SUBREGION NOT NULL VARCHAR2(30)
COUNTRY_SUBREGION_ID NOT NULL NUMBER
COUNTRY_REGION NOT NULL VARCHAR2(20)
COUNTRY_REGION_ID NOT NULL NUMBER
COUNTRY_TOTAL NOT NULL VARCHAR2(11)
COUNTRY_TOTAL_ID NOT NULL NUMBER
COUNTRY_NAME_HIST VARCHAR2(40)
I am copying this into a Postgres Table which looks nearly identical...
Code: Select all
CREATE TABLE COUNTRIES (
COUNTRY_ID BIGINT PRIMARY KEY,
COUNTRY_ISO_CODE CHAR (2),
COUNTRY_NAME VARCHAR (40),
COUNTRY_SUBREGION VARCHAR (30),
COUNTRY_SUBREGION_ID BIGINT,
COUNTRY_REGION VARCHAR (20),
COUNTRY_REGION_ID BIGINT,
COUNTRY_TOTAL VARCHAR (11),
COUNTRY_TOTAL_ID BIGINT,
COUNTRY_NAME_HIST VARCHAR (40)
)
DISTRIBUTED BY (COUNTRY_ID)
;Code: Select all
OracleDS4Loader.Open;
// I Know this returns 23 rows....
GPTable4Loader.Active := True;
UniLoader1.LoadFromDataSet(OracleDS4Loader);I get the error (on LoadFromDataSet)
.. raised exception class EPgError with message 'BINARY' is not supported.
The issue is this table has NO BINARY data.....
The error makes no sense.
Can anyone explain why this isn't working?
Thanks
GS