Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ted_kim
Helper I
Helper I

ORA-01013 I want to change the query timeout setting.

hi, guys.

 

I'm working on importing data from Oracle. I'm querying from a table with about 12 million records.

 

The order_date is the varchar(8) and out_date is the date type.

 

This is the first query:

SELECT *
FROM view_bi_runsheet
WHERE out_date BETWEEN TO_DATE ('2016/11/01', 'yyyy/mm/dd')
AND sysdate

 

This query caused an ORA-01013 error.

 

So this is the second query:

 

SELECT *
FROM (SELECT *
      FROM VIEW_BI_RUNSHEET
      WHERE TO_NUMBER(ORDER_DATE) >= 20140701
        AND TO_NUMBER(ORDER_DATE) < 20150101) od
WHERE od.out_date BETWEEN TO_DATE ('2016/11/01', 'yyyy/mm/dd')
  AND TO_DATE ('2018/07/03', 'yyyy/mm/dd')+1

 

Perhaps the first query was a time out because of a table full scan.

I wonder if I can set a query timeout because I can not touch the server side.

 

Window environment, ODAC installed and connected to power BI Desktop.

 

please, explain if you can change the timeout time through tnsnames.org file or any other setting.

 

p.s An error usually occurs after 25 to 35 minutes of running the query.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @ted_kim,

 

Maybe you can try to modify your command timeout parameter to work through this issue:

4.PNG

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @ted_kim,

 

Maybe you can try to modify your command timeout parameter to work through this issue:

4.PNG

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

This field does not accept 0 or -1 - How do I stop Power BI from forcing a timeout?

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.