zoukankan      html  css  js  c++  java
  • Oracle 导入dmp 故障存储文件

    创建表空间及用户
    CREATE TABLESPACE OracleDBF
    DATAFILE 'D:appzhoulxoradatadcOracleDBF.DBF' SIZE 100M AUTOEXTEND ON NEXT 20M MAXSIZE UNLIMITED -- 这里是你设置数据库存放的地方,可以自己选定位置
    PERMANENT
    DEFAULT STORAGE(INITIAL 64K MINEXTENTS 1 MAXEXTENTS 2147483645)
    MINIMUM EXTENT 64K
    LOGGING
    ONLINE
    /
    create user OracleDBF identified by salis default tablespace OracleDBF temporary tablespace temp;
    /
    GRANT DBA TO OracleDBF WITH ADMIN OPTION
    /
    GRANT SELECT ANY DICTIONARY TO OracleDBF WITH ADMIN OPTION
    /
    GRANT SELECT ANY SEQUENCE TO OracleDBF WITH ADMIN OPTION
    /
    GRANT SELECT ANY TABLE TO OracleDBF WITH ADMIN OPTION
    /
    GRANT SELECT ANY TRANSACTION TO OracleDBF WITH ADMIN OPTION
    /
    GRANT UNLIMITED TABLESPACE TO OracleDBF WITH ADMIN OPTION
    /
    GRANT CREATE SESSION,RESOURCE TO OracleDBF WITH ADMIN OPTION
    /
    GRANT CREATE ANY VIEW to OracleDBF
    /

    数据泵导入
    查询目录
    select * from dba_directories
    创建目录
    create directory DATABASE as 'e:database' 

    --------------------------------------------------------------------------------------------------------

    这一步在命令行输入
    导入
    impdp OracleUser/OracleuserPassWord@Oracle地址(例如:127.0.0.1) directory=DATABASE(这里是上面创建的目录名称) dumpfile=OracleDBF.dmp schemas=OracleDBF  -- E:database 是你存放DBF文件的位置

    --imp OracleUser/OracleuserPassWord@Oracle地址(例如:127.0.0.1)  file=D:databaseTEST.DMP full=y (imp没有directory、dumpfile、schemas这些关键字,直接写路径就好了)
    expdp OracleUser/OracleuserPassWord@Oracle地址(例如:127.0.0.1)directory=DATABASE dumpfile=OracleDBF.dmp schemas=OracleDBF  -- E:database 是你存放DBF文件的位置

    --exp OracleUser/OracleuserPassWord@Oracle地址(例如:127.0.0.1)file=D:databaseTEST.DMP full=y (exp没有directory、dumpfile、schemas这些关键字,直接写路径就好了)
    ---------------------------------------------------------------------------------------------------------
    删除用户再创建
    drop user OracleDBF cascade;
    /
    create user OracleDBF identified by salis default tablespace OracleDBF temporary tablespace temp;
    /
    GRANT DBA TO OracleDBF WITH ADMIN OPTION
    /
    GRANT SELECT ANY DICTIONARY TO OracleDBF WITH ADMIN OPTION
    /
    GRANT SELECT ANY SEQUENCE TO OracleDBF WITH ADMIN OPTION
    /
    GRANT SELECT ANY TABLE TO OracleDBF WITH ADMIN OPTION
    /
    GRANT SELECT ANY TRANSACTION TO OracleDBF WITH ADMIN OPTION
    /
    GRANT UNLIMITED TABLESPACE TO OracleDBF WITH ADMIN OPTION
    /
    GRANT CREATE SESSION,RESOURCE TO OracleDBF WITH ADMIN OPTION
    /
    GRANT CREATE ANY VIEW to OracleDBF
    /

  • 相关阅读:
    ECSHOP文章详情页的标题上加个链接
    点击复制代码到粘贴板代码
    ecshop商城用户名和邮箱都能登陆方法
    ECSHOP商品页发表评论时 取消EMAIL必填
    ECSHOP 模板结构说明
    ecshop文章分类页 显视当前文章分类名称及商品分类页显视当前分类名称
    ecshop商城用户名和邮箱都能登陆方法
    Ecshop品牌页如何自定义Title
    常见的颜色搭配、衣裤搭配指南
    ECSHOP首页显示积分商城里的商品
  • 原文地址:https://www.cnblogs.com/firebet/p/14120540.html
Copyright © 2011-2022 走看看