datetime SQL server because of oracle timestamp?

Hello world

When I try to convert the datetime sql server timestamp oracle show me the error in the interface to ORA-30088: datetime/interval precision is out of range.


The agove error occurs when you create of work table itself.

I changed the data of the physical architecture type converted to datetime sql server oracle timestamp and tried, but still the same error.

can someone help me with this.

Thank you

Hi Dev,

You're right, it's a good solution.

Cezar

Tags: Business Intelligence

Similar Questions

  • Since SQL SERVER 2005 to Oracle 10.2

    Hello

    How can we transfer DB from sql server 2005 to Oracle 10.2.0.1?

    Thank you
    Brij

    DBF, is not sql server.
    >
    SQL Server databases have three types of files:

    *

    Primary data files

    The primary data file is the starting point of the database and points to the other files in the database. Each database has a primary data file. The file name extension recommended for primary data files is .mdf.
    *

    Secondary data files

    Secondary data files include all files of data, other than the primary data file. Some databases may not have secondary data files, while others have multiple secondary data files. The file name extension recommended for secondary data files is .ndf.
    *

    Log files

    Log files hold all the log information used to recover the database. There must be at least one log file for each database, although there may be more than one. The file name extension recommended for log files is .ldf.
    >

    for dbf to oracle, see http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:711825134415

  • Migration from SQL Server 2005 to Oracle 10g

    Dear friends,

    I need to move my tables with data from SQL Server 2005 to Oracle 10 g. How can we make the best possible?

    Please guide me.

    Nith

    Here are the 4 options (it is perhaps more)

    * 1.* export to text file in SQL2005 and load text files using external table in Oracle

    * 2 in the Oracle ODBC for SQL Server connection configuration and simply pull the data using create table abc to select * mytable@sqlserver - if the oracle is on windows, this should be quick, free and painless, it works under unix as well. Examples

    http://www.databasejournal.com/features/Oracle/article.php/3442661/making-a-connection-from-Oracle-to-SQL-Server.htm
    http://www.easysoft.com/applications/Oracle/database-gateway-dg4odbc.html

    * 3.*, I think that you can configure the connection between SQL SERVER and Oracle

    http://support.Microsoft.com/kb/280106

    or and I hate this solution in general, but it works in the content is low

    * 4 in MS Access link to ORACLE and MS SQL Tables (two linked tables) and then create the insert query to move the data from the server sql for oracle - this solution works, but it is quite slow.

  • Migration sql server 2000 for oracle 9i

    Hello

    I migrate from sql server 2000 to oracle 9i

    When I capture Microsoft Sql Server, it gives an error
    oracle.dbtools.metadata.persistence.PersistenceException: ORA-04098: trigger ' MIGRATION. MD_PROJECTS_TRG' is invalid and does not re-validation
    I try again and it starts but it's not to stop until clicking on cancel or close

    What's the harm?

    Thank you

    Hello
    You hit a known issue using a repository created in 9.2.
    To show that this is the case do the following-

    SQL > alter trigger compilation MD_PROJECTS_TRG.

    WARNING: Trigger modified with compilation errors.

    SQL > show errors
    Errors for MD_PROJECTS_TRG TRIGGER:

    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    3/9 PL/SQL: statement ignored
    3/20 PLS-00905: object MIGREP. MD_META is not valid

    Compilation md_meta-

    SQL > alter compilation package md_meta;

    WARNING: The package has been modified with compilation errors.

    SQL > show errors
    PACKAGE MD_META for errors:

    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    0/0 PLS-00908: the stored format of MD_META is not supported by this
    Release

    21/4 PLS-00114: identifier 'PUTBAIFZKA3IHSJ5AC4ZXWYAWG41KN' too long
    21/4 PLS-00707: construction not taken in charge or internal error [2702]
    SQL >
    ==

    If you get this, so the only alternative is to create the SQL * Developer repository in a database of 10.2.

    Kind regards
    Mike

  • How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    WITH cte (col1, col2) AS
    (
    SELECT col1, col2
    FROM dbo. [tb1]
    WHERE col1 = 12
    UNION ALL
    SELECT c.col1, c.col2
    FROM dbo. [tb1] AS c INNER JOIN cte AS p ON c.col2 = p.col1
    )
    DELETE one
    FROM dbo. [tb1] AS an INNER JOIN b cte
    ON a.col1 = b.col1

    Hello
    Something like this maybe:

    DELETE FROM dbo.tb1 a
     WHERE EXISTS (
      SELECT 1
        FROM dbo.tb1 b
      WHERE a.co11 = b.col1
          AND a.col2 = b.col2
       START WITH b.col1 = 12
      CONNECT BY b.col2 = PRIOR b.col1)
    

    Although you need to do here is to check that CONNECT it BY SELECT, returns records you wait first, then the DELETION should work too.

  • Loading data to SQL server for the Oracle database

    I want to create a table in oracle db table in sql server. Table is huge that he has obtained the documents 97,456,789.
    I created the link (HS) db in the oracle database that points to the sql server. I choose this oracle db on the link table.

    Select * from 'dbo '. "T1@dblink;

    I shot below to create the table.
    create table t2 nologging parallel (degree = 3) as select * from 'dbo '. "T1@dblink;
    and its taking a long time... but its operation...

    is there any other method to do this and and fill the table in oracle db faster.

    Please notify. Thank you.

    vhiware wrote:
    create table t2 nologging parallel (degree = 3) as select * from 'dbo '. "T1@dblink;
    and its taking a long time... but its operation...

    I doubt that parallel processing will be used because it is unique to Oracle (using rowid varies in general) and not SQL-Server.

    is there any other method to do this and and fill the table in oracle db faster.

    Part of the performance overhead is to pull that data from SQL Server to Oracle in the whole of the liaison network between them. This can be accelerated by compressing the data first - and who then transfer them over the network.

    For example: using + bcp + to export the data in the SQL Server box to a CSV file, compress/zip file, scp/sftp file Oracle and then to unzip there. In parallel and direct treatment of load can now be done using SQL * Loader to load the CSV file into Oracle.

    If it is a basic Linux/Unix system, the process of decompression/unzip can be run in parallel with the SQL * process Loader by creating a pipe between the two – where the decompression process writes data uncompressed in the pipe and SQL * Loader reads and loads the data that is available through the pipe.

    Otherwise you are PQ own transformation. Assume that the data is date varies. You can create a procedure on Oracle that looks like this:
    {code}
    create or replace procedure as copyday (day) is
    Start
    Insert / * + append * / into local_tab select * from remote_tab@remotedb where col_day = day;
    -Add logging info, validation, etc.
    end;
    {code}

    You can now start 10 or more of these different days and run it in the background using DBMS_JOB.

  • Need help to write to Oracle and SQL Server in the Oracle triggering

    We have a third which feeds data for us. Their client application feeds directly to some source tables in our Oracle database 10g. We have triggers on those tables that sort and treat lines as they come.

    We have a new operation and try to write some of these incoming data now to a SQL Server database through heterogeneous services - essentially the same exact data in two databases. I have a related database that works very well for the selection, but I've never tried to write Oracle PL/SQL to write in a DB SQL Server 2008. My first attempt was met with the following error: "ORA-02047: impossible to join the current distributed transaction.

    I found another thread where they say that the only way to do it is by using a stand-alone transaction, but they do not give an example. Here is the section of relaxation that I use:
      select to_char(new_date,'MM-DD-YYYY') into sql_txt from dual;
      insert into mancamp_location@sqlweb
           ("UnitID", "ManCampID", "Lat", "Long", "UpdateDT", "VehSpeed", "VehDirection", "Landmark")
        values (v_truck, f_unit, f_lat, f_long, sql_txt, f_spd, f_dir, f_ldmk);
    Can someone point me to a way to accomplish this simple insertion?

    An example of a standalone trigger is:

    Suppose you have a table in Oracle:

    CREATE TABLE emp_sal
    (
    EMPNO NUMBER 4,
    SAL NUMBER (7.2));

    and a similar table in a SQL server:
    SQL Server:

    CREATE TABLE emp_sal
    (
    EMPNO NUMERIC (4).
    SAL NUMERIC (7.2));

    Then, you can create an insert trigger that replicates the data:
    CREATE OR REPLACE TRIGGER dg4odbc_repl AFTER INSERT ON emp_sal
    FOR EACH LINE
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    INSERT INTO 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB '.
    VALUES (: new.empno,: new.sal);
    COMMIT;
    END;
    /

    -Note the validation, otherwise risk of ORA-6519

    When you now insert a record into the Oracle database:
    insert into emp_sal values (1234, '1200,89');
    the trigger is activated and inserts the record in SQL Server:
    Select * from 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
    EMPNO, SAL
    ----- -------
    1234 1200.89

    It works fine when you post data insert, but as soon as restore you the insert only data Oracle will be cancelled - data will remain as long as the independent transaction dedicated to its SQL Server insert:

    insert into emp_sal values (1384, '1200,89');
    Rollback;
    Select * from emp_sal;
    EMPNO, SAL
    ----- -------
    1234 1200.89

    Select * from 'emp_sal"@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
    EMPNO, SAL
    ----- -------
    1234 1200.89
    1384 1200.89

    So I strongly recommend to use the DG4MSQL gateway which is able to participate in distributed transactions and allows validation/restore transactions.

    DG4ODBC lie on OTN (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html-online check out the "See all" link for your favorite platform), cloud of delivery of software Oracle (https://edelivery.oracle.com/) or "My Oracle Support". My Oracle support welcomes the latest version 11.2.0.3. In My Oracle Support goto patches and updates, then search for 11.2.0.3 data set Patch 10404530patch: 11.2.0.3.0 PATCH SET for ORACLE database SERVER, choose your preferred platform and see the Readme which CD contains the gateway software.

    Published by: kgronau on April 24, 2012 08:44

  • Connection to Microsoft SQL Server 2008 from Oracle 11 g

    Hello

    I'm working on a requirement to connect from Oracle 11 g DB for Microsoft SQL Server 2008. After serching for the options available on the web I found the follwing link

    Connectivity ODBC - http://www.dbapool.com/Articles/06280701.html using UNIX ODBC and FreeTDS

    I have configured everying as stated in the article, but I'm stuck to test the connection.

    Isql both tsql not working and giving the below error.

    locale is "" fr_FR. UTF-8 ".
    locale charset is 'UTF-8 '.
    using the set of characters by default "UTF-8".
    Error 20009 (9 severity):
    Unable to connect: Adaptive Server is unavailable or does not exist
    Operating system error 111, 'connection refused '.
    There was a problem connecting to the server

    $ isql - v mstest
    [S1000] [unixODBC] [FreeTDS] [SQL Server] Unable to connect to the data source
    [S 08, 01] [unixODBC] [FreeTDS] [SQL Server] Impossible to connect: Adaptive Server is unavailable or does not exist
    [ISQL] ERROR: Not impossible not SQLConnect

    Here are my files.

    FreeTDS.conf


    [MSTEST]
    Host = 19.x.x.x
    #instance = xxx
    port = 614xx
    TDS version = 8.0


    ODBC.ini

    [MSTEST]
    Driver = TDS
    Description = MS SQL Test
    Trace = Yes
    Trace file = /tmp/mstest_odbc_ini.log
    Server = 19.x.x.x
    #Servername = xxxx
    Address = 19.x.x.x
    Database = multilingual
    TDS_version = 8.0
    Port = 614xx

    odbcinst.ini

    [TDS]
    Description = FreeTDS driver
    Driver = /usr/local/lib/libtdsodbc.so
    Setup = /usr/local/lib/libtdsodbc.so
    Trace = Yes
    Trace file = /tmp/freetd.log
    FileUsage = 1

    Has anyone tried this before... Any help is very appreciated.

    Thank you
    Steve.

    I tried and it worked. What's in your trace files? You specified two different, both files in / tmp. Journal will be in one of them. Please, view the contents of the log file. In addition, the problem may be with the SQL Server. ODBC 20009 error is "error of numerical value": http://www.wiki-errors.com/err.php?wiki=20009

  • SQL Server 2005 to Oracle Migration

    Dear friends,

    I scoured many websites on migration, and I have a few options in hand.

    1 - oracle Workbench: does not support SQL Server more
    2 - SQL Developer: has not worked for me (he gave a lot of mistakes, I didn't know how to fix)
    3 - dblink: what used for migration?
    4. I can try to generate text files in sql server and using loaded sql I should load into oracle.
    5 experiment some features in sql server to convert it into another format.

    Advice me please if you know which is the best option among all or if there are other ways to handle them.

    I need only the tables and records.

    Please guide me.

    Thank you.

    Nith

    Sorry Nith, I have no practical experience on the Golden Gate.

  • Ms SQL Server 2005 to Oracle 9i migration

    Hi all

    MS-SQLServer to Oracle 9i migration. in migration, work bench lists only SQL SERVER 2000

    Thank you
    -
    ABK

    Oracle Migration Workbench is outdated and replaced with SQL Developer Migration Workbench.
    Take a look on:
    http://www.Oracle.com/technology/tech/Migration/Workbench/index_sqldev_omwb.html

  • the variable name of database query to SQL Server using the Oracle database link

    Hi all

    I have an ApEx 4.1 application running on x 64 (11.2.0.1) 11g on Windows Server 2008 x 64, and I have a few points of data integration with SQL (2005 and 2008) server that I need to create. I have configured the database with dg4odbc link and it works perfectly... I can run queries on the SQL Server database without any problem using the database link.

    However, there is a scenario where the SQL Server database name is dynamic, and I need to generate on the fly in a PL/SQL block and then use it in a query dynamic SQL (all this in the ApEx). It of wherever I meet problems... when I asked the default database that is based on the ODBC connection and I don't have to specify the name of the database, no problem. But when I need access to one of the several other databases by default, I received the error "invalid table.

    It works well:* (note that 'fv' is the name of my database link)

    v_query1: = "select 'Release Date' from dbo." Schedules@FV where dbo. Annexes. "" SchedID "=: calendar";
    EXECUTE IMMEDIATE v_query1 in rel_date using the grid.




    I then take this rel_date variable, convert a varchar2 (rel_date_char), then use it as the name of the database in the following query...


    _ It returns an error(error ORA-00903: invalid table name)

    v_query2: = "select"PARTNO": rel_date_char.dbo.ProdDetails@fv where 'SchedID' =: calendar and"UnitID"=: unit"
    and 'MasterKey' =: master and "ParentKey" =: parent';

    EXECUTE IMMEDIATE v_query2 in part_number using planning, master, parent unit;



    I also tried using all of the following conditions without result:

    "select"PARTNO"of" | : rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
    "select"PARTNO"of" | rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
    "select"PARTNO"of" | @rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
    "select"PARTNO"in @rel_date_char.dbo.ProdDetails @fv where 'SchedID'..."


    Is it possible to do it in PL/SQL?

    Thanks for any help!
    -Ian C.

    Published by: 946532 on July 15, 2012 19:45

    Just did a test using passthrough:

    SQL > set serveroutput on
    SQL > declare
    2 val varchar2 (100);
    3 c whole;
    4 whole nr;
    5. start
    c: 6 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, "select count (*) from EMP");
    8 LOOP
    9 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    10 output when nr = 0;
    11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
    12 dbms_output.put_line (val);
    13 end of loop;
    14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    15 end;
    16.
    24576

    PL/SQL procedure successfully completed.

    SQL > declare
    2 val varchar2 (100);
    3 c whole;
    4 whole nr;
    5. start
    c: 6 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, ' select count (*) from dbo.) EMP');
    8 LOOP
    9 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    10 output when nr = 0;
    11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
    12 dbms_output.put_line (val);
    13 end of loop;
    14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    15 end;
    16.
    24576

    PL/SQL procedure successfully completed.

    So all 3 ways work for me.

    Published by: kgronau on July 23, 2012 10:08

    Now, using the variables to make the selection:

    SQL > declare
    2 val varchar2 (100);
    3 c whole;
    4 whole nr;
    5 tabname varchar2 (20): = 'EMP ';
    6 ownr varchar2 (20): = "dbo."
    7 dbname varchar2 (20): = "door";
    Start 8
    c: 9 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    10 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, ' SELECT count (*) FROM ': dbname: '.) ' || ownr | '.'|| tabname | ") ;
    11 LOOP
    12 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    13 when the exit nr = 0;
    14 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
    15 dbms_output.put_line (val);
    16 end loop;
    17 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    18 end;
    19.
    24576

    PL/SQL procedure successfully completed.

    => instead of executing the statement using the "execute Immediate" we use the PASTHROUGH package to pass the statement to SQL Server.

    Published by: kgronau on July 23, 2012 10:10

  • SQL server datetime problem - oracle do not capture "millisecond" of sql server

    Hello world

    Reading from the datetime sql server timestamp to oracle, oracle is not catpuring correctly the milliseconds of oracle, rather it's just using 0000000 to poulate rather than correct Ms.

    verified in the topology as Yahweh than for sql server datetime converted in to oracle's timestamp.

    Please suggest where he made mistake. its urgency. ?

    Thank you

    Good to know Dev!

    Good luck!

  • ODI: Mapping SQL Server datetime field to Date ORACLE


    Hello

    I tried map a datetime (SQL Server) field to a Date field in my intermediate Oracle DB table.

    The format of the source (SQL Server) is 2014-08-12 15:04:48.927 and in mapping for the intermediate table, I use the function TO_TIMESTAMP (sql_field_name, 'YYYY-MM-DD HH24:MI:SS.ff')

    When executing the interface, it fails with the error: ORA-01843: not one month valid

    Is there an error in the conversion?

    Any help will be appreciated.

    Thank you.

    Hello

    Thanks for your help.

    @Mahak VARCHAR2 conversion also did not work, kept getting is not not a month error invalid. In my view, that move data between SQL Server and Oracle there are some questions in the format and precision.

    I have now resolved the issue. It worked by using the CONVERT (DATETIME, field_name) SQL Server function in the map and put it to run on the Source (a MS SQL Server DB) instead of the target (which is an Oracle DB).

  • question about generated an offline source SQL server 2008 given by Oracle SQL developer

    Hi friends,

    I followed the tutor to the migration of a database server Microsoft SQL to Oracle Database 11 g by Developer sql Version 3.2.20.10 in the window.

    I can migrate the code examples in the oracle database.  The code example has two file: Capture and data. Under the folder data, there are two parts. one is designated as folder under oracle and rest is data add log files.

    When I migrated my database of sql server 2008 in oracle 11. I can objects only sql migrated to oracle but failed to load data during data file missing.

    In the past reviewed in the output directory, I see a lot of ctl files under the folder datamove and generate the file. But I am not able to find any file data in support of ctl codes

    The code file as ctl example

    load data

    INFILE 'data/dbo_test.sale.dat '.

    "str"< EORD >"

    in the /dbo_test.sale.SALE table

    ----

    Because of missing data, data loading works, file but not the data in the migrated tables.

    Recode displayed

    ......

    SQL >

    Modified table.

    SQL >

    Modified trigger.

    SQL > disconnected from the database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production

    With the options of partitioning, OLAP, advanced analytics and Real Application Testing

    C:\SQL_DB\SQL_OUT\testout\datamove\SQL_mig\2013-09-09_13-43-43\sale\dbo >

    Please help me where I lost in migration processing.so I can generate a data during the migration file

    Thank you

    newdaa

    Use SQl developer offers 2 options to move the data, online and offline data movement. When you call the batch file to load data offline you must also make sure that you collected the data first to the SQL server side using the data to extract batch files that create the DAT files with the content. The content is written in flat files using the file unload_scripts.bat-online check if you have this kind of file, and then copy the entire script to SQL Server folder, and run the script of unloading it.

    It will create the dat files that you will then need to load the data into the Oracle database.

  • Replication sql server to oracle

    Hi all

    Anyone here good at replication?

    Can you help me what freeware, or the poor woman script or cheaper tool (compared to GG) to replicate the table from sql server to oracle?

    I tried Googling it, but it is simply too complex to understand :(


    Help, please...

    Thank you

    zxy

    yxes2013 wrote:
    Well he has trigger that records the primary key and the action made next to sqlserver.

    example of

    '100', 'I '.
    '200', 'U '.
    ' 300', 'd'

    Therefore the corresponding action will be also in oracle.

    But I want a good solution of script, that's why I just give you the trick :(

    Thank you...

    You should be this announcement on the forum SQL Server, because the script will need to be written in T - SQL to execute against this DB.

Maybe you are looking for