ORA-01013: user requested cancel of current operation (#1013) error with MS-Access 2000
We've recently we've upgraded from Oracle 9i to Oracle 10G Client only (database server is still oracle 9i) and when I try to run\execute a SQL query on MS- Access 2000 which has DBlink tables to Oracle tables, it gives the below error:
"[Oracle][ODBC][ORA]ORA-01013: user requested cancel of current operation (#1013)"
The same SQL query on MS-Access 2000 works fine if I run it on Oracle 9i client but breaks if i run on Oracle 10G client
I have a System DSN that uses default values for everything. Therefore, I has the checkbox enabled that says, "Enable Query Timeout". It references TNSNAMES.ORA with the database (as well as several others) are configured
The Entries of SQLNET.ora file is given below:
# SQLNET.ORA Network Configuration File. Generated by Oracle configuration tools.
NAMES.DEFAULT_DOMAIN = world
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAME, HOSTNAME)
SQLNET.EXPIRE_TIME= 60
SELECT XRT_BNKFOLIO.ACCT_GROUP, XRT_BNK_TXN.DATEX, XRT_COMPANY.COMPANY_ID, XRT_COMPANY.NAME, XRT_BNK_TXN.BANK_CODE, XRT_BNK_TXN.ACCT_NUM, XRT_BNK_TXN.FOLIO_CODE, XRT_BNK_TXN.R_D, XRT_BNK_TXN.BAI_CODE, XRT_BNK_TXN.AMOUNT, XRT_BNK_TXN.AMOUNT AS GLAMOUNT, XRT_BNK_TXN.DESCRIPTIONX, XRT_BNK_TXN.DESC2, XRT_BNK_TXN.DESC3, XRT_BNK_TXN.REC_FLAG, XRT_BNK_TXN.FSI_FLAG, XRT_BNK_TXN.SERVICE_CD, XRT_BNK_TXN.DESC4, XRT_BNK_TXN.DESC5, XRT_BNK_TXN.BANK_REF, XRT_BNK_TXN.REF INTO [temp BANKTRAN]FROM SelDate INNER JOIN (XRT_BNK_TXN INNER JOIN (XRT_BNKFOLIO INNER JOIN XRT_COMPANY ON XRT_BNKFOLIO.COMPANY_ID = XRT_COMPANY.COMPANY_ID) ON (XRT_BNK_TXN.BANK_CODE = XRT_BNKFOLIO.BANK_CODE) AND (XRT_BNK_TXN.FOLIO_CODE = XRT_BNKFOLIO.FOLIO_CODE)) ON SelDate.SelDate = XRT_BNK_TXN.DATEXGROUP BY XRT_BNKFOLIO.ACCT_GROUP, XRT_BNK_TXN.DATEX, XRT_COMPANY.COMPANY_ID, XRT_COMPANY.NAME, XRT_BNK_TXN.BANK_CODE, XRT_BNK_TXN.ACCT_NUM, XRT_BNK_TXN.FOLIO_CODE, XRT_BNK_TXN.R_D, XRT_BNK_TXN.BAI_CODE, XRT_BNK_TXN.AMOUNT, XRT_BNK_TXN.AMOUNT, XRT_BNK_TXN.DESCRIPTIONX, XRT_BNK_TXN.DESC2, XRT_BNK_TXN.DESC3, XRT_BNK_TXN.REC_FLAG, XRT_BNK_TXN.FSI_FLAG, XRT_BNK_TXN.SERVICE_CD, XRT_BNK_TXN.DESC4, XRT_BNK_TXN.DESC5, XRT_BNK_TXN.BANK_REF, XRT_BNK_TXN.REF, XRT_BNK_TXN.TRAN_TYPE, XRT_BNK_TXN.TIMESTAMPX, XRT_BNK_TXN.USER1_DATE, XRT_BNK_TXN.USER2_DATE, XRT_BNK_TXN.USER3_NUM, XRT_BNK_TXN.USER4_NUM, XRT_BNK_TXN.USER5_TXT, XRT_BNK_TXN.USER6_TXT, XRT_BNK_TXN.INPUT_DATE, XRT_BNK_TXN.INPUT_OPER, XRT_BNK_TXN.EDIT_DATE, XRT_BNK_TXN.EDIT_OPER, XRT_BNK_TXN.XRT_CODE_1, XRT_BNK_TXN.XRT_CODE_2, XRT_BNK_TXN.EDIT2_DATE, XRT_BNK_TXN.EDIT2_OPER, XRT_BNK_TXN.GL_POST_FLAG, XRT_BNK_TXN.GL_POST_DATE, XRT_BNK_TXN.DLY_POST_FLG, XRT_BNK_TXN.RECON_FLAG, XRT_BNK_TXN.RECON_DATE, XRT_BNK_TXN.UNIQUE_IDHAVING (((XRT_BNKFOLIO.ACCT_GROUP) Like "RECON*") AND ((XRT_BNK_TXN.BAI_CODE)<>"397") AND ((XRT_BNK_TXN.SERVICE_CD) Like "JPMCPD*" Or (XRT_BNK_TXN.SERVICE_CD) Like "WFPDCO*" Or (XRT_BNK_TXN.SERVICE_CD) Like "WFPDMN*" Or (XRT_BNK_TXN.SERVICE_CD) Like "S*" Or (XRT_BNK_TXN.SERVICE_CD) Like "PNC*" Or (XRT_BNK_TXN.SERVICE_CD) Like "USB*"))ORDER BY XRT_COMPANY.COMPANY_ID, XRT_BNK_TXN.BANK_CODE, XRT_BNK_TXN.R_D DESC , XRT_BNK_TXN.BAI_CODE, XRT_BNK_TXN.AMOUNT DESC;
If you still have Enable Query Timeout checked... uncheck it and then run the query .
anandkswamy2008
ASKER
Thanks for replying back, I unchecked the Enable Query Timeout option and re-ran the query. The error still remains. It still gives me - ORA-01013: user requested cancel of current operation (#1013) error
Muhammad Khan
Have you measured the time, the query runs before it fails? is it same always?tell me how long query runs
Sorry for not responding sooner. And Thanks for responding back. The SQL Query runs an average between 50-80 seconds before the it fails. First run = 80 sec, Second run = 70 sec, Third run = 52 seconds.