Data Transffer over DB Link

Hi Every One,
Please help  me to providing the best solution for below scenario.
I‘ve to migrate data from one DB to another DB . Both DB’s are different instance. I’ve created the DB links and granted Select privileges on required tables to destination Schema.
There are around 10 tables and each table contains 2 – 3 million rows approximately.
Now my question is for this data transfer should I use:
Using Direct Insert ..Select statement  ( Which contains ONLY SQL and reduces context switching)
OR
Copy the source table data into local collections and insert the data by selecting from collections.( By using limit )
And I cannot use COMMIT , So that the entire process executes successfully or  fails.
I don’t want to some records to be inserted and if the process fails then do the analysis and insert the remaining records. This would be  a problem when we are migrating data in production.
And what are the problems we face while accessing data over a DB link.
Thanks,
Munna

INSERT INTO .. SELECT .. FROM .. Is the way to go. You can use APPEND hint to do a direct path insert. This will speed up your insert. Samething is being discussed here Forall insert Vs Direct insert. You can also consider data pump by specifying the NETWORK_LINK option

Similar Messages

  • Data acquisition over a window

    I am trying to acquire data using LABVIEW 2009  from   NI- PCI 6024E DAQ.
    The data has to be acquired every 10 sec, over a 2 sec window @ 1KHz.
    That means, the data is acquired  @ 1KHz only at t= 9-11s, 19-21 s, 29-31 s and so on.
    The average value of the data obtained over such  a 2 sec window is  saved in a file.
    How do i implement this?
    Could i use the DAQ assistant?
    Any suggestions would be gratefully appreciated.
    Regards
    poli

    Hi,
    Take a look at this thread: Link.
    Check the post and attachment from user:  rpursley8. You have to make some changes to it, it's not quite the same, but it's similar.
    Use Sample Clock VI to define the Sampling Rate (1kHz) and the Number of Samples (for two seconds you need 2000samples).
    Use a Counter Output to generate your trigger signal (10seconds) connectic its output to Start Trigger (Digital Edge) "Source".
    You have to set True the DAQmx-Trigger Property ReTriggerable.
    Paul

  • Understanding that the iPhone 5 won't support simultaneous voice and data transmissions over Verizon and Sprint LTE networks will it ever be able to support VoLTE (Voice over LTE)?

    Understanding that the iPhone 5 won’t support simultaneous voice and data transmissions over Verizon LTE network will it ever be able to support VoLTE (Voice over LTE)? Could Apple add VoLTE support later on? It seems pretty clear the MDM9615 chip supports VoLTE but the baseband software by Apple does not. Could Apple add it to the baseband later on? When will Verizon turn-on/enable VoLTE?
    Referral Link: https://discussions.apple.com/message/19614226#19614226

    Well in my research Verizon is already testing Voice Over LTE in select markets via a few news releases, and rumor has it that a few smartphones are already VoLTE ready. http://news.verizonwireless.com/news/2011/02/pr2011-02-09f.html

  • Transmit .avi over wireless link

    I am working on a communications project using NI RFSG and RFSA. I can transmit bits over the link. Now I want to transmit a video file . I am new to NI Vision. So i want to know that is there any example or code that converts one video file on the hard disk  into a bitstream and then converts the bitstream back into the video file written on the hard drive.

    Hi sabe,
    I could not find any examples that do exactly what you are looking for but the ones below should be a great starting point. All you need to do is read each frame from the AVI file, convert it to binary, send the data, convert each chunk of the binary stream, and then save it all back to one AVI file.
    IMAQdx Record Video to Binary and Convert to AVI
    https://decibel.ni.com/content/docs/DOC-21688
    Save 16-bit image to AVI
    https://decibel.ni.com/content/docs/DOC-4672
    Tim O
    Applications Engineer
    National Instruments

  • How deploy a new MI appl. version without transfer data all over again

    Hello,
    I'm using MI 7.0 SP15 and I have already deployed the enhanced MSR application on all PDA devices.
    Then, I changed MSR (modifying just some JSP file) creating a new version of it, and now I need to deploy it on all devices but I want to avoid to transfer all data again (the database we're using on PDAs is DB2e) because it's too expensive to transfer them.
    I usually assign a new version, through NW administrator, as JSP Application after having deassigned the old one to all users (in NW administrator I deassign the old version to all users, then I undeploy it, then I deploy the new version and then I reassign it to all users) but in this way I see that all local tables (related the the SyncBOs used by MSR) with all their data are deleted and created again.
    Does exist a way to deploy a new application version avoiding to transfer data all over again in the local DB tables?
    Thanks,
    Maria

    Hi Larissa,
    Thanks for your prompt reply.
    I just tried to deploy the new MSR.war file as add-on unsuccessfully.
    My OLD MSR application had the following MCD:
    Vendor:  xxx 
    Application type: APPLICATION   
    Name: MSR 
    Description: Mobile Sales
    Version: 20.03  
    Build Number: 00
    Runtime: JSP   
    Operating System:
    Processor:
    Language:
    Link to SAP MI Homepage: x 
    Then I tried to deploy the NEW MSR version as add-on with the following MCD:
    Vendor:  xxx 
    Application type: ADDON   
    Name: MSR 
    Description: Mobile Sales
    Version: 20.03  
    Build Number: 00
    Runtime:   
    Operating System:  
    Processor: 
    Language: 
    Link to SAP MI Homepage:
    The new MSR.sda has been created successfully and its deployment status is valid but the deployment on server fails with the following error message:
    Reason: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='<Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='A configuration with the path "mobile/ADDON/xxx_MSR_20.03" does not exist.', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key A configuration with the path "mobile/ADDON/xxx_MSR_20.03" does not exist.'
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    What Am I doing wrong?
    Many Thanks,
    Maria

  • Execute procedure over db link

    I am trying to execute a stored procedure over database link and I get the following error
    DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER@DBCS(
    ERROR at line 12:
    ORA-06550: line 12, column 2:
    PLS-00306: wrong number or types of arguments in call to 'SET_UPDATE_CONFLICT_HA
    NDLER'
    ORA-06550: line 12, column 2:
    PL/SQL: Statement ignored
    However when I execute the same peice of code by logging on to the server the code executes successfully. "DBCS" is the database link name.
    CODE which I am executing over DB LINK
    DECLARE
    COL_NAME DBMS_UTILITY.NAME_ARRAY;
    CURSOR C1 IS
    SELECT COLUMN_NAME FROM ALL_TAB_COLUMNS WHERE OWNER='SCOTT' AND TABLE_NAME='DEPT';
    BEGIN
    OPEN C1;
    FETCH C1 BULK COLLECT INTO COL_NAME;
    CLOSE c1;
    DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER@DBCS(
    OBJECT_NAME => 'SCOTT.DEPT',
    METHOD_NAME => 'OVERWRITE',
    RESOLUTION_COLUMN => COL_NAME(1),
    COLUMN_LIST => COL_NAME);
    END;
    CODE without DB LINK (executed this on db where db link is pointing too.
    DECLARE
    COL_NAME DBMS_UTILITY.NAME_ARRAY;
    CURSOR C1 IS
    SELECT COLUMN_NAME FROM ALL_TAB_COLUMNS WHERE OWNER='SCOTT' AND TABLE_NAME='DEPT';
    BEGIN
    OPEN C1;
    FETCH C1 BULK COLLECT INTO COL_NAME;
    CLOSE c1;
    DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER(
    OBJECT_NAME => 'SCOTT.DEPT',
    METHOD_NAME => 'OVERWRITE',
    RESOLUTION_COLUMN => COL_NAME(1),
    COLUMN_LIST => COL_NAME);
    END;
    Please guide.

    orausern wrote:
    Hi,
    We are on Oracle 11.2.0.2 on Solaris 10. I have two databases on this version of Oracle. From one db I have execute a stored procedure via db link to another database. The store procedure has dynamic sqls (execute immediate) and it uses commit statement as part of the code. Is it alllowed to execute this procedure over db link? I am not aware on the implications on stored proc execution over db link and will be thankful for help.
    Thanks,if no error is thrown, why are you looking for problems where none exist?

  • Interactive report performance problem over database link - Oracle Gateway

    Hello all;
    This is regarding a thread Interactive report performance problem over database link that was posted by Samo.
    The issue that I am facing is when I use Oracle function like (apex_item.check_box) the query slow down by 45 seconds.
    query like this: (due to sensitivity issue, I can not disclose real table name)
    SELECT apex_item.checkbox(1,b.col3)
    , a.col1
    , a.col2
    FROM table_one a
    , table_two b
    WHERE a.col3 = 12345
    AND a.col4 = 100
    AND b.col5 = a.col5
    table_one and table_two are remote tables (non-oracle) which are connected using Oracle Gateway.
    Now if I run above queries without apex_item.checkbox function the query return or response is less than a second but if I have apex_item.checkbox then the query run more than 30 seconds. I have resolved the issues by creating a collection but it’s not a good practice.
    I would like to get ideas from people how to resolve or speed-up the query?
    Any idea how to use sub-factoring for the above scenario? Or others method (creating view or materialized view are not an option).
    Thank you.
    Shaun S.

    Hi Shaun
    Okay, I have a million questions (could you tell me if both tables are from the same remote source, it looks like they're possibly not?), but let's just try some things first.
    By now you should understand the idea of what I termed 'sub-factoring' in a previous post. This is to do with using the WITH blah AS (SELECT... syntax. Now in most circumstances this 'materialises' the results of the inner select statement. This means that we 'get' the results then do something with them afterwards. It's a handy trick when dealing with remote sites as sometimes you want the remote database to do the work. The reason that I ask you to use the MATERIALIZE hint for testing is just to force this, in 99.99% of cases this can be removed later. Using the WITH statement is also handled differently to inline view like SELECT * FROM (SELECT... but the same result can be mimicked with a NO_MERGE hint.
    Looking at your case I would be interested to see what the explain plan and results would be for something like the following two statements (sorry - you're going have to check them, it's late!)
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two),
    sourceqry AS
    (SELECT  b.col3 x
           , a.col1 y
           , a.col2 z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5)
    SELECT apex_item.checkbox(1,x), y , z
    FROM sourceqry
    WITH a AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_one),
    b AS
    (SELECT /*+ MATERIALIZE */ *
    FROM table_two)
    SELECT  apex_item.checkbox(1,x), y , z
    FROM table_one a
        , table_two b
    WHERE a.col3 = 12345
    AND   a.col4 = 100
    AND   b.col5 = a.col5If the remote tables are at the same site, then you should have the same results. If they aren't you should get the same results but different to the original query.
    We aren't being told the real cardinality of the inners select here so the explain plan is distorted (this is normal for queries on remote and especially non-oracle sites). This hinders tuning normally but I don't think this is your problem at all. How many distinct values do you normally get of the column aliased 'x' and how many rows are normally returned in total? Also how are you testing response times, in APEX, SQL Developer, Toad SQLplus etc?
    Sorry for all the questions but it helps to answer the question, if I can.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Report over database link error

    Good morning all.
    I have a database link LINKA from USERA on LOCALSERVER to USERB on REMOTESERVER.
    (create database link LINKA connect to USERB identified by mypassword using validtns)
    In USERC on REMOTESERVER I have a TABLEX, with grant all on TABLEX to USERB on REMOTESERVER.
    In USERB on REMOTESERVER I have a view TABLEXV, select * from USERC.TABLEX
    From USERA on LOCALSERVER I can select * from TABLEXV@LINKA. In fact I can insert/update/delete tablexv from USERA.
    I also have a view TABLEXV on USERA, select * from TABLEXV@LINKA. I can also select/insert/update/delete from USERA.TABLEXV.
    So far so good - all working as expected.
    Then, my APEX app on LOCALSERVER, interactive report, parsing schema USERA, querying TABLEXV, I get the following:
    when "Exclude Link Column", I get the error "The requested URL /pls/apex/f was not found on server.
    when "Link to Single Row View", report displays correctly.
    when "Link to Custom Target", I get the error "The requested URL /pls/apex/f was not found on server.
    When I run the select * from TABLEXV as a regular report (i.e. not interactive), I also get the error.
    So the only time I get the report displayed correctly is using IR and "Link to Single Row View".
    However, clicking on the link (for Single Row View) I get "The requested URL /pls/apex/wwv_flow.show was not found on this server.".
    To summarize:
    - accessing table via view over database link
    - works outside of apex without issue
    - inside only works when Link to Single Row View set
    - But clicking on link fails
    I could live with just having the Link to Singe Row View option if I could disable displaying of the icon so that the user cant click on it.
    APEX 3.2.00.27
    EE Database - 10.2.0.3 (yes I know out of support)
    Remote EE Database - 10.2.0.5
    Real object names replaced to protect the innocent!
    Anyone got any clues?
    I have used remote tables many times in my APEX applications and never had this issue.
    Thanks,
    Rob @ very confused .com

    Good morning all.
    I have a database link LINKA from USERA on LOCALSERVER to USERB on REMOTESERVER.
    (create database link LINKA connect to USERB identified by mypassword using validtns)
    In USERC on REMOTESERVER I have a TABLEX, with grant all on TABLEX to USERB on REMOTESERVER.
    In USERB on REMOTESERVER I have a view TABLEXV, select * from USERC.TABLEX
    From USERA on LOCALSERVER I can select * from TABLEXV@LINKA. In fact I can insert/update/delete tablexv from USERA.
    I also have a view TABLEXV on USERA, select * from TABLEXV@LINKA. I can also select/insert/update/delete from USERA.TABLEXV.
    So far so good - all working as expected.
    Then, my APEX app on LOCALSERVER, interactive report, parsing schema USERA, querying TABLEXV, I get the following:
    when "Exclude Link Column", I get the error "The requested URL /pls/apex/f was not found on server.
    when "Link to Single Row View", report displays correctly.
    when "Link to Custom Target", I get the error "The requested URL /pls/apex/f was not found on server.
    When I run the select * from TABLEXV as a regular report (i.e. not interactive), I also get the error.
    So the only time I get the report displayed correctly is using IR and "Link to Single Row View".
    However, clicking on the link (for Single Row View) I get "The requested URL /pls/apex/wwv_flow.show was not found on this server.".
    To summarize:
    - accessing table via view over database link
    - works outside of apex without issue
    - inside only works when Link to Single Row View set
    - But clicking on link fails
    I could live with just having the Link to Singe Row View option if I could disable displaying of the icon so that the user cant click on it.
    APEX 3.2.00.27
    EE Database - 10.2.0.3 (yes I know out of support)
    Remote EE Database - 10.2.0.5
    Real object names replaced to protect the innocent!
    Anyone got any clues?
    I have used remote tables many times in my APEX applications and never had this issue.
    Thanks,
    Rob @ very confused .com

  • Posting of cancelled Invoice after posting date is over

    Hello Experts,
    I am stuck up with a situation and as such seek your help.
    A invoice was generated and the subsequent accounting document was also cleared. Now after the posting date was over, someone cancelled the invoice by T.code VF11 and as expected it didnt get posted .The document flow showing is as per below :
    Order - open
    Invoice - completed
    Accounting Document - Cleared
    Cancel Invoice - Open
    Now, the business and their audit policies do not allow the client to cancel the invoice in back date ( within the posting period).
    What are the options do we have to tackle the situation.
    Joy

    The issue has been temporarily addressed by changing the posting date.
    However, now the client wants us to make an ABAP development so that no user is able to cancel the invoice after posting date is over. Now for that I have the following issues. Can someone please help me out in this.
    The basic process details I am following is as per below:
    For Transaction Code VF11 (i.e for Cancellation of Invoice) , when the invoice number which is subject to cancellation is provided, the System should search in VBRK table for the following :-
    1)The System will at first search whether the entry exists or not. If the Entry is not valid then it should give an message u201C Document xxxxx does not Existu201D.This is in line to the existing practice.
    2) If the Document number is valid then it will go to the billing date field and  will fetch the value from the VBRK table . Then it will match  whether the value fetched (i.e. this Invoice date)  is in present posting period or not. The system can find the posting period from the table V_T001B.
    a.If  the  Invoice date lies in the present posting period then the system will allow the cancellation document to be saved. This is in line to the existing process.
    b.If the Invoice date lies beyond the present posting period then the system will not allow to save the cancellation of the Invoice with a pop up message of u201C The Document number subject to cancellation do not lie within the present posting periodu201D .
    Now We have looked both the tables, from VBRK we will get Doc# and Billing date(FKDAT) but when we select Posting Date from table T001B( Permitted Posting Periods) there is some issue.
    1.  What will be the condition for selecting records from T001B table.Since there is multiple key fields
        RRCTY (Record Type) ,
        BUKRS (Posting Period Variant) ,
        MKOAR (Account Type or Masking)
        BKONT (To Account). 
    So, to get unique record what will be the value of this key fields. Is there any relationship with VBRK table ? 
    2.  Which field I have to consider as Posting Date or Period. Because there are many fields related to Posting period.

  • In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to him.

    In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to such person, but the only one shows up is the birthday. How to be able to show all those dates linked to people in the agenda in the iCal?
    Thanks

    Hi,
    I sugggest you try my application, Dates to iCal. It is shareware with a 2 week trial period.
    Dates to iCal 2 is a replacement for Apple's birthday calendar for iCal. It has a range of features to allow the user to choose what, and what not, to sync to iCal from Address Book.
    As well as automatically syncing birthday dates from Address Book, Dates to iCal 2 can sync anniversary and custom dates. It can set up to five alarms for each date in iCal and can also set different alarms for birthdays and anniversaries. It allows the option of only syncing from one Address Book group. This application also allows for the titles of the events sent to iCal to be modified to the user's preference.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Mouse-over a link

    when i mouse-over a link, i can see where that link brings me in the lower left corner. but when i enable the search (shift+f), the links are in the lower RIGHT corner. why? its really embarassing for example on facebook, because the chat windows can be found at the lower right corner, right where are these "links". can i change it some way? thanks in advance!

    You can use this extension to change that behavior:
    * Status-4-Evar: https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/

  • Mouse over HTML link causes single frame to display at top of page Netscape only

    Having a wierd problem. When you run the mouse over HTML
    links on the page a single frame of the flash movie apears at the
    top center of the page. It only happens in netscape in firefox
    mode. IE, Opera, and Firefox do not have the problem.
    Problem site
    Thanks in Advance,
    Vorsch

    The problem goes away if i modify my .css file by removing
    the
    border: 1px solid #999999;
    line from the "a:hover" style.
    I ran my css file thru the validator at w3c and its fine. The
    Page also validates as xhtml transitional.
    and just a note the same file version is on my public server
    and my testing server.
    Has anyone ever seen this before?? I have several sites with
    a:hover effects and flass media and have never run across this
    before.

  • In WebHelp, when I mouse over a link, the font size changes.

    Either after I generate to WebHelp or View in RoboHelp, when I mouse over a hyperlink text, the font changes from large to small text. My step is a 11pt font, my body text is 10pt. It appears the 11 pt. font switches to 10pt font when I mouse over it. Any way to fix this?
    Also noticed that when I have a note at 9 pt, and mouse over a link, the text changes to 10pt.
    So now it appears in most of my topics with links within a step or note. In a body, the text appears fine (or stays the same) when you mouse over a link.

    Not believing that either.
    You should be able to edit your CSS in a text editor. If you are not sure what to do, set up a simple project using your CSS. Any text will do and create a link.
    See the Contact page on my site and follow the instructions there.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • I want to know how to get the web addresses to go away that appear in the bottom left corner of the browser every time my mouse goes over a link

    Any time that my mouse goes over a link on a web page a little box in the bottom left corner of the browser pops up showing the web address for that link and it is really annoying, especially when i am on facebook because there are so many links on the home page i cant move my mouse anywhere without that box popping up and blocking part of my conversations. I was wondering if there was any way to turn this off. I've checked through the options and to my knowledge there is no way to turn it off. Just wondered if anyone else has had this problem or knew if there was a way to get that box to go away.

    Another option would be to use the following extension to push those messages into the status bar. It could be a convenient way to have your messages visible when you want them, but with less distraction.
    https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/
    If you try it, let us know what you think.

  • Precautions to be taken when AA is in Data Take over mode.

    Hi,
    We have an Live SAP System and we are plannning to load Legacy Assets in our system. These Assets are from an acquired Company. We Will be required to put the System in Data Take over Mode during the middle of the year for some time.
    Please let us know what would be the precautions that needs to be taken. For example: Depreciation run, Asset regular Postings, AUC settlements...etc.
    Thanks,
    Raja.

    Hello Raja.
    I believe that SAP note 49563 may help you.
    *This note also have some interesting 'Reference to related Notes'.
    I hope it helps,
    Thaiane

Maybe you are looking for

  • Purchased games will not work with iPod Classic 160GB

    I purchased the original seven games (Bejeweled, Cubis 2, Mahjong, PAC-MAN, Tetris, Vortex, Zuma) offered by Apple when they were released for the 5th generation video iPod. That iPod has since died and been replaced by a iPod 160GB Classic. Like all

  • Aggreate functions(cube,rollup)

    Hi, Is it possible to use aggrgate funtions (cube, rollup) with Oracle Express ? Thanks Marco

  • Loss of WiFi Connectivity

    I have a relatively stable D-Link DIR655 802.11/n/g Router which started playing up this morning. My iPhone lost connectivity and could NOT detect the network. My router lives in a cabinet on a shelf in a compartment which can be enclose the compartm

  • [お詫びとお知らせ]Museがインストールできない

    現在.アドビでは.Muse がインストールできない問題を認識しており.調査中です. ご不便をおかけして誠に申し訳ございません. 進展があり次第.お知らせしたいと思いますので.お待ちくださいますようお願い申し上げます.

  • Duplex printing with a twist

    I have a document that I need to print duplexed, but the duplexing only is done when X happens.  For example, this document has to do with account balances for a specific project.  If the project doesn't fit on one page, I want to print the balance o