zoukankan      html  css  js  c++  java
  • Oracle 创建用户

    1.创建表空间:
    1).查看空间文件:
    select tablespace_name, file_id, file_name, round(bytes / (1024 * 1024), 0) total_space from dba_data_files ;
    2).创建表空:
    create tablespace TB_MDM datafile '+DATA1' size 30G autoextend on next 500M maxsize unlimited;
    扩容
    alter tablespace TB_MDM add datafile '+DATA1' size 30g autoextend on next 500M maxsize unlimited;
    2.创建临时表空间:
    1).查看临时文件信息:
    select * from dba_temp_files;
    2).创建表空间
    create temporary tablespace HIP_TEMP_TEST01 tempfile '/opt/oracle/oradata/orcl/hip_test_temp01.dbf' size 50m autoextend on next 50m maxsize unlimited;
    3.创建用户
    1).查看用户:
    select * from dba_users
    2).创建用户:
    create user username identified by password default tablespace user_data temporary tablespace user_temp;
    4.授予角色
    grant connect,resource,dba to username;
    5.授予系统权限
    grant unlimited tablespace to HIP_TEST;
    5.空间不限制配额
    alter user HIP_TEST quota unlimited on HIPTEST;

  • 相关阅读:
    幸运序列(lucky) 模拟
    無名(noname) 字符串
    香港记者 图论
    Jmeter接口测试系列之参数化方法
    jmeter接口测试-总结
    python字符串
    python变量
    7.15-ROS可视化工具-标记
    6.22-Actionlib
    7.1-Move_base 参数调整
  • 原文地址:https://www.cnblogs.com/springmonkey/p/9680540.html
Copyright © 2011-2022 走看看