How to find a query

Hello
10 gR2, a query was run today at 06:00 (AM). How can we find?
I looked at V$ sql, but it has been reloaded several times. In v$ sql there are those after 10:00.

Thank you.

If your database is running in archivelog mode, then use the MINING JOURNAL to get the query and relevant information.

See the following link for more details Mining Journal

http://docs.Oracle.com/CD/B28359_01/server.111/b28319/LogMiner.htm

Rgds,

Ahmer

Published by: Ahmer Mansoor on June 29, 2012 18:34

Tags: Database

Similar Questions

  • How to find the query select bind variables

    How to extract the variable name to bind to AS suite of sql queries
    ' SELECT NAME IN: NAME OF THE DOUBLE '
    or
    "SELECT * FROM WHERE DOUBLE (: NAME = NAME)".
    or
    "SELECT * FROM WHERE DOUBLE: NAME IS NULL'."
    or
    "SELECT * FROM WHERE DOUBLE: NAME | NAME = LAST_NAME'
    or
    ' SELECT * FROM DUAL WHERE: a = 10'
    or
    "SELECT * from where DOUBLE: A > = 10'.
    or
    "SELECT * from where DOUBLE: A < = 10 '.

    Give a solution using SUBSTR, REGEXP_SUBSTR, please answer quickly
    best answer will be marked correct/good...

    Search: and then search for the following word breaker then have the substr for them: and the separator.
    You can build an own function to find the same.

  • How to find mode query

    When I press on enter query button is there any varialbe system who say that now I'm in query mode.

    Hi Keita,

    Yes, there is.

    You can use the system system.mode for this variable.

    IF: System.Mode = "ENTER-QUERY" then

    end if;

    It may be useful

    Check the answer as useful / OK, if this can help you

    Carole

  • How to find special characters in a single query

    Dear Experts,

    Your usual help is needed to resolve the query. My query is ' how to find all special characters such as (% $* & @, ' / +-etc. in a single query?).
    Thank you.

    for example


    A_MIR
    A % SIM
    A * SIM
    SIM HAS)

    Hello

    This can work:

    select * from your_table where replace(translate(your_column,' abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890','x'),'x','') is not null
    

    Above code verifies an ascii and numbers. You can adjust the chain with other characters you want to see (exclude)

    Herald tiomela
    http://htendam.WordPress.com

  • How can we find the query

    Hello

    As part of the optimization of performance,

    I want to find the query using pid is there any display.


    And the level of the os I received SUPERIOR command, using OS level pid can we find the query? HELLP me...

    Thank you
    Srini...

    Srini says:
    Hello

    As part of the optimization of performance,

    I want to find the query using pid is there any display.

    And the level of the os I received SUPERIOR command, using OS level pid can we find the query? HELLP me...

    Thank you
    Srini...

    As

    SQL>select s.sql_id,ss.sql_text from v$session s,v$process p,v$sqlarea ss where s.PADDR=p.ADDR and s.sql_id=ss.sql_id and p.SPID=18985;
    

    Where
    p.SPID = 18985 is your process id of the operating system.

  • How can they find lenth query max

    Hello

    after query results in 0, but I want to find the query max lenth

    SQL > select max (maxquerylen) of v$ undostat;

    MAX (MAXQUERYLEN)
    ----------------
    0

    Hello

    You can compare the results of these queries:

    select max(maxquerylen) from dba_hist_undostat;
    
    select max(tuned_undoretention) from dba_hist_undostat;
    

    or, run the following query:

    select maxquerylen, tuned_undoretention from dba_hist_undostat order by maxquerylen asc;
    

    Normally, the tuned_undoretention should be greater than maxquerylen. However, its value is constantly changing, according to statistics on the duration of the query.

    Hope this helps.
    Better subject.
    Jean Valentine

  • How to find the properties of thin client, PC?

    Original title: Thin Client

    Hello

    How to find the properties of Thin Client, PC.

    When I check the properties of my computer it shows properties of a server

    and also I check with cmd Systeminfo it shows also the connected server properties

    Hi Yogi,

    Thanks for posting your query in Microsoft Community.

    According to the description of the issue, I recommend you post your query in the TechNet Forums. TechNet is watched by other computing professionals who would be more likely to help you.

    TechNet Forum

    Hope this information is useful.

  • How to find duplicate keys found when error ORA-01452: cannot CREATE a UNIQUE INDEX.

    Hi gurus,

    I fall for this stupid error

    "cannot CREATE a UNIQUE INDEX; duplicate keys found.


    It is that the Unique Index key is composed of multiple columns

    CREATE A UNIQUE KEY001AUTORISATIONS_APPORT ON TFT_AUTORISATIONS_APPORT INDEX

    (AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION)

    TABLESPACE KEYS_TFT NOPARALLEL NOLOGGING

    Now,.

    My question is, how to find duplicates keys blocking Index creation?

    Thanks if you can help

    Run this query to display the list of the duplicates already existing.

    Select AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION, count (1) as cnt

    of TFT_AUTORISATIONS_APPORT

    Group

    AUT_APPORTEUR, AUT_AGENCE, AUT_PRODUIT, AUT_OPTION, AUT_TARIF, AUT_DATE_AUTORISATION

    view count (1) > 1

    Concerning

    NJ

  • How to find assets to a project of the BCC with SQL

    Hello.

    I would like to know how to find assets to a project of the BCC with SQL.

    Thank you.

    Hello.

    You can try this.


    select * from dcs_product where workspace_id in ( Select avm_devline id where the name of (select Workspace for epub_project where display_name = "${name_of_project}"));

    For each version of an asset is recorded the id workspace on the workspace_idfield. This workspace is related to the project in the field name and the workspace field in table epub_projecttable avm_devline .


    But this query must be performed from the active table. Example: Product = dcs_product, sku = dcs_sku, class = dcs_category and so on.

    Thank you rtreto for the help.

  • How to find the failed connection attempts at 'check' session is enabled

    How to find the unsuccessful connection attempt to dba_audit_trail when the "audit logon" is enabled.

    Filter your query against dba_audit_trail action_name = 'CONNECTION' with returncode! = 0 (returncode = 0 means that there are no errors - successful connection attempts)

  • How to find the book, THE, Op units, Org (All) names and ID?

    How to find the book, THE, Op units, Org (All) names and ID?

    With regard to:

    Mr. Shahzad Saleem

    Please run the following query

    SELECT gl.NAME ledger_name, hou.NAME operating_unit_name,

    xep.NAME legal_entity_name

    Gl_ledgers gl, hr_operating_units hou, xle_entity_profiles xep

    WHERE gl.ledger_id = hou.set_of_books_id

    AND hou.default_legal_context_id = xep.legal_entity_id

  • How to find the ID of the existing contact?

    I need to update an existing contact in Eloqua, but to do that I need to find the ID of the contact.

    I know how to get the ID of the contact after it is created the first time, but once it is already created how to find the code.

    How do I do that?

    Here is my code that I use to update, I just need to solve for '?

    EloquaAPI. DynamicEntity [dynamicEntities] = new EloquaAPI. DynamicEntity [1] ;

    dynamicEntities [0] = new EloquaAPI. DynamicEntity ();

    dynamicEntities [0]. EntityType = entityType;

    dynamicEntities [0]. Id = "???";

    dynamicEntities [0]. FieldValueCollection is new EloquaAPI. DynamicEntityFields ();

    dynamicEntities [0]. FieldValueCollection.Add ("C_GUID1", GUID);

    dynamicEntities [0]. FieldValueCollection.Add ("C_FirstName", FirstName.Trim ());

    dynamicEntities [0]. FieldValueCollection.Add ("C_LastName", LastName.Trim ());

    dynamicEntities [0]. FieldValueCollection.Add ("C_EmailAddress", Email.Trim ());

    dynamicEntities [0]. FieldValueCollection.Add ('C_Type1', 'Contact');

    EloquaAPI. UpdateResult [] result = service. Update (dynamicEntities);

    Joey

    Hi Joey,

    If you do not already have the id of the contact, then you will need to use the. Function Query() to get it – most commonly ask you based on the email address.  For this call API documentation is here:

    http://www.eloquatrainingcenter.com/Portal/documentation/API/content/API_Reference/Entity_Operations/query.htm

    The example code in this page is not large (without having to download the entire sample application), but here's a basic use (VB.net):

    Dim contactId As Integer = 0

    Dim etContact As New ELQService.EntityType
    etContact.Type = 'Base '.
    etContact.Name = "Contact".

    Dim result = are. Query (etContact, "C_EmailAddress ="[email protected]"", {"Id"}, 1, 50)
    If result. TotalRecords > 0 then contactId = result. Entities (0). ID

    Chris

  • How to find the definition of an indextype sql

    Hi all

    I would like to know how to find the "indextype" sql definition...?

    could not understand this. I even tried sql developer and TOAD to extract the sql definition but couldn't!

    Thanks in advance.

    Hello

    You can use the dbms_metadata.getddl

    the query would be like this:

    Select dbms_metadata.get_ddl ('INDEXTYPE', 'indextype_name') of double;

    How to recover or retrieve oracle database operator. Master of geodata

    Kind regards

  • How to find the size of the table?

    Hi all

    Can anyone suggest how to find the size of the table? I had a few (15272 selected lines) on the name of "CMPT_" How can I check only 'CMPT_' size tables?





    Please someone help give the SQL query to run.


    Thanks in advance.


    Vincent

    madala03 wrote:

    Hi thanks for the reply

    I'm out like below

    SUM(BYTES/1024/1024)

    --------------------

    25383.25

    But how to check all the name of tables CMPT and their sizes?

    Select nom_segment, dba_Segments sum(bytes/1024/1024) where nom_segment like ' % CMPT GROUP BY nom_segment;

  • How to find the position of the special charater such as [@% in oracle]

    How to find the position of the special charater such as [@% in oracle in the sql query]

    Exp: -.

    SELECT Regexp_instr (['test] "," [!]) » #$% & * ; <> = @\ ^ _'{|} ~]')

    DOUBLE;

    Hello

    SELECT REGEXP_INSTR (' TSA @', "[@] '")
    FROM DUAL;

    SELECT REGEXP_INSTR ('asd [', ' [[]] "])
    FROM DUAL;

    SELECT REGEXP_INSTR ('asd %', '[%]')
    FROM DUAL;

Maybe you are looking for