identify the tables that are affected by a transaction

Hi guys,.

I am running version:

Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production



Is it possible to identify the SQL code or the tables involved in a transaction by looking at the transaction$ v?

Just wrote a small application, but can't test it in my DB... Just check it...
Basically CREATE all the views will provide some information.

SELECT t.ses_addr,
       s.sid,
       p.object_id,
       D.OBJECT_NAME,s.command
  FROM v$transaction t,
       v$session s,
       V$locked_object p,
       dba_objects d
 WHERE     t.ses_addr = s.saddr
       AND p.session_id = s.sid
       AND d.object_id = p.object_id;

The command column is a code displays what kind of operation is being currently... the explanation of the code can be mentioned in the documentation:

http://docs.Oracle.com/CD/B19306_01/server.102/b14237/dynviews_2088.htm

See you soon,.
Manik.

Tags: Database

Similar Questions

  • SQL statement to select the tables that are updated today...

    Hi guys,.

    I need to find the names of all the tables that contain rows that are inserted/updated on a given time stamp...

    Below the statement gives me the list of all tables in the database...
    select t.table_name from all_tables t;
    All these tables in the database have a rowversion column which gives the date of update/insertion of a record. I need to write a select statement (probably dynamic) that will give me the names of the tables that contain the rowversion value 24/01/2013...


    Any help is appreciated...

    Napster says:
    Hi kitsoukou,

    Thanks for your reply...

    But when I run your select statement I get an error indicating that the table SYS. DBMS_XMLGEN does not exist.

    Probably something wrong in my environment?

    If I'm not mistaken there are DBMS_XMLGEN 9i.

    The source code is available under

    karthick% ls -lrt $ORACLE_HOME/rdbms/admin/dbmsxml.sql
    -rw-r--r--   1 oracle   dba         7977 Mar 23  2004 /home/oracle/product/10.2.0.5/rdbms/admin/dbmsxml.sql
    

    You can take this and run to install DBMS_XMLGEN.

  • How to find the tables that are used in a procedure

    Hello
    I need to write a SQL to find (user_source) procedures or triggers (from user_triggers), whose code contains the registerd tables in a table X.
    In other words, I have a table X with files having a column containing tables. I want to write a SQL to obtain these (proc, package and triggers) container objects or use the tables inside
    Can you help me?
    Thank you!

    Mark1970 wrote:
    Hello
    I need to write a SQL to find (user_source) procedures or triggers (from user_triggers), whose code contains the registerd tables in a table X.
    In other words, I have a table X with files having a column containing tables. I want to write a SQL to obtain these (proc, package and triggers) container objects or use the tables inside
    Can you help me?
    Thank you!

    I don't know if I understand your problem, but have you had a glance at the data dictionary views USER_DEPENDENCIES or ALL_DEPENDENCIES?

    It has classified hard dependencies of objects.
    If a table is used directly (not in dynamic SQL code in a string) in an object PL/SQL, the dependency is available in the stated points of view.

  • Table of DB tools list: how to access tables that are in the different SQL database?

    Hi all

    I work on an implementation of database (SQL server) and evaluates the Toolkit OR DB for this project.

    One of the requirements is that I need access to the tables that are in two different database

    (say Table to 1 DB and Table B to 2 DB).

    Our IT guy linked table in DB1 to DB 2 and I verfied this when I use the SQL server management studio.

    When DB 2 tables is filled, table from DB1 is also there. I can also do the same thing using MS Access.

    Table A of the DB1 is available for me enven if I only connect to 2 DB.

    Here comes the problem.

    When I use DB tool list Table.vi to access DB2, it does NOT list A table in DB1. It list only the tables in

    the database (DB2) which I am connection (using DB tool opened Connection.vi with a file DSN)

    So my work around right now is to open a separate connection both DB1 and DB2. However, this approach

    obviously creates a problem when I have to access a separate database constantly in my application.

    What would be a solution to this? I have search the Forum but only to see a post that is somewhat related to

    My question. (And it was published the 2004) Maybe I need to change the code in the orignial VI (DB tool list Table.vi)?

    My computer guy told me that he has not met this scenario since he wrote code in another environment such as

    VB and others and it has always been successful in linking the different database tables.

    I hope my question is clear and healthy because I don't really know much about database terminology.

    Any comment or suggestion is appreciated!

    Thank you

    Chad

    Ok.  Here is some information that I can work with.  Good.

    Your COMPUTER staff created a view called "VISUAL_WORK_ORDER".

    A view isn't a table.  It is a "virtual" table  Views are used to collect data (usually) in several different tables.

    But I guess that the code inside the DB tool list Table.vi returns a list of tables.  Views are not the tables.  Then "VISUAL_WORK_ORDER" does not appear in the list.

    HOWEVER, this should not really matter.  The view is here!  And it can be queried like any table.  So, you can use DB tools Select Data.VI... and wire in "VISUAL_WORK_ORDER" as the name of the table.  This will return the contents of the view.  Alto!

  • When I open the site in Contribute CS5, it moves items to the bottom of the page that are not in the regions of editiable

    Site was created in DW CS5 and so it is edited in DW it's fine. The minute you click on edit in Contribute CS5 text, links, and div tags is pushed to the bottom of the page. This is before I touch event whatever it is in an editable and the elements that are affected are not in an editable? If I go ahead and make changes in the region of editiable and save, he recorded with all of these elements encountered towards the bottom of the page. I convinced a client that Contribute was the way forward, they bought 3 licenses and now can't change their site.

    Any ideas?

    This problem is the adjustment of spacing of the paragraphs in the role of setting.

    (1) administer site in Contribute.

    (2) select the role, then click on change settings for role...

    (3) in the dialog box change the parameters of role (mentioned below), choose "two lines, as in (uses standard web page editors '.

    Tags)' option under the spacing of the paragraphs in the editing category.

    (4) to save the settings and try to place again the page in edit mode.

    Hope this has solved your problem.

  • How to identify the data that is associated with any book in crm on demand?

    We are experimenting with books, but I have yet to find an easy way to identify the data that are not associated with any book.

    Do you have a suggestion?

    I discussed this with Oracle in recent years CAB, but we have no indication if it will be included, but it could be part of their 'User' hotel subject they are studying.

  • How can I identify the photo albums are assigned to in Photos.

    When I look at a picture in the stack of Photos or any album, I would like to be able to identify the albums that he has been assigned.  Does anyone know how to do?  Please understand that I know how to use a smart album to find unassigned photos, but how get you assigned to the photo albums?

    And explanation as to why: this is a very important tool for me to remain consistent in 'depot' photos on and be able to verify that they are filed correctly.  And it might be a surprise to Apple, but I don't think in terms of date/time/gps when using my pictures program.  Those are some boundaries meaningless for me, even though they may be useful for school of information indicators in the metadata.  Over the years, many photos were always is received by mail or scanned and do not have a suitable spot attached date or gps.   Faces is useful, but look at a 5 k photos of 'mother' without knowing what album they are, is not useful.

    Please understand that I know how to use a smart album to find unassigned photos, but how get you assigned to the photo albums?

    Photos does not support this. You can't get a list of standards albums to that picture has been assigned.

    If you ask for a photo, albums photo is in it, only use smart albums based on keywords. You can see the keywords in the Info Panel for a photo and how directly, including smart albums it will contain.

    To find all the albums of standards in that photo is you will want to program an Apple Script.

  • What is the name of the table that has the name of the custom in the Oracle database Section?

    What is the name of the table that has the name of the custom in the Oracle database Section?

    Thank you

    Nefertari

    The names of the custom Sections are stored in commonExtendedAttributeML, the extended attribute table.

  • How to list all the tables that have no data

    Hi all


    I want to list all the tables that have no data. (registration number is 0)

    Someone help me.

    Thank you
    Thiensu2810

    Select owner, table_name from dba_tables where num_rows = 0;

    This assumes that the table statistics are COMMON.

  • APEX do not allow to change the lines of the columns that are the primary key?

    I have pictures:
    http://img508.imageshack.us/my.php?image=21269582oe8.jpg


    Book (id_book - 'Primary key', title, year); book_author (id_author id_book - 'Primary key', - 'Primary key'); author (id_author - "Primary key", name)



    I created a new page-> Form-> form of 'author' table because I want to add new authors, modification and deletion. During the creation of this page, I have chosen column 'id_author' as '1 primary key column' and everything is OK (I can't edit the 'id_author' column - this column is autoincrement and I can change the 'name' column).

    BUT I also created a new page-> Form-> table for table "book_author" because I like to write numbers like id_book and id_author, change and remove them (so add relations between tables: book, book_author and author). During the creation of this page, I have chosen column 'id_book' as '1 primary key column' and 'id_author' as 'column primary key 2'. And on the Web site, I can't edit these fields. And I can not add also new line because I see in each new line: (null).

    http://img444.imageshack.us/my.php?image=11324615yk9.jpg

    APEX do not allow to change the lines of the columns that are the primary key? It's stupid... What can I do?

    Edited by: user10731158 2008-12-20 11:40

    Column unique and not meaningful if you ever want to update. In the case of your example, you need to add an ID column in the intersection of book_author table. Honestly, I was so blown away (and pleasantly surprised) by the absence of rebuttal and the "thx" I advanced and set up an example of how I would define the book_author table:

    create table  book_author
       (id varchar2(32),
        book_id varchar2(32),
         author_id varchar2(32),
         modified_on     date,
         modified_by varchar2(255),
         constraint book_author_pk primary key (id),
         constraint book_auth_book_fk foreign key (book_id) references books(id),
         constraint book_auth_author_fk foreign key (author_id) references authors(id)
         )
    /
    
    create unique index book_author_uq on book_author (book_id,author_id)
    /
    
    create or replace trigger  biu_book_author before insert or update on book_author
    for each row
    begin
         if inserting then
              :new.id := sys_guid();
         end if;
         modified_on := sysdate;
         modified_by := nvl(v('APP_USER'),user);
    end;
    /
    

    Good luck
    Tyler

  • I want to see just all the Photos that are not in an album - possible?

    Hello

    is it possible to see all the photos that are not in the album?

    Photo on Mac

    THX

    Stefan

    Yes, create smart albums with the rule 'Album isn't everything. "

    For the file menu: file > new Smart album

    This album will contain all the photos that are not in any standard album.

  • How can I get Firefox looking for my computer for the plugins that are already there?

    How can I get Firefox looking for my computer for the plugins that are already there?

    Adobe Flash player is already on my computer from IE 8. How can I get Firefox to see that it is already on my PC and use it so I don't have to download it again and possibly create other problems. Also, in my efforts to download Flash, active Firefox IE that made me concerned that would cause problems that our just leave me where I am now, instance where IE can use a bottle but Firefox cannot.

    Internet Explorer uses a version of the Flash player ActiveX plugin as it does not work with other browsers.

    Download the version of the https://www.adobe.com/products/flashplayer/distribution3.html Plugin-based browsers and make sure Firefox is closed when you install it.

  • Knowledge base of Firefox says that when I click on the button exceptions for blocking popup windows (Tools > options > content) I would like to see a list of allowed sites, but instead, it shows me the websites that are blocked.

    I need to know which sites Web is allowed so that I can remove facebook.om which I allowed to past a video.

    This list shows the sites that are blocked or allowed.

    You can open Facebook, then click on the How do I know if my connection to a Web site is secure? and then press the button "additional information". This opens the Page Info dialog box, go to he Panel permissions and change the option pop up here.

  • How can I see the photos that are not in an album?

    How can I see the photos that aren't in an album in the App "Photos"? I noticed that in the Album 'Pictures' are pictures I thought I deleted already. I would like to see all the photos in an album, so I can finally delete them.

    You can go the the file menu Photos and click New Smart Album, and then set the condition of Album - is not. This will create a smart album that will show you all the photos that are not in any other album.

  • Help - why the songs that are not on my iPhone appearing in my list of app music albums/songs?

    I have over 500 GB of music on my Mac, so I create a playlist for the songs I want to sync my iPhone. Yet when I look at my phone, there are many songs that are not in sync would be playlist. They cannot be read unless the phone is connected to my wifi at home, but I don't want them cluttering up my phone and makes it almost impossible to find the tracks I want to listen to.

    I hate the new music app. For the first time since I converted to Apple 10 years ago, I wonder if I can be forced away because it's so horrible. Why ruin a great product with terrible software? Anyway, if anyone can help me to fix this serious bug, I would be very grateful.

    If you go to the library of the screen and press the red text just below the icons of the album/playlist (where you select whether you want the screen to show the view of the artist/Album/songs downstairs there is a toggle to only show that downloaded music.) If you enable this, then only the songs that are actually ON your iPhone will be in BLACK characters. The rest of your music library to iCloud either won't display at all or be grey. Now - if you have a few streaming, you can see more songs, because the songs that are heard are cached in the memory of the iPhone box and supposedly deleted automatically when it fills up (but not user accessible unless you use some third-party programs).

    What you can do - so they need WiFi or data cell-, it's make a playlist in iTunes that you want on your iPhone. Then (assuming that Apple music and iCloud music library are running on both), you can go to the playlist and press the small cloud/down arrow icon and download these tracks on your iPhone. Then, you can play these songs without access to wifi or cell phone.

Maybe you are looking for