How to view v$_sql_bind_capture bind values through EM Grid Control?

Last week I stumbled upon having the options to show the bind variables to a sql statement. I can no longer find how to get back to this. Can someone guide me to the spot?
Regards,
Joe

there are intresting undocumented dbms_xplan.display_cursor options for bind values and I guess these strange data inside v$sql.bind_data is input for these options, like;
dbms_xplan.display_cursor(sql_id, 0, 'basic +PEEKED_BINDS')
dbms_xplan.display_cursor(sql_id, 0, 'ADVANCED')
dbms_sqltune.extract_binds(bind_data) http://optimizermagic.blogspot.com/2008/02/displaying-and-reading-execution-plans.html
http://arkzoyd.blogspot.com/2007/04/valeurs-des-variables-bind-sans-10046.html
SELECT t2.*, t1.sql_id, t1.elapsed_time
  FROM (SELECT *
          FROM v$sql b
         WHERE b.bind_data IS NOT NULL
           AND b.parsing_schema_name NOT LIKE 'SYS%') t1,
       TABLE(dbms_xplan.display_cursor(t1.sql_id,
                                       0,
                                       'basic +PEEKED_BINDS')) t2;
SELECT dbms_sqltune.extract_binds(bind_data) bind, sql_text
  FROM v$sql
WHERE sql_id = '07w3mujspwj2q';If somehow I can guarantee v$sql.bind_data to be published for each bind value and kept stored in AWR I guess I will be able to handle this problem, still investigating :)
Thank you for your intrest.

