• Oracle常用命令-用户、表空间、赋权限、导入导出


    1.1   删除表空间

    drop tablespace QBKJ including contents and datafiles;

    1.2   删除用户

    drop user admin cascade;

    1.3   创建表空间

    create tablespace QBKJ  

    datafile 'D:apporacle_tablespacesQBKJ.dbf'  

    size 1024M  

    autoextend on next 5M maxsize 20480M;

     注意:创建表空间时,路径要有,如oracle_tablespaces这个文件夹要先创建好

    1.4   创建用户

    create user admin identified by "qb123456" default tablespace QBKJ;

    1.5   给用户赋权限

    grant connect,resource to admin; 

    grant dba to admin;

    grant create any sequence to admin; 

    grant create any table to admin; 

    grant delete any table to admin; 

    grant insert any table to admin; 

    grant select any table to admin; 

    grant unlimited tablespace to admin; 

    grant execute any procedure to admin; 

    grant update any table to admin; 

    grant create any view to admin;

    1.6   导入/导出数据(此种命令导入方式实在cmd的dos窗口下)

    1.部分表导致:

    imp qbkjpro/qb123456@localhost/orcl file="D:dmp_150qbkjhlw.DMP"  tables=(vacc_dic_tmp,vac_child_info) ignore=y

    2.全表导入

    imp admin/qb123456@localhost/orcl file="E:奇兵科技qbkj.dmp"  ignore=y full=y

     

    ignore=y:表示已存在表忽略

    1.全表导出:

    exp admin/qb123456@localhost/orcl file="C:UsersAdministratorDesktopadmin0218.dmp"

    2.部分表导出:

    exp admin/qb123456@localhost/orcl file="C:UsersAdministratorDesktopadmin0218.dmp"  tables=(vacc_dic_tmp,vac_child_info) 

  • 相关阅读:
    C#校验算法列举
    SuperSocket1.6电子书离线版
    C#检测系统是否激活[转自StackOverFlow]
    WSMBT Modbus & WSMBS Modbus 控件及注册机
    AU3获取系统激活信息
    JavaScript跨浏览器事件处理
    OAuth2的学习小结
    R学习日记——分解时间序列(季节性数据)
    R学习日记——分解时间序列(非季节性数据)
    Java内存分配原理
  • 原文地址:https://www.cnblogs.com/banxian-yi/p/10636457.html
Copyright © 2020-2023  润新知