APEX SQL Reports bug? Apex 3.0.1 Oracle 10g XE

Hi
I have a few SQL Based reports and I'm having performance problems with showing them over remote connections.
I have looked at the HTML for the page produced from these reports and I see something very strange.
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';
            rowStyleHover[50]='';
            rowActive[50]='N';
            rowStyle[50]='';This goes on for pages and pages and in fact it takes up 6.60MB of data on a single webpage. After a bit of testing, I discovered this only happens on reports that have grouping.
Is there a workaround for this?
Regards
Adam

I note that the Licensing document at http://www.oracle.com/pls/xe102/homepage does not specify the version of Application Express.
I also note that the APEX version information is not found on the XE product page http://www.oracle.com/technology/products/database/xe/index.html
I also note that Oracle publishes the upgrade and the upgrade steps - specifically for XE - and still does not discuss any restrictions by version.
I also note that there is no license restriction or fee required for Apex at any version based on the XE specific and the regular 10gR2 licensing doc at http://www.oracle.com/pls/db102/homepage
For ME, the above is sufficient to assume that Apex 3 is included. Especially if I take a soft copy of the referenced license doc PDFs.

Similar Messages

  • Create Simple Printable SQL Reports in APEX 3.2 Without a Print Server

    Oracle Apex 3.2
    Oracle 11g
    OHS
    I thought I'd post an answer on how to get a printable SQL report in Oracle Apex without having to configure a print server. I'm sure that similar things have been posted in various other places, but I found the documentation for using custom row templates (to create a printable report) to be incomplete at best. For my needs, I was not looking for an awe inspiring report printout, but rather simple directory information printouts. For example, if you wanted a printable report to look like this:
    =================================
    CURRENT ACTIVE EMPLOYEES REPORT
    =================================
    First Name: Bob                  Employee ID: 0000000000
    Last Name: Swarts              Company Credit Card Number: 0000-0000-0000-0000
    Middle Initial: F                  Social Security Number: 000-00-0000
    First Name: Sue                  Employee ID: 1111111111
    Last Name: Johnson           Company Credit Card Number: 1111-1111-1111-1111
    Middle Initial: G                 Social Security Number: 111-11-1111
    etc.....In MS Access, doing this is very easy. From what I understand, this is also very easy to do this using PDF software with a print server. However, if you are like me, you don't want to waste time and money by obtaining and configuring a print server (even if it is free). However, never fear because you can create simple reports like this with relatively minimalistic effort; and you can do so without having to configure a print server.
    1.) Create a new page
    2.) Create a new sql query report region on the page
    3.) Make your query just as you would normally.
    For this example the query would be:
    select first_name, employee_id, last_name, company_credit_card_number, middle_initial, social_security_number from employee_table4.) Go to "Shared Components"
    5.) Under "User Interface" click on "Templates"
    6.) Click on the "Create" button
    7.) Select "Report"
    8.) Select "From Scratch"
    9.) For the "Template Class," choose one of the "custom" classes. For the "Template Type," choose "Named Column"
    10.) Click the "Create" button
    11.) Now that you created a custom row template, go back to "Shared Components" and then to "Templates"
    12.) Find your custom template and click on it
    CUSTOM TEMPLATE HOW TO
    1.) In the "Row Template 1" textbox, you are going to create some custom css that will display the data on the page. The css to make the report look like the report above would be:
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p style = "page-break-after: always">----------------------------------------------------------------</p>
    </div>
    {code}
    As you probably figured out, the numbers between the two pound signs ("#") are substitution strings for the variables in your select query in the SQL report.  As you have also probably noticed, the "page-break-after: always" line will always make it so that only one report is shown on a page.  To fix this, we will need to use logic and row template 2.
    2.)  For the "Row Template 1 Condition," select "Use Based on PL/SQL Expression" from the select list.
    3.)  In the textbox for the row template 1 expression enter in the following:  {code}substr('#rownum#',-1) = 0 or substr('#rownum#',-1) = 5{code}
    ***** This condition will make sure that this template is applied when the last digit in the row number is either a "0" or a "5."  So, only 5 reports will be displayed per page.
    4.)  Now go down to "Row Template 2" and enter in the following in the textbox:
    {code}
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p>----------------------------------------------------------------</p>
    </div>look familiar? that is because it exactly the same code as above, except without the page-break-after piece.
    5.) For the "Row Template 2 Condition," select "Use Based on PL/SQL Expression" from the select list.
    6.) In the textbox for the row template 2 expression enter in the following: substr('#rownum#',-1) != 0 or substr('#rownum#',-1) != 5***** This condition will make sure that this template is applied when the last digit in the row number IS NOT a "0" or a "5."
    7.) Scroll down to column headings and enter this in the textbox for the "Column Heading Template": OMIT
    8.) Click the "Apply Changes" button
    9.) Now go back to your application and the page you want to apply the custom report to
    10.) On the report, click on the report tab
    11.) Scroll down to "Layout and Pagination"
    12.) Click on the "Report Template" select list
    13.) Select your custom template
    14.) Click the "Apply Changes" button and run the page
    Try printing the report, if it does not print correctly, try it in Opera, Safari, Internet Explorer, Firefox, and Google Chrome. Please note that it is my understanding that only Firefox does not understand the css "page-break-after: always"
    If needed, add some css to the page to hide tabs and other items when you print.
    ~Andrew Schulltz

    DOH. Too much copy/paste.
    In my code, I was setting an application variable to contain the email address I was retrieving from AD. Once commented out, it worked fine.
              IF l_attr_name = 'mail' THEN
                 APEX_UTIL.SET_SESSION_STATE('F111_USER_EMAIL',l_vals(i));
              END IF;

  • Resizing the SQL report in APEX

    Hi,
    I am using SQL Report, it has just 2 columns and three buttons.
    But the report size width is full, extends fulls screen.
    I am using Theme 9, Underlined
    Template: Reports Region Alternative 1
    I verified another application which I have done some months back, a report there has the same settings, but the display is perfect, it just occupies 40% of the screen, unlike the current report which is 100% wide :-|
    Please let me know what changes can be done.

    Hi,
    The right solution for this problem was, I resized the report region:
    Edit Region->Attributes->Region Attributes->style="width:400px"
    This resolved the issue.
    Thanks for all your suggestions.

  • SQL Report Bug

    Hi All,
    I built a SQL report showing some counts in it.
    -- I have 2 Date picker items(:P10_FROM_DATE and :P10_TO_DATE) on this page for filtering between the range of dates.
    -- My report has two columns 1st column shows the COUNT between the Date range selected in the item. And the 2nd column shows YTD(beginning of the year to :P10_TO_DATE)
    My SQL is working fine in tools like SQL Developer and TOAD but its showing Random counts in the report.
    For example, i selected :P10_FROM_DATE = '01-JAN-2012' and :P10_TO_DATE = '27-JUL-2012'. This should show the same COUNT in both 1st and 2nd columns.
    COUNTS | 1000 | 1000
    But my report is showing wrong data in the YTD column.
    COUNTS | 1000 | 2167
    Is this a bug? Because , the COUNTs were accurate when I run in Toad or SQL Dev.
    Version 10g DB, Apex 4.1
    P.S. I already have 6 SQL reports in this page. And this error is not occurring in any of the other reports.
    Thank you All in Advance,
    Daniel

    Hi VC,
    My SQL looks something like below.
    select t1.type,
    t1.monthly_total,t2.YTD
    from(select 'SAMPLE' type,
    count() total*
    from(select - - - - - - -
    from emp emp
    where
    and to_date(emp.hire_dt,'DD-MON-YY')>= to_date(:P10_from_date,'DD-MON-YY')
    and to_date(emp.hire_dt,'DD-MON-YY')<= to_date(:P10_to_date,'DD-MON-YY')
    *)t1,*
    *(select 'SAMPLE' type,*
    count() YTD*
    from(select - - - - - - - -
    from emp emp
    where - - - - - - -
    and to_date(emp.hire_dt,'DD-MON-YY')>= '01-Jan-'||to_char(to_date(:P10_to_date,'DD-MON-YY'),'YY')
    and to_date(emp.hire_dt,'DD-MON-YY')<=to_date(:P10_to_date,'DD-MON-YY')
    *) t2*
    where t1.type=t2.type
    I also deleted this region and created again but still this error exists. For my other reports in this page also, I used the same conditions for calculating YTD.
    Thanks,
    Daniel

  • Problems using Quick Migrate in SQL Developer 1.5 for MySQL to Oracle 10g

    Hi all,
    I am trying to use SQL Developer 1.5 migration tools (Quick Migrate) to perform online capture and build source model to migrate from MySQL 5.x to Oracle 10g on Windows platform. I get these errors and the Quick Migrate process fails:
    oracle.dbtools.metadata.persistence.PersistableObject.doInsert(PersistableObject.java:238)
    I did a search and used the sqldeveloper.cmd script but still fails. Then I created a new database and truncated the repository. I now get the above error plus two new ones listed below:
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    Error loading nls:OALL8 is in an inconsistent state
    Error occurred during capture: Protocol violation
    It fails during the capture process for MySQL 5.1 database
    when it begins to capture the tables from MySQL.
    Does anyone know how to resolve these issues when migrating from MySQL to Oracle 10g using Quick Migrate with SQL Developer 1.5 release?
    Regards,
    Ben Prusinski
    Message was edited by:
    benprusinski
    Message was edited by:
    benprusinski

    Hi all,
    I put the following in my sqldeveloper.cmd file:
    SET ORACLE_HOME=%CD%
    What is very confusing is that with SQL Developer 1.5, there are several levels and several SQL Developer executables! I am really not sure which of these to use:
    I created the SQLDeveloper 1.5 directory called SQLDeveloper1_5 on Windows:
    1) cd C:\sqldeveloper1_5\sqldeveloper-5338
    there exists a sqldeveloper.exe
    2) cd c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloper.exe
    3) cd c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloer\bin\sqldeveloper.exe
    Which SQLDeveloper 1.5 executable should I be using and where should I place the
    sqldeveloper.cmd file?
    Also I did try to use a different database and schema for the repository with Quick Migrate but it appears a bug exists in SQL Developer 1.5 version that causes errors with Quick Migrate for MySQL to Oracle? Is this correct?
    As an update, I ran the following commands:
    cd to
    c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloper\bin
    sqldeveloper.cmd sqldeveloper.exe
    Start sqldeveloper.exe
    Perform standard capture for MySQL using the new mig2 schema as the new repository
    It starts the capture but fails on the errors below:
    Error loading nls:OALL8 is in an inconsistent state
    UPDATE
    ============================
    I tried this again and it worked with the exception of one error message listed below:
    Here are the steps that I followed:
    1. Create a Windows cmd script
    Put the following entries in the script:
    SET ORACLE_HOME=%CD%
    save the command windows script as sqldeveloper.cmd
    Copy this script to the base installation directory for SQLDeveloper
    Example:
    1. cd c:\SQLDeveloper1_5\sqldeveloper-5338\sqldeveloper
    2. Start SQLDeveloper with the command script that you created earlier
    Example:
    Open a Windows shell prompt window and execute the following scripts:
    a) sqldeveloper.cmd sqldeveloper.exe
    b) sqldeveloper.exe
    3) In SQL Developer 1.5
    From the Migrate menu,
    a) Delete current repository and create a new schema in Oracle target database call it mig2.
    b) Then create a new repository in SQL Developer 1.5
    c) Right mouse click on the MySQL 5.x database and choose capture
    It worked with the exception of one error message:
    o.jdbc.driver.OracleDriver     
    Error while registering Oracle JDBC Diagnosability MBean.
    So it looks like something is screwed up with my JDBC drivers and configuration for MySQL. How do I diagnose the JDBC driver issue for MySQL?
    Thanks!!!
    Ben
    Thanks
    Ben

  • SQL SSRS 2008 DateTime Calendar Control and Oracle 10g Data Source

    Hello. I am creating reports in SSRS 2008 using the calendar control for a date range. Let's say we select a start date of 3/3/2012. This parameter is sent into my SQL statement in the WHERE clause which is executed against an Oracle 10g database. All syntax has to be in SQL that Oracle understands, so no CONVERT or CAST.
    The format of the date is throwing an error "ORA-01843: not a valid month" when I try to use the following:
    SELECT *
    FROM TABLE
    WHERE STARTDATE >= TO_DATE('3/03/2012', 'MM/DD/YYYY')
    I get ORA-01722: invalid number when I try the following:
    SELECT *
    FROM TABLE
    WHERE STARTDATE >= >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
    I cannot find a way to format the date parameter in SQL Server SSRS before it gets to the SQL to be executed in Oracle.
    Please help.
    Thanks,
    Sunny

    920616 wrote:
    sb92075: I am showing you how Oracle renders the date if I do a simple select from the table from which I am trying to pull data. You are right, it sure doesn't prove anything other than how the date looks right out of the Oracle database, but hopefully, it will give a clue as to how I need my SSRS date parameter to work.
    Hans Forbrich:
    I get ORA-01722: invalid number when I try the following:
    SELECT *
    FROM TABLE
    WHERE STARTDATE >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
    Solomon:
    It works. The problem is getting the parameter '3/3/2012' into a usable format for Oracle.
    Let's assume an application is sending in '3/3/2012' which will be used in an Oracle query (no PL/SQL allowed, nor can I create functions, stored procedures, etc - only straight up SQL). How can I prepare the parameter to successfully do the compare on the Oracle Date field?
    12:50:23 SQL> select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual;
    select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual
    ERROR at line 1:
    ORA-01722: invalid number
    12:51:00 SQL> ed
    Wrote file afiedt.buf
      1* select TO_DATE('03/03/2012', 'MM/DD/YYYY') from dual
    12:51:20 SQL> /
    TO_DATE('03/03/2012
    2012-03-03 00:00:00

  • Executing Procedure in SQL SERVER and Storing the results in Oracle 10g

    Hello,
    I am trying execute SQL SERVER procedure from Oracle 10g and store the results in a oracle table. When I tried executing the procedure i am getting errors.
    I am using Oracle Heteroeneous Services.
    Steps I followed.
    1. Created ODBC DSN on Oracle Server connecting to SQL SERVER database.
    2. Created Listner entry and TNSNAMES entries.
    3. Created Database link and able to select the data from the SQL SERVER tables.
    Here is the code i tried to execute the procedure.
    BEGIN
    "META"."extract"@abc;
    END;
    "META"."extract"@abc;
    ERROR at line 2:
    ORA-06550: line 2, column 1:
    PLS-00201: identifier 'META.extract@ABC' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    Please help me.
    Thank You,
    Seshadri Thope

    Hi thopevs,
    Can you please tell me the right syntax of calling procedures(on sql server) from oracle?
    I am getting following error:
    SQL> execute "GetdateSys"@oratosql;
    begin "GetdateSys"@oratosql; end;
    ORA-06550: line 2, column 7:
    PLS-00201: identifier 'GetdateSys@ORATOSQL' must be declared
    ORA-06550: line 2, column 7:
    PL/SQL: Statement ignored
    SQL>
    Your help will be highly appreciated.
    Thanks & Regards,
    M.U.N.A

  • SQL QUERY to create new schema in Oracle 10g Express

    Can anyone provide the SQL query to create a new schema in Oracle 10g Express edition.

    Can anyone provide a SQl query to create a
    schema/user named 'test' with username as 'system'
    and password as 'manager'system user is created during database creation, it's internal Oracle admin user that shouldn't be used as schema holder.
    In Oracle database, Oracle user is schema holder there's no seperate schema name to be defined other than username.

  • Reading BLOB from SQL Server 2005 using DB Link from Oracle 10g

    Hi All,
    I am trying to read a table's data from SQL Server 2005 using ODBC DB Link created in Oracle 10g (10.2.0.3/4) database. I am not using oracle gateway.
    I am able read all data except for the BLOB data from SQL server 2005. It gives error given below when I try to execute query SELECT * from T_TRANSACTION_DATA@sdeslink inside a stored procedure:
    ORA-22992: cannot use LOB locators selected from remote tables
    Kindly help how to read BLOB from SQL server 2005 inside Oracle 10g.
    Best Regards!
    Irfan

    Irfan,
    If you can read the blob data using 10.2 HSODBC then there should be no problem using the 11g gateway.
    I recommend you download the latest version which is 11.2.0.3 available from My oracle Support as -
    Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER
    This is a full version and does not need a previous version to have bene installed. When installing it needs to be in a completlely separate ORACLE_HOME from the existing 11.2 install.
    For the Ora-22992 problem have a look at this note in My Oracle Support -
    Ora-22992 has a workaround in 10gR2 (Doc ID 436707.1)
    Regards,
    Mike

  • Availability of the SQL/XML functions (XMLELEMENT, etc.) in Oracle 10g XE

    Hi,
    I have installed Oracle 10g XE on a Windows PC. According to the Oracle XML DB Developer's Guide p.2-1, the installation of the Oracle XML DB can be checked via the following commands:
    select * from all_users;
    describe resource_view
    I ran both commands and got the desired output according to the Developer's guide, i.e.: The user XDB exists and so does the view resource_view. However, when I ran a small test with the XMLELEMENT function, then I got unsatisfactory results:
    Example:
    SELECT
    XMLELEMENT (
    NAME Land,
    XMLATTRIBUTES (L.LCode AS LCode),
    XMLELEMENT (NAME LName, L.LName)
    ) AS Mondial
    FROM Land L;
    Output on Oracle 10g XE:
    MONDIAL
    SYS.XMLTYPE
    SYS.XMLTYPE
    SYS.XMLTYPE
    SYS.XMLTYPE
    Expected output (which I got from a successful run on an Oracle 10g EE Server):
    MONDIAL
    <LAND LCODE="A "><LNAME>Austria</LNAME></LAND>
    <LAND LCODE="F "><LNAME>France</LNAME></LAND>
    <LAND LCODE="D "><LNAME>Germany</LNAME></LAND>
    <LAND LCODE="I "><LNAME>Italy</LNAME></LAND>
    i.e., rather than the four XML elements, I just got four times the output sys.xmltype - which is of course useless. What can I do to get the desired output? Thank you for your help.
    Reini, user524179

    What program are you using to run the sql? Are you sure you are using sql*plus for getting this?
    Output on Oracle 10g XE:
    MONDIAL
    SYS.XMLTYPE
    SYS.XMLTYPE
    SYS.XMLTYPE
    SYS.XMLTYPE

  • Converting SQL statements from MS server 2000 to Oracle 10g

    We are moving over from MS server 2000 to Oracle 10g as our database for Peoplesoft system.
    There are several embedded SQL statements that I need to investigate to see what needs converting.
    So far I can see a need to convert the following:
    Dates.     GetDate() to ?
    Outer joins. *= to LEFT OUTER JOIN
    Has anyone else done a similar exercise and what other functions do I need to convert?
    Thanks.

    Hello
    A quick google search (http://www.google.co.uk/search?hl=en&q=ms+sql+server+oracle+differences&spell=1)
    came up with this:
    http://dba-oracle.com/oracle_news/2005_12_16_sql_syntax_differences.htm
    There's a quite a few more sites listed.
    HTH
    David

  • Freeze panes for SQL report in APEX

     

    Hi,
    The right solution for this problem was, I resized the report region:
    Edit Region->Attributes->Region Attributes->style="width:400px"
    This resolved the issue.
    Thanks for all your suggestions.

  • How to tune the following sql statements which has two unions in oracle 10g

    It takes a long time to run the following sql statement in 10g. Each select brings back about 4 million rows and there will be about 12 million rows. When I run each select statements seprately in sqlplus I can see the data immedaitely but when I run it as whole with two unions in the select it just takes very very long time? I want to know how to make this run faster? Can we add hints? or is it because of any table space? Any help is appreciated.
    select
    D.EMPLID
    ,D.COMPANY
    ,'CY'
    ,D.CALENDAR_YEAR
    ,D.QTRCD
    ,D.ERNCD
    ,D.MONTHCD
    ,D.MONTHCD
    ,D.GRS_MTD
    ,D.GRS_QTD
    ,D.GRS_YTD
    ,D.HRS_MTD
    ,D.HRS_QTD
    ,D.HRS_YTD
    from PS_EARNINGS_BAL D
    where D.SPCL_BALANCE = 'N'
    union
    select
    D.EMPLID
    ,D.COMPANY
    ,'FY'
    ,(case when D.MONTHCD > '06' then D.CALENDAR_YEAR + 1 else D.CALENDAR_YEAR end)
    ,ltrim(to_char(to_number(D.QTRCD) + decode(sign(3-to_number(D.QTRCD)),1,2,-2),'9'))
    ,D.ERNCD
    ,ltrim(to_char(to_number(D.MONTHCD) + decode(sign(7-to_number(D.MONTHCD)),1,6,-6),'09'))
    ,D.MONTHCD
    ,D.GRS_MTD
    ,D.GRS_QTD
    ,(select sum(F.GRS_MTD) from PS_EARNINGS_BAL F where
    F.EMPLID = D.EMPLID and
    F.COMPANY = D.COMPANY and
    F.ERNCD = D.ERNCD and
    F.SPCL_BALANCE = D.SPCL_BALANCE and
    (case when F.MONTHCD < '07' then F.CALENDAR_YEAR -1 else F.CALENDAR_YEAR end)
    = (case when D.MONTHCD < '07' then D.CALENDAR_YEAR -1 else D.CALENDAR_YEAR end)
    and to_number(F.MONTHCD) + decode(sign(7-to_number(F.MONTHCD)),1,6,-6)
    <= to_number(D.MONTHCD) + decode(sign(7-to_number(D.MONTHCD)),1,6,-6))
    ,D.HRS_MTD
    ,D.HRS_QTD
    ,(select sum(F.HRS_MTD) from PS_EARNINGS_BAL F where
    F.EMPLID = D.EMPLID and
    F.COMPANY = D.COMPANY and
    F.ERNCD = D.ERNCD and
    F.SPCL_BALANCE = D.SPCL_BALANCE and
    (case when F.MONTHCD < '07' then F.CALENDAR_YEAR -1 else F.CALENDAR_YEAR end)
    = (case when D.MONTHCD < '07' then D.CALENDAR_YEAR -1 else D.CALENDAR_YEAR end)
    and to_number(F.MONTHCD) + decode(sign(7-to_number(F.MONTHCD)),1,6,-6)
    <= to_number(D.MONTHCD) + decode(sign(7-to_number(D.MONTHCD)),1,6,-6))
    from PS_EARNINGS_BAL D
    where D.SPCL_BALANCE = 'N'
    union
    select
    D.EMPLID
    ,D.COMPANY
    ,'FF'
    ,(case when D.MONTHCD > '09' then D.CALENDAR_YEAR + 1 else D.CALENDAR_YEAR end)
    ,ltrim(to_char(to_number(D.QTRCD)+decode(sign(4-to_number(D.QTRCD)),1,1,-3),'9'))
    ,D.ERNCD
    ,ltrim(to_char(to_number(D.MONTHCD)+decode(sign(10-to_number(D.MONTHCD)),1,3,-9),'09'))
    ,D.MONTHCD
    ,D.GRS_MTD
    ,D.GRS_QTD
    ,(select sum(F.GRS_MTD) from PS_EARNINGS_BAL F where
    F.EMPLID = D.EMPLID and
    F.COMPANY = D.COMPANY and
    F.ERNCD = D.ERNCD and
    F.SPCL_BALANCE = D.SPCL_BALANCE and
    (case when F.MONTHCD < '10' then F.CALENDAR_YEAR -1 else F.CALENDAR_YEAR end)
    = (case when D.MONTHCD < '10' then D.CALENDAR_YEAR -1 else D.CALENDAR_YEAR end)
    and to_number(F.MONTHCD)+decode(sign(4-to_number(F.MONTHCD)),1,9,-3)
    <= to_number(D.MONTHCD)+decode(sign(4-to_number(D.MONTHCD)),1,9,-3))
    ,D.HRS_MTD
    ,D.HRS_QTD
    ,(select sum(F.HRS_MTD) from PS_EARNINGS_BAL F where
    F.EMPLID = D.EMPLID and
    F.COMPANY = D.COMPANY and
    F.ERNCD = D.ERNCD and
    F.SPCL_BALANCE = D.SPCL_BALANCE and
    (case when F.MONTHCD < '10' then F.CALENDAR_YEAR -1 else F.CALENDAR_YEAR end)
    = (case when D.MONTHCD < '10' then D.CALENDAR_YEAR -1 else D.CALENDAR_YEAR end)
    and to_number(F.MONTHCD)+decode(sign(4-to_number(F.MONTHCD)),1,9,-3)
    <= to_number(D.MONTHCD)+decode(sign(4-to_number(D.MONTHCD)),1,9,-3))
    from PS_EARNINGS_BAL D
    where D.SPCL_BALANCE = 'N'
    Edited by: user5846372 on Mar 11, 2009 8:55 AM

    Hi,
    What i observed is that your table name and where clause is same in all the thress SELECTs whereas columns having some manipulations that is not going to be unique. I guess you can easily replace UNION with UNION ALL.
    from PS_EARNINGS_BAL D
    where D.SPCL_BALANCE = 'N'Note: I am not aware of your data and business requirement. Please test the result before removing. It is just a suggetion
    Cheers,
    Avinash

  • Regarding accessing SQL query issued by any user in Oracle 10g

    Hi all,
    i want to know the queries issued by various users accessing a database...
    But the in view DBA_AUDIT_TRAIL,I was getting empty value...(in SQLTEXT column) ...how can i get this value...
    Thanx
    in advance..

    Straight from the documentation :
    The SQL_BIND and SQL_TEXT columns are only populated if the AUDIT_TRAIL initialization parameter is set to db,extended.In addition, you have to make sure you issued the AUDIT command on the objects you would like to AUDIT access on.
    [Configuring and Administering Auditing|http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/cfgaudit.htm]

  • Changing Row color of standard SQL report

    Hi,
    I am trying to follow this post to change the color of a row in APEX SQL report. Change Colour of Row - Oracle APEX SQL Report
    It's a bit outdated, and trying to figure out how to get to this page: http://img7.imageshack.us/img7/4782/columntemplate.jpg in APEX 4.2 where I can conditionally set background color.
    I am using theme 13 (legacy) and made a copy of the report region. Edited it but cannot find an equivalent section of that apex 3.1 screenshot.
    Any help appreciated.

    William Wallace wrote:
    I sure was :) Cheers for pointing it out.
    Just another question, there are 4 options for the #COLUMN_VALUE# which I have background color conditionally (just like in that screenshot) based on one of the column values. The column can be of 1..5 values, however I only have 4 conditions to work with in the template editor.
    So what APEX is doing is since it can't find a 5th matching condition, it picks the very first one and applies it on it (even though the condition doesn't match).
    Is there anyway I can incorporate a 5th option/condition for column templates? Cheers.Not using that technique. There are a couple of options: another template-based approach using a custom named column report template, or using jQuery. I generally prefer the template method as everything runs on the server.
    1. Start by including a column containing the condition logic to generate a class value in the report query:
    select
            , case
                when sal < 1000 then 'low'
                when sal between 1000 and 2000 then 'medium'
                when sal > 2000 then 'high'
              end sal_class
    from
              empThen create a custom named column report template:
    2. Go to: Shared Components > Templates > Create
    3. In the wizard select: Report > From Scratch
    4. Enter/select:
    Name: [Name for this template]
    Theme: [Your current theme]
    Template Class: Custom 1
    Template Type: Named Column (row template)
    5. Click Create.
    6. Click the Status Report link in the Templates report.
    7. Enter the following properties:
    Row Template 1
    <tr class="#SAL_CLASS#"><td>#1#</td><td>#2#</td>...include a cell with a column substitution for every column in your report...</tr>i.e. the column with the conditional logic in the query is used to apply the required class to the row.
    Before Rows
    <!-- Copy the Before Rows definition from the Standard report template for your current theme and paste here -->
    <tr><th>#1#</th><th>#2#</th>...include a header with a column substitution for every column in your report...</tr>
    After Rows
    <!-- Copy the After Rows definition from the Standard report template for your current theme and paste here -->Add CSS to style the rows:
    8. Edit the Page CSS Attributes for the report page:
    Inline
    tr.low td { background-color: yellow; }
    tr.medium td { background-color: white; }
    tr.high td { background-color: red; }9. Change the report to use the new template.
    For the alternative jQuery approach, Tom created an example for this thread: +{thread:id=2487955}+

Maybe you are looking for