当前所在位置:珠峰网资料 >> 计算机 >> Oracle认证 >> 正文
oracle 表空间 表权限 用户
发布时间:2010/8/30 16:01:37 来源:城市学习网 编辑:ziteng
  启动数据库命令分为三个阶段:
  startup nomount
  alter database mount
  alter database open
  本用户读取其他用户对象的权限:
  select * from user_tab_PRivs;
  本用户所拥有的系统权限:
  select * from user_sys_privs;
  ---------------------------------------------------------
  Oracle中数据字典视图分为3大类, 用前缀区别,分别为:USER,ALL 和 DBA,许多数据字典视图包含相似的信息。
  USER_*:有关用户所拥有的对象信息,即用户自己创建的对象信息
  ALL_*:有关用户可以访问的对象的信息,即用户自己创建的对象的信息加上其他用户创建的对象但该用户有权访问的信息
  DBA_*:有关整个数据库中对象的信息
  ---------------------------------------------
  Oracle 10i
  ALTER DATABASE DEFAULT TABLESPACE 修改数据库的默认表空间
  -----------------------------------
  set echo off;
  spool 产生脚本文件的路径
  select 'grant select,insert,delete,update on '|| table_name||' to 用户名;' from user_tables;
  spool off;
  select 'revoke select,insert,update,delete on '||table_name||' from 用户名;' from user_tables;
  revoke select,insert,delete,update any table from 用户名 with grant option;
  --------------
  grant select,insert,delete,insert,update any table to 用户名 with grant option ;
  修改表 所属的表空间
  alter table 表名 move tablespace 表空间名
  注意:在此操作之后,一定要把表上的索引重建, alter index index-name rebuild
  -------------------
  创建表空间语句:
  create tablespace tableName datafile 'e:oracle/dbName.dbf' size 1024M autoextend on next 100M maxsize unlimited;
广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved