How to check if data is being inserted into table?

Oracle 10.2.0.1.0
I have a long running transaction, an insert based on select running from SQLPLUS. It is running for more than 2 hours as the volume of data is extremely high ( more than 2 million records ).
How do I check:
1) The volume of data that is already inserted?.
This is to make sure the session is not "hung", but is actually inserting records into the table.
Thanks

I have a long running transaction, an insert based on select running from SQLPLUS. It is running for more than 2 hours as the volume of data is extremely high ( more than 2 million records ).
How do I check:
1) The volume of data that is already inserted?.If there is a commit statement then you can directly query the table for number of rows inserted.
This is to make sure the session is not "hung", but is actually inserting records into the table.To confirm if it is running or not you can query dba view like dba_extents for that objects you can look into bytes or blocks which should increase if you query is running.
Hope this helps
Virendra

Similar Messages

  • How  to load the data from excel  file  into table in oracle using UTL_FI

    How to load the data from excel file into table in oracle
    and from table to excel file
    using UTL_FILE package
    Please give me some example

    This is something i tried in oracle apex
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Regards,
    CKLP

  • Data is not inserting into table

    Hi Team,
    I am inserting data into a custom table.
    but my records are not inserting into table
    //CO File
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createEmployee");
    // am.invokeMethod("init");
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("Apply") != null)
    OAViewObject vo = (OAViewObject)am.findViewObject("TestEmpVO1");
    String NAME = (String)vo.getCurrentRow().getAttribute("Name");
    Number employeeNumber = (Number)vo.getCurrentRow().getAttribute("Num");
    String NUM = String.valueOf(employeeNumber.intValue());
    am.invokeMethod("apply");
    MessageToken[] tokens = { new MessageToken("EMP_NAME", NAME),
    new MessageToken("EMP_NUMBER", NUM) };
    OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_CREATE_CONFIRM", tokens,
    OAException.CONFIRMATION, null);
    pageContext.putDialogMessage(confirmMessage);
    else if (pageContext.getParameter("Cancel") != null)
    am.invokeMethod("rollbackEmployee");
    TransactionUnitHelper.endTransactionUnit(pageContext, "empCreateTxn");
    // End CO
    //AMImpl
    package oracle.apps.fnd.framework.toolbox.labsolutions.server;
    import oracle.jbo.Row;
    import oracle.jbo.Transaction;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.domain.Number;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OARow;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.server.OAViewObjectImpl;
    // --- File generated by Oracle Business Components for Java.
    public class TestEmpAMImpl extends EmployeeAMImpl
    * This is the default constructor (do not remove)
    public TestEmpAMImpl()
    * Container's getter for TestEmpVO1
    public TestEmpVOImpl getTestEmpVO1()
    return (TestEmpVOImpl)findViewObject("TestEmpVO1");
    * Creates a new employee.
    public void createEmployee()
    OAViewObject vo = (OAViewObject)getTestEmpVO1();
    // Per the coding standards, this is the proper way to initialize a
    // VO that is used for both inserts and queries. See View Objects
    // in Detail in the Developer's Guide for additional information.
    if (!vo.isPreparedForExecution())
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    // Required per OA Framework Model Coding Standard M69
    row.setNewRowState(Row.STATUS_INITIALIZED);
    } // end createEmployee()
    public void apply()
    getDBTransaction().commit();
    * Sample main for debugging Business Components code using the tester.
    public static void main(String[] args)
    launchTester("oracle.apps.fnd.framework.toolbox.labsolutions.server", "TestEmpAMLocal");
    //End AmImpl
    Please suggest.
    Thanks,
    Ajit

    Ajit,
    Its always a good idea to close the thread with an explanation. It will help others whenever they are into similar situation.
    --Shiv                                                                                                                                                                                                                                                                                               

  • How do you keep display only fields from being inserted into tables?

    Morning I have a problem where I am displaying a couple fields on a screen and they are tring to insert in to a table.
    I am running Apex 4.1 on 11Gr2, i am building a set of screens, on the first one the user inputs a subject ID, that branchs to a second screen that uses the subject id to do a lookup for a couple fields for display. there are a couple field the user feels in and a row is inserted in to a differnet table. But Apex is tring to insert the lookup fields in to the second table when I really only need the subject ID.
    How can I tell Apex which fields to use in the insert and which not to try to uses. I see in the debug it is getting all the screen fields in the inserty statement.
    Thanks

    In the insert process, take the cols out which you don't want to insert, say,
    insert into tbl (col1, col2, ....) value (p1, p2, ...)
    =>
    insert into tbl (col1, col5, ....) values (p1, p5, ...)

  • Could anyone tell me how to read 4 lines altogether and insert into table

    Hi ,
    I want to load the below data into table by using sql loader.
    First 4 lines should insert in one single row in table and again it should from '01' load the next 4 lines in another row.
    01suresh
    02works
    03in
    04bankok
    01kumar
    02works
    03in
    04abudabi
    01Raju
    02works
    03in
    04france
    Could you please give me some suggestion how i can accomplish it.
    Thanks in advance.
    Regards,
    Vino

    user1142030 wrote:
    First 4 lines should insert in one single row in table and again it should from '01' load the next 4 lines in another row.Not a problem, use CONTINUEIF. Control file:
    LOAD DATA
    INFILE *
    REPLACE
    CONTINUEIF NEXT PRESERVE(1:2) != "01"
    INTO TABLE continueif
    TRAILING NULLCOLS
    DUMMY FILLER POSITION(1:2),
    COL1 TERMINATED BY '02',
    COL2 TERMINATED BY '03',
    COL3 TERMINATED BY '04',
    COL4 TERMINATED BY '01'
    BEGINDATA
    01suresh
    02works
    03in
    04bankok
    01kumar
    02works
    03in
    04abudabi
    01Raju
    02works
    03in
    04france Now:
    SQL> create table continueif(
      2                          col1 varchar2(10),
      3                          col2 varchar2(10),
      4                          col3 varchar2(10),
      5                          col4 varchar2(10)
      6                         )
      7  /
    Table created.
    SQL> host sqlldr scott@orcl/tiger control=c:\temp\continueif.ctl log=c:\temp\continueif.log
    SQL> select * from continueif
      2  /
    COL1       COL2       COL3       COL4
    suresh     works      in         bankok
    kumar      works      in         abudabi
    Raju       works      in         france
    3 rows selected.
    SQL> SY.

  • Date pblem while inserting into table

    hi
    i have table with fields
    USERID VARCHAR2(20)
    TIMEEMTRY DATE
    EVENTID VARCHAR2(20)
    TERMINALSN VARCHAR2(20)
    FSHIFTIN DATE
    while i try to insert using the following statment
    INSERT INTO TEmPATT VALUES ('16',to_date('19/04/2007 7:47:26 PM','DD/MM/YYYY HH:MM:SS AM'),'OUT','00111DA02C14',NULL)
    it shows fomat codeappears twice
    but when i eleminate the time part then it inserts ie
    INSERT INTO TMEPATT VALUES ('16',to_date('19/04/2007','DD/MM/YYYY'),'OUT','00111DA02C14',NULL)
    without using to_date it shows invalid month
    please suggest a solution
    Thanks and regards

    The format for minutes is MI not MM.

  • Data not getting inserted into table Hxt_Add_Assign_Info_F

    Hi,
    Can any one tell me as to when data is inserted into the table Hxt_Add_Assign_Info_F.
    Lately this table has not been getting updated.
    Thanks
    Zicky

    Hi Sharath,
    Thanks alot for the info, it seems that data had not been entered for certain employees in that form and hence the problem.
    Even then, I guess it will be a day or 2 before they will be able to see their in/out timings.
    Regards
    Zicky

  • File to RFC problem- data is not inserting into ztable in R3 system

    Hi
    i have done File to RFC scenario which picks data from flat file and inserts into ztable via RFC in R3. but while testing my scenario everything is successful in XI monitoring (Successful flag in MONI and RWB) and in auditlog message status is DLVD.
    it seems to be everything successful in XI and RFC call also successful in R3 system.
    but for some reason data is not inserting into table (RFC is used to insert data into ztable)
    Is there any way to debug RFC call excecution in XI..?
    RFC code is like this:
    insert ZMM_AUTO_GR from INPUT_TABLE.
    commit work.
    END FUNCTION.
    please advice what could be the reason not inserting into table.
    Help would be appreciated.
    Regards,
    Rajesh

    Hi Praveen,
    please see audit log- from communication channel monitoring..
    Receiver channel 'CC_INCA_RFC_SAPECC_Receiver' for party '', service 'R3DCLNT210' (internal name 'RfcClient[CC_INCA_RFC_SAPECC_Receiver]')
    Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=210, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=jsaha, jco.client.sysnr=00, jco.client.ashost=ausr3devdc02}
    Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=210, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=jsaha, jco.client.sysnr=00, jco.client.ashost=ausr3devdc02}
    Current pool size: 1, maximum pool size : 1
    Channel History
    - OK: 2008-07-28 04:32:04 PDT: Message processed for interface ZAUTO_GR_STAGE_INCA
    - OK: 2008-07-28 04:31:04 PDT: Message processed for interface ZAUTO_GR_STAGE_INCA
    - OK: 2008-07-28 03:56:56 PDT: Message processed for interface ZAUTO_GR_STAGE_INCA
    - OK: 2008-07-28 03:49:04 PDT: Message processed for interface ZAUTO_GR_STAGE_INCA
    - OK: 2008-07-28 03:48:04 PDT: Message processed for interface ZAUTO_GR_STAGE_INCA

  • How to check loaded data Master Data Hierarchy?

    Hi
    Please let me know the way of checking available data which was loaded into the Master data hierarchy objects.
    when i go into that particular infobject's hierarchy it is showing maintain hierarchy in its infoprovider execute function colum. How to see the data of it. coz i have to cross check whether the data has been loading/not.
    Thanks

    Hi,
    For Example:
    If its a 0Customer Info Object , then in the 0Customer hierarchy table data can be checked in the H - table.
    That is in the 0Customer info object in the Hierarch Tab there will Hierarchy table /BIC/HCUSTOMER when you double click it you can see the data loaded to it.
    Regards,
    Adhvi

  • How to check the data of an archived table.

    I have archived a table created by me. I have executed the write program for the archiving object in SARA. Now how can check the data of my archived table.

    Hello Vinod,
    One thing to check in the customizing settings is your "Place File in Storage System" option.  If you have selected the option to Store before deleting, the archive file will not be available for selection within the delete job until the store job has completed successfully.
    As for where your archive file will be stored - there are a number of things to check.  The archive write job will place the archive file in whatever filesystem you have set up within the /nFILE transaction.  There is a logical file path (for example ARCHIVE_GLOBAL_PATH)where you "assign" the physical path (for example UNIX: /sapmnt/<SYSID>/archivefiles).  The logical path is associated with a logical file name (for example ARCHIVE_DATA_FILE_WITH_ARCHIVE_LINK).  This is the file name that is used within the customizing settings of the archive object.
    Then, the file will be stored using the content repository you defined within the customizing settings as well.  Depending on what you are using to store your files (IXOS, IBM Commonstore, SAP Content Server, that is where the file will be stored. 
    Hope this helps.
    Regards,
    Karin Tillotson

  • How can I find out the place from where a record is being inserted in table

    Hi,
      I want to find out the exact code statement from the SAP code from where record is being inserted into a SAP table. I tried ST05 SQL trace but it seems to only give the SQL statement and not the program from where it is being fired (unless you guys can show me a way to find it from the trace)
      I m trying to see that when sales order is changed in VA02, from which piece of code in SAP the tables CDHDR and CDPOS get update. Also I tried using SE30 but it doesnt seem to give the results properly. Please help.
    Thanks for reading

    Hello Srikrishna,
    Did you try the following?
    In your trace with ST05:
    i) Find the line that you are interested, right-click and select 'Display ABAP Source'.
    OR
    ii) Go to Trace List menu and click 'Summarize Trace by SQL Statement'. Then here, select the line you want and again right click to see 'Display ABAP Source'.
    Regards,
    Guven.

  • How do i insert into table through forms

    Hi
    I have developed a custom form based on custom table.
    the only way to insert data into database table is through form.
    there are two tables: one table is to store all contract details & second table is to maintain history forthis.
    one condition(col1,col2,col3,col4) are unique combination,we are not creating any PK or FK at database level.evrythng is captured at form level.
    if all 4 columns combination exist thn e should not insert that record.
    if 4 columns combination doesnot exist then insert into table.
    I have used just pre insert,pre update triggers.
    I think its a basic form functionality ,by itself it inserts ,update record.now it is doing the same thng.
    But I have to add the above condition ,how can i do that.
    Pl provide me some ex code .
    Thank you.
    Hope any one can help me

    SQL> create table t
      2  (object_id    number
      3  ,object_name  varchar2(30));
    Table created.
    SQL>
    SQL> create sequence t_seq;
    Sequence created.
    SQL>
    SQL> insert into t (object_id, object_name)
      2  select t_seq.nextval
      3        ,object_name
      4  from   all_objects
      5  ;
    52637 rows created.

  • How to insert into table when ID auto increment?

    I have a table Employee with EmloyeeID, EmployeeName, Email...
    When i design table in database, i created a Sequence and then Trigger for EmployeeID to auto increment.
    Now in ADF, actually in my web form: I don't want enter values for EmployeeID to insert into table,
    but still error : required for EmployeeID...
    how can i do it? Thanks

    User,
    Always mention your JDev version every time you start a new thread.
    Check this out : Andrejus Baranovskis Blog: How To Implement Gapless Sequence in ADF BC
    -Arun

  • APD process is active, How to trigger the data from BI to CRM table

    Hi All,
    I want to send data from BI system(using APD method) to CRM table (ADS method).
    I am able to see the table for e.g ABCD in CRM system , i can open using SE11 , but data is 0.
    In BI , i have data in DSO and i have mapped it in APD process to data Target to CRM system and APD is active.
    Now i want to know how to trigger the data from BI to CRM table? (e.g ABCD).
    Please let me know the steps.
    Regards.
    Nithi.

    Hi
    Just create a Process Chain to execute this APD method, if the process Chain is already available, then just insert this Process in to the process Chain and execute the Process Chain by normal process, by hoe we do in general.
    Hope it solves...

  • How to send message when insert into table

    hi
    how i can send message to the users when some one insert data in table
    example :like outlok when when i have new message message comes to tell me
    that i have new message please help

    hi for all and thanks for replay
    the idea is not send mail.
    the idea is when some one insert into table new record i want a message comes
    to tell me that theres new record inserted but i dont want to intrupt my job on the form. i just want message to tell me that. without any action from me just like outlook or messenger
    i tried to make timer then from the when-timer-expired i show stacked canvse that comes from right down corner of screen.
    but i think its not a good idea becouse i have more that 30 form in my project
    i hope my question is clear

