Loading

上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页
摘要: 某客户反馈使用crt批量插入数据的中文字符是乱码,通过查看数据库字符集,建议客户在操作系统层面设置nls_lang环境变量,重新插入字符集正常无乱码 export NLS_LANG='SIMPLIFIED CHINESE_CHINA.ZHS16GBK' 阅读全文
posted @ 2023-01-08 15:33 李行行 阅读(42) 评论(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 李行行 阅读(952) 评论(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 李行行 阅读(67) 评论(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 李行行 阅读(241) 评论(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 李行行 阅读(59) 评论(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 李行行 阅读(183) 评论(0) 推荐(0)
摘要: 参考:log file sync等待事件处理思路_ITPUB博客 一:事务的过度提交 二:存储IO资源紧张,导致lgwr进程写速度缓慢 #典型的IO延迟问题,很容易分析 三:CPU资源紧张,lgwr进程获取不到相应的CPU时间片 #暂未碰到相似案例 四:RAC之间的scn同步 #暂未碰到相关类似案例 阅读全文
posted @ 2022-10-29 22:25 李行行 阅读(101) 评论(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 李行行 阅读(456) 评论(0) 推荐(1)
摘要: select a.sql_id,a.exes,a.rowds,a.plan_hash_value,b.plan_hash_value,a.etimes,b.etimes from ( SELECT DISTINCT a.sql_id, a.plan_hash_value, a.executions_ 阅读全文
posted @ 2022-10-26 16:10 李行行 阅读(119) 评论(0) 推荐(0)
摘要: 参考:基于Oracle的SQL优化 1.统计信息收集设置直方图的收集方式 exec dbms_stats.set_param('METHOD_OPT','FOR ALL COLUMNS SIZE REPEAT'); SELECT DBMS_STATS.GET_PARAM('METHOD_OPT') 阅读全文
posted @ 2022-10-25 16:34 李行行 阅读(224) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页