四、动态性能视图
记录当前数据库的活动,并且不停的更新,故不能保证读取数据的一致性
监控和调整数据库
所有者 sys
以 v$开头
DICT 和 DICT_COLUMNS 视图包含了动态性能视图描述及其列的描述
v$FIXED_TALBE 包含了所有视图的名字及相关信息
五、演示
*/
[root@robinson ~]# su - Oracle
--查看未启动实例前的进程情况
[oracle@robinson ~]$ ps -aef |grep oracle
root 3332 3300 0 12:20 pts/1 00:00:00 su - oracle
oracle 3333 3332 0 12:20 pts/1 00:00:00 -bash
oracle 3365 3333 0 12:20 pts/1 00:00:00 ps -aef
oracle 3366 3333 0 12:20 pts/1 00:00:00 grep oracle
--使用 ipcs 查看当前进程间通讯所用到的共享资源,内存段及信号量,
--可以看出当前无任何通信设备及共享资源
[oracle@robinson ~]$ ipcs -a
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
------ Semaphore Arrays --------
key semid owner perms nsems
------ Message Queues --------
key msqid owner perms used-bytes messages
--登陆到 sqlplus
[oracle@robinson ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Apr 29 13:07:29 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
--再次查看进程情况,多出了进程
SQL> !ps -aef | grep oracle
root 3332 3300 0 12:20 pts/1 00:00:00 su - oracle
oracle 3333 3332 0 12:20 pts/1 00:00:00 -bash
oracle 3972 3333 0 13:07 pts/1 00:00:00 sqlplus as sysdba
oracle 3972 3
972 0 13:07 ? 00:00:00 oracleorcl
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle 3974 3972 0 13:07 pts/1 00:00:00 /bin/bash -c ps -aef | grep oracle
oracle 3975 3974 0 13:07 pts/1 00:00:00 ps -aef
--再次查看进程间通讯资源,同样是没有任何分配
SQL> !ipcs -a
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
------ Semaphore Arrays --------
key semid owner perms nsems