摘要: xgemsdbp cpu 使用率100% 分析: 1.通过awr和ash报告检查发现:UPDATE ADM_SYSUSER SET LAST_LOGOUT_DT=:1,LAST_ACTIVITY_TIME=:2,ALIVE_DT=:3 WHERE USER_ID=UPPER(:4) 这条sql语句占 阅读全文
posted @ 2025-03-05 08:30 ocmji 阅读(25) 评论(0) 推荐(0)
摘要: ps -ef |grep tns asmenv 查询listener.log的位置路径 lsnrctl status [listener name] 例如: listener log file : /oracle/TEST/diag/tnslsnr/xianigux/listener/alert/l 阅读全文
posted @ 2025-03-05 08:28 ocmji 阅读(132) 评论(0) 推荐(0)
摘要: 备库: select instance_name,status from v$instance; select open_mode from v$database; @dgstat 如果都是00:00:00则说明本地从生产到DR同步没有问题 @dgpro 与上面的RFS的sequence#进行对比, 阅读全文
posted @ 2025-03-05 08:27 ocmji 阅读(33) 评论(0) 推荐(0)
摘要: select status,sum(bytes)/1024/1024 Msize from dba_undo_extents where tablespace_name='UNDOTS1' group by status order by Msize desc 得出unexpired的数量 sele 阅读全文
posted @ 2025-03-05 08:25 ocmji 阅读(40) 评论(0) 推荐(0)
摘要: 需要问客户 1.修改的时间,2修改的语句是什么(得到表名,与查询条件) 恢复语句: select config_value from eesx1.test as of timestamp to_timestamp('2016-02-06 12:30:00','YYYY-MM-DD HH:MI:SS' 阅读全文
posted @ 2025-03-05 08:23 ocmji 阅读(28) 评论(0) 推荐(0)
摘要: select sum(percent_space_used) from v$flash_recovery_area_usage; select file_type,percent_space_used as used,percent_space_reclaimable as reclaimable, 阅读全文
posted @ 2025-03-05 08:21 ocmji 阅读(46) 评论(0) 推荐(0)
摘要: select min(snap_id),max(snap_id) from dba_hist_snapshot; 查完后,记录min和max的值 select dbid from v$database; 18701与18953分别为min与max的snap_id的值,387090299为dbid的值 阅读全文
posted @ 2025-03-05 08:19 ocmji 阅读(15) 评论(0) 推荐(0)
摘要: 日志切换频率: ################################## 查询每小时的归档日志生成量 ################################## SELECT SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH:MI:SS'),1,5 阅读全文
posted @ 2025-03-04 18:50 ocmji 阅读(28) 评论(0) 推荐(0)
摘要: select tablespace_name,file_name, bytes/1024/1024 已使用, maxbytes/1024/1024 最大, to_char(bytes/maxbytes100,'990.99')||'%' 使用率 from dba_data_files where t 阅读全文
posted @ 2025-03-04 18:48 ocmji 阅读(20) 评论(0) 推荐(0)
摘要: 表太多了,查看表的情况: select substr(object_name, 0,4), count() from user_objects where object_type = 'TABLE' group by substr(object_name, 0,4) order by count() 阅读全文
posted @ 2025-03-04 18:47 ocmji 阅读(11) 评论(0) 推荐(0)