How to improve the updating a sql server table with another table in Oracle

Hi there.
I am trying to do the next updating in SSIS
UPDATE S
SET
S.COLUMN_A = OT.COLUMN_A,
S.COLUMN_B = OT.COLUMN_B
FROM 
SQLT1 S INNER JOIN ORACLET1  OT ON
S. COLUMN_C = OT.COLUMN_C
This is what I am doing:
I am taking the Oracle data with the ODBC Source like this.
Select column_A, column_B, column_C
from OracleT1
The thing is, the Oracle table has millions of registers and this updating is taking a lot. But I am not sure if it is maybe because of the design of the update query.
I wonder is if there is another way to design this query or improve the performance of this task.
Thanks a lot.

Yes
Use a OLEDB destination instead and save the records to a staging table
Then use a subsequent Execute sql task and do the set based update in it as below
UPDATE t
SET COLUMN_A = s.COLUMN_A,
COLUMN_B = s.COLUMN_B
FROM SQLT1 t
INNER JOIN stagingTable s
ON s.COLUMN_C = t.COLUMN_C
This would be much faster as its set based
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • How to Improve the Performance of SQL Server and/or the hardware it resides on?

    There's a particular stored procedure I call from my ASP.NET 4.0 Web Forms app that generates the data for a report.  Using SQL Server Management Studio, I did some benchmarking today and found some interesting results:
    FYI SQL Server Express 2014 and the same DB reside on both computers involved with the test:
    My laptop is a 3 year old i7 computer with 8GB of RAM.  It's fine but one would no longer consider it a "speed demon" compared to what's available today.  The query consistently took 30 - 33 seconds.
    My client's server has an Intel Xeon 5670 Processor and 12GB of RAM.  That seems like pretty good specs.  However, the query consistently took between 120 - 135 seconds to complete ... about 4 times what my laptop did!
    I was very surprised by how slow the server was.  Considering that it's also set to host IIS to run my web app, this is a major concern for me.   
    If you were in my shoes, what would be the top 3 - 5 things you'd recommend looking at on the server and/or SQL Server to try to boost its performance?
    Robert

    What else runs on the server besides IIS and SQL ? Is it used for other things except the database and IIS ?
    Is IIS causing a lot of I/O or CPU usage ?
    Is there a max limit set for memory usage on SQL Server ? There SHOULD be and since you're using IIS too you need to keep more memory free for that too.
    How is the memory pressure (check PLE counter) and post results.
    SELECT [cntr_value] FROM sys.dm_os_performance_counters WHERE [object_name] LIKE '%Buffer Manager%' AND [counter_name] = 'Page life expectancy'
    Check the error log and the event viewer maybe something bad there.
    Check the indexes for fragmenation, see if the statistics are up to date (and enable trace flag 2371 if you have large tables > 1 million rows)
    Is there an antivirus present on the server ? Do you have SQL processes/services/directories as exceptions ?
    There are lot of unknowns, you should run at least profiler and post results to see what goes on while you're having slow responses.
    "If there's nothing wrong with me, maybe there's something wrong with the universe!"

  • How to delete the Folder from sql server 2008

    Hi all,
    I was trying to delete the folder from sql server 2008 with the below script
    DECLARE @path VARCHAR(256) -- path for backup files
    DECLARE @cmd VARCHAR(8000)
    DECLARE @folderName VARCHAR(256) -- filename for backup
    SET @folderName = + (CONVERT(varchar(10), GETDATE()-7, 112))  -- 7 days back date folder name
    SET @path = 'I:\Backup_Test\' + @folderName -- Folder path
    SET @cmd = 'del ' + @path -- Delete
    EXEC master..xp_cmdshell @cmd
    --Print @cmd
    This is not working it was asking the Confirmation (I:\Backup_Test\20100629\*, Are you sure (Y/N)? ) what will i do to the delete the folder.
    Thanks,
    Prasad R.

    I would notice   you that T-SQL does not play well to do things like that. Do not you want using .net language to delete folders?
    Old method is
    declare @HR int, @CFOLDER varchar(255),@FSO int
        set @CFOLDER='D:\folder\'
        EXEC @HR = sp_OACreate 'Scripting.FileSystemObject', @FSO OUT
        EXEC @HR = sp_OAMethod @FSO, null, 'DeleteFolder', @CFOLDER 
    Now regarding to your second question please examine xp_fileexist  system stored procedure
    CREATE FUNCTION dbo.fn_file_exists(@filename VARCHAR(300))
      RETURNS INT
    AS
    BEGIN
      DECLARE @file_exists AS INT
      EXEC master..xp_fileexist @filename, @file_exists OUTPUT
      RETURN @file_exists
    END
    GO
    -- test
    SELECT dbo.fn_file_exists('c:\a.txt')
    Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/

  • How to Read the Image in SQL server

    I want to read the image from SQL server using labview.In our project languages used are JAVA and Labview
    Through java we acquiring the image and write in to SQL Server.
    Through Labview I want to read the image form SQL server and i will do some image processing for my application.
    My problem when I seen the database the images shown like hex decimal value.
    I want to convert the hexadecimal value to image or any other functions is there to directly read the image from SQL server.
    Can anybody help me....

    two options:
    1. save the image data itself (as a blob)
    2. save the image in a file system and save the file name in the DB

  • How to enable high availability on SQL Server 2005 with Windows Server 2008 Enterprise R2

    Dear Folks,
    I would like to ask you about this thing. I'm working for IT department for bank in Myanmar. Our bank have up to 96 branches across all of Myanmar including H.O. We are using Microsoft SQL Server 2005 with Windows Server 2008 for our banking
    information system. My main problem is having to backup and restore the database backup files every time the servers in branches goes down for whatever reasons. I want to deploy this feature of high availability and failover cluster using Windows Server 2008
    and SQL Server 2005. Our branches have 2 Servers. One is for Primary and other is for Backup. What I want to do is that, I want to change Backup Server to Primary Server whenever the Primary Server goes down for whatever reasons. All the working data and databases
    from Primary will immediately replicated into Backup Server along with all the IP information of Primary Server. Please give me step by step guide for this process.

    Try below
    http://blogs.msdn.com/b/cindygross/archive/2009/10/23/checklist-for-installing-sql-server-2005-as-a-clustered-instance.aspx
    I will recommend you to upgrade SQL server to newer version for support as well as flexibility.
    Regards,
    Vishal Patel
    Blog: http://vspatel.co.uk
    Site: http://lehrity.com

  • How to send the data to SQL server group in Reciever JDBC scenario

    Hi Experts,
    I have done IDOC to JDBC scenario, the data is successfully going to SQL server in reciever side, but in reciever side they got local server and other server groups also there, the data ia m sending is going to local server group, so where can i mention the other server group name in reciever JDBC adapter.
    Kind Regards,
    Praveen.

    Hi,
    Except if there is a way to specity this in the URL field (either using a suitable properties or a specific syntax), I do not see such feature in the JDBC adapter ... I'm not familiar with SQLServer group concept, but maybe you could use multiple receivers instead ?
    So far, I haven't been able to see how to use groups in the URL ... Maybe there is way to trigger replication at SQLServer level ? Stored proc ?
    Chris
    Edited by: Christophe PFERTZEL on Dec 9, 2009 11:26 AM

  • How to Pick the data for SQL Server to Xcelsius

    Hi all,
    I am trying to create a dashboard Sales Analysis through Xcelsius in my system, but the toal data is in the SQL Server, Is't any possibility to pick the data directly from SQL server. How to connect thr templet to live data.
    Could someone please explain to me.
    Regards,
    KiranKumar.A

    XCELSIUS DYNAMIC DATA SOURCE
    Dynamic datasources for Xcelsius

  • How ro move the EP6SP11 from one server(hardware) to another(hardware)r?

    is there any transport tool?
    or only re-install the EP again on the second server ?

    Hi,
    There are many tools that claim or might probably work for many custom developed application or COTS.
    To my experience extends, there is no way you can actually migrate "as is where is" to another server.
    There are several things that you may want to consider which the tool will not and can not consider which I hope you will understand.
    You can develop one specific suiting your needs, however the same cannot be generalized.
    You certainly need to re-install in another server.
    Hope this clarifies.
    Regards,
    Sen
    P.S: If this helps you, please reward the points.

  • How to make the join condition in a view with this tables LFBK LFA1 TIBAN?

    Hi gurus,
    how can I make the join conditions for those 4 tables LFBK LFA1 TIBAN and BNKA ?
    thanx
    Moderator message: please (re)search and try yourself first.
    Edited by: Thomas Zloch on Nov 22, 2010 4:44 PM

    Well, use
    LFA1-LIFNR EQ LFBK-LIFNR
    LFBK-BANKS EQ BNKA-BANKS
    LFBK-BANKK EQ BNKA-BANKK
    LFBK-BANKS EQ TIBAN-BANKS
    LFBK-BANKK EQ TIBAN-BANKK
    LFBK-BANKN EQ TIBAN-BANKN
    LFBK-BKONT EQ TIBAN-BKONT
    Not very hard...
    Regards,
    Raymond

  • How to activate evaluation version of SQL server

    How to activate evaluation version of SQL server 2012 with open license.
    in the VLS portal it is saying no product key is require. but my problem is i already installed evaluation version of SQL server 2012 and configure many things to it. after that i got open license from Microsoft,

    Hi,
    If you want to upgrade ( i Guess this is what you want) evaluation edition to enterprise or standard you need to run Ent/ standard edition from setup.exe installation window will pop up on that select maintenance on left side and then select edition
    upgrade.
    Take help of below link
    http://blogs.technet.com/b/sqlman/archive/2010/03/16/sql-server-2008-upgrading-to-standard-enterprise-edition-from-evaluation-edition.aspx
    revert if any issue.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • How to connect external database(Ex:SQL Server/Tivoli)  from ABAP Webdynpro

    Hi,
    Any one have idea how to connect external database like SQL Server/Tivoli to access tables from WebDynPro ABAP.
    Please point to me some links if you have
    Thanks
    Praveen

    Hi,
    Please check out this link -
    FETCH DATA FROM ORACLE DATABASE USING Web Dynpro
    Regards,
    Lekha.

  • SQL Server programming with java

    Hi all,
    i am about to developpe a java application that has to do the following tasks:
    1. detect all SQL server existing databases .
    2. for every database (SQL server database) be able to connect to the chosen database and detect all the tables Regarding every SQL server database.
    for the first point ,i thought about searching my hole system for the files of SQL server databases with the criteria of its extension (.SQL serverEXtension database file). But i don't know if this method is efficient and if there are not other methods for this purpose ?!
    for the second point i'm wondering if there exist methods or Classes that return the Set of all the tables within a given SQL server database ; and also return the Set of the Fields (Attributes )within this given database.
    It remains one important point: how to connect to a SQL Server database from a java Program.
    I'm waiting for your hints and ideas... Thanks indeed.

    Once you have the address and the port connection is via JDBC and an appropriate driver.
    Finding servers is much harder and is not necessarily guaranteed. SQL Server must have a discovery method. That would be best. You could research it or probably just seplunk it by running ethereal and seeing what Enterprise Manager does when you start it up.
    Querying for databases and tables requires that you have a valid user, with the correct permissions and probably at least one valid database.

  • Entity Framework doesn't create the database in SQL Server Management 2012, instead it just creates in (localdb)\v11.0 How to fix it?

    Hi, I'm Begginer in Entity Framework. Then I'm having some problems.
    I created my entities and I give Save Changes. (Ok)
    Then, I Tried to Connect with the database through Server Explorer, if I use the instance of the SQL Server Management Studio 2012(PC-PAULO\INSTANCIAPJ) as Server Name, the database doesn't appears but, if I use the the instance (localdb)\v11.0 the dabase
    appears.
    How to change the save to the SQL Server Management Studio 2012, I don't know where this (localDB)\v11.0 saves.
    Help-me Thank you :D

    Hello PauloJos,
    The code should be ok and it is really strange that the database is only created into the local database in your machine. I am wondering if it is related with the machine environment, could you please have a try with below demo on your machine which works
    on my side and if it is possible, please have a try to run your application on other machines to see if it works:
    class Program
    static void Main(string[] args)
    #region https://social.msdn.microsoft.com/Forums/en-US/00eff3c4-2336-4807-9212-e6f2a6c8812e/entity-framework-doesnt-create-the-database-in-sql-server-management-2012-instead-it-just-creates?forum=adodotnetentityframework
    using (CFDbContext db = new CFDbContext())
    db.Database.CreateIfNotExists();
    #endregion
    public class CFDbContext : DbContext
    public CFDbContext() : base("UltraFoda3") { }
    public DbSet<TestOne> TestOnes { get; set; }
    public class TestOne
    public int ID { get; set; }
    public string Name { get; set; }
    Config file is similar:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </configSections>
    <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
    <parameters>
    <parameter value="v11.0" />
    </parameters>
    </defaultConnectionFactory>
    <providers>
    <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
    </entityFramework>
    <connectionStrings>
    <add name="UltraFoda3" connectionString="Data Source=YourServer;Initial Catalog=UltraFoda3;Integrated Security=True;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
    </connectionStrings>
    </configuration>
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to uninstall/remove security update for SQL Server 2012

    My requirement is to uninstall/remove security update for SQL
    Server 2012 Service Pack 1 only. so are these below steps are correct or do I need to take any extra precaution for uninstallation?
    Go to Control panelàProgramsà
    Programs and FeaturesàInstalled Updrtes, right click on update and uninstall
    As per my knowledge in SQL Server 2005, we cannot uninstall a service pack. we have to uninstall SQL Server 2005 completely, and reinstall SQL Server 2005 with previous service
    packs and updates. but Starting SQL Server 2008, we can uninstall a service pack using Control Panel.
    Rahul

    http://blogs.msdn.com/b/askjay/archive/2011/02/07/uninstalling-a-sql-server-service-pack.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Can you tell me how I can put the data of sql server into SAP to auto gener

    Dear all,
             Can you tell me how I can put the data of sql server into SAP to auto generate PR?
    Best regards,
    Merry zhang

    Many thanks ,it is ok now.

