Flash Chart Performance Problem behind Firewall

I am running into an issue with running Flash based charts behind a firewall.
Database: 11.1.0.6
Apex: 3.1.2.00.02 (Using Oracle HTTP Server via Oracle Application Server)
Flash: 3.1.2.00.02
I have a page the displays a 2D Line graph with three data series. When I run the report directly against my app server (URL: [http://ecydblcyorwq06/public/f?p=128:11]
where ecydblcyorwq06 is my app server) the chart displays just fine. In
order for the public to access this page they must go through our
firewall called fortress. So they start by accessing the system from [https://fortress.wa.gov/ecy/wplcsreports/,] which then maps to my application (128:1). The URL becomes [https://fortress.wa.gov/ecy/wplcsreports/public/f?p=128:1].
When I try to run the chart through fortress it never renders. I just
get the "Loading Data...Please Wait" progress bar. The progress bar
moves very slowly and never returns the chart.
My dads.conf looks like
<Location /public>
SetHandler                  pls_handler
Order                       deny,allow
Allow                       from all
AllowOverride                  None
PlsqlDatabaseUsername        APEX_PUBLIC_USER
PlsqlDatabasePassword         xxxxxxxx
PlsqlDatabaseConnectString  database_server:1521:my_sid     SIDFormat
PlsqlAuthenticationMode       Basic
PlsqlDefaultPage                  f?p=wplcs_online:permit_search
PlsqlDocumentTablename     wwv_flow_file_objects$
PlsqlDocumentPath             docs
PlsqlDocumentProcedure     wwv_flow_file_mgr.process_download
PlsqlNLSLanguage            AMERICAN_AMERICA.AL32UTF8
</Location>My Apache httpd.conf file looks like:
<VirtualHost *>
ServerName wplcsreports
RewriteEngine On
RewriteRule ^/$ /public/f?p=wplcs_online:permit_search [R]
DocumentRoot /www/pls/apex
#RewriteLog "E:\product\10.1.3.1\OracleAS_1\Apache\Apache\logs\rewrite.log"
#RewriteLogLevel 9
Port 80
</VirtualHost>The Apache access logs have a couple entries like this:
198.239.146.15 - - --30/Sep/2008:10:49:30 -0700--
"GET
/i/flashchart/2DLine.swf?XMLFile=http://wplcsreports/public/apex_util.flash?p=128:11:5145826667904515:FLOW_FLASH_CHART_R4278912739418628_en-us
HTTP/1.1" 304 -
198.239.146.15 - - --30/Sep/2008:10:59:02 -0700--
"GET
/i/flashchart/2DLine.swf?XMLFile=http://wplcsreports/public/apex_util.flash?p=128:11:761140423223754:FLOW_FLASH_CHART_R4278912739418628_en-us
HTTP/1.1" 200 80216Is there something that I need to do from the configuration standpoint
to make the chart work across the firewall? Do I need to do something
with the Virtual host definition so that the XML file works properly?
Tony

Alright, I have modified my DAD to include the following line:
PlsqlCGIEnvironmentList HTTP_HOST=fortress.wa.gov/ecy/wplcsreports:80
I restarted the OHS and how I get an XML error in the chart region.
XML Loading Failed: http://fortress.wa.gov/ecy/wplcsreports/public/apex_util.flash?p=128:11:......The thing I noticed here is that the failed URL is not HTTPS, but HTTP instead. I am guessing this is the current problem. So I went back to my httpd.conf file and tried to add the request_method directive to my virtual host definition, but this just caused the OHS restart to fail.
httpd.conf
<VirtualHost *>
ServerName wplcsreports
RewriteEngine On
RewriteRule ^/$ /public/f?p=wplcs_online:permit_search [R]
DocumentRoot /www/pls/apex
#RewriteCond %{REQUEST_METHOD} ^TRACE
Port 80
</VirtualHost>So how do I force the XML file loading to be under the HTTPS protocol?
Tony

Similar Messages

  • Flash chart performance issue with multiple series

    Hi,
    We have a problem with the performace of a line graph which has multiple series.
    I have set up an example application here:
    http://apex.oracle.com/pls/apex/f?p=37504:1
    The application contains two charts. The 'Mulltiple Series' chart has twelve series behind it and allows the user to include mutiple series data. The other chart has just one series.
    The single series chart takes only a couple of seconds to render, however the mutiple series chart takes around 10 seconds even when no additional series have been selected. Using Firebug I have observed that the apex_util.flash procedure is taking around 8 seconds to generate the XML, and it includes null data values for the series that aren't selected.
    My question is how can I make each series conditional, such that no data is included in the XML if the series returns no rows?
    Thanks,
    Andrew

    Hi Andrew
    Have you considered modifying your chart to use a series with the "Query source type" of "Function returning SQL Query"
    Have a look at
    Re: Flash chart - multiple series - no display when some series empty
    My response on that thread may help. I'd be interested to know if this approach improves the performance.
    Kind regards
    Simon Gadd

  • Flash Chart Legend Problem

    Hi,
    Im having a problem with my flash chart legends in Apex3.0.
    I have changed the name of the Series to what i want to appear in my legend - however the legend just shows "Value" for all my Series.
    Does anyone else have this problem?
    Cheers,
    Immanuel

    Hello,
    I need a legend like this
    No of Clicks('000)
    If i give l" No of Clicks('000)" as column alias, chart says Error :No chart data available.
    If i give "No of Clicks('000')" or "No of Clicks(''000)" as column alias in the query, it displays the correct legend..
    Would anybody tell me how to show the legend like this
    No of Clicks('000)
    Regards,
    Archana

  • Flash Chart performance?

    We have a 2DLINE chart that dynamically generates SQL (we have x series being displayed, typically in the region of 3 to 7).
    As a result, we can have a maximum 365 x data points multiplied by the number of series. When we have 5 series, Flash seems to struggle with rendering the chart and provides several "+A script in this movie is causing Adobe Flash Player 9 to run slowly. If it continues+
    +to run, your system may become unresponsive. Do you want to abort the script?+" messages. The SQL executes just fine, within a second, and so it seems like the problem is on the client between the XML and SWF.
    Has anyone modified the SWF to provide a different timeout for this message and if not, what other option is there to extend or remove this message?
    Bill and others has posted the same questions (Bill's here: Flash Chart limitations? and there doesn't seem to be a solution available yet.
    Phil
    (Application Express v3.1 Anychart v3, IEv6)
    Update: It looks like it should be possible using Flashvars - however, this is either ignored or the swf overrides this.
    Edited by: Phil UK on Jun 10, 2010 8:44 AM

    Try Simile timeplot - it works well in my tests of around 4 series, and 1000 data points each on the same chart.
    Spread out x-axis points to smooth out line graph

  • Vista / Flash performance problem

    I have a well-patched / McAfee / Firewall Dell / Vista
    Business laptop. 2Gb, plenty of horsepower. I have uninstalled
    Flash, rebooted, reinstalled flash WIN 9,0,124,0, but I seem to
    have a performance problem that other Vista workstations do not
    have.
    I have a flash application for quiz questions. Hovering the
    mouse over the choices should highlight the choices instantly. On
    my workstation, it takes about 2 seconds for the hover effect to
    appear. On my other Windows XP and Vista desktops, it's an
    immediate effect.
    Any suggestions as to where the problem might be?

    Luis,
    Whenever I hear someone mention the words 'it takes 5 minutes', my mind always seems to think about DNS problems (since 300 seconds is a typical timeout for DNS related problems).
    Would you mind having a look at the HTML sourcecode for your application and locating the part where the Flash chart is specified, it will look something like -
    <param name="movie" value="/i/flashchart/2DColumn.swf?XMLFile=http://yourserver/pls/apex/apex_util.flash?p=1299:1:1265142206329375:FLOW_FLASH_CHART_R1760625855571144_en-us">
    <param name="quality" value="high">
    <param name="allowScriptAccess" value="sameDomain">
    <param name="allowNetworking" value="all">
    <param name="scale" value="noscale">
    <param name="wmode" value="transparent">
    <param name="FlashVars" value="waiting=Loading data. Please wait.&loading=Loading data...">Take a look at the URL that is used to retrieve the data for the Flash chart (the ?XMLFile parameter in my example).
    Does the URL in your page use the same domain name as the URL you're using to access your application via the browser, or are they different?
    I could be barking up the wrong tree entirely here, but it's one of those 'nagging thoughts' I often have ;)

  • Problem with flash chart

    I'm trying to create a flash chart graphic, type Gauges, without success. When I try to run the apex hangs. I've tried to install Adobe Shockwave Player, but with it installed instead of the graphic image appears only the graphic url.
    Any idea?

    I found the problem.
    The attributes gauge:major interval and minor interval are defined default as 2 and 1.
    After redefintion, the problem disapears.

  • Problems with Range 2D Column Flash Chart

    I am having three problems with the Range 2D Column Flash Chart.
    1. Series Name: I have two series one named AAA the other BBB. AAA returns two values AAA_MIN and AAA_MAX. BBB returns two values BBB_MIN and BBB_MAX. The Legend shows two series both labeled AAA.
    2. Show Hints: The Hint Labels are all AAA even when looking at a BBB value. And the Values show no precision, 0.03 shows as 0.
    3. Y Axis Scale not showing precision. My values range from 0.01 to 0.11 and the Y Axis Scale simply shows all 0

    Hi Marco.
    Thanks for the help.
    2 and 3) I have reverted to handling the decimal places declaratively rather then with Custom XML. Thanks for that, I just did not see that setting on the form.
    As for (1) I did read something about the column alias was supposed to show as the Label for the Legend and Hints. But I am not doing something right. These are the SQL for each of my two Series. In my Legend and Hints I get:
    AAA
    AAA
    First Series:
    Series Name = AAA
    SQL =
    select
        NULL as LINK,
        to_char(DATETIME, 'DD HH24') || ':00' as LABLE,
        round(min(decode(AAA,0,NULL,AAA)),1) as "AAA_MIN",
        round(max(decode(AAA,0,NULL,AAA)),1) as "AAA_MAX"
    from
        ZZZZ
    where
        DATETIME between to_timestamp(:P47_SEARCH_X_FROM_DATE,'MM/DD/YYYY HH24:MI') and to_timestamp(:P47_SEARCH_X_TO_DATE,'MM/DD/YYYY HH24:MI')
    group by
            to_char(DATETIME, 'DD HH24')
    order bySecond Series:
    Series Name = BBB
    SQL =
    select
        NULL as LINK,
        to_char(DATETIME, 'DD HH24') || ':00' as LABLE,
        round(min(decode(BBB,0,NULL,BBB)),1) as "BBB_MIN",
        round(max(decode(BBB,0,NULL,BBB)),1) as "BBB_MAX"
    from
        ZZZZ
    where
        DATETIME between to_timestamp(:P47_SEARCH_X_FROM_DATE,'MM/DD/YYYY HH24:MI') and to_timestamp(:P47_SEARCH_X_TO_DATE,'MM/DD/YYYY HH24:MI')
    group by
            to_char(DATETIME, 'DD HH24')
    order by
        2 asc

  • Slow flash chart loading in Apex due to SQL performance!

    I am very new with Oracle. I have an application with lots of flash charts which are mostly very slow to load. My table size is over 10 million and growing. I think that most of my problems come from the SQL quries that I use, but do not understand most of the techniques I find in internet to tune it. Here is one example:
    select null,c.mydate label,c7.cnt "Rattle",c8.cnt "Climb",c9.cnt "Kick",c1.cnt "Footstep",c2.cnt "Vehicle",c4.cnt "Start"
    from (select unique TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate,TO_CHAR(RECORDDATE,' yyyy-mm-dd HH24:MI') as sort from SCOTT.SCDATABASE4 WHERE RECORDDATE> TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND ID = :P2_ID AND RECORDDATE< TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS') AND (CLASS in (7,8,9,1,2,4))) c
    left join
    (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate, count(1) cnt from SCOTT.SCDATABASE4 WHERE RECORDDATE> TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND ID = :P2_ID AND RECORDDATE< TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS') AND CLASS = 7 group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')) c7 on (c.mydate = c7.mydate)
    left join
    (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate, count(1) cnt from SCOTT.SCDATABASE4 where RECORDDATE> TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND ID = :P2_ID AND RECORDDATE< TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS') AND CLASS = 8 group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')) c8 on (c.mydate= c8.mydate)
    left join
    (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate, count(1) cnt from SCOTT.SCDATABASE4 where RECORDDATE> TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND ID = :P2_ID AND RECORDDATE< TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS') AND CLASS = 9 group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')) c9 on (c.mydate = c9.mydate)
    left join
    (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate, count(1) cnt from SCOTT.SCDATABASE4 WHERE RECORDDATE> TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND ID = :P2_ID  AND RECORDDATE< TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS') AND CLASS = 1 group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')) c1 on (c.mydate = c1.mydate)
    left join
    (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate, count(1) cnt from SCOTT.SCDATABASE4 WHERE RECORDDATE> TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND ID = :P2_ID AND RECORDDATE< TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS') AND CLASS = 2 group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')) c2 on (c.mydate = c2.mydate)
    left join
    (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate, count(1) cnt from SCOTT.SCDATABASE4 WHERE RECORDDATE> TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND ID = :P2_ID AND RECORDDATE< TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS') AND CLASS = 4 group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')) c4 on (c.mydate = c4.mydate)
    order by c.sort I have oracle 11g working with Apex 4.1. I used the SQL workshop's explain plan:
    Operation     Options     Object     Rows     Time     Cost     Bytes     Filter
    Predicates *     Access
    Predicates
    SELECT STATEMENT
              66     703     58,573     9,966          
    SORT
    ORDER BY          66     703     58,573     9,966          
    HASH JOIN
    RIGHT OUTER          66     703     58,572     9,966          "C"."MYDATE" = "C1"."MYDATE"(+)
    VIEW
              1     101     8,358     22          
    HASH
    GROUP BY          1     101     8,358     18          
    FILTER
                                  TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    TABLE ACCESS
    FULL     SCDATABASE4     1     101     8,357     18     "CLASS" = 1 AND "ID" = TO_NUMBER(:P2_ID) AND "RECORDDATE">TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND "RECORDDATE"<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    HASH JOIN
    OUTER          66     603     50,214     8,514          "C"."MYDATE" = "C2"."MYDATE"(+)
    HASH JOIN
    OUTER          66     503     41,853     7,062          "C"."MYDATE" = "C4"."MYDATE"(+)
    HASH JOIN
    OUTER          66     402     33,494     5,610          "C"."MYDATE" = "C9"."MYDATE"(+)
    HASH JOIN
    OUTER          66     302     25,135     4,158          "C"."MYDATE" = "C8"."MYDATE"(+)
    HASH JOIN
    OUTER          66     202     16,777     2,706          "C"."MYDATE" = "C7"."MYDATE"(+)
    VIEW
              66     102     8,418     1,254          
    HASH
    UNIQUE          66     102     8,418     1,188          
    FILTER
                                  TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    TABLE ACCESS
    FULL     SCDATABASE4     66     102     8,417     1,188     "ID" = TO_NUMBER(:P2_ID) AND ("CLASS" = 1 OR "CLASS" = 2 OR "CLASS" = 4 OR "CLASS" = 7 OR "CLASS" = 8 OR "CLASS" = 9) AND "RECORDDATE">TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND "RECORDDATE"<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    VIEW
              1     101     8,358     22          
    HASH
    GROUP BY          1     101     8,358     18          
    FILTER
                                  TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    TABLE ACCESS
    FULL     SCDATABASE4     1     101     8,357     18     "CLASS" = 7 AND "ID" = TO_NUMBER(:P2_ID) AND "RECORDDATE">TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND "RECORDDATE"<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    VIEW
              1     101     8,358     22          
    HASH
    GROUP BY          1     101     8,358     18          
    FILTER
                                  TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    TABLE ACCESS
    FULL     SCDATABASE4     1     101     8,357     18     "CLASS" = 8 AND "ID" = TO_NUMBER(:P2_ID) AND "RECORDDATE">TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND "RECORDDATE"<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    VIEW
              1     101     8,358     22          
    HASH
    GROUP BY          1     101     8,358     18          
    FILTER
                                  TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    TABLE ACCESS
    FULL     SCDATABASE4     1     101     8,357     18     "CLASS" = 9 AND "ID" = TO_NUMBER(:P2_ID) AND "RECORDDATE">TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND "RECORDDATE"<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    VIEW
              15     101     8,359     330          
    HASH
    GROUP BY          15     101     8,359     270          
    FILTER
                                  TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    TABLE ACCESS
    FULL     SCDATABASE4     15     101     8,358     270     "CLASS" = 4 AND "ID" = TO_NUMBER(:P2_ID) AND "RECORDDATE">TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND "RECORDDATE"<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    VIEW
              49     101     8,361     1,078          
    HASH
    GROUP BY          49     101     8,361     882          
    FILTER
                                  TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')     
    TABLE ACCESS
    FULL     SCDATABASE4     49     101     8,360     882     "CLASS" = 2 AND "ID" = TO_NUMBER(:P2_ID) AND "RECORDDATE">TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS') AND "RECORDDATE"<TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')
    From this I gather that the full database access is a bad thing, but do not know how to prevent it. I would appreciate any help and sorry for the long post!!

    End Of (rather busy) Week: Friday evening but your query
    select null,c.mydate label,c7.cnt "Rattle",c8.cnt "Climb",c9.cnt "Kick",c1.cnt "Footstep",c2.cnt "Vehicle",c4.cnt "Start"
      from (select unique
                   TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate,
                   TO_CHAR(RECORDDATE,' yyyy-mm-dd HH24:MI') as sort
              from SCOTT.SCDATABASE4
             WHERE RECORDDATE > TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')
               AND ID = :P2_ID
               AND RECORDDATE < TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')
               AND (CLASS in (7,8,9,1,2,4))
           ) c
           left join
           (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate,
                   count(1) cnt
              from SCOTT.SCDATABASE4
             WHERE RECORDDATE > TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')
               AND ID = :P2_ID
               AND RECORDDATE < TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')
               AND CLASS = 7
             group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')
           ) c7
        on (c.mydate = c7.mydate)
           left join
           (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate,
                   count(1) cnt
              from SCOTT.SCDATABASE4
             where RECORDDATE > TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')
               AND ID = :P2_ID
               AND RECORDDATE < TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')
               AND CLASS = 8
             group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')
           ) c8
        on (c.mydate= c8.mydate)
           left join
           (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate,
                   count(1) cnt from SCOTT.SCDATABASE4
             where RECORDDATE > TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')
               AND ID = :P2_ID
               AND RECORDDATE < TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')
               AND CLASS = 9
             group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')
           ) c9
        on (c.mydate = c9.mydate)
           left join
           (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate,
                   count(1) cnt
              from SCOTT.SCDATABASE4
             WHERE RECORDDATE > TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')
               AND ID = :P2_ID 
               AND RECORDDATE < TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')
               AND CLASS = 1
             group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')
           ) c1
        on (c.mydate = c1.mydate)
           left join
           (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate,
                   count(1) cnt
              from SCOTT.SCDATABASE4
             WHERE RECORDDATE > TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')
               AND ID = :P2_ID
               AND RECORDDATE < TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')
               AND CLASS = 2
             group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')
           ) c2
        on (c.mydate = c2.mydate)
           left join
           (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate,
                   count(1) cnt from SCOTT.SCDATABASE4
             WHERE RECORDDATE > TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')
               AND ID = :P2_ID
               AND RECORDDATE < TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')
               AND CLASS = 4
             group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI')
           ) c4
        on (c.mydate = c4.mydate)
    order by c.sortseems just
    select null,
           c.mydate label,
           case when gc.CLASS = 7 then gc.cnt end "Rattle",
           case when gc.CLASS = 8 then gc.cnt end "Climb",
           case when gc.CLASS = 9 then gc.cnt end "Kick",
           case when gc.CLASS = 1 then gc.cnt end "Footstep",
           case when gc.CLASS = 2 then gc.cnt end "Vehicle",
           case when gc.CLASS = 4 then gc.cnt end "Start"
      from (select unique
                   TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate,
                   TO_CHAR(RECORDDATE,' yyyy-mm-dd HH24:MI') as sort
              from SCOTT.SCDATABASE4
             WHERE RECORDDATE > TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')
               AND ID = :P2_ID
               AND RECORDDATE < TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')
               AND (CLASS in (7,8,9,1,2,4))
           ) c
           left join
           (select TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI') as mydate,
                   CLASS,
                   count(1) cnt
              from SCOTT.SCDATABASE4
             WHERE RECORDDATE > TO_TIMESTAMP(:P2_DATE,'DD-MON-YYYYHH24:MI:SS')
               AND ID = :P2_ID
               AND RECORDDATE < TO_TIMESTAMP(:P2_DATE2,'DD-MON-YYYYHH24:MI:SS')
               AND CLASS in (7,8,9,1,2,4)
             group by TO_CHAR(RECORDDATE,'MM/DD/YY HH24:MI'),CLASS
           ) gc
        on c.mydate = gc.mydate
    order by c.sortRegards
    Etbin

  • RMAN duplicate target database from active database - performance problem

    Hello. I’m running into a major performance problem when trying to duplicate a database from a target located inside our firewall to an auxiliary located outside our firewall. Both target and auxiliary are located in the same equipment room just on different subnets. Previously I had the auxiliary located on the same subnet as the target behind the firewall and duplicating a 4.5T database took 12 hours. Now with the auxiliary moved outside the firewall attempting to duplicate the same 4.5T database is estimated to exceed 35 hours. The target is a RAC instance using ASM and so is the auxiliary. Ping, tnsping, traceroutes to and from target and auxiliary all indicate no problem or latency. Any ideas on things to consider while hunting for this elusive performance decrease?
    Thanks in advance.

    It would obviously appear network related. Have you captured any network/firewall metrics? Are all components set to full duplex? Would it be possible to take the firewall down temporarily and then test the throughput? Do you encounter any latency if you were to copy a large file across the subnets?
    You may want to check V$RMAN_BACKUP_JOB_DETAILS, V$BACKUP_SYNC_IO or V$BACKUP_ASYNC_IO when the backup is running.

  • Issue with Adobe flex data.xml file not reachable from bsp behind firewall

    Hi Gurus,
    I have a problem with the <mx:HTTPService> tag the following is the actual tag,
    <mx:HTTPService
    id="Srv"
    url="data.xml"
    useProxy="false"
    method="POST" result="resultHandler(event)"/>
    When accessed locally I can see the data in the flex as the data.xml can be reached. when the same is accessed from internet behind firewall, the url is entirely different and the .swf file in the BSP page cannot access the data.xml. I cannot give the absolute url in the tag as the BSP page application is accessed differently in different servers. any help on this would be greatly appreciated
    Thanks
    Akbar

    Sorry somehow I missed this question, an even easier way to do this is to allow your Flash movie to "script" ( this is the default behavior for a Flex application ) and then call some javascript to obtain exactly what the page URL is and then go from there to get your data:
    import flash.external.ExternalInterface;
    import mx.utils.URLUtil;
    var
    if(ExternalInterface.available){
         pageURL = ExternalInterface.call("window.location.href.toString");
    // Do whatever you need with the URL here.
         var serverName:String = URLUtil.getServerNameWithPort(pageURL);
    -d

  • Date Picker Result Used in Query for Flash Chart

    Hello,
    I'm creating a flash chart using an SQL Query. The query uses two date pickers for the beginning and ending date of the data the query returns. For some reason the substitution string for the data pickers do not work and do not return any data. If I hard wire the start and end date to something like '12/01/2008' and '01/31/2009' the query and the flash chart work just fine. When use the string representing the data pickers (:P65_BEGIN_DATE and :P65_END_DATE) the query does not return any data. Is there some problem using substitution strings in queries for flash charts??
    For what it's worth here is the query. (Look near the bottom to see where I reference the data pickers):
    SELECT 'Link',
    to_char(Day, 'Mon DD'),
    ((Count("Item Number")-Sum("Devaition"))/Count("Item Number"))*100 as "Precentage"
    from
    (SELECT
    to_date(concat(substr(F4140.PICSDJ, 1, length(F4140.PICSDJ)-3)+1900,
    substr(F4140.PICSDJ, length(F4140.PICSDJ)-2,3)), 'yyyyddd') as Day,
    F4141.PJLITM AS "Item Number",
    sum(F4141.PJTQOH) AS "Sum Qty On Hand",
    sum(F4141.PJTQCT) AS "Sum Qty Counted",
    (decode(sum(F4141.PJTQOH)-sum(F4141.PJTQCT), 0, 0, 1)) as "Devaition"
    FROM F4140 INNER JOIN F4141 ON F4140.PICYNO = F4141.PJCYNO
    WHERE (((F4140.PICYCS) In ('40','50')) AND ((F4141.PJCCCD)='1'))
    GROUP BY to_date(concat(substr(F4140.PICSDJ, 1, length(F4140.PICSDJ)-3)+1900,
    substr(F4140.PICSDJ, length(F4140.PICSDJ)-2,3)), 'yyyyddd'), F4141.PJLITM
    HAVING to_date(concat(substr(F4140.PICSDJ, 1, length(F4140.PICSDJ)-3)+1900,
    substr(F4140.PICSDJ, length(F4140.PICSDJ)-2,3)), 'yyyyddd')
    between to_date(:P65_BEGIN_DATE, 'DD-Mon-YYYY') and to_date(:P65_END_DATE, 'DD-Mon-YYYY') )
    group by Day

    I look at the debug output without changing anything and I am not really sure where the two date pickers are being populated. However I do have defaults set up for each datepicker of:
    P65_BEGIN_DATE: to_char(sysdate - 30, 'DD-MON-YYYY')
    P65_END_DATE: to_char(sysdate, 'DD-MON-YYYY')
    and the dates I would expect show up in the date picker.
    Also I created a Computation of Before Header type with the following PL/SQL expression:
    to_char(sysdate-180, 'DD-MON-YYYY')
    and I see the following output when in debug mode:
    0.05: Computation point: BEFORE_HEADER
    0.05: ...Perform computation of item: P65_BEGIN_DATE, type=PLSQL_EXPRESSION
    0.05: ...Session State: Save "P65_BEGIN_DATE" - saving same value: "03-AUG-2008"
    0.05: Processing point: BEFORE_HEADER
    So I think the datapickers are being populated but the flash chart is still not working.

  • ___How to access database behind firewall with JDBC___

    How to access a database behind a firewall? I have an applet that runs from a server behind that firewall. I can make applet-servlet-database calls, but I cannot make applet-database calls. Therefore, I must go through servlets.
    This causes a problem as the ResultSet object is not serializable. I have found two solutions using a search.
    1) Store info into a Vector and transmit the vector. This option will take up a huge amount of time with large ResultSets.
    2) Used sun's CachedRowSet which is serializable. I read the liscence under the CashedRowSet, and it does not allow use for "productive and commercial" use.
    Does anyone have any other suggestions I am missing?

    I'm pretty sure there are other implementations of CachedResultSet out there that don't have the licensing restrictions on them, so maybe you could hunt down one of those.
    As far as storing it in a Collection of some kind, I've never found a huge performance problem in doing so. When iterating through the ResultSet anyway, the additional cost of placing data in a different structure is minimal, even on larger results.

  • Putting Identity Server behind firewall

    Hi All,
    I have an application running on SunONE app server 7 with agent in order to control authentication and authorization. I would like to put the identity server behind firewall. However, everytime when the agent redirect to identity server to perform login, it redirects directly which user can't access the login page. May I know how can I put the Identity server behind firewall? Must I use web proxy server instead? Any other solution? Thx a lot.
    \Tobey

    Hi, this is Tobey again. I have installed Identity Server 6.1 and a web proxy server 3.6 in front of the Identity Server.
    The web proxy server succeed in reverse proxying all usual applications. However, when I try accessing amconsole through proxy server, the console service always re-direct me to Identity Server host directly. And my client browser is not allow to resolve that hostname.
    What I have configured is setting regular and reverse url mapping in Web proxy server. In Identity server, I have set the fqdn mapping, dns alias, adding one more in server list and cookies domain.
    Any one had experience on putting Identity Server behind firewall? How to solve the hostname problem that redirected by Identity Server service? Thx a lot.
    \Tobey

  • Apex 4 - Flash Chart - How to open link in same page

    Hi,
    I need help in apex flash chart development. I want to open link in same page. Currently it open in new window with existing page intact
    I have created a flash chart.
    Below are setting
    Chart Type 2D line
    Series Type : Line
    Series siurce : sql query
    elect '?p=&APP_ID.:2:&APP_SESSION.::::P2_ORACLESID,P2_CAP_DATE:&P15_ORACLESID.,'||capture_date link,
    capture_date,
    round(sum(TOTAL_MB)) "Total_MB" ,
    round(sum(USED_MB)) "Used_MB" ,
    round(sum(FREE_MB)) "Free_MB"
    from SST.TABLESPACE_USAGE_HIST
    where DBNAME = :P15_ORACLESID
    group by capture_date
    order by capture_date
    Problem: when I run this page, chart is displayed. Now if I click on the series value of chart, it opens page ( '?p=&APP_ID.:2:&APP_SESSION.::::P2_ORACLESID,P2_CAP_DATE:&P15_ORACLESID.,'||capture_date link) It opens page 2 in new window. I want it to open in same window. Am I missing something ? Is this possible ? Is there anything I can change to achive this functionality
    Please help

    Hi All,
    I have an issue with Anychart link, can you please help me.
    1. I have created HTML region in a page with
    <div id="sampleClick">
    <div id="sample1">
    <script type="text/javascript" language="javascript">
    function ChartSample()
    var ChartSample = new AnyChart('/i/flashchart_v5/swf/AnyChart.swf');
    ChartSample.width = "500";
    ChartSample.height = "400";
    var ChartData = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=FINANCE_020',0);
    gReturn = ChartData.get();
    // prompt("xml",gReturn);
    ChartSample.setData(gReturn);
    ChartSample.write("sample1");
    ChartSample();
    </script>
    2. Then created Application process with "On Demand Run this application process when requested by a page process." in PL/SQL Anonymous block
    select 'f?p=&APP_ID.:136:&APP_SESSION.::::P33_ID:' || YEAR link,DECODE(period,1,'JAN',2,'FEB',3,'MAR',4,'APR',5,'MAY',6,'JUN',7,'JUL',8,'AUG',9,'SEP',10,'OCT',11,'NOV',12,'DEC')||'-'||year "MONTH",round(SUM(ytd_revenue)/1000000,2) YTD_REV from t_tc_qpcq2052
    where cntry='IND' and category='20'
    GROUP BY year, period
    ORDER BY YEAR, period
    I am able to see the chart, but I am not able to open or pass the value from one page to another page when I click the bar chart.
    Can you please help me on this.
    Thanks in Advance.

  • Performance problems with Leopard 10.5.1

    Hello,
    I use an iMac 24 Alu 2,8Ghz and upgraded to Leopard. There are some major performance problems and bugs in the recent version of Leopard:
    1. While accessing USB devices, the display speed, windows moving, animations etc. slow down
    2. Adobe CS3 Photoshop 10.01 and Flash CS3 are sometimes extremly slow. I tried the recent demo packages from Adobe:
    2.1. The Photoshop dialogue "save for web" slows down the system completly, and this problem stays when quitting Photoshop. A restart is neccessary then.
    2.2. Flash CS3 movie preview is very slow and stuttering. It's so slow you cannot imagine how the real movie flow will be.
    2.3. Recent Flash Player 9,0,115,0 with hardware acceleration enabled doesn't really work with QuartzGL enabled Leopard: The movies slow down a lot. Try www.neave.tv for example.
    3. Safari, Mail and other bundled software hang sometimes. You have to force quit them then. It doesn't matter whether QuartzGL is enabled or not. This especially happens to my system if it is online for some hours.
    4. A lot of Apple applications doesn't seem to work with 2dextreme enabled. Why this? Apple supporters told me in Leopard there will be a much better 2dextreme support. Also Quartz2dExtreme in OSX 10.4 worked with all applications and i guess it's the same feature like "QuartzGL" in Leopard. So Leopard isn't finished here. It would be nice if Apple could make it's own software QuartzGL compatible.
    5. Very often the desktop slows down or lags. This is the main reason I often still witch to Windows XP PC to do work in a faster, less annoying way.
    6. Safari crashes randomly sometimes. It is unstable still. Also it crashes more often if you resize/move the window a lot, so I guess it is a graphics extension-related problem.
    I hope you people from Apple will fix these annoying points and optimize your new system in the next update release.
    Best regards

    Thanks for you answer. I repaired in the way as described above. There were some errors, some file index was wrong (don't remember exactly the phrase), now the DU reports the partition was successfully repaired / the volume appears to be ok.
    The crashes in Safari are gone, but all other described problems still exist. Adobe CS3 is not really usable for me.
    By the way, in iMacSoftwareUpdate 1.3, which was replaced by OSX 10.5.1 update, there is one extension called AppleVADriver.kext that does not exist in the OSX 10.5.1 update. Is it an important extension?

Maybe you are looking for

  • Proxy problems with portal

    Hi everybody, we are running EP60 sp13; when we get to the portal via IIS (SSO), after a short period of work, the Portal doesn't work anymore. We are always redirected to the home page (sometimes a blank page). Everything returns all right when rebo

  • Acrobat Reader don't allow this file type to be opened! (Excel)

    I have several PDF files that were generated in a previous version of Adobe Acrobat. They are converted folders from outlook into PDF. These PDF's contain email communication about a certain topic. Some of the emails contain attachments, like excel w

  • Firewire Bus Power - Un-needed

    I've been using an Echo AudioFire 12 firewire interface for years with my Mac Pro, but now I'm using it in the field with my MacBook. The AF 12 is (AC) self powered yet the MacBook automatically sends it bus power, thusly running hotter and the fan n

  • Can i Replace Thinkpad E540 Hardrive with SSD?

    Can i Replace Thinkpad E540 Hardrive with SSD? if its okey, what kind SSD spesification. many thanks, Sorrt for my poor english 

  • S-ips monitor - is it preferred ?

    I will be purchasing a new monitor. I have recently been informed of ips monitors. I do mostly video and photo edting , in Premiere and Photoshop. I don't know if the ips type monitors will be best for my use. I am considering a Dell ultra sharp mode