How to know currently running ddl  by dba_views in oracle 9i

sql_hash_value in v$session is showing 0 .presently create table is running which is done by copying from another table.
Edited by: apusumit on May 16, 2012 1:46 AM
Edited by: apusumit on May 17, 2012 12:08 AM

apusumit wrote:
sql_hash_value in v$session is showing 0 .presently create table is running
Edited by: apusumit on May 16, 2012 1:46 AMSQL_HASH_VALUE 0 means sql has been completed. If you are sure that it is still running and showing SQL_HASH_VALUE 0, then show us what are you doing and how Oracle is responding you by simply copy and paste SQLplus screen text by below commands :
set linesize 200
set pagesize 1000
select sql_text from v$sql where (ADDRESS,HASH_VALUE) in (select sql_address,sql_hash_value from v$session where sid= &sid_number);
Anand @ find the current sql which is running against database
OR
select c.spid b1, b.osuser c1, b.username c2, b.sid b2, b.serial# b3,
a.sql_text
from v$sqltext a, v$session b, v$process c
where a.address = b.sql_address
-- and b.status = 'ACTIVE' /* YOU CAN CHOOSE THIS OPTION ONLY TO SEE
-- ACTVE TRANSACTION ON THAT MOMENT */
and b.paddr = c.addr
and a.hash_value = b.sql_hash_value
order by c.spid,a.hash_value,a.piece
Adith @ What are current query running
You can too check LAST_DDL_TIME of user_objects view.
Regards
Girish Sharma

