DBLink From Oracle 9i server to Oracle RDB Server

Hi,
i have to take access a table which is on ORACLE RDB server from Oracle 9i server...
I have tried this many times......but not succeed. plz help me its very urgent.

Hi..
What did you do...did you create a dblink...is there some error ..
To create the dblink you can use
create database link <name> connect to <username_of_remote_db> identified by <user's_password> using '(DESCRIPTION =
     (ADDRESS_LIST =
       (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.x.x.x)(PORT = xxxx))
      (CONNECT_DATA =
        (SID = remote_db_sid)
       (SERVER = DEDICATED)
  ;Refer to link: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5005.htm#SQLRF01205]
Anand

Similar Messages

  • DBLINK FROM ORACLE9I ON WINDOWS TO CONNECT SQL SERVER 2005 ON WINDOWS 2003

    Hello All,
    please i will need help in connecting oracle9i via dblink to sqlserver 2005.
    i have done some configurations already
    * started the listener = which starts alright
    * the tnsping was also successful
    but i keep getting ORA-12154:TNS:could not resolve service name
    this is my tnsnames
    # TNSNAMES.ORA Network Configuration File: D:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    SIMREG.CORP.MULTI-TELKOM.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.11.185)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = simreg)
    INST1_HTTP.CORP.MULTI-TELKOM.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.11.185)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA.CORP.MULTI-TELKOM.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Mtl_simcard =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    (CONNECT_DATA=(SID=Mtl_simcard))
    (HS=OK)
    and my listener
    # LISTENER.ORA Network Configuration File: D:\oracle\ora92\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vic00246dt)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\ora92)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = simreg)
    (ORACLE_HOME = D:\oracle\ora92)
    (SID_NAME = simreg)
    LISTENERMtl_simcard =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vic00246dt)(PORT = 1522))
    SID_LIST_LISTENERMtl_simcard =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = Mtl_simcard)
    (ORACLE_HOME = D:\oracle\ora92)
    (PROGRAM = hsodbc)
    (SID_DESC =
    (GLOBAL_DBNAME = simreg)
    (ORACLE_HOME = D:\oracle\ora92)
    (SID_NAME = simreg)
    i also have the following in my D:\oracle\ora92\hs\admin
    *inithsodbc
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Mtl_simcard
    HS_FDS_TRACE_LEVEL = OFF
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    also initMtl_simcard
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Mtl_simcard
    HS_FDS_TRACE_LEVEL = OFF
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    please is there any thing have done wrong please some should point out to me.....thanks, i will be looking forward to suggestions and recommendations

    12154 means the alias you have defined for HSODBC specified in the database links using cluase can't be found in the tnsnames.ora. Most of your entries have the domain suffix .CORP.MULTI-TELKOM.COM - only the hsodbc alias misses this information.
    Unfortunately you didn't post the SQLNET.ORA file which commonly contains the default domain parameter, so I can only suggest to change the alias to:
    Mtl_simcard, Mtl_simcard .CORP.MULTI-TELKOM.COM = # note the comma between both aliases which allows you to use an alias with and without the domain
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=vic00246dt)(PORT=1522))
    (CONNECT_DATA=(SID=Mtl_simcard))
    (HS=OK)
    You also didn't post the create database link statement but it should look like:
    create database link <you link name> connect to "<case sensitive SQl Server UID>" identified by "<case sensitive PWD>" using 'Mtl_simcard';
    => the using cluase must refer to your tnsnames.ora hsodbc alias.
    When it continues to fail, please post the tnsping command the the create database link statement.

  • How to create dblink from oracle to sqlserver

    sqlserver:10.5.0.61
    sqlserver 2005
    windows server 2003
    oracle:10.30.16.19
    9.2.0.6
    solaris
    i installed oracle 9i transparent gateway on 10.5.0.61, and the follows are my config files :
    10.5.0.61:
    D:\oracle\ora92\tg4msql\admin\initvatdata.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Transparent Gateway for SQL Server
    # HS init parameters
    HS_FDS_CONNECT_INFO="SERVER=10.5.0.61;DATABASE=vatdata"
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    D:\oracle\ora92\network\admin\listener.ora
    # LISTENER.ORA Network Configuration File: D:\oracle\ora92\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.5.0.61)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = vatdata)
    (PROGRAM = tg4msql)
    (SID_NAME = vatdata)
    (ORACLE_HOME = d:\oracle\ora92)
    then i create dblink on 10.30.16.19:
    CREATE PUBLIC DATABASE LINK "DB_SQLVAT"
    CONNECT TO "vatsfc" IDENTIFIED BY "guest"
    USING '(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.5.0.61)(PORT = 1521))
    (CONNECT_DATA =
    (SID = vatdata)
    (HS = OK)
    sys@BARORA> select * from dbo.tb_result@DB_SQLVAT;
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from DB_SQLVAT
    can you give me some advice? thanks very much!

    when run lsnrctl stat on 10.5.0.61:
    C:\Documents and Settings\Administrator>lsnrctl stat
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 13-1月 -2011 12:54
    :16
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
    LISTENER 的 STATUS
    别名 LISTENER
    版本 TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Produc
    tion
    启动日期 13-1月 -2011 12:54:13
    正常运行时间 0 天 0 小时 0 分 3 秒
    跟踪级别 off
    安全性 OFF
    SNMP OFF
    监听器参数文件 D:\oracle\ora92\network\admin\listener.ora
    监听器日志文件 D:\oracle\ora92\network\log\listener.log
    监听端点概要...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.5.0.61)(PORT=1521)))
    服务摘要..
    服务 "vatdata" 包含 1 个例程。
    例程 "vatdata", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
    命令执行成功

  • Create dblink in Oracle/Linux (RHEL4) to MS SQL Server/Windows?

    Hi,
    Can anyone share me the procedure to Create dblink in Oracle/Linux (RHEL4) to MS SQL Server/Windows?
    Thanks

    Hi,
    to access non-Oracle systems you must use Oracle Heterogeneous Services.
    You have to follow the instructions from Heterogeneous Connectivity Administrator's Guide to perform it.
    Regs,
    Acr

  • Loading data from SQL server to Oracle database

    i want to create one table in oracle db from table in sql server. Table is huge it got 97,456,789 records.
    I created db link (HS) in oracle database which is pointing to sql server. i can select that table from oracle thru db link.
    select * from "dbo"."t1@dblink;
    i fired below create table.
    create table t2 nologging parallel (degree=3) as select * from "dbo"."t1@dblink;
    and its taking long time.... but its running...
    is there any alternate method to do this and and populate table in oracle db faster.
    Please advise. thanks.

    vhiware wrote:
    create table t2 nologging parallel (degree=3) as select * from "dbo"."t1@dblink;
    and its taking long time.... but its running...I doubt that parallel processing will be used as this is unique to Oracle (using rowid ranges typically) and not SQL-Server.
    is there any alternate method to do this and and populate table in oracle db faster.Part of the performance overhead is pulling that data from SQL-Server to Oracle across the network link between them. This can be sped up by compressing the data first - and then transferring that across the network.
    For example: using +bcp+ to export the data on the SQL-Server box to a CSV file, compress/zip the file, scp/sftp the file to Oracle, and then unzipping it there. Parallel and direct load processing can now be done using SQL*Loader to load the CSV into Oracle.
    If this is a Linux/Unix base system, then the unzip/decompress process can be run in parallel with the SQL*Loader process by creating a pipe between the two - where the unzip process writes uncompressed data into the pipe and SQL*Loader reads and loads data as it becomes available via the pipe.
    Alternatively, you can do you own PQ processing. Let's say the data is date ranged. You can create a procedure on Oracle that looks something like this:
    {code}
    create or replace procedure CopyDay( day date ) is
    begin
    insert /*+ append */ into local_tab select * from remote_tab@remotedb where col_day = day;
    -- add logging info, commit, etc.
    end;
    {code}
    You can now start 10 or more of these for different days and run it in the background using DBMS_JOB.

  • Migrating a table with BLOB field from SQL-Server to Oracle.

    Hi All,
    I'm trying to create a Class to migrate data from SQL-Server to Oracle, this table has a BLOB field.
    The Code:
    package br.com.infox;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.Statement;
    public class Migrador {
         public static void main(String[] args){
              try {
                   // Conex�o com o SQL Server
                   Class.forName("net.sourceforge.jtds.jdbc.Driver");
                   Connection conSQL = DriverManager.getConnection ("jdbc:jtds:sqlserver://10.10.2.9/protocolo","prot","suinf2002");
                   // Conex�o com o Oracle
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   Connection conORA = DriverManager.getConnection ("jdbc:oracle:thin:@10.10.2.2:1521:des","protocolo","protocolo");
                   Statement stSQL = conSQL.createStatement();
                   String querySQL = "SELECT * FROM DOC_INCORPORADO";
                   ResultSet rsSQL = stSQL.executeQuery(querySQL);
                   String queryORA = "INSERT INTO PROT_VITALICIAMENTO (NU_PROCESSO, ANO_PROCESSO, CD_USUARIO, DT_ENVIO," +
                             "DE_COMPLEMENTO, NM_ARQUIVO, ARQUIVO, NU_SEQ, CD_TIPO_ARQUIVO, MES, ANO) VALUES (?,?,?,?,?,?,?,?,?,?,?)";
                   PreparedStatement psORA = conORA.prepareStatement(queryORA);
                   while (rsSQL.next()){
                        System.out.println("Linha: " + rsSQL.getRow());
                        psORA.setInt(1, rsSQL.getInt("nu_processo"));
                        psORA.setInt(2, rsSQL.getInt("ano_processo"));
                        psORA.setInt(3, rsSQL.getInt("cd_usuario"));
                        psORA.setDate(4, rsSQL.getDate("dt_incorporacao"));
                        psORA.setString(5, rsSQL.getString("complemento"));
                        psORA.setString(6, rsSQL.getString("nm_arquivo"));
                        psORA.setBinaryStream(7, rsSQL.getBinaryStream("arquivo"), (int)rsSQL.getBlob("arquivo").length());
                        psORA.setInt(8, rsSQL.getInt("num_seq"));
                        psORA.setInt(9, rsSQL.getInt("cd_tipo_arquivo"));
                        psORA.setInt(10, rsSQL.getInt("mes"));
                        psORA.setInt(11, rsSQL.getInt("ano"));
                        psORA.executeUpdate();
                   stSQL.close();
                   psORA.close();
                   conORA.close();
                   conSQL.close();
              } catch (Exception e){
                   e.printStackTrace();
    The ERROR:
    java.sql.SQLException: Exce��o de E/S: Connection reset
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3668)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2191)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2064)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2989)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
         at br.com.infox.Migrador.main(Migrador.java:41)
    What's the problem of these Class?
    Thank's.

    Depending on the version of the database you have, you could use transportable tablespaces.
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96524/c04space.htm#9370

  • How to copy file to another server from database using FTP in oracle

    How to copy file to another server from database using FTP in oracle.
    Please do the needfaul.

    Billy  Verreynne  wrote:
    BluShadow wrote:
    Not to mention that some FTP servers can return more than one return message per operation whereas others may return one message for the same operation.I had the problem using the LIST command to determine if a file exists on the server. Cannot be determined via the FTP server's return code. Which means parsing and checking the text response from the server to the command. And this vary from server to server.
    But the basics were quite easy to code. The entire package is 500 lines, includes comments and blank lines for formatting, and supports the basic FTP client command set. Not really a complex piece of software to write - but I found that many developers seem to think that writing network socket software is complex. Not really the case...Mine's a big larger, but incorporates functionality similar to what Chris provided in his, such as being able to use SQL to query a remote file using pipelined functions, or functionality to write the results of a query directly to a remove file.
    :)

  • Related to migration of db from sql server to oracle 11 g

    We're trying to migrate a Sql server managment studio database to Oracle 11g using SQL Developer 4.0. We can successfully connect to both Sql server managment studion 8.0 and Oracle 11g using the tool, as well as click through the Migration Wizard and start the migration.
    This opens the Database Migration dialog box, which indicates the capture process starts normally. we get the following error:
    ora :01440 : can not insert null into migrlog (id column) ,
    \and then after some time , i get an error that migration failed
    i am not getting the reason,I thing it may be due to reason that , I have table's column in my source db with more than 30 character.
    If i am migrating one by one table . then it is not giving any error, and identifier name is getting shrink in 30 character. but i am not getting the view , stored procedure , indexes , and others
    then what is the solution  for that, somebody pls suggest any help?????????????               

    Pl do not post duplicates - related to migration of db from sql server to oracle 11 g
    Continue the discussion in your original thread
    The error message is explicitly clear
    ora :01440 : can not insert null into migrlog (id column)
    Your process is trying to insert a NULL value into the ID column, which presumably cannot be NULL

  • How to replicate data from MS SQL Server  to Oracle

    Hi,
    Can someone please help me on how to replicate data from MS SQL Server to Oracle 8i database.

    Dear,
    I'm a student.
    I do simple replication on Oracle 8.0.5 successfully. (one master site and one snapshot site). I only use the SQL*Plus and Schema Manager to do.
    But when I do advance replication (multimaster replication) I meet many problem. So I don't get the result.
    Do you show me the technology to do that ?
    Thanks !

  • Link from Oracle DB server to Oracle DB server

    Hi,
    I need some help how to link oracle db server A to Oracle db server B. It is so difficult to set it up. I kept getting error 'Could not resolve the connect identified...'
    when I execute this query statement that links to B server: select COUNT(*) from [email protected]
    I am currently on server A and here is the information server of server B.
    Server B
    DB Name: 'SafeStaging'
    Domain: 'us.mycomp.com'
    global Name: true
    Name of db link: SAFESTAGING.US.MYCOMP.COM
    From the query screen, I used the query syntax to establish the link as following:
    create database link SAFESTAGING.US.MYCOMP.COM
    connect to "login" identified by "password"
    using 'service_staging'
    In the TNSNAMES.ORA file on the server desktop, I also add these lines
    service_staging =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ###.###.#.##)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME =SAFESTAGING.US.MYCOMP.COM)
    select COUNT(*) from [email protected] --> get error: 'Could not resolve the connect identified...'

    Thanks for the reply. But, the issue is not resolved. I still get error: 'Could not resolve the connect identifier specified'
    The TNSNAMES.ORA contains this information
    QSAFESTG.US.MyComp.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ###.##.###.##)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = qsafestg)
    Oracle uses this information to connect this db server is fine from the UI.  But, the issue when I create the database link.
    create database link QSAFESTG.US.MyComp.COM connect to "login" identified by "password" using 'qsafestg'
    SELECT COUNT(*)
    FROM [email protected]
    -----> I got an error 'could not resolve the connect identifier specifier'
    on DOS command - tnsping qsafestg --> get error: 'Failed to resolve name'. --why it failed?
    Then, I tried creating another link
    create database link qsafestg connect to "login" identified by "password" using 'qsafestg'
    SELECT COUNT(*)
    FROM table1@qsafestg
    -----> I got an error 'could not resolve the connect identifier specifier'
    ON DOS Command: tnsping QSAFESTG.US.MyComp.COM --> Return: OK. (100ms) ?
    Why do I keep getting this error: could not resolve the connect identifier specifier

  • Porting from Oracle 10g AS to Oracle 11g Weblogic server

    Hi,
    I am trying to port J2EE applicatin from Oracle 10g AS to Oracle 11g Weblogic Server. I have jsp files which contains sql code embedded to fetch data from the DB. The components used in this application are Java, JSP, Servlets and Stateless session beans.
    I have a commonjar which is used to create DB Connection manager and other common stuff which is present inside web-inf/lib. My application is packaged as an ear and which contains the war and different ejb-project.jar files. When the Stateless bean is trying to call the ConnectionManager class, which is present inside the commonjar inside web-inf/lib, I get InvocationTargetException. When I debugged in Eclipse, I see that that inside ejb the reference ConnectionManager, the variable cannot be resolved. So I guess at runtime, ejb is not able to locate ConnectionManager Class.
    I tried to copy this jar to APP-INF/lib and the same jar is present inside web-inf/lib as well. In that case what happens is the jsp fails with the exception ConnectionManager cannot be resolved.
    How can I make the ejb work by keeping the commonjar inside web-inf/lib alone.
    Any help or suggestions?
    Thanks
    Raj

    The classloader hierarchy in WLS looks like this (arrows denote inheritance direction):
    Java bootstrap classloader <- Java CLASSPATH classloader <- WLS $DOMAIN_HOME/lib classloader <- Application (e.g., EAR) classloader <- web app classloader <- single JSP classloader
    The Connection Manager is loaded by the web app classloader while the EJBs are loaded by the application classloader so the EJBs have no visibility to the classes loaded by the child (web app) classloader.
    The simplest fix might be to move the Connection Manager jar file to the EAR file's APP-INF/lib directory.
    One word of caution though, you need to be using WebLogic Server's Data Sources and JDBC connection pooling to make sure that you correct transactional behavior if the application is doing any sort of JTA transaction (regardless of whether the JTA transactions are using XA or not...).
    Hope this helps,
    Robert

  • Migration from SQL server to Oracle

    Hi,
    Has anybody done migration from the SQL server to Oracle? If so, what manual method do you recommend? I'm a new college grad and I would like to get your expertise, if you have done this in the past.
    Thanks in advance!
    Sho

    It is some time back, so I do not remember the specifics. Oracle gives Oracle Migration Workbench for free. You can use it to convert all SQL tables and procedures etc to oracle. It is not that difficult. If there are no stored procedures etc, you can just extract the DDL and create the tables with minor changes to the script. You might need bcp-sqlloader/trasparent gateway etc copy the data.
    Giby

  • Migration from SQL Server to Oracle 8i

    Hi,
    what are the general issues to be considered when migrating a database from SQL server to Oracle 8i.
    Is it documented on the web/ or any publication
    Samit

    What we did was to create the schema using migration work bench and then transfer the data using data junction
    The main issues that you have to handle are
    1) Data type issue, here problem comes converting chars to varchars as chars are padded and may not work in indexes, so you have to trim the afterwards, and if you have any image type data types in Sqlserver, you can use either lobs or long raw, it again depends upon your application, if you uses lobs you may have to recode your application
    2) Sql statements, Oracle cannot understand Sqlserver sql statements, so you have to convert them all. Sqlserver allows two outerjoins to a table, Oracle does not, so you have to modify your functionality
    3) Connections to the database. if you are using ODBC then use Oracle ODBC drivers and the latest ones, otherwise you may encounter memory leaks.
    These are from the top of my head, if you have any specific problem I may be able to help.
    Good luck

  • How to extract incremental data from SQL server to oracle tables in ODI

    HI All,
    In my ODI sql server is install.My Source is in SQL server and my target is in Oracle.
    I need to create a interface mapping where i need to extract incremental data from sql server to oracle.
    There is a datetime(with Timestamp) field in sql server .I need to pull incremental data based on dateime.
    Example = tablename.DateTime > (select '1-jan-11' from dual) .....i am using this query but its not woking.the error is Invalid object name"dual".
    We are not going to use Incremental in IKM and LKM.
    Request you to please provide any suggestion ASAP.
    Thanks,
    Lony

    You can do that via Variable.
    In the interface mapping create a filter on Tablename.DateTime
    and put the condition like this
    Tablename.DateTime BETWEEN #VAR and in the variable use this query in refreshing tab with oracle schema
    SELECT max(start_time)||' AND '||max(END_TIME)+1 from audit_table where ETL_JOB_CODE = '20'In the package call the above variable in refresh mode and then interface.
    This way you will pass from the query between and condition date and pass to interface so that SQL Server fetches the data between those too range.
    Note:- You might need to tweak the date format so that SQL Server can understand.
    Hope this helps.

  • Migration from sql server to oracle db

    I would like to hear about possible options of migrate JD Edwards on SQL Server (about 50GB) and want to convert to Oracle 9i/10g Release.
    Please let me know the efforts required besides data migration. Did anyone done this migration on JDEdwards application and would like to hear the complexities involved in the SQL/Stored Proc/Trigger Conversions
    thanks.
    --

    Hello
    the following are the steps that gives you overview on SQL db->Oracle db migration. However I strongly recommend you to take field consultant's support considering the complexities in data migration.
    1. Create an Add on server plan for the new Database server.
    2. Create the database and users in your database.
    Create the DB's & JDE users in Oracle to hold the copies of the tables you want to keep. I would suggest creating DB's with the same names that JDE recommends within an NT/Oracle installation - see the Installation guide for details. Those names are as follows, however, you can put everything in one DB if you want:
    JDE812
    This holds System, Server Map, Object Librarian and Data Dictionary tables. For other releases this DB may be named JDE7333 (Xe), JDE7334 (ERP8), JDE9 (8.9), or PS811 (8.11).
    JDE_PD812
    This holds Central Objects and Versions tables. For other releases this DB may be called JDE_PD7333, JDE_PD7334, JDE_PD9, PS_PD811.
    JDE_PRODUCTION
    This holds the Control Tables and Business Data tables. For other releases this DB may be called JDE_Production (Xe, ERP8 & 8.9), PS_PROD (8.11).
    Depending on the release you're running, you will have scripts on the deployment server under \JDEdwards\E812\database that can be edited to create these databases for you. You need to also create the users for these databases. See the Windows installation guide for the release you're working with to walk you through editing and running these scripts.
    3. Create the new datasources and modify them accordingly.
    Create new, custom Data Sources to point to those databases. For this I would suggest calling the Data Sources similar names to the original DS's. For example:
    Business Data - PRODSQL
    Control Tables - PRODSQL
    Central Objects - PD812SQL
    Versions - PD812SQL
    System - 812SQL
    Object Librarian - 812SQL
    Data Dictionary - 812SQL
    ENT - 812SQL Server Map (where ENT is the name of the server the DB is installed)
    Note: You will need to install Host code to this server for communication to work between the old DB server and this new one.
    Install the Windows Host code on this new server. See the Windows Installation guide, Installing Enterprise Server section, for more information. Make sure to install services and run porttest to make sure communication works from the new Enterprise server to the old Server and DB.
    4. Finally to move the data from one server to another using R98403 version.
    Run R98403 for the Data Sources of the tables you want to copy. There are different versions of R98403 that can be used to copy from one Data Source to another. I would suggest making a copy of the version and using that to change processing options and data selection.
    Always have a verified backup of your Database before you run R98403 just in case something happens and you overwrite original data.

