Table availability

I have table T_TRX with 10 million records. This table has three FK and its primary key is also referenced in four other tables. I have an ETL process that inserts between 10k - 1 million records and updates around 5k records. T_TRX is a table which needs to be available 24/7 with 20k selects being executed a day as well as 5k DML transactions a day by the end users. T_TRX is partitioned by STG_ID for improved performance of selects. Unfortunately, STG_ID data is unrelated for ETL so cannot be used to exchange partition for data loads.
The ETL process takes less than 25 minutes and one merge statement does the work. T_TRX is a really  important table and needs to be up 24/7. My concern is that if the ETL process has any type of failure or the session is killed and the table turns not accessible, I need a back up for this. I was thinking that I could create a back up of T_TRX before the ETL process starts, and if the ETL process fails for whatever reason, I could have a synonym point to the back up table so the end users can still access and load data.
The problem with this approach is that other than the ETL process, the end users can also load data into this table. So the backup might be outdated and the data loaded by end users lost if they did any kind of DML to the table after the back up was taken. I may be trying to reinvent the wheel, but if the ETL process fails and/ or the session loading the ETL data gets killed, how badly could this affect T_TRX for selects and DML executed by end users?

Rinne wrote:
one merge statement does the work.
Why not?
I suggest tuning it a bit .. doesn't sound that big,
You say the table is partitioned .. how about more information:
a) how is it partitioned?
b) how many indexes are on the table?
c) are any of the indexes partitioned? How?
d) you mentioned 3 outgoing FK. How large are those tables ?
e) you mentioned 4 incoming FKs. Are those columns indexes? (not necessary, just checking)
In my experience, inserting 1 million rows shouldn't take more than about 5 min.
If it's taking longer, you need to tune things ... your database, the table, the query .. in that order.  (ie no point tuning the query if the database isn't setup properly )

