加入收藏 | 设为首页 | 会员中心 | 我要投稿 温州站长网 (https://www.0577zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

linux中oracle的日常维护命令

发布时间:2016-09-04 01:13:42 所属栏目:Linux 来源:站长网
导读:1. 检查Oracle的进程 $ ps -ef|grep ora_|grep -v grep oracle 5998 1 0 11:15:59 0:01 ora_j000_PPRD10 oracle 2968 1 0 21:16:57 0:00 ora_q000_PPRD10 oracl

ges_cache_ress                                   0               0          0  U

ges_reg_msgs                                     0               0          0  U

ges_big_msgs                                     0               0          0  U

ges_rsv_msgs                                     0               0          0

RESOURCE_NAME                  CURRENT_UTILIZATION MAX_UTILIZATION INITIAL_AL LI

------------------------------ ------------------- --------------- ---------- --

gcs_resources                                    0               0          0

gcs_shadows                                      0               0          0

dml_locks                                        0              68        748  U

temporary_table_locks                            0               3  UNLIMITED  U

transactions                                     2              11        187  U

branches                                         0               0        187  U

cmtcallbk                                        0               2        187  U

sort_segment_locks                               0               3  UNLIMITED  U

max_rollback_segments                           11              11        187

max_shared_servers                               1               1  UNLIMITED  U

parallel_max_servers                             0               0         40

22 rows selected.

11. 检查Oracle各个表空间的增长情况

Select  A.tablespace_name,(1-(A.total)/B.total)*100 used_percent

from (select tablespace_name,sum(bytes) total from dba_free_space group by tablespace_name) A, (select tablespace_name,sum(bytes) total from dba_data_files group by tablespace_name) B

where A.tablespace_name=B.tablespace_name;

SQL> Select  A.tablespace_name,(1-(A.total)/B.total)*100 used_percent

(编辑:温州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读