oracle如何导出整个数据库.我说的是数据库里面所有的东西都要迁移哦?
有什么方法.不要一句话回答.要详细.

解决方案 »

  1.   

    可以使用exp导出所有东西,exp中的参数full=y即可。参考语句:
    exp username/password@sid file=d:\exp.dmp full=y
      

  2.   

    如果要导入整个数据库可用
    imp username/password@sid file=d:\exp.dmp full=y ignore=y另外可参考http://hi.baidu.com/wch20088082008/blog/item/76595c618fe37fd58db10ddb.html
      

  3.   


    可以使用全库的exp /imp全库模式备份: ­[oracle@roy orcl]$ exp david/david rows=y indexes=n compress=n buffer=65536 full=y file=exp_fulldatabase_090101.dmp log=exp_fulldatabase_090101.log; ­全库模式恢复: ­
    [oracle@roy orcl]$ imp david/david rows=y indexes=n commit=y  full=y ignore=y buffer=65536 file=/tmp/exp_fulldatabase_090101.dmp log=/tmp/imp.log;­
    ORACLE 数据库逻辑备份 简单 EXP/IMP:http://blog.csdn.net/tianlesoftware/archive/2009/10/24/4718366.aspx
    一些注意事项:
    1.exp /imp 的版本要一直
    2.imp 的表空间大小和个数要和exp 数据库一致
    3.exp 结束后要检查是否有无效对象ps:如果是10g以上版本: 采用数据泵的话,效率更高点。Oracle 10g EXPDP和IMPDP使用说明
    http://blog.csdn.net/tianlesoftware/archive/2009/10/24/4718366.aspx用RMAN 做duplicate 也可以实现数据库的复制, 方法比较多。 exp/imp 是最简单的。
    ------------------------------------------------------------------------------ 
    Blog: http://blog.csdn.net/tianlesoftware 
    网上资源: http://tianlesoftware.download.csdn.net 
    相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx 
    Q Q 群:62697716
      

  4.   

    google下oracle备份与恢复
    很多东西不是都可以搜到的吗
      

  5.   

        导出数据库是指利用export工具导出数据库中的所有对象和数据,要求用户
    具有dba或exp_full_database权限。语法:
        exp userid=system/manager@orcl full=y inctype=complete file=F:\数据库备份\db.dmp
        其中,full表示要把所有的方案和数据都导出去;inctype用于指定执行导出操作的增量类型,将值设为complete,下次再执行同样的操作就会缩短时间。
      

  6.   


    oracle里面有exp命令可以导出所有的记录,比如:
    exp userid=system/system@orcl full=y inctype=complete file=D:\data_back\orcl-20100224.dmp 
      

  7.   

    有时候用exp full=y 到处的dmp文件导入,会丢失很多约束,外键啊,索引啊啥的,建议单独导出数据库对象,用toad或者plsql里面的功能就行
      

  8.   

    我一般习惯用
    --按照提示一步一步来Microsoft Windows XP [版本 5.1.2600]
    (C) 版权所有 1985-2001 Microsoft Corp.C:\Documents and Settings\Administrator>expExport: Release 10.2.0.1.0 - Production on 星期三 2月 24 10:08:19 2010Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    用户名: scott
    口令:连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    输入数组提取缓冲区大小: 4096 > 4096 导出文件: EXPDAT.DMP > kk.dmp(2)U(用户), 或 (3)T(表): (2)U >
      

  9.   

    从cmd中,用exp导出,imp导入,楼上的朋友讲的没有问题。
      

  10.   

    干吗要全库导出啊? exp的方式最好不要全库导出。如果要全库备份的话,建议用rman备份最好!
      

  11.   

    我只用过oracle 数据导入命令:
    imp system/数据库密码@数据库(实例)名 full=y ignore=y file=数据库备份文件路径  
      

  12.   

     用exp导出,我用的也是这种
    exp username/password@sid file=d:\exp.dmp full=y
      

  13.   

    Mark!~ 学习下!~ Oracle中RMAN和EXP/IMP转移数据实测
      

  14.   

    方法:使用exp和imp 
    按照提示一步一步的来
    具体操作如下: 
    a服务器上:C:\>exp user/pwd@sid 
    Export: Release 10.1.0.2.0 - Production on 水 2月 10 15:28:18 2010 Copyright (c) 1982, 2004, Oracle.  All rights reserved. 
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production 
    With the Partitioning, OLAP and Data Mining options 
    Enter array fetch buffer size: 4096 >  //缓冲大小,可以选择默认 Export file: EXPDAT.DMP > D:\TEST.DMP //导出文件的位置和名称,后缀为dmp 
    (2)U(sers), or (3)T(ables): (2)U > t //选择导出对象,导出表,写T 
    Export table data (yes/no): yes > yes  //导出数据 Compress extents (yes/no): yes > no  //是否压缩 Export done in JA16SJIS character set and AL16UTF16 NCHAR character set About to export specified tables via Conventional Path ... 
    Table(T) or Partition(T:P) to be exported: (RETURN to quit) > dependent //选择要导出的表,此处写表名 . . exporting table                      DEPENDENT          7 rows exported 
    Table(T) or Partition(T:P) to be exported: (RETURN to quit) >  //可以继续导出表,直接回车退出。 Export terminated successfully with warnings. b服务器上: 
    C:\>imp user/pwd 
    Import: Release 10.1.0.2.0 - Production on 水 2月 10 15:34:19 2010 Copyright (c) 1982, 2004, Oracle.  All rights reserved. 
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production 
    With the Partitioning, OLAP and Data Mining options Import file: EXPDAT.DMP > d:\TEST.DMP Enter insert buffer size (minimum is 8192) 30720> Export file created by EXPORT:V10.01.00 via conventional path 
    import done in JA16SJIS character set and AL16UTF16 NCHAR character set 
    List contents of import file only (yes/no): no > NO Ignore create error due to object existence (yes/no): no > YES Import grants (yes/no): yes > Import table data (yes/no): yes > Import entire export file (yes/no): no > 如果你是要整个数据库导出的话,把上面的exp user/pwd@sid 改成管理员用户登录。
    操作就按照上面的
    选择备份类型时选D。
    你可以先试试。
      

  15.   

    可以参照下面一篇帖子
    http://topic.csdn.net/u/20100209/20/154b3c6a-053a-4621-b979-7258dcc29499.html
      

  16.   

    1.导出前最好先中断所有的数据库连接,不要在向库里写数据。2.导出前后分别检查数据库中总的记录数,做比对。
    select  sum(num_rows)  from dba_tables i ;3.检查库中的表空间,在备库上建好
    select * from dba_tablespaces;4.估算一下需要多大的表空间;5.导库的时候最好写日志文件,可以发现导出过程中的问题。
      

  17.   

    1.导出前断开所有的数据库连接,防止数据不一致。2.检查表空间个数和大小
    select * from dba_tablespaces;
    select * from dba_data_files ;3.检查导出前后数据库的记录数是否一致
    select sum(num_rows)  from  dba_tables;4.导出过程记录日志,以便跟踪问题
    5.imp时可以考虑加一下参数
    buffer=500000000 commit=yes feedback=100000  ignore=yes