摘要:
--查看连接数 select coorname,usename,application_name,substr(query,1,50) as query,state from pgxc_stat_activity where state='active' and usename='xxx'; sel 阅读全文
随笔分类 - 数据库技术
【GaussDB】应用报错 socket is not closed; Urgent packet sent to backend successfully; An I/O error occured while sending to the backend.detail:EOF Exception;
2024-08-30 09:37 by Ivan的一亩三分地, 2620 阅读, 收藏,
摘要:
数据库原理差异 会话空闲时间超过sesseion_time后,数据库主动断开,客户端再发起请求,就会报此类错误; 当一个会话连接长时间没有执行SQL或者活动时,会将该会话释放,可以释放缓存避免出现例如OOM等问题。 在Oracle中连接会话默认永不超时,Mysql中连接会话默认8小时超时,而在Gau 阅读全文
【openGauss】运维常用的SQL
2022-10-22 16:18 by Ivan的一亩三分地, 146 阅读, 收藏,
摘要:
一、查模式 SELECT pn.oid AS schema_oid, iss.catalog_name, iss.schema_owner, iss.schema_name FROM information_schema.schemata iss INNER JOIN pg_namespace pn 阅读全文
【DB2】How to resolve SQL20249N the statement was not processed with error
2018-12-05 21:09 by Ivan的一亩三分地, 2156 阅读, 收藏,
摘要:
相关链接 https://vinaysdb2blog.blogspot.com/2017/11/how to resolve sql20249n statement was not processed error.html 转载 https://www 01.ibm.com/support/docv 阅读全文
【DB2】关闭表的日志功能
2018-11-20 10:33 by Ivan的一亩三分地, 1689 阅读, 收藏,
摘要:
2018.11.19 客户遇到一个问题,在import数据的时候,产生了大量的日志,客户的数据库是HADR模式,通过评估,这几张表是可以允许在备库上不查询的,表中的数据时临时的。 三种方案结果都是一样的,由于不写日志,均会导致备库表无法查询,报错SQL1477N 现在存在一个疑问,假如使用方案二,同 阅读全文
【DB2】SQL0437W Performance for this complex query may be sub-optimal
2018-11-17 09:51 by Ivan的一亩三分地, 2052 阅读, 收藏,
摘要:
参考链接 Technote (troubleshooting) Problem(Abstract) Error[IBM][CLI Driver][DB2/6000] SQL0437W Performance for this complex querymay be sub-optimal.Reaso 阅读全文
DB2 锁问题的监控和解决
2018-11-01 19:53 by Ivan的一亩三分地, 1543 阅读, 收藏,
摘要:
常见的锁问题包括: 锁等待 锁超时 锁升级 死锁 而根据问题的特性通常分为两种: 实时事件:问题正在发生 历史事件:问题已经过去 如果实时事件,DBA 可以通过查看表信息、GET SNAPSHOT 或者 db2pd/db2top 查看数据库当前的锁状况;这毕竟少数,往往锁问题都是历史事件,应用通过查 阅读全文
【DB2】普通用户最小查询权限分配
2018-10-31 17:29 by Ivan的一亩三分地, 1852 阅读, 收藏,
摘要:
1. 通过实例用户或者有dbadm权限的用户连接数据库 db2 connect to <db-name> 2. 分配普通用户连接权限db2 "grant connect on database to user db-user" 3. 分配用户使用默认workload权限否则报 SQL5193N 错误 阅读全文
DB2 体系结构 (进程模型)
2017-11-30 20:48 by Ivan的一亩三分地, 3294 阅读, 收藏,
摘要:
DB2 是众多关系型数据库中的一种, 关系型数据库还包括比较火的Oracle,MySQL 实例 数据库 DB2 进程模型 DB2 通过 db2start 命令启动数据库实例,即启动相应的进程和线程,并分配相应内存。 通过命令db2pd -edu 可以查看当前的进程和线程 DB2 主进程 NOTE: 阅读全文
DB2 Package Issues and Solution
2017-11-21 15:50 by Ivan的一亩三分地, 1158 阅读, 收藏,
摘要:
Client 从 10.1 升级到11.1之后,而server端的DB 是10.1 版本,当客户执行sql语句时候报错: select * from ebcc.eol_item_info where EOL_SUPP_NO='E0085960901SQL0805N Package "NULLID.S 阅读全文
DB2 close auto commit
2017-11-18 13:32 by Ivan的一亩三分地, 1098 阅读, 收藏,
摘要:
db2 关闭命令行CLP自动提交 --临时关闭自动提交 #db2 "update command options using C off --永久关闭自动提交 linux 环境下 #db2set -lr | grep -i "db2option" Windows 环境下 #db2set -lr | 阅读全文
【DB2】Event monitor for locking
2017-11-17 17:10 by Ivan的一亩三分地, 1553 阅读, 收藏,
摘要:
Customer said, they got the following Errors in applications logs I checked the db2diag.log, there is no any logs related with the error. then I check 阅读全文
[DPF] DPF 常见的问题
2016-10-12 16:09 by Ivan的一亩三分地, 755 阅读, 收藏,
摘要:
问题一: SQL6031N Error in the db2nodes.cfg file at line number "5". Reason code "12". [db2inst1@ivan sqllib]$ db2startSQL6031N Error in the db2nodes.cfg 阅读全文
[DPF] DB2 DPF 搭建实战
2015-01-29 18:12 by Ivan的一亩三分地, 1246 阅读, 收藏,
摘要:
1. Server 准备 2. NFS 系统设置 3. 创建实例 4. rsh/ssh 5. 测试 Server: 192.168.122.1 dpf01.dpf.com dpf01 192.168.122.17 dpf02.dpf.com dpf02 Nodes: --添加用户 groupadd 阅读全文
【HADR】常见的问题
2015-01-29 16:34 by Ivan的一亩三分地, 1325 阅读, 收藏,
摘要:
[hadrpri@oc0644314035 ~]$ db2 start hadr on db org as primary SQL1768N Unable to start HADR. Reason code = "5". 2015-01-20-09.44.19.684461-300 I29119E 阅读全文
【HADR】搭建实战
2015-01-29 15:57 by Ivan的一亩三分地, 758 阅读, 收藏,
摘要:
Summary: 简单的HADR,只用一台虚拟机,两个实例间搭建。工作量不大,一般5分钟左右能够完成。 步骤: 1.设定归档模式 2.使用备份建立standby数据库 3.设定hadr相关的参数 4.启动并测试 测试环境: 搭建开始 step 1: 创建组和用户 create primary ins 阅读全文
【HADR】How to reestablish HADR from scratch after a failure on Standby
2015-01-19 19:34 by Ivan的一亩三分地, 302 阅读, 收藏,
摘要:
转载 http://www-01.ibm.com/support/docview.wss?uid=swg21514783 Cause Have a HADR pair with Primary online but a failure on the Standby makes it necessar 阅读全文
DB2 Check Pending Script
2015-01-15 18:58 by Ivan的一亩三分地, 885 阅读, 收藏,
摘要:
转载 http://www.zinox.com/archives/144 Thanks to Max Petrenko of DB2 Toronto Lab for sharing a very useful script to remove check pending status from th 阅读全文
db2 tsm backup fails with rc–50(2)
2015-01-12 00:23 by Ivan的一亩三分地, 217 阅读, 收藏,
摘要:
https://www.ibm.com/developerworks/community/forums/html/topic?id=97cb3b5e-1d8d-48b1-b003-143a4a464a6e 阅读全文
db2 tsm backup fails with rc–50(1)
2015-01-12 00:22 by Ivan的一亩三分地, 746 阅读, 收藏,
摘要:
2015-01-05-19.21.54.477532+000 E8484227A347 LEVEL: Error PID : 10027058 TID : 1 PROC : db2vend INSTANCE: ldapdb2 NODE : 000 EDUID : 1 FUNCTION: DB2 UD 阅读全文
浙公网安备 33010602011771号