Skip to Main Content

SQL Developer

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ORA-01830 while trying to use date parameter in child report

NarendraPFeb 28 2022

Hello,
I am using SQL Developer 20.4 and am trying to create a Master-Detail Report based on ASH data. The master report is a graph and child report is just a table of data. However, child report fails with ORA-01830.
Below are the SQL statements that I am using
Master Report:

select dt, SESSION_STATE, count(*)/count(distinct inst_id||session_id||session_serial#) num_sessions, min(sample_time) FROM_TIME, max(sample_time) TO_TIME
from
 (select  sample_time, inst_id, session_id, session_serial#, trunc(sample_time, 'HH24') + (trunc(to_number(to_char(sample_time, 'MI'))/5)*5)/(24*60) dt
 , CASE WHEN session_state = 'ON CPU' THEN 'CPU'
      WHEN session_state = 'WAITING' THEN wait_class
   END SESSION_STATE
  from GV$ACTIVE_SESSION_HISTORY       
  where  session_type = 'FOREGROUND' 
  and sample_time between sysdate - (:num_mins/(24*60)) and sysdate
 )
group by dt, SESSION_STATE
order by dt

Child Report:

select  sample_time, inst_id, session_id, session_serial#, program
 , CASE WHEN session_state = 'ON CPU' THEN 'CPU'
      WHEN session_state = 'WAITING' THEN event
   END as event
  from GV$ACTIVE_SESSION_HISTORY       
  where  session_type = 'FOREGROUND' 
  and sample_time between to_timestamp(:DT, 'YYYY-MM-DD HH24:MI:SS.FF') and to_timestamp(:DT, 'YYYY-MM-DD HH24:MI:SS.FF')+(5/(24*60))
  and wait_class = :SESSION_STATE

When I checked the "Logging" window for the sql that gets generated for the child report then it does show the DT parameter having "2022-02-28 12:30:00.0" value.
The sql for child report works fine when I try to run it from worksheet.
I am at a loss as to what do I need to change in order to fix this?
Thanks in advance

This post has been answered by user_2DKLA on Feb 28 2022
Jump to Answer

Comments

843799
..try ask on another, "more officiall" Java3D forum:

[http://forums.java.net/jive/forum.jspa?forumID=70]

843799
neblaz wrote:
Does anybody knows, how Java 3D will develop in the near future?
Not at all I regret,

[http://forums.java.net/jive/thread.jspa?threadID=36022&tstart=315]

Your best option if you want 3D on your desktop is JOGL.

[http://jogamp.org/jogl/www/]

What's missing is Oracle's official approval and support. It would cost so little and mean so much so I hope they'll step forward and show responsibility and leadership.
843799
Why do people keep talking about the demise of java3d? It WAS on hold but it's still actively developed as evidenced by a 1.6 pre-release (last one dated a week ago).

Also, your solution to use JOGL doesn't answer the question. He wanted to know about an alternative scene graph engine. JOGL is a low level API around OpenGL, Not the same thing.

So I'll ask - is there an alternative scene graph engine out there? One that can run fine on mac, windows and linux?
843799
SproketBoy wrote:
So I'll ask - is there an alternative scene graph engine out there? One that can run fine on mac, windows and linux?
Why do you ask that for if you're so happy with Java3D?

I'm reluctant to give any alternatives to Java3D because I think the best option is Jogl as I said. But okay you have Aviatrix3D and JMonkey which I find the most promising.
843799
Ardor3D might be worth checking out.
843799
Thanks. That's interesting.
1 - 6

Post Details

Added on Feb 28 2022
3 comments
293 views