Help on a database view

What database view would you use to ascertain whether transactions are being committed?
Thanks
Karthik

A badly written application will have lots of uncommited records that is shown in V$TRANSACTIONS view. If you see many uncommited transactions then get the developers do the application tuning. This may also lead to many locks.

Similar Messages

  • Help with a database view/table

    Hi,
    I have seperate oracle9i database on one machine (UNIX).
    Myview view has poor performance in dbtest, but it has good performance in dbdev.
    Both DBs are having relatively similar configuration.
    When I set the autotrace on I realized the indexes are in place on both databases.
    But it takes 2 times more to query dbtest than dbdev.
    Here is the difference when I query both views and the autotrace is on:
    SELECT id from Myview; on DBTEST:
    Statistics
    105 recursive calls
    0 db block gets
    83147 consistent gets
    456 physical reads
    0 redo size
    2777 bytes sent via SQL*Net to client
    400 bytes received via SQL*Net from client
    10 SQL*Net roundtrips to/from client
    4 sorts (memory)
    0 sorts (disk)
    122 rows processed
    SELECT id from Myview; on DBDEV:
    Statistics
    105 recursive calls
    0 db block gets
    42537 consistent gets
    267 physical reads
    0 redo size
    3601 bytes sent via SQL*Net to client
    414 bytes received via SQL*Net from client
    12 SQL*Net roundtrips to/from client
    4 sorts (memory)
    0 sorts (disk)
    157 rows processed
    How can I identify where the problem is? Why "consistent gets" and "physical reads" parameters are about 2 times in DBTEST. I believe this is why I have poor performance in DBTEST.
    Could someone give me a clue on how to idetify the issue?
    Thanks

    "I have seperate oracle9i database on one machine (UNIX)."Correction: "I have two seperate oracle9i database installed on one machine (UNIX).
    Can anyone help me with this? If you need more infor let me know.
    Thanks in advance.

  • Queston about database view creation

    I would like to ask whether I can view including 2 tables with left outer join relationship?
    i.e. a outer join b on ....
    thanks!

    You can use only projection view or database view in your ABAP program.
    <b>Projection view</b>
    Just retrieves some fields from only one table.
    <b>Help view</b>
    This is used for search help.
    <b>Database view</b>
    This is inner join view.
    Views in the ABAP Dictionary are implemented as inner joins. If you want to include all of the data from the outer table, you can program a left outer join in ABAP.
    See http://help.sap.com/saphelp_nw04/helpdata/en/aa/47349a0f1c11d295380000e8353423/content.htm for more reference.
    Ps: Reward points if helpful.

  • Probelm with Database View in Search help

    Save Environment. Save Yourself.
    Hi Experts!!
    We have a customized database view, which has 6 fields from KNA1 tabkle. Now I have added one more field T001-BUKRS. But this field is not appearing in search help tab. Can anybody tell me what can be the problem?
    Thanks a lot!!
    I'm not an environmentalist.  I'm an Earth warrior.

    Save Environment. Save Yourself.
    Hi Experts!!!
    I have got the problem. I didnot add the new field in search help
    Thanks a lot!!!
    I'm not an environmentalist.  I'm an Earth warrior.

  • Difference among the Help view,Database view and Maintanance View

    hi,
    can Anyone pls let me know the Difference among the Help view,Database view and Maintanance View
    thanks&regards
    rama

    The followings are different types of views:
    Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    Help View ( SE54)
    Help views are used to output additional information when the online help system is called.
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.
    Go thru this link plzz
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    1.Go to se11
    2. select view radiobutton and give a name
    3. Create
    4. select type of view you want to create. Such as database view.
    5. give short description
    6. give a table name such as mara
    7. press the pushbutton relationship. here you will find all the tables which are allowed to create view with mara.
    8. select one or mane tables.
    8 copy
    9.save , check and activate.
    The followings are different types of views:
    Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    Help View ( SE54)
    Help views are used to output additional information when the online help system is called.
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.
    Go thru this link plzz
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    Go thru this link plzz
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    Hope this is helpful, Do reward

  • Hi,  difference between database view and elementary search help

    hi
    pl.  can any one tell me the difference between
    database view and elementary search help, 
    and  help view and elementary search help,
    and database view and help view.
    in the output i do not see any difference.
    thanx.
    rocky robo

    HI
    An entire table can be included in a database view. In this case all the fields of the included table will become fields of the view (whereby you can explicitly exclude certain fields). If new fields are included in the table or existing fields are deleted, the view is automatically adjusted to this change.
    Database view:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/36/74c0358373003ee10000009b38f839/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/36/74c0358373003ee10000009b38f839/frameset.htm</a>
    Elementary search help:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/8b/415d363640933fe10000009b38f839/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/8b/415d363640933fe10000009b38f839/frameset.htm</a>
    Help view:
    Help views are used if a view with an outer join is needed as selection method in a  search help.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/42/81c1351181b73fe10000009b38f839/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/42/81c1351181b73fe10000009b38f839/frameset.htm</a>
    Regards,
    Gunasree

  • What is the use of Database View, maintenace , projection and Help view

    hello friends,
    I created tables..and set check table relation.
    how to create Database View, maintenace , projection and Help view
    phani

    Hi,
    have a look at this.
    4 type of views
    database
    maintainance
    help
    projection view
    check this link as well
    (https://forums.sdn.sap.com/click.jspa?searchID=9904886&messageID=4885135)
    Database views are implemented with an equivalent view on the database.
    Projection views are used to hide fields of a table (only projection).
    Database views should be created if want to select logically connected data from different tables simultaneously.
    Database views implement an inner join.
    Application programs can access the data of a database view using the database interface. (Just as we write select queries on database tables, we can write them for views as well.)
    Includes in Database Views
    An entire table can be included in a database view. In this case all the fields of the included table will become fields of the view (whereby you can explicitly exclude certain fields).
    To include one of the tables in the view, enter character * in field View field, the name of the table to be included in field Table and character * again in field Field name on the View fields tab page of the maintenance screen of the view.
    You can also exclude individual fields of an included table. If you do not want to include a field of the included table in the view, enter - in field View field, the name of the included table in field Table and the name of the field to be excluded in field Field name.
    Inserts with Database Views
    If a database view contains only one single table, data can be inserted in this table with the view .
    You have the following options for the contents of the table fields not contained in the view:
    If the field is defined on the database with NOT NULL as initial value, the field is filled with the corresponding initial value.
    If the field is defined on the database as NOT NULL without initial value, an insert is not possible. This results in a database error.
    If the field is not defined on the database as NOT NULL, there will be a NULL value in this field.
    A maintenance view permits you to maintain the data of an application object together.
    The maintenance status determines which accesses to the data of the underlying tables are possible with the maintenance view.
    Read only: Data can only be read through the view.
    Read, change, delete, insert: Data of the tables contained in the view can be
    changed, deleted, and inserted through the view.
    Read and change: Existing view entries can be changed. However, records
    cannot be deleted or inserted.
    Read and change (time-dependent views): Only entries whose non-time
    dependent part of the key is the same as that of existing entries may be
    inserted.
    Maintenance View ( SE54 )
    You can use a maintenance view to maintain data, which is distributed over several tables, at the same time.
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Creating maintenance View:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecdf446011d189700000e8322d00/frameset.htm
    regards,
    vipul

  • Plzzzzzz i need a small help in database view

    Hi i have created a database view on your instructions it was executed with small warnings but the values in that tables are not transfered to this database view while activating it was showing some warnings and after that i had tried to execute that i tried see the values in that but there are no values in the database view so what to do know please give me any suggestions

    hi
    we made this query by using this we are getting perfect output but by using this query the performance is going slow so thats why we want to create  view in order to increase sever performance
    SELECT  ALIFNR AEBELN BVGABE BEBELN CNAME1 CNAME2 C~LIFNR
            DMATNR DTXZ01
            DWERKS DNETWR DMENGE DMWSKZ EKOSTL EPS_PSP_PNR
    FROM (   EKKO AS A
          INNER JOIN EKBE  AS B ON  BEBELN = AEBELN
          INNER JOIN LFA1  AS C ON  CLIFNR = ALIFNR
          INNER JOIN EKPO  AS D ON  DEBELN = AEBELN
          INNER JOIN EKKN  AS E ON  EEBELN = AEBELN )
          INTO
          CORRESPONDING FIELDS OF
          TABLE RTAB_ALV WHERE  B~VGABE = '2'.
    thanks yar.

  • Database View do not refresh in ADF application

    Greetings,
    im facing a weird problem in my application (JDeveloper 11.1.2.4.0 - ADF). All this time i was working directly with tables (VO), but now i also started using database views.
    Everything works fine, when i add a new row in a table that my Database Views is associated with, it refresh properly.
    BUT if i delete rows manually from my database, the View do not refresh in my application, not by refreshing the page,
    redeploying application, even executing the view object query inside the view object. The only way for the DB View to be
    refresh inside the JDeveloper and on deployment time is by restart JDeveloper. I try adding an action on my OV to re-execute them when
    i do something specifically, hopefully the will reset the cache and retrieve the DB view again, but with no luck..
    Correction: now it doesnt even refresh on restart jdeveloper.
    Just for the clarification, im talking about Database Views, and not just Object Views. I create a Object View inside the application to retrieve the data
    from the Database View results.
    Can you help me on this please?

    Yes the queries in SQLDeveloper was showing me correct results.
    But i feel disappointed.. When i went to close SQLDeveloper to try something, it pop me a message to commit/rollback changes.
    After i commit them, my app show correct results too.

  • Set operator NE in Database View creation in  join condition

    Hi Experts,
         I have a requirement to set NE(not equal) operator in join condition of Database View creation. Could you please help me how to set in operator.
    Join condition :
    Ex : BSAK-AUGBL NE BSAK-BELNR.
    You know that by default operator is '='. i want to set NE in place of '='.
    Thanks,

    Hi Chinna,
    Check whether if there is any possibility or not to include more key fields like bukrs, lifnr, gjahr etc in the where condition, so that you query may result faster. Then, there won't be any necessary to create the view.
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • How to delete a record in Database View?

    HI All,
    I have created a Database  View using tables LIKP,LIPS,VBUK,VBUP.
    In that view I am getting a extra record which is not exit in any tables
    but its getting in database view.
    I tried buffer memory refresh and even tried SE16n , SE11(thro CODE(DELE))..But record has not been
    deleted.
    Plz suggest wat shud i have to do to delete the record.
    Thanks in advance and help realy appriciate.
    Regards
    Steve

    >
    Steve Johnson wrote:
    > In that view I am getting a extra record which is not exit in any tables
    > but its getting in database view.
    Your intention should be in search of the root of that extra record. Not the deleting it without knowing anything.
    Sure, You have put join conditions correctly?
    Cheers

  • Z Database view is not showing all the entries?

    Hello
    Last year I have created a Z table, say, its name is Z_TABL_1, its working fine, say, there is around 1000 entries in PRD, well
    Last week I have created another 2nd Z table, its name is Z_TABLE_2, now it has 50 entries in PRD
    In both tables the key field os the same (VISITOR_NUMBER) and there is only one key field in both tables, its the same
    When creating the 2nd table I forgot to specify the CHECK table relationship in 2nd table refering 1st table, I mean, dependent table is 2nd whereas reference is 1st table
    Now, I created a database view, say, my_db_view on these 2 tables.
    When I opened this my_db_view in SE16, I expected 1000 (this 1st table count) entries, but am seeing just 50 (the 2nd table has only 50 entries) entries!!
    Pls. let me know how can I view all the 1000 entries in SE16 for my_db_view?
    Thank you

    Hi,
    in your DB view tables are joined and database views implement an inner join (you can check here: http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ecab446011d189700000e8322d00/content.htm), that's why the system extracts only 50 records.
    It's not possible to have all the 1000 records using a database view.
    Marco

  • Progammatic update a table with a database view  in the page

    Hi All,
    I am using JDev 11g. With FOD database schema, I have one database view Products which comes from two tables Products_Base and Product_Transactions. I created three EOs (ProductEO, ProductsBaseEO, ProductTransactionsEO) and three VOs (ProductVO, ProductsBaseVO, ProductTransactionsVO) based on their EOs respectively.
    Here is my scenario. I have an ADF form which is based on the database view Products and is dragged and dropped from Data Controls->ProductVO. When an existing record is submitted, a backing bean method will be called to update the data against the table Products_Base (and the table Product_Transactions at the same time) programmatically. An update method updateProductPrice() is added into the Application Module and published it to UI Client. The submit button in the page is created by directly dragging and dropping Data Controls->updateProductPrice into the page. When I run it, I got the following error message,
    Failed to post data to database during "Update": SQL Statement "UPDATE PRODUCTS ProductEO SET COST_PRICE=:1 WHERE PRODUCT_ID=:2".
    What I don't understand here is that, in my update method updateProductPrice(), it supposes to update the table Products_Base. But from the error, it appears that it is trying to update the view Products. Can anyone give me a help on what I did wrong here? When I try to debug it, it throws an exception to this line in the method updateProductPrice(),
    getDBTransaction().commit();
    Here are my codes,
    The method which got called in the backing bean
    public String cb6_action() {
    DCBindingContainer bc = (DCBindingContainer)getBindings();
    FacesCtrlAttrsBinding ProductId = (FacesCtrlAttrsBinding)bc.get("ProductId");
    FacesCtrlAttrsBinding CostPrice = (FacesCtrlAttrsBinding)bc.get("CostPrice");
    JUCtrlActionBinding action =
    (JUCtrlActionBinding)bc.findCtrlBinding("updateProductPrice");
    DCDataControl dc = action.getDataControl();
    ApplicationModule am = (ApplicationModule)dc.getDataProvider();
    AppModule service = (AppModule)am;
    service.updateProductPrice(new Long(ProductId.toString()), CostPrice.toString());
    return null;
    public BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    The update method defined in the Application module (AppModuleImpl.java)
    public void updateProductPrice(long productId, String costPrice) {
    ProductsBaseEOImpl product = retrieveProductById(productId);
    if (product != null) {
    try {
    product.setCostPrice(new Number(costPrice));
    getDBTransaction().commit();
    catch (JboException ex) {
    getDBTransaction().rollback();
    throw ex;
    catch (SQLException ex1) {
    getDBTransaction().rollback();
    private ProductsBaseEOImpl retrieveProductById(long productId) {
    EntityDefImpl productDef = ProductsBaseEOImpl.getDefinitionObject();
    Key productKey = ProductsBaseEOImpl.createPrimaryKey(new DBSequence(productId));
    return (ProductsBaseEOImpl)productDef.findByPrimaryKey(getDBTransaction(),productKey);
    Edited by: john wang on Oct 27, 2009 7:14 AM

    or
    merge into test
    using (select rowid rid
                , id
                , sub_id
                , startdate
                , lead (startdate) over (order by id, sub_id) - 1 ed
           from test) x
    on (x.rid = test.rowid)
    when matched then
       update set end_date = x.ed
    ;

  • Short Dump while fetching values from a Database view

    Hi ALL,
    Here is the code that is giving short dump
    SELECT * FROM ZVMATLMOVE INTO TABLE I_MATLMOVE
        WHERE BUDAT >= V_LASTRUN_DATE
        AND   WERKS IN S_WERKS
        AND   LIFNR IN S_LIFNR
        AND   EBELN IN S_EBELN
        AND   MATNR IN S_MATNR
        AND   BWART IN S_BWART
    (Please don't say that I am using * in the select query,
    I knew that it is not a good way of fetching values)
    Declaration of the internal table is:
    DATA  I_MATLMOVE LIKE ZVMATLMOVE OCCURS 0 WITH HEADER LINE.
    The variable V_LASTRUN_DATE is:
    DATA  V_LASTRUN_DATE LIKE SY-DATUM.
    We will be getting the lastrundate value from another table. And it is passing correct value (ex. 20060731)
    ZVMATLMOVE is a database view created for MKPF and MSEG table. And I checked both table were consistent.
    Dump Analysis:
    Runtime errors         DBIF_RSQL_SQL_ERROR          
    Exception              CX_SY_OPEN_SQL_DB
    Every thing is fine. But I don't know how it is going to dump. Any suggestions?

    Hi !
    It seams that your table is not correct / fully activated.
    To check it out you should try the following:
    - Go to the SE11
    - Give it your table name and go to "Display"
    - Check if the table is "active"
    - Choose "Utilities->Database Object->Check" and see
      if there are any errors
    - go back and choose "Utilities->Runtime Object->Check"
      and see if there are any errors
    If there are any errors - try to activate the table again. You may need the "Utilities->Database Utiliy" for that.
    After there are no more errors by checking all these your program should work.
    Regards
    Rainer
    Some points would be nice if thate helped a bit.

  • How to get access key while creating database view in R3

    Hi all experts,
    I am new to SAP so please forgive my ignorance.
    From R3, I am trying to create a new database view named ZVENDOR_ATTR  which will be based on LFM1.
    When i go to SE11 -> chose view and click create then it shows a pop up window that says "you are not registered as a developer. Please register in the Online Service System (OSS). In the OSS you will receive an access key."
    I don't know how can i get the access key and proceed now. Please note that i have installed this BW3.5 and R3 on my laptop. From the default user ddic, i have copied and created a new user 'sapuser1'. I am now using the sapuser1 to logon  and attempting to create the above mentioned Database view. It seems like this sapuser1 as it is copied from ddic is not a developer.
    So anybody can please help  how to create/get this access key to proceed  further.
    I will give full points. Please help.
    Thank you so much in advance
    ak

    Thanks All,
    Does it mean that i can not create any database object without the access key from service.sap.com? As i told that i installed this BW3.5 / R3 on my laptop to train myself but i don't have an account on service.sap.com.
    However i can login to R3 system as admin (i have access to the system using ddic or spcpic). Is there a way that a new user with deveoper role can be created by the admin without going to service.sap.com.
    Please advise.
    Thanks.
    ak

Maybe you are looking for

  • Can I open a CS2 file in CS4 without any problems?

    I need to send a file to someone with CS4, and I'm still running CS2. I'd like to know if they'll have any trouble before I send it.

  • Problem with playlists iTunes 10.5.2

    I downloaded the latest iTunes and noticed after downloading that the order of the songs on my playlists have completely changed, I know it seems like a minor problem but it's rather annoying especially when I have playlists with over 1000 songs with

  • Question about Xmod.. Need answer

    I'm really **bleep** Interested in the X-Fi technology and all that. Firstly the Xmod compared to other X-Fi devices... will the output sound be same in all the cases? look upon here: http://www.atomicmpc.com.au/article.asp?SCID=88&CIID=67889 Apart f

  • Weblogic 8.1: Remote/Foreign Server JMS - Destination not found error

    Hi This is our current setup: Weblogic Server 8.1 with JMS module running on the same instance as the application. We would like to move JMS out into its own box. I am currently setting up my development environment to test the new setup. These are t

  • Need to profile the jdk 1.1.8

    Hello Friends, I need to profile a java app which is targeted for jdk 1.1.8. In absence of the jvmpi interface, is there a way that I could do it through the native header files (in the Include directory). Studying those header files, and the native