Maybe you are looking for

  • OC4J Version Confusion - 2.0.0.0 or 9.0.2.0.0 ?????

    On my desktop PC I have JDevelop9i RC, which reports its OC4J version as Oracle9iAS (2.0.0.0) Containers for J2EE. On my server PC I have the developer's preview of OC4J Version 2 as downloaded from the Oracle site, which reports its version as Oracl

  • All Apps still crashing on print in Leopard

    For the past several months since upgrading to Tiger 10.4.5, I had problems in Tiger printing from my MBP. Anytime I would try to print to my HP 1510 or 6310, local via USB or networked, the application would crash. Any app. So I tried several things

  • Anyone using Garritan Personal Orchestra from an external HD?

    I'm trying to transfer samples to my new external drive, and am having trouble with GPO. I tried making an alias for the GPO library folder, but with no luck. Anyone know how to do this? Thanks.

  • Safari 3 won't open PDF files

    Since installing the OS 10.4.11 update, I've been having problems with downloading PDFs. When I try to download, I get a blank, all-gray window, with no content. This does not happen with PDF downloads from all sites, but for a very frustrating major

  • Job Execution after database startup

    I have around 15 materialized views. Each one has different execution time during the day. For example: some of them are reloaded at 9:00 PM, others at 7:00 AM. If i would have to re-start my database, or the database instance, the server gets so slo