How to check how this table is populated in PL/SQL

Hi,
This is based on assumption that it using a trigger , function or procedure to update this table tbl1
how can i find out how tbl1 is being updated ? do i check thru those "referenced by" ?
or it updating another table set off a trigger that updates tbl1A can i find out from tbl1's details i.e those referenced by ?
pld advise as i do not know how tbl1 is being populated with certain data
tks & rdgs

Dependencies can help only if table populated with static SQL, placed in stored procedures.
Any kind of dynamic SQL or direct SQL-calls from client can't be tracked in such manner.
But You can try to query V$SQL in order to find exact statements modifying table.
My favorite way to solve such issues - SQL*Trace.

Similar Messages

  • How to  check whether any table(s) required to shrink on database

    Hi,
    How to check whether any table(s) required to shrink on database
    Regards,
    Venkat

    Venkat wrote:
    Hi,
    Thi is Oracle 10g. How to use this?. I am not using toad etc...
    I am on SQL prompt.
    Regards,
    Venkat.
    for starter
    Generate Script to Shrink Segment Advisor Recommendations [ID 1171054.1]
    Automatic Segment Advisor in Oracle 10g Release 2 (10.2) [ID 314112.1]
    10g and above SEGMENT ADVISOR [ID 242736.1]
    Cheers

  • How to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.

    Hi Experts,
    Kindly let me know
    how to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.
    Also, in the database level too ,Do we need to write any trigger for this?
    Thanks in advance.

    Hi,
    How to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.
    Please check the following links:
    Oracle EBS - Number of Users logged into EBS / Oracle Applications currently
    List all users currently logged in on Oracle EBS
    Also see forum Search:
    Forum Search: Logged In EBS User
    Also, in the database level too
    Please see:
    https://forums.oracle.com/message/9225094#9225094
    Do we need to write any trigger for this?
    Yes you may, But I personally suggest you not to do so as it may affect performance.
    Thanks &
    Best Regards,

  • How to check how much memory

    How to check how much my macbook pro has left and also why does my battery charger get really hot?

    If your question is how much space is on your HDD, then click on the HDD icon on your desktop and the COMMAND 'I'.  That will give you a window with that information.
    If you want to examine RAM usage, open Activity Monitor>System Memory.
    Your battery charger will get hot if you are using your MBP for a long period of time but should nor get 'really hot'.  I you have concerns, bring it to an Apple store for evaluation.
    Ciao.

  • How to check how many source systems are connected to my BW system?

    Hi friends
    how to check how many source systems are connected to my BW system?
    Regards
    BN

    Hi All,
    Thanks a lot for your help. its resolved now with your help.
    Regards
    BN

  • How to check how much space taken by each account

    Could you kindly advise how to check how much space is taken by each account?
    Thanks and regards

    For more information use a utility such as OmniDiskSweeper or put in a larger hard drive.
    Freeing Up Space on The Hard Drive
      1. See Lion's Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Also see Freeing space on your Mac OS X startup disk.
      5. See Where did my Disk Space go?.
      6. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.

  • How to check from which table data is picking by datasource 0CDCY_ACT_ATTR

    Hi Experts,
    Could you please help me in finding out of the table from which datasource 0CDCY_ACT_ATTR is extracting.
    As per my knowledge is should be extract from tables(infotypes) HRP5135 - 5141.If i am wrong please correct me.
    Issue : My extractor(0cdcy_ACT_ATTR) is bringing wrong ACT_TYPE (Eg :5010) where as in table HRP5141 for that particular OBJID it is 9180( different).
    Please help me why my extractor is bringing ACT_TYPE 5010.
    This standard datasource and using Function Module :  RCF_BIW_GET_ACTIVITY, How can i check from which table it is picking the data
    Thanks in Advanve
    Sree

    Hi Sree,
    In RSA3 on the first screen, you have the option to start debugging by marking the debug check box, once you put all the selections, click on execute and it will go to debug mode, then keep on pressing F5. It will debug your code line by line, then you can check for all the select statements.
    Or once the debugging is started you will have the option to put break point on all the select statements in one shot, you can get in touch with your ABAP team.
    Regards,
    Durgesh.
    Edited by: Durgesh Gandewar on Jul 24, 2011 8:20 PM

  • How to check a XMLTYPE table for corrupted (not invalid!) XML records ??

    Hello,
    I'd like to get help on the following issue, please. I need to check the XML data in a number of tables with XMLTYPE data type. Some of the data is corrupted but in terms not that the XML format is wrong but there is no XML at all in the fields but just only, for example, control characters (no tags, no anything, just corrupted data).
    So, I have made a PL/SQL procedure cursor to get all the tables from a list, and then another cursor inside to browse each table for corrupted records. But can you help me how to check this? Any of the XML functions like for example: XMLIsValid, isFragment(), getrootelement(), etc. return to me an Oracle error "ORA-31011 XML parsing failed" and the procedure gets stuck on the first found bad record. But I need to continue and check all of them. Is it possible to get the ORA-31011 error with EXCEPTION, write to a logging table the corrupted record ID, and then continue?
    Here is my simple procedure:
    CREATE OR REPLACE PROCEDURE CHECKXML (v_schema in VARCHAR2)
    IS
         v_Message     VARCHAR2(254);
         sql_stmt1     VARCHAR2(1000);
         sql_stmt2     VARCHAR2(1000);
         c1           SYS_REFCURSOR;
         c2           SYS_REFCURSOR;
         cur_tab          varchar2(100);
         cur_appl     varchar2(100);
         cur_rec     varchar2(200);
         valid_flag     number;
         criteria     VARCHAR2(20);
         tab1          VARCHAR2(20);
         tab2          VARCHAR2(20);
    BEGIN
         criteria := 'XMLTYPE';
         sql_stmt1 := 'select id, path from ' || v_schema || '.stubfiles where type=:bcriteria';
         open c1 for sql_stmt1 using criteria;
         loop
         begin
              fetch c1 into cur_tab, cur_appl;
              exit when c1%notfound;
                   insert into system.log_table values (sysdate, v_schema, 'next table', 'id ' || cur_tab, 'appl ' || cur_appl, '');
              sql_stmt2 := 'select t.recid, t.xmlrecord.isFragment() from ' || v_schema || '.' || cur_tab || ' t';
              open c2 for sql_stmt2;
              loop
              begin
              fetch c2 into cur_rec, valid_flag;
                   exit when c2%notfound;
                   insert into system.log_table values (sysdate, v_Schema, 'next record', 'id ' || cur_tab, 'recid ' || cur_rec, 'valid ' || valid_flag);
                   commit;
              EXCEPTION
                   WHEN OTHERS THEN v_Message := sqlerrm;
                   dbms_output.put_line('Error for ' || cur_tab);
                   dbms_output.put_line('-' || v_Message);
                   insert into system.log_table values (sysdate, cur_tab, 'id err' || c_Row.ID,'appl err' || c_Row.path, v_Message,'');
              end;
              end loop;
              close c2;
              commit;
         end;
         end loop;
         close c1;
         commit;
    END CHECKXML;
    Thanks in advance
    Evgeni

    Hi
    Why do you use a GTT? Just keep your xml in memory...
    HTH
    Chris

  • How to check the way table S066 is updated through VKM3

    Hello Experts!
    I'm debbuging transaction VKM3. This is used to release open orders. Within this functionality infostructure S066 (credit managment for open orders) will be updated.
    My problem is that I can't see the values it's using to update the table because it is being updated through a "commit work and wait" statement.
    this is where the update takes place:
    include MV45AF0B_BELEG_SICHERN
        if call_function = space or us_syncron = charx.
        if us_syncron = space.
            commit work.
        else.
           commit work and wait. " This is getting executed
        endif.  
    I've already activated the update mode debugging (so it's calling all the update functions registered through "call fucntion in update task"), but I think it's calling some system functions (not sure about it).
    Is there a way to check how the update takes place?
    thanks in advance for your help!

    Hi,
    Yes there is another way where you view the values used to update S066.
    As Rob said you can get the details through ST05.
    Else after we do the UPDATE DEBUGGING ON and once a COMMIT WORK  statement is encounted then the debugging session will open in another screen there goto menu path Breakpoints->Breakpoints at->Statement----"UPDATE"....
    Similary for "INSERT" & for "MODIFY". This will stop at all the DB tables update where in if S066 is updated then definetly it will stop at S066 UPDATE.
    Please try this once and let me know if any.
    Regards,
    Srinivas

  • How to check if internal table exists in dynamical called subroutine ?

    Hi,
    in a dynamically called subroutine i'm using a internal table, but in some calls this table is not exist.
    How can i check in the code whether the internal table exist or not ?
    regards,
    Hans

    In Horst Keller's blog /people/horst.keller/blog/2005/05/27/abap-geek-10--everything-functions-150-but-how my issue is talked about :
    All other parameters are handled in a way as they were declared as global data objects in the top include of the function group, that can be used only during the execution of the function module: They are visible throughout the function group but you can access them only while the function module is active. If you access such a parameter and the respective function module is not executed, you get the runtime error GETWA_NOT_ASSIGNED (Why? Well, technically thos guys are represented via field symbols which are valid only during the runtime of the function module).
    The code is in SD pricing. Sometimes the code is called from function module PRICING_BUILD_XKOMV or PRICING_SUBSCREEN_PBO where TKOMV is defined as globalized parameter.
    And sometimes it is called from function module PRCING_CHECK where TKOMV is NOT defined as parameter.
    In the call of last function the dump occures on the ASSIGN statement :
         data: ls_tkomv like line of tkomv,
                  lv_tablename(30) type c value 'TKOMV[]'.
        field-symbols: <lfs> type any table.
         assign (lv_tablename) to <lfs>.
         if <lfs> is assigned.
    Any suggestions to solve the issue ?
    regards,
    Hans

  • How to check how many tables used in one particular program

    Hi Gurus,
          I am wondering how to check for how many tables are used for one particular  program whether its a custom (Y* or Z* program) or
    a sap program (R*) .I have tried ST05 .But its not satisfactory .Could u help me plz in this  regard .
    Thanks in Advance !!!!!!!!

    hi,
    Go with the transaction se80
    select type as the Progarm
    in the below block provide your program name.....
    there u can find the drop down of your object related tables, types, fields, etc.....go with the tables u can find the respective information of the tables....
    or
    go with the se30
    and enter the program name...
    and go with the trips and tricks....
    u can find the drop down of the
    abap objects performanceexamples....
    and go with the required thing.....
    then u can find the required....
    Cheers,
    Brahma

  • How to check fastest growing tables in db2 via db2 command

    Hi Experts,
    You might feel this very silly question on this forum, but still because of some requirement’s I need that. I'm new to db2 and basis so please bare my immatureness.
    Our DB size is growing faster @ 400/500 MB per day from last 15 days, which is supposed to be not more than 100 MB per day. We want to check the fastest growing tables. So i checked the history in db02 transaction and select the entry field as per 'Growth'. But for the given specific date it is showing nothing. Earlier we had same issue some 3 months back that time it used to display with same selection criteria.
    So I want a db2 command to execute and check the fastest growing table on database level. Please help guys. Early reply must be appreciated.
    PFA screenshot. DB version is DB2 9.7 and OS is Linux
    Thanks & Regards,
    Prasad Deshpande

    Hi Gaurav/Sriram,
    Thanks for the reply..
    DBACOCKPIT is best to go i agree with you but on DBACOCKPIT though our data collector framework and rest all the things are configured properly but still it is not working. It is not changed from last 1 year, and for same scenario 3 months ago it has displayed the growth tables.
    Any how i have raised this issue to SAP so let the SAP come back with the solution on this product error.
    In the mean while @ Experts please reply if you know the DB level command for getting the fastest growing table.
    I'll update the SAP's reply for the same as soon as i get, so that the community should also get the solution for this..
    Thanks & Regards,
    Prasad Deshpande

  • Give me hints how to re-create this table for best performance

    Dear Friends,
    I do not have any experience in good database desiginig practices. please advise me on this issue.
    i have this table here, it gets only data inserts mostly 99%, no deletes, and very very few updates that is neglizable, please suggest me best storage parmteres,physical attributes. how much PCT FREE, PCT USED,INIT TRANS, MAX TRANS etc, all the i didnt use this storage clauses when i design tables. just a plain table design only. please give me idea, so that i can undesratand with this example and i can use for other tables in my application, our database is Oracle 8i.
    this is OLTP application this table is importnat for all transactions.
    this table gets 3000 records per day, but the number will increase in future.
    CREATE TABLE ticket_master(ticket_no VARCHAR2(20) CONSTRAINT tick_mas_pkey PRIMARY KEY,
    name_of_the_passenger     VARCHAR2(50), /* 10 to 15 characters max */
    nationality          VARCHAR2(50), /* 10 to 15 max */
    passport_id_no          VARCHAR2(50), /* 10 max */
    place_of_issue          VARCHAR2(50), /* 12 max */
    issued_by          VARCHAR2(50), /* 12 max */
    date_of_issue          DATE,
    trip_id               VARCHAR2(20) CONSTRAINT tick_mas_trip_rkey REFERENCES trip_master(trip_id),
    seat_no               VARCHAR2(5), /* 2 only */
    class               VARCHAR2(50), /* 3 to 5 max */
    fare               NUMBER(10,2),
    payment_instrument_no     VARCHAR2(20),
    boarding_from           VARCHAR2(50), /* 10 to 15 max */
    dropping_point          VARCHAR2(50), /* 10 to 15 max */
    journey_from           VARCHAR2(50), /* 10 to 15 max */
    journey_to          VARCHAR2(50), /* 10 to 15 max */
    paid_at               VARCHAR2(50), /* 10 to 15 max */
    gender               CHAR(1));
    and do you want me keep only this table into a seperate table space if so, give me a CREATE command for creating table space with best paramaters as a example.
    thanks in advance.

    My $0.02
    1) Since there are no deletes from the table, PCTUSED isn't going to be much of a factor.
    2) The default PCTFREE of 10% will probably work just fine.
    3) The table design doesn't have any not null constraints. Certainly the primary key and your FK trip_id should be not null. Things like date_of_issue and gender are probably mandatory columns also. The existance of not-null constraints help the CBO in optimizing queries.
    4) It sure looks like the table could be normalized. Particurlarly the nationality column could be brought out into a nation_master table. The resultant FK could then be a number(5,0) which would make the table quite smaller (thus faster to query)...
    5) Keep the table stats up-to-date as the table grows. Let the CBO take care of the rest...

  • How to  check document flow table of  a document

    Hi,
    There is existing report and additional data needs to be added to existing report.
    Its SD.
    It is required that i display a field only when FI document is created.
    i.e :
    of Claims Paid : If FI document is created for a claim.
    So, for this i need to know how to check whether a FI document has been created or not. As i don't even know the order number.
    Is there any way to find this??
    Please help me on this!!
    thanks

    Hi,
    Rashi here is the Link for VBFA to BSEG
    VBFA-VBELN here VBELN is primary key
    BSEG-VBELn here VBELN is foreign key.
    So proceed.
    Hope my answer helps you.
    Cheers!!

  • How to check if database/table exists in MYSQL

    I am writing a program which accesses databases in MYSQL, is there any way to check if the databases exists on the MYSQL server and if not create one && to check if a table exists and create one of if it does not

    OK, found out that as special permissions needed to create databases I assume it cannot be done via my app but how about Tables

Maybe you are looking for

  • PR for the material which is out of stock

    Hi All,       can anybody tell me how e can create a  PURCHASE REQUISITION for the material which is out of stock?

  • I can't see my shapes in Pages.

    Hi all, first post so be gentle !  I'm using Pages for the first time hoping to get away from the hateful MS Word but I've run into my first problem.  I have added shapes to the page but cannot see them.  If I get ready to print then I can see them o

  • XML Report in Crystal Report Viewer

    I'm trying to see a report build with crystal report XI release 2 in my jsp page using java reporting component, this report uses an xml file as datasource; I'm developing with websphere 5.1.1 i have the following error: JRCAgent1 detected an excepti

  • Failure of some component

    Error message: Error on switching in renew: NS ERROR UNEXPECTED. Component returned failure code: 0x8000ffff NSERROR-UNEXPECTED [ns]PrefBranch.getCharPref] Id: none Everytime I try to open Firefox this message appears and is removed only upon a reboo

  • Payments other than USD

    Hi, We have an issue like this: we maintain only two set of house bank accounts, LKR and USD and when we are paying for EUR vendor we have an issue. We can not execute our payments using F110 as our house banks are LKR and USD only. What happens is w