SQL Server Date Conversion to Oracle Date

I am new to ODI and am trying to figured out how to move a SQL Server date datatype value to an Oracle date.
Thanks in advance.

SQLServer datetime datatype is moved to an Oracle TIMESTAMP datatype via the technology's data type mapping. That particular LKM 'SQL to SQL' is written in java so reads from SQLServer into java datatypes then writes back out to Oracle.
Cheers
David

Similar Messages

  • DB LINK Oracle to SQL Server SQL Server TimeStamp converts to Oracle Date

    Hi All,
    I have created a DB link between Oracle 10g 10.2.0.5 to SQL server 2005 using Oracle 11g gateway. When I execute a query from Oracle that selects data from SQL server using the DBLINK then the column value of type Timestamp from SQL server gets converted to Date data type in Oracle and it losses the time value.
    Is there some way (in gateway configurations or in select query sql ) that the SQL server data type Timestamp gets converted to Oracle's Timestamp?
    Please help.
    Best Regards!
    Irfan
    Edited by: irf_mas on Mar 13, 2012 3:23 AM

    You're getting the ORA-2070 error as the gateway that you are using is not supporting the to_timestamp function in this context. You need to rewrite the code.
    Best would be if you first check out the data format that is sent as a string when you just select the date column - for example:
    data_create_dt
    Jan 11 2012 1:40PM
    Now the easiest way is to make sure the format you are using in your where clause matches the string from the SQL Server:
    select * from "data_ms_view"@FREETDS_DG4ODBC_EMGTW_11_2_0_3 where "data_create_dt"<'Jan 11 2012 1:41PM';
    which will result in:
    data_create_dt
    Jan 11 2012 1:40PM
    BTW,
    it works with all formats the SQL Server understands:
    SQL> select * from "data_ms_view"@FREETDS_DG4ODBC_EMGTW_11_2_0_3 where "data_create_dt">'11-JAN-12 01.40.00.000000000 AM';
    data_create_dt
    Jan 11 2012 1:40PM
    Another way using binds:
    SQL> variable datum varchar2(26);
    SQL> exec select to_char(systimestamp,'MON dd yyyy hh:mi') into :datum from dual;
    PL/SQL procedure successfully completed.
    SQL> print datum
    DATUM
    MAR 19 2012 08:29
    SQL> select * from "data_ms_view"@FREETDS_DG4ODBC_EMGTW_11_2_0_3 where "data_create_dt" <:datum;
    data_create_dt
    Jan 11 2012 1:40PM
    There are several ways to get a result, just make sure you don't use an unsupported function in your statement. A list of supported functions is found in the manual.

  • Extract the data from SQL Server and Import into Oracle

    Hi,
    I would like to run a daily job that will export the table data from SQL server table (it will be only one or two table) and Import back into Oracle table (it might one or two table tables).
    Could you please guide me that how can i do this using either sql server or oracle?
    We have oracle 9.2 and sql server 2005.
    Normally i do from flat file which is generated by source destination nand i dump into oracle using sql*loader but this time I have to directly extract/export the data from MS Sql server and load into Oracle table, mostly it will reload so i might doing any massaging data during the load.
    If you show me the detail approach, it will be really appreciated.
    I have access to Sql server but i don't how to use sql server to do this or using oracle as a daily job even becuase have to schedule the job for this as it will be a daily job.
    Thanks,
    poratips

    Unless you can find an open source ODBC driver for SQL Server that runs on Solaris (and I wouldn't be overly hopeful there) Heterogeneous Services would require that you license something-- a third party ODBC driver, a new Oracle instance, or an Oracle Transparent Gateway.
    As I stated below, you could certainly use SQL Server's ETL tool, DTS. Oracle's ETL tools would require additional licensing since you're just on 9.2. You could also write a small application (Java or otherwise) that connected to both databases and transferred the data. If you're particularly enterprising, you could load the SQL Server Type 4 JDBC driver into Oracle's JVM and write a Java stored procedure that connected to the SQL Server database via JDBC, but that's a pretty convoluted approach.
    Justin

  • How can I migrate data from SQL Server 6,5 to Oracle 8?

    We have a web site based on Microsoft SQL Server 6.5.Now we plan
    to migrate the database to Oracle 8.
    We have redesigned the tables structure and created tables under
    Oracle 8, so we only need to migrate data from SQL Server.
    We've exported data from SQL Server to text files.
    How can we import data from files and restore to Oracle tables.
    Is there a solution which let us to import data for particular
    table columns,not all columns?
    We'll be appreciated if somene can give suggestions.
    Regards
    Michael
    null

    Thank you for your reply.
    I'll try the Oracle sqlloader utility first.
    Regards
    Micahel
    Oracle Migration Workbench Team wrote:
    : Michael,
    : Oracle sqlloader is user for this sort of operation, see
    : Oracle8i Utilities
    : Release 8.1.5
    : A67792-01
    : available online through Oracle Technology Network.
    : The Oracle Migration Workbench can be used to create bcp and
    : sqlloader scripts, though since you have altered the schema
    these
    : scripts would need to be altered by hand after generation.
    : Some thought has been put into redesigning table structures in
    : the Oracle Migration Workbench, but currently it looks like
    this
    : reengineering will be left to be done by other tools, eg
    Oracle
    : Designer, once the SQLServer database has been duplicated with
    as
    : little change as possible onto Oracle.
    : Hope that helps,
    : Turloch
    : Oracle Migration Workbench Team
    : Michael (guest) wrote:
    : : We have a web site based on Microsoft SQL Server 6.5.Now we
    : plan
    : : to migrate the database to Oracle 8.
    : : We have redesigned the tables structure and created tables
    : under
    : : Oracle 8, so we only need to migrate data from SQL Server.
    : : We've exported data from SQL Server to text files.
    : : How can we import data from files and restore to Oracle
    tables.
    : : Is there a solution which let us to import data for
    particular
    : : table columns,not all columns?
    : : We'll be appreciated if somene can give suggestions.
    : : Regards
    : : Michael
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • Export data from MS sql server table to an oracle table

    I need to move data from a sql server table to an oracle table and when ever the sql server table is updated it needs to automatically update the oracle table. Is there procedure to do this or do I migrate the data once and set up a trigger on the sql server table to update the oracle table? If the trigger is the answer how do I do that?

    You might want to check out Oracle's heterogeneous services functionality if you haven't done so already. Here are a few links:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/toc.htm
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/majfeat.htm#sthref74
    Also, consulting the Oracle streams manual may be helpful -- particularly Chapter 5.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14228/toc.htm
    Perhaps someone who is more familiar with SQL Server could provide a more helpful answer.

  • Conversion from SQL Server 7.0 to Oracle 8 -- Urgent!!

    Hi!
    I've an urgent task of migrating data from SQL Server 7.0 to
    Oracle 8 for Oracle Financials Application. When is the
    Migration Workbench for SQL Server 7.0 is going to be released,
    please let me know?
    And the other question is -- Is there a possiblity that only few
    tables from the legacy system can be migrated into Oracle 8? and
    if yes, how -- details please?
    Thanks,
    Neeta.
    null

    Neeta Singh (guest) wrote:
    : Hi!
    : I've an urgent task of migrating data from SQL Server 7.0 to
    : Oracle 8 for Oracle Financials Application. When is the
    : Migration Workbench for SQL Server 7.0 is going to be released,
    : please let me know?
    : And the other question is -- Is there a possiblity that only
    few
    : tables from the legacy system can be migrated into Oracle 8?
    and
    : if yes, how -- details please?
    : Thanks,
    : Neeta.
    We plan on having a beta version of this capability in early
    August. Contact [email protected] if you want to register as
    a Beta tester.
    Yes, you can update the Oracle model in OMW to remove those
    tables you are not interested in, you can also select to just
    migrate tables & data and nothing else.
    Donal
    null

  • SQL ENTERPRISE: The edition of Reporting Services that you are using requires that you use local SQL Server relational databases for report data sources and the report server database

    The error below makes absolutely no sense! I'm using Enterprise Core...yet I'm being told I can't use remote data sources:
    w3wp!library!8!03/05/2015-19:08:48:: i INFO: Catalog SQL Server Edition = EnterpriseCore
    w3wp!library!8!03/05/2015-19:08:48:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedException: , Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedException: The feature: "The edition of Reporting
    Services that you are using requires that you use local SQL Server relational databases for report data sources and the report server database." is not supported in this edition of Reporting Services.;
    Really? This totally contradicts the documentation found here:
    https://msdn.microsoft.com/en-us/library/ms157285(v=sql.110).aspx
    That article says remote connections are completely supported.
    ARGH! Why does this have to be so difficult to setup?!?

    Hi jeffoliver1000,
    According to your description, you are using Enterprise Core edition and you are prompted that you can’t use remote data sources.
    In your scenario, we neither ignore your point nor be doubt with what you say. But actually we have met the case before that even though the SQL Server engine is Enterprise but the reporting services is still standard. So I would recommend you to find the
    actual edition of reporting services you are using. You can find Reporting Services starting SKU in the Reporting Service logs ( default location: C:\Program Files\Microsoft SQL Server\<instance name>\Reporting Services\LogFiles). For more information,
    please refer to the similar thread below:
    https://social.technet.microsoft.com/Forums/en-US/f98c2f3e-1a30-4993-ab41-acbc5014f92e/data-driven-subscription-button-not-displayed?forum=sqlreportingservices
    By the way, have you installed the other SQL Server edition before?
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Using SQL Server 2012 SSIS to Extract Data From SAP

    Hi
    What is the current best practice for using SQL Server 2012 SSIS to extract data from SAP R3? Please note we are looking for a solution that does not use SAP BW or SAP OHS.
    Ideally we would like to build our ETL SSIS process to make a .NET call to an SAP RFC procedure and avoid using web services.
    With SS2012 can we use any of these without using SAP BW:
    - SAP .NET Connector
    - MS ADO .NET
    - BizTalk .NET 3.0 Adapter
    Thanks and take care,
    Shayne

    Hi Shayne,
    You can use the .NET Framework Data Provider for mySAP Business Suite along with SQL Server Integration Service (SSIS) to import data from an SAP system into SQL Server database tables, flat files, or other compatible destination types. You can create an SSIS
    package that can be executed to import data from an SAP system.
    You must use the SQL Server Import and Export wizard to import data into the SQL Server database. You must provide a select query to specify data to be imported. The query must confirm to the semantics supported by the Data Provider for SAP. You can start the
    SQL Server Import Export Wizard either from the SQL Server Management Studio or from an Integration Service project in Visual Studio. Detail steps please see:
    Importing SAP Data Using SQL Server Management Studio:
    http://msdn.microsoft.com/en-us/library/cc185161(v=bts.10).aspx
    Importing SAP Data Using Visual Studio:
    http://msdn.microsoft.com/en-us/library/cc185254(v=bts.10).aspx
    Please feel free to ask if you have any question.
    Thanks,
    Eileen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • SQL server support or can store data in multiple languages? If so, how is it done

    Hi All,
    Can you please let me know If SQL server support or can store data in multiple languages? If so, how is it done..
    Thanks,
    Subbu
    Thanks, Subbu

    Yes, you have to use Unicode data types such as nchar and nvarchar to store the data. See https://technet.microsoft.com/en-us/library/ms191200(v=sql.105).aspx
    Satish Kartan www.sqlfood.com

  • Migration from sql server 2005 tables to oracle tables.

    Hi,
    Kindly give the steps to migrate from sql server 2005 tables to oracle tables.
    Kindly advise
    Oracle database version:
    Oracle Database 10g Release 10.2.0.1.0 - Production
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE 10.2.0.1.0 Production"
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Edited by: 873127 on Jul 18, 2011 9:46 PM

    Are you migrating or taking continual updates?
    If migrating it might be worth considering The SQLDeveloper Migration Workbench (which moves more than just data)..
    http://www.oracle.com/technetwork/database/migration/sqldevmigrationworkbench-132899.pdf
    Cheers
    David

  • Migrating SQL Server 7.0 to Oracle 8i in Different Operating Systems

    I am migrating SQL Server 7.0 Databases on NT to Oracle 8i on Sun 2.6. Is there is any other way other then Migration Workbench.
    If Mig Workbench is OK. What are the steps to do Migration.
    null

    Hi,
    You can perform this action with the Oracle Migration Workbench. Just install the Workbench on the same machine as your SQL Server database.
    You can then configure the workbench to point to the oracle database on your Sun machine.
    You can use the Oracle database on your Sun machine for both your destination database (the database to which you migrate your SQL Server schema and data) and workbench repository.
    In order to do this you will need to configure a tnsnames.ora entry. The tool that will do this configuration for you should be started up at the end of the workbench installation. It is a fairly straightfoward process.
    You then need to create a user in your oracle database that will store the workbench repository.
    Once you have comleted these steps you will be able to migrate SQL Server on NT to Oracle on Sun.
    It is exactly the same process as migrating to Oracle on NT except you are pointing the Workbench to Oracle on a Sun box.
    Regards
    John

  • Migration from sql-server 7.0 to oracle 8i

    Hai,
    I have one huge database in sql-server 7.0.
    That database has chienese,arabic and korean data. And i have created one database in oracle 8.1.6 with character set UTF8.
    By using migration work bench i couldn't transfer sql-server data into oracle 8.1.6 database which has character set utf8.
    But i have managed to transfer sql-server 7.0 to oracle 8.1.6 database which has us7ascii character set.
    Please give me the steps to transfer from sql-server 7.0 to oracle 8.1.6 database which has the character set utf8.
    I need it very very urgetnt.
    Best Regards,
    Sudhir.

    I understand that it would not be in the best interests of Oracle, monetarily that is (at least in the visible/tangible sense), to develop such a migration tool, but since the competition hasn't, why shouldn't you? I'm sure Prabha's not the first to inquire of such a thing, and I'm sure I'd have asked a similar question if I wasn't responding to you in this way. We all know Oracle is the better db - That's why we're here talking about it - but not everyone we do business with understands that, so establishing a two way street is the best way, short of requiring it of our clients, to turn them on to Oracle. I don't really think developing such a thing would hurt your business (unless MS can keep you from doing it). If your product is that much better (which we agree is true), you shouldn't be afraid of the competition. As for being afraid of proprietary constraints, I can't blame you, because I don't know how much it constrains you.
    -Val
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by The Oracle Migration Workbench Team:
    Hi Prabha,
    My first reaction to your question would be "why would anyone want to migrate FROM Oracle and TO SQLServer ?". Oracle is easily the better database !
    ...but no, I don't really think it would be in Oracle's best interests to produce a migration tool that moved users to a propritory Microsoft product/platform..<HR></BLOCKQUOTE>
    null

  • How to call a sql server stored procedure from oracle

    Hi all,
    Please anybody tell me how to call a sql server stored procedure from oracle.
    I've made an hsodbc connection and i can do insert, update, fetch data in sql server from oracle. But calling SP gives error. when I tried an SP at oracle that has line like
    "dbo"."CreateReceipt"@hsa
    where CreateReceipt is the SP of sql server and hsa is the DSN, it gives the error that "dbo"."CreateReceipt" should be declared.
    my database version is 10g
    Please help me how can i call it... I need to pass some parameters too to the SP
    thanking you

    hi,
    thank you for the response.
    when i call the sp using DBMS_HS_PASSTHROUGH, without parameters it works successfully, but with parameters it gives the following error
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC SQL Server Driver]Invalid parameter number[Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index (SQL State: S1093; SQL Code: 0)
    my code is,
    declare
    c INTEGER;
    nr INTEGER;
    begin
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@hsa;
    DBMS_HS_PASSTHROUGH.PARSE@hsa(c, 'Create_Receipt(?,?)');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,1,'abc');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,2,'xyz');
    nr:=DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@hsa(c);
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@hsa(c);
    end;
    Create_Receipt is the sp which requires two parameters.
    please give me a solution
    thanking you
    sreejith

  • How to migrate sql server image type to oracle BLOB

    In SQL Server table I have Image data type field. How to migrate image type field to oracle BOLB type field. I am using SQL server DTS to transfer the data.
    If we map, will it care ?
    Thanks,
    Venkataraman L

    Hi you might want to post your question in General Forum.
    General Database Discussions
    There's very few users visit this forum.

  • Sql Server Management Assistant (SSMA) Oracle okay for large database migrations?

    All:
    We don't have much experience with the SSMA (Oracle) tool and need some advice from those of you familiar with it.  We must migrate an Oracle 11.2.0.3.0 database to SQL Server 2014.  The Oracle database consists of approximately 25,000 tables and 30,000
    views and related indices.  The database is approximately 2.3 TB in size.
    Is this do-able using the latest version of SSMA-Oracle?  If so, how much horsepower would you throw at this to get it done?
    Any other gotchas and advice appreciated.
    Kindest Regards,
    Bill
    Bill Davidson

    Hi
    Bill,
    SSMA supports migrating large database of Oracle. To migrate Oracle database to SQL Server 2014, you could use the latest version:
    Microsoft SQL Server Migration Assistant v6.0 for Oracle. Before the migration, you should pay attention to the points below.
    1.The account that is used to connect to the Oracle database must have at least CONNECT permissions. This enables SSMA to obtain metadata from schemas owned by the connecting user. To obtain metadata for objects in other schemas and then convert objects
    in those schemas, the account must have the following permissions: CREATE ANY PROCEDURE, EXECUTE ANY PROCEDURE, SELECT ANY TABLE, SELECT ANY SEQUENCE, CREATE ANY TYPE, CREATE ANY TRIGGER, SELECT ANY DICTIONARY.
    2.Metadata about the Oracle database is not automatically refreshed. The metadata in Oracle Metadata Explorer is a snapshot of the metadata when you first connected, or the last time that you manually refreshed metadata. You can manually update metadata
    for all schemas, a single schema, or individual database objects. For more information about the process, please refer to the similar article: 
    https://msdn.microsoft.com/en-us/library/hh313203(v=sql.110).
    3.The account that is used to connect to SQL Server requires different permissions depending on the actions that the account performs as the following:
     • To convert Oracle objects to Transact-SQL syntax, to update metadata from SQL Server, or to save converted syntax to scripts, the account must have permission to log on to the instance of SQL Server.
     • To load database objects into SQL Server, the account must be a member of the sysadmin server role. This is required to install CLR assemblies.
     • To migrate data to SQL Server, the account must be a member of the sysadmin server role. This is required to run the SQL Server Agent data migration packages.
     • To run the code that is generated by SSMA, the account must have Execute permissions for all user-defined functions in the ssma_oracle schema of the target database. These functions provide equivalent functionality of Oracle system functions, and
    are used by converted objects.
     • If the account that is used to connect to SQL Server is to perform all migration tasks, the account must be a member of the sysadmin server role.
    For more information about the process, please refer to the  similar article: 
    https://msdn.microsoft.com/en-us/library/hh313158(v=sql.110)
    4.Metadata about SQL Server databases is not automatically updated. The metadata in SQL Server Metadata Explorer is a snapshot of the metadata when you first connected to SQL Server, or the last time that you manually updated metadata. You can manually update
    metadata for all databases, or for any single database or database object.
    5.If the engine being used is Server Side Data Migration Engine, then, before you can migrate data, you must install the SSMA for Oracle Extension Pack and the Oracle providers on the computer that is running SSMA. The SQL Server Agent service must also
    be running. For more information about how to install the extension pack, see Installing Server Components (OracleToSQL). And when SQL Express edition is used as the target database, only client side data migration is allowed and server side data migration
    is not supported. For more information about the process, please refer to the  similar article: 
    https://msdn.microsoft.com/en-us/library/hh313202(v=sql.110)
    For how to migrate Oracle Databases to SQL Server, please refer to the  similar article: 
    https://msdn.microsoft.com/en-us/library/hh313159(v=sql.110).aspx
    Regards,
    Michelle Li

Maybe you are looking for

  • How to enter a style ID/Class for a box?

    I don't see any apparent way to enter a style ID or class name for a selected box.  Neither the "Layout" tab nor the "Styling" tab have a widget for this.  No such presence in the Right-Click menu, either.  Those are the places where I would expect t

  • HT1430 How do I reset my iPad 2 if I can't slide to power off?

    My iPad is frozen with a sign displayed to say I haven't backed it up over wifi for 3 weeks.Any ideas or suggestions? Would restore work?

  • Load program is read a wrong position

    Hi all,       I faced a problem as below:      IDOC:  1000.00   1001000001      When i upload the data to PSA, the error is "1000.00 1001" is not number.      on the words, the program is read a wrong position and wrong value.      And on the anther

  • Adobe AIR Installation Issue

    Hi, I am facing an installation issue with AIR file on multiple machines.Though I am able to install it on some machiens.Below is the log for same. [2011-08-05:11:56:02] Application Installer begin with version 2.7.0.19530 on Windows XP x86 [2011-08-

  • Sales order / net work

    HI masters Is there any direct link between sales order and net work. as per as my knowledge sales order link with wbs,  can i have the details please thanqu raj