Similar Messages

  • Cleanup job to remove archive logs automatically through OEM Grid control

    Hi All,
    I am working on 11gR2 3node RAC database. we have enabled archivelog mode for the databases and don't have any backup processes (like rman) and not using ASM.
    Please let me know how to cleanup the old archivelogs automatically through oem Grid control.
    I have some idea how to do it in standalone database, but not sure how it works in RAC environment through OEM. Please let me know.
    Thanks in advance.

    Hari wrote:
    Thanks for your reply and The requirement is, put the DB in archive log mode and cleanup the old archive logs which is more than 5days. We are doing this because of space issue and don't have backup for these files and the DB must be in archive log mode.
    I have few question here.
    1. Is it must to take the backup of the archive log files and before delete them?No, but if you aren't backing up, why create the archivelogs in the first place?
    2. If i delete them without backup, what is the negative impact?If you aren't backing up the database in the first place (as you stated in an earlier post) then it really doesn't matter what you do with the archivelogs as they are worthless anyway.
    3. What is the recommended process to do it?My recommendation is you first start using rman to backup the database
    4. I need to setup this process through OEM grid control.
    Please let me know.
    Thanks,
    HariIt all begs the question which has already been asked and you avoided answering . . . if you are not taking backups, why bother archiving? The archive logs have ZERO VALUE outside of a consistent backup strategy. So how is it you have a 'requirement' to run in archivelog mode but no requirement for backups?
    Edited by: EdStevens on Dec 2, 2011 9:30 PM

  • How to merge rows with similar values in alv grid display in webdynpro

    Hi experts,
                   i want to know about how to merge rows with similar values in alv grid display of webdynpro.grouping rows is possible in table display in webdynpro but i am not able to do row grouping in the alv grid display in webdynpro.
    kindly suggest.
    thanks ,
    Anita.

    Hi Anita,
    did you find a solution for this? I have opened a Thread, if you know the answer maybe you could help me out:
    Is there an ALV function similar to the TABLE Row grouping?
    Thanx in advanced!!!
    Kind Regards,
    Gerardo J

  • How to setup DISK SPACE alert on OEM 10g Grid Control...

    Gurus,
    I am trying to setup DISK SPACE notification / alert thru OEM 10g Grid Control, but so far no luck.
    Can someone help/guide me on how to achieve this?
    Please advice.
    Thanks & Regards,
    Kartik

    Those two links don't say anything about "DISK SPACE ALERT" I already know how to setup notification. I suppose you are talking about Filesystem Space Available (%)
    If you need to setup an alert (Notification) then i suppose you need to setup an notification rule.
    Yes, these notes do not have the key word "DISK SPACE ALERT" you are looking for, but if you go through the first note CLEARLY and COMPLETELY, you should find your answer.
    And he has given an example for Filesystem space available in this note, which is what you are looking for.(I think so)
    Say for Disk Space, you create a notification rule for target hosts and have metric "Filesystem Space Available (%)" defined in that rule.
    If you aren't talking about notifications and just want to setup an filesystem space available metic, then follow this note:
    How To Setup Host Metrics For Filesystem
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=749341.1

  • How to view variable and constant value

    Hi there,
    I try to view a variable in sql plus command line and oracle xe object browser. The following is a small code to assign a value to a variable from an existing column name id that has value 4567 from table airplane. I'm a newbie, so pardon my ignorance:
    declare new_num number;
    begin
    select id into new_num from airplane where id=4567;
    end;
    Questions:
    1. Anything wrong with the code?
    2. How can I view it via sql plus command line?
    3. Can I view it from Oracle XE object browser gui?
    Regards,
    Valerie

    you use variable command to declare my_var as a global variableActually Toon used a BIND variable in his example, see:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch5.htm#sthref1118
    Is this a SQL or PL/SQL command? Bind variables can (should) be used by SQL*Plus and in PL/SQL.
    Check the docs.
    Can I view it via oracle xe object browser?I have no clue, don't know the 'Oracle XE Object Browser'.

  • How to view streamed files behind Firewalls through RTSP tunneling?

    Hi:
    According to the document of Quick Time Streaming Server
    Modules, there are two methods for server to send data to
    clients behind firewall. One is the RTSP/RTP over HTTP,
    and the other is RTP over RTSP.
    From the QuickTime player, I can issue the HTTP streaming
    method. Does anyone know how to issue the RTP over RTSP
    streaming from the QuickTime player?
    Thanks.
    Pentium 4   Windows XP Pro  

    I found it. By default Apple, in all its wisdom, sets Quicktime as the default viewer for a bunch of non-quicktime filetypes. When I start quicktime from the start menu and select Edit>Preferences>Quicktime Preferences it gives me the option of unclicking boxes that do the hijacking and it presumably returns control to the correct programs.
    I also find there a box to turn off the incessant updates and the tray icon.
    Problem solved. The last time I had to install it I could not find these options. Too bad they don't offer the options at the beginning of the setup process - it would give a lot more confidence in their product.
    Of course, the perfect thing would be to offer it as a plugin for Windows Media Player so we would not have to have so many competing (and registry space hogging) programs on our machines.

  • HOw to get parent node name value through its child node?

    Hi,
    Experts,
    I am able to get child node name values but according to attribute name value i want to  get its parent name value how to achieve that. For that i have used If_Ixml_element->Get_parent. Please pass some idea on it.
    Thanks in advance,
    Shabeer ahmed.

    Hello Shabeer
    I think the coding should be straightforward:
    DATA: lo_element   TYPE REF TO if_ixml_element,
              lo_child        TYPE REF TO if_ixml_node,
              lo_parent      TYPE REF TO if_ixml_node.
    " NOTE: LO_ELEMENT holds your child node
      lo_child ?= lo_element.
      lo_parent = lo_child->get_parent( ).
    Regards
      Uwe

  • How to return more than one value through RECORD TYPE from function

    Hi friends,
    i m ew in oracle forms. i want to return the two values at a time from a function but can't,Please help me. my codding is as following
    Thanks in advance.
    FUNCTION Fun_Choose_Right_cast(v_post_no payroll.post_register.post_no%TYPE) RETURN RECORD IS --here is the error 
    v_return_char CHAR NOT NULL := 'X';
    TYPE row_no_record_type IS RECORD
         (v_row_id NUMBER(3)NOT NULL := 0,
         v_char CHAR NOT NULL := 'X');
    row_no_record row_no_record_type;
    BEGIN
    IF v_post_no = 1 THEN
         IF TRUNC(v_post_no*0.15) >= 1 THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'A';
              --v_return_char := 'A';
         END IF;
         IF TRUNC(v_post_no*0.075) >= 1 THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'B';
              --v_return_char := 'B';
         END IF;
         IF TRUNC(v_post_no*0.275) >= 1 THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'C';
              --v_return_char := 'C';
         END IF;
         IF row_no_record_type.v_row_id = 0 AND v_char = 'X' THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'D';
         --IF v_return_char = 'X' THEN 
              --v_return_char := 'D';
         END IF;
    ELSIF(v_post_no BETWEEN 2 AND 100) THEN
         IF TRUNC(v_post_no*0.15) > TRUNC((v_post_no-1)*0.15) THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'A';
              --v_return_char := 'A';
         END IF;
         IF TRUNC(v_post_no*0.075) > TRUNC((v_post_no-1)*0.075) THEN
              IF TRUNC(v_post_no*0.15) > TRUNC((v_post_no-1)*0.15) THEN
                   row_no_record_type.v_row_id := v_post_no-1;
                   v_char := 'B';
                   --v_return_char := 'A';
              ELSE
                   row_no_record_type.v_row_id := v_post_no;
                   v_return_char := 'B';
              END IF;
         END IF;
         IF TRUNC(v_post_no*0.275) > TRUNC((v_post_no-1)*0.275) THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'C';
              --v_return_char := 'C';
         END IF;
         IF row_no_record_type.v_row_id = 0 AND v_char = 'X' THEN
              row_no_record_type.v_row_id := v_post_no;
              v_char := 'D';
         --IF v_return_char = 'X' THEN 
              --v_return_char := 'D';
         END IF;
         END IF;
    RETURN row_no_record;
    END;

    Posting your Oracle version is immensely helpful when asking questions (different version = different answers / functionality available).
    select * from v$version;Also, using tags will preserve the formatting of your code.
    You should likely read (a lot) about  [http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10807/05_colls.htm]
    Basically, you would need to create a PL/SQL record and reference that, OR you could create a SQL type.
    If you're looking for a 'simple' way to return many single values (no arrays) then your best bet would be a procedure with multiple OUT parameters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ID JS (any version): How to access "Author Title" field value through scripting.

    Good Morning:
    In the file information dialog box, there is a field for "Author Title".
    Is it possible to reference this field via scripting?
    I've tried many different field name options for it (i.e. "authorTitle", "titleAuthor", etc...), but no luck so far.
    Thanks!
    Theresa

    Interesting one.
    For some reason it's in the Photoshop namespace:
    <rdf:Description rdf:about=""
      xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
      <photoshop:AuthorsPosition>That's me!</photoshop:AuthorsPosition>
    </rdf:Description>
    You're going to need getProperty() and setProperty() for that:
    doc.metadataPreferences.getProperty("http://ns.adobe.com/photoshop/1.0/","AuthorsPosition");
    and
    doc.metadataPreferences.setProperty("http://ns.adobe.com/photoshop/1.0/","AuthorsPosition","All About Me!");
    Harbs

  • How to view dvr cameras on iPad, How to view dvr cameras on iPad, which need actives control to run

    How to install activex control on iPad , so that I can view the dvr cameras over safari ??

    You cannot, for the following reasons:
    ActiveX requires the Windows (95 - Win7; not Windows Mobile), the iPad uses the iOS operating system
    ActiveX requires an 80x86-compatible CPU, the iPad uses an ARM-compatible CPU (the A5)
    ActiveX requires an application to host it, there are no iPad applications the host ActiveX objects
    Also, generally speaking, modern mobile devices (phones and tablets) rarely permit installing global plug-ins or system software (the ActiveX model for plug-ins). They implement a strict security model that essentially sequesters applications from each other (with some APIs for exchanging some data between applications).
    You probably want to contact the vendor of the DVR camera or controlling software and enquire whether there's an app for iOS for viewing the video stream. Vendors of low-end systems may still only support legacy systems (some, for example, still use what is essentially MS-DOS), but vendors of modern equipment may well have an iOS application available. The relative ease of building these applications for iOS makes it a pretty straight-forward thing to do.

  • How to view Dehydration Store Performance in OEM 12c Cloud Control

    Hi All,
    I have installed OEM 12c Cloud Control.I want to view dehydration store performance for my fusion middleware domain.Can anyone please suggest me how can I achieve this?
    I have added the database, where soa schemas are created, as a monitored target in OEM 12c Cloud Control. Also have added Fusion middleware domain for which I want to view dehydration store management.
    Thanks in Advance!!
    Edited by: Roshni Shankar on Sep 19, 2012 5:26 AM

    You should open an SR and support can assist you with it. The only current case where that feature is known to not work is in the case where the Dehydration Store is running on RAC. Otherwise, it should be possible to get it to work. The main thing is that you need to have DB configuration properties (host, port, sid) that have a 3-way string match between the JDBC data source configuration in the WLS server, the JDBC properties you add to the Monitoring Properties of the SOA Infrastructure target, and the connect settings of the Database target in EM that matches to the dehydration DB.
    If there isn't a match in all 3, the Dehydration Diagnostics page will not work. But again, to look into your specific setup, you should file an SR and work with support.

  • How to update data in the database through ALV grid

    Hi All,
    I diplayed an ALV grid with five fields in a classical report. I have already set the fieldcat for one field as wa_fcat_edit = 'X'. I am able to edit(modify) the data in that field. But I want to update the data into the database which is modified by me in that field. Can I update the data using BDC or any other procedure?
    This is an urgent require ment for me. Please help me ASAP.
    Thanks & Regards,
    Ramesh.

    Hi
    Please go through the link.
    Link: [http://www.****************/Tutorials/ALV/Edit/demo.htm]
    regards
    ravisankar

  • When and How to get the Text.ScrollPos value of a String control when scroll bar position changed

    Hi, 
    I'm working on a feature triggered by scroll bar position of a string control changed.
    But I could not find a good way to catch the scroll bar position changed event, 
    the scroll bar is controlled manually by mouse down → mouse move → mouse up, I want the get the Text.ScrollPos value when user mouse up, and compare with the maximum value.
    But the problem is,  mouse up on the scroll bar could not trigger String: Mouse up event!
    So I have to get the Text.ScrollPos continuously in the background in Timeout event, but I think it’s not efficient.
    Do you have any better idea on when to get the correct destination value of Text.ScrollPos?
    I plan to store the value of Text.ScrollPos in the bottom(maximum value) in a shift register, then compare the current Text.ScrollPos value with the max one.
    If it comes close to the bottom(90%~100% of the maximum value), then the close to bottom LED will turn on.
    Attachments:
    scroll bar pos changed.vi ‏15 KB

    Hello Cecilia,
    I don't think there is any build-in event for this.
    One solution would be to create your own user event at the initialisation of you main and launch a thread which is going to be pulling the value of your scrollbar position:
    Then you can build your main as if they were a scrollbar move event.
    And dont forget to close the thread and destroy the event at the end.
    Hope it helps.
    Attachments:
    Scrollbar event.PNG ‏10 KB

  • Bind adhoc-query to Grid-Control

    Help! I'm stuck ;-)
    Tried to bind my query to a gridControl:
    DbAccess dba = sessionInfo1.get DbAcess();
    ScrollableRowsetAccess sra = null;
    sra = (ScrollableRowsetAccess)dba.executeRetrieval(
    "Select ENAME from EMP",
    "infobus:/oracle/sessionInfo1/new_ename",
    null);
    gridControl1.setDataItemName(
    "infobus:/oracle/sessionInfo1/new_ename");
    But the grid always comes up empty.... If I use an
    ImmediateAccess and System.out.println in a while(sra.next())
    the data is properly displayed from the Rowset.... so its good
    to that point.
    So how do I bind the adhoc-qyuery to the GrodControl??????
    Thanks for all your help!
    --RD
    null

    I have been trying all month....Please see my 05Aug postings...
    With binding an Adhoc query to GridControl approach,
    I have tried various things to get the data to display:
    Like trying to use some AttributeInfo to supply ColumnMetaData
    etc... which is why I believe that my bind does not supply
    any visible data in the GridControl....
    In general, the best I have achieved in calling stored procedures
    and showing the results in a GridControl is to use the wizard to
    create a GridControl, then modify the setQueryInfo to use
    the Column_Names as an alias for my functions()....
    ForExample
    From:
    DEPTMasterIter.setQueryInfo(new QueryInfo(
    "DEPTMasterIterViewUsage",
    "AdHock.SCOTT_DEPT",
    "SCOTT.DEPT.DNAME",
    "SCOTT.DEPT",
    null,
    null,
    null));
    To: (this works but I can't control the ColumnName that is
    displayed in the GridControl)
    DEPTMasterIter.setQueryInfo(new QueryInfo(
    "DEPTMasterIterViewUsage",
    "AdHock.SCOTT_DEPT",
    " funcX() DNAME",
    "DEPT",
    null,
    null,
    null));
    If I can get the Adhoc query to bind and/or any other way to
    bind JDBC "result sets" to the Infobus & GridControls, it would
    be a big help in working with data from my Server-side PL/SQL
    functions and procedures...
    THANKS again for looking into this for me!!!!
    --RD
    R Dorsey (guest) wrote:
    : Help! I'm stuck ;-)
    : Tried to bind my query to a gridControl:
    : DbAccess dba = sessionInfo1.get DbAcess();
    : ScrollableRowsetAccess sra = null;
    : sra = (ScrollableRowsetAccess)dba.executeRetrieval(
    : "Select ENAME from EMP",
    : "infobus:/oracle/sessionInfo1/new_ename",
    : null);
    : gridControl1.setDataItemName(
    : "infobus:/oracle/sessionInfo1/new_ename");
    : But the grid always comes up empty.... If I use an
    : ImmediateAccess and System.out.println in a while(sra.next())
    : the data is properly displayed from the Rowset.... so its good
    : to that point.
    : So how do I bind the adhoc-qyuery to the GrodControl??????
    : Thanks for all your help!
    : --RD
    null

  • How to create logical standby database without using Oracle Grid Control

    Hi All,
    I want to create Logical standby database on 11gr2 on RHEL 5 without using oracle Grid Control.
    I already have a primary database as well as physical standby database.
    What i want to create a logical standby database as well on the same machine where physical standby database is running.
    So anyone of you help me out to do that
    Thanks in advance

    Hi,
    Creating a Logical Standby Database
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#SBYDB00300
    Regards,
    Tom

Maybe you are looking for