Similar Messages

  • How to know the run time of a program..?

    Hi Gurus,
    How to know the exact run time of a program....?
    Suppose i've a program....I've changed the code to improve the performance.
    Now i want to compare run time of older and new one...How to do this...?
    Pls help me ....
    Thanks and Regards,
    Nagarjuna

    Hi,
    go thru the below mentioned code............
    data:   start TYPE i,
              end TYPE i,
              dif TYPE i.
    GET RUN TIME FIELD start.
    SELECT SINGLE bukrs belnr gjahr blart budat
    FROM bkpf
    INTO (cc, doc, fy, doc_ty, pst_dt)
    WHERE bukrs = p_bukrs
    AND belnr = p_belnr
    AND gjahr = p_gjahr.
    GET RUN TIME FIELD end.
    dif = end - start.
    WRITE: /001 'Time for select',
    067 ':', dif, 'microseconds'.
    Reward all helpful answers.
    Thanks

  • How to know current bandwidth to be able to increase or decrease reserved streaming units ?

    Hi,
    how to know egress bandwidth by Azure Api to be able to increase reserved streaming unit if bandwidth reaches over 80%. Currently it is set to 1, but should be able to increase it when bandwidth is more than 160 mpbs(80% of available bandwidth which is 200mbps) 
    Thanks for your feedback in advance.

    Hi Sandhya,
    For now you can use Azure portal dashboard to check "Streaming Data Out". The chart will give you 30 minute aggregated values.
    Thanks,
    Cenk
    

  • How to Get Current running Sqltext in 10g

    I'm using 10g and i'm using following query to get current running sql.
    SELECT A.SID,B.HASH_VALUE, OSUSER, USERNAME, SQL_TEXT
    FROM V$SESSION A, V$SQLTEXT B
    WHERE B.HASH_VALUE = A.SQL_HASH_VALUE
    AND USERNAME LIKE upper('%UOBA%')
    ORDER BY B.HASH_VALUE, B.PIECE;
    This does work for all user-triggered sqls,procedures etc.
    But when i submit a Oracle Job the above qurey doesn't give any output.So,could please anybody help me in this regard.
    Thanks in Advance.

    I have found a way to retrieve some SQL statements for a session started by DBMS_JOB using v$open_cursor: however in my test, you can only retrieve some SQL statements in v$sql_area but not all of them: query takes some time to execute and some committed statements are not (or nor more) in v$open_cursor:
    select s.sid, s.serial#, s.username, sq.sql_text
    from v$open_cursor oc, v$sqlarea sq, v$session s
    where s.username = 'TEST'
    and oc.saddr = s.saddr
    -- only for session started by DBMS_JOB
    and s.sql_hash_value = 0
    and oc.address = sq.address
    and oc.hash_value = sq.hash_value;Message was edited by:
    Pierre Forstmann

  • How to know current speed of connection in Kbps?

    Does anyone know how to know the speed of network/internet connection? I couldn't find any member method of JAVA's class that returns this value. Very appreciate for all your hints.

    Try something like this:public class Test
      public static void main(String[] argv)
        try
          URL url = new URL("http://java.sun.com"); /* put a pointer to some big image here */
          InputStream is = url.openConnection().getInputStream();
          int bytes = 0;
          long ms = System.currentTimeMillis();
          while(is.read() != -1) bytes++;
          ms = System.currentTimeMillis() - ms;
          double kbps = ((double)bytes / ((double)ms / 1000)) / 1024;
          System.out.println("kbps = " + (long)kbps);
          System.exit(0);
        catch(Throwable t)
          t.printStackTrace();
          System.exit(-1);
    }I suggest you repeat this test for several pointers and take the average...

  • Newbie question: how to know current namespace in dbx debugging environment

    Good afternoon,
    I have an application, running on a Solaris 5.8.
    This application gives errors because of namespace issues, therefore I would like to check the namespace I am working in while debugging with dbx, but I don't find the command for this.
    Does anybody know which command to launch within a dbx environment for displaying the current namespace?
    Thanks
    Dominique

    (dbx) help -k namespace
    scopes (command)
    (dbx) scopes
    Function PSeudoClass::plain_function()
    namespace PSeudoClass
    File "ambig.cc"
    Loadobject /export/home/test/c++/namespace/a.out

  • How to know current form name in oracle applications 11i.

    Hi all,
    By clicking on Help menu-> About Oracle Applications, it will display environment variables info, and current form info, on which we r working.
    I want to know from where this information is coming,
    Where oracle applicaitons will store this information.
    Is there any database table which regularly updates the current form info.
    Or is there any log which contains info about current form name.

    Hi
    For viewing this information you need to read system administration guide , Go through this pdf file
    http://download-uk.oracle.com/docs/cd/B11454_01/11.5.9/acrobat/115saug.pdf
    Nitin

  • How to know current selection rectangle

    Hello,
    I need to know (with SDK) the current selection rectangle.
    I use listener to create my action fonction but listener let to Set a selection but not Get.
    If someone can help me...
    Thanks

    There is a bounds to a selection of a document. BEWARE: This is the bounding rectangle of the selection. If you have a selection with holes in it then you may not be getting what you expect.

  • How to know last run time and who ran the query

    Hi
    I am doing the analysis for all the queries , their last run time and who ran the query
    Since there are almost 6000 queries , is there any way to find out last run time and who ran the query
    in one step or through any transaction else It would huge effort taking task to check the data in BW statistics
    table for each query
    Regards,
    Vivek

    Hi,
    Statistics should be switched ON for all the queries first. You can check this in RSDDSTAT.
    Statistics data is stored in BW for a specific period only. This setting can be maintained in table RSADMIN (Field : TCT_KEEP_OLAP_DM_DATA_N_DAYS). If the value for the field is 30, then 30 days old statistics will be available at any point.
    Not all the queries will be ran daily. Some are ran daily, monthly and yearly depending upon User requirement.
    1. You can check in RSDDSTAT_OLAP for the details you needed.
    2. You can install the BI Technical Content and run the respective query for the details you needed.
    Hope this helps.
    Regards,
    Sunil

  • How to know current row is a new row ?

    Hi,
    i need to implement some logic in my BC4J JSP form commit process, but when it's a new row only.
    how can i do that ?
    Thanks,
    Ricky H.P.

    See:
    re:How to identify inserted/modified row(s) in a VO
    Regards

  • How to get currently running tcode inside the user exist

    Hi All,
    I want to write user exist for me22n & me23n, inside the user exist i want to check tcode whether tcode is me22n or me23n my user exist is ME_PROCESS_PO_CUST
    .please help me
    Thnx//

    Hello Gevan,
    Please check the value of sy-tcode for both transaction in debugging mode in the exit and write your code accordingly.
    case sy-tcode.
    when 'ME22N'
    *ur code
    When 'ME23N'
    *ur logic
    endcase.
    find the screen shot from debugging
    Thanks

  • How to deploy and run Spring petportal example on Oracle portal?

    Is there any how-to steps or article show the petportal (Spring portlet MVC) example deploy and run Oracle portal?

    Hi,
    I haven't tired this, but I looked at the "README.txt" file included in the Spring PetPortal Application & it uses the standard JSR 168 Portlet standards.
    Hence, I assume that this would work as with any other remote portlet Implementation - host the portlet remotely & consume it in Oracle Portal 10.1.4.
    I just noticed that it has been 8 days since you posted the question - have you tried anything already ? If yes, what are your experiences so far ?
    Regards,
    Sandeep

  • How to know whether query is using Indexes in oracle?

    Please let me know necessary steps to check whether query using indexes.

    Try the below and check the explain plan.. See below explain plan using index marked as "RED" font
    SET AUTOTRACE TRACEONLY EXPLAIN
    SELECT * FROM emp WHERE empno = 7839;
    Execution Plan
    Plan hash value: 2949544139
    | Id  | Operation                   | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |        |     1 |    38 |     1   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| EMP    |     1 |    38 |     1   (0)| 00:00:01 |
    |*  2 |   INDEX UNIQUE SCAN         | PK_EMP |     1 |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("EMPNO"=7839)

  • How to know the timings of the run time of thr report

    Hi,
    Can you please tell me how to know the run time of the query , i mean how much time it took for the query to dispaly the results .
    Also we have these queries in the workbook. How to refresh the work book . is it enough if i refresh the query.
    Thanks
    Sruthi

    Hi
    How can we check in RSRT tcode?
    And how can we do i RSRTRACE?
    Can  I know the procedure.

  • I currently run the Design and Web Premium CS6 on a first generation MacBook Air and want to buy a new MacBook Pro. How do I know whether I can install my Adobe programs onto the new computer? Because I know there is some kind of limit.

    I currently run the Design and Web Premium CS6 on a first generation MacBook Air and want to buy a new MacBook Pro. How do I know whether I can install my Adobe programs onto the new computer? Because I know there is some kind of limit.
    Also, I had to install the software twice on my same computer before because I had to reboot the computer. I don't know if this affects the limit.

    You are allowed to have two activated installations so there should not be a problem having working installations on the two machines.  If by chance you have somehow tied up two activations for the one machine you can have Adobe support help resolve that thru chat.
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

