EA1 - Code formatting "squishes" multiple queries together

If you have more than 1 query in an SQL Worksheet and you "Format" (CTRL-F7) the query, then it removes all blank lines and bunches all of the queries together.
I would have expected it to leave a blank line after each ";" so that the individual queries can be easily identified.

That's great news, thanks. I don't know if maybe I read your post a little wrong, but if I have this code:
1 select * from dual;
2
3 select sysdate from dual;
It currently formats as:
1 select * from dual;
2 select sysdate from dual;
And if I read your post correctly, the new option will format it as:
1
2 select * from dual;
3
4 select sysdate from dual;
Is that correct? I guess what I would really prefer is a blank line "between" any two (or more) SQL statements or PL/SQL blocks, but I'd be quite happy with a blank line "after" each block. Possibly the intended meaning was to have a blank line before each SQL statement, except for the first one. Is that correct?
Greg.

Similar Messages

  • How to pass an array or structure, in addition to a query, or multiple queries to the Report Builder as parameters

    Is there a way to pass an array or structure for example as parameters, in addition to a query, or multiple queries to the Report Builder in CF8? I believe this was recommended by users to be in CF8.

    BrianO,
    Although it's been a while, I thought I'd provide the code to do this for you. It works for me in CF8, and probably will in CF7.
    Here I create a structure called My, and provide that one parameter to my CFReportParam tag.
    <CFSet My = {
    Client = "Client Name",
    ReportDateFrom = DateFormat(ThisStartDate, DateMask),
    ReportDateTo = DateFormat(ThisEndDate, DateMask),
    PageHeaderImage = ImagePath & "\Logos\Page_Header.png",
    WatermarkImage = ImagePath & "\Logos\Watermark.png",
    GetBarSummary = GetBarSummary,
    GetPieSummary = GetPieSummary
    }>
    <CFReport Template="#ReportPath#\SpendSummary.cfr" Format="PDF" Query="GetSummary">
    <CFReportParam Name="My" Value="#My#">
    </CFReport>
    Inside the report itself, reference the given parameter as Param.My.PageHeaderImage for example. It can be referenced that way from any expression inside the report builder. You can even use the queries as the data source for charts (using the Data From a Query -> Query Builder -> Advanced) by entering "Param.My.GetPieSummary" where it says "Variable containing query object".
    HTH
    Swift

  • How to combine multiple queries!

    I know this is pretty basic, but I'm confused. Basically, I need to extract all data for a given entity from a highly normalized database. There are probably 2 dozen tables which contain data for a given entity that must be queried. However, rather than constructing one single query that merges all of the tables together to come up with one huge rowset/row format, how could I query each table seperately and combine the results of each query into one XML file? Can I create a clob with the first query and then append subsequent queries to that clob? Not sure what to do, and I can't find any good examples.
    Thanks in advance!

    Thanks, but I don't think that's quite what I'm looking for. In a nutshell, this is what I'm doing and this is the problem I'm having:
    1. I set a string equal to a query.
    2. I use xmlgen.getxml to fetch the xml into a clob.
    3. I parse the clob into a DOMDocument.
    The problem occurs with multiple queries. If I follow this same process for 5 different queries, then I have 5 instances of a DOMDocument, each holding a different queries XML. Now, can I put them together? I tried xmldom.makeNode for each DOMDocument, but the nodes are associated with the Document from which they came. I tried cloning each node to disassociate from it's Document, but that didn't seem to work. Even if it did, and I got all of the nodes together, I kept getting a java.lang.ClassCastException for trying xmldom.makeDocument for a node. I'm lost. How can I combine the results of multiple queries into a single DOMDocument instance? It was suggested that use xmlgen.getXML to get multiple queries into multiple CLOBS, then essentially combine the CLOBS together, and finally parse into a DOMDocument as a last step, but that doesn't really leverage DOMs capabilities. At this point, I may have to go down that road...

  • Code formatting procedures

    Hi,
    I'm writing some HTML code that includes multiple elements nested together, such as:
    <html><head></head><body>
    <b>
    <i>
    <p>The 2009 Spring Schedule</p>
    <table>
    <tr>
         <td>
              Cell 1
         </td>
    <td>
              Cell 2
         </td>
    </table>
    </body>
    </html>
    Of course, these lines are not correctly formatted. I know if I press Enter that the auto-indent function will activate with the appropriate menu settings, but how can I format and indent code "on demand"? Thanks in advance for your assistance.

    Probably the easiest way to give the code your preferred indenting is to set up a customised CodeSweeper using either the built in version or HTML Tidy. I think there's a supplied Tidy setting called Macromedia HTML Tidy Settings that would give you a good starting point.

  • Bursting a report with multiple queries

    Hi,
    I need to set-up bursting in BIP for a report with multiple queries. The output format is pdf and delivery is through e-mail. Since the queries need to be linked, I'm trying to do this using data template. I've set-up split and burst based on a field (store_id) from the first query which is used as a bind variable in the subsequent queries. So I'd ideally want the report to be split based on store_id. The report works fine if I use a parameter for store_id and view the output by store_id. When I try to schedule the report for bursting, it generates and e-mails the reports but only the last report appears to have correct data output while the others have only the output from the first query (and all other queries appear to return nothing in the report).
    Any suggestions on what could be the issue here? Thanks!
    Here is the data template for the report:
    <dataTemplate name="Report" description="Report" dataSourceRef="ReportDB">
    <dataQuery>
    <sqlStatement name="STORE_VENDOR">
    <![CDATA[SELECT STORE.STORE_ID Q1_STORE_ID, VENDOR.VENDOR_ID Q1_VENDOR_ID, VENDOR.VENDOR_DESC Q1_VENDOR_DESC, PERSON.NAME Q1_NAME
                   FROM STORE, SERVICE_TICKET, VENDOR, ROLE, ROLE_TYPE, PERSON, PERIOD PERIOD_FROM, PERIOD PERIOD_TO
                   WHERE (SERVICE_TICKET.SOURCE_ID = STORE.SOURCE_ID AND SERVICE_TICKET.STORE_ID = STORE.STORE_ID)
                   AND (SERVICE_TICKET.SOURCE_ID = VENDOR.SOURCE_ID AND SERVICE_TICKET.VENDOR_ID = VENDOR.VENDOR_ID)
                   AND (STORE.SOURCE_ID = ROLE.SOURCE_ID AND STORE.STORE_ID = ROLE.STORE_ID)
                   AND (ROLE.SOURCE_ID = ROLE_TYPE.SOURCE_ID AND ROLE.ROLE_TYPE_ID = ROLE_TYPE.TYPE_ID AND ROLE_TYPE.TYPE_DESC = 'PIC')
                   AND (ROLE.SOURCE_ID = PERSON.SOURCE_ID AND ROLE.PERSON_ID = PERSON.PERSON_ID)
                   AND SERVICE_TICKET.START_DATE BETWEEN PERIOD_FROM.START_DATE AND PERIOD_TO.END_DATE
                   AND PERIOD_FROM.PERIOD_DESC = 'Cal Week 1'
                   AND PERIOD_TO.PERIOD_DESC = 'Cal Week 4'
                   GROUP BY STORE.STORE_ID, VENDOR.VENDOR_ID, VENDOR.VENDOR_DESC, PERSON.NAME
                   ORDER BY STORE.STORE_ID]]>
    </sqlStatement>
    <sqlStatement name="WO">
    <![CDATA[SELECT STORE.STORE_ID Q3_STORE_ID, 'Nightly Cleaning' Q3_NIGHTLY_CLEANING, 'Nightly Cleaning' Q3_DESCRIPTION, SERVICE_TICKET.TICKET_ID Q3_TICKET_ID, TO_CHAR(SERVICE_TICKET.END_DATE, 'MM/DD/YYYY') Q3_END_DATE, 'Excellent' Q3_QUALITY_RATING_1, 'Satisfactory' Q3_QUALITY_RATING_2, 'Unsatisfactory' Q3_QUALITY_RATING_3
                   FROM SERVICE_TICKET, STORE, PERIOD PERIOD_FROM, PERIOD PERIOD_TO
                   WHERE (SERVICE_TICKET.SOURCE_ID = STORE.SOURCE_ID AND SERVICE_TICKET.STORE_ID = STORE.STORE_ID)
                   AND SERVICE_TICKET.START_DATE BETWEEN PERIOD_FROM.START_DATE AND PERIOD_TO.END_DATE
                   AND STORE.STORE_ID = :Q1_STORE_ID
                   AND PERIOD_FROM.PERIOD_DESC = 'Cal Week 1'
                   AND PERIOD_TO.PERIOD_DESC = 'Cal Week 4']]>
    </sqlStatement>
    <sqlStatement name="SERVC_TYPE_1">
    <![CDATA[SELECT STORE.STORE_ID Q4_STORE_ID, ZONE.ZONE_DESC Q4_ZONE_DESC, SERVICE_TICKET_LINE.SERVICE_COST Q4_SERVICE_COST, SERVICE_TICKET_LINE.TICKET_ID Q4_TICKET_ID, TO_CHAR(SERVICE_TICKET_LINE.WO_END_DATE, 'MM/DD/YYYY') Q4_WO_END_DATE, 'Excellent' Q4_QUALITY_RATING_1, 'Satisfactory' Q4_QUALITY_RATING_2, 'Unsatisfactory' Q4_QUALITY_RATING_3
                   FROM SERVICE_TICKET_LINE, SERVICE_TICKET, STORE, SERVICE_TYPE, ZONE, PERIOD PERIOD_FROM, PERIOD PERIOD_TO
                   WHERE (SERVICE_TICKET.SOURCE_ID = SERVICE_TICKET_LINE.SOURCE_ID AND SERVICE_TICKET.TICKET_ID = SERVICE_TICKET_LINE.TICKET_ID)
                   AND (SERVICE_TICKET.SOURCE_ID = STORE.SOURCE_ID AND SERVICE_TICKET.STORE_ID = STORE.STORE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = SERVICE_TYPE.SOURCE_ID AND SERVICE_TICKET_LINE.SERVICE_TYPE_ID = SERVICE_TYPE.TYPE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = ZONE.SOURCE_ID AND SERVICE_TICKET_LINE.ZONE_ID = ZONE.ZONE_ID)
                   AND SERVICE_TYPE.TYPE_DESC = 'ABC'
                   AND SERVICE_TICKET.START_DATE BETWEEN PERIOD_FROM.START_DATE AND PERIOD_TO.END_DATE
                   AND STORE.STORE_ID = :Q1_STORE_ID
                   AND PERIOD_FROM.PERIOD_DESC = 'Cal Week 1'
                   AND PERIOD_TO.PERIOD_DESC = 'Cal Week 4'
                   ORDER BY SERVICE_TICKET_LINE.SOURCE_ID, SERVICE_TICKET_LINE.TICKET_ID, SERVICE_TICKET_LINE.LINE_ID]]>
    </sqlStatement>
    <sqlStatement name="SERVC_TYPE_2">
    <![CDATA[SELECT STORE.STORE_ID Q5_STORE_ID, ZONE.ZONE_DESC Q5_ZONE_DESC, SERVICE_TICKET_LINE.SERVICE_COST Q5_SERVICE_COST, SERVICE_TICKET_LINE.TICKET_ID Q5_TICKET_ID, TO_CHAR(SERVICE_TICKET_LINE.WO_END_DATE, 'MM/DD/YYYY') Q5_WO_END_DATE, 'Excellent' Q5_QUALITY_RATING_1, 'Satisfactory' Q5_QUALITY_RATING_2, 'Unsatisfactory' Q5_QUALITY_RATING_3
                   FROM SERVICE_TICKET_LINE, SERVICE_TICKET, STORE, SERVICE_TYPE, ZONE, PERIOD PERIOD_FROM, PERIOD PERIOD_TO
                   WHERE (SERVICE_TICKET.SOURCE_ID = SERVICE_TICKET_LINE.SOURCE_ID AND SERVICE_TICKET.TICKET_ID = SERVICE_TICKET_LINE.TICKET_ID)
                   AND (SERVICE_TICKET.SOURCE_ID = STORE.SOURCE_ID AND SERVICE_TICKET.STORE_ID = STORE.STORE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = SERVICE_TYPE.SOURCE_ID AND SERVICE_TICKET_LINE.SERVICE_TYPE_ID = SERVICE_TYPE.TYPE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = ZONE.SOURCE_ID AND SERVICE_TICKET_LINE.ZONE_ID = ZONE.ZONE_ID)
                   AND SERVICE_TYPE.TYPE_DESC = 'XYZ'
                   AND SERVICE_TICKET.START_DATE BETWEEN PERIOD_FROM.START_DATE AND PERIOD_TO.END_DATE
                   AND STORE.STORE_ID = :Q1_STORE_ID
                   AND PERIOD_FROM.PERIOD_DESC = 'Cal Week 1'
                   AND PERIOD_TO.PERIOD_DESC = 'Cal Week 4'
                   ORDER BY SERVICE_TICKET_LINE.SOURCE_ID, SERVICE_TICKET_LINE.TICKET_ID, SERVICE_TICKET_LINE.LINE_ID]]>
    </sqlStatement>
    <sqlStatement name="SERVC_TYPE_3">
    <![CDATA[SELECT STORE.STORE_ID Q6_STORE_ID, ZONE.ZONE_DESC Q6_ZONE_DESC, 'Excellent' Q6_QUALITY_RATING_1, 'Satisfactory' Q6_QUALITY_RATING_2, 'Unsatisfactory' Q6_QUALITY_RATING_3, 'One' Q6_QTY_MISSING_1, 'Two' Q6_QTY_MISSING_2, '3 or More' Q6_QTY_MISSING_3
                   FROM SERVICE_TICKET_LINE, SERVICE_TICKET, STORE, SERVICE_TYPE, ZONE, PERIOD PERIOD_FROM, PERIOD PERIOD_TO
                   WHERE (SERVICE_TICKET.SOURCE_ID = SERVICE_TICKET_LINE.SOURCE_ID AND SERVICE_TICKET.TICKET_ID = SERVICE_TICKET_LINE.TICKET_ID)
                   AND (SERVICE_TICKET.SOURCE_ID = STORE.SOURCE_ID AND SERVICE_TICKET.STORE_ID = STORE.STORE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = SERVICE_TYPE.SOURCE_ID AND SERVICE_TICKET_LINE.SERVICE_TYPE_ID = SERVICE_TYPE.TYPE_ID)
                   AND (SERVICE_TICKET_LINE.SOURCE_ID = ZONE.SOURCE_ID AND SERVICE_TICKET_LINE.ZONE_ID = ZONE.ZONE_ID)
                   AND SERVICE_TYPE.TYPE_DESC = 'PQR'
                   AND SERVICE_TICKET.START_DATE BETWEEN PERIOD_FROM.START_DATE AND PERIOD_TO.END_DATE
                   AND STORE.STORE_ID = :Q1_STORE_ID
                   AND PERIOD_FROM.PERIOD_DESC = 'Cal Week 1'
                   AND PERIOD_TO.PERIOD_DESC = 'Cal Week 4'
                   ORDER BY SERVICE_TYPE.TYPE_ID]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
         <group name="G_STORE_VENDOR" source="STORE_VENDOR">
              <element name="Q1_STORE_ID" value="Q1_STORE_ID"/>
              <element name="Q1_VENDOR_ID" value="Q1_VENDOR_ID"/>
              <element name="Q1_VENDOR_DESC" value="Q1_VENDOR_DESC"/>
              <element name="Q1_NAME" value="Q1_NAME"/>
         </group>     
         <group name="G_WO" source="WO">
              <element name="Q3_NIGHTLY_CLEANING" value="Q3_NIGHTLY_CLEANING"/>
              <element name="Q3_DESCRIPTION" value="Q3_DESCRIPTION"/>
              <element name="Q3_TICKET_ID" value="Q3_TICKET_ID"/>
              <element name="Q3_END_DATE" value="Q3_END_DATE"/>
              <element name="Q3_QUALITY_RATING_1" value="Q3_QUALITY_RATING_1"/>
              <element name="Q3_QUALITY_RATING_2" value="Q3_QUALITY_RATING_2"/>
              <element name="Q3_QUALITY_RATING_3" value="Q3_QUALITY_RATING_3"/>
         </group>     
         <group name="G_SERVC_TYPE_1" source="SERVC_TYPE_1">
              <element name="Q4_ZONE_DESC" value="Q4_ZONE_DESC"/>
              <element name="Q4_SERVICE_COST" value="Q4_SERVICE_COST"/>
              <element name="Q4_TICKET_ID" value="Q4_TICKET_ID"/>
              <element name="Q4_WO_END_DATE" value="Q4_WO_END_DATE"/>
              <element name="Q4_QUALITY_RATING_1" value="Q4_QUALITY_RATING_1"/>
              <element name="Q4_QUALITY_RATING_2" value="Q4_QUALITY_RATING_2"/>
              <element name="Q4_QUALITY_RATING_3" value="Q4_QUALITY_RATING_3"/>
         </group>     
         <group name="G_SERVC_TYPE_2" source="SERVC_TYPE_2">
              <element name="Q5_ZONE_DESC" value="Q5_ZONE_DESC"/>
              <element name="Q5_SERVICE_COST" value="Q5_SERVICE_COST"/>
              <element name="Q5_TICKET_ID" value="Q5_TICKET_ID"/>
              <element name="Q5_WO_END_DATE" value="Q5_WO_END_DATE"/>
              <element name="Q5_QUALITY_RATING_1" value="Q5_QUALITY_RATING_1"/>
              <element name="Q5_QUALITY_RATING_2" value="Q5_QUALITY_RATING_2"/>
              <element name="Q5_QUALITY_RATING_3" value="Q5_QUALITY_RATING_3"/>
         </group>     
         <group name="G_SERVC_TYPE_3" source="SERVC_TYPE_3">
              <element name="Q6_ZONE_DESC" value="Q6_ZONE_DESC"/>
              <element name="Q6_QUALITY_RATING_1" value="Q6_QUALITY_RATING_1"/>
              <element name="Q6_QUALITY_RATING_2" value="Q6_QUALITY_RATING_2"/>
              <element name="Q6_QUALITY_RATING_3" value="Q6_QUALITY_RATING_3"/>
              <element name="Q6_QTY_MISSING_1" value="Q6_QTY_MISSING_1"/>
              <element name="Q6_QTY_MISSING_2" value="Q6_QTY_MISSING_2"/>
              <element name="Q6_QTY_MISSING_3" value="Q6_QTY_MISSING_3"/>
         </group>
    </dataStructure>
    </dataTemplate>

    Hello user6428199,
    When you use ":Q1_STORE_ID" in your queries, BI Publisher looks for a report parameter named Q1_STORE_ID. Change all your report queries to get data for all the store_id's available. As you are bursting the report using the store_id as the bursting key, BI Publisher will split the report based on the stored_id and delivers content based on it. No matter how many queries you may have, BI Publisher will loop through all the store_id's available and all the queries will return data for that particular id in a report.
    Thanks,
    Machaan

  • Multiple queries with 1 connection

    Can I execute multiple queries with one connection?
    //Example -
    <%
    String firstconn;
    Class.forName("org.gjt.mm.mysql.Driver");
    // create connection string
    firstconn = "jdbc:mysql://localhost/profile?user=mark&password=mstringham";
    // pass database parameters to JDBC driver
    Connection aConn = DriverManager.getConnection(firstconn);
    // query statement
    Statement firstSQLStatement = aConn.createStatement();
    String firstquery = "UPDATE auth_users SET last_log='" + rightnow + "'WHERE name='" + username + "' ";
    // get result code
    int firstSQLStatus = firstSQLStatement.executeUpdate(firstquery);
    // close connection
    firstSQLStatement.close();
    %>     
    Now, instead of building a new connection for each query, can I use the same connection info for another query?
    if so - how do you do this?
    thanks for any help.
    Mark

    Create multiple statement objects from your connection. It's a good idea to close these in a finally block after you're done with them
    Connection conn = null;
    Statement stmt1 = null;
    Statement stmt2 = null;
    try {
        conn = DriverManager.getConnection();
        stmt1 = conn.createStatement();
        // some sql here
        stmt2 = conn.createStatement();
        // some more sql here
    } finally {
        if ( stmt1 != null ) stmt1.close();
        if ( stmt2 != null ) stmt2.close();

  • How do I display data from Multiple Queries in a spreadsheet?

    I am running Oracle forms 10g as a kicker to export a report (rdf 10.1.2.0.2) to PDF or Excel Spreadsheet - User's choice.
    Doesn't matter if I have desformat = SPREADSHEET, DELIMITEDDATA, or DELIMITED; I still get only the first query displayed when I run in spreadsheet format.
    How do I display data from Multiple Queries in a spreadsheet? Is this possible?
    Thanks in advance!

    Hi adam,
    did you search the forum? You will find a lot of threads handling the problem of Excel file access.
    In short: you need to use ActiveX (the RGT also uses ActiveX under the hood)!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Report with Multiple queries too slow in BI Publisher 11g

    Hi, I have a report in 11g where i need to create multiple queries to show them in report. I tried to combine everything in one query, but i found that the query is too huge and hard to understand and maintain. I created 3 data sets and linked them together. In SQL dev, the main query is returning about 315 records and first detail query returns less than 100 records and second detail query is returning one record which is BLOB. Each query returns data within a couple of seconds from SQL Developer. The entire report from BI Publisher should be just 21 page PDF output. Did anyone face performance issues while running reports with multiple queries in 11g? I ran reports that have single query which returned 10K pages PDF and never had an issue while everthing is in one query. This is the first time Iam attempting to create multiple queries. Can someone help me understand what i might be doing wrong or missing here. Thank you.

    Isn't there a way for you to do this via a Package/Procedure versus having multiple queries?
    Per the BI Publisher guide,
    Following are recommended guidelines for building data models:
    Reduce the number of data sets or queries in your data model as much as possible. In general, the fewer data sets and queries you have, the faster your data model will run. While multiquery data models are often easier to understand, single-query data models tend to execute more quickly. It is important to understand that in parent-child queries, for every parent, the child query is executed.
    You should only use multiquery data models in the following scenarios:
    To perform functions that the query type, such as a SQL query, does not support directly.
    To support complex views (for example, distributed queries or GROUP BY queries).
    To simulate a view when you do not have or want to use a view.
    Thanks,
    Bipuser

  • Appending results returned by multiple queries into 1 row?

    I have multiple select queries in a procedure. Each query processes different tables and returns one or two columns that need to be inserted to a staging table.
    The results of these queries should be appended to one row.
    select col1, col2 from table1 where......
    select col3, col4 from table2 where....
    Now the results of the above queries col1,col2, col3, col4 should be inserted to a temp table into one row as 4 columns.
    How would I achieve this?

    Thanks very much for everyone's help.
    I am little confused. How would this fit in my queries. Please help me figure out how should I put these queries together.
    SELECT
    o.outageid,
    et.Billlabor
    FROM
    emp_time et,
    job j,
    rate r,
    vend v,
    outage o,
    outage_emp oe
    where
    j.jobid = et.jobid
    and et.rateid = r.rateid
    and r.vendid = v.vendid
    and et.outage_empid = oe.outage_empid
    and oe.outageid = o.outageid
    group by
    j.outageid
    select
    o.outageid,
    count(e.empid) as empcount,
    decode(o.outage_hrs, 0, 1, 0),
    from
    employee e,
    outage_emp oe,
    outage o,
    outage_vend v
    WHERE
    e.empid = oe.outage_empid
    and oe.outageid = o.outageid
    and o.outageid = v.outageid
    group by
    o.outageid
    select
    o.outageid,
    et.INTLABOR
    from
    emp_time et,
    outage_emp oe,
    outage o,
    job j,
    rate r,
    vend v
    where
    j.jobid = et.jobid
    and et.rateid = r.rateid
    and r.vendid = v.vendid
    and et.outage_emp_id = oe.outage_empid
    and oe.outageid = o.outageid
    group by o.outageid

  • Multiple Queries Slower

    I am having an issue where the performance slows down drastically if i have multiple queries ( Running around 4 queries ) running at the same time. The performance is good when i have only one query running.
    When i run the queries individually one after an another it takes about 10 secs for each of them to return.
    When i run the queries together then it take more than a couple of minutes for all of them to return.
    Any tips suggestions for any changes in oracle parameters to improve performance, when multiple queries are running at the same time. Another thing, the CPU is not being used to its full capacity. The CPU is somewhere in the 10 to 20% usage.
    Thanks,
    Jay.

    Jayachandra, I think there is a good chance you need to tune one or more of the queries in question as they are probably running poorly using more resources than necessary. Individually they seem OK because total time is short but when combined the poor resource utilization is showing up.
    If running CBO
    run an explain plan on each query.
    update the statistics
    re-run the explain plans and look for differences
    If different retime the queries, you may already be done
    If not different or you spot something that looks wrong such as a full table scan where you think an index should be used then follow standard tuning practice to see what you can get.
    Then once you know the SQL are as good as they are going to get look at the buffer pool to make sure it is just not too small. Many DBA just immediately make the buffer pool bigger if query performance is not good enough, however, this is usually not the correct solution and I believe you should never over-allocate resources because you might need them somewhere else.
    HTH -- Mark D Powell --

  • Web Page with link to Multiple Queries

    Hi All,
    I have a webpage in EP iView which has ahref links to multiple queries in a table. When user clicks on a link the corresponsding query should open. I can do this giving HREF links to text for Query URL. In Development System If I do the URL is generated from WAS of Development system. So When I transport to EP production and When I click in the link it is opening the query in development system. So I need to change the URL to link to PRoduction query before transport.
    Is there any way of doing this by providing a technical name of the query.
    Thanks in Advance
    Best Regards
    PV

    the URL generated for each system for each query is specific...
    transporting the same URL to different system will not solve ur issue.
    for e.g. open a query x in Dev. system
    execute it in Web
    it will generate a URL , this url is sppecfic to query x for Dev. system
    even if u transport the url link to Prod system it will always open the query in Dev.......
    try to open the query in Prod thru query designer
    execute it in web
    copy the url and paste it in ur code in PRod system
    nwo use the link
    it will execute ur query in prod....
    pls refer to sekhars description, it talks about same....

  • Force Multiple Queries / "Stitching" in Union

    Is there any way to force OBIEE to execute several queries in parallel when combining several similar queries?
    For example, I have a very large fact table with monthly snapshot data. I would rather use combine with similar request option to send similar queries for each month and have OBIEE "stitch" them together. I have seen cases where multiple queries are sent do the database and other cases where one query is generated and sent to the database. Is there a way to force multiple queries to be sent?
    Ideally, what I'd like to be able to do is use my time dimension to send always force a query for each month (which is partitioned in the database).
    Edited by: user644029 on May 14, 2009 1:41 PM

    You don't need to do that because it's the work of the database.
    When you send a sql query to the database, the query is transformed to generate the best plan and it can be automatically parralelized (As you have partitions, I assume it's the case)
    To know more see the paragraph on the optimizer of the database.
    http://gerardnico.com/wiki/database/oracle/query_optimizer/start
    What about if the database have an aggregate/summary table ? You will send 10 query that can be done only in one.
    If you have a performance problem, try to decrease your selectivity by building an aggregate table and use the query rewrite. It's always the best solution.
    Obiee offer the aggregate persistence wizzard if you can't access to the database :
    http://knowledge.ciber.nl/weblog/?p=149
    Success
    Nico

  • Multiple Queries with JDBC

    Hello. I'm somewhat new to all of this, so forgive me if this is something really basic.
    I'm developing an application which must interact with my MySQL database pretty frequently, however it seems to me that I am unable to, essentially, have multiple ResultSets open at a given time, which as a result prevents me from making multiple queries simultaneously. The essential problem is...
    ResultSet rs = statement.execute( "SELECT * FROM table");
    if (rs.next())
        ResultSet srs = statement.execute( "SELECT * FROM table2");
        rs.getInt("id");
    }...Yields a NullPointerException on line 5. If I am correct in my understanding, this is due to a ResultSet closing when it's statement is used a second time.
    My best guess to solving this problem is to create a pool of statement objects (which would essentially be a number of connections to the DB), and then use the first open statement object (or a newly created one) to run a particular query... however this seems rather sloppy. Not to mention that, offhand, I'm not even sure if I can have multiple connections open to the DB at the same time. Is there any better way to run multiple queries at the same time with JDBC?
    Thanks in advance for any help.
    -Jess

    That's actually what I thought at first as well... given that a NPE is generally thrown along the lines of null.getMethod() however there is no null anywhere in my code, only a closed ResultSet... which returns an NPE on using a get method. For example:
    //our import
    import java.util.*;
    import java.sql.*;
    import javax.swing.JComponent.*;
    public class Server
            public static void main( String args[] ) throws Exception
                    try
                            //register driver
                            Class.forName("com.mysql.jdbc.Driver");
                            //location of database (including string to register unicode as utf-8
                            String dbUrl = "jdbc:mysql://localhost:1111/db_name?requireSSL=false&useUnicode=true&characterEncoding=UTF-8";
                            //create connection object
                            Connection mysqlConnection = DriverManager.getConnection(dbUrl,"username","password");
                            //autocommit
                            mysqlConnection.setAutoCommit(true);
                            //log information
                            System.out.println("Connected. Connection=" + mysqlConnection);
                            Statement mysqlStatement = mysqlConnection.createStatement();
                            mysqlStatement.execute("SELECT * FROM mud_index_players");
                            ResultSet rs = mysqlStatement.getResultSet();
                            if (rs.next())
                                    System.out.prinlnt("getInt() is " + rs.getInt("id"));
                                    mysqlStatement.execute("SELECT * FROM mud_table_stats");
                                    ResultSet rs2 = mysqlStatement.getResultSet();
                                    System.out.println("Now it's " + rs.getInt("id"));
                    catch ( ClassNotFoundException cnfe )
                            cnfe.printStackTrace();
                    catch ( Exception e )
                            e.printStackTrace();
    }Yields:
    Connected. Connection=com.mysql.jdbc.Connection@329f3d
    getInt() is 1
    java.lang.NullPointerException
            at com.mysql.jdbc.ResultSet.buildIndexMapping(ResultSet.java:575)
            at com.mysql.jdbc.ResultSet.findColumn(ResultSet.java:930)
            at com.mysql.jdbc.ResultSet.getInt(ResultSet.java:2507)
            at Server.main(Server.java:34)Where line 34 in Server.main is System.out.println("Now it's " + rs.getInt("id"));Thanks again for all your help!
    -Jess
    Message was edited by:
    [email protected]
    (Was missing some code tags)

  • Insert multiple queries using either WORKBOOK, WAD or Report Designer

    Hello Guys
    I have a task where I have to insert multiple queries into one single page/sheet & print it out later. For this I can use any one of the tools available: Workbook, WAD or Report Designer.
    1. Workbook - Here I have read that we can use a call back MACRO and some other features.
    2. WAD - Here I have read that we can use: 1. Multiple data providers (one for each query) & 2. Multiple web analysis items linking to each individual data provider.
    3. Report Designer - Since this is the actual 'formatting' tool provided by SAP, I am assuming that this is the right environment to achieve my task.
    My question: Which one out of the above 3 tools is actually feasible? Can someone explain me in detail about how to go about this task. Any 'How to..' docs from SAP would also be most helpful.
    Regards.

    Hi Kashyap,
    I have done similar requirement in Workbook,it has better features and more user friendly than others......it depends on the individual...but U cna meet your requirement thru Workbooks...
    If the Req are complicated then we go for MAcros ,where in we can satify the critical req,say some sort of Dynamic reqs.
    There are lot of threads on Multiple queries in one Workbook....Just search in SDN and u will get lot of Threads on this topic.
    Come bak if u have any other doubts.
    Rgds
    SVU123

  • Link multiple incidents together and un-link

    Hello Experts,
    my client using solution manager 7.0 sp14 (Service Desk).
    Now my requirement is need to be able to link multiple incidents together.
    Any suggession in that to get an option u201CLink to another Incidentu201D from an Incident in any status. From this you can search for master incident, and link the two. Some times it is probably safer not to stop the clock (as the link maybe incorrect), but this action should set a flag on the child ticket so that SLA reporting can exclude all child tickets.
    If the master ticket is resolved, then all child tickets should be resolved also (with the same reason).
    A linked ticket will then have an option to un-link if it is found to not be a correct link (and this will un-set the child ticket flag).
    Regards,
    Babu

    hi,
    in ITIL this is called a "problem".  In standard SOLMAN, SAP reserved a specific subject code for this ME01 : Problem message but this solution is not supporting the functionality you need.
    You need to develop an action that allows you to link and an action that allows you to unlink a support message to a problem message.
    The coding of these action should be like the one used to authorize change request, this action is popping up a list of active project, instead of this, this  can be programmed to look for active "problem messages"
    For the problem message you can either create a specific document type (different from the support message) or further enhance the SAP functionality by using a support message with this "problem message" subject".
    My SOLMAN consultant confirmed me this has been developed for some of his customers.
    Before starting this development I would rather ask SAP if there is any further development of this ITIL functionality.
    br Xavier

Maybe you are looking for

  • UME: EP and CE integration

    Hello! In landscape where CE is used for new applications and iViews is necessary to integrate users database of EP and CE (for SSO, autorizations, user profile access). help.sap.com suggest to choise one of two ways: 1. Store all users in LDAP. Inte

  • How do I get hold of apple support if deaf?

    Hi, I have an old Apple ID I have forgotten both password and security answers. I have tried to get through to apple support but as I use a textphone, I want to either call them myself or for apple to at least let me put in the telephone number with

  • Firefox is opening multiple windows without my request. The only way I can stop it is by rebooting my computer.

    Fairly often when I open Firefox, it continues to open multiple windows (hundreds of them) without my request. The only way I can stop it is to reboot the computer. == This happened == A few times a week == Several weeks ago

  • Is an Airport base station necessary for internet?

    I have a cable modem and Airport Express. Can I just connect the cable modem to the Airport Express and get on the internet? Or do I have to have the Airport Extreme Base station to do that? Powerbook G4   Mac OS X (10.4.7)  

  • IsInitialRender and isPostback doesn't work properly.

    Hi,i have a problem and i wonder why it happens... After every request,constructor of backing bean is executed again.In the constructor,i have a block that i want it to be executed only at instantiation...I tried to resolve that with isInitialRender