zoukankan      html  css  js  c++  java
  • Oracle数据导入导出和建库语句

    1 将数据库TEST完全导出,用户名system 密码manager 导出到D:\daochu.dmp中
       exp system/manager@TEST file=d:\daochu.dmp full=y
     2 将数据库中system用户与sys用户的表导出
       exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
     3 将数据库中的表table1 、table2导出
       exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)
     4 将数据库中的表table1中的字段filed1以"00"打头的数据导出
       exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like  '00%'\"

    imp dict_f/dict@ufida18 ignore=y full=y file=d:\dict_f_dfmds.dmp------导入


    exp dict_f/dict@ufida18 file=d:\dfsdfd.dmp owner=dict_f-----------导出

    create tablespace empi datafile 'E:\oracle\product\10.2.0\oradata\orcl\empi01.dbf' size 50m autoextend on next 50m maxsize 100m logging online permanent extent management local;
    ALTER TABLESPACE empi ADD DATAFILE 'E:\oracle\product\10.2.0\oradata\orcl\empi02.dbf' SIZE 50M AUTOEXTEND ON  NEXT 50M MAXSIZE 100M;
    ALTER TABLESPACE empi ADD DATAFILE 'E:\oracle\product\10.2.0\oradata\orcl\empi03.dbf' SIZE 50M AUTOEXTEND ON  NEXT 50M MAXSIZE 100M;
    create user empi identified by empi default tablespace empi temporary tablespace temp;
    grant connect, create session, resource to empi;
    grant dba,resource to empi;-------empi为dba

  • 相关阅读:
    在eclipse中进行HotSpot的源码调试
    CentOS6.5上编译OpenJDK7源码
    商城楼层跳转
    javascript原生百叶窗
    javascript原生轮播
    Canvas计时器
    纯js模拟 radio和checkbox控件
    纯js日历
    关于匿名函数,闭包和作用域链
    端口占用问题
  • 原文地址:https://www.cnblogs.com/wangchy0927/p/2159140.html
Copyright © 2011-2022 走看看