Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQL Server to Oracle migration : column semantics

user12017111May 13 2014 — edited May 16 2014

I am testing a migration from SQL Server 2012 to Oracle 12c using migration wizard of SQL Developer 4.0.0.13. The problem that I am facing is all the generated table creation scripts have CHARACTER semantics for character columns. I would like the semantics to be BYTES. As the generated tables and columns are  several thousand its not possible to manually change the semantics.

CREATE TABLE account_dod (

  account_id VARCHAR2(16 CHAR) NOT NULL,

I cant seem to find any option to change the semantics during generation. Does anyone know of any option that I can set so that migration wizard will generate all columns as BYTES ?

Many Thanks

This post has been answered by Dermot ONeill-Oracle on May 16 2014
Jump to Answer

Comments

Trotty

Is it picking it up from your NLS preferences under Tools -> Preferences -> Database -> NLS

You can swap the length between CHAR and BYTE

Trotty

user12017111

Thanks. NLS preference under Tools -> Preferences -> Database -> NLS is set to BYTE.

So doesn't appear to be picking it from there.

thatJeffSmith-Oracle

Why would you want BYTES over CHAR?

With BYTES you risk not having columns 'wide' enough to store all of your data based on your characterset.

With CHAR you're guaranteed to always be able to fit that many characters in your column.

user12017111

Agree with your point, however we need it to be BYTE for following reasons:

BYTE is the default in Oracle and  our datamodel uses the default option.With CHAR columns all character columns could  become up to 4 times wider.

We are not worried about data not fitting in BYTE column as our application is designed with BYTE columns.

It would be a major re-testing exercise for us to test our application, which is already in production use at several customer sites.

thatJeffSmith-Oracle

I think we can get a 'fix' out to you, stay tuned.

Dermot ONeill-Oracle
Answer

HI,

If you email me I can provide a modified extension to use the BYTE unit in CHAR and VARCHAR2 columns.

My email address is my firstname.lastname@oracle.com

Regards,

Dermot ONeill

SQL Developer Team

Marked as Answer by user12017111 · Sep 27 2020
1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 13 2014
Added on May 13 2014
6 comments
2,515 views