zoukankan      html  css  js  c++  java
  • orcle导入导出

    CREATE TABLESPACE TABLESPANCE_SZPrison
    DATAFILE 'D:TABLESPANCESZPrison.DBF' SIZE 1000M
    EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
    CREATE USER &userName IDENTIFIED BY &password DEFAULT TABLESPACE TABLESPANCE_SZPrison; 
    GRANT CREATE TABLE,CREATE VIEW,CREATE TRIGGER, CREATE SEQUENCE,CREATE PROCEDURE TO &userName;
    GRANT UNLIMITED TABLESPACE TO &userName;
    GRANT CREATE SESSION TO &userName;
    GRANT SELECT ON V_$STATNAME to &userName;
    GRANT SELECT ON V_$SESSTAT to &userName;
    GRANT SELECT ON V_$SESSION to &userName;
    GRANT SELECT ON V_$MYSTAT to &userName;
    EXIT;

    1、登录到当前数据库 sqlplus sys/orcl as sysdba

    2、创建用户 create user dev_szprisonwifi identified by dev_szprisonwifi;

    3、授权 grant connect to dev_szprisonwifi;

    4、测试连接 sqlplus dev_szprisonwifi/dev_szprisonwifi

    5、导入dmp文件 C:Userscassi>imp dev_szprisonwifi/dev_szprisonwifi file='E:深圳监狱201601201 6.dmp' fromuser=dev_szprisonwifi touser=dev_szprisonwifi

    导出

    C:UsersAdministrator>exp dev_szprisonwifi/dev_szprisonwifi file='E:Lightrain dump2016.dmp' owner=dev_szprisonwifi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • 相关阅读:
    oracle数据库导出与导入
    Mysql导入表信息[Err] 1067
    Golang--不定参数类型
    (转)Docker容器的重启策略及docker run的--restart选项详解
    (转)Golang--使用iota(常量计数器)
    Golang--匿名变量
    Golang--Hello World
    Ubuntu Server16.04 配置网卡
    U盘安装ubuntu 16.04 遇到 gfxboot.c32:not a COM32R image boot 的解决方法
    ipfs私链服务
  • 原文地址:https://www.cnblogs.com/huideng/p/5142660.html
Copyright © 2011-2022 走看看