Print Thread
how to identify when executing from Test Window
#62504 04/16/21 04:17 PM
Joined: May 2006
Posts: 5
Charleston, SC USA
B
Member
OP Offline
Member
B
Joined: May 2006
Posts: 5
Charleston, SC USA
When I execute a dbms_scheduler.run on demand while in the debugger (Test window), certain jobs will hang. If the job is to call a shell script on Linux DB, I need to know to exceute DBMS_SCHEDULER.RUN_JOB with USe_Current_Session = false. Otherwise, that command just hangs.

When executing this code normally (not in the debugger), use_current_session needs to be true.

Is there a way in PL/SQL to know we are executing in the test_window? I can ass a parameter, but wondering if this can be done via code.

Re: how to identify when executing from Test Window
Barry Sturmer #62505 04/16/21 05:18 PM
Joined: May 2006
Posts: 5
Charleston, SC USA
B
Member
OP Offline
Member
B
Joined: May 2006
Posts: 5
Charleston, SC USA
I figured out a way to do this without passing a parameter all over.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.113s Queries: 14 (0.025s) Memory: 2.4993 MB (Peak: 3.0427 MB) Data Comp: Off Server Time: 2024-05-19 01:49:57 UTC
Valid HTML 5 and Valid CSS