Using results of Feedback

I want to use the value feedback provides insert into a table
I've got a series of database healthcheck SQL scripts that I want to produce summary data from. Currently the scripts run in SQL*PLus and spool out results that have to be manually checked. Each health check query produces different results sets, e.g.
PROMPT Invoice Check 4-27: incomplete invoices
SELECT col1, col2, col3, col4
FROM  ...I need the results of the query spooled out, but I also want to summarise the results in a generic table. Feedback is set on, but I want to load its value into a table:
CREATE TABLE health_check-summary
  (check_desc    VARCHAR2(20)
  ,rows_in_error NUMBER (5)
  ,time_stamp    DATE DEFAULT SYSDATE
  )Then after each check query I'd run the following:
INSERT INTO health_check_summary
  (check_desc
  ,rows_in_error
VALUES
  ('Invoice Check 4-27'
  ,<Value from sql*plus feedback>
  )Effecitvely I want the SQL equivalent of PL/SQL's SQL%ROWCOUNT
I have hundreds of check queries and want a quick way of summarising the data, by adding in a generic insert line after each query. Is this possible, or do I need a complete re-write?
dw2@DWDEVA> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production

At least for error capturing (ORA, PLS and SP2 errors) you can SET Errorlogging On.
Unfortunately no feedback messages are logged ...

Similar Messages

  • How to use result obtained from clientContext.executeQueryAsync

    i have to use result obtained from clientContext.executeQueryAsync for condition in code.But, now i face problem that clientContext.executeQueryAsync result not obtained when needed.

    Hi,
    I suggest you provide more information about your requirement(your code) or error messages for further research.
    If you want to get list items using JavaScript Client Object Model(JSOM), the following articles for your reference:
    How to: Retrieve List Items Using JavaScript
    https://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    Working with the ECMAScript Client Object Model (JSOM) in SharePoint 2010–Part 3
    http://blogs.msdn.com/b/sharepointdev/archive/2011/07/19/working-with-the-ecmascript-client-object-model-jsom-in-sharepoint-2010-part-3-nikhil-sachdeva.aspx
    We can also use REST API to achieve it.
    SharePoint 2013 – CRUD on List Items Using REST Services & jQuery
    http://www.plusconsulting.com/blog/2013/05/crud-on-list-items-using-rest-services-jquery/
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • How to use Results from Another Query for SAP BW universes

    Hi Everyone,
    I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
    Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding  Sales doc no in first data provider.
    I want to place all these fileds into a single report like as shown.
    (Datarpovider1)                (Datarpovider1)                    (Datarpovider2)
    *Sales Doc No*               Orderqty                           BillQty
    Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
    I tried it but it was giving the follwing error:
    A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
    How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
    All this I am doing in Webi Rich Client.
    Appreciate your help
    Thanks &in Advance
    Kiran Saka

    Hi Kiran,
    I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
    Regards,
    Neeraj

  • Can we use Result from another query in Webi using Bex uery universe?

    Hi,
    Can we use Result from another query filter option in Webi to create a report using a Bex Query universe?
    I need to create a report using two universes, one is Bex Query Universe and the other is Orcle universe. I have two queries, one is using Oracle universe; the other using Bex Query universe. I need to pass the Oracle data from the Oracle query to the Bex Query query to get the matched data from SAP Bex query.
    I used Result from another query in the query filter panel for the query using Bex query universe. But I got an error saying that 'A filter contains a wrong value. you cannot run this query. (Error: WIS 00007). The data used in the filter on both sides are the same. they are char.
    I have tested by using two queries from the same Bex query universe to see if the Result from another query filter option works. And I got the same error.
    Has anyone run into the same issue and if this is possible and what should be the solution?
    Thanks in advance!
    Edited by: BO_Haiyan on Oct 6, 2010 3:47 PM

    In that situation:
    Create two queries : Oracle and BW query.
    @ Report:
    As you have to see result set from both the Dataproviders, correct? To achieve thise one must have common dimension objects to merge them at report and use Objects those are coming from both queries to use them in single Table/Report.
    Unless you don't use Merge Dimensions, you don't get a chane to use both queries objects in single Table/Report. (It will give tooltip saying: You can't drop here -- Incompatable Objects)
    In case, if you don't have common dimensions, change object definitions to Detail objects, for those required.
    Hope it helps you.
    Thank You!!

  • How to use result of message mapping as source to another message mapping

    Hi.
    I need to map iDoc to MT_A (MessageType) using MessageMapping.
    And then using the result of the above mapping, map MT_A to MT_B using JavaMapping.
    Can I do this all at once in my scenario or what is the best way to do this?
    Regards,
    Hjortur

    Hi,
    chk this:
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Ur flow will be something like this under operation mapping :
    1) Graphical mapping(  iDoc to MT_A)
    2) Java mappinmg.(MT_A to MT_B)
    Thanks
    Amit

  • Forms hangs when using result of an OUT parameter to do an Insert

    Hello,
    I think I have slightly odd problem here... I'm currently migrating a Forms 6i client-server application to Forms 10g904. I found that one of my Forms was hanging i.e. screen goes blank, 'activity' bar on the bottom right just keeps whirring away indefinitely.
    After much investigation, the hanging-form problem occurs in the following scenario:
    - In a routine in a Forms pll library, a variable is declared e.g. w_capture_output
    - In the first round of a loop, this variable is passed into a database stored proc, which has an OUT parameter to return a result e.g. SOME_PROC(w_some_input, w_capture_output);
    - w_capture_output comes back with a value e.g. 'P'
    - This is then used in an Insert e.g. INSERT INTO some_table (a, b) VALUES (1, w_capture_output)
    - The next round of the loop; the variable is passed in again into the proc. It still holds the value from the last round e.g. 'P'
    - In this round, the logic of the proc is such that the OUT argument is set to null i.e. when the proc has finished, w_capture_output is now null. This can be confirmed with IF w_capture_output IS NULL THEN display_some_message. The code is still all running fine.
    - But now when I run INSERT INTO some_table (a, b) VALUES (2, w_capture_output) - the form hangs.
    I can, however, work around this and prevent the form from hanging simply by ensuring at the start of each round of the loop that I explicitly set w_capture_output back to null before passing it into the proc that sets it. Or alternatively, after it comes back from the proc, the following also prevents the hanging problem:
    w_capture_output := NVL(w_capture_output,NULL);
    To summarise - if I pass a variable into a proc taking an OUT parameter, AND that variable is not null going into the proc, AND the proc sets it to null AND I then try to use that variable in an Insert statement - the form hangs. Something horrible is happening to the variable inside the procedure, I think.
    Now, I can kind of see why passing a non-null variable into an OUT argument might cause problems (although only if you then try to set it to null - not if you set it to another, non-null value). However, exactly the same code works fine under Forms 6i, using the same database instance and proc. And if Oracle have changed the rules, shouldn't it throw an error, rather than just hanging? I'd prefer not to have to use the workaround, as this is a very large app and I don't know yet how many places would need it.
    Has anyone else come across this issue..? (Database is 9.0.2. btw, Forms are 10g904)
    Cheers,
    James

    Try
    v_log_name := 'Fnd_File.LOG_OUT';Hey, what r u doing with above code?
    You are assigning string value to a variable?
    The compilation won't give any error.
    And OP thinks it's solution!!!!!!!!!!!
    LOL

  • How to use results of ejbfind methods when it is a collection ?

    How to use ejbFind methods result , when it is a collection ?
    Hi thank you for reading my post.
    EJB find methods return a collection , i want to know how i can use that collection ?
    should i use Collection.toArray() and then use that array by casting it?
    what is DTOs and ho i can use them in this case?
    How i can use the returned collection is a swing application as it is a colection of ejbs ?
    Should i Cast it back to ejb class which it comes from or some other way ?
    for example converting it to an array of DTO (in session bean) and return it to swing application ?
    or there are some other ways ?
    Thank you

    Hi
    pleas , some one answer
    Collection collection = <home-interface>.<finderMethod>;
    Iterator iter = collection.iterator();
    while (iter.hasNext()) {
    <remote-interface> entityEJB = (<remote-interface>) iter.next();
    } what if i do the above job in session bean and convert the result to a DTO and pass the dto back ?
    thank you

  • How to use Result Search (TREX) Impagination in customize Layout Set

    Hello Experts
    We are using a customise Layout Set get from "NewsBrowser" duplication..
    At the moment we are using it to show the first three documents of a km folder, but that folder contains a lot of documents and in the bottom of the iview are showed many link for the other files (es. "<u>1-3</u> <u>4-7</u> <u>8-11</u> ... etc etc").
    We would like to use the same impagination used in the result search list, when you do a search with the TREX the link for the other impagination does not show all the result, but in the bottom of the iview I can see a link as "<u>1-10</u> <u>Continue</u>" ...
    I can I set the same in my customised Layout Set??
    Could you help me??
    Best Regards

    Hi Maurizio Ledda 
    For these u need to change UI Search
    system admin. -- system config --- knowledge mangement content managementuser interface -- show advanced options -- search -- search options set --
    UI search -- Un check SHOW NO. OF HITS  option -- save
    and log off and login and search documents u will get like this "1-10 More"
    Regards
    Krishna.

  • Formula using results of 2 reports

    Hello,
    New to Crystal Reports... I have 2 existing reports, and I want to create a report that calculates a metric, using the results of the 2 reports, linked by the grouping that I used in each.
    e.g.
    - Report A from table 1 counts all shipments by date, grouped by month
    - Report B from table 2 sums hours of network outage, grouped by month
    I want to calculate (sum of hours outage)/(running total of shipments), and display graphically by month
    Working with subreports, I have only been able to pass one single value to the main report, not all values by month to do the math
    I would imagine this is a pretty simple task, I have done this using other tools, but have not found a simple way in Crystal Reports yet.  Any help would be appreciated
    Thanks,

    Asha,
    Thanks, this is helpful.  But when I create the shared variables, I am still only passing a single value to the main report (the most recent value of the variable).  Each subreport contains formulas to calculate values I need and lists them against a date/time.  e.g.
    Subreport A calcuates outage hours, and shows what datetime the outage started:
    Hrs   DateTime
    Subreport B shows total shipments by datetime:
    CountShipments      DateTime
    Hrs and CountShipments are the shared variables. 
    I want to divide Sum(Hrs)/(CountShipments) and graph for each month.
    Any method of doing this that you are familiar with?

  • Using result of a Calculated Keyfigure as input for a Virtual Keyfigure

    Hi experts,
    is it possible, to use the result of a calculated keyfigure of a query for the input of a virtual keyfigure und use the virtual keyfigure within the same query?
    My problem: depending on drilldown, I have a different percentage within the calculated keyfigure. And depending on that value, I would like to read a score out of a DSO and fill a virtual keyfigure with that, and show the score in the same query. In my opionion, the only way to calculate the score is on the fly, depending on the navigation step I do. Maybe there is another approach that I do not know.
    I was glad for any ideas. Thank you in advance!
    Regards
    F.L.

    Hi,
    Sorry but a calculated key figure result cannot be used in a virtual key figure calculation. The reason purely being that the CKF calculations happen after the Virtual KF/ Char calculations (through BAdI or CMOD).
    The only solution i see here is that you will need to do the calculations in the VKF logic itself. Please do remember that VKF calculations and population happens for each record bein fetched into OLAP from the Infoprovider for the Filters put into the report.
    Hope it helps.
    Thanks,
    Abhishek.

  • Spatial Query that uses Result of another Spatial Query

    Hi all,
    I am using the SDO_DIFFERENCE Operator to return the difference between a query window and an intersection geometry. This is fine and i get an object back that is cast to a STRUCT using the SDO API. I want then to use this (returned)object in another SQL query that uses the SDO_RELATE Operator. The problem is that i dont know what type it needs to be so that the SDO_RELATE operator will accept it as a valid argument. Has anyone done this before or seen anything like it? Any help will be very much appreciated.
    Keith.

    Thanks for your help,
    I have done the following steps, but i still dont understand why it doesnt work.
    CREATE TABLE val_results (sdo_rowid ROWID, result varchar2(1000));
    CALL SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT('SHAPES','SHAPE','VAL_RESULTS');
    SELECT * FROM val_results;
    1 null     Rows Processed <3>
    2 AAARDDAAEAAAAA+AAA     13348 [Element <1>] [Ring <1>]
    3 AAARDDAAEAAAAA+AAB     13367 [Element <1>] [Ring <1>]
    SELECT shape_id,SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(c.shape, 0.005)
    FROM shapes c;
    3     TRUE
    2     13348 [Element <1>] [Ring <1>]
    1     13367 [Element <1>] [Ring <1>]
    If my rectangle and polygon is still invalid, can someone tell me why they are invalid. And how can i make them valid?
    Thanks.
    UPDATE:
    I have solved Polygon issue.
    In Spatial Developer's Guide it says:
    Simple polygon whose vertices are connected by straight line
    segments. You must specify a point for each vertex; and the
    last point specified must be exactly the same point as the first
    (within the tolerance value), to close the polygon. For
    example, for a 4-sided polygon, specify 5 points, with point 5
    the same as point 1.
    I have added a point to polygon which is same as first point. Now, it can find the point in polygon.
    INSERT INTO shapes VALUES (4, 'Polygon', SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1,1003,1), SDO_ORDINATE_ARRAY(306,193,130,441,489,653,88,183,442,354,306,193)));
    But, when i run this query again:
    SELECT shape_id,SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(c.shape, 0.005) FROM shapes c;
    4     13349 [Element <1>] [Ring <1>][Edge <4>][Edge <1>]
    3     TRUE
    2     13348 [Element <1>] [Ring <1>]
    1     13367 [Element <1>] [Ring <1>]
    it doesn't say TRUE like it did for Circle ??
    Edited by: WhiteScars on Jan 4, 2010 12:45 AM

  • Calling Portal Service using result as Java Bean Model impossible?

    Hello folks,
    we try to achieve to call a portal service (working) which gives as a result a list of object of type com.foo.Report. We want to make use of this class as a model class, so we have the class as a model node in the context. The class itself is part of the service DC.
    Unfortunately at run time it gives us a NoClassDefFound Exception of com.foo.Report.
    As the com.foo.Report is part of the same DC as the service, it is no option to add the PAR public part to the used DCs of the WD DC because then there is this type conflict when we call the service (service look up). Or am I wrong and this is the way to do it? I mean I struggled quite a while to get the service look up right and needed to remove all the PAR/lib used DCs from the used DCs of the WD Project, when I got it working this Model error came up. I also tried to put the Model class in a separate DC but that caused the same error.
    how is it possible to call a Portal service from WD and using it's return vale as a Model class
    our system iis 7.0.17
    best
    Stefan

    Hi,
    Refers the following docs..
    EJBs in Web Dynpro Application Using Wrapper Class
    Here Java Bean Model used in web dynpro.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00be903b-8551-2b10-c28a-8520400c6451
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
    Accessing database table using EJB and web dynpro
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c
    Oracle Connectivity with EJB using WebDynpro Application
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/oracle%2bconnectivity%2bwith%2bejb%2busing%2bwebdynpro%2bapplication
    Hope it will help u.
    thanks
    Abhilasha

  • How to use the motor feedback

    I use six servo motor to control them to form some traces.  the motor is from japan ,and every motor has its own encoder , and the endoer output to its servo drive to form closed loop .they say the motor system's closed loop is ve precise ,I do not have to connect the encoder to the motion controller . by the way I use pxi 7354 and umi 7774 to control the motors.  my application is to set the position loop mode to control the six motors'motion correlatively.
     but I want to try to connect the encoder to the motion controller .so the error comes out . first I have to select the step mode in the MAXI  I can start the motor even if I do not connect the feedback,  when I select the serve mode the motor can not work. why ?  the second when the feedback is connected , the motor had to work in a very low velosity ,otherwise the following error will reach the default.even I set the following error is very big , when the velosity come up to some extreme the motor will stop for the following error's limit
    who can help me

    Dear Sir/Madam,
    I have a similiar problem also. For example, I use Stepper mode with open loop configure in MAX to run a FUJI servo with no problem at all, but once it is configured to close loop in MAX the encoder value doesn't change when monitored from 1D interactive window of MAX. And eventually the following error came out and motor stop!
    I have set the correct encoder feedback parameter in Servo drive, and I can read the encoder value by Read Encoder.vi but How come it doesn't show the value in MAX? Is any configuration that I was missed out in MAX? Is need to set the encoder setting in MAX to match the servo encoder output?
    Thanks.  

  • Use results from previous action to filter

    I hope there are some automator pros out there who can shed some light on this one.
    I am trying to create an app that will look in a specified folder, find all documents that were created in the last seven days, and then return results of only the files that contain a set of file names I specified.
    So far I have this:
    Find Finder Items
    .....Search (FOLDER)
    .....Any of the following are true:
    ........list of 15 filenames
    Get File Information
    Copy to Clipboard
    Paste Clipboard Content into Word Document
    Here is the crux. I need to find only the files with the specified names that were created in the last 7 days. I work for a television station, and all episodes have the same name, with an episode number at the end. I don't want results of every file with that name, there's thousands. Just the new ones. I can't just do a search for last 7 days files, because over 30 are created, and I only need 15. So how can I filter the results of the first action to only give me the results from the last 7 days? I added a Filter Finder Items, thinking it would take its information from the previous task, but it didn't work. Any help would be appreciated.

    I don't have a smb network drive to test, but if the find shell script works (it does not use Spotlight, and I am guessing that at least one of the actions uses it), the following *Run AppleScript* action may also work (and be shorter than 27 actions).
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into an Automator 'Run AppleScript' action">
    on run {input, parameters} -- find items by age
    searches the specified folder for the specified items newer than the specified number of days
    input: nothing (any existing input is passed on)
    output: a list of items found matching the search criteria
    # search criteria
    set theFolder to quoted form of text 1 thru -2 of (POSIX path of (choose folder)) -- no trailing delimiter
    set fileNames to {¬
    "Example_File_Name_1.txt", ¬
    "Example_File_Name_2.txt", ¬
    "Example_File_Name_3.txt", ¬
    "Example_File_Name_4.txt", ¬
    "Example_File_Name_5.txt", ¬
    "Example_File_Name_6.txt", ¬
    "Example_File_Name_7.txt", ¬
    "Example_File_Name_8.txt", ¬
    "Example_File_Name_9.txt", ¬
    "Example_File_Name_10.txt", ¬
    "Example_File_Name_11.txt", ¬
    "Example_File_Name_12.txt", ¬
    "Example_File_Name_13.txt", ¬
    "Example_File_Name_14.txt", ¬
    "Example_File_Name_15.txt"} -- a list of names to find
    set daysOld to 7
    set nameList to {} -- build an evaluation string from the list of names
    repeat with anItem in fileNames
    set the end of nameList to "-iname " & (quoted form of anItem) & " -or " -- case insensitive match for any of the names
    end repeat
    set nameList to text 1 thru -6 of (nameList as text) -- strip off the last boolean operator
    # find files newer than 7 days old with any of the specified names
    do shell script "/usr/bin/find " & theFolder & " -type f -newerBt '" & daysOld & " days ago' \\( " & nameList & " \\)"
    return input & (paragraphs of the result) -- add to any input items
    end run
    </pre>

  • Using results of other reports of a Dashboard

    Hi there,
    i've created a Dashboard with some requests on it.
    Now i want to use the result of a report to do calculation on a further report.
    Is it possible to save the result of a report in a variable or is there any other way to use the result of a report in another Report?
    Thanks,
    Frank

    Thanks wildmight for your suggestion,
    the thing is that I can't create calculated columns on BMM because the results are calculated with subqueries.
    I need to do a calculation like
    z = x * y
    x := count of Customers who have bought Product1 and not Product2 (calculated with subqueries)
    y := average Revenue of Product2
    Product1 and Product2 are prompted
    I dont know how I could calculate this two statements in one report.
    Regards,
    Frank

