database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
ㆍOracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Oracle Q&A 39081 게시물 읽기
No. 39081
오라클 데이터 마이그레이션 (AL32UTF8) 시 CLOB 데이터 사이즈
작성자
오라클
작성일
2011-11-10 20:57
조회수
7,140

 

오라클로 데이터 마이그레이션 작업시 질문 드립니다.

TO-BE DB는 oracle 10g 이고 nls_lang은  AL32UTF8 입니다.

그런데 테이블이 너무 커서 일단 파티셔닝 되어있고요 총 13개로 되어있습니다.

테이블은 key값 몇개 컬럼과 CLOB 컬럼이 존재합니다. (심플한 구조로 되어있고요..)

 

일단 나온 문제점이, 다국어를 이관할 때.. 파티션의 clob에  한국어, 영어, 일본어 등이 들어 있습니다만.

  한글은 기존 2byte에서 3byte, 일본어도 마찬가지로 2byte에서 3byte로 정상 이관되지만

  영어만으로 구성되어있는 clob데이터는 2배로 늘어나는 황당한 경험을 했습니다.

각 테이블 파티션별로 세그먼트가 존재하여, 각 세그먼트의 사이즈 비교결과 as-is와 to-be를 비교했을때 영어를 제외한 다국어는 1~1.5배 증가하였지만

영어로만 구성된 데이터는 2배정도 증가했습니다.

 

오라클에 sr은 진행하겠지만. 혹시 경험이 있으신 분들 있으시면 코멘트 부탁드리겠습니다..

 

감사합니다.

이 글에 대한 댓글이 총 1건 있습니다.

Storing Documents in Multiple Languages in LOB Datatypes

You can store documents in multiple languages in CLOB, NCLOB, or BLOB datatypes and set up Oracle Text to enable content search for the documents.

Data in CLOB columns is stored in a format that is compatible with UCS-2 when the database character set is multibyte, such as UTF8 or AL32UTF8. This means that the storage space required for an English document doubles when the data is converted. Storage for an Asian language document in a CLOB column requires less storage space than the same document in a LONG column using UTF8, typically around 30% less, depending on the contents of the document.

Documents in NCLOB format are also stored in a proprietary format that is compatible with UCS-2 regardless of the database character set or national character set. The storage space requirement is the same as for CLOB data. Document contents are converted to UTF-16 when they are inserted into a NCLOB column. If you want to store multilingual documents in a non-Unicode database, then choose NCLOB. However, content search on NCLOB is not yet supported.

오라클 문서에 위와 같은 내용이 있네요;;;;;;;;

이 내용이 아마도 해당되는 내용인듯 싶은데.. 고수님들의 의견은 어떠신지요

오라클님이 2011-11-14 18:14에 작성한 댓글입니다. Edit
[Top]
No.
제목
작성자
작성일
조회
39084이런 쿼리 가능한가요? [1]
진짜초보
2011-11-11
4188
39083오라클 로그 남기기 [1]
김성환
2011-11-11
4471
39082중복되지 않게 합산 한 결과 출력 [1]
바램
2011-11-10
4744
39081오라클 데이터 마이그레이션 (AL32UTF8) 시 CLOB 데이터 사이즈 [1]
오라클
2011-11-10
7140
39079index unique scan~~~ [1]
궁금이
2011-11-10
4090
39078계층쿼리 좀 힘드네요!~ [1]
박창민
2011-11-10
5486
39077아우터 조인 해결(?) [1]
황준석
2011-11-10
4097
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.016초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다