Getting a 500 Internal Server Error during CSV download in Oracle APEX and need to extend the timeout (Oracle APEX 21.1.0)

huangapple go评论60阅读模式
英文:

Getting a 500 Internal Server Error during CSV download in Oracle APEX and need to extend the timeout (Oracle APEX 21.1.0)

问题

I am currently experiencing a "500 Internal Server Error" while downloading a CSV file. The error page is displayed by Apache Tomcat.

The target data is a 45MB CSV file, which I confirmed by generating the file using SQL*Plus. I'm attempting to download the CSV file from the APEX interface using Interactive Reports' "Actions - Download" option.

The error occurs approximately 15 minutes after initiating the download.

In my investigation, I couldn't find the "Timeout" parameter in the etc/httpd/conf/httpd.conf file. Additionally, in the environment I'm working with, multiple Apache Tomcat instances are installed, and the above config file showed signs of being modified by someone else. It might take some time to confirm if I can add the timeout configuration without interfering with others.

Ideally, I would prefer to modify only the configuration related to the APEX instance I am running, to avoid affecting others.

Where can I find the configuration file specific to the APEX instance to make the necessary timeout modification? Please let me know if any additional information is needed.

Thank you in advance.

英文:

Currently, I'm experiencing a "500 Internal Server Error" while downloading a CSV file. The error page is displayed by Apache Tomcat.

The target data is a 45MB CSV file, which I confirmed by generating the file using SQL*Plus. I'm attempting to download the CSV file from the APEX interface using Interactive Reports' "Actions - Download" option.

The error occurs approximately 15 minutes after initiating the download.

In my investigation, I couldn't find the "Timeout" parameter in the etc/httpd/conf/httpd.conf file. Additionally, in the environment I'm working with, multiple Apache Tomcat instances are installed, and the above config file showed signs of being modified by someone else. It might take some time to confirm if I can add the timeout configuration without interfering with others.

Ideally, I would prefer to modify only the configuration related to the APEX instance I am running, to avoid affecting others.

Where can I find the configuration file specific to the APEX instance to make the necessary timeout modification? Please let me know if any additional information is needed.

Thank you in advance.

答案1

得分: 0

在总结中,Oracle REST数据服务中SQL查询完成的超时默认值为15分钟。在我的环境中,我没有设置该值(jdbc.statementTimeout),这导致了超时问题。可以在default.xml中指定该值,我通过执行以下命令解决了该问题:
java -jar ords.war set-property jdbc.statementTimeout 1800
我想向用户user207421表示我的感激之情,他帮助我解决了这个问题。

英文:

In conclusion, the default value for the timeout until the completion of SQL queries in Oracle REST Data Services was 15 minutes. In my environment, I had not set the value (jdbc.statementTimeout), which caused the timeout issue. This value can be specified in default.xml, and I resolved the problem by executing the following command:
java -jar ords.war set-property jdbc.statementTimeout 1800
I would like to express my gratitude to user207421 for helping me resolve the issue.

huangapple
  • 本文由 发表于 2023年5月22日 09:33:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/76302595.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定