Maybe you are looking for

  • Network authentication failed error message when trying to send picture messages

    I have a family member who is trying to send picture messages from Dubois, WY.  Verizon's map shows that Dubois is in the extended enhanced services area.  I am guessing that this may be one of those instances where the coverage map is not 100% accur

  • What are all the necessary cables to connect a Cinemin Swivel to a Mac Book Pro 2009?

    Hi, I have a bought a mini DVI Cable and a RCA Composite and S-Video Cable. Other than these two cables, I need another one that goes from the RCA Composite and S-Video Cable to the Cinemin. I have a RCA cable with two male endings (balck and red) th

  • Error after schudling report for triggring proxy

    Hi friends, In the scnario proxy-jdbc.. i have moved the interface to production and schudled the abap report in background jobs. now when the report is triggered the proxy is called and here i am getting this error. INTERNAL.CLIENT_RECEIVE_FAILED Er

  • Straight Talk iPhone 5 without a SIM card, no data

    I have an iPhone 5 from Walmart on their unlimited Straight Talk plan. This phone does not use a SIM card. If I do not have a wifi signal, I cannot use any data and cannot send picture messages. Straight Talk support has not been able to help. I was

  • TREXDaemon.exe - Application Error ???????

    Hi All I have started getting a really nasty error on our test portal system. The error appears to be a Windows memory problem and occur when you log: TREXDaemon.exe - Application Error The instruction at "0x00409469" referenced memory at "0x00000008