Maybe you are looking for

  • Corrupted Nano

    I have tried the 5 R's and cannot get my ipod nano to work. After pressing select and menu, I got the apple and then the "use itunes to restore". the itunes continually told me that an error occurred (1418) when trying to restore it. when i closed th

  • TalkTalk box for youview?

    I am a new bt customer due to be activated next week with phoneline and unimited regular broadband. I am interested in recieving bt vision also but have not ordered it yet depending if i can get a definitive answer for my question,so..... I have a ta

  • [SOLVED] Is there a way to disable the 10s timeout in pacman?

    I keep hitting this timeout because of some silly corporate network shenanigans. However, if I manually download the file from the mirror then it (eventually) completes. I don't mind typing 'pacman -Syu' and then waiting a few extra minutes for the u

  • Photoshop Elements 6 installation problem

    Because the PS6 installation on my windows 7 PC had become unresponsive, I uninstalled it.  When I tried to reinstall it using the download button next to my order number on the Adobe website, I got the message: You have no downloads.  How can I get

  • Add something to this topic

    Hi, As I know, though the LSMW has BAPI and IDOC import way, It only can do local transfer. Yes, you can fill the receive parnter type and number in the BAPI(ALE MESSAGE) mode. But when the lsmw do transfer, it will filter out all of the port, exclud