Maybe you are looking for

  • Every time I try to import a CD I get "iTunes has stopped working"

    I updated to the new 9.0.3.15 version of ITunes a couple of weeks back and ever since I have not been able to import CD's? It seems it works with every else syncing etc but not importing CD's. Every time I try to import a CD it will start then within

  • Using an Animated GIF/JPEGs Effectively

    I have an animated GIF in an applet with around 200 frames, moving at a speed of 6 frames per second. However, when just drawing it in paint(), it looks extremely messy with the flashing. Then I tried another tack, and exported the gif as 200 jpeg fi

  • How to  trigger specific DB event on msg content basis- DTD is same,

    Hi, Scenario is like this: I will receive PO from diff. customers(set up in Oracle B2B) , all sending in same DTD format(3A4 PIP), all msg will routed to iStudio via IP_IN_QUEUE (queue mngt provided by Oracle B2B), being published by AQ adapter & sub

  • Scale-out deployment is not supported in this edition of reporting services

    Can the "scale-out deployment" option be turned off so that I can migrate SSRS databases from Enterprise edition to Standard?  After I attached databases from a SSRS 2005 Enterprise to SSRS 2012 Standard I am getting an error about scale-out deployme

  • Crystal Report - Title from Select Expert.

    Hi Experts ! I need some help here. Recently I have build a new crystal on the production analysis. Part of the select expert for record is between posting date A and posting date B. Below is the code I uesd for the select expert whereby Posting Date