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

     1 --创建临时表空间
     2 create temporary tablespace pr_temp
     3 tempfile 'F:appdata	ablespacepr_temp.dbf'
     4 size 50m
     5 autoextend on next 50m maxsize 2048m
     6 extent management local;
     7 --创建数据表空间
     8 create tablespace pr_data
     9 logging
    10 datafile 'F:appdata	ablespacepr_data.dbf'
    11 size 50m
    12 autoextend on next 50m maxsize 2048m
    13 extent management local;
    14 --查看当前用户的缺省表空间
    15 select username,default_tablespace from user_users;
    16 --查看所有用户表空间
    17 select username,default_tablespace,temporary_tablespace from dba_users where username='PRDB';
    18 --查看所有用户
    19 select * from dba_users;
    20 select * from all_users;
    21 select * from user_users;
    22 --查看当前用户的角色
    23 select * from user_role_privs;
    24 --查看当前用户的系统权限和表级权限
    25 select * from  user_sys_privs;
    26 select * from user_tab_privs;
    27 --查看用户下所有的表
    28 select * from user_tables;
    29 --删除用户
    30 drop user prorderdb cascade;
    31 drop tablespace pr_temp including contents and datafiles;
    32 drop tablespace pr_data including contents and datafiles;
    33 --创建用户并制定表空间
    34 create user prorderdb identified by "123456"
    35 default tablespace pr_data
    36 temporary tablespace pr_temp;
    37 --给用户授权
    38 grant connect,resource to prorderdb;
  • 相关阅读:
    一致性哈系算法
    进程通信,线程通信,同步方式
    token的作用
    PHP与web 页面交互
    PHP !!
    Vue局部组件和全局组件
    vue父子组件之间的通信
    Spring Cloud 微服务架构学习笔记与示例
    feign中开启熔断的书写步骤
    使用springboot配置和注入数据源属性的方法和步骤
  • 原文地址:https://www.cnblogs.com/woshimrf/p/4867962.html
Copyright © 2011-2022 走看看