Update stmt on table counts one invalidation in other pll. servers?

Hello,
if I execute an update stmt on a table like this:
UPDATE tab SET usrnm = 'alf' WHERE userid = '123'.
Assume that the same entry already exists!! The table tab already consists of one key field, this is userid and another attribute, this is usrnm. If the UPDATE stmt is executed on the table, is the number of invaldation increased by one? Is this one invalidaiton, also this entry exists already and nothin is "really" updated.
At the moment, I have no possibilty to test this...
any ideas?
thanks, holger

What I mean is:
What happens, if I update a table entry with values that alreay exist?
Normally, each change (UPDATE,INSERT,DELETE) triggers one invalidation. If a table is invalidated or a range of a table or a single entry this is flagged as an invalidation. Thus, the database interface of the affected appplication servers forward queries targeting the invalidated table, table range or table entry to the database./..

Similar Messages

  • How to read a table from one host to other host

    Hi Everybody,
    How to read a table from one host to other host.
    For Example,
    a/a@abcd - host 1
    b/b@xyz - host 2
    suppose im having a table called emp in a/a@abcd
    i want to read the table emp in b/b@xyz
    how to do this.??
    I know that we have to create a dblink...after that how to proceed.
    Plz help..
    Thanks in Advance,
    Gita

    connected as scott/tiger@test
    SQL>
    CREATE DATABASE LINK local
    CONNECT TO admin IDENTIFIED BY pinnet
    USING 'pinnet';
    Database link created.
    sql>
    select count(*) from
    users@local;
    COUNT(*) 
    16
    Message was edited by:
            jeneesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to move table from one tablespace to other tablespace?

    how to move table from one tablespace to other tablespace?

    887274 wrote:
    how to move table from one tablespace to other tablespace?
    alter table <table_name> move  tablespace <new_tablespace_name>;
    Rebuild the indexes; alter index <index_name> rebuild <new_tablespace_name> online;Example;:
    SQL> create table ttt( ID NUMBER PRimary key);
    Table created.
    SQL> insert into ttt values (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL> alter table ttt move tablespace users;
    Table altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 UNUSABLE
    SQL> alter index SYS_C0010863 rebuild tablespace users online;
    Index altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL>

  • How can we copy table from one schema to other schema

    Hi,
    I have create one table in one schema and i want to copy it to other schema.How we can copy table from one schema to other schema

    Hi,
    You can try something like this :-
    SQL> CONNECT SYS/SYS123@SERVER AS SYSDBA
    Connected.
    SQL> CREATE USER TEST_1 IDENTIFIED BY TEST_1;
    User created.
    SQL> CREATE USER TEST_2 IDENTIFIED BY TEST_2;
    User created.
    SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_1;
    Grant succeeded.
    SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_2;
    Grant succeeded.
    SQL> CONNECT TEST_1/TEST_1@SERVER
    Connected.
    SQL> CREATE TABLE TEST_COPY ( TEST_COL NUMBER );
    Table created.
    SQL> INSERT INTO TEST_COPY VALUES ( 1 );
    1 row created.
    SQL> INSERT INTO TEST_COPY VALUES ( 2 );
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> GRANT ALL ON TEST_COPY TO TEST_2;
    Grant succeeded.
    SQL>  CONNECT TEST_2/TEST_2@SERVER
    Connected.
    SQL> CREATE TABLE TEST_COPY AS SELECT * FROM TEST_1.TEST_COPY;
    Table created.
    SQL>  SELECT * FROM TEST_COPY;
      TEST_COL
             1
             2Regards,
    Sandeep

  • Getting error while creating table from one database to other.

    Hi,
    We are getting below error while creating the table from one database to other.
    SQL> create table fnd_lobs parallel compress as select * from [email protected];
    create table fnd_lobs parallel compress as select * from [email protected]
    ERROR at line 1:
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    ORA-02063: preceding line from EEXIT2TEST
    ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
    too small
    Regards,
    Bhatia

    hi
    what are the apps version local and remote database???
    Snapshot too old errors occur because Oracle can 't reconstruct a consistent
    image of a block for the purposes of a consistent read.
    I feel at remote database, you are using UNDO, it will be rather easy to iincrease the undo retention time or increase the undo tablespace size.. if you are dealing with roll back segments, you may have rollback segments whose optimal values are too small...
    increase roll back segments size and select again then
    the following metalink notes might be helpful
    ORA-01555 "Snapshot too old" - Detailed Explanation Doc ID: 40689.1
    How To Avoid ORA-01555: Snapshot Too Old When Running PAAPIMP Doc ID: 603259.1
    OERR: ORA 1555 "snapshot too old (rollback segment too small)" Doc ID: 18954.1

  • Passing internal table from one program to other without using IMPORT

    Hi Experts,
    I need to pass an internal table from one program to other. However i cannot use IMPORT/EXPORT due to some reason. Any idea how this can be done?
    Warm regards,
    Harshad.

    hi,
    for passing itab from one program to another u can use
    IN FIRST PROGRAM WRITE ,
    perform pass_data(SECOND_PROGRAM_NAME) using ITAB.
    in both the program declare itab with same structure.
    if u want to do some changes in that itab and if u want it back in first program then write as
    perform pass_data(SECOND_PROGRAM_NAME) using ITAB changing itab.

  • How do i update a db table using one JSP page

    I created a JSP Form page and I want to update a db table when the user hit submit. Please help my job depends on it Send me small code example below is what I have (very new to JSP)
    <%@ page language="java" import="java.sql.*" import="java.io.*" %>
    <html>
    <head><title>accessing database</title></head>
    <body bgcolor="white">
    <%     Connection con =null;
         try {
    // Load Driver Class File
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    //Make a connection to Data table
    con = DriverManager.getConnection("jdbc:odbc:SportsbookTables", "developer", "developer");
    Statement statement =con.createStatement();
    String SQL = new String("INSERT INTO tblLines (gameID,leagueType) VALUES (5,'gam')");
    statement.executeUpdate(SQL);
    statement.executeUpdate("INSERT INTO tblLines (gameID,leagueType) VALUES (6,'lea')");
    %>
    <table border=1 cellspacing=1 cellpadding=1>
    <form method="POST">
    <p><font color="#800000" size="5">Enter your name:</font><input name="leagueType" size="4"></p>
    <p><input type="submit" value="Submit"></p>
    </form>
    <%
    catch (IOException ioe)
    out.println("IO Exception:");
    out.println(ioe.getMessage());
    catch (SQLException sqle)
    out.println("SQL Exception:");
    out.println(sqle.getMessage());
    catch (ClassNotFoundException cnfe)
    out.println("Class Not Found Exception:");
    out.println(cnfe.getMessage());
    catch (Exception e)
    out.println("General Exception:");
    out.println(e.getMessage());
    finally {
    try
    if (con!=null) {
    con.close();
    catch(SQLException sqle)
    out.println(sqle.getMessage());
    %>
    </table>
    </Body>
    </HTML>

    First I would remove all the JDBC code you have in the JSP and place it in a servlet (or other Java) class, and have your form action call the servlet on submission. Then use the servlet API to extract the form data from the request and pass it to the JDBC in the servlet to update the DB. Once complete have it branch to another JSP/HTML to let the user know if they were successful or not.
    Take a look at some of the online tutorials as they will be helpful with regards to code examples.
    Depending on the size of your project, and deadlines naturally, you may also want to have a look at an MVC architecture and custom tags like Struts from Apache. These can make your job a lot eaiser.

  • How to Import/Export database tables from one server to other in oracle8i

    Hello friend,
    Please can any one tell me how to import/export groups of database tables from one server with oracle to another using VB.net. It would be nice if some one can provide some code of it.
    I am a software developer and I am in middle of a large project development, in which I need to export a large oracle database from one server to another efficiently.
    Its very urgent so please someone help me.

    At command prompt (source db)
    set ORACLE_SID=db_name
    exp system/password@db_name full=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\exp.log filesize=2000M
    Then ftp the export dump files (in binary) to the other server or copy to target server over the network.
    At command prompt (target db)
    set ORACLE_SID=db_name
    imp system/password@db_name full=y ignore=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\imp.log filesize=2000M
    If the path names of the datafiles are going to be different in the target server (as compared to the source), then precreate the tablespaces before import. Set buffer value accordingly.
    Message was edited by:
    FeNiCrC_Neil

  • What I should do If I move fact and dimension tables from one server to other server

    Hi
    I have question like
    what all changes need to be done  in EPM System if we move the Fact and Dimension tables to a different server.
               Reply me asap and thanks in advance

    I have fact and dimension tables in one server and i moved those stuff to another server.If I do that what happen to essbase and about totale EPM System.I want to know how to do this and what I can expect?
    Please reply

  • How to move all the tables from one tablespace to other for a whole schema

    Hi,
    Is there any way to move all the tables in a schema from one tablespace to other?
    If so please help me out to do that.
    Thanks
    Regards
    Gatha

    hi,
    here is the steps to move SCOTT's objects from their current tablespace to a NEW_TABLESPACE
    would be:
    1) do an export of all of scott's objects. Make sure no one modifies them after you
    begin this process. You will lose these changes if they do.
    $ exp userid=scott/tiger owner=scott
    2) you would drop all of scotts tables. This will get the indexes as well. I don't
    suggest dropping the user SCOTT but rather dropping scott's objects. Dropping scott
    would cause any system priveleges SCOTT has to disappear and the import would not restore
    them. This script can be used to drop someones tables:
    set heading off
    set feedback off
    set verify off
    set echo off
    spool tmp.sql
    select 'drop table &1..' || table_name || ' cascade constraints;'
    from dba_tables
    where owner = upper('&1')
    spool off
    @tmp.sql
    3) You would modify the user to not have unlimited tablespace (else the IMP will just
    put the objects right back into the tablespace they came from) and then give them
    unlimited quota's on the new tablespace you want the objects to go into and on their
    temporary tablespace (for the sorts the index creates will do)
    alter user SCOTT default tablespace NEW_TABLESPACE
    revoke unlimited tablespace from SCOTT
    alter user SCOTT quota unlimited on NEW_TABLESPACE
    alter user SCOTT quota unlimited on SCOTTS_TEMPORARY_TABLESPACE
    4) you will IMP the data back in for that user. IMP will rewrite the create statements
    to use the users default tablespace when it discovers that it cannot create the objects
    in their original tablespace. Please make sure to review the file imp.log after you do
    this for any and all errors after you import.
    imp userid=scott/tiger full=y ignore=y log=imp.log
    5) you can optionally restore 'unlimited tablespace' to this user (or not). If you do
    not, this user can only create objects in this new tablespace and temp (which in itself
    is not a bad thing)...
    Regards,
    Mohd Mehraj Hussain
    http://mehrajdba.wordpress.com

  • Updating 2 database tables on one commit action

    I need help regarding how to make the below scenario work.
    I have 2 database tabels say Table A and B.
    Primary key of Table A is ID and that of Table B is ID(of table A)+some other column.
    Table B is exposed as the jspx page to user.
    I have used a sequence to increment ID in table B.When a user adds a new record on page i.e in Table B the ID sequence is incremented.
    But before commiting it to the dabase table B i need to make sure that i have this particular sequence number(record) inserted in Table A.
    I tried to override the doDML() function to insert data into Table A
    protected void doDML()
    DBTransaction trans = getDBTransaction();
    AView = (AViewImpl)trans.createViewObject("adfbc.query.common.AView");
    AViewRowImpl row = (AViewRowImpl)AView.createRow();
    row.setId(getId());
    AView.insertRow(row);
    AView.remove();
    but this doesnt actully commit data to database.
    So when commit operation happens the Table B throws an error saying that the particular ID does not exist in Table A.
    The sequence of operation I am expecting is:
    1. Button Click on Save (UI)
    2. Commit data to dabase for table A (java code)
    3. Commit data to dabtabase Table B for the new ID which is now present in Table A from previous operation.
    4. Return successful message.
    Thanks In Advance

    This is not a JHeadstart related question, you can try the jdeveloper forum
    JDeveloper and ADF
    However, when you press the save button on a JHeadstart generated page the application module will commit all outstanding changes. So you can manipulate those changes by overriding methods in the entity layer like you do. But when you call "AView.remove();" you are removing the data before you commit it.
    I would have entities for Table A and B and override dodml to create a new instance of entity A when inserting a new row for entity B.
    make sure to check for inserts in the dodml method --> if (operation == DML_INSERT)
    Kind regards,
    Ruud Bijkerk
    JHeadstart team

  • Export tables from one database in other.

    hi,
    I want to export the all tables and views (only structure) from remote database in my local database. How can i do the same?
    Is ther anyay to export only 5 rows of each table as export of all rows from table will take lot of space..
    Ashish

    But i dont knw where to write that code.. Can u explain me a bit?I have to say that I don't underdand... Didn't you want export the table structure from one database ? If so, I send you a link to the documentation about the option on the command line which you waited for.
    Moreover, there is an example. I don't know what can I say more ?
    Ah yeah, expdp is an OS prompt command, not sql*plus.
    Nicolas.

  • Transport of Table from one client to other

    Hi All,
    We have different data in the same table for our Production and Quality System. We have updated values in Production system. We want the Production table to overwrite the Development table inorder to have a live testing environment.
    The table should be completely overwritten.
    The table can be viewed by running the transaction FBCJC2. We are on ECC 5.0
    Please help me with instructions how to do this.
    Thanks
    Vijay

    Hi Olivier,
    Thanks for your inputs. I did tried the same but couldn't find things working after which i have requested your for steps just to know there is any particular procedure to follow.
    The table is still showing the same old values even after importing the transport request. I have also checked the option to overwrite while importing.
    Do you think that this could be because of the dependent tables?
    Thanks
    Vijay

  • 2007 Controlling Multiple Pivot Tables with One Filter

    Hello there,
    I'm trying to update two pivot tables using one filter. The different VBA solutions I've tried haven't worked so I'm hoping this community can answer my question.
    I have two pivot tables; they have basically the same information, just two different sets of data; one is orders that are Complete, the other is orders that are Incomplete.
    When I change the filters on the Complete pivot table, I'd like the Incomplete pivot table to filter the same way.
    Any help is appreciate. Thanks!

    The easiest way would be to setup your 2 pivots and turn on the Macro Recorder then go through the steps you want to perform.  The recorder will generate all the code you need.  I just did this exercise and got this . . .
    Sub Macro1()
    ActiveSheet.PivotTables("PivotTable1").PivotFields("PARTY").CurrentPage = _
    "(All)"
    With ActiveSheet.PivotTables("PivotTable1").PivotFields("PARTY")
    .PivotItems("DEMOCRAT").Visible = False
    .PivotItems("REPUBLICAN").Visible = True
    End With
    Range("F1").Select
    ActiveSheet.PivotTables("PivotTable3").PivotFields("PARTY").CurrentPage = _
    "(All)"
    With ActiveSheet.PivotTables("PivotTable3").PivotFields("PARTY")
    .PivotItems("DEMOCRAT").Visible = True
    .PivotItems("REPUBLICAN").Visible = False
    End With
    End Sub
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Cpying / Importing only a few tables structure from one schema to other!

    Greetings,
    Can any one please suggest me the best method to copy the structure of series of tables from one schema to other in a eased way!
    For example:- There is a MC scheama and there are about 1000 tables... and there is a AB schema where I need to copy only structure of 85 selected tables from MC -> AB..
    Please suggest!

    Hi,
    You could use any of the following:
    1) Export 85 tables from source to destination
    2) Use Data Pump Export with Network_link if you are on 10g
    3) Use CTAS (create table as select )
    4) Use DBMS_METADATA.GET_DDL procedure on the source to create a script
    Probably, others would come up with more bright ideas.
    Regards

Maybe you are looking for

  • How to install iTunes error-2096???????

    I got an Ipod Nano this Christmas so I had to update my itunes in order to be able to sync music to it. I have downloaded the newest version multiple times and it doesn't work. When I try to open it, it tells me Quicktime failed to initialize (error-

  • If i dont havr itunes on my dell laptop, how can i get it?

    if i dont have itunes on my dell laptop, how can i get it? i need it to restore my iphone 4 that has never been synced before, because it is disabled.

  • SOAP - Passing HTTP request header

    Hi, all! Please help me... :-) I have deployed a service using Tomcat, and now i need for each method that my service invokes, to know from which IP did the SOAP request come. Basically, I believe it is stored in HttpRequest, but I cant reach it sinc

  • Shared services security and essbase security

    recently upgraded to sys 9 and now use shared services 931 we used to have security at essbase level previously and now its all Shared services.. now i have so many concerns Can we automate the security just like I used to automate in essbase earlier

  • Removing itunes problem

    I had to remove itunes, but after removing my dvd drive and memory stick no longer worked. Re-installed itunes and no problem.......***