Skip to Main Content

Oracle Database Discussions

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Is there a way to Oracle expdp not inherit char type nls semantics on DDL?

Luis Claudio SantosSep 6 2017 — edited Sep 6 2017

expdp, by default, generated internal DDL to create table observing current NLS_LENGTH_SEMANTICS of each column.

If a column as BYTE (the default and most used) NLS_LENGTH_SEMANTICS, the internal DDL would be like:

CREATE TABLE BDATA.Artikel(

    Key                   VARCHAR2(3 BYTE)  NOT NULL,

    Name                  VARCHAR2(60 BYTE) NOT NULL,

    Abkuerzung            VARCHAR2(5 BYTE)  NOT NULL

);

But I want an option to force expdp to not get/inherit the CHAR_USED value from DBA_TAB_COLUMNS, resulting into the following DDL:

CREATE TABLE BDATA.Artikel(

    Key                   VARCHAR2(3)   NOT NULL,

    Name                  VARCHAR2(60)  NOT NULL,

    Abkuerzung            VARCHAR2(5)   NOT NULL

);

The reason is because the target database has a AL32UTF8 charset and NLS_LENGTH_SEMANTICS set as CHAR. So I want the tables be converted from BYTE to CHAR (accordingly to NLS_LENGTH_SEMANTICS parameter value).

Comments

Aketi Jyuuzou
<h2>part1 "Frank Kulash" who is guru.</h2>

**********************************************************
profile link
http://forums.oracle.com/forums/profile.jspa?userID=627845

**********************************************************
web resources

http://searchoracle.techtarget.com/expert/Frank-Kulash

Frank, an Oracle database administrator since 1989, has been working with database systems for over 25 years.
One of his specialties is to use PL/SQL stored procedures to make application programming simpler and more powerful.
He is currently a DBA with a Massachusetts state agency, where he also teaches introductory SQL classes.
Aketi Jyuuzou
<h2>Part2 Karthick_Arp who is guru</h2>

**********************************************************
profile link
http://forums.oracle.com/forums/profile.jspa?userID=435685

**********************************************************
web resources

http://www.karthickarp.blogspot.com/
Aketi Jyuuzou
<h2>Part3 Boneist who is guru</h2>

**********************************************************
profile link
http://forums.oracle.com/forums/profile.jspa?userID=571648

**********************************************************
web resources

http://boneist-oracle.livejournal.com/
http://www.oraclecommunity.net/profile/Boneist
Aketi Jyuuzou
<h2>part4 "Massimo Ruocchio" who is guru.</h2>

**********************************************************
profile link
http://forums.oracle.com/forums/profile.jspa?userID=727425

**********************************************************
web resources

http://oracleitalia.wordpress.com
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 4 2017
Added on Sep 6 2017
3 comments
1,262 views