Oracle data type mapping for Replication [message #617996] |
Sun, 06 July 2014 10:35 |
|
chetankumar
Messages: 20 Registered: June 2014 Location: Dark Saturn
|
Junior Member |
|
|
Hello
We are trying to replicate database from SQL Server 2008 to Oracle 11g R2 database (on linux) using Golden Gate Software 11g
Before we do 'Initial load' we want to create the corresponding table structure and related objects in the Oracle database
I searched for the data type comparison between the 2 database systems and was confused on few points
Ex.
float in SQL server is FLOAT(53) or FLOAT(63) or FLOAT(126) or NUMBER in Oracle?
nchar(n) in SQL server is nchar(n) or char(n*2) in Oracle?
ntext in SQL server is Long or nclob in Oracle?
Across various links I referred,I can summarised my understanding as follows?
bigint number(19)
int number(10)
tinyint number(3)
smallint number(5)
money number(19,4)
float float
real float(63)
numeric number(p[,s])
bit number(3) or number(1)
date date
datetime date (unless we need precision upto second else timestamp)
image blob
text clob
ntext clob
uniqueidentifier char(36)
char(n) varchar2(n)
varchar(n) varchar2(n)
varchar (max) clob
nchar(n) varchar2(2*n)
nvarchar varchar2(2*n)
sysname varchar2(30)
Could you please let me know if my understanding is correct on above datatypes?
Any hints, suggestions??
Thanks and Regards
Chetan
|
|
|
|
|
Re: Oracle data type mapping for Replication [message #618007 is a reply to message #618006] |
Sun, 06 July 2014 12:13 |
|
Michel Cadot
Messages: 68733 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
I think you should follow the documentation for your Oracle version (the one I posted) although I am not sure it is correct.
I don't know SQL Server, so don't know what NCHAR means for it.
If you have a support contract with Oracle, I advise you to open a SR on this question.
Edit: in the end, have you some NCHAR columns? if no you could skip this question.
[Updated on: Sun, 06 July 2014 12:14] Report message to a moderator
|
|
|