Migrating partially from SQLServer to Oracle
Hi.
Where I work, we have one server, running SQLServer7.0, that is the publication/distribution server to 3 others servers, that also have SQLServer7.0. The replication occurs only in one way: from the publication/distribution server to the 3 subscribers.
Is there some way to migrate just one of the servers, leaving the others running SQLServer7 ? (Just for information, we can4t afford to stop ours services for long periods of time. )
I was told that i can make a DbLink in the SQLServer7, acessing Oracle databases, but i not sure this could help us with the replication of data.
Hi Klaus,
Oracle provides transparent gateways for communicating with SQL Server databases. Also SQL Server provides ways of setting up DB links to Oracle (not sure how good they are though).
However, these approaches are not a replication solution. You could emulate replication by setting up a trigger on a table or a stored procedure that would transfer data via the database link (whether it is Oracle transparent services or SQL Server).
Regards
John
Similar Messages
-
Migrate HFM (9.3) from Sqlserver to Oracle
Hello.
We are using Sqlserver for HFM for historical reason, but now we would like to change
our database to Oracle for improve performance and for licenses reason.
We want to organize migration and some tests.
I checked OTN and Metalink and I didn't find anything related to HFM.
I have found a lot of documentation about migration from Sqlserver to Oracle,
but I would like to find and read something specific related to HFM repository.
Maybe Oracle suggests to do some premigration task
or some postmigration task.
How can I find this kind of documentation?
There is anyone that have already done this kind of job?
Some suggestion?
Thanks in advance.
D.
Edited by: Spugna on May 20, 2011 8:33 AM
Edited by: Spugna on May 20, 2011 8:34 AMYou can use the HFMCopyApp utility, which ships with HFM, under the \Server folder on each HFM app server. There are other threads in this forum on how to use this utility. It will allow you to copy from one RDBMS to another.
Each product however, is different in terms of migrating between RDBMS. FDM, for example, requires a rebuild. So you will have to check into each component. As for performance being better under Oracle vs. SQL Server, that's a matter of tuning and opinion. I would make sure performance will in fact be better before I undertook this project. License costs should be much more clear, of course.
--Chris -
Migration Error from Access to Oracle through SQL Developer.
Hi,
Actually I am trying to migrate data from MS Access 2002 to Oracle 9i database through the SQL Developer. But Whenever I go to Capture Database from Access it will show me an error.... Invalid procedure Call and then it shows an error message... >>>>>>
ShowSplashScreen("_OracleSplashScreen",3)
after that i wont be able to do this task anymore..... So please help me get out of it... How Cam I Maigrate data from Access to Oracle 9i...
Is any other tool i use or you can help me for this tool to migrate date...
Please tell me..
If yu can send me a mail then mail me on [email protected]
regards,
VishalHi Vishal,
I have responded to your related thread on the Migration Workbench forum - Migration Error from Access to Oracle through SQL Developer.
Regards,
Hilary -
Migrating database from PostgreSql to Oracle 10g
Hi
can anybody help me by providing steps to migrating database from PostgreSql to Oracle 10g. its very urgent requirement. so please let me know if anyone know about this setps.
thanks in advance.
jayesh
cignex technology pvt ltdNPD wrote:
Hi Guys,
Can one migrate database from sql2005 to Oracle.
Thanx.You can use [Oracle Migration Tool |http://www.oracle.com/technology/tech/migration/workbench/index.html]
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
Migrating database from sql2005 to Oracle 9i
Hi Guys,
Can one migrate database from sql2005 to Oracle.
Thanx.NPD wrote:
Hi Guys,
Can one migrate database from sql2005 to Oracle.
Thanx.You can use [Oracle Migration Tool |http://www.oracle.com/technology/tech/migration/workbench/index.html]
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
Need to fatch the data from sqlserver to Oracle DATABASE ;not migration
Hello,
What is the easiest method to insert/refresh data into Oracle Tables from SQLSERVER 2005 table.Do I need ODBC connection and how it works in the PL/SQL to create the connection and fetch the data from sqlserver.
Thanks,
SarabmannI need to fetch from ORACLE back-end ,for example I want to install the mechanism at the back-end server where if I write stored procedure and call this link which enable me to fetch the data from sqlserver.
Environment:- Linux as OS
Oracle 10G as a Database -
Migration from SqlServer to Oracle
I am using Sqldeveloper 1.2.1
I am trying to migrate sql server 2000 data to Oracle..
For that i had created two connections for oracle & SqlServer.
SqlServer and Oracle connections were made sucessfully, i am able to view the database and table.
Now i am doing migration process..
In Oracle conn i had selected Create Repository then
in SqlServer conn i selected "Capture Microsoft SqlServer".
Now Capturing Database is running long time.
No messsage is displayed..
Is my way is correct?
Pls provide solution.Hi Shivasha,
If you are using 11g, the the solution is here (the 3rd post):
Re: SQL Developer in Oracle 11g
Andrei -
Migrate data from orcle to oracle
Hi ,
A) Using oracle workbench tool can we migrate data from oracle 9i to oracle 10g ?
B) Is this tool used only for migrating data from non-oracle source to Oracle db ?
regards
thiruDear Barry
Thanks for the valuable information provided, it had answered few of my doubts.
i am much thankful to you if you can help me in this regards.
Does Oracle own any GUI based tool similar to Microsoft-DTS to Extract & transform data from one Oracle DB to other Oracle DB ?
The source DB (oracle 9i) is not properly normalized , the data from source is moved to a Normalized 10g DB with new attributes(based on new requirements) added to these tables . Some tables from source are splitted into 2 or more in target (oracle 10g) database. I have scenarios like
My text below quotes "SOURCE" AS UNNORMALIZED DB & "TARGET" as new DB which is NORMALIZED.I need to migrate data from SOURCE to TARGET
1) A single row in SOURCE be migrated to multiple rows across one or more
tables in TARGET.
2) A multiple rows in single column in SOURCE be migrated to single row and
multiple columns in TARGET.
For the above mentioned scenario sql*loader /external table/export & import or transportable tablespaces can be used as mentioned by you. but considering the ease of use and the complexity is there any GUI tool which oracle has for data migration from oracle db to oracle db.
your advice will be much help to me.
Thanks
Thirumaran -
Hi,
I am migrating my ejb application from weblogic to oracle 9i application server.What changes are needed to be made in code and what configuration changes are required.
In my application i use a couple of session beans wherin a session bean calls the method of the other session bean which acceses the database.I am using a jdbc thin driver for the database connection. is it possible for a session bean to call a method of another session bean which access the database??This concept works well in weblogic where the current application is running.
The problem is that while migrating the application to the orion server, it gives an OrionCMTException ...
memory leak..etc.
Could any one clarify.
Thanks in advance!!!Hi Avi and Harrison,
Cease Fire avi!!!!.First of all let me clear the issue of posting the same problem twice.Well, when i mentioned the problem the first time , i found the title session bean deployment was not right and few people would look into it as it was a common problem so i thought it would be appropriate if i mentioned the title correctly , so i posted the query again with the change in title.
Now coming to the answer for ur questions.
The platform used is MS Windows NT.
The (OC4J) version is 1.0.2.2.1.
I am not using JDeveloper.
The database is oracle 8i and i am using the thin driver.
The beans to be deployed are stateless session beans.
The client involved is a web client i.e a jsp application.
The first session bean is as follows.
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.sql.Timestamp;
import java.rmi.RemoteException;
import java.util.Date;
import javax.ejb.*;
import javax.naming.*;
import initcontext;
import PrintMessage;
import JB_B2B_ERROR_PARSER;
* @stereotype SessionBean
* @homeInterface DB_UTILITYHome
* @remoteInterface DB_UTILITYRemote
public class DB_UTILITY implements SessionBean
private SessionContext context;
private ResultSet rs = null;
private Statement stmt = null;
private Connection con = null;
private PrintMessage print = null;
public DB_UTILITY()
rs = null;
stmt = null;
con = null;
print = new PrintMessage();
public Connection getConnection()throws RemoteException
InitialContext initctx = null;
Connection con = null;
try
initctx = initcontext.getContext();
javax.sql.DataSource ds =
(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
con = ds.getConnection();
//(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
catch(NamingException namingexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", namingexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("AppError",
"Epool-10001", "DB_UTILITY.getConnection"));
catch(SQLException sqlexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception),
"DB_UTILITY.getConnection"));
catch(Exception exception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("EpoolError",
"Epool10005", "DB_UTILITY.getConnection"));
return con;
public String getDate()throws RemoteException
String Date=null;
try
con=getConnection();
stmt=con.createStatement();
rs=stmt.executeQuery("SELECT
TO_CHAR(SYSDATE,'YYYY-MM-DD HH:MI:SS') FROM DUAL");
while(rs.next())
Date=rs.getString(1);
stmt.close();
con.close();
catch(SQLException sqlexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception), "DB_UTILITY.getDate"));
catch(Exception exception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("epoolError",
"Epool10005", "DB_UTILITY.getDate"));
finally
try
if(con != null && !con.isClosed())
con.close();
catch(Exception exception2)
stmt = null;
con = null;
return Date;
public void setSessionContext(SessionContext context)
this.context = context;
public void ejbActivate()
public void ejbPassivate()
public void ejbCreate()
public void ejbRemove()
Also the xml files are as follows.
web.xml
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<!-- A friendly name for this web application, this name can be used in visual development environments, for instance -->
<display-name>AddressBook Web Application</display-name>
<!-- A human-readable description of this web application -->
<description>Web module that contains an HTML welcome page, and 4 JSP's.</description>
<!-- The file(s) to show when no file is specified, i.e. only the directory is specified. -->
<welcome-file-list>
<welcome-file>B2B_COUNTRY_CODE.jsp</welcome-file>
</welcome-file-list>
<ejb-ref>
<ejb-ref-name>SB_B2B_COUNTRY_CODEHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>SB_B2B_COUNTRY_CODEHome</home
<remote>SB_B2B_COUNTRY_CODERemote</remote>
</ejb-ref></web-app>
Application.xml
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application>
<display-name>Country Code</display-name>
<module>
<ejb>epool_CountryCode-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>epool_CountryCode-web.war</web-uri>
<context-root>/epool_CountryCode-web</context-root>
</web>
</module>
</application>
ejb-jar.xml:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
<ejb-jar>
<description>epool_CountryCode</description>
<enterprise-beans>
<session>
<display-name>CountryCode Session
Bean</display-name>
<ejb-name>SB_B2B_COUNTRY_CODERemote</ejb-name>
<home>SB_B2B_COUNTRY_CODEHome</home>
<remote>SB_B2B_COUNTRY_CODERemote</remote>
<ejb-class>SB_B2B_COUNTRY_CODE</ejb-class>
<session-type>Stateless</session-type>
<ejb-ref>
<description>EJB Epool DButility</description>
<ejb-ref-name>DB_UTILITYRemote</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>DB_UTILITYHome</home>
<remote>DB_UTILITYRemote</remote>
</ejb-ref>
<ejb-ref>
<description>EJB Entity Bean</description>
<ejb-ref-name>EB_B2B_COUNTRY_CODERemote</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>EB_B2B_COUNTRY_CODEHome</home>
<remote>EB_B2B_COUNTRY_CODERemote</remote>
</ejb-ref>
</session>
<session>
<display-name>DbUtility Session Bean</display-name>
<ejb-name>DB_UTILITYRemote</ejb-name>
<home>DB_UTILITYHome</home>
<remote>DB_UTILITYRemote</remote>
<ejb-class>DB_UTILITY</ejb-class>
<session-type>Stateless</session-type>
</session>
<entity>
<ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
<home>EB_B2B_COUNTRY_CODEHome</home>
<remote>EB_B2B_COUNTRY_CODERemote</remote>
<ejb-class>EB_B2B_COUNTRY_CODE</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>EB_B2B_COUNTRY_CODEPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-field>
<field-name>country_code_desc</field-name>
</cmp-field>
<cmp-field>
<field-name>phone_format_flag</field-name>
</cmp-field>
<cmp-field>
<field-name>country_code</field-name>
</cmp-field>
<cmp-field>
<field-name>active_date</field-name>
</cmp-field>
<cmp-field>
<field-name>date_created</field-name>
</cmp-field>
<cmp-field>
<field-name>active_flag</field-name>
</cmp-field>
<cmp-field>
<field-name>country_phone_code</field-name>
</cmp-field>
<cmp-field>
<field-name>country_tax_percent</field-name>
</cmp-field>
<cmp-field>
<field-name>sort_order</field-name>
</cmp-field>
<cmp-field>
<field-name>date_modified</field-name>
</cmp-field>
<cmp-field>
<field-name>user_created</field-name>
</cmp-field>
<cmp-field>
<field-name>user_modified</field-name>
</cmp-field>
<resource-ref>
<description></description>
<res-ref-name>jdbc/ePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<security-role>
<description>Users</description>
<role-name>users</role-name>
</security-role>
</assembly-descriptor>
</ejb-jar>
The session bean which uses the above session bean is as follows.
import javax.ejb.SessionContext;
import javax.ejb.SessionBean;
import java.sql.*;
import javax.naming.Context;
import java.sql.Timestamp;
import java.util.Vector;
import initcontext;
import DB_UTILITYHome;
import DB_UTILITYRemote;
import EB_B2B_COUNTRY_CODEHome;
import EB_B2B_COUNTRY_CODERemote;
import EB_B2B_COUNTRY_CODEPK;
* @stereotype SessionBean
* @homeInterface SB_B2B_COUNTRY_CODEHome
* @remoteInterface SB_B2B_COUNTRY_CODERemote
public class SB_B2B_COUNTRY_CODE implements SessionBean
private SessionContext context;
* Sets the context of the bean
* @param context The Bean's Context
public Vector selectCountryCode(String query,String
countquery, String pagenos) throws Exception
Context ctx = initcontext.getContext();
Connection con=null;
Vector records=new Vector();
int pageno=Integer.parseInt(pagenos);
int min=(pageno-1)*10;
int max=pageno*10;
int counter=0;
boolean recordsfound=false;
try
DB_UTILITYHome home =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote remote =
(DB_UTILITYRemote)home.create();
con=remote.getConnection();
Statement stmt = con.createStatement();
ResultSet rscount =
stmt.executeQuery(countquery);
while(rscount.next())
int temp=rscount.getInt(1);
int pagecount=temp;
pagecount=pagecount/10;
if((temp%10)>0)
pagecount=pagecount+1;
records.addElement(""+pagecount);
ResultSet rs = stmt.executeQuery(query);
while(rs.next())
counter++;
if(counter>min && counter<=max)
String row[]=new String[8];
recordsfound=true;
row[0]=rs.getString(1);
row[1]=rs.getString(2);
row[2]=rs.getString(3);
row[3]=rs.getString(4);
row[4]=rs.getString(5);
row[5]=rs.getString(6);
row[6]=rs.getString(7);
row[7]=rs.getString(8);
records.addElement(row);
con.close();
catch(Exception e)
System.out.println("Error in selecting Country
Code "+e);
throw new Exception("Error in selecting Country
Code "+e);
return(records);
public void insertCountryCode(String country_code, String
country_code_desc, String country_phone_code, String
phone_format_flag,String active_flag, String sort_order,String
country_tax_percent)throws Exception
Context ctx = initcontext.getContext();
Double Sort_Order=null;
Double cntry_tax_prct=null;
if(sort_order!=null && sort_order.length()>0)
Sort_Order=new Double(sort_order);
if(country_tax_percent!=null &&
country_tax_percent.length()>0)
cntry_tax_prct=new Double(country_tax_percent);
String user_created=null;
Timestamp date_created=null;
Timestamp active_date=null;
String user_modified=null;
Timestamp date_modified=null;
try
DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote dbremote =
(DB_UTILITYRemote)dbhome.create();
user_created=dbremote.getUser();
date_created=Timestamp.valueOf(dbremote.getDate());
active_date=date_created;
EB_B2B_COUNTRY_CODEHome home =
(EB_B2B_COUNTRY_CODEHome)ctx.lookup("java:comp/env/EB_B2B_COUNTRY_CODER
emote");
EB_B2B_COUNTRY_CODERemote remote =
(EB_B2B_COUNTRY_CODERemote)home.create(country_code, country_code_desc,
country_phone_code,active_flag, phone_format_flag,user_created,
date_created, active_date, Sort_Order, user_modified,
date_modified,cntry_tax_prct);
catch(Exception e)
System.out.println("Error in Creating COUNTRY
Code "+e);
throw new Exception("Error in Creating COUNTRY
Code "+e);
public void setSessionContext(SessionContext context)
this.context = context;
public void ejbActivate()
public void ejbPassivate()
public void ejbCreate()
public void ejbRemove()
The jsp client which acces the beans is as follows.
<BODY >
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="initcontext" %>
<%@ page import = "java.util.*" %>
<%@ page import="DB_UTILITYHome"%>
<%@ page import="DB_UTILITYRemote"%>
<%@ page import="javax.naming.*"%>
<%Connection con=null; %>
<script src="search_getvalues.js">
</script>
<form name=frm1>
<%! int intCount,intI,intRowCount,intJ;
String strtname=new String();
String strhidden=new String("txthdn");
Statement st;
ResultSet rs;
ResultSetMetaData rmeta;
....%>
<%
try
Context ctx = initcontext.getContext();
DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote dbremote = (DB_UTILITYRemote)dbhome.create();
con=dbremote.getConnection();
st=con.createStatement();
rs=st.executeQuery(strsqlquery);
rmeta=rs.getMetaData();
intCount=rmeta.getColumnCount();
....... %>
</form>
</BODY>
</HTML>
The resulting exception generated is as follows:
D:\oc4j\j2ee\home>java -jar orion.jar
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... done.
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e\epool_CountryCode-web.war... done.
Auto-deploying epool_CountryCode (New server version detected)...
Auto-deploying epool_CountryCode-ejb.jar (No previous deployment
found)... done.
Error deploying
file:/D:/oc4j/j2ee/home/demo/messagelogger/messagelogger-ejb.jar homes:
No javax.jms.Destination found a
t the specified destination-location (jms/theTopic) for
MessageDrivenBean com.evermind.logger.MessageLogger
Oracle9iAS (1.0.2.2.1) Containers for J2EE initialized
Auto-deploying epool countryCode example (New server version
detected)...
************************1
************************2
COUNT QUERY :SELECT COUNT(COUNTRY_CODE) FROM BAP_COUNTRY_CODE
QUERY :SELECT
COUNTRY_CODE,COUNTRY_CODE_DESC,COUNTRY_PHONE_CODE,PHONE_FORMAT_FLAG,COU
NTRY_TAX_PERCENT ,SORT_ORDER,ACTIVE
FLAG,ACTIVEDATE FROM BAP_COUNTRY_CODE order by COUNTRY_CODE
Error in selecting Country Code java.rmi.RemoteException: Error
(de-)serializing object: com.evermind.sql.OrionCMTConnec
tion; nested exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
JB:Error in selecting country cd java.lang.Exception: Error in
selecting Country Code java.rmi.RemoteException: Error (d
e-)serializing object: com.evermind.sql.OrionCMTConnection; nested
exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
Error in Selecting Records
OrionCMTConnection not closed, check your code!
LogicalDriverManagerXAConnection not closed, check your code!
(Use -Djdbc.connection.debug=true to find out where the leaked
connection was created)
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... Error unpacking: IO Error:
The system cannot find the path specified
Error updating application epool_CountryCode: Unable to find/read
assembly info for D:\oc4j\j2ee\home\applications\epool_C
ountryCode\build\epool_CountryCode (META-INF/application.xml)
But if the DBUTILITY session bean is changed to a simple bean and accessed the code works fine and i am able to retrieve the data.Is the problem there because u one session bean cannot access a database connection method from another one or could it be because of the driver???
I hope i am clear.Please revert back in case any more references are needed.
Thanks in advance!!!!!! -
Migration Issues from Informix to Oracle (datetime format)
Hello, i am performing a Migration from Informix to Oracle, drive by Migration Workbench, i have an error migrating data from datetime and date fields. I suppose its related by datetime and date format, cause the error tells "Incorrect day or month" when i am migrating data from informix. Targets Oracle database date format is DD/MM/YYYY and source`s Informix database date format like MM/DD/YYYY. Is there any way, in OMW, to specify the mask of datetime or date format to convert date strings from informix to oracle format? Or have i got migrate offline and modify control file to do that with sql*loader?
How can i do that?
Example, especify to_date('....', 'MM/DD/YYYY H24:MI:SS') format for migrating informix datetime fields to Oracle.The problem i have is, several tables witch contains date and datetime fields, at the same table in informix, by migrating drive by omwb to oracle, the date format i receive from informix at reading is DD/MM/YYYY and datetime format receiving is HH24:MI:SS. Migrating date and datetime types from informix to date, both types to date in oracle, i get an error while matching DD = HH24, MM = MI and YYYY = SS where nls_date_format is DD/MM/YYYY and, the same error matching HH24 = DD, MI = MM and SS = YYYY when nls_date_format is HH24:MI:SS.
If i set nls_date_format as "DD/MM/YYYY HH24:MI:SS" i get the same error, cause reading data from informix results in data format "DD/MM/YYYY" for date fields and "HH24:MI:SS" for datetime fields.
I have more than 200 tables in informix with this problem to migrate to oracle, i can solve by migrating offline, modifying datacontrol file to casting to_date format, but over 200 tables, 200 datacontrol files... is there any way for solving that by online migration in omwb? -
Moving NVARCHAR data from SQLSERVER to Oracle
We are moving data from NVARCHAR field in SQLSERVER to Oracle. The data is getting changed
(Opl›st) --> (Opl¿st)
Any suggestion what may be wrong?
- PB SinghYes the databases are setup for proper character set.
LKM SQL to Oracle is used.
One question is any thing needed in jdbc driver to enable multibyte access.
com.microsoft.jdbc.sqlserver.SQLServerDriver
Thanks,
PB Singh
Message was edited by:
pbsingh -
Migrating from sqlServer to Oracle
Sir,
My name is ramandeep singh and I hail from india and I work as a computer programmer
cum incharge computer software.Presently we are using SQL Server and we intend to update
our existing database to Oracle/Dev 2000.Please provide me the details.
I am a OTN memeber.
please get back to me as soon as possible.
My mail id is [email protected],
[email protected]You Can Convert Yours Database from SQL Server to oracle Write A VB Program that open two connections one to SQL Server And Another To Oracle then By Yours Program Read The Specified Records from Sql Server And insert it in the ORACLE.
About the Tables And Views Genrate A script from SQL Server Option The Take The Commands Of creating tables and modify the datatype to oracle datatype the run the script in the SQL Plus .
About the Programs you must rebuild it on developer2000
Anjad H.S.
DB Programmer -
Migrate datas from RDB to Oracle 10g
The applications that use the RDB database are being re-write with Forms based on an Oracle database.
Of course, before we use the new application, we will have a step for moving datas from old tables in Rdb to the new tables (new design) in Oracle (developpers are working on sql scripts for that). But when the new applications with Oracle db will be in production, I would like to save datas (datas as datas) from Rdb in an Oracle database with the same struture as the rdb structure (same tabels, with same columns and same datas in). The idea is we will be able to verify datas through SQL.
Do you have any idea ?
Thank you
AnneMarHi AnneMar,
there exists a Metalink note that serves as a starter for such a migration:
Note 135929.1: RDBPROD: Advice on Converting from Oracle Rdb to Oracle RDBMS
For your convenience I am pasting that note here.
Regards
Wolfgang
PURPOSE
To provide general advice on migrating from Oracle Rdb to Oracle RDBMS
SCOPE & APPLICATION
This advice is intended for people who have already decided to convert, and are starting to plan how to do it. It provides a broad outline of how it can be done and some of the things to consider.
Advice on Converting from Oracle Rdb to Oracle RDBMS
General notes
* The longer you leave it the easier it is likely to be. The SQL interfaces to Rdb are growing closer to those for RDBMS, particularly OCI Services for Rdb.
* Converting the database will probably be the easy part. The applications are likely to require more work.
* A staged approach is more likely to be successful than trying to do everything in one go.
A possible strategy for converting
1. Install OCI Services for Rdb. Pick a small application, or one that needs rewriting anyway. Convert the application using the method and tools of your choice to access the Rdb database via SQL*Net for Rdb. If unsatisfied with the results, you can repeat this with alternative methods or tools, until you find one that works for you.
2. Install RDBMS. For those tables used by applications converted to use OCI Services, create database links. Point the converted application to the RDBMS database instead of the Rdb one. This step can be done whilst other applications are being converted. No data is yet stored in the RDBMS database, so any problems that arise with it, possibly due to lack of appropriate DBA experience, can be worked around by just pointing the programs back at the Rdb database.
3. Now you have a choice.
1. Gradually move the data into the RDBMS database. First new tables, then tables only accessed by applications that have already been converted. This has the advantage of taking one step at a time, so it would be easy to back up temporarily if a problem is found. The main disadvantage is that now that the data is spread over two databases your backup and recovery strategy will be more complicated.
2. Finish converting the applications. Then transfer all the data over in one go. If there is a lot of data, then going back would be a big job, so there is more risk.
Alternative common interfaces
Besides OCI Services there are several other APIs that applications could use to access Rdb or RDBMS transparently.
* JDBC - If your applications are written in JAVA or you want to rewrite them in JAVA
* ODBC - If your applications run on Windows
* .NET - If your applications run on Windows
Techniques for converting a database
* Transferring Metadata Extract the metadata using RMU/EXTRACT. Cut down and edit the output to produce a script to use to create the corresponding RDBMS objects.
* Transferring data
For small tables,
INSERT INTO rdbms_table SELECT columns FROM rdb_table;
(using dblinks to the rdb database and SQL*Net for Rdb)
For large tables, use RMU/UNLOAD to create a delimited file and then load that into RDBMS using SQL$Loader.
* Keeping data current in RDBMS while testing the transfer can be done using the Logminer Option in Rdb.
Notes
1. OCI Services for Rdb was formerly known as SQL*Net for Rdb and is part of Oracle SQL/Services. Though this is structured as a separate product from Oracle Rdb no additional license is needed.
2. Some limits are different between Rdb and RDBMS.
For example: in Rdb table and column names can be 31 bytes but RDBMS only allows 30.
3. The RMU/EXTRACT command can write the SQL definitions of objects within a Rdb database to a text file.
RELATED DOCUMENTS
SQL*Net for Rdb
Oracle Rdb Guide to SQL*Net for Rdb
Oracle Rdb Oracle SQL/Services Release Notes
Oracle Rdb A Comparison of SQL Dialects for Oracle and Oracle Rdb
RMU/EXTRACT and /UNLOAD
Oracle RMU Reference Manual
SQL*Loader
Oracle8 Server Utilities -
Bad performing update query - converting from sqlserver to oracle
SQLSERVER UPDATE
=================
UPDATE
netVIEWplus.dbo.DIM_OUC_Latest
SET
OUC = LatestDIM.OUC,
OUC_Desc = LatestDIM.OUC_Desc,
OUC_Level = LatestDIM.OUC_Level,
Parent_OUC = LatestDIM.Parent_OUC,
CC_Type = LatestDIM.CC_Type,
GFR = LatestDIM.GFR,
CORP = LatestDIM.CORP,
SOB = LatestDIM.SOB,
Div_Unit = LatestDIM.Div_Unit,
Div_Desc = LatestDIM.Div_Desc,
L1_OUC = LatestDIM.L1_OUC, L1_DEPT_DESC = LatestDIM.L1_DEPT_DESC,
L2_OUC = LatestDIM.L2_OUC, L2_DEPT_DESC = LatestDIM.L2_DEPT_DESC,
L3_OUC = LatestDIM.L3_OUC, L3_DEPT_DESC = LatestDIM.L3_DEPT_DESC,
L4_OUC = LatestDIM.L4_OUC, L4_DEPT_DESC = LatestDIM.L4_DEPT_DESC,
L5_OUC = LatestDIM.L5_OUC, L5_DEPT_DESC = LatestDIM.L5_DEPT_DESC,
L6_OUC = LatestDIM.L6_OUC, L6_DEPT_DESC = LatestDIM.L6_DEPT_DESC,
L7_OUC = LatestDIM.L7_OUC, L7_DEPT_DESC = LatestDIM.L7_DEPT_DESC,
L8_OUC = LatestDIM.L8_OUC, L8_DEPT_DESC = LatestDIM.L8_DEPT_DESC,
Current_Flag = LatestDIM.Current_Flag,
INF_Div_Unit_Only = LatestDIM.INF_Div_Unit_Only,
INF_DIM_OUC_Id_Used = LatestDIM.DIM_OUC_Id
FROM
netVIEWplus.dbo.DIM_OUC_Latest
INNER JOIN
netVIEWplus.dbo.DIM_OUC HistoryDIM
ON
HistoryDIM.DIM_OUC_Id = netVIEWplus.dbo.DIM_OUC_Latest.DIM_OUC_Id
INNER JOIN
netVIEWplus.dbo.DIM_OUC LatestDIM
ON
LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id
Oracle Version
===========
UPDATE
netVIEWplus.DIM_OUC_Latest T1
SET (OUC,OUC_Desc,OUC_Level,Parent_OUC,CC_Type,GFR,CORP,SOB,Div_Unit,Div_Desc,L1_OUC,L1_DEPT_DESC,L2_OUC,
L2_DEPT_DESC,L3_OUC,L3_DEPT_DESC,L4_OUC,L4_DEPT_DESC,L5_OUC,L5_DEPT_DESC,L6_OUC,L6_DEPT_DESC,L7_OUC,L7_DEPT_DESC,
L8_OUC,L8_DEPT_DESC,Current_Flag,INF_Div_Unit_Only,INF_DIM_OUC_Id_Used) =
( SELECT LatestDIM.OUC OUC,LatestDIM.OUC_Desc OUC_Desc,
LatestDIM.OUC_Level OUC_Level,LatestDIM.Parent_OUC Parent_OUC,LatestDIM.CC_Type CC_Type,LatestDIM.GFR GFR,
LatestDIM.CORP CORP,LatestDIM.SOB SOB,LatestDIM.Div_Unit Div_Unit,LatestDIM.Div_Desc Div_Desc,
LatestDIM.L1_OUC L1_OUC,LatestDIM.L1_DEPT_DESC L1_DEPT_DESC,LatestDIM.L2_OUC L2_OUC,
LatestDIM.L2_DEPT_DESC L2_DEPT_DESC,LatestDIM.L3_OUC L3_OUC,LatestDIM.L3_DEPT_DESC L3_DEPT_DESC,
LatestDIM.L4_OUC L4_OUC,LatestDIM.L4_DEPT_DESC L4_DEPT_DESC,LatestDIM.L5_OUC L5_OUC,
LatestDIM.L5_DEPT_DESC L5_DEPT_DESC,LatestDIM.L6_OUC L6_OUC,LatestDIM.L6_DEPT_DESC L6_DEPT_DESC,
LatestDIM.L7_OUC L7_OUC,LatestDIM.L7_DEPT_DESC L7_DEPT_DESC,LatestDIM.L8_OUC L8_OUC,
LatestDIM.L8_DEPT_DESC L8_DEPT_DESC,LatestDIM.Current_Flag Current_Flag,
LatestDIM.INF_Div_Unit_Only INF_Div_Unit_Only,LatestDIM.DIM_OUC_Id INF_DIM_OUC_Id_Used
FROM
netVIEWplus.DIM_OUC HistoryDIM,netVIEWplus.DIM_OUC LatestDIM
where
HistoryDIM.DIM_OUC_Id = T1.DIM_OUC_Id
and
LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id and rownum=1)
where exists ( SELECT 1
FROM
netVIEWplus.DIM_OUC HistoryDIM,netVIEWplus.DIM_OUC LatestDIM
where
HistoryDIM.DIM_OUC_Id = T1.DIM_OUC_Id
and
LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id )
Problem is oracle update is taking long time than sqlserver update. Can it be written in some orhet way.
Regards,
KoushikHi,
Have you gathered stats as well ? Did the query use index(es) as well ?
Without any more info like explain plan, indexes, etc., further help will be unable.
Nicolas. -
Migrating Data from Informix to oracle
Is it advisable to migrate the whole schema from Informix database to Oracle 10g or migrate each table using sqlldr. If the data model is not exactly same then can we export data from informix and import the dump file in Oracle 10g.
You can use Generic Connectivity. It is a free feature of the database available on Windows, HP, AIX and Solaris and Linux (v10g).
There is also the transparent gateway for Informix however it is not certified with Informix 7.2. It is certified with 7.3 and higher.
Maybe you are looking for
-
Adobe Application Manager and DPS Tools 2.0.3 Update
Hello, I am using Adobe Application Manager Enterprise Edition 3.1 in order to push the CS6 Suite and Updates to our computer systems. It has so far been working great, with one exception: The DPS Tools 2.0.3 Update does not show up in the updater en
-
When I attempt to update iTunes to 11.2, I get an error "invalid signature"
I have tried to update iTunes several times and continue to get this "invalid signature" message. I have tried to download and install and manually download with the same results. Any help is appreciated.
-
I have new iphone and all data were restored but my music! How can I add my music from Itunes and new iphone?
-
I have heard that the zen micro and the zen micro photo have the same battery size, but the photos has a higher capacity. Would it be possible to buy a photo battery and put it in say a zen micro 5gb?
-
Can I make 2 libraries, internal and external?
I currently have an iTunes library which is taking up too much room on my internal hard drive. I have planned on moving the library to an external HD. The problem is that I am about to hit the road for some touring with a band and would love to have