How to extract the sql text with SID and SERIAL No.

Hello

I am new to oracle database and recently I started my journey in the optimization of the performance.
I need to retrieve the sql text that is triggered by the user in function were SID and SERIAL No.

Thanks in advance...
Prabha

Select
a.SID,
a.Serial #.
b.sql_text
Of
session v$ a.
v$ sqlarea b
where
a.sql_address = b.Address
and
SID = 43;

Tags: Database

Similar Questions

  • How to search the selected text with a default search engine?

    Hello

    Before the recent update of the search bar, you can select your 'current' search engine, and a search for the selected text (right click on the selection) would use this engine.

    Now, it seems that you can only search for the selected text using the default engine. If that is correct, it's a big step backwards for me. For example, I can't have Google as my default search engine and the search for a text selected on eBay!

    Or am I missing something?

    Thank you!

    R.

    I find this extension very useful for selected items in the web pages. It offers all your search engines with select > right click.
    https://addons.Mozilla.org/en-us/Firefox/addon/context-search/?src=search

  • Illustrator: How to get the overlapping text on transparent and keep gradient and stroke?

    In Illustrator, how can I be part of a transparent text overlapping letter? The circle which lies behind this letter has a gradient and a stroke.  I want the letter to appear that it is hanging around this circle.  In the screenshot, I pointed out the area I want to be transparent with a green arrow. Thank you for your help.

    example.jpg

    Draw a line through the descender of the letter. Select the letter and line, then click on split. Separate the two forms that result and send whatever shape you want behind the ring.

    Result:

  • How to reconnect the new database with oracle and oracle mid infrastructure

    course oracle environment;
    Database; 10gr 2 (10.2.0.1) old-SID: gtxprod host: 10.30.100.199
    new database; 10gr 2 (10.2.0.1) - SID: gtxprod2 host: 10.40.110.199
    application sever. 10.2.0.1 (oracle mid level.) and oracle infra SSO, forms, reports, portal.

    problem;
    I try to reconnect from the application to the new database server. I do not know how?

    I went to /opt/oracle/10ggtxinf/network/admin/tnsnames.ora
    # tnsnames.ora Network Configuration File: /opt/oracle/10gasr2inf/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    
    asdb.gtx.com =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = isdev.gtx.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME =asdb.gtx.com)
        )
      )
    
    
    gtxprod.gtx.com =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = gtxprod.gtx.com)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SID = gtxprod)
        )
      )
    
    gtxprod2.gtx.com =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = gtxprod2.gtx.com)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SID = gtxprod2)
        )
      )
    In application of the oracle infra. How Asian Bank of development of database instance can connected with the new data base gtxprod2?

    In Forms Server, based on a Web site, if go to Forms Server, I can see tns.ora but I can't see anything to update to the new database.

    you could give me information how understand this problem?

    Thank you very much in advance

    Hi Wen,

    As you have created a new database 'gtxprod2' so the Stanley database should be in place
    cmd--> lsnrctl status
    That you have even made changes to 10ggtxinf/network/admin/tnsnames.ora
    do the same entry in the oraclebi/network/admin/tnsname.ora file

    You can check if your new entry is rite of
    tnsping gtxprod2 (>)
    Now you ask how the application will come to know what database to point to
    Go to oracle AS
    As using your forms and reports go to oraclebi/forms/server/formsweb.cfg

    At the end of the file, there might be a few entries
    for example
    [test]
    envFile = test.env
    Form = LOGIN_ENT.fmx
    LookAndFeel = oracle
    separateFrame = true
    UserID=nrs_fd/nrs_fd@fixdep
    SplashScreen = NO
    logo = NO
    Background = No.
    color = auto
    make = yes
    Archive = frmall.jar
    archive_jini = frmall_jinit.jar, frmwebutil.jar, Jacob.jar, icons.jar
    ImageBase codebase =
    term = frmpcweb.res
    baseHTML = webutilbase.htm
    baseHTMLjinitiator = webutiljini.htm
    baseHTMLjpi = webutiljpi.htm
    WebUtilArchive = frmwebutil.jar, jacob.jar

    "userid=nrs_fd/nrs_fd@fixdep" IE (username) / (password) @tnsname
    the following entry specifies what database, the application must point to

    If your using a war file, you must create a data source and as datasource, you must specify the tnsname input

    Concerning
    Fabian

  • How to create the new MovieClip with front and rear images?

    I'm still a real newb... I'm unable to learn how to create a two-sided movieclip and load a different image on each side.

    Thank you!

    Mark

    You can't do that, but you can simulate it.  If you use a rotationX or rotationY you'd a displayobject that is not visible and the other is visible when you almost 90 degrees.

  • How to make the delicate design with IE8 and 9 courses

    I created a course but all users receive errors because IE version. Some people cannot spend 10 or 11 for various issues.

    Hello

    Delicate design means HTML5 output only. And if you look at this link, you will see how the poor support of HTML5 is in IE8 and IE9.

    HTML5test - how well your browser supports HTML5?

  • How to activate the historical record with date and time in EBS

    All,

    I created a custom form in 11.5.10 instance. The table on this form has all those which columns in it, and it is filled in the table of database as well as the date and time. But, when I go to the EBS and open the form and click on "Historical Record" it just shows the date of creation/update, but not this time.

    Can someone please give me an idea how to display time as well in the history of record?

    -VRDida

    The Important thingbis the type of data in the forms. If only one date, the part of hour is missing. If the Datetime, the timepart is there. Have you tried to check the values during execution by using the feature review?

  • How to find the sql queries executed in one day with the sql and runtime text

    Hi Experts,

    Please tell me the sql query to find out the queries executed on a particular day and the runtime and the sql text of the query.

    Please reply urgent.

    Thanks in advance

    Database instance 'A' may have run 100 SQL queries today.  As for the instance of database 'B' could have exploited queries SQL 1 million today.  Instance of database 'B' to 'keep' the 1 million SQL statements - in memory or on disk do you expect?  Of course not.  There the age or flush or invalidate memory SQL statements.  He can't keep them on the disk (imagine running a completely different set of 1.2million SQL statements tomorrow and 1.3 the next day).

    AWR and StatsPack can make counts the number of "n" top of the page ("n" default to 30) SQL statements which are still present in the cache of the library (not years, rinsed, invalidated) when a snapshot was taken.  They can't declare "all" SQL statements.

    To return to your needs.  WHY do you need all the SQL statements?  Or are there only certain operations specific SQL would you be interested?  Could they have been treated by allowing audit (for example, UPDATE and DELETE with EXTENDED verification instructions)?

    Hemant K Collette

  • XMLTABLE - how to extract the value of the escape of a node as-is sequence

    Hello

    How can I me XMLTABLE leave the string value of a node like the version with escape sequence, rather than unescaping it?

    E.g.:
    select extract(xmltype('<root><test>&lt;unset&gt;</test></root>'), '/root/test/text()').getstringval() col1 from dual
    union all
    select col1
    from   xmltable('/root' passing xmltype('<root><test>&lt;unset&gt;</test></root>')
                    columns
                    col1 varchar2(20) path 'test');
    
    COL1                                                                            
    ---------------------
    &lt;unset&gt;                                                                   
    <unset>     
    NB. you will need to hit rΘpondre α and then quote my post to see the actual text; For the life of me, I can't get the forum properly displays things. In short, the string returned by the EXTRACT is escaped, while the XMLTABLE chain is unescaped.


    ETA: I looked through the standards xml from the list of available functions, and nothing seems relevant. {noformat} * scratches head * {noformat}

    Published by: Boneist on March 19, 2013 14:11

    You can emulate what do I EXTRACT / getStringVal () by projecting the node text() as XMLType and type-casting to VARCHAR2 in the SELECT clause:

    SQL> set scan off
    SQL>
    SQL> select cast(col1 as varchar2(20))
      2  from xmltable(
      3         '/root'
      4         passing xmltype('<unset>')
      5           columns col1 xmltype path 'test/text()'
      6       ) ;
    
    CAST(COL1ASVARCHAR2(20))
    ------------------------
    <unset>
     
    
  • Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Hello

    2796614 wrote:

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Of course, it is possible.  According to what the text file looks like to, you can create an external table that treats the text file as if it were a table.  Otherwise, you can always read the file in PL/SQL, using the utl_file package and INSERT of PL/SQL commands.

    You have problems whatever you wantt?  If so, your zip code and explain what the problem is.

    Whenever you have any questions, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the exact results you want from these data, so that people who want to help you can recreate the problem and test their ideas.  In this case, also post a small sample of the text involved file.

    If you ask about a DML operation, such as INSERT, then INSERT statements, you post should show what looks like the tables before the DML, and the results will be the content of the table changed after the DML.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

  • How to extract the signal from the waveform of my power level designated?

    Hi all

    How can I extract the signal of the waveform accroding to the power level? I read the Trigger & Gate .vi, but this vi retrieves the signal duration. I want to extract the signal depending on the power level.

    As shown in the following figures, the signal I want to deal with is between 130000 to 140000, if I Zoom, I can see the useful signal is between 135400 to 138200. The question is how to extract the signal in the area?

    I tried the sub_NoiseEst_And_Chop_Shell.vi in the example of Packet_based_link also, but this Subvi seems to be a bit slow. Can someone give me the best advice? Thanks in advance!

    I'm working on something similar, but have not had time to fully develop.

    My idea was to use an envelope detector (low pass filter) and then use a detection of energy VI on the envelope.

    Here is where I left

  • How to get the string (specified by row and column) of txt file with labview

    Hello world

    How to get the string (specified by row and column) of txt file with labview

    THX

    As far as I know, a text file has no column.  Be more specific.  Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character?  You can read from the spreadsheet String function and set the delimiter to a space.  This will produce a 2D channels table.  Then use the table to index and give the line number and column number.

  • Need urgent help! In my Vision Application, how to extract the parameters of the geometric model specified curve was generated by the template editor OR?

    I have an application of machine vision, in which the geometric pattern match technique was used to find the target in the images of type variant.

    as we know, we do a geometric model by model OR editor in the editor we can adjust the parameters of the curve specified settings to get the desired curves and we derive the custom box to ignore during the match. then we save the use of the same model in our application of vision.

    Now my question is coming. When I program my request for the geometric game. I have specified the parameters of the curve for the entrance of the IMAQ Advanced Setup learn ringtone 2, of course, I have to adjust this identical to the model, but I don't know how we extract the geometric model. I tried all the methods, for example, I can read data custom, IMAQ get characteristics of the geometric model(it's just for the basic functionality? so is there even a VI based edge?), even at anasys PNG file formats! But I can't read the info of the geometric model by myself!

    It is also illogical to adjust the CURVE SETTINGS manually again for the " IMAQ Advanced Setup Learn Pattern 2" after that I already have in the template editor OR!

    Hello

    Why do you need to specify the curve settings once again, if you have already built a model using the template editor? You don't need to use "IMAQ Advanced Setup learn geometric model 2 VI" to find games (see the attached example).

    You can wire the 'curve settings' control to 'IMAQ configuration geometrical game model 2 VI', but the values are not used if wire you a Boolean true to the node "use learning curve settings" (it's like that by default). To prove it, I enclose a small program with pre-created model (using the template editor) for a geometrical alignment. The model and the test of three images are also included.

    Try changing the settings of the curve with the 'use know curve settings' enabled, and you will see the corresponding score remains the same. Disable the Boolean control, then try to change the curve settings.

    Also take a look at the detailed help for "IMAQ configuration geometrical game model 2 VI", specifically the "learning curve parameters of use."

    I hope this helps.

    Best regards

    K

  • How to make the default text size and line spacing in small Sticky Notes?

    How to make the default text size and line spacing in small Sticky Notes

    Hello

    I suggest that you try the method below and check if it helps.

    Method 1: analysis of auditor of file system (CFS)

    System File Checker is a Windows utility that allows users to find corruptions in Windows system files and restore the damaged files. To perform a scan of the SFC, check out the link: https://support.microsoft.com/en-us/kb/929833.

    Note: the steps for Windows 8/8.1, works perfectly with Windows 10.

    Method 2: clean boot

    A clean boot is executed to start Windows by using a minimal set of drivers and startup programs. This will eliminate software conflicts that occur when you install a program, an update or when you run a program in Windows. Follow the link to perform the clean boot: https://support.microsoft.com/en-us/kb/929135.

    Kind regards

    Angelo bar

    Microsoft community

  • How to make columns of text with adobe muse

    Hi, how to make columns of text with adobe muse (like InDesign)?

    As Brad has already indicated, the columns are a difficulty.

    Set a text box to separate visually in separate (with a nice gutter) columns does not seem so difficult, but the problem lies in how to manage the flow of text in regards to positions, simple lines ugly upstairs and down a column, deliberate column breaks, how to connect to the text of subsequent block etc. The developers of W3C and browser have not yet agreed on this issue. (Look for the clear green statutes in the table: http://caniuse.com/#search=columns)

    As a matter of fact, Adobe has proposed and developed an alternative for wounds and flawed of current columns, at the W3C long meetings: 'Régions' (which could also leave the text to "wrap" around a box or even an irregular shape). But their effort was in vain. ' Technically too much, too soon, to be treated by the mobile browser engines ", was the comment of Google . So the W3C put this contribution on the shelf.

Maybe you are looking for

  • HP Pavilion A6601T: Lack of motherboard serial number

    My office that BIOS have lost the serial number (content removed) and also lost the model number (A6610T), I read on the internet that I get tools DMI and snzero.exe,. But nothing works for my desktop computer, one of the show error "I2C eeprom not s

  • I am looking for a string

    Hello If I probe a string. I get this Watch probe. Name: tested Value: 'Testpart_0_part_0 '. How can read the value of 'Testpart' (in this case 0). BR P

  • Files Windows Server Essentials 2012 R2 Hard Drive Full move

    My hard drive was full. The indications he gave me was to move files to another drive WD 3 to. I did I saw the files. Then he said to back up my computer. I did it. but when I did that now I don't see my folders and files that were in the folders on

  • How can I remove old xbox live id

    Windows Live ID, XBOX and Games for Windows Live I bought a new XBOX 360 console and exploit a @live.com Lived ID online. I gave the old XBOX 360 to a friend for his family use (7 children!). I also had an email from @comcast.net old associate to my

  • PowerEdge R720 remove individual event

    Hi everyone, our monitoring system (pulls that openmanage info) has a critical event on it, that I know is very well, she is treated. Now, I know I could erase the whole journal using the iDrac omconfig or, but I would rather just delete this unique