zoukankan      html  css  js  c++  java
  • ORACLE导出导入库

    导出   

     exp ECPDATA/ECPDATA@ajiaecpdb file=E:\ECPDB_FULL.DMP full=y
    

    导入

      新建数据库

    SQLPLUS连接数据库 

    sqlplus System/xxxxxx@ajiaecpdb
    

    执行下面这段SQL

    注意修改

      DATAFILE 'E:\app\Administrator\oradata\AJIAECPDB\ECP_DATA01' SIZE 10M

      DATAFILE 'E:\app\Administrator\oradata\AJIAECPDB\ECP_IDX01' SIZE 10M

    的路径

    CREATE SMALLFILE TABLESPACE "ECP_DATA"
    DATAFILE 'E:\app\Administrator\oradata\AJIAECPDB\ECP_DATA01' SIZE 10M
    AUTOEXTEND ON NEXT 2M MAXSIZE UNLIMITED
    LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO
    ;
    
    CREATE SMALLFILE TABLESPACE "ECP_IDX"
    DATAFILE 'E:\app\Administrator\oradata\AJIAECPDB\ECP_IDX01' SIZE 10M
    AUTOEXTEND ON NEXT 2M MAXSIZE UNLIMITED
    LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO
    ;
    
    CREATE USER "ECPDATA" PROFILE "DEFAULT" IDENTIFIED BY "ECPDATA" DEFAULT TABLESPACE "ECP_DATA" TEMPORARY TABLESPACE "TEMP" ACCOUNT UNLOCK
    ;
    GRANT "CONNECT" TO "ECPDATA";
    GRANT "RESOURCE" TO "ECPDATA";
    GRANT UNLIMITED TABLESPACE TO "ECPDATA";
    GRANT ALTER ANY INDEX TO "ECPDATA";
    GRANT ALTER ANY SEQUENCE TO "ECPDATA";
    GRANT ALTER ANY TABLE TO "ECPDATA";
    GRANT ALTER ANY TRIGGER TO "ECPDATA";
    GRANT CREATE ANY INDEX TO "ECPDATA";
    GRANT CREATE ANY SEQUENCE TO "ECPDATA";
    GRANT CREATE ANY TABLE TO "ECPDATA";
    GRANT CREATE ANY TRIGGER TO "ECPDATA";
    GRANT CREATE ANY VIEW TO "ECPDATA";
    GRANT DROP ANY INDEX TO "ECPDATA";
    GRANT DROP ANY SEQUENCE TO "ECPDATA";
    GRANT DROP ANY TABLE TO "ECPDATA";
    GRANT DROP ANY TRIGGER TO "ECPDATA";
    GRANT DROP ANY VIEW TO "ECPDATA";
    GRANT SELECT ANY DICTIONARY TO "ECPDATA";
    GRANT SELECT ANY SEQUENCE TO "ECPDATA";
    GRANT SELECT ANY TABLE TO "ECPDATA";
    

    导入  

    imp ECPDATA/ECPDATA@ajiaecpdb file=E:\ECPDB_FULL.DMP full=y
    
  • 相关阅读:
    ln 硬链接与软链接
    Fujitsu存储多路径管理
    Ansible 模块详解
    思科光纤交换机9124管理手册
    Fujitsu DX100S3配置方案
    富士通存储的TPP池和SDPV池
    Solaris 10 ZFS文件系统挂载
    经分测试M5000重启进入维护模式
    finally在return之后还是之前运行
    gradle构建
  • 原文地址:https://www.cnblogs.com/warrior/p/2220185.html
Copyright © 2011-2022 走看看