易截截图软件、单文件、免安装、纯绿色、仅160KB

oracle数据导入导出


单表数据迁移:支持clob,blob
      exp estarcom/estarcom@ORACLE  tables=AA direct=y file=C:/AAA1.dmp
   imp estarcom/estarcom@ORACLE  tables=AA  file=C:/AAA1.dmp fromuser=estarcom touser=estarcom
全库数据迁移
exp userid=zhongxin/zhongxin@ORACLE owner=zhongxin file=d:/zhongxin_200811111946.dmp log=d:/zhongxin_200811111946.log
imp zhongxin/zhongxin@oracle file=d:/mianyang_20081119.dmp fromuser=mianyang touser=zhongxin
EXP/IMP用法
exp/imp适合于同类型数据库之间数据转换
共有四种不同模式:表,用户,表空间,数据库
现分别举例说明
1.表级别
$ exp hr/hr tables=jobs direct=y file=/data/table_jobs.dmp
$ imp hr/hr tables=jobs direct=y file=/data/table_jobs.dmp
2.用户级别
$ exp "'sys/sys as sysdba'" owner=hr direct=y file=/data/owner_hr.dmp
$ imp "'sys/sys as sysdba'" fromuser=hr touser=hr file=/data/owner_hr.dmp
 
3.表空间级别
$ exp "'sys/sys as sysdba'" transport_tablespace=y direct=y tablespaces=examples file=/data/ts_examples.dmp
 
4.数据库级别
$ exp "'sys/sys as sysdba'" full=y  file=/data/db.dmp
 
说明:如要使用as sysdba或as sysoper进行操作,则必须使
     用如下用法:
     "'sys/sys as sysdba'"
     "'system/system as sysoper'"


相关文档:

VVR对Oracle数据库进行容灾

   
随着全球信息化时代的到来,信息数据越来越成为企业关注的焦点,即在各种自然灾害或者人为破坏的情况下,如何保证生产数据的安全和关键业务的不中断运行。
传统的保护方法离线备份、备份介质异地保存在一定程度上可以解决上述问题,但为了能够对业务系统提供更高的实时性和可靠性,保证关键业务7x24不 ......

Oracle中与SQLSERVER ISNULL函数相同作用的函数

NVL(Expr1,Expr2)如果Expr1为NULL,返回Expr2的值,否则返回Expr1的值
NVL2(Expr1,Expr2,Expr3)如果Expr1为NULL,返回Expr2的值,否则返回Expr3的值
NULLIF(Expr1,Expr2)如果Expr1和Expr2的值相等,返回NULL,否则返回Expr1的值 ......

初识oracle中的索引组织表

 索引组织表(IOT)有一种类B树的存储组织方法。普通的堆组织表是以一种无序的集合存储。而IOT中的数据是按主键有序的存储在B树索引结构中。与一般B树索引不同的的是,在IOT中每个叶结点即有每行的主键列值,又有那些非主键列值。
如下图所示,在IOT所对应的B树结构中,每个索引项包括<主键列值,非主键列值>而 ......

[转载]Oracle存储过程学习

存储过程创建语法:
create or replace procedure 存储过程名(param1 in type,param2 out type) 
as
变量1 类型(值范围);
变量2 类型(值范围);
Begin
    Select count(*) into 变量1 from 表A where列名=param1;
    If (判断条件) then
    &n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号