Loading

上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页
摘要: 1.设置保留时间点 begin dbms_audit_mgmt.set_last_archive_timestamp( audit_trail_type => dbms_audit_mgmt.audit_trail_unified, last_archive_time => sysdate -1, 阅读全文
posted @ 2023-02-05 22:32 李行行 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-02-05 21:58 李行行 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 某客户反馈使用crt批量插入数据的中文字符是乱码,通过查看数据库字符集,建议客户在操作系统层面设置nls_lang环境变量,重新插入字符集正常无乱码 export NLS_LANG='SIMPLIFIED CHINESE_CHINA.ZHS16GBK' 阅读全文
posted @ 2023-01-08 15:33 李行行 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 验证oracle新特性,在线转换非分区为分区表的过程中,出现如下报错 SQL> alter table t modify 2 partition by range (object_id) interval (1000) 3 ( 4 partition p1 values less than (100 阅读全文
posted @ 2022-12-31 23:55 李行行 阅读(656) 评论(0) 推荐(0) 编辑
摘要: SQL> select 'select dbms_metadata.get_ddl('||chr(39)||object_type||chr(39)||','||chr(39)||object_name||chr(39)||','||chr(39)||owner||chr(39)||') from 阅读全文
posted @ 2022-11-25 16:16 李行行 阅读(44) 评论(0) 推荐(0) 编辑
摘要: #有时候在生产中需要对指定时间的日志进行收集,但是时间列是有空格的,我们可以通过以下方式进行过滤 [root@testdb-01 log]# cat messages|sed -n '/Nov 25 00:00:01/,/Nov 25 00:01:01/p' Nov 25 00:00:01 test 阅读全文
posted @ 2022-11-25 00:04 李行行 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash . /home/oracle/.bash_profile ospid=`sqlplus -s / as sysdba<<EOF set linesize 1000 pagesize 0 feedback off trimspool on select spid from (s 阅读全文
posted @ 2022-11-01 16:10 李行行 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 1.问题发生时间和处理过程 问题发生时间点: 2022年10月26日 12:00 ~ 2022年10月26日 12:30 问题故障处理过程: 2022年10月26日 12:00 ~ 2022年10月26日 12:30,业务侧反馈应用性能出现波动,登陆数据库查看数据库状态,发现数据库存在大量gc等待事 阅读全文
posted @ 2022-10-31 15:13 李行行 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 参考:log file sync等待事件处理思路_ITPUB博客 一:事务的过度提交 二:存储IO资源紧张,导致lgwr进程写速度缓慢 #典型的IO延迟问题,很容易分析 三:CPU资源紧张,lgwr进程获取不到相应的CPU时间片 #暂未碰到相似案例 四:RAC之间的scn同步 #暂未碰到相关类似案例 阅读全文
posted @ 2022-10-29 22:25 李行行 阅读(64) 评论(0) 推荐(0) 编辑
摘要: MySQL执行sys.diagnostics存储过程如下报错 root@localhost [(none)]>call sys.diagnostics(null,null,'current'); + + | summary | + + | Disabled 1 thread | + + 1 row 阅读全文
posted @ 2022-10-27 17:32 李行行 阅读(311) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页