DB2解因为LOAD引起的LOAD暂挂状态锁 一般解锁命名是,SET INTEGRITY FOR temp_test IMMEDIATE CHECKED 但是load暂挂状态是解不了的,可以load一个空文件,或者不存在文件来解除. load client from c:\ftp\null.txt of del terminate into 表名 这里的c:\ftp\null.txt不存在都可以. 当表执行load操作不成功时,表将出现暂挂现象 3 表处于“装入暂挂”状态…
oracle官网当一个用户发出select..for update的错作准备对返回的结果集进行修改时,如果结果集已经被另一个会话锁定,就是发生阻塞.需要等另一个会话结束之后才可继续执行.可以通过发出 select… for update nowait的语句来避免发生阻塞,如果资源已经被另一个会话锁定,则会返回以下错误:Ora-00054:resource busy and acquire with nowait specified. database运行变慢(transaction事务比较慢):…
DB2的备份恢复有点坑,当源系统和目标系统的路径设置不同时,要手动进行重定向恢复,本文是我一次实战操作之后总结的过程,仅供参考. 一.发出重定向恢复命令 DB2 RESTORE DB TO "C:" INTO NEWDB REDIRECT 其中,OLDDB是旧数据库.备份的数据库名称,NEWDB是新数据库名称,不用事先创建也可以,C:\OLDDBbak是备份文件放置的目录,20150717164847是 备份文件的时间戳,具体可看备份文件的名字OLDDB.0.DB2.NODE0000.…
ORA-01502: 索引或这类索引的分区处于不可用状态 原因: 出现这个问题,可能有人move过表,或者disable 过索引.1. alter table xxxxxx move tablespace xxxxxxx 命令后,索引就会失效.2. alter index index_name unusable,命令使索引失效.解决办法:1. 重建索引才是解决这类问题的完全的方法. alter index index_name rebuild (online); 或者alter…
DB2表空间扩容 1 - Detect what tablespace has size issues db2 list tablespaces show detail 2 - Check the percentage of use from the tablespace db2 list tablespace containers for <tablespace_id> show detail 3 - Calculating the size of free space needed Now…
##sample 0 不完全恢复之后,open resetlogs之前,怎么快速的检查数据库是否处于一致性的状态?https://blog.csdn.net/msdnchina/article/details/55515313 How to quickly check that Database is consistent after incomplete recovery (Point in Time Recovery) before OPEN RESETLOGS (Doc ID 135425…
(一)问题: 最近在做Oracle数据清理,在对分区表进行数据清理时,采用的方法是drop partition,删除的过程中,没有遇到任何问题,大概过了10分钟,开发人员反馈部分分区表上的业务失败.具体错误为: ORA-01502错误:索引或这类索引的分区处于不可用状态(英文:ora-01502:index 'schema.index_name' or partition of such index is in unusable state). (二)原因分析 查看出现问题的分区表,均有一个共同…
默认DB2 缓冲池信息监控是OFF, 需要开启(DB2表空间是由缓冲池分配的) CollBufferpool : ============ The CollBufferpool collector collects information for the DB2UDB_BUFFERPOOL application class and provides the values for monitoring DB2 buffer pools. Note: For the CollBufferpool…
DB2表不活动的处理方法(转载)首先查一下: db2 57016 SQLSTATE 57016: 因为表不活动,所以不能对其进行访问. 解决方法为:执行命令:reorg table XXX:即可. 参考原文为: Operation not allowed for reason code reason-code on table table-name. Explanation: Access to table table-name is restricted. The cause is based…
查询mysql 哪些表正在被锁状态 show OPEN TABLES where In_use > 0; 参考链接:http://zhidao.baidu.com/link?url=tCQ70tDWgIz5k0Ux1g5eoe43HXkkofsv5orhuut45IdoH6SEh8fhsfdftdxztHXb7Veme0siWVDJDIUYemmnW9zu0NIloicobw70B2fOHKm…
一.DB2数据的导出: export to [path(例:D:"TABLE1.ixf)]of ixf select [字段(例: * or col1,col2,col3)] from TABLE1; export to [path(例:D:"TABLE1.del)]of del select [字段(例: * or col1,col2,col3)] from TABLE1; 在DB2中对表数据的导出,可以用export命令,导出数据为一个文本文件,例如: export to d:…
近日,由于部门数据库读库空间过小,提出删除掉两个月之前日志表的分区(数据库分区是按时间月分区),记述如下: 上网搜索资料发现删除表分区大概分这么几步: 1.查询需要删除掉的分区: select t.DATAPARTITIONNAME from syscat.datapartitions t where tabname = '?' with ur syscat.datapartitions表存放所有的分区,根据表名时间查询出所要删除的分区名. 2.detach分区到一张临时表(该操作会创建临…