Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Long running query - Session remains active

partlycloudySep 15 2021

ORDS 20.4 on Oracle 12.1
When one of our applications executes an ORDS API that takes a long time to run, we find that the load balancer component between the client and ORDS times out and returns a HTTP/504 back to the caller. When this happens, the ORDS handler's PL/SQL code continues executing in the database and the session shows as ACTIVE. These sessions build up over time and cause other issues.
Is there a way to kill these sessions automatically?
@thatjeffsmith-oracle
Thanks

select
username,
status,
sql_id,
sql_exec_start,
action,
module,
client_identifier,
blocking_session_Status
from gv$session
where program like 'Oracle REST%'
and status = 'ACTIVE'

This post has been answered by thatJeffSmith-Oracle on Sep 15 2021
Jump to Answer

Comments

EJP
I suggest you print out the name of the interface before trying to get its MAC address, and investigate the characteristics of the one that fails. Probably it is one that doesn't have a MAC address, e.g. 127.0.0.1.
qjvictor
Thanks for your reply.

The exception is specifically from the network interface between M5000 service processor and each domain.

In my case, I just need to catch this exception, and continue to get mac address from other interfaces.
1 - 2

Post Details

Added on Sep 15 2021
1 comment
390 views