运维联盟俱乐部

 找回密码
 立即注册
查看: 262|回复: 0

[备份恢复] dul unexp dmp

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2023-12-25 14:37:41 | 显示全部楼层 |阅读模式


    1. [oracle@vm1 dul]$ cat init.dul
    2. osd_big_endian_flag=false
    3. osd_dba_file_bits=10
    4. osd_c_struct_alignment=32
    5. osd_file_leader_size=1
    6. osd_word_size = 32
    7. dc_columns=2000000
    8. dc_tables=10000
    9. dc_objects=1000000
    10. dc_users=400
    11. dc_segments=100000
    12. db_block_size=8192
    13. export_mode=true
    14. compatible=12
    15. Buffer=10485760
    复制代码

    1. DUL> alter session set LDR_OUTPUT_IN_UTF8=TRUE;
    2. DUL> scan dump file expdemo.dmp01;
    3. ** view dul.log file, search for (CREATE TABLE “<tablename>”). Copy and past table structure, then search for (start of table data) and copy the number shown at the beginning of the line and past it in the unexp command:
    4. DUL> unexp "LOCATION" ( "ID" NUMBER(3, 0), "DESCR" VARCHAR2(25) ) dump file expdemo.dmp01 from 792800;
    复制代码
    1. $ sqlplus newuser/newuser  @ <create table ....>
    2. $ sqlldr  newuser/newuser control=LOCATION.ctl log=loader.log
    复制代码


    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    运维联盟俱乐部 ( 冀ICP备19036648号 )

    GMT+8, 2024-5-12 01:30 , Processed in 0.075279 second(s), 30 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表