标签云
asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 kfed MySQL恢复 ORA-00312 ORA-00607 ORA-00704 ORA-01110 ORA-01555 ORA-01578 ORA-08103 ORA-600 2131 ORA-600 2662 ORA-600 2663 ORA-600 3020 ORA-600 4000 ORA-600 4137 ORA-600 4193 ORA-600 4194 ORA-600 16703 ORA-600 kcbzib_kcrsds_1 ORA-600 KCLCHKBLK_4 ORA-15042 ORA-15196 ORACLE 12C oracle dul ORACLE PATCH Oracle Recovery Tools oracle加密恢复 oracle勒索 oracle勒索恢复 oracle异常恢复 Oracle 恢复 ORACLE恢复 ORACLE数据库恢复 oracle 比特币 OSD-04016 YOUR FILES ARE ENCRYPTED 勒索恢复 比特币加密文章分类
- Others (2)
- 中间件 (2)
- WebLogic (2)
- 操作系统 (102)
- 数据库 (1,670)
- DB2 (22)
- MySQL (73)
- Oracle (1,532)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (21)
- ORA-xxxxx (159)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (14)
- ORACLE 21C (3)
- Oracle 23ai (7)
- Oracle ASM (65)
- Oracle Bug (8)
- Oracle RAC (52)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (560)
- Oracle安装升级 (91)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (78)
- PostgreSQL (18)
- PostgreSQL恢复 (6)
- SQL Server (27)
- SQL Server恢复 (8)
- TimesTen (7)
- 达梦数据库 (2)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (37)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (20)
-
最近发表
- ORA-600 krse_arc_complete.4
- Oracle 19c 202410补丁(RUs+OJVM)
- ntfs MFT损坏(ntfs文件系统故障)导致oracle异常恢复
- .mkp扩展名oracle数据文件加密恢复
- 清空redo,导致ORA-27048: skgfifi: file header information is invalid
- A_H_README_TO_RECOVER勒索恢复
- 通过alert日志分析客户自行对一个数据库恢复的来龙去脉和点评
- ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的SERVICE_NAME
- ORA-01092 ORA-00604 ORA-01558故障处理
- ORA-65088: database open should be retried
- Oracle 19c异常恢复—ORA-01209/ORA-65088
- ORA-600 16703故障再现
- 数据库启动报ORA-27102 OSD-00026 O/S-Error: (OS 1455)
- .[metro777@cock.li].Elbie勒索病毒加密数据库恢复
- 应用连接错误,初始化mysql数据库恢复
- RAC默认服务配置优先节点
- Oracle 19c RAC 替换私网操作
- 监听报TNS-12541 TNS-12560 TNS-00511错误
- drop tablespace xxx including contents恢复
- Linux 8 修改网卡名称
标签归档:dul乱码
完美解决dul处理clob字段乱码问题
使用过dul的人都知道,dul在处理clob字段的时候,经常性出现乱码,而且官方没有提供好的处理方法,通过不断的测试折腾终于在2013年春节解决了2012年困惑在我心中的疑惑,不再因为dul不可以处理clob而觉得odu/aul更加高级。这个算是2013年给自己的第一份ORACLE数据库恢复方面大礼包.
在dul中,虽然提供了LDR_OUTPUT_IN_UTF8选项,让所有的clob变为UTF8,但是在实际测试中,没有成功.这里对于clob字段处理结果对比:
配置init.dul参数
osd_big_endian_flag=false osd_dba_file_bits=10 osd_c_struct_alignment=32 osd_file_leader_size=1 osd_word_size = 32 feedback = 1000 dc_columns=2000000 dc_tables=10000 dc_objects=1000000 dc_users=400 dc_segments=100000 USE_LOB_FILES =TRUE control_file = control.dul LDR_ENCLOSE_CHAR=| db_block_size=8192 export_mode=FALSE compatible=11
正常情况下测试clob字段
[oracle@xifenfei dul]$ ./dul Data UnLoader: 10.2.0.5.20 - Internal Only - on Sat Jan 19 00:19:05 2013 with 64-bit io functions Copyright (c) 1994 2013 Bernard van Duijnen All rights reserved. Strictly Oracle Internal Use Only DUL> unload table chf.EVT_T_COMMON_LOG; . unloading (index organized) table LOB024001aa DUL: Warning: Recreating file "LOB024001aa.ctl" 0 rows unloaded . unloading (index organized) table LOB024001da DUL: Warning: Recreating file "LOB024001da.ctl" 0 rows unloaded . unloading (index organized) table LOB0240020a DUL: Warning: Recreating file "LOB0240020a.ctl" 0 rows unloaded . unloading (index organized) table LOB0240023a DUL: Warning: Recreating file "LOB0240023a.ctl" 0 rows unloaded . unloading (index organized) table LOB0240026a DUL: Warning: Recreating file "LOB0240026a.ctl" 0 rows unloaded Preparing lob metadata from lob index Reading LOB024001aa.dat 0 entries loaded and sorted 0 entries Preparing lob metadata from lob index Reading LOB024001da.dat 0 entries loaded and sorted 0 entries Preparing lob metadata from lob index Reading LOB0240020a.dat 0 entries loaded and sorted 0 entries Preparing lob metadata from lob index Reading LOB0240023a.dat 0 entries loaded and sorted 0 entries Preparing lob metadata from lob index Reading LOB0240026a.dat 0 entries loaded and sorted 0 entries . unloading table EVT_T_COMMON_LOG DUL: Warning: Recreating file "CHF_EVT_T_COMMON_LOG.ctl" 1863 rows unloaded --修改CHF_EVT_T_COMMON_LOG.ctl中的导入表名为TEST.T_TEST --创建测试表 SQL> create table t_test as 2 select * from chf.EVT_T_COMMON_LOG where 1=0; Table created. --导入数据 [oracle@xifenfei dul]$ sqlldr test/test control=CHF_EVT_T_COMMON_LOG.ctl SQL*Loader: Release 11.2.0.3.0 - Production on Fri Jan 18 23:50:32 2013 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Commit point reached - logical record count 64 Commit point reached - logical record count 128 ………… Commit point reached - logical record count 1856 Commit point reached - logical record count 1863 --测试数据是否乱码 SQL> desc chf.EVT_T_COMMON_LOG Name Null? Type ----------------------------------------- -------- ---------------------------- ID NOT NULL VARCHAR2(64) CASES_OF_STATISTICAL_SITATION CLOB ………… DEPARTMENT_ID VARCHAR2(40) MOTIFY_MAN_ID VARCHAR2(40) SQL> select CASES_OF_STATISTICAL_SITATION from t_test where rownum<3; CASES_OF_STATISTICAL_SITATION -------------------------------------------------------------------------------- b*kb _SfZz
通过试验证明,在dul处理clob字段的时候,很容易出现乱码,因为这里涉及到很多中情况(NLS_LANG,LANG,LDR_OUTPUT_IN_UTF8参数等),经过了多次试验,均不能成功,这里就是为了给出来一个大概的结论:dul在正常情况下不能完美的处理非英文的clob
修改后lob字段文件属性后测试clob字段
--修改CHF_EVT_T_COMMON_LOG.ctl中的导入表名为TEST.EVT_T_COMMON_LOG --导入数据 [oracle@xifenfei dul]$ sqlldr test/test control=CHF_EVT_T_COMMON_LOG.ctl SQL*Loader: Release 11.2.0.3.0 - Production on Fri Jan 18 23:50:32 2013 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Commit point reached - logical record count 64 Commit point reached - logical record count 128 ………… Commit point reached - logical record count 1856 Commit point reached - logical record count 1863 --测试数据是否乱码 SQL> select CASES_OF_STATISTICAL_SITATION from EVT_T_COMMON_LOG where rownum<3; CASES_OF_STATISTICAL_SITATION -------------------------------------------------------------------------------- 1、案件统计情况截止至交班时间C时间 0 分),今日立难点问题C7,国庆北路桂门岭社区丽都花园路口,多次上
测试证明:修改了clob文件的相关属性后,完美实现dul处理clob乱码问题