Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linked Server against Oracle Server is Very Slow

Status
Not open for further replies.

bmann

Programmer
Oct 8, 2002
128
US
I am using SQL Server 2000. I set up a linked server against a Oracle Server. How do I speed up this Linked server query against a Oracle server? Their are 2 milion records which take approximately 30 minutes. I would appreciate anyones's help. Here is the code.

/* DOB */
/* Insert new records */
PRINT 'Inserting new DOBs.'
INSERT CALPHOTO.dbo.DOB
(
FCN,
ORI_OWNER,
OCA,
TIMESTAMP,
CP_FCN,
CP_TIME
)
SELECT
left(FCN,13),
left(ORI_OWNER,9),
left(OCA,20),
CREATED_TIMESTAMP,
'LASD' + left(FCN,13),
getdate()
FROM openquery(LOS_ANGELES, 'SELECT /*+ RULE */ fcn, ORI_OWNER, OCA, CREATED_TIMESTAMP from IWS.CAL_DOB')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top