Similar Messages

  • Help on accessing table available in SAP R/3 System

    Hi All
    A day before I had posted a question regarding the accessing of tables available in SAP R/3 system. 
    I got the following code as reply.  This code is working fine. 
    But in the below example, the QUERY_TABLE IS BSAUTHORS. 
    In my case, the QUERY_TABLE is VBKD(Sales Document Table). 
    When I replace the table name with VBKD in place of BSAUTHORS, I am getting the following error:
    ERROR  BEGIN----
    com.sap.mw.jco.JCO$AbapException: (126) DATA_BUFFER_EXCEEDED: Selected fields do not fit into structure DATA
         at com.sap.mw.jco.JCO$Function.getException(JCO.java:17978)
         at com.sap.mw.jco.JCO$Client.execute(JCO.java:3143)
         at com.insync.JCO.UpdateSalesOrder.main(UpdateSalesOrder.java:34)
    ERROR END----
    Can anyone please give me a solution for this?
    Thanks in Advace,
    Vijay.
    **********************Code**********************
    import com.sap.mw.jco.*;
    public class JcoTest {
    private static JCO.Client theConnection;
    private static IRepository theRepository;
    public static void main(String[] args) {
      createConnection();
      retrieveRepository(); 
      try {
      JCO.Function function = getFunction("RFC_READ_TABLE");
      JCO.ParameterList listParams = function.getImportParameterList();
      listParams.setValue("BSAUTHORS", "QUERY_TABLE");
    //listParams.setValue("VBKD", "QUERY_TABLE"); // ERROR
      theConnection.execute(function);
      JCO.Table tableList = function.getTableParameterList().getTable("DATA");
      if (tableList.getNumRows() > 0) {
       do {
        for (JCO.FieldIterator fI = tableList.fields();
          fI.hasMoreElements();)
          JCO.Field tabField = fI.nextField();
          System.out.println(tabField.getName()
               + ":t" +
               tabField.getString());
         System.out.println("n");
       while (tableList.nextRow() == true);
      catch (Exception ex) {
       ex.printStackTrace();

    I am also facing the same issue when using 4-way CPU for processing RFC_READ_TABLE I get following error (Error: DATA_BUFFER_EXCEEDED: Selected fields do not fit into structure DATA) .
    when I set the NO_DATA=X in RFC_READ_TABLE then returned data object is empty , is this expected behavior  ? if yes then how do we extract data without getting this error .Help is greatly appreciated

  • Error trying to relate tables "...either doesn't exist or doesn't have a relationship to any table available in the current context"

    I have two tables;
    The first is my Order table which has a single row for each unique order - there are no duplicate order numbers.The order id column here is called
    OrderID.
    The second is my Submissions table which is similar to a transactions table, there are multiple submissions for every order. This table also contains an
    OrderID column that contains the relevant OrderID.
    The submission table also contains a calculated field called Date and a calculated field called
    MaxDate field which is the date of the most recent submission that relates to any particular order in cases where there are multipple.
    My goal is to add a column to the Order table this MaxDate column. The reason for duplicating the information rather than linking the tables is because I need to create more calculated columns in the
    Orders table based on this value.
    I have created a relationship between the two tables however when I use:
    =RELATED(Submissions[MaxDate]
    I get this error:
    "...either doesn't exist or doesn't have a relationship to any table available in the current context"
    I don't really understand why this would be, because MaxDate definitely exists and contains only numerical values. What is more strange is that if I try and combine the data through a pivot table it actually works! I can create a pivot with OrderID in the first
    column and then associate it with MaxDate from the Submissions
    table as the value. 
    Can anyone help me understand what is the problem here?
    P.S. if it is useful the formula I'm using to calculate the MaxDate is:
    =MAXX(FILTER(Submissions,Submissions[OrderID] = EARLIER(Submissions[OrderID])),[Date])
    Thanks.

    Maracles, is this still an issue?
    Thanks!
    Ed Price, SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Help on accessing tables available in SAP through Java

    Hi All
    I want to access some tables available in SAP through my Java program.  Do I have to write any code for database connectivity or straightaway I can write SQL statements in my Java code?
    Can anyone please suggest the sample code for this?
    Thanks in Advance,
    Vijay.

    Hi,
    You need JCO(Java Connector)
    Check this sample code.
    import com.sap.mw.jco.*;
    public class JcoTest {
    private static JCO.Client theConnection;
    private static IRepository theRepository;
    public static void main(String[] args) {
      createConnection();
      retrieveRepository(); 
      try {
      JCO.Function function = getFunction("RFC_READ_TABLE");
      JCO.ParameterList listParams = function.getImportParameterList();
      listParams.setValue("BSAUTHORS", "QUERY_TABLE");
      theConnection.execute(function);
      JCO.Table tableList = function.getTableParameterList().getTable("DATA");
      if (tableList.getNumRows() > 0) {
       do {
        for (JCO.FieldIterator fI = tableList.fields();
          fI.hasMoreElements();)
          JCO.Field tabField = fI.nextField();
          System.out.println(tabField.getName()
               + ":t" +
               tabField.getString());
         System.out.println("n");
       while (tableList.nextRow() == true);
      catch (Exception ex) {
       ex.printStackTrace();
    private static void createConnection() {
      try {
       theConnection = JCO.createClient("000", "DDIC", "minisap", "en", "sincgo", "00");
       theConnection.connect();
      catch (Exception ex) {
       System.out.println("Failed to connect to SAP system");
    private static void retrieveRepository() {
      try {
       theRepository = new JCO.Repository("saprep", theConnection);
      catch (Exception ex)
       System.out.println("failed to retrieve repository");
      public static JCO.Function getFunction(String name) {
        try {
             return theRepository.getFunctionTemplate(name.toUpperCase()).getFunction();
        catch (Exception ex) {
         ex.printStackTrace();
          return null;
    Regards
    vijay

  • Is there any system table available to check no. of entries in the table?.

    Hi
    Is there any system table available to check the no of entries in the table.
    Note : the table may be whether SAP table or Z-table.(All tables)
    Regards
    Raja.

    Hi Raja,
    I don't think so. Instead, try to perform
    SELECT count(*) FROM dbtab.
    ...to get the number of records of the table dbtab.
    I hope this helps. Kind regards,
    Alvaro

  • Can anyone tell what are the fact tables and dimension tables available in banking domian

    what are the fact and dimension tables available in banking domain.
    maximum how many fact and dimension tables we can keep in the banking project

    Hi Srikanth Korrapati,
    Please have a look on this book
    The Data Warehouse Toolkit: The Complete Guide to Dimensional Modeling By Ralph Kimball & Margy Ross.
    Here is the below link completely about the Banking Case Study from DW Toolkit.
    The Data Warehouse Toolkit: The Complete Guide to Dimensional Modeling - Banking Case Study
    Hope this will help you out
    Regards,
    Akhileshkiran.

  • Standard view table available for MARA and MARC

    Hi Guys,
                    Any standard view table available for MARA and MARC ?
    Thanks

    hi,
    what exactly you mean to say by "std . view table"??
    MARA in the main table give has all general information..
    Regards
    Priyanka.P

  • "Bitmap file: No color table available (True Color, Bitcount 32)"

    When I tried to import a bitmap file into SAP R3 by using T code SE78 -> Graphics->BMAP, I got an error message "Bitmap file: No color table available (True Color, Bitcount 32)".
    How can I fix this?
    Thanks in advance!
    Fisher Li

    I followed the answer here and it did not work for me
    I used freware called GIMP to save the image as 24 bit (after choosing the file name at save, you get to set this in the advanced options).  This worked.
    I tried rescaling the image to be smaller and this made no impact on my ability to load the image.

  • The logics for ALL calc key figures (CKF) - Table available?

    Hello experts,
    I am going through a project here to convert a lot of CKF / RKF in BI Queries.
    There are 100's of them and what I want to do is to be able to see all the formula's used in one list as opposed to go through each on in query designer which is , as we all know, a big pain to use.
    Is there a  table in BI (RSZ something?) which will give me a list of all the CKF's in the system and the arthimatic used to calculate them... most of the CKF's im interested are calculated using RKF and is usually simple logic.
    If there is an easy way of seing the formula then this will help me lots.
    thanks for any ideas
    Iksit
    (BI7)

    Hello Sudheer
    2LIS_02_HDR, ITM and SCL do not take data from S011 but directly from transactionnal tables like EBEP, EBKO, EBPO (names quoted from memory).
    So you have to look for the key figures from those tables and not the one in S011.
    Historically, the three datasource were built to replace 2LIS_02_S011 but the calculations to rebuild the keyfigures were delivered in BW in an old BCT that made the conversions. The logic and modeling have changed completely.
    If you really need to transfer S011 to BW without remodelling the data, you may want to use a generic extractor based on S011 (provided you have a delta key available).
    Otherwise, in SBIW, Options for datasource specific to the application, Logistics, purchasing, you have two customizing transactions. you have to define branch and process key to load data into BW. But that will not have any effect to LBWE.
    Hope this helps.
    Regards
    Fabrice

  • How to update the table available in BADI method

    Hi Friends,
    I have to implement one badi ME_REQ_POSTED for purchase requistion, in this badi  I have to read first line item and do
    some check...if that check is true i need to update subsequent line item (line 20, 30, 40 or so) with purchase group and MRP controller.
    In this BADI i have method POSTED, in this method parameter IM_EBAN is a table which i need to modify with my different
    values for purchase group and MRP controller.
    Kindly let me know how to update this table, so the changes can be reflected in purchase requistion.
    Since when I tried to directly modify the table in a loop, system throw one error stating IM_EBAN can not be modified.
    kindly help.
    pradeep

    hi
    I have implemented this exit but it does not stop at it while saving Purchase requistion. But my previous BADI stops at it when saving.
    Kindly guide.

  • Need table available in General Ledger

    Dear All,
    Can any one explain me the list of tables availble in General Ledger Module in oracle-applications, including join-conditions....
    Regards
    Subash
    Edited by: user12070109 on Oct 19, 2009 5:03 AM

    Hi Subbu,
    It's indeed difficult to identify tables which are important in GL. You must be aware the basic object of GL is track all financial transactions (journals), for this you need an A/C, a calendar and a currency... Any tables associated with these activities are important for GL (Technically :) )... Some tables which hold key info on GL are as below...
    GL_SETS_OF_BOOKS                 : This is the main table of GL which capture info about SOB of a business
    GL_JE_BATCHES          : This table will provide info about Journal batches
    GL_JE_HEADERS          : Provides info about Journal header
    GL_JE_LINES          : Provides info about Journal lines
    GL_BALANCES          : This will give you the current blance of an a/c
    GL_CODE_COMBINATIONS     : This is used to capture all the GL code combination.. accounting segments
    GL_DAILY_RATES                       : This table is useful when you use any currency other than your functional currency in trx.. this captures info abount conversion of rates betwqeen 2 currencies
    GL_PERIODS : This provides status about a GL Period.. whether it is open or closes etc...
    GL_JE_SOURCES & GL_JE_CATEGORIES : these tables used to capture journal sources info  (Payables, inventory, receivable etc..)  and journal category info...
    You can use below query to get all tables of GL..
    Select * from all_objects where object_name like 'GL%' and owner='GL' and object_type='TABLE'
    and (object_name not like 'GL%ALLOC%')
    and (object_name not like 'GL%CONS%')
    and (object_name not like 'GL%MC%')
    Hope this will help..
    Regards,
    S.P DASH

  • To make a table available for maintanance(very urgent Pls!)

    Hi ,
    My requirement is .I need to create a Z custom table to which  some default values are to be maintained.
    My question is...
    1) what is the delivery class that i need to give while creating that Ztable?
    2) How to make it open for maintanence? Do i need to create a maintanance view for this???
    Please Let me know.
    Thanks in advance.

    Hello Sudha,
    1) The delivery class that you need to give while creating the table is Z.
    2) To make it open for maintenance, you need to go to utilities--->Table Maintenance generator
    In th table maintenace generator you will have to  assign an authorization group. Create a function group and assign it in the Function group and also give the Developement class/ Package
    Choose the maintenance type as one step
    After filling all this say create .
    Now the table is ready for maintenance through SM30.
    I hope this helps.
    Thanks,
    Kalyan

  • How to create a form from a table available from a database link?

    Hi,
    I have a table accessible via a database link.
    It is working perfectly, but I cannot create a from using the wizzard.
    It says: "Primary Key must be specified."
    But there is a primary key in the source database!
    Best regards,
    Sebastien (Geneva)

    a little more about dblink:
    i have a view in the dblink
    when i execute
    insert into ias_time_of_acc(ias29, end_acc_period, start_acc_period, acc_last_date_id, comp_date_id, active)
    values(:p4110_ias29, to_date(:p4110_end_acc,'DD.MM.YYYY'),
    to_date(:p4110_start_acc,'DD.MM.YYYY'),:p4110_last_date, :p4110_comp_date,'N');
    i've got this err:
    ORA-01461: can bind a LONG value only for insert into a LONG column ORA-02063: preceding line from OFSA_OWNER@OFSA_TO_ORCL
    and when i execute
    a:= to_date(:p4110_start_acc,'DD.MM.YYYY') ;
    b:= :p4110_last_date;
    c:= :p4110_comp_date;
    d:= :p4110_ias29;
    insert into ias_time_of_acc(ias29, start_acc_period, end_acc_period, acc_last_date_id, comp_date_id, active )
    values(d, a,to_date(:p4110_end_acc,'DD.MM.YYYY'),
    b, c,'N' );
    everything is working properly
    so problem is in the lenght of insert statment i think.

  • List of tables available in all modules

    hi,
    sap gurus,
    good evening to all,
    can i know where can i get the list of important tables for each module.
    regards,
    balaji.t
    09990019711

    Hi Balaji,
    Please go through this link it will help you about SAP tables
    http://www.erpgenie.com/abap/tables_sd.htm
    I hope it will help you,
    Regards,
    Murali.

  • Is "The Java ME Device Table" available in XML?

    Hello,
    I read that the Mobility Device Matrix of Mobility Center has been updated. There is a web page to list devices by their J2ME capabilities.
    Is there any way to obtain this list in xml format?
    It'll be very helpful for server side of OTA deployment.
    Thanks

    according to http://www.sun.com/rss/ , there is no XML feed for this.
    You could always make a simple application to parse the page to XML yourself.

Maybe you are looking for

  • Ordered wrong iPad cables

    I ordered the wrong cables for my iPad 2. I just received the component av cables but I meant to order the digital av adapter. The question is I ordered them from the apple store online last week. They came today. Instead of returning them can I just

  • IPhoto '08 & editing a Web Gallery page

    Once iPhoto generates and uploads a Web Gallery, can the main page be edited?? Specifically, in the upper left corner is a rectangle with "My Gallery". I would like to edit that text - "Bob's Gallery" or "Susan's Gallery", etc.

  • Adobe Premire Elements 10 corrupted - HELP!!

    When attempting to start my Adobe Premiere Elements 10, I get the following error: "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Adobe\Adobe Premiere Elements 10.lnk is not a valid Win32 application".  I found the premiere elements folder in

  • DATA STORE

    Dear All,         I have one query for sm04.I want to know that in sm04,we can see no. of users logged in sap..Now in which table dynamically it will store.when i generate any report i want to dispaly that no of users login. Regards shivam.

  • Batch schedule several webi reports

    hi, all i have lots of webi reports to schedule, and it's time consuming to do it one by one, any method can schedule them in batch mode. boe 3.1 sp3. thanks in advance. Ada