update a single table of production to dev

Oracle 9.2 in production and dev

I need to update a table from production to dev, only data refresh.

What is the best way to do it?

truncate table in dev, and then use the dblink to connect prod dev. then use insert... .dev in select... from prod.table

OR
import/export

Please throw some lights
Thank you.
S.

Tags: Database

Similar Questions

  • How can I update a single parcel in multi graphic of xy trace?

    Hi all

    I'm working on a 'before' HMI for a larger acquisition/analysis system, which includes monitoring the continuous performance of a turbine. The results of the measurements are stored arrays of contour lines, which represents the openings of turbine efficiency and guide of pallets. This analysis is all running in the background. In the GUI, performance data are loaded from file when the specific report' is requested and is plotted in a XY Chart. I would like to indicate the current operation of the machine using a pitch which is a single point. So a position of this point among the contour lines indicates the current performance of the turbine. This point is updated once per second, while performance data remain the same for considerable amounts of time between recalculations (days or weeks).

    Is it possible to update the value from a single source in a conspiracy of several XY graph without having to redraw all parcels?

    I tried to use the 'Active Plot' property, which does not work.

    My current solution is to keep all the input data to the execution of the while loop and replace a subset of table plot, but which of course requires the entire rewrite whenever the plot of operating point is updated.

    You can't redraw a single parcel. If you want to update a single parcel, you must keep all parcels in a shift that and replace the desired field data. However, your problem seems much simpler than that. To display a single point on a ground almost static, you have several options.

    1. You can use a cursor that is controlled by program (the style can be a point, do not allow to drag).
    2. You can use annotations.
    3. You can use the "plot images" feature which allows you to use the picture controls to draw anything on top a chart.

    None of these ideas need a refresh of the data.

    I think that the idea of cursor is probably the easiest and most appropriate. Just use a node of property with the following properties:

    • active cursor
    • cursor x position
    • cursor position y
  • How to read a table of product download?

    If you generate a table of product on the supplier portal site download, what exactly counts as a "Download"? Only new customers, or re - installs also or even updates?

    "All those you listed" meant that the chart displays everything you mentioned: new installs, updates, reinstall.

    If you want something different, you generate a report instead, you download a CSV file and then make your own graph in a spreadsheet or whatever. Some of us create our own few tools to do this kind of thing.

    There are also third-party services such as Distimo.

  • single table hash clusters

    I created a hash cluster single table like this:

    create tablespace mssm datafile 'c:\app\mssm01.dbf' size 100 m
    Segment space management manual;


    create the cluster hash_cluster_4k
    (id number (2))
    size 8192 single hash table is id hashkeys 4 tablespace mssm;

    --Also created a table cluster with the line size such as single record corresponds to a block and inserted 5 records each with a separate key value


    CREATE TABLE hash_cluster_tab_8k
    (number (2) id,)
    txt1 tank (2000).
    txt2 tank (2000).
    tank (2000) txt3
    )
    CLUSTER hash_cluster_8k (id);


    Begin
    because loop me in 1.5
    Insert in the values of hash_cluster_tab_8k (i, 'x', 'x', 'x');
    end loop;
    end;
    /
    exec dbms_stats.gather_table_stats (WATERFALL of the USER 'HASH_CLUSTER_TAB_8K' = > true);


    Now, if I try to access the folder with id = 1 - it shows 2 I / O (cr = 2) instead of the single e/s as provided in a hash cluster.



    Rows Row Source operation
    ------- ---------------------------------------------------
    1 ACCESS HASH_CLUSTER_TAB_8K HASH TABLE (cr = 2 pr = 0 pw = time 0 = 0 US)


    If I run the query, even after the creation of a unique index on hash_cluster_tab (id), the execution plan specifies access hash and single e/s (cr = 1).

    This means that for a single e/s in a single table hash cluster, we create a unique index? It will not create an additional burden to maintain an index?

    What is the second I/o necessary for in the case where a unique index is absent?

    I would be very grateful if gurus could explain this behavior.

    Thanks in advance...

    user12288492 wrote:
    I ran the query with all 5 id values and the results have been more confusing.

    During the first inning, I had VC = 2 for two values of keys, the Czech Republic rest = 1
    During the second inning, I = 2 for a key value, the Czech Republic cr rest = 1
    In the third set, I had VC = 1 for all values of keys

    The effects vary depending on the number of previous runs and the number of times you reconnect.
    The extra CR is a cleansing of the block effect. If you check the access of the buffer (events 10200-10203), then you can see the details. Simplistically, if you create your data, then connect and interrogate one of the lines (but not id = 5, because that will be cleaned on the collection of statistics) you should be able to see the following numbers:

    cleanouts only - consistent read gets                                        1
    immediate (CR) block cleanout applications                                   1
    commit txn count during cleanout                                             1
    cleanout - number of ktugct calls                                            1
    Commit SCN cached                                                            1
    redo entries                                                                 1
    redo size                                                                   80
    

    On the first block visited, Oracle made a visit to buffer to untangle a YVERT cleaning (ktugct - get the commit time). This cleans up the block and caches the acquired RCS. The rest of the blocks that visit you in the same session should not be cleaned because the session can use the updated SNA caching to avoid needing a cleanup operation. Finally all the blocks will have been cleaned up (which means that they will be written to the disk) and the extra CR stops happening.

    There is a little quirk - drain plug seems to apply to the format block calls - and I do not understand why this was did not each row inserted thereafter.

    Concerning
    Jonathan Lewis

  • Retrieve a single table with RMAN

    Hello
    I'm working on a database of Oracle 11 g Release 11.1.0.6.0 - 64 bit Production With the Real Application Clusters option.

    I did a bad update on a table.
    I have a level 0 backup before the update
    Is it possible to recover the unique table in an instant before the update with RMAN?

    Thanks in advance.

    Samuel

    This is called a point in time recovery.

    Here you must create an auxiliary database from the backup.

    If you have space in your current server then you can create it here or otherwise in another server.

    1 restore the system, sysaux, cancellation and this tablespace that contains the deleted table.
    2 drop all the other tablespace in the auxiliary database in State of Mount
    3. recover the database to when the table was dropped or updated updated
    4. take the auxiliary database table export and import it into the original database

  • Fusion of single table

    Hi all

    I am using the command merge onto a single table. I want to check some values in the table, if they already exist I just update, thing that I want to insert.

    For this I use the following code:



    MERGE INTO my_table OLD_VAL
    NEW_VAL in ASSISTANCE from (SELECT L_field1, L_field2, L_field3, DOUBLE L_field4)
    WE (OLD_VAL.field1 = NEW_VAL. L_field1
    AND OLD_VAL.field2 = NEW_VAL. L_field2
    AND OLD_VAL.field3 = NEW_VAL. L_field3
    )
    WHEN MATCHED THEN
    UPDATE SET OLD_VAL.field4 = NEW_VAL. L_field4
    WHEN NOT MATCHED THEN
    INSERT (Field1, Field2, field3, field4, sphere5)
    VALUES (NEW_VAL. L_field1, NEW_VAL. L_field2, NEW_VAL. L_field3, NEW_VAL. L_field4, SYSDATE);

    Fields starting with L_ here is my local variables inside my procedure.

    It is giving error as ORA-00904: "NEW_VAL. "" L_field3 ": invalid identifier

    Thank you all.

    SELECT L_field1, L_field2, L_field3, DOUBLE L_field4

    1. you r select all values here?
    2. try to give alias for all columns

  • Insert and update the nested table

    Hello

    I created a nested table containing the following columns. I need to insert records into the nested table. And also I have to update the nested table. Please find below my table and get error message.

    Please advose...!
    SQL> create type details as object(
      2  basic number(7,2),
      3  da number(6,2),
      4  hra number(6,2),
      5  pf number(6,2),
      6  it number(6,2),
      7  gross number(7,2),
      8  ded number(6,2),
      9  net number(8,2));
     10  /
    
    Type created.
    
    SQL> create type details_t is table of details;
      2  /
    
    Type created.
    
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create table emp_tab(empno number(4),name varchar2(10),details_tab details_t)
      2* nested table details_tab store as empl_details
    SQL> /
    
    Table created.
    
    
    SQL> ed
    Wrote file afiedt.buf
    
      1* insert into emp_tab values(&empno,'&name',details_t(details(&da,&hra,&pf,&it,null,null,null)))
    SQL> /
    Enter value for empno: 1
    Enter value for name: asdf
    Enter value for da: 120
    Enter value for hra: 130
    Enter value for pf: 120
    Enter value for it: 120
    old   1: insert into emp_tab values(&empno,'&name',details_t(details(&da,&hra,&pf,&it,null,null,null
    new   1: insert into emp_tab values(1,'asdf',details_t(details(120,130,120,120,null,null,null)))
    insert into emp_tab values(1,'asdf',details_t(details(120,130,120,120,null,null,null)))
                                                 *
    ERROR at line 1:
    ORA-02315: incorrect number of arguments for default constructor
    Can I use '&' while inserting records in the nested table? Yes / No?

    I do need to update also net gross, ded, columns... !!

    Please help me... !!

    Concerning
    A
    $ sqlplus scott/tiger
    
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Apr 21 16:18:16 2011
    
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> CREATE TYPE details AS OBJECT(
     basic NUMBER(7,2),
     da NUMBER(6,2),
     hra NUMBER(6,2),
     pf NUMBER(6,2),
     it NUMBER(6,2),
     gross NUMBER(7,2),
     ded NUMBER(6,2),
     net NUMBER(8,2));  2    3    4    5    6    7    8    9
     10  /
    
    Type created.
    
    SQL> CREATE TYPE details_t IS TABLE OF details;
      2  /
    
    Type created.
    
    SQL> CREATE TABLE emp_tab(empno NUMBER(4),name VARCHAR2(10),details_tab details_t)
     NESTED TABLE details_tab store as empl_details  2
      3  /
    
    Table created.
    
    SQL> INSERT INTO emp_tab VALUES(7001,'Saubhik',details_t(details(100,100,50,10,10,null,null,null)));
    
    1 row created.
    
    SQL> SELECT * FROM TABLE (SELECT details_tab FROM emp_tab WHERE empno=7001);
    
         BASIC         DA        HRA         PF         IT      GROSS        DED
    ---------- ---------- ---------- ---------- ---------- ---------- ----------
           NET
    ----------
           100        100         50         10         10
    
    SQL> ^C
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  UPDATE TABLE (SELECT details_tab FROM emp_tab WHERE empno=7001)
      2     emp_sal
      3*    SET emp_sal.net=emp_sal.basic+emp_sal.da+emp_sal.hra
    SQL> /
    
    1 row updated.
    
    SQL> SELECT * FRM emp_tab;
    SELECT * FRM emp_tab
             *
    ERROR at line 1:
    ORA-00923: FROM keyword not found where expected
    
    SQL> SELECT * FROM emp_tab;
    
         EMPNO NAME
    ---------- ----------
    DETAILS_TAB(BASIC, DA, HRA, PF, IT, GROSS, DED, NET)
    --------------------------------------------------------------------------------
          7001 Saubhik
    DETAILS_T(DETAILS(100, 100, 50, 10, 10, NULL, NULL, 250))
    
    SQL>
    
  • For a single table import failed...

    Hello
    On the production server, I reported a user db, let's call it PRD_USER, with tablespace PRD_TBL default.
    On the development server, I reported a user db, let's call it PRD_USER, with tablespace DEV_TBL default.
    On the production server, I use the db of exp utility to import as:
    IMP System/Manager of the user PRD_USER touser = PRD_USER = ignore = file_name = «...» ' log = «...» ».
    Succeeds the import for about 25 tables and indexes and constraints, but it fails for a single table with the error: {I don't remember the error ORA- and I do not have access currently} DEV_TBL tablespace does not exist.

    Of course this tablespace does not exist on production env. But how this problem arises because the default tablespace for the user is not DEV_TBL but PRD_TBL...?

    Do you have any idea what can be the cause and how can I overcome this problem when importing...? {Note: I gave a temporary solution... take the table creation sql script leaving aside the reference of the tablespace "DEV_TBL"}.

    The two servers work in exactly the same version of DB...
    Note: I use DB 10g v.2

    Thank you
    SIM

    If the table has Partitions, import strives to create the Partitions (in the CREATE TABLE statement) on the original table space.

    OR there is a LOB segment in the table import strives to create on the original table space.

    Hemant K Collette

  • Simultaneous updates on a table

    We can perform simultaneous updates on a single table.
    I have a table with 10000 lines (with a primary key).
    and I want to update 5000 lines with unique sql and another 5000 with an another sql.
    If I run both at the same time, the first locks the entire table and second sql must wait for what he or she is going to be line locking level.

    Concerning
    Arpit

    line level

    the concepts guide:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14220/consist.htm#sthref2009

    Published by: Alex Nuijten on November 20, 2008 12:08

  • is it possible to transfer a record to update another database table?

    Hi all.

    Is it possible to transfer the registration updated in a database table to another table in the database in MS access?

    For example. An updated record of Table "Student", transfer this record to the Table of "Present" and delete the record at the Table "student".

    Which means the file is moved to 'Student' Table to Table "Presence".

    Yes.

    You must INSERT in the other table and REMOVE them from the original table. Two of these capitalized words are T - SQL commands.

    There is no command of 'transfer '.

  • After xi acrobat update, asking to validate new product, says unable to connect to the internet, but clearly connected as I write this post.

    After xi acrobat update, asking to validate new product, says unable to connect to the internet, but clearly connected as I write this post.

    Seems to be counterfeit software.  Checked the site and has the wrong serial number.  Looking to show several spelling mistakes in the 'fine print' on the box.

  • Update the price of the products with the v3 API

    So I try to update all the prices of my product in my product catalog programmatically. I have gone through the documentation to the product price | Catalyst of business support
    and I see that there is no end point of update of the prices of the products.  I tried also just do a PUT option with an AJAX call and is not no longer works.  Can't BC really have a way to update the prices of the products via an application?  I did a lot of things with the API v3, so I assumed that any of this would be a given, but maybe I'm wrong.

    var myurl = "/ webresources/api/v3/sites/current/products / ' + myproductid + ' / price";
    var requestC = $.ajax({)
    URL: myurl
    type: "PUT."
    connection: "keep-alive"
    contentType: "application/json",
    MIME type: ' application/json ',.
    headers: {'Authorization': $.cookie ('access_token')},
    processData: false,
    data: JSON.stringify ({}
    "retailPrice': '533.00."
    'Flags': '533.00'
    })
    });

    You can't do that. The API of POSITION for the products had not been with the rest of the update of the POST API on the products. I already talked to the engineers on this subject. No update on when it will be executed has been given.

  • Dreamweaver several graphs in single table cell

    Dreamweaver is having problems when I try to combine multiple charts in a single table cell. Some are separated by two end just "" entries, while others do not accept these separators. Pleas you show me the right way to handle this.

    Jack,

    • Tables should not be used for web page layouts.
    • Tables for tabular data such as spreadsheets and graphics only.
    • Today, we use an external CSS file for the layout, typography and other styles.

    Please show us what you are trying to do by copying and sticky code in a reply from the web forum.

    Nancy O.

  • UPDATE to update trigger another table

    I am trying to write a trigger to the table (AFTER UPDATE) in which I want to update the same table in a different pattern. Notice that both tables has no unique or primary key constraint, so I am forced to compare the values in the column all the to the place where the condition.

    Update OTHERSCHEMA. T1

    the value =:NEW.c1 c1, c2 is:NEW.c2...

    where c1 =:OLD.c1

    AND c2 =:OLD.c2

    Problem is when a column is null, it would seem that it is not comparable. I even tried

    Update OTHERSCHEMA. T1

    the value =:NEW.c1 c1, c2 is:NEW.c2...

    where NVL (c1, NULL) = NVL (:OLD.c1, NULL)

    AND NVL (c2, NULL = NVL (:OLD.c2, NULL)

    Nothing helps. Can someone help me to write the correct statement?

    Hello

    eyap wrote:

    I am trying to write a trigger to the table (AFTER UPDATE) in which I want to update the same table in a different pattern. Notice that both tables has no unique or primary key constraint, so I am forced to compare the values in the column all the to the place where the condition.

    Update OTHERSCHEMA. T1

    the value =:NEW.c1 c1, c2 is:NEW.c2...

    where c1 =:OLD.c1

    AND c2 =:OLD.c2

    Problem is when a column is null, it would seem that it is not comparable. I even tried

    Update OTHERSCHEMA. T1

    the value =:NEW.c1 c1, c2 is:NEW.c2...

    where NVL (c1, NULL) = NVL (:OLD.c1, NULL)

    AND NVL (c2, NULL = NVL (:OLD.c2, NULL)

    Nothing helps.

    Naturally.  NVL (x, NULL) is always x, no matter what x is.

    Can someone help me to write the correct statement?

    x = is returns TRUE if (and only if) x and have the same value, and it returns FALSE if (and only if) x and have 2 different values.

    NULL is not a value; in fact, it's quite the opposite.  NULL means that there is no value.  If x or is NULL, then x = y returns UNKNOWN.

    DECODE allows to compare values or NULL values, so you can do something like

    Update OTHERSCHEMA. T1

    the value of c1 =: NEW.c1

    , c2 =: NEW.c2

    ,       ...

    where LESS (DECODE (c1,:OLD.c1, 1, 0)

    , DECODE (c2,:OLD.c2, 1, 0)

    )

    ;

    If you would care to a full test script so that I can reproduce the problem, then I could test this.

    Triggers often indicate a bad table design.  Why do you need to replicate the data in another table?

    As you do, why not add a primary key?

  • update a linked table

    Hello

    I have two drawings, one design, get a table, the second design with a copy of the table as a related table. The two designs are unther SVN version control.

    I update the original table, and magically copy it the table shows the changed data. Everything is ok.

    I drop the design taking into the original table. Because it is versioned, this isn't a problem.

    If I now open the design taking the copy table, the contents of the table does not display the updated information. This is not correct.

    If it is detected that the original is updated the copy table needs to be updated too. And stored in the model. Always the latest information from the copy table is available.

    Best regards

    Joop

    Hello Philippe,

    It also works well in version 4.0.3

    19438446 - status update the remote table (linked) is not saved

    Thank you

    Joop

Maybe you are looking for