SQL Server 2005 data pull from Oracle

Hi, I am learning how to use Oracle and I ran into this problem.
My database is running on SQL Server 2005.
I have an ODBC connection to Oracle. I also have a VB .Net script that queries the Oracle table that the data resides in.
When the job is running, and if it stalls, I do not get a timeout error. It locks down my database and no other source systems can feed data to me; these are back logged in the queue.
Is there an easier way for me to make a connection that will pull data on a consistent basis? Please help ...
Student Learner

Learning how to use Oracle does not include taking data from Oracle and putting it into SQL Server.
From your description of what is happening I agree with BluShadow. This is not an Oracle issue. This is a coding in VB .NET issue.
Posting the statements you are executing against some unknown version of Oracle would be a good starting point.

Similar Messages

  • How to integrate from MS SQL SERVER 2005 and Flatfile to Oracle 10g.

    Hi
    I am new to ODI. I am trying to load sample data from MS SQL Server 2005 and Flatfile to Oracle 10g.
    1. I have created three models.
    1-1. SQL2005 (SRC_CUSTOMER table)
    1-2. Flatfile (SRC_AGE_GROUP.txt & SRC_SALES_PERSON.txt)
    1-3. Oracle 10g (TRG_CUSTOMER table)
    You may know I got those environments from the ODI DEMO environment.
    2. I could able to reverse the tables also.
    3. I have created an interface which contains source table (from MSSQL 2005), Flatfile and target table from ORACLE model.
    4. I have imported the knowledge modules. But I am confusing in selecting the knowledge modules to source and target tables.
    I've selected LKM File to SQL for flatfile model.
    I've also selected LKM SQL to SQL for MSSQL 2005 model and IKM Oracle Incremental Update for the target table (ORACLE).
    I've also implemented the interface that I created. It worked without errors. But there is no data in target table which is TRG_CUSTOMER.
    I really would like to know what happened and what the problems are.
    You can email me [email protected]
    Thanks in advance
    Jason Lee

    what did give for SRC_AGE_GROUP SRC_CUSTOMER join condition
    if it is
    (SRC_CUSTOMER.AGE=SRC_AGE_GROUP.AGE_MIN) AND SRC_CUSTOMER.AGE=SRC_AGE_GROUP.AGE_MAX
    give it as
    (SRC_CUSTOMER.AGE>SRC_AGE_GROUP.AGE_MIN) AND SRC_CUSTOMER.AGE<SRC_AGE_GROUP.AGE_MAX

  • SQL Server 2005 64 bit and Oracle 9

    Hi,
    I have a situation which involves SQL Server 2005 64 bit and Oracle 9 32 bit,
    I have a requirement that involves creating Stored Procedures from Oracle 9 which will call tables from SQL Server 2005 64 bit, with operations involving 'Select' 'Insert' 'Update' and 'Delete'.
    it works fins, except when attempting to search for an SQL Server 'varchar' value, wher no mapping is done
    though the Oracle sees the field as 'varchar2'
    can anyone please advice on this
    thanks
    Basel

    I think you're somehow not getting a resuklt because you're query doesn't return any data.
    Why the fiealdA=pat=parameterA construct? Wouldn't it just work if you changed it to fieldA=parameterA?
    Also, can you not just define parameterA as a varchar to make them match?
    What if you do "select * from (<your query without where>) a where a.fieldA = :parameterA"
    While not efficient, it would make the filtering occur in Oracle and maybe that will let you see the problem in native Oracle land and then reuse the solution in your orginal query. If that doesn't work, drop the where clause and inspect the data closly and hardcode a simple where without using PL*SQL or bind variables.

  • Writing a stored procedure to import SQL Server table data into a Oracle table

    Hello,
    As a new DBA I have been tasked with writing a stored procedure to import SQL Server table data into an Oracle table. I have been given many suggestions on how to do it from SQL Server but I I just need to write a stored procedure to run it from the Oracle side. Suggestions/guidance on where to start would be greatly appreciated! Thank you!
    I started to write it based on what I have but I know this is not correct :/
    # Here is the select statement for the data source in SQL Server...
    SELECT COMPANY
    ,CUSTOMER
    ,TRANS_TYPE
    ,INVOICE
    ,TRANS_DATE
    ,STATUS
    ,TRAN_AMT
    ,CREDIT_AMT
    ,APPLD_AMT
    ,ADJ_AMT
    ,TRANS_USER1
    ,PROCESS_LEVEL
    ,DESCRIPTION
    ,DUE_DATE
    ,OUR_DATE
    ,OUR_TIME
    ,PROCESS_FLAG
    ,ERROR_DESCRIPTION
      FROM data_source_table_name
    #It loads data into the table in Oracle....   
    Insert into oracle_destination_table_name (
    COMPANY,
    CUSTOMER,
    TRANS_TYPE,
    INVOICE,
    TRANS_DATE,
    STATUS,
    TRANS_AMT,
    CREDIT_AMT,
    APPLD_AMT,
    ADJ_AMT,
    TRANS_USER1,
    PROCESS_LEVEL,
    DESCRIPTION,
    DUE_DATE,
    OUR_DATE,
    OUR_TIME,
    PROCESS_FLAG,
    ERROR_DESCRIPTION)
    END;

    CREATE TABLE statements would have been better as MS-SQL and Oracle don't have the same data types.
    OUR_DATE, OUR_TIME will (most likely) be ONE column in Oracle.
    DATABASE LINK
    Personally, I'd just load the data over a database link:
    insert into oracle_destination_table_name ( <column list> )
    select ... <transform data here>
    from data_source_table@mssql_db_link
    As far as creating the database link from Oracle to MS-SQL ... that is for somebody else to answer.
    (most likely you'll need to use an ODBC driver)
    EXTERNAL TABLE
    If the data from MS-SQL is in a CSV file, just use and external table.
    same concept:
    insert into oracle_destination_table_name ( <column list> )
    select ... <transform data here>
    from data_source_external_table
    MK

  • SQL Server 2005 data in SAP BI

    Hi All !
    Having a requirment to pull the SQL Sever 2005 data in SAP BI. How you go about for creating the datasource? As I understand SQL maintains tables. We can create views based on the table. But how to generate the Datasource of out it?
    With Regards
    Rekha

    Hi Rekha:
    You might want to consider connecting from BW to SQL Server using either DB Connect or UD Connect (by defining a Source System).
    The contents of tables or views on the SQL Server side can be sent to BW after defining the corresponding DataSources.
    Regards,
    Francisco Milán.

  • Running SQL Server Function and Procedures from Oracle

    I am trying to run SQL Server 2005 functions and/or procedures from a SQL statement in Oracle. I have gone throught the hetergeneous services and have connected to the SQL Server database successfully. I can also do a query to a table in SQL Server successfully; but I have not been able to execute a procedure or a function.

    Have you tried Oracle syntax? It seems to me that you have only tried T-SQL syntax, e.g. execute proc.
    Wrap it in a begin..end tag like you would a normal PL/SQL function or proc call. Assumption is that as Oracle makes the remote database (via the dblink) look like an Oracle database, you should also play along and pretend it is one and treat it as such.
    E.g.declare
      r integer;
    begin
      -- execute remote proc
      procFoo@dblink( 'ABC' );
      -- call a remote function
      r := funcFoo@dblink( 123 );
    end;

  • MS SQL Server 2005 Data Conversion Problem

    Hello all,
    I'm using the Microsoft JDBC Driver with SQL Server 2005 and getting an exception from the database server indicating that it is attempting to convert an nvarchar to an int (SQL Error 8114). This is the stack trace and code. I've exhausted all my resources... anybody have an idea?
    com.microsoft.sqlserver.jdbc.SQLServerException: Error converting data type nvarchar to int.
    at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
    at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.getPrepExecResponse(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement (Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PreparedStatementExecutionRequest.executeStatement(Unknown Source)
    at com.microsoft.sqlserver.jdbc.CancelableRequest.execute(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.execute(Unknown Source)
    at com.boeing.ict.workmonitor.swing.JMainFrame$33.insertIntoDB (JMainFrame.java:986)
    at com.boeing.ict.workmonitor.utils.SafeUDPWorker.respond(SafeUDPWorker.java:65)
    at com.boeing.ict.workmonitor.utils.SafeNetWorker.runWork(SafeNetWorker.java:113)
    at com.boeing.ict.workmonitor.utils.SafeNetWorker.access$000 (SafeNetWorker.java:21)
    at com.boeing.ict.workmonitor.utils.SafeNetWorker$1.run(SafeNetWorker.java:59)
    at java.lang.Thread.run(Unknown Source)
        private void listenToCOTMessages() {
            // the listener has not started yet.
            if (cotMessageWorker == null) {
                cotMessageWorker = new SafeUDPWorker() {
                    public void insertIntoDB(Iterator<NameValuePair> nvPairs) {
                        try {
                            int numParameters = 0;
                            if (isDebugMode()) {
                                System.err.println("Entered insertIntoDB");
                            while (nvPairs.hasNext()) {
                                NameValuePair pair = nvPairs.next();
                                // Aircraft callsign
                                if (pair.getName().equalsIgnoreCase("callsign")) {
                                    cotStatement.setString(1, pair.getValue());
                                    // debug code
                                    System.err.println("{1} " + pair.getValue());
                                    cotStatement.setString(2, pair.getValue());
                                    // debug code
                                    System.err.println("{2} " + pair.getValue());
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                // Aircraft altitude (meters)
                                else if (pair.getName().equalsIgnoreCase("hae")) {
                                    int height = Integer.parseInt(pair.getValue());
                                    height = (int)((height * 39.37) / 12);
                                    cotStatement.setInt(3, height);
                                    // debug code
                                    System.err.println("{3} " + height);
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                // aircraft latitude N/S (+/-)
                                else if (pair.getName().equalsIgnoreCase("lat")) {
                                    String rawLatitude = pair.getValue();
                                    // we have a south latitude
                                    if (rawLatitude.charAt(0) == '-') {
                                        // we need to append an " S"
                                    } else {
                                        rawLatitude = rawLatitude.substring(1) + " S";
                                    cotStatement.setString (4, rawLatitude);
                                    System.err.println("{4} " + rawLatitude);
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                // aircraft longitude E/W (+/-)
                                else if (pair.getName ().equalsIgnoreCase("lon")) {
                                    String rawLongitude = pair.getValue();
                                    // we have a west longitude
                                    if (rawLongitude.charAt (0) == '-') {
                                        rawLongitude = rawLongitude.substring(1) + " W";
                                    cotStatement.setString(5, rawLongitude);
                                    // debug code
                                    System.err.println("{5}" + rawLongitude);
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                // aircraft course
                                else if (pair.getName().equalsIgnoreCase("course")) {
                                    cotStatement.setString(6, pair.getValue());
                                    // debug code
                                    System.err.println("{6} " + pair.getValue());
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                // we have a speed number
                                else if (pair.getName ().equalsIgnoreCase("speed")) {
                                    cotStatement.setInt(7, Integer.parseInt(pair.getValue()));
                                    System.err.println("{7} " + pair.getValue ());
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                else {
                                    continue;
                            // execute the callable statement
                            cotStatement.execute();
                        } catch (SQLException ex) {
                            ex.printStackTrace();
                            // statusPanel.getStatusTextArea().append( ex.getMessage());
                // set the debugging mode
                cotMessageWorker.setDebugMode(debugMode);
                // set the output area for the worker
                cotMessageWorker.setMessageArea(cotTextArea);
                String portField = cotPortTextField.getText();
                // get the port setting from the portTextField
                if (portField.length() != 0) {
                    try {
                        cotMessageWorker.setPort(Integer.parseInt(portField));
                    } catch (NumberFormatException nfe) {
                        cotPortTextField.setBackground(Color.RED);
                cotMessageWorker.setStatusArea(statusPanel.getStatusTextArea());
                // set the java.sql.Statement object to do the data insertion
                if (cotStatement != null)
                    cotMessageWorker.setSqlStatement(cotStatement);
                cotMessageWorker.start();
            } else { // the listener has started
                // there are no errors generated for making multiple resume requests
                cotMessageWorker.resumeRequest();
        }

    Ideas? Not really, there's nothing wrong-looking about your code, but maybe I could ask some dumb questions.
    Has this code never worked, or does it usually work but occasionally this error occurs? Have you just switched to SQL Server 2005 from 2000 and the error started happening?
    Does the table you are inserting to only have those 7 columns, or are there others that are getting default values? Does it contain auto-generated identity columns? Are you sure you're using the right table in the right database?

  • MS SQL Server 2005 data types

    Hi,
    I have some code that executes a stored procedure in SQL Server 2005 database from Weblogic 8.1. There is a Spring framework layer in between. I am having problems passing a datetime parameter to the SP (ther server thinks it's a varchar). According to the BEA documentation here http://edocs.bea.com/wls/docs100/jdbc_drivers/mssqlserver.html#wp1088746, a datetime parameter should be passed as java.sql.Types.TIMESTAMP. I've tried TIMESTAMP, DATE, TIME, and none of them work. But, that documentation says it's only for SQL Server 2000. What about 2005? Does anyone know?
    Thanks in advance.

    We use SQL2005 & WebLogic 8.1, but we use the Microsoft JDBC driver form here
    and it all works fine with timestamps. We use this datatype to pass them down java.sql.Timestamp
    http://www.microsoft.com/downloads/details.aspx?familyid=C47053EB-3B64-4794-950D-81E1EC91C1BA&displaylang=en
    The MS driver has some enhancements specifically for SQL2005 for performance and handling the new data types. We've always been told to use the vendors driver in preference to the BEA supplied one - that came from BEA!
    Pete

  • Linked Servers - Sql server 2005 to connect to Oracle 11g using ldap.ora instead of tnsnames.ora

    We have a SQL Server 2005 64bit box that needs a linked server created to Oracle 11g 64bit box. I have all the Oracle client software installed and can successfully connect to the Oracle database using SQL+ on the SQL Server 2005 64bit box. When I create
    the linked server and select the OraOledb.Oracle provider, I get the TNSNames error. The Oracle server does not use tnsnames.ora it uses OLAP.ora to resolve. How do I get Linked server to stop trying to connect via TNSNames and use the OLAP.ora file instead?
    I can't find any articles for this specific issues. All Oracle examples tell you to use TNSNAMES. The Oracle server is not under my companies control so I can not force the vendor to use tnsnames instead of OLAP.

    Hi,
    Have you got a resolution?
    Thank you.

  • Sql server 2005 dts export to Oracle 10

    can the sql developer migration tool read a DTS export file or can it only connect to a running sql server db for the migration?
    I have a need to dts out some tables from sql server, and put them in an update package to load them into Oracle at another site where I may not have a sql server db or a network connection back to my sql server db. Some of the text fields have embedded Carriage Returns and other control characters, so I can't do a ascii export. Any suggestions would be appreciated.

    Hi <Please Supply Name>,
    Unfortunately SQL Developer Migration Workbench cannot read DTS files, but there are other solutions.
    Migrating the Database (DDL)
    You can do this 2 ways depending on your preference or where you have SQL Developer installed.
    1)SQL Developer on your SQL Server machine (Note you need access to an Oracle database, but not your target Oracle database): You could capture/convert and create the generation script using SQL Developer on the same machine as your SQL Server, and then just bring the generation script to your Oracle database to run.
    2) SQL Developer on your Oracle machine.You could perform an offline capture .This involves SQL Developer creating some scripts for you, you copy them to your SQL Server Machine to run. Te scripts dump the DDL of your SQL Server database out to files. These files can then be moved to your Oracle machine and "Captured" using SQL Developer. You then proceed to do the migration on your Oracle machine.
    Heres a viewlet of someone migrating their SQL Server databases using the "Offline Capture" method
    http://www.oracle.com/technology/tech/migration/workbench/viewlets/oflauncher.html
    Migrating the Data
    There is only 1 way to perform an "Offline Data Move"
    SQL Developer can generate the scripts for you once you have migrated your database DDL. These scipts utilise SQL Servers BCP tool and Oracle SQL*Loader tool.
    Heres a viewlet of someone moving their SQL Server data offline using this method
    http://www.oracle.com/technology/tech/migration/workbench/viewlets/ofdm.html
    I hope this helps
    Dermot.
    Message was edited by:
    dooneill

  • How to migrate SQL Server image data type to Oracle 8 BLOB data type?

    Hi,
    I have to migrate data from sql server to Oracle 10 g.
    I am unable to migrate image data type from sql server to blob data type in oracle.
    Iam using Oracle Heterogenous Services to migrate the data,Using Merge statement and database link.
    I am getting the following error-
    ERROR at line 7:
    ORA-00932: inconsistent datatypes: expected BLOB got LONG BINARY
    Can any one suggest me how to migrate Image datatype to BLOB???

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

  • Calling a sql server sproc and function from oracle gateway

    Hello ,
    i am new to oracle gateway,
    we are trying to call a sql server 2008 stored procedure and function which return result set like a table result set.
    Can you please share some syntax of how to do it.
    and capture the data set and loop through or output it.
    Thanks
    madhu

    On My Oracle Support you find some notes how to do that. The first one is
    Different Methods For Calling MS SQL Server Procedures Using DG4MSQL (Doc ID 197192.1)
    and a note using result sets (it was written fir the Sybase gateway but works the same way for DG4MSQL) is:
    How to Call a Remote Sybase Procedure Using DG4SYBS (Doc ID 351400.1)
    - Klaus

  • Convert MS SQL server image data type into oracle clob

    Hi all! I'm tryng to access to Microsoft SQL server with Oracle via ODBC. Oracle is not able to use the image data type of Microsoft SQL server. Do you know a way to convert this data type in an oracle format? The explicit casting converts image to long raw, but after the conversion Oracle is not able to manage these data type. Thank you very much!
    Stefano.

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

  • Sql server - 2005 - Data Protection Tool

    Hi,
    We are looking any Data Security tool for out existing Data for Protection, we would like to do the Data Encryption and Data masking with some user activity reporting.
    Anyone know any good tool?
    Right now we are looking tool which one has minimal application rewriting or code changes.
    Thanks,

    Those features were added in SQL Server and weren't available in 2005. Except EFS and Bitlocker which are implementations outside SQL Server.
    Tibor Karaszi, SQL Server MVP |
    web | blog

  • Connecting to SQL Server on Win NT from Oracle On Unix

    I have Oracle database in one unix machine.
    I have to connect with the orcle database on unix from the sql server on windous NT.
    This can be accomplished trough ODBC but do not know the exact driver or an interface through which i can connect with the unix oracle database.
    If anybody have any idea about commecting two hetrogeneaus databases on two different OS.
    Please Help
    Thanks in advance.
    Satish Pahade

    Once a time I practise the replication betweem the sql server and oracle in UNIX.
    I just succeed in replication from sql server to oracle db.
    I can recall that this donot need ODBC.
    YuePeng Chen.
    [email protected]

Maybe you are looking for

  • Hierarchy on HANA Calculation View with Optional Input Parameters Fails

    Hi, Has anyone succeeded in building a hierarchy on top of a calculation view with optional input parameters, where an input parameter is not filled? The original requirement came from the wish to create a parent child hierarchy on a calculation view

  • Z87 G45 Internet

    I've tried to reinstall Killer drivers to no avail. When using internet, it sometimes drops connection and I have to restart to get back the internet. If I use a wireless adapter I'm fine. 4670k G65 Gaming 7970 GHZ 1866 DDR3 8gb 750W PSU

  • Reseting the Hashed Password after enabling Windows File Sharing

    Disclaimer: you'll need a good bit of knowledge about OS X, UNIX, and encryption to understand what I'm talking about. All right, so normally OS X hashes user passwords using a salted SHA1 encryption. It uses shadowing so that you can't obtain the ac

  • Some SC Items not getting transferred to sourcing cockpit

    Hi, Even after the SC is complete, approved and the "sourcing is always carried out" setting is maintained in the config, still some requirements are not transferred to sourcing cockpit. The sourcing relevant indicator in BBP_PDIGP table is set to bl

  • ELM upload MKT Attribute with identifier Email adress

    Hi Forum- and SAP Experts, we have an Excel List of email adresses - these are people which not want to get an email. We want to archive to update these Business Partner with the Marketing attributes example Newsletter / No. Our question is, can we u