SVG chart series error

Hi!
I want generate svg chart with 3 series basead in database table DR_HPUX_CPU with 5 columns: id (server id), percent_user, percent_idle, percent_system and info_date.
What I Want is view information about CPU percent user, system and idle in the same chart. series query (i create 3 only different in PERCENT_XXX):
SELECT NULL LINK,
data,
valor
FROM
(SELECT DISTINCT
TO_CHAR(info_date,'YYYY-MM-DD HH24:MI') as data,PERCENT_XXX as valor
FROM DR_HPUX_CPU
WHERE ID=6 ORDER BY data DESC)
WHERE ROWNUM < 21
order by data asc
If I have only one series, chart display very well. when i have 3 series chart return error:
SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Parse error: ORA-00933: SQL command not properly ended
What's wrong?
Thanks
Avc

"Avc"
I think we're going to have to see the other 2 queries. What happens when you try all combinations of 2 queries? What I'm asking is: can you narrow the problem down to 1 query?
Sergio

Similar Messages

  • SVG: Chart error: ORA-20001:

    Hi,
    We are using 1.6.1.00.02 . I got a problem with SVG chart. The query returns following error:
    SVG: Chart error: ORA-20001: bar_char_error ORA-20001: get_data_error: ORA-20001 Fetch error: ORA-01782
    The column names are correct. The same query works perfectly in HTMLDB reports.
    Following is the query:
    SELECT
    TRANSACTION_dATE,
    SUM(SALES) SALES,
    SUM(COST_OF_SALE) COST_OF_SALE
    fROM HTML_SALES_REPORT_View
    WHERE transaction_date between
    '01-DEC-2004' and '31-DEC-2004'
    GROUP BY TRANSACTION_DATE
    Help will be appreciated.
    Regards,
    Hamayun

    Hi,
    you have to use the following syntax:
    SELECT link, label, value
    Example
    SELECT
    null link, TRANSACTION_dATE label,
    SUM(SALES) value ,
    fROM HTML_SALES_REPORT_View
    WHERE transaction_date between
    '01-DEC-2004' and '31-DEC-2004'
    GROUP BY TRANSACTION_DATE
    And to display your cost_of_sale data you have to add a second series like this:
    SELECT
    null link, TRANSACTION_dATE label,
    SUM(COST_OF_SALE) value
    fROM HTML_SALES_REPORT_View
    WHERE transaction_date between
    '01-DEC-2004' and '31-DEC-2004'
    GROUP BY TRANSACTION_DATE
    because you can't display two lines with just one query.
    I hope this will help.
    Regards, Jörg

  • SVG CHart error ORA-20001 with Stacked Bar Chart HTML DB 1.6.0.00.87

    Hi,
    during I put a How-To into execution (How To Create a Stacked Bar Chart) I'll get the following error code:
    SVG Chart error:ORA-20001:line_Chart error:ORA-20001:
    get_data error:ORA-20001:Parse error:ORA009
    (see http://www.oracle.com/technology/products/database/htmldb/howtos/index.html)
    This Situation occurs when i add a second series to the
    chart. The first series works fine. I've used the following SQL-Statement:
    select null l, sales_month, revenue from (select to_char(o.order_timestamp,'Mon YYYY') sales_month, sum(oi.quantity * oi.unit_price) revenue, to_date(to_char(o.order_timestamp,'Mon YYYY'),'Mon YYYY') sales_month_order from DEMO_PRODUCT_INFO p, DEMO_ORDER_ITEMS oi, DEMO_ORDERS o where o.order_timestamp <= (trunc(sysdate,'MON')-1)and o.order_timestamp > (trunc(sysdate-365,'MON'))and o.order_id = oi.order_id and oi.product_id = p.product_id and p.category = 'Audio' group by to_char(o.order_timestamp,'Mon YYYY') order by sales_month_order);
    Please help.
    Regards
    Detlev

    Well,
    I've just been struggling for a couple of hours with a cluster bar chart giving the same problem.
    The problem is definitely with "ORDER BY".
    I guess the graphing chart is taking the sql query as a string and then does some other manipulation on it which ends abnormally when you include the order by clause.
    I presume that if you embed the query in a
    SELECT * FROM (<actual query with order by>)
    it might mitigate the problem.
    Bye,
    Flavio

  • Plotting multiple series on an SVG Chart

    Hi,
    I am trying to plot multiple series on an SVG Chart. The moment I add a second series, I get the following error:
    "SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Parse error: ORA-0093".
    The graph fails to plot multiple series even for the same queries. The query I use is something like the following:
    select null "link", substr(name,7) "Label",value "Value"
    from <table>
    where
    <conditions>
    and name in (<sub-query>)
    order by name desc
    I have previously used an SVG chart to plot multiple series and have never had such problems. Any help would be greatly appreciated.
    I tried deleting and recreating the chart - doesn't help.
    Thanks,
    Aswath

    If you want to order the data do it via an in-line view:
    SELECT *
    FROM (
    select null "link", substr(name,7) "Label",value "Value"
    from <table>
    where
    <conditions>
    and name in (<sub-query>)
    order by name desc
    )

  • Chart Series Query SQL

    Can anybody explain why a Line chart comprising of more than one Chart Series does not work when building the SQL constructed in PL/SQL ?
    The second series is identical apart from the snapshot_ids.
    I need to construct like this due to another problem with database links.
    I''ve tried to trace this but nothing much is produced, maybe because of the SVG plug-in?
    DECLARE q varchar2(1000);
    BEGIN
    q:='SELECT Snap_Time, Snap_TimeXX, Value
    FROM (
    SELECT TO_CHAR(S2.SNAP_TIME,''D'') Snap_Time,
    TO_CHAR(S2.SNAP_TIME,''D'') Snap_TimeXX,
    SUM(S.value) Value
    FROM STATS$SYSSTAT S,
    STATS$SNAPSHOT S2
    WHERE S.SNAP_ID=S2.SNAP_ID
    AND S.SNAP_ID between 832 and 859
    AND S.INSTANCE_NUMBER=1
    AND S.NAME=''execute count''
    group by TO_CHAR(S2.SNAP_TIME,''D''))';
    RETURN q;
    END;

    Yes it was that problem, but I still have an issue:
    How do I set the Flash Chart to use a PL/SQL function in the first place ?
    When I try to enter:
    "return package.function;" in the Create Region Wizard, I get the following error:
    Failed to parse SQL query:
    return EXPERT.getFullListSQLByNC
    ORA-00900: invalid SQL statement
    Certain queries can only be executed when running your application, if your query appears syntactically correct, you can save your query without validation (see options below query source).

  • Dynamic Query in SVG Chart

    Hi,
    I have SVG Chart, Chart Type: Cluster Bar, Vertical. I have 4 Chart Series. First:
    SELECT null link, X.MESIC
    FROM [email protected]
    WHERE ..........
    I have given dynamic Chart Series Query:
    'SELECT null link, X.MESIC
    FROM '||adm||'.[email protected]
    WHERE .........."
    but Apex write error:
    1 error has occurred
    Failed to parse SQL query
    Please help as in what am i missing?

    You can either use a SQL query or a function returning SQL query as the source of your chart. Just adding some quotes to a query however doesn't make it dynamic nor a function. Try something like this:
    begin
    return 'select null, ename, sal from emp';
    end;
    Edit your existing chart source, and check "Save query without validation", so that APEX doesn't attempt to parse and validate the query when saving.
    Hope this helps,
    Marc

  • Unable to edit wizard created SVG chart query

    Hi,
    I have a problem with an SVG chart that one of the HTML DB wizards created.
    On the generated page the wizard created a selection list item named P30_SHOW.
    This item allows to choose a table column based on which an SVG pie chart is generated.
    The automatically generated chart query is:
    select 'f?p=106:26:&SESSION.:::RP,26:P26_CHART_FILTER,P26_VALUE:'||:P30_SHOW||','||"&P30_SHOW.",
    "&P30_SHOW.", count(*)
    from "TESTTABLE"
    group by 'f?p=106:26:&SESSION.:::RP,26:P26_CHART_FILTER,P26_VALUE:'||:P30_SHOW||','||"&P30_SHOW.",
    "&P30_SHOW."
    The page with selection list and chart worked fine at first.
    But then, when I edited the chart's width on the respective 'SVG Chart Attributes' tab and pressed
    the 'Apply Changes' button I got the following error:
    'Query cannot be parsed, please check the syntax of your query. (ORA-01741: illegal zero-length identifier)'
    I only changed the chart's width, I did not touch the chart's query at all.
    My theory is that HTML DB tries to validate the correctness of the chart's query.
    However, the query references a session variable (P30_SHOW) that is
    not defined in my development session. Consequently, the query is not valid in the
    development context and is refused by HTML DB.
    Now I have two questions:
    1. Is my analysis correct, or are there different reasons for the error I do encounter?
    2. How can I get around the problem? I'd like to use the automatically generated charts,
    but also want to be able to edit them.
    Thanks in advance for helpful comments.
    Regards Holger

    Scott,
    I imported the application using the import/install process. A new application ID was created but was not changed in the chart query. The link was generated by the application wizard. The chart query link is below:
    select 'f?p=103:2:&SESSION.:::RP,2:P2_CHART_FILTER,P2_VALUE:'||:P6_SHOW||','||"&P6_SHOW.", "&P6_SHOW.", count(*)
    from "O_DATA_COLLECTION_POINTS"
    group by 'f?p=103:2:&SESSION.:::RP,2:P2_CHART_FILTER,P2_VALUE:'||:P6_SHOW||','||"&P6_SHOW.", "&P6_SHOW."
    The new application id is 101. It is impossible to modify this query because of message:
    "1 error has occurred
    Query cannot be parsed, please check the syntax of your query. (ORA-01741: illegal zero-length identifier"
    This happens even if nothing is changed in the query but just the apply changes button is pressed.
    I had a similar problem with the breadcrumbs menu. The link was also pointing to the old application id 103 instead of the new application id 101. The way I got round that was to delete the breadcrumb template and create a new one. I then had to go through all the pages that referenced that and reset the breadcrumbs menu template in the region definition.
    Thanks Arjen

  • Chart Syntax errors

    All
    I am trying to setup a chart with the following SQL. Now these columns and tables are valid.
    SELECT NULL 1, CLIENTTRADERID, TOTALROUNDTRIP FROM GFMIS.FASTFIX_CUSTOMER_PERF
    ORDER BY CLIENTTRADERID
    And i have tried to following the examples on this site
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14377/bar_chart.htm#sthref145
    But i get an error when i enter next
    1 error has occurred
    Query cannot be parsed, please check the syntax of your query. (ORA-00923: FROM keyword not found where expected)

    Sorry so i figured out a simple chart
    SELECT null, clientacc, totalroundrip from fastfix_customer_perf
    But when i run it i get the generted graph but an error with
    SVG Chart error: ORA-20001: line_chart error: ORA_20001: get_data error: ORA 20001: Parse error: ORA 0090

  • SVG chart: length of axis-labels

    Apparently there is a limitation on the length of x- or y-axis labels for a SVG chart.
    Does anybody know how to display axis labels that are larger than 15 characters? Is there something that you can do with the CSS to increase the limit?

    Hi Jan,
    not sure you are on the same as I was... but found in other thread that on the series page there is maximum rows setting defaulting to 15.
    Hope that helps.
    ta
    alberto

  • SVG Charts - x-axis

    I'm a newbie.
    I've created a 2-series line chart (thanks to someone else's query on this forum, I found out about losing the 'order by' for multiple series!). I only have 2 'X' categories at present ('quarter1' and 'quarter2') but the chart defaults to squeezing them together at the left-hand side, leaving enough room to go up to about quarter 15, but I will only ever want 4.
    Anyone know how the spread the categories across the axis?
    Thanks

    assuming you're talking about the legend when you say, "but the chart defaults to squeezing them together at the left-hand side, leaving enough room to go up to about quarter 15", then know that this is a current limitation. i'll log the enhancement request in a bit (unless we already have that one), but consider unchecking the "Show Legend" box on your SVG Chart Attributes screen and just drawing your own for now. if you were asking about something else, please do feel free to elaborate.
    regards,
    raj

  • SVG Chart Setup

    Hi everybody,
    I have I think a simple question but I don't find the issue.
    I've created a SVG Chart with 3 Series Name Query. I need to see 3 Series based on Month. My month is on 2 digit : 10 for October, 11 for November...Etc...but for this case, on my graph I see 11 before 10 on the Axis area. Could you tell me where can I make an order on my query ? I tried to add order by on my 3 query but It doesn't work and my graph is grey.
    I'm sorry for my english.
    Olivier

    Thank you for your reply, find below my 3 queries
    Series Name Query
    1.
    select null link, d.month, sum(data.nbr) Delivered
    from online_data data, online_date d
    where data.date_events = d.date_events
    and data.kpi_id = 2
    group by d.month
    2.
    select null link, d.month, sum(data.nbr) Opened
    from online_data data, online_date d
    where data.date_events = d.date_events
    and data.kpi_id = 4
    group by d.month
    3.
    select null link, d.month, sum(data.nbr) Submited
    from online_data data, online_date d
    where data.date_events = d.date_events
    and data.kpi_id = 5
    group by d.month
    The field Month is a numeric field : 1 / 2 / 3...until 12 for month
    But my graph is like this
    http://img47.xooimage.com/files/e/7/3/chart-8b04ad.png
    You can see that my graph start with 11 on axis area and finish with 10...il would like to order by ASC
    Edited by: user1642453 on Dec 3, 2008 6:41 AM

  • SVG Charts

    Has anyone experienced the following. We have SVG graphs that displays hours by week for the last 15 weeks on a page. They displayed correctly in 10g, but after an upgrade to 11g, the weeks are out of order. We made sure that there is an order by clause in the query for the chart series. After doing this, the charts do not display. If you had this issue, what did you do to resolve it?
    Thanks
    Kevin

    John,
    That is correct. There were no order by clauses in the code to begin with. I inherited this application not to long ago. I tried your suggestion and get the same results. Maybe I am doing something wrong.
    This works with the dates being scattered as to order.
    select
    null link,
    ACTIVITY_MASTER.ACTIVITY_DATE Week,
    NVL(SUM(ACTIVITY.HOURS),0) Hours
    from
    ACTIVITY_MASTER,
    ACTIVITY
    where
    ACTIVITY_MASTER.NAME = :P510_NAME and
    ACTIVITY_MASTER.ID = ACTIVITY.ACTIVITY_MASTER_FK(+) and
    to_date(ACTIVITY_MASTER.ACTIVITY_DATE + 7) > to_date(sysdate - 98)
    group by ACTIVITY_MASTER.ACTIVITY_DATE
    This fails to draw a chart
    select
    null link,
    ACTIVITY_MASTER.ACTIVITY_DATE Week,
    NVL(SUM(ACTIVITY.HOURS),0) Hours
    from
    ACTIVITY_MASTER,
    ACTIVITY
    where
    ACTIVITY_MASTER.NAME = :P510_NAME and
    ACTIVITY_MASTER.ID = ACTIVITY.ACTIVITY_MASTER_FK(+) and
    to_date(ACTIVITY_MASTER.ACTIVITY_DATE + 7) > to_date(sysdate - 98)
    group by ACTIVITY_MASTER.ACTIVITY_DATE
    order by ACTIVITY_MASTER.ACTIVITY_DATE
    Kevin

  • SVG Chart: HELP!!!

    I am trying to create a pie chart like this one http://htmldb.oraclecorp.com/pls/htmldb/f?p=558:6:10625455385870944353:::::
    However, I am not sure what the code should be to make the chart change as the user selects different options from the drop down menu.
    I am also having trouble calculating an SVG chart that shows percentages. This is the code I am using, based on the tutorials:
    select null link, COMPETITORS_1 label, count(COMPETITORS_1) value
    from ORACLEDIRECTCAMPAIGNS
    And I get this error ORA-00937: not a single-group group function.
    Please help! Thanks!!!

    Try taking the semicolon ";" off the end of the SELECT statements.
    Mike

  • SVG Chart Query 'Length'

    Hi,
    I cause the following error to be raised when trying to save (Apply Changes) the query for an SVG chart:
    ORA-20001: set_attribute error: ORA-01461: can bind a LONG value only for insert into a LONG column
    The query just got 'longer' which prompts the question:
    Is there an upper limit to the length (number of characters) of the query ?
    Thanks for all and any help,
    sinclair

    I cannot answer your direct question, but if your SELECT statement is hard-coded and not generated from PL/SQL, I can offer a possible work around. You could create a database VIEW using your SELECT statement and query the view in your SVG chart.
    Mike

  • Dynamic SVG Chart Pie query

    Hi,
    I am trying to build a page that displays an SVG pie chart with the following query:
    SELECT '', "&P4_SHOW.", count(*)
    FROM "MY_TABLE"
    GROUP BY null, "&P4_SHOW."
    ORDER BY "&P4_SHOW."
    where P4_SHOW is a list of columns of the table 'MY_TABLE'.
    However, I get the following error when I try to save the chart definition:
    Query cannot be parsed, please check the syntax of your query. (ORA-01741: illegal zero-length identifier)
    Thanks for your help.

    you're unfortunately not going to be able to build your svg chart off that query in the current build of html db. to explain the issue real quickly, P4_SHOW doesn't have state while you're working in the development environment. because of that, your query's being run as something like...
    SELECT '', "", count(*)
    FROM "MY_TABLE"
    GROUP BY null, ""
    ORDER BY ""
    ...and you'll get that same "illegal zero-length identifier" in sqlplus if you try to run it there. we'll hopefully be able address this issue in a post-production release of the tool, but the best work-around for now would be for you to add multiple svg regions to your page. have one region per column of MY_TABLE and conditionally display the appropriate region based on P4_SHOW.
    hope this helps,
    raj

Maybe you are looking for

  • Grid Control performance tab not available when on the target home of ASM

    I noticed recently that the "Performance" tab/link is not available when you are using 10g Grid Control and you are on the home page of an ASM instance. Can this be explained?

  • Is any difference in oracle 11i and oracle 12 interfaces tables

    Dear All, Can someone tells me .. Is any difference in oracle 11i and oracle R12 interface tables?? My company want to upgrade Oracle 11i to EBS R12 PS Edited by: PS on Jul 13, 2012 3:07 PM

  • DELL I8k

    well after trying to figure out how to make my multimedia keys work I did it... here's what I did: when we hit a key and it doesn't show a keycode with xev, we can try #dmesg, at the end, will appear the key, then we have to set the keycode e.g. In a

  • Settings with Lexicon Omega soundcard??

    Hey AA fam!!! I've been trying to learn the producing craft for about a year and a half now.  I use FL Studio 8 (with a Lexicon Omega external soundcard) to make my music and I render my wav files into Adobe Audition 3.0 where I do my mixing and mast

  • Default collapse of menu structure in the ITS?

    Hi all. By default the different menu trees in the ITS web screens are expanded - does anyone know if it is possible to change this, so that some of them by default is collapsed? For example the Application Monitors would be nice to have collapsed in