SQL SErver to Oracle Migration Issue
Hi All,
I am facing a problem migrating from SQL Server2005 to Oracle 11g
The Capture doesnt capture all the objects, it is capturing only one table from SQL SErver( IThas close to 300 Objects)
When we try to capture the SQL Server Objects we are getting a JDBC access Error,
This is the exact error we are getting,
"Error while registering Oracle JDBC Diagnosability MBean"
The version of SQL Server is 2005, and the version of Oracle is Oracle 11g, With the latest Download of SQL Developer.
Are there any work arounds for this problem.
Thanks in Advance
Which driver are you using?
We test using JTDS http://jtds.sourceforge.net/
Looks like others have got this connecting to Oracle 11g.
Error while registering Oracle JDBC Diagnosability MBean - version 1.2.1
In which case its not the problem of the 3rd party driver.
This thread seems to suggest that its an Oracle JDBC problem. It might be rectified by downloading the latest driver from otn.
Re: SEVERE: Error while registering Oracle JDBC Diagnosability MBean
I hope this helps
Dermot.
Similar Messages
-
SQL Server to Oracle migration with SQL Server DTS
I migrate database from SQL Server to Oracle with SQL Server DTS. the process is success. I can select table_name from user_tables or user_objects. I also can see the table from DBA Studio. But When I use desc to list the structure of table in SQLPLUS. it tell me object don't exist.
What is wrong?
Thanksuse sp_help <tablename>
-
Sql server to Oracle migration using java
I am doing a project in which i need to create a java application which migrates sql server(2000) db to oracle..kindly help me out
Thanks for your help..i do not want any third party
components..i am almost done with the tables
migration and am trying to figure out about
procedures..here is a code which does migrate
tables...hope it helps you too!
* Copyright Isocra Ltd 2004
* You can use, modify and freely distribute this file
as long as you credit Isocra Ltd.
* There is no explicit or implied guarantee of
functionality associated with this file, use it at
your own risk.
package com.isocra.util;
import java.sql.DatabaseMetaData;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.PreparedStatement;
import java.sql.ResultSetMetaData;
import java.util.Properties;
import java.io.FileInputStream;
import java.io.IOException;
* This class connects to a database and dumps all
the tables and contents out to stdout in the form
of
* a set of SQL executable statements
ublic class db2sql {
/** Dump the whole database to an SQL string */
public static String dumpDB(Properties props) {
String driverClassName =
props.getProperty("driver.class");
String driverURL =
props.getProperty("driver.url");
// Default to not having a quote character
String columnNameQuote =
props.getProperty("columnName.quoteChar", "");
DatabaseMetaData dbMetaData = null;
Connection dbConn = null;
try {
Class.forName(driverClassName);
dbConn =
DriverManager.getConnection(driverURL, props);
dbMetaData = dbConn.getMetaData();
catch( Exception e ) {
System.err.println("Unable to connect to
database: "+e);
return null;
try {
StringBuffer result = new StringBuffer();
String catalog =
props.getProperty("catalog");
String schema =
props.getProperty("schemaPattern");
String tables =
props.getProperty("tableName");
ResultSet rs =
dbMetaData.getTables(catalog, schema, tables,
null);
if (! rs.next()) {
System.err.println("Unable to find any tables
matching: catalog="+catalog+" schema="+schema+"
tables="+tables);
rs.close();
lse {
// Right, we have some tables, so we
can go to work.
// the details we have are
// TABLE_CAT String => table catalog (may be null)
// TABLE_SCHEM String => table schema
(may be null)
// TABLE_NAME String => table name
// TABLE_TYPE String => table type. Typical types
are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL
TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
// REMARKS String => explanatory
comment on the table
// TYPE_CAT String => the types
catalog (may be null)
// TYPE_SCHEM String => the types
schema (may be null)
// TYPE_NAME String => type name (may
be null)
// SELF_REFERENCING_COL_NAME String
=> name of the designated "identifier" column of a
typed table (may be null)
// REF_GENERATION String => specifies
how values in SELF_REFERENCING_COL_NAME are created.
Values are "SYSTEM", "USER", "DERIVED". (may be
null)
// We will ignore the schema and
stuff, because people might want to import it
somewhere else
// We will also ignore any tables
that aren't of type TABLE for now.
// We use a do-while because we've
already caled rs.next to see if there are any rows
do {
String tableName = rs.getString("TABLE_NAME");
String tableType =
rs.getString("TABLE_TYPE");
if
("TABLE".equalsIgnoreCase(tableType)) {
result.append("\n\n--
"+tableName);
result.append("\nCREATE TABLE
"+tableName+" (\n");
ResultSet tableMetaData =
dbMetaData.getColumns(null, null, tableName, "%");
boolean firstLine = true;
while (tableMetaData.next()) {
if (firstLine) {
firstLine = false;
} else {
// If we're not the first line, then finish
the previous line with a comma
result.append(",\n");
String columnName =
tableMetaData.getString("COLUMN_NAME");
String columnType =
tableMetaData.getString("TYPE_NAME");
// WARNING: this may give
daft answers for some types on some databases (eg
JDBC-ODBC link)
int columnSize =
tableMetaData.getInt("COLUMN_SIZE");
String nullable =
tableMetaData.getString("IS_NULLABLE");
String nullString =
"NULL";
if
("NO".equalsIgnoreCase(nullable)) {
nullString = "NOT
NULL";
result.append("
"+columnNameQuote+columnName+columnNameQuote+"
"+columnType+" ("+columnSize+")"+" "+nullString);
tableMetaData.close();
// Now we need to put the
primary key constraint
try {
ResultSet primaryKeys =
dbMetaData.getPrimaryKeys(catalog, schema,
tableName);
// What we might get:
// TABLE_CAT String => table catalog (may be null)
// TABLE_SCHEM String =>
table schema (may be null)
// TABLE_NAME String =>
table name
// COLUMN_NAME String =>
column name
// KEY_SEQ short =>
sequence number within primary key
// PK_NAME String =>
primary key name (may be null)
String primaryKeyName =
null;
StringBuffer
primaryKeyColumns = new StringBuffer();
while
(primaryKeys.next()) {
String thisKeyName =
primaryKeys.getString("PK_NAME");
if ((thisKeyName !=
null && primaryKeyName == null)
||
(thisKeyName == null && primaryKeyName != null)
||
(thisKeyName != null && !
thisKeyName.equals(primaryKeyName))
||
(primaryKeyName != null && !
primaryKeyName.equals(thisKeyName))) {
// the keynames
aren't the same, so output all that we have so far
(if anything)
// and start a
new primary key entry
if
(primaryKeyColumns.length() > 0) {
// There's
something to output
esult.append(",\n PRIMARY KEY ");
if
(primaryKeyName != null) {
result.append(primaryKeyName); }
esult.append("("+primaryKeyColumns.toString()+")");
// Start again with the new name
primaryKeyColumns
= new StringBuffer();
primaryKeyName =
thisKeyName;
// Now append the column
if
(primaryKeyColumns.length() > 0) {
rimaryKeyColumns.append(", ");
primaryKeyColumns.append(primaryKeys.getString("COLUMN
_NAME"));
if (primaryKeyColumns.length() > 0) {
// There's something
to output
result.append(",\n
PRIMARY KEY ");
if (primaryKeyName !=
null) { result.append(primaryKeyName); }
result.append("
("+primaryKeyColumns.toString()+")");
tch (SQLException e) {
// NB you will get this
exception with the JDBC-ODBC link because it says
// [Microsoft][ODBC
Driver Manager] Driver does not support this
function
ystem.err.println("Unable to get primary keys for
table "+tableName+" because "+e);
result.append("\n);\n");
// Right, we have a table, so
we can go and dump it
dumpTable(dbConn, result,
tableName);
hile (rs.next());
rs.close();
dbConn.close();
return result.toString();
} catch (SQLException e) {
e.printStackTrace(); //To change body of catch
statement use Options | File Templates.
return null;
/** dump this particular table to the string
buffer */
private static void dumpTable(Connection dbConn,
StringBuffer result, String tableName) {
try {
// First we output the create table stuff
PreparedStatement stmt =
dbConn.prepareStatement("SELECT * FROM "+tableName);
ResultSet rs = stmt.executeQuery();
ResultSetMetaData metaData = rs.getMetaData();
int columnCount =
metaData.getColumnCount();
// Now we can output the actual data
result.append("\n\n-- Data for "+tableName+"\n");
while (rs.next()) {
result.append("INSERT INTO "+tableName+" VALUES
for (int i=0; i<columnCount; i++) {
if (i > 0) {
result.append(", ");
Object value = rs.getObject(i+1);
if (value == null) {
result.append("NULL");
lse {
String outputValue =
value.toString();
outputValue =
outputValue.replaceAll("'","\\'");
esult.append("'"+outputValue+"'");
result.append(");\n");
rs.close();
stmt.close();
} catch (SQLException e) {
System.err.println("Unable to dump table
"+tableName+" because: "+e);
/** Main method takes arguments for connection to
JDBC etc. */
public static void main(String[] args) {
if (args.length != 1) {
System.err.println("usage: db2sql <property
file>");
// Right so there's one argument, we assume it's a
property file
// so lets open it
Properties props = new Properties();
try {
props.load(new FileInputStream(args[0]));
System.out.println(dumpDB(props));
} catch (IOException e) {
System.err.println("Unable to open
property file: "+args[0]+" exception: "+e);
}hi,
Thanks i used your coding and it works well...
i also used other thing i inserting the queries and values in another schema with primary and foreign keys.. it works well..
but problem is i cannot retrieve the unique constraint and other check constraint..
i cannot insert it..
and also i cannot create table in order i create the original..
because the retrieve query s values display based on ascending order i want display query in creation time...
because when i foreign keys .. the references in available before i create the table..that means a(table name) followed b(table name) .. a(table name) has contain foreign key of b(table name) .. but b (table name) not yet to create .. is possible.. to retrieve based creation time... -
SQL Server to Oracle Migration
We are using Aqua Logic BPM V5.7. The BPM databases (BEA_FDI & BEA_WL_ENGINE) are housed in SQL Server 2000 database.
Now, I am planning on migrating the databases to Oracle 10g, does bea have any migration guide? Please provide guidelines for approaching the project.
Any help would be greatly appreciated.hi
I'm not clear,
but check here
CREATE OR REPLACE PROCEDURE "EDW_INITIALIZE_TMP_SQL" (
tablename IN VARCHAR2 DEFAULT NULL,
sql_ IN OUT VARCHAR2)
AS
source
Remove it and try again.
Where is the function the code u have written is for procedure.
Trinath Somanchi,
Hyderabad. -
Migrate from sql server to oracle
can anyone help me how to migrate from sqlserver to oracle
Hi;
i have been searching in google if anybody having live experience in migration pl help meOk than i am helping you,checked google search and found below links from search. They should help you friend. Please see:
http://st-curriculum.oracle.com/obe/db/hol08/sqldev_migration/mssqlserver/migrate_microsoft_sqlserver_otn.htm
http://www.oracle.com/technetwork/database/migration/sqlserver-095136.html
Also see:
SQL Server to Oracle migration queries
SQL Server to Oracle migration queries
If have still question than update thread.
Regard
Helios -
Migration from SQL Server to Oracle issue
Hi,
While trying to migrate SQL Server to Oracle via Standard Migration method, I got stuck at the point where it says.....
To perform online capture, right-click the connection name in the Connections navigator and select Capture database-type (for example, Capture MySQL, Capture Microsoft Access, Capture Microsoft SQL Server, or Capture Sybase Adaptive Server).
The problem is that, I do not see this menu Capture Microsoft SQL Server. Looks like this is a bug SQL Developer 3, which does not shows option for Capture on right clicking the non-oracle database connection. In earlier release of SQL Developer 2.1.1, I can see the option of Catture...
Thanks,
GyanGyan,
You are correct. The online help screen says -
<<<
Online Capture
To perform an online capture of the source database, you can have the capture performed automatically as part of the Quick Migrate option, or you can have it performed as a separate operation by right-clicking the connection name in the Connections navigator and selecting Capture product-name (for example, Capture MySQL, Capture Microsoft Access, Capture Microsoft SQL Server, or Capture Sybase Adaptive Server).
>>>
but this option does not show up.
I did some testing and was able to make the capture by following these steps -
- right click on the SQL*Server database in the Connections panel
- choose 'Migrate to Oracle'
- follow the menus until you get to 'Capture' screen where you should have the SQL*Server database to be migrated in the 'Selected Databases' panel
- then choose 'Finish' from the options at bottom of the screen.
- you should then have the capture scripts in the directory chosen earlier in the process.
Regards,
Mike -
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
SamitWhat 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 -
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 -
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 -
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!
ShoIt 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 10g
Hi, I am new here,
I would like to ask how to use SQL developer MWB to migration SQL Server to Oracle?
I have go through the doc(s) like: getting start, user's guild, etc. and have following problems
(1), where should the SQL developer installed? in SQL Server side? Oracle side? or any PC with connection to the databases?
(2), do I need to get some plug-in(s) for MWB to work? If yes, which plug-in do I need and where are they?
Thank you very much.Hi Chocobo,
I put together a Quick Guide myself
http://dermotoneill.blogspot.com/2008/06/sql-developer-migration-workbench-151_11.html
I updated it to answer your questions.
Hope that helps
Dermot. -
Migration of table from sql server to oracle
Hi,
I had to export few tables from SQL Server to Oracle. After the migration, I am checking to see all the tables in Oracle that have been migrated from Sql Server. I am executing select * from tab; and am seeing all the the tables (including those have been exported) from the output list of tables. However, when I am doing a select * from x; where x is one of the few tables that have been migrated, it says table or view does not exist. This is the problem with all other migrated tables. Any help is appreciated in advance. Thanks.
[email protected]Try select * from "x"
-
Migrating from SQL Server to Oracle 8i
Hi all :),
I am trying to migrate from SQL Server to Oracle 9i.
I am using the Migration Workbench.
Everything goes fine during Capturing phase, but while
creating Oracle model the Workbench just hangs at
"Mapping Tablespaces" for over three hours.
(not exactly hangs in the sense that it responds to mouse
events and I can abort the ongoing activity ...)
What should I do ? Should I let it go on and see what
happens.
I follow each and every step as mentioned in the
documentation ... but obviously I am doing something
wrong. Any pointers ???
However ... if I try to migrate to Personal Oracle 8 ...
the migration goes fine from start to end ... just that
the SQL Server triggers aren't successfully migrated.You may want to start by downloading the Oracle Migration Workbench. That generally does a reasonable job in moving the tables, stored procedures, etc. from SQL Server to Oracle. If your VB code is database agnostic, it should continue to work without any more intervention. Realistically, however, you'll rpobably have to at least tweak a few things that don't work the same way in the old ODBC/ OLE DB provider and the new one.
The hard part of migrations like this is that you may need to revisit some of your architectural decisions if you want Oracle to perform well. There are plenty of things that one does in SQL Server (i.e. frequent commits) to improve performance that have the opposite affect in Oracle. Identifying and fixing these sorts of things tends to be the largest part of a migration like this. Unfortunately, I don't know of a resource that talks addresses all the possible gotchas here.
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com -
Migration from MS SQL Server to Oracle 10g
Hi,
In our application, we are planning to refresh data every one hour from MS SQL Server to Oracle 10g. Can anyone tell me what approach can be followed?
Thanks & Regards,
Faizal MKHello,
migrations can be done with the Migration Workbench that is included in the SQL Developer: http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
But your question sounds more like a replication of data than a migration. Please read as a starter the following note in My Oracle Support (former Metalink):
Note 283700.1: How to replicate Data between Oracle and a Foreign Datasource
That note describes ways for the replication in both directions. Please let me know whether this is helpful for you.
Best regards
Wolfgang Kobarg-Sachsse -
Faster way to migrate data from SQL Server to Oracle 10g
We have to migrate data from SQL Server to Oracle 10 g.
One particular table on SQL Server has records around 1.25 millions.
We tried moving data using DTS package, but looks it will take hours with current speed of 300 records/minute.
This table has TEXT column, which has XML strings stored. I am not sure, if this is the reason for slow migration.
Would you please suggest better options to migrate it faster?
Thanks in advance !!!Have you tried Migration work bench?
Maybe you are looking for
-
Im on the 3gs and need to get the game center app how can i do this its not in the app store
im really stuck haw can i get the game center app down loaded on my 3gs its not in the app store please help xx
-
ITunes receipts not reflected in my purchase history...
Many of my iTunes receipts that I receive via email are not reflected in my iTunes Store purchase history, and vice-versa. The account name/email address is the same on both. This sure makes it tough to reconcile with my bank statement. Anyone kno
-
Dear all, I have a valid backup of 10.2.0.4.0 database taken using RMAN (veritas netbackup )..I tried restoring this version database in 10.2.0.3.0 database.. it failed with the error version incompatible.. anyway can I restore 10.2.0.4. databsae in
-
Lightroom 6 - Zoom to Fill Frame - Slideshow
I just started using Lightroom 6 on my Mac Pro. In Slideshow, I've set the aspect ratio to 16:9 and clicked "zoom to fill frame". When I play a slideshow in Preview, it looks fine. However, when I click Play for full screen, the 16:9 aspect ratio
-
Unter Windows8.1 ist es mir seit Neuestem nicht möglich, einen PSE12-Katalog zu sichern (weder als vollständige Sicherung noch inkrementell) - was bislang möglich war, auch keinen gerade neu erzeugten Katalog mit nur 1 Element. Das geht bis zur Einga