I'm trying to import large amount of data from an Oracle database using a Linked Server on MS SQL 2005. Here's the OPENQUERY command.
SELECT * from OPENQUERY(HRDEV9,
'SELECT EMPLOYEE_ID
,EMPLOYEE_NAME
,TO_CHAR(BIRTHDATE,''yyyy-mm-dd'') AS BIRTHDATE
FROM SYSADM.PS_EMPLOYEES')
I have not included all the columns for the sake of keeping my example simple, I have around 180 columns and 75000 rows to import.
This is the error I'm getting when I execute the query:
OLE DB provider "OraOLEDB.Oracle" for linked server "HRDEV9" returned message "Not enough storage is available to complete this operation.".
Msg 7399, Level 16, State 1, Line 1 The OLE DB provider "OraOLEDB.Oracle" for linked server "HRDEV9" reported an error. The provider ran out of memory.
Msg 7372, Level 16, State 4, Line 1 Cannot get properties from OLE DB provider "OraOLEDB.Oracle" for linked server "HRDEV9".
I have enabled autogrowth, and set the unrestricted file growth for both Data and Log files.
I have tried importing only 10 rows with the Oracle ROWNUM but still getting the same error.
Thank you for your time.