上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页
摘要: -- sql server 2012 1、查询数据库名SELECT DB_NAME(database_id) AS [Database Name],[Name] AS [Logical Name],[Physical_Name] AS [Physical Name],((size * 8) / 10 阅读全文
posted @ 2023-04-07 11:21 刚好遇见Mysql 阅读(115) 评论(0) 推荐(0) 编辑
摘要: select SF_GET_UNICODE_FLAG();0 表示 GB18030,1 表示 UTF-8,2 表示 EUC-KR 阅读全文
posted @ 2023-04-06 14:26 刚好遇见Mysql 阅读(150) 评论(0) 推荐(0) 编辑
摘要: ZHS16GBK对某些生僻字存储不了,需要把列的类型从varchar2转换成nvarchar2 或者把数据库的字符集转成utf8 对于已提交的数据通过函数utl_raw.cast_to_nvarchar2把unicode转成nvarchar2 对数据操作的时候用unicode转换,根据生僻字到网站查 阅读全文
posted @ 2023-03-30 17:21 刚好遇见Mysql 阅读(771) 评论(0) 推荐(0) 编辑
摘要: --查看是否开启awrSELECT SF_CHECK_AWR_SYS;说明:0:未启用;1:已启用--初始化awr SP_INIT_AWR_SYS(1); --开启 SP_INIT_AWR_SYS(0); --关闭删除sysaux表空间--快照保留时长为7天,快照间隔为1小时DBMS_WORKLOA 阅读全文
posted @ 2023-03-29 17:35 刚好遇见Mysql 阅读(126) 评论(0) 推荐(0) 编辑
摘要: --自动收集统计信息 SP_CREATE_AUTO_STAT_TRIGGER( TYPE INT, --间隔类型,默认为天 FREQ_INTERVAL INT, --间隔频率,默认 1 FREQ_SUB_INTERVAL INT, --间隔频率,与 FREQ_INTERVAL 配合使用 FREQ_M 阅读全文
posted @ 2023-03-29 17:10 刚好遇见Mysql 阅读(493) 评论(0) 推荐(0) 编辑
摘要: select s.sess_id,s.SQL_TEXT,s.RUN_STATUS from v$sessions s , v$lock l where l.tid=s.trx_Id and l.blocked=1; P_CLOSE_SESSION(SESS_ID)来关闭对应的会话 select 'S 阅读全文
posted @ 2023-03-29 16:50 刚好遇见Mysql 阅读(193) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE [dbo].[sp_who_lock] AS BEGIN DECLARE @spid INT , @bl INT , @intTransactionCountOnEntry INT , @intRowcount INT , @intCountProperties I 阅读全文
posted @ 2023-03-29 16:28 刚好遇见Mysql 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1、查看kwr插件是否安装 ksql -U system ncdb \dx 如果没有kwr插件安装 CREATE EXTENSION sys_kwr; 关闭数据库 2、修改kingbase.conf参数 track_counts = on track_sql = on track_io_timing 阅读全文
posted @ 2023-03-29 15:57 刚好遇见Mysql 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 查找阻塞者和被阻塞 SELECT blocking_activity.datname as "数据库", blocking_activity.application_name as "持锁会话程序名", blocking_activity.client_addr as "持锁会话地址", now() 阅读全文
posted @ 2023-03-29 14:54 刚好遇见Mysql 阅读(388) 评论(0) 推荐(0) 编辑
摘要: explain analyze verbose select * from t2,t3 where t2.n1=t3.n2; QUERY PLAN Merge Join (cost=85.58..257.60 rows=6950 width=82) (actual time=0.029..0.031 阅读全文
posted @ 2023-03-27 18:33 刚好遇见Mysql 阅读(31) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页