JDBC to access SQL server 2000 and Oracle.

hi,
I have the following requirement. I have an oracle database which contain sql data including BLOB and CLOB. Firstly, I should migrate the data to a SQL server 2000 database. That is, i should be able to have two databases, one on oracle and the other on sql server 2000. the two databases should contain the same data, which includes BLOB data. I guess, sql server 2000 does not have a BLOB data type. What is the equivalent data type i can use to save the Oracle's BLOB data in SQL server?? Should it be image type?
After i migrate the data to the sql server 2000 database, i should be able to connect to the two databases, oracle and sql server 2000, using the same JDBC code to retrieve, insert, update and delete the data. What are the drivers that i should use. I guess, the MS JDBC driver does not support BLOB and CLOB. Is there a driver that can support BLOB for sql server 2000 and is also free???!
Kindly help... Thanks.
Arthi.

Hi,
I am new to jdbc... so, pls forgive my ignorance...
I shall try to map a BLOB data column in oracle to an IMAGE data column in sql server 2000. I am using oracle jdbc driver and microsoft's jdbc driver for connecting to the databases.
My question is, can i use setBlob() method in the preparedstatement in jdbc code for setting data to the sql server 2000 image column?
rs.getBlob() and preparedstatement.setBlob()code works fine for oralce's BLOB column using oracle's jdbc driver.... Will the same jdbc code work for sql server 2000's image column using microsoft's jdbc driver??
Kindly help.
Arthi.

