oracle结构与安全

从宏观上来看:oracle数据库服务器主要有数据库和实例组成.

在orale数据库服务器中,首先会产生一个实例,通过实例访问一个数据库.

一个实例对应着一个数据库.

oracle 数据库在逻辑上是按层次进行管理的.

oracle数据字典有基本表和视图组成,存储oracle系统的活动信息和所有用户数据库的定义信息 分为 :静态数据字典 , 动态性能表 .

静态数据字典:存在于system 表空间中, 记录了系统资源信息,用户登录信息,数据库信息等

 分类: ALL 由授权的用户访问,显示所有课访问的对象信息

         USER 有用户创建,显示用户私有的对象信息

         DBA 由具有DBA权限的用户访问,管理数据库对象信息

         V$  有具有DBA权限的用户访问,显示运行中的动态信息

  关系: DBA(数据库中的所有对象)>ALL(当前用户可以访问的所有对象)>user(当前用户拥有的所有对象)

动态性能表:是一组虚拟表,记录了当前数据库的活动情况和参数

在oracle系统中,用户是允许访问数据库系统的有效账户,是可以对数据库资源进行访问的实体

--创建
create user Student
identified  by student123
default  tablespace users
temporary tablespace temp;
--授权
grant connect to Student;
grant resource to Student;

--修改

alter user  Student
identified by my123;
alter user Student account unlock 

--删除

drop user Student cascade;

--授予查询权限
grant select on scott.emp to Student;
select * from scott.emp;
grant insert on scott.emp to Student;
grant update on scott.emp to Student;
--收回权限
revoke insert on emp_info from scott;

oracle数据结构

原文地址:https://www.cnblogs.com/shuaif/p/3491241.html