How to check parsing and binding of procedure's inner sql statements

Hi,
I want to check, how all variables binding gets done for the sqls used in procedure.
Is there any dictionary table or way to get it?
Thanks in Advance.

939517 wrote:
Hi,
I want to check, how all variables binding gets done for the sqls used in procedure.
Is there any dictionary table or way to get it?
Thanks in Advance.query one of the views below
SQL> select view_name from dba_views where view_name like '%BIND%';
VIEW_NAME
V_$SQL_BIND_CAPTURE
V_$SQL_BIND_DATA
V_$SQL_BIND_METADATA
DBA_OPBINDINGS
USER_OPBINDINGS
USER_SQLSET_BINDS
USER_SQLTUNE_BINDS
ALL_OPBINDINGS
DBA_HIST_SQLBIND
DBA_HIST_SQL_BIND_METADATA
DBA_SQLSET_BINDS
VIEW_NAME
DBA_SQLTUNE_BINDS
KU$_LOBINDEX_VIEW
KU$_OPBINDING_VIEW
ALL_SQLSET_BINDS
GV_$SQL_BIND_CAPTURE
GV_$SQL_BIND_DATA
GV_$SQL_BIND_METADATA
18 rows selected.

Similar Messages

  • I have result after execution of OperationBinding. How can i parse and store in list.

    I have result after execution of operation binding. how can i parse and store in list

    Hi,
    I Thought u have custom method in AM which returns List Data type. What is the requirement exactly, bcz commit operation have void return type.
    Ex: create custom method in AMimple class
    public List sampleData(){
    // code here to set the values in List object.
    now expose the above method in client interface. Then add the Method action binding in pageDef file and execute the below code in managed bean
    OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("sampleData");
                List result =(List) operationBinding.execute();
    Thanks
    Nitesh

  • Slow imac, how to check status and clean up disc?

    slow imac, how to check status and clean up disc?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How to check Licence and what comes with original cd?

    Hello DBA,
    how to check licence in installed oracle database?
    and if we purchase oracle database from oracle then what comes with the kit(like original cd and other things)?
    Thanks,
    DBA

    Hi Nikunj,
    Licensing information are not stored in the database but you can get list of components installed using the query below:
    select COMP_NAME, VERSION, status from dba_registry;
    I hope this is what you are looking for?
    Cheers,
    Adams

  • How to check when and who uses my account?

    I need to check if someone used my account in some particular days and hours. is it possible and how. thank you

    Nikoline wrote:
    How to see when and who made changes in some table?
    Some makes me problems and I want to see who are the usernames.
    ThanksEither you need to implement Oracle Audit, or use Logminer Utility to read archived redo log files

  • How to check ABAP and Portal connections

    Hi
    I was told to check ABAP and Portal connections. What does that mean? And what and where to check?
    Thanks
    Annie

    Hi
    Thanks for your reply.
    We are on BI 7. SP16.
    When i run that in se38, i am getting the following information: No default in RSPOR_T_PORTAL and no user parameter RSPOR_DEFAULT_PORTAL" when i clicked on yes(tickmark), view BI_Content of web template 0ANALYSIS_PATTERN(A) is displayed
    There are two options with check box are present 1. 30 template present (Unchecked) 2. BI- Template Present (checked), and a big XML code is displayed.
    When i executed in browser mode, it says Windows cannot find'/irj/servlet/prt/portal............... make sure you typed the name correctly and then try again. to serch for a file, click the start button, and then click search"
    What does that mean?
    Regards
    Annie
    Edited by: Annie on Nov 17, 2008 5:38 AM

  • How to pass the bind variable value to the sql statement of the LOV

    Hi,
    I am using Forms 10g builder.
    I have a text item which will be populated by a LOV when i press a button, but i have a bind variable in the SQL statement of the LOV. That bind variable should be replaced by a value which is derived from a radio group in the same data block.
    For Ex: ( )radio1 ( )radio2
    before i click on the push button, I'll select one of the radio button above,so my question is how to assign this radio group value to the bind variable in the sql statement in the LOV?
    Pl any hint is appreciated!
    Thanks
    Reddy

    The variable can be taken into account in the SELECT order contained in the Record Group used by the LOV.
    e.g. Select ... From ... Where column = :block.radio_group ...Francois

  • Stored Procedures for Simple SQL statements

    Hi Guys,
    We are using Oracle 10g database and Web logic for frontend.
    The Product is previously developed in DotNet and SQL Server and now its going to develop into Java (Web Logic) and Oracle 10g database.
    Since the project is developed in SQL Server, there are lot many procedures written for simple sql queries. Now I would like to gather your suggestions / pointers on using procedures for simple select statements or Inserts from Java.
    I have gathered some list for using PL/SQL procedure for simple select queries like
    Cons
    If we use procedures for select statements there are lot many Ref Cursors opened for Simple select statements (Open cursors at huge rate)
    Simple select statements are much faster than executing them from Procedure
    Pros
    Code changes for modifying select query in PL/SQL much easier than in Java
    Your help in this regard is more valuable. Please post your points / thoughts here.
    Thanks & Regards
    Srinivas
    Edited by: Srinivas_Reddy on Dec 1, 2009 4:52 PM

    Srinivas_Reddy wrote:
    Cons
    If we use procedures for select statements there are lot many Ref Cursors opened for Simple select statements (Open cursors at huge rate)No entirely correct. All SQLs that hit the SQL engine are stored as cursors.
    On the client side, you have an interface that deals with this SQL cursor. It can be a Java class, a Delphi dataset, or a PL/SQL refcursor.
    Yes, cursors are created/opened at a huge rate by the SQL engine. But is is capable of doing that. What you need to do to facilitate that is send it SQLs that uses bind variables. This enables the SQL engine to simply re-use the existing cursor for that SQL.
    Simple select statements are much faster than executing them from ProcedureAlso not really correct. SQL performance is SQL performance. It has nothing to do with how you create the SQL on the client side and what client interface you use. The SQL engine does not care whether you use a PL/SQL ref cursor or a Java class as your client interface. That does not change the SQL engine's performance.
    Yes, this can change the performance on the client side. But that is entirely in the hands of the developer and how the developer selected to use the available client interfaces to interface with the SQL cursor in the SQL engine.
    Pros
    Code changes for modifying select query in PL/SQL much easier than in JavaThis is not a pro merely for ref cursors, but using PL/SQL as the abstraction layer for the data model implemented, and having it provide a "business function" interface to clients, instead of having the clients dealing with the complexities of the data model and SQL.
    I would seriously consider ref cursors in your environment. With PL/SQL servicing as the interface, there is a single place to tune SQL, and a single place to update SQL. It allows one to make data model changes without changing or even recompiling the client. It allows one to add new business logical and processing rules, again without having to touch the client.

  • Query cannot be parsed within the Builder ORA-00900: invalid SQL statement

    Why am I getting the error message "Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00900: invalid SQL statement"
    If I run the query in sqlplus it comes back with "no rows selected" which is what I want.
    The function is valid and the user has privileges to run it.
    Is there something I can do about it?
    If I only have any field instead of the function the error goes away.
    Can someone explain what is happening? I'm using 2.0.
    select
    F_TOTAL_AMOUNT_PAID('fees',a.acct_fee_id,0) "Fee Paid"
    from fee_component a, fee b, license c
    where a.acctfee_id = b.acctfee_id
    and b.license_id = c.license_id
    and b.fee_status = 'U'
    and c.client_id = :P301_CLIENT_ID
    Thanks I really appreciate any help I can get.

    Does your parsing schema have direct granted privileges to execute the function or privileges via a role? If it is through a role, you need to directly grant execute on the function to your parsing schema.
    Mike

  • Bind variables in DB Connect SQL Statement in Oracle

    We are looking for ways to improve performance of DB Connect extract from an Oracle database.
    An example command that is created by the Info-Package using a DB-Connect:
    Current
    SELECT "A", "B", "C", "D", "E", "F", "G", "H"
    FROM "GSF_BW"."V_BW_FORCAST_FACT"
    WHERE ("A" = '200904') AND ("B" BETWEEN '100801' AND '101412')
    The calculated cost (calculated by Oracle Optimizer) is 25.145
    Oracle recommends the usage of bind-variables.
    In that case the Statement would need to look like:
    SELECT "A", "B", "C", "D", "E", "F", "G", "H"
    FROM "GSF_BW"."V_BW_FORCAST_FACT"
    WHERE ("PG0R_SUBD" = :b1) AND ("ZCALMONTH" BETWEEN :b2 AND :b3)
    This would reduce the cost to 11.000 which is 40% of the statement before.
    My question now is: Can anything be done to influence the generation of the SQL statement to make it better performing?

    Hi,
    It is always better to test yourself. Using bind variable is always a good practice and optimizer avoids hard parsing (soft parsing will be done here) if bind variables are used.
    So yes, if this function is being executed several times frequently then second execution onwards it may run faster.
    If you want to see actually what is happening behind it, trace it (using tkprof) and see the result.
    See the below link to know more about SQL TRACE and tkprof.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/sqltrace.htm#PFGRF01020
    Regards,
    Avinash
    Edited by: Avinash Tripathi on Nov 16, 2010 11:46 PM

  • Find start and end execution time of a sql statement?

    I am have databases with 10.2.0.3 and 9.2.0.8 on HP UNIX 11i and Windows 200x.
    I am not in a position to turn on sql tracing in production environment. Yet, I want to find when a sql statement started executing and when it ended. When I look at v$sql, it has information such FIRST_LOAD_TIME, LAST_LOAD_TIME etc. No where it has information last time statement began execution and when it ended execution.. It shows no of executions, elapsed time etc, but they are cumulative. Is there a way to find individual times (time information each time a sql statement was executed. – its start time, its end time ….)? If I were to write my own program how will I do it?
    Along the same line, when an AWR snapshot is shown, does it only include statements executed during that snapshot or it can have statements from the past if they have not been flushed from shared memory. If it only has statements executed in the snapshot period, how does it know when statement began execution?

    Hi,
    For oracle 10g you can use below query to find start and end time, you can see data for last seven days.
    select min(to_char(a.sample_time,'DD-MON-YY HH24:MI:SS')) "Start time", max(to_char(a.sample_time,'DD-MON-YY HH24:MI:SS')) "End Time", b.sql_text
    from dba_HIST_ACTIVE_SESS_HISTORY a,DBA_HIST_SQLTEXT b where
    a.sql_id=b.sql_id
    order by 1;
    Regards
    Jafar

  • How to get the table name and bind columns names in an INSERT statement ?

    I have an INSERT statement with input parameters (for example
    INSERT INTO my_table VALUES (:a, :a, :a)) and I want to know
    without parsing the statement which is the name of table to
    insert to and the corresponding columns.
    This is needed to generate the SELECT FOR UPDATE statement to
    refetch a BLOB before actually writing to it. The code does not
    know in advance the schema (generic code).
    Thanks in advance,
    Joseph Canedo

    Once you have prepared your statement, you can execute the
    statement with the OCI_DESCRIBE_ONLY mode before binding any
    columns. Then you can use OCIParamGet to find out about each
    column (column index is 1-based). You should get OCI_NO_DATA or
    ORA-24334 if there are no more columns in the statement. Note
    that the parameter descriptor from OCIParamGet is
    allocated/freed internally by OCI; you do not need to manage it
    explicitly. The parameter descriptor is passed to OCIAttrGet in
    order to obtain for instance the maximum size of data in the
    column OCI_ATTR_DATA_SIZE. You can also get the column name in
    this way, although I do not remember the #define off the top of
    my head. Getting the table name appears to be much more
    difficult; I have never had to do that yet. Good luck. -Ralph

  • N900, How to check firmware, and send operator com...

    Good day to you all,
    i recently got my N900 from a Nokia Store (Monday 23rd), i am living in UAE, Dubai 
    i would appreciate if someone could answer these 2 questions:
    1- how do i check which firmware do i have (usualy in Symbian *#0000#) 
    2- when i dial *121* which is a service command to check my balance it gives me a wrong phone number, so is there any way to send these commands (maybe in terminal?)
    thank you all 
    Az. At.
    IT Support Engineer
    DED

    Wrong forum - goto the N900 Maemo Forum:
    /discussions/board?board.id=maemo
    We'll just be here talking about the shortcomings of Symbian S60v5.. lol
    I love my purple screen, 1/2 day battery, sketchy touch screen and $800 price tag - I call it my Lumia 900

  • How to check AGP and DDR voltage?

    ...as the CoreCenter is not working, how can I check the AGP and DDR voltage? (when set to auto in bios). What other software will tell it?
    thnks

    Try speedfan.
    http://www.almico.com

  • How to Check Delivery and GR (goods receite) date??

    Dear ABAP Guru,
    I am very new in ABAP and here is my requirement, hoping to have help from you friends and GURU? I need to modify an existed report that run weekly. to
    Check the delivery date and and GR date.
    if delivery date is older than a week in the system and GR date is not entered or equal to 00/00/0000.
    send an email message:"Delivry is a week old , please enter Actual GR date". to the user in charge.
    and also, when the Gr date is enter, do not show that item or PO in the report anymore because the report want to show only Gr with date 00/00/0000.
    please Guru help me with a source code. Thanks..friends

    Moderator message - Unfortunately, this forum is not a place to learn ABAP. I suggest that you get one of the good ABAP books that are out there and maybe join an internet forum that caters to beginners - post locked
    Rob

Maybe you are looking for

  • How can I share/access a second hard drive on my 'puter?

    Actually, the second drive is on my G4 running Tiger; it's Drive2 because it's not the boot drive, and I'd like it to be available to everyone in the house, but especially me. I'll access it from my MacBook(10.6), the other folks from the G4 itself.

  • Connecting computer to tv for viewing EPIX,ETC.. but not through router?????

    I need to start connecting computer to tv for viewing EPIX,ETC.. but not through router?????  I have a workroom with a TV but without cable connection, so I thought I would connect my computer to my TV.  I have an Acer Aspire laptop. and a 27" tv.  P

  • How to create adapters?

    Hi, I am a DBA and new to SOA and BPEL, I need to create a db, ftp and JMS adapter. Could some one guide me how I can do that? Can you direct me to a note or give me the navigation? I do not have jdeveloper, Is jdeveloper the only way to create an ad

  • Storage Location last transaction date

    Hi All What particular transaction code or report will I can find storage location last transaction date? We'll be using this for our PID Thank you Jesielle

  • How do I preview my DNGs?

    At this point, converting to DNG files is causing my workflow to seriously suffer because I don't know what pictures I am looking at.  There has got to be a way to preview them!  What should I do? IOS Widows 7, Vista Ultimate DNG converter 6.4 Photos