Copy of the data on a dblink

Hello

I would like to know which is the most effective way to extract data from a large table on the remote database into a local database table.

CREATE local_table AS SELECT * FROM large_table@remote_database

vs

INSERT INTO SELECT local_table * OF large_table@remote_database.

Thank you

Lalith

> Can elaborate you on that?

DDL is not directly supported in PL/SQL.  You must use dynamic sql statements.  If you create the table dynamically with DEC, you designate it dynamically elsewhere in the same procedure or they do not compile.

The use of DOF also causes an implicit validation.  Commit is usually something left to the calling environment.

If you do a DEC in your code, this means that you must also REMOVE the table first.  In this case, you will lose all your clues, etc.

DDL should be done only once, outside of PL/SQL.

Tags: Database

Similar Questions

  • Quick way to copy all the data to Ipad Air 2 for Ipad Pro

    I would like to copy all the data on my Ipad 2 for the new Ipad Pro Air I just bought to avoid Delisle in downloading applications.

    Hello

    You'll be happy to learn that it is a very easy process!

    This should help:

    Transfer the contents of an iPhone, iPad or iPod touch to a new device - Apple Support

    Let me know how you go!

    All the best.

  • RMAN issues - no backup or copy of the data file found

    Oracle 11 g 2

    Linux RHEL 6.5

    I inherited a database backup and restore question since the DBA is OoO.

    Here is the script used for the backup:

    Configure default device the disk type;
    Configure controlfile autobackup on;
    Configure controlfile autobackup peripheral type disc format in ' / u01/app/oracle/bkp/controlfile/%F.ctl';
    Configure retention policy to recovery of 30-day window;
    View all;
    Run {}
    stop immediately;
    bootable media;
    allocate channel dup1 device type disk;
    allocate channel dup2 device type disk;
    SQL "create pfile =" /u01/app/oracle/bkp/pfile/initpfile.ora "of spfile;
    backup format ' / u01/app/oracle/bkp/cold_db/cold_bkp_%U' database;
    output channel dup1;
    output channel dup2;
    ALTER database open;
    }

    When I try the following restore script:

    run
    {
    Start pfile='/u01/app/oracle/bkp/pfile/initpfile.ora' nomount;
    Restore controlfile to ' / u01/app/oracle/bkp/controlfile/c-123131414-20140509-00.ctl';
    change the editing of the database;
    restore the database;
    ALTER database open resetlogs;
    }

    I get error RMAN-06023: no backup or copy of the data file found

    I'm trying to restore a database backup from 5 days ago and I use this backup control file.

    I'll close this discussion and continue to involve the Oracle.  Thank you all for your help.

  • Need some ideas on the copy of the data from one schema to another.

    Dear all,

    I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
    Example:


    I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
    Maybe this copy of data may occur once a month, or on request.

    I want to have this done by a procedure.
    I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
    Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
    The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
    Suggest me so if you can give me the best logic or solution.

    Thanks in advance...

    Concerning
    Suresh

    GSKumar wrote:
    Dear all,

    I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
    Example:
    I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
    Maybe this copy of data may occur once a month, or on request.

    I want to have this done by a procedure.
    I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
    Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
    The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
    Suggest me so if you can give me the best logic or solution.

    I don't know why you don't want to opt for EXP/IMP.
    As an alternative, if you have a link DB between Production and Test pattern (which I seriously doubt), you can use the MERGER to a copy of data from Production to Test Delta.
    a. INTRODUCE IN test_schema.table_name SELECT sequence_columns, column_list FROM (SELECT column_list FROM prod_schema.table_name LESS SELECT column_list from test_schema.table_name)
    Column_list must not contain columns that contain sequence values because they may differ and result in an incorrect result; Therefore, this is taken into account in the outer query rather than Inline mode.
    b. MERGE STATEMENT
    c. FALL of test_schema.table_name. CREATE test_schema.table_name as SELECT column_list from prod_schema.table_name; -A way very neat to copy all the data, provided you do not keep any changes to test the tables in the schema.

    However, you mentioned to find existing records based on the primary key; IMO, primary key is normally a sequence (may be alphanumeric) and its value on env Production and Test may defer or even can have different attributes, therefore, I find it incorrect to match only the primary keys. I would say to match the key attributes.

    If you want to follow the last update/insert for a record, you can add a column that puts the time of last modification. In this way, you can track the changes of a column. Another alternative would be to use a check to the table.

    Let us know your thoughts or concerns, so that help can be provided.

    I suggest that you read and follow {message identifier: = 9360002}.
    If you will be useful if you can provide all the information required in advance to help us provide you with a quick resolution.

  • Copy of the data of the disk of the virtual machine on a Local disk is too slow

    We have recently implemented vMware view.   We vSphere 5.5 and 5.2 and made Desktop visualization server.

    We have SAN as HP 3Par and Esxi hosts are HP ProLiant DL380p Gen8

    Now all trying to copy the data from the disk of the virtual machine disk of the local computer are too slow. But if we are writing data from Local disk on the disk of the virtual machine is normal. And copying data between the two virtual machine disk is also fast.

    Thanks in advance for your help

    Dear all,

    Thanks for your help.

    We have analyzed the issue in 360 degrees, and we also examined your entries. Finally, we found the problem. It was that a defective fiber link has been creating the problem.

    We have recently implemented vMware and this flaw in fiber can also happened during this period. That's why we thought it may be because of vmware.

    Thanks again for your help

  • How to copy all the data to repeat the subform to second repeating subform

    I have a repeating subform on P1 which will have a variable number of rows created.  Then on P4, I another repeating subform, with the same fields, that subform P1 data must be copied to.  I tried many things, but my skill level is not too big, so none of them have worked entirely.  I have a working partially on a button named CopyAll script, but it is not very elegant and throws an error message when you arrive at the end of the number of lines that have been created in the subform of P1.

    Can anyone suggest a fix to this script or a better method of script?  I think this must be tough, since everything what I found on the forums that are similar to this one have not been resolved either.  I enclose a copy of my form.

    In the case of exit of the 1st subforum.invoice, you will find the code to assign the value to his "brother" on page4.

    In addition, the Add button, I added the code to add a record to the subforum page4.

    To do this you will need to copy/past the code of the output event in all the fields that you want to copy and the xfa.resolvenode command ("XXXXXXX [] .fieldName") replace fieldname with the actual name of the field that you're there.

    I didn't ' t do anything for delete you "line" button because I know not how you want it to work, but if you want to control the p4 with p1 Subform subform, you should not allow for the lines to be deleted directly in the subform p4.

    I hope this helps.

  • A t540p copy of the data to another

    Hi, what is the best way to move all of my current t540p to the new? Both have the same OS, win7.

    I thought backup on external USB drive and then restore?

    Thank you

    Hi Dxk,

    Thanks for the reply!

    That is fine, but it will be rarely used, you can also check with file transfer network that will be even easier to transfer the DATA. Or if you want to keep the backup of your external drive, you can use your external HARD drive.

    I hope this helps!

    Best regards

    Agnes Kumar

  • RMAN-06023: no backup or copy of the data file

    Hi all

    Database: 10.2.0.1.0

    During the restoration of database of rman backup, using the recovery catalog, I am getting error below:

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the restore command at 2010-07-06 16:44:12
    RMAN-06026: some targets not found - abandonment of restoration
    RMAN-06023: no backup or copy of the file 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore.

    I did the entire task required as backup, backup of the datafile overlap list #;

    These orders showing as backup status: AVAILABLE

    Please help me to restore the database:

    Thank you
    Vipin

    VipinK wrote:
    Hi Alex,

    RMAN > list incarnation of database;

    List of Incarnations of the database
    DB key Inc key STATE ID DB name DB reset reset time SNA
    ------- ------- -------- ---------------- --- ---------- ----------
    1 8 TEST 2020618919 PARENT 1 30 AUGUST 05
    1 2 TEST CURRENT 2020618919 534907 JUNE 23, 10
    1 314 TEST THE 2020618919 ORPHAN 1228265 2 JULY 10

    Also I tried to reset the database incarnation to 2; but no use same problem occurs again:

    Don't need to reset need reset 2, 314 (ORPHAN 1228265 2 July 10) database and try again as follows:

    rman target /
    reset database to incarnation 314;
    restore database;
    recover database;
    
  • How can I import all the data of rockmelt Firefox which I like more, but I can't find a data option rockmelt 2 2 firefox as import switch and insert bookmarks in firefox?

    I want to import data like passwords and histroy and bookmarks and all of rockmelt Firefox I tried to go to import from other browsers, but I found no rockmelt, and also it will not contain password and this thing so please if you can tell me what is the best way to do this thing I need this quick please.

    To all of you who have this problem I solved it with myself.

    Just go to google chrome and download it and then go to C:\Users\username\AppData\Local\RockMelt and then copy all the data from the user file and then go to C:\Users\TOSHIBA\AppData\Local\Google\Chrome and delete the data of the user of the file and paste the one you copied everythign now in base is in chrome then forefox do synchronize on the other browser then choose google chrome!

    Note! If you can't find the AppData file it's hidden setting of files and folders and check the box says show all hidden files.

    Good luck!

  • Hand removed, but the data is always in (almost all the) space

    I deleted a file on a share and after the folder deleted presented themselves as snapshot data, still too much space and I was unable to free up space.

    This led me to delete the entire part with the intention of again sharing and re - copy all the data.

    But now I removed the sharing, but all the data is still in place on my volume. As this was the only part of volume with all data in the volume should have 100% space availeble.

    On the contrary, it says 700 GB free of a volume of 5 to 14, (5x4TB).

    How can I fix?
    Current firmware is 6.5.0.

    [img] http://i.imgur.com/kqkIf3C.png [/ img]

    I have a RN31400 (4x4TB) and an EDA500 expansion unit (5x4TB). The volume of the EDA500 does contain no useful data, but the volume on the RN31400 don't.

    Always rub, it may take some time. Only at 0.52% up to now

    I'm a little reluctant to update the firmware, done this twice so far and both times the nas froze on me during the restart.

    But why is it impossible to format or destroy volume? This isn't normal behavior I think. The only thing I can do is to pass a x-raid and flexraid (him did not)

    OK update: I've stopped washing. Go to flexraid that make it possible for me to destroy the volume.

    Switched back to x-raid and now it is to resynchronize, then moving forward:

  • FTP .txt file copied correctly the cRio

    I use the 'FTP Get File.vi"to retrieve a .txt file of my CRio, which is then copied on my host.  The file is a delimited data tab.  The file copied all the data a except that the copy has a blank line between each set of data.  These additional lines take me to read the incorrect lines when the file is read in my program later with the "reading a spreadsheet file.  These additional lines come  I checked the original on the cRio file transfer via MAX and these lines do not exist.  Can someone tell me how to solve this problem?  Thank you

    If you look at the entries for the File.vi FTP Get, you will notice that there is one that says binary:

    By default, this is false, which means that it copies the data in an ASCII format.  Try a real constant of wiring to this entry.  It's the need for VxWorks and Windows use different end of windowing.  This difference is probably the reason that it is adding lines to it.

  • Anyway to save the data in a loop without using shift register or feedback loop

    Hi all

    I've been thinking, is it possible to save data in a loop to the next iteration without the use of a shift register or a feedback loop?

    I need the possibility to reload the data within a loop from a file of lvm, but I want to use the same data until I have load some new.

    The reason why I don't want use the node registry or feedback shift is due to speed, although I don't know if the registry change

    in fact moves all the data of one register to another, or if it is stopped until a change data occur.

    I want to reuse data medium and large (6 measure of strength, pressure 2, 1 flow channels) of about 10 s data in each file with samplingsrate of 2 kHz...

    In my testing program, I have several CPU demanding computations and 3D graphics, so I want just to minimize the CPU loading as much as I can for each part of the

    software...

    I am enclosing a small VI to explain what I mean.

    I have now, I shouldn't use the express VI and I'll change that as well - it's just a proof of concept!

    Hope you guys can help me better understand this shift register...

    Thank you!

    -Tommy

    If the speed is the name of the game, go with the flow (data) and stick to a shift of registers or feedback node.  No data is moved, their job is to do pretty much exactly what you describe.  Any other solution, control/locals/globals will imply a copy of the data, and then you will have problems with speed.

  • How the creation Date to be later than the date of change?

    I am the review of records. (IE m4am, mp3, etc.)  When I open the Properties menu to see what date they were created, the 'Création' date is after the date of "modified".

    This is not unusual with the copied files, when you copy a file the file created date becomes the date of change and the current date (when the file is copied) becomes the date created, copy all the existing files on your computer and you can observe this behavior.

    John

  • easy transfer can be used to reload the data files after formatting hard drive?

    I have been informed by level microsoft 2 I have to reformat my hard drive to fix the problem with windows backup (snapshot won't work).  easy transfer will copy all THE data files, including OUTLOOK 2007 on hard drive and then I can reinstall on reformatted drive.

    Easy transfer copy some things but not all things. He does more that can make a simple copy/paste (such as the settings for example) but, for example, not programs transfer (those who need to be put back in place).  Here is a description of what it does (and does not): http://support.microsoft.com/kb/928635.  It will transfer Outlook 2007 PDF files and other personal data if they are selected - you need to know which files you need and where to select them - but it won't transfer the program (which must be put back in place).  It must be run before you reformat the hard disk to collect data and then you can transfer everything what you have registered once the system is re-installled.  You would do the re-setup prior to the transfer.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • You can download the final version of windows 8 (when it comes out) without losing the data files or programs on your computer?

    I think the update to windows 8, but I have no way to save my program files. I am running windows 7 Home premium.

    You can choose to store the data, but the applications will need to re-installed.

    We recommend that you back up all data on external hard drive too.

    You can give a try to preserve your programs installed (works for some programs only):
    -Copy all the data related to an application program.
    -Take note of the directory structure as seen currently
    -In addition, if possible, check the registry entries for this application, using a registry editing tool
    -After installation of Windows 8, try to paste application data into the same kind of directory structure.
    -Still, if possible, add registry entries for this application program.
    His laborious route that may work for some simple programs.

    Better is to have all the files Setup for the available applications.

Maybe you are looking for