Maybe you are looking for

  • Adobe Media Encoder CC 2014.0.1 (8.0.1) update is now available

    Today, the Adobe Media Encoder CC 2014.0.1 (8.0.1) update was released. This update addresses several bugs, adds support for 4K in H.264, new and simplified presets for YouTube, and other features. Read about the details of the update here: http://bl

  • When was the last XProtect update for OS X 10.6.8?

    Hey, I have updated my Mac the past few days but I haven't seen any XProtect updates come up. I'm just wondering if the "Flashback" Trojan may have affected the Mac. I did scan my Mac using Virus Barrier and ClamXav and nothing popped up. But I'm jus

  • Managing Data

    Ive had very little issues with the iPhone so far, but today something minor happened but there doesn't seem to be an easy way to fix it; This is a big deal. I was syncing some videos when iTunes told me the "disc" (iPhone) has timed out or something

  • Error while updating packages

    I got this when I installed gnome. Anyone had this before? [root@menator ragencage35]# pacman -S gnome-desktop Targets: orbit2-2.8.3-1 libbonobo-2.4.3-1 gconf-2.4.0.1-1 gnome-vfs-2.4.2-1 libgnome-2.4.0-1 startup-notification-0.5-3 gnome-desktop-2.4.1

  • I want to do a clean install, but how to use Time Machine to get my data back?

    I want to do to clean install of my Snow Leopard OS system...all my data is backed up on my TM. I heard if I restore from Time Machine any system errors created then will have an effect on the clean install? Wouldn't that defeat the whole purpose? So