Similar Messages

  • How do SQL server 2000 and Oracle linked?

    Hi,
    How do SQL server 2000 and Oracle linked?
    Thanks in Advance
    Baloch.

    use the like to setup ODBC and datasource
    http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
    and then create link server in sql server after you test conenction with oracle

  • Connectivity between sql server 2000 and oracle 9i

    Hi friends....
    i am developing application in which i require some data from sql server2000 tables...
    tell me how i can establish connection in between these 2 database and how can i transfer specific rows to oracle....tell me how it is possible to writting stored procedures in sql....or procedures in oracle.....i used DTS (data transfer scheme) but it transfer whole database ot table...but i want to transfer only specific rows in table...
    help me out from it?
    thanx in advance...

    There are a number of ways...
    You can certainly use DTS to extract a subset of rows and move them to Oracle. You'll need to define the WHERE clause when defining your DTS steps.
    You can use Oracle Heterogeneous Connectivity to create a database link to SQL Server from Oracle and pull the data over via straight SQL, i.e.
    INSERT INTO local_table
      SELECT * FROM remote_table@sql_server_dblink WHERE extract_conditionYou can do a similar thing in SQL Server where you use linked servers to connect to Oracle from SQL Server and push the data
    This list can go on, but these should get you started.
    Justin

  • JDBC connection to SQL Server 2000 Service Pack 4

    Hello Everyone,
    I'm trying to do a simple application which save some values into a MS SQL Server 2000 Database's Table.
    The source code I've written is:
    package Logging;
    import com.brekeke.net.sip.sv.session.*;
    import com.brekeke.net.sip.sv.session.plugins.*;
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    public class Logging extends AccountingBase {
    public int eventSessionStart( EventStat evstat, String[] argprm )
    int ris =0;
    int line=999;
    try {
    EventStat a;
    a = evstat ;
    String username;
    username=a.urlCaller;
    String callee;
    callee=a.urlCallee;
    Statement stmt = null;
    try {
    line=1;
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    line=2;
    Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://BSSQL:1433;DataBaseName=Test;User=sa;Password=biesse");
    line=3;
    // Create and execute an SQL statement that returns some data.
    String SQL = "INSERT INTO log VALUES ('" + a.urlCaller + "','" + a.urlCallee + "')";
    line=4;
    stmt = conn.createStatement();
    line=5;
    line=stmt.executeUpdate(SQL);
    line=10;
    catch (Exception e) {
    e.printStackTrace();
    finally {
    if (stmt != null) try { stmt.close(); } catch(Exception e) {}
    File f = new File("c:/prova.txt");
    FileOutputStream fos=new FileOutputStream(f);
    PrintStream ps=new PrintStream(fos);
    ps.println(line);
    ps.println(a.urlCaller);
    ps.println(a.urlCallee);
    fos.close();
    catch ( Exception ex ) {
    return ris;
    The problem is that into the Table no value is written, no problem compiling it and into the file prova.txt I can see only the value line=1 written!
    So there should be something wrong in the connection.
    I've already installed the JDBC drivers for SQL Server 2000 and I've addedd into the libraries the "msbase.jar, the mssqlserver.jar and the msutil.jar".
    But nothjng written into the Database :-(
    Can you help me please?
    Thank you very much in advance,
    Best Regards
    Francesco

    Hi,
    Yes i am able to connect from ISQL. Only connecting from JDBC is a problem.

  • Migrating SQL Server 2000 to Oracle 9i

    Hi
    I will explain system first.The current system has Delphi 5 as Front -End and SQL Server 2000 as Back -End
    Now i want to make the Delphi 5 Application compatible with both SQL Server 2000 and Oracle 9i.
    What all things should be taken in to consideration for this process????
    Ren

    Looking forward for HELP
    I will explain system first.The current system has Delphi 5 as Front -End and SQL Server 2000 as Back -End
    Now i want to make the Delphi 5 Application compatible with both SQL Server 2000 and Oracle 9i.
    What all things should be taken in to consideration for this process????
    Ren

  • SQL Server 2000 and JDBC,Registering cursor as OUT param

    hi
    I am using JDK1.4,SQL Server 2000 and Microsoft's JDBC driver.
    I am stuck in accessing cursors.
    The SP i wrote is
    USE pubs
    IF EXISTS (SELECT name FROM sysobjects
    WHERE name = 'spSelectEmployees' and type = 'P')
    DROP PROCEDURE spSelectEmployees
    GO
    CREATE PROCEDURE spSelectEmployees @emp_cursor CURSOR VARYING OUTPUT
    AS
    SET @emp_cursor = CURSOR
    FORWARD_ONLY STATIC FOR
    SELECT *
    FROM employee
    OPEN @emp_cursor
    GO
    The problem I face is that when i register the output param in java code,what datatype do I specify..code is written below.
    calStmt = conn.prepareCall("{CALL pubs.dbo.spSelectEmployees(?)}", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
    calStmt.registerOutParameter(1,Types.?????);-->What goes here???
    java.sql.Types does not give any datatype for cursor or object.Any one knows if there is an extended type given by Microsoft Driver??

    I am using JDK1.4,SQL Server 2000 and Microsoft's JDBC driver. Premably for 2000. Numerous posts here suggests that driver has problems. The jTDS driver would be a better choice.
    java.sql.Types does not give any datatype for cursor or object.Any one knows if there is an extended type given by Microsoft Driver??You are correct that it would require a driver specific type. I have no idea what it is.
    Why don't you modify the proc to return a result set.

  • Problem in Loading Data from SQL Server 2000 to Oracle 10g

    Hi All,
    I am a university student and using ODI for my final project on real-time data warehousing. I am trying to load data from MS SQL Server 2000 into Oracle 10g target table. Everything goes fine until I execute the interface for the initial load. When I choose the CKM Oracle(Create unique index on the I$ table) km, the following step fails:
    21 - Integration - Prj_Dim_RegionInterface - Create Unique Index on flow table
    Where Prj_Dim_Region is the name of my target table in Oracle.
    The error message is:
    955 : 42000 : java.sql.SQLException: ORA-00955: name is already used by an existing object
    java.sql.SQLException: ORA-00955: name is already used by an existing object
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1086)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3057)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    I am using a surrogate key column in my target table alongwith the natural key. The natural key is populated by the primary key of my source table, but for the surrogate key, I have created a sequence in my oracle schema where the target table exists and have used the following code for mapping:
    <%=snpRef.getObjectName( "L" , "SQ_PRJ_DIM_REGION" , "D" )%>.nextval
    I have chosen to execute this code on target.
    Among my attempts to solve this problem was to set Create Index option of the CKM Oracle(Create Index for the I$ Table) to No so that it wont create any index on the flow table. I also tried to use the simple CKM Oracle km . Both solutions allowed the interface to execute successfully without any errors, but the data was not loaded into the target table.
    When I right-click on the Prj_Dim_Region data store and choose Data, it shows empty. Pressing the SQL button in this data store shows a dialog box " New Query" where I see this query:
    select * from NOVELTYFURNITUREDW.PRJ_DIM_REGION
    But when i press OK to run it, I get this error message:
    java.lang.IllegalArgumentException: Row index out of range
         at javax.swing.JTable.boundRow(Unknown Source)
         at javax.swing.JTable.setRowSelectionInterval(Unknown Source)
         at com.borland.dbswing.JdbTable.accessChange(JdbTable.java:2959)
         at com.borland.dx.dataset.AccessEvent.dispatch(Unknown Source)
         at com.borland.jb.util.EventMulticaster.dispatch(Unknown Source)
         at com.borland.dx.dataset.DataSet.a(Unknown Source)
         at com.borland.dx.dataset.DataSet.a(Unknown Source)
         at com.borland.dx.dataset.DataSet.a(Unknown Source)
         at com.borland.dx.dataset.DataSet.open(Unknown Source)
         at com.borland.dx.dataset.StorageDataSet.refresh(Unknown Source)
         at com.borland.dx.sql.dataset.QueryDataSet.refresh(Unknown Source)
         at com.borland.dx.sql.dataset.QueryDataSet.executeQuery(Unknown Source)
         at com.sunopsis.graphical.frame.a.cg.actionPerformed(cg.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    I do not understand what the problem is and wasting days to figure it out. Any help will be highly appreciated as my deadline is too close for this project.
    Thank you so much in advance.
    Neel

    Hi Cezar,
    Can u plz help me with this scenario?
    I have one Oracle data model with 19 source tables and one SQL Server data model with 10 target tables. I have created 10 interfaces which use JournalizedDataOnly on one of the tables in the interface; e.g in interface for DimCustomer target table, I have 2 tables, namely Customer and Address, but the journalizing filter appear only on Customer table and this option is disabled for Address automatically.
    Now I want to create a package using OdiWaitForLog event detection. Is it possible to put all these 10 interfaces in just one package to populate the target tables? It works fine when I have only one interface and I use the name of one table in the interface for Table Name parameter of OdiWaitForLogData event, but when I try a comma seperated list of table names[Customer, Address] this error happens
    java.sql.SQLException: ORA-00942: table or view does not exist
    and if I use this method <%=odiRef.getObjectName("L","model_code","logical_schema","D")%>, I get this error
    "-CDC_SET_NAME=Exception getObjectName("L", "model_code", "logical_schema", "D") : SnpLSchema.getLSchemaByName : SnpLschema does not exist" "
    Please let me know how to make it work?
    Do I need to create separate data models each including only those tables which appear in their corresponding interface and package? Or do I need to create multiple packages each with only one journalized interface to populate only one target table?
    Thank you for your time in advance.
    Regards,
    Neel

  • SQL Server 2000 and BPEL configuration issues

    I am attempting to get SQL Server 2000 to work with BPEL PM Server, and have followed a similar set of instructions as provided in a previously posted document regarding the switch from oracle lite to oracle production. I am following the OC4J route. I've seen a previous posting on this, however, I am elaborating a little more on the configuration details here and the difficulties that I am encountering.
    I'm am using the following software:
    1) SQL Server 2000 (w/ SP3)
    2) SQL Server 2000 JDBC Driver (SP3 latest version)
    3) BPEL PM (GA release)
    Here's what I've done:
    1) setup the database in SQL Server 2000 (named: ORABPEL). then ran the ddl scripts that came with the BPEL installation for sql server. there were two scripts, one for domain and the other for server. the commandlines to run these scripts:
    sql -Uuser -Ppassword -ddatabase
    -i c:\orabpel\system\database\scripts\domain_sqlserver.ddl
    -o c:\orabpel\system\database\scripts\domain_sqlserver.out
    2) installed stored procedures for JTA. this is documented in the JDBC driver help file.
    3) modified the library paths in application.xml as followed:
    <!-- SQL2K JDBC LIBS -->
    <library path="C:\Program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar"/>
    <library path="C:\Program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar"/>
    <library path="C:\Program files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar"/>
    4) modified the datasources in the data-sources.xml:
    - first comment out the oracle lite data-source
    - add datasources for mssql 2000:
    <data-source class="com.evermind.sql.DriverManagerDataSource"
         name="BPELServerDataSource"
         location="loc/BPELServerDataSource"
         xa-location="BPELServerDataSource"
         ejb-location="jdbc/BPELServerDataSource"
         connection-driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"
         url="jdbc:microsoft:sqlserver://127.0.0.1:1433;SelectMethod=cursor;User=<username>;Password=<password>;DatabaseName=ORABPEL">
    </data-source>
    <data-source class="com.evermind.sql.DriverManagerDataSource"
         name="BPELSamplesDataSource"
         location="jdbc/BPELSamplesDataSource"
         xa-location="BPELSamplesDataSource"
         ejb-location="jdbc/BPELSamplesDataSource"
         connection-driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"
         url="jdbc:microsoft:sqlserver://127.0.0.1:1433;SelectMethod=cursor;User=<username>;Password=<password>;DatabaseName=ORABPEL">
    </data-source>
    <data-source class="com.evermind.sql.DriverManagerDataSource"
    name="AdminConsoleDateSource"
    location="jdbc/AdminConsoleDateSource"
    xa-location="AdminConsoleDateSource"
    ejb-location="jdbc/AdminConsoleDateSource"
         connection-driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"
         url="jdbc:microsoft:sqlserver://127.0.0.1:1433;SelectMethod=cursor;User=<username>;Password=<password>;DatabaseName=ORABPEL">
    </data-source>
    after starting the BPEL PM Server, I got the following set of error messages:
    Loading processes for BPEL domain "default" ...
    <2005-06-02 09:36:44,482> <ERROR> <default.collaxa.cube.sensor> <PCException::<i
    nit>> Sensors not supported.
    <2005-06-02 09:36:44,482> <ERROR> <default.collaxa.cube.sensor> <PCException::<i
    nit>> Sensors are not supported on this database platform.
    <2005-06-02 09:36:44,482> <ERROR> <default.collaxa.cube.sensor> <PCException::<i
    nit>> If sensor functionality is required, please switch to a supported platform
    After this I went and changed the class tags to: com.microsoft.jdbcx.sqlserver.SQLServerDataSource
    restarted the server and got the following:
    <2005-06-02 09:22:52,531> <INFO> <collaxa> <ConnectionFactoryImpl::init> Initial
    ized connection factory jdbc/BPELServerDataSource
    05/06/02 09:23:06 ORABPEL-04077
    Cannot fetch a datasource connection.
    The process domain was unable to establish a connection with the datasource with
    the connection URL "loc/BPELServerDataSource". The exception reported is: Cann
    ot fetch a datasource connection.
    The process domain was unable to establish a connection with the datasource with
    the connection URL "loc/BPELServerDataSource". The exception reported is: [Mic
    rosoft][SQLServer 2000 Driver for JDBC]Unable to connect. DataSource property s
    erverName must be specified.
    Please check that the machine hosting the datasource is physically connected to
    the network. Otherwise, check that the datasource connection parameters (user/p
    assword) is currently valid.
    Please check that the machine hosting the datasource is physically connected to
    the network. Otherwise, check that the datasource connection parameters (user/p
    assword) is currently valid.

    Hi,
    I just saw your post message about configuring SQL server 2000 with Oracle BPLE. Have you configured it successfully or still encountered any problem.
    I am new to Oracle BPEL. Want to know if Oracle BPEL can use MSFT SQL server 2000 as the repository entirely, therefore, we don't need Oracle (or Oracle light database).
    Will really appreciate if you can share information and experience to configure SQL 2000 with Oracle BPEL.
    Thank you so much in advance.
    Leey

  • Migrating 250gb from ms sql server 2000 to oracle

    Hi,
    i am trying to migrate data from sql server 2000 to oracle. I have tried the online method and it takes more than a day to copy one table with 250 million rows. Currently i am trying the offline method of using migration scripts with sql loader.
    this also seems to be taking a very long time for the single table with 250 million rows. Is there an effective way of doing this? please help
    thanks

    Well, lets look at what you're doing. You're using jdbc/odbc to move 250,000,000 rows. thats like using a straw to pump gas. We recommend that any migration over 10-20 MB should be done using the offline data move.
    A couple of questions
    1. How fast does the bcp go? How long does it take to complete?
    2. When using SQL Loader, are you loading it in raw format? Have you switched off any indexes on the table? Do you have the capability to load in parallel?
    Theres a lot you can do with the SQL Loader side to make it a lot fast. You might also want to consider dropping a note on the database forum too.
    Barry

  • How to connect to SQL server 2000 with Oracle Form

    Hi,
    I'm looking for the document of how to connect "SQL Server 2000" with Oracle Form 6i. Anyone knows that?

    Shay or other knowledgeable folks,
    Is there a way to utilize the wizard for "Business Tier > ADF Business Components > Business Components from Tables" for SQL Server 2000, 2005 or 2008. I can successfully execute sql via java programmatically or import a table from SQL Server with "Business Tier > ADF Business Components > Entity Object" wizard, but the Business Components from Tables simply doesn't see any tables under any schema. Without the "Business Components from Tables", i don't get the referential constraints imported into the application and to code all those from scratch is just not as elegant. So far i have only utilized the sql server jdbc driver from Microsoft (versions, 1.1, 1.2 and 2.0). Is there an alternative client that i need to use to enable selecting tables from that "Business Components from Tables" wizard. Is this a limitation of SQL Server, the jdbc driver or the wizard itself? Did anybody else experience the same issues? I am using Jdeveloper 11.1.1.0.1 against SQL Server 2005 (currently)
    Thanks,
    Andy

  • I need to syncronize MS SQL Server 2000 with Oracle DB

    Hello
    I need to syncronize MS SQL Server 2000 with Oracle Database. I have created both DB connections succesfully.
    1. Oracle DB: Oracle (JDBC)
    2. SQL Server JDBC-ODBC (bridge)
    When i create a partner link and select a DB Adapter i try to query SQL Server but it never brings the tables back to me.
    I´ve tried to configure connection 2 (MSSQL) using thrid party but i really don´t know how.
    Driver Class??
    Library?
    Library Name??
    Location??
    Class Path?
    Source Path??
    Doc Path??
    URL??
    help is appreciated. Thank you.
    F.

    Here is my setup:
    Driver Class: com.microsoft.jdbc.sqlserver.SQLServerDriver
    Library: SQLSERVER
    ClassPath: Depends on where your jar file is.
    URL: jdbc:microsoft:sqlserver://your ip address or DNS name goes here.
    The above is how my database connection is defined.
    When I create a partner link and it gets to the screen where it imports tables it takes a while for the "Querying Database Ojects..." to finish. When it does I have not tables. I then select <all schemas> AGAIN and this time I get the tables.
    If you get succeed when you do a test on the connection then I assume the connection is setup right. Perhaps the problem is like mine above and you have to select <all schemas> a second time.

  • General question on SQL Server 2000 to Oracle 10g

    Hello all,
    I just have a general question on migration from SQL Server 2000 to Oracle 10g using SQL Developer.
    How does it migrate Users with proper privileges from SQL Server to Oracle? Follow the interface steps? Or should the users be created on destination Oracle side?
    Thank you.

    Hi,
    It depends which type of migration you are making.
    For a 'Standard' migration when you migrate data a 'create user' statement is created as part of the migration and you will see this in the generated code.
    If you are using the 'Quick' migration option then you need to create the Oracle user or use an existing user to receive the data.
    Your best option is to review the documentation available from -
    http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
    or directly from -
    http://download.oracle.com/docs/cd/E12151_01/index.htm
    and then get back with specific questions if this does not give you the information you need.
    Review the chapter -
    2. Migrating Third-Party Databases
    in -
    Oracle® Database SQL Developer User’s Guide Release 1.5
    Regards,
    Mike

  • Query Perofmance is much more fast in SQL server 2000 than Oracle 9i

    I have converted a database from SQL Server 2000 to Oracle (9.0.2).
    In a stored procedure a query based on 4 tables working well in SQL Server which takes just 1 or 2 minutes to give result But in Oracle it takes 3 to 4 Hours to return the results.Although Database hit ratio is 99 plus %. In Oracle when i created indexes on 2 columns of 2 tables it just take 5 to 10 sec. But I want to get the result in less time without indexes. Because in
    SQL Server it Works well without indexes.
    Please reply me with some solutions or reasons
    Regards
    AN

    Most sites have a job that runs every night to keep the statistics up to date.Really? I would be very surprised if that was the case. Firstly, many sites don't want to take the hit of running stats for a whole system each night. Secondly, I would hope that many DBAs know this statement...
    Always keep up to date statistics if you want your database to be efficent. ...is wrong.
    The best that can happen from refreshing the statistics every night is that it makes no difference to your application. If your application is running nicely - that is, no users are yelling at you - then your current statistics are good enough. Refreshing statistics introduces instability into the system and might lead to queries performing worse than before.
    Gathering stats is not the sort of thing you want to do with a scattergun. Analyze your database once, after you've reached what is a representative data volume and then leave it alone. Only refresh statistics if you have a specific issue (user complaint) and you think stale statistics might be the cause.
    Cheers, APC

  • How to Migrate my database from SQL Server 2000 to Oracle

    I want to transfer my database from SQL Server 2000 to Oracle, Can I do this without using Oracle Migration Workbench ??
    Please help me.
    Thanks in advance
    Vicky... :-)

    Do you have a good technical reason for not wanting to use the Migration Workbench?
    Given that it's free and does a hell of a lot of the work for you, why wouldn't you use it?
    Other than that, I would say you would be on your own...
    cheers,
    Anthony

  • Reg. Migrating data from SQL Server 2000 to Oracle

    Hi All,
    I need to migrate a same data from SQL Server 2000 to Oracle 9i.In sql server Export option is there, but the problem is some 30 tables have More than one LONG datatype column in a table. That's why oracle not allow to import.
    Could you guys find any tool for the same.
    Please do the needful.
    Thanks & Regards,
    Prathap

    hi dermot,
    it's very urgent now. Can you please give any solution for this.
    and also i tried the SQL developer tool. But i got an below error,
    Error starting at line 2 in command:
    CREATE USER dbo_testdatalatest IDENTIFIED BY dbo_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
    Error at Command Line:2 Column:45
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 3 in command:
    GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO dbo_testdatalatest
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 4 in command:
    CREATE USER epm_testdatalatest IDENTIFIED BY epm_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
    Error at Command Line:4 Column:45
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 5 in command:
    GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO epm_testdatalatest
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 6 in command:
    CREATE USER lportal_testdatalatest IDENTIFIED BY lportal_testdatalatest DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP
    Error at Command Line:6 Column:49
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 7 in command:
    GRANT CREATE SESSION, RESOURCE, CREATE VIEW TO lportal_testdatalatest
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    Error starting at line 8 in command:
    connect dbo_testdatalatest/dbo_testdatalatest;
    Error report:
    Connection Failed
    Commit
    Regards,
    Prathap.R

Maybe you are looking for

  • HT1494 My old iPod nano is not being recognized by my computer.

    I recently lost my iPod touch so I am trying to move my music to my old nano. However, the new iTunes does not recognize it and also says I have only 1 device registered to my Apple ID... I have tried different USB ports, resetting my iPod, charging

  • Adding attachments to equipments (massive)

    Hi all, I need to attach n documents to n equipments, just like it is possible to do by transaction IE02, but with a massive process (possibly in background with an input file). Since this functionality is not available using SHDB I cannot use BDC. C

  • Operating system too low . What can I do?

    Hi, I just signed up for Adobe Cloud and was trying to download and open the program manager but it tells me it will not work with my operating system. I currently have a Mac with a 10.5.8 OS What can I do to install the new software.

  • Will the console log show a history of random shutdowns?

    My macbook has suddenly started the random shutdown problem. It started a couple of days ago, I'd had no problems up until then. At one point today it was shutting down immediately on waking from sleep, and then would only stay on for about two minut

  • Updating test database from production in Oracle 10g

    What will be easiest way to have production database replicated to test database once a day basis? The 2 databases are on similar machines & same OS