linux强制重启db2数据库,db2start失败,重启linux系统starting at daemon也NG

我查了一下linux系统启动日志:/var/log/messages

发现大概出现问题时:启动时就开始有atd  startup failed,关闭时atd shutdown faild,不知道这个有没有关系。

我查了licence

$ db2licm -l后 出现的是:

Product Name                  = "DB2 Enterprise Edition"

Product Password              = "DB2UDBEE"

Version Information           = "7.2"

Expiry Date                   = "Permanent"

Concurrent Connect User Policy = "Disabled"

Registered Connect User Policy = "Disabled"

Enforcement Policy            = "Soft Stop"

Number of processors          = "1"

Number of licensed processors = "1"

Annotation                    = ""

Other information             = ""

Product Name                  = "DB2 Connect Enterprise Edition"

Product Password              = "DB2CONEE"

Version Information           = "7.2"

Expiry Date                   = "Expired"

Measured usage license policy = "Disabled"

Concurrent Connect User Policy = "Disabled"

Registered Connect User Policy = "Disabled"

Enforcement Policy            = "Soft Stop"

Annotation                    = ""

Other information             = ""

“SQL8008N  The product "DB2 Connect Enterprise Edition" does not have a valid

license key installed and the evaluation period has expired.  Functions

specific to this product are not enabled.”

注:这段代码是自从装上数据库就db2start后一直出现的,但是并没有影响对数据库进行任何操作。

以下是从db2start开始的一完整日志:

2005-11-10-16.14.12.845376   Instance:db2inst1   Node:000

PID:768(db2star2)   Appid:none

oper_system_services  licRequestAccess   Probe:2

SQL8008N  The product "DB2 Connect Enterprise Edition" does not have a valid

license key installed and the evaluation period has expired.  Functions

specific to this product are not enabled.

2005-11-10-16.14.12.926461   Instance:db2inst1   Node:000

PID:770(db2star2)   Appid:none

oper_system_services  sqloopenp   Probe:36

errno: 0d00 0000                                     ....

2005-11-10-16.14.12.939557   Instance:db2inst1   Node:000

PID:770(db2star2)   Appid:none

oper_system_services  sqloexec   Probe:3

DiagData

01c6 ffff                                     ....

2005-11-10-16.14.12.952312   Instance:db2inst1   Node:000

PID:770(db2star2)   Appid:none

base_sys_utilities  startdbm   Probe:209

DiagData

01c6 ffff                                     ....

2005-11-10-16.14.12.965135   Instance:db2inst1   Node:000

PID:768(db2star2)   Appid:none

oper_system_services  sqlowait   Probe:9

2b00 0000                                     +...

2005-11-10-16.14.13.008687   Instance:db2inst1   Node:000

PID:768(db2star2)   Appid:none

oper_system_services  sqlowait   Probe:10

Data Title:sqloqwait temp_var:  PID:768 Node:000

0180 0200                                     ....

Data Title:sqloqwait queue type:  PID:768 Node:000

0000 0000                                     ....

Data Title:sqloqwait waitpost ptr:  PID:768 Node:000

a817 0110                                     ....

Data Title:sqloqwait waitpost:  PID:768 Node:000

0100 0000 0100 0000 0200 0000 0000 0000       ................

Data Title:sqloqwait timeout:  PID:768 Node:000

ffff ffff                                     ....

Data Title:sqloqwait my_wl ptr:  PID:768 Node:000

0000 0000                                     ....

2005-11-10-16.14.13.067452   Instance:db2inst1   Node:000

PID:768(db2star2)   Appid:none

oper_system_services  sqlofpol   Probe:26

DIA9999E An internal error occurred. Report the following error code :

"FFFFA602".

2005-11-10-16.14.13.109121   Instance:db2inst1   Node:000

PID:768(db2star2)   Appid:none

trace_services  trcSemP   Probe:10

Trace has been turned off because semop failed.  The maximum number of semphore undo entries per structure (SEMUME) limit maybe too low.  The semop errno was

1600 0000                                     ....

2005-11-10-16.14.13.136187   Instance:db2inst1   Node:000

PID:768(db2star2)   Appid:none

oper_system_services  sqloTermShrEDUWaitElem   Probe:20

DiagData

02a6 ffff                                     ....

2005-11-10-16.14.13.149015   Instance:db2inst1   Node:000

PID:768(db2star2)   Appid:none

oper_system_services  sqlo_dealloc_sem_pool   Probe:3

1600 0000                                     ....

Linux系统重启db2数据库命令实例详解全文共4页,当前为第1页。Linux系统重启db2数据库命令实例详解全文共4页,当前为第1页。Linux系统重启db2数据库命令实例详解 Linux系统重启db2数据库命令实例详解全文共4页,当前为第1页。 Linux系统重启db2数据库命令实例详解全文共4页,当前为第1页。 Linux系统db2数据库启动关闭可以通过命令来实现。下面由店铺为大家整理了Linux系统重启db2数据库命令实例详解,希望对大家有帮助! Linux系统重启db2数据库命令实例详解 DB2重启数据库实例时,有时停止实例会失败,此时需要先确认没有应用链接数据库,然后再关闭数据库实例,并重新启动。 1.查看是否有活动的链接 命令:db2 list applications for db db_name 发现有两个活动链接,此时需要将链接进行关闭。 2.关闭连接 命令:db2 force application all 3.再执行一次步骤1中的命令,查看链接是否全部关闭。 4.执行停止实例命令 命令:db2stop 注意:命令中没有空格 5.执行实例启动命令 命令:db2start 6.如果此时,发现连接不了数据库,莫慌,需要激活目标数据库 首先查看是否有活跃的数据库 命令:db2 list active databases 如果没有,需要对目标数据库进行激活设置 命令:db2 activate database db_name 然后再次使用上一条命令,就可查看到当前已有活跃的数据库了,此时可进行连接并执行数据库操作。 在停止数据库实例失败时,也有一种直接迅速的方法可以停止实例,不过不建议使用,最好还是按照上述的步骤进行。 快速方法 执行命令:db2stop force Linux系统重启db2数据库命令实例详解全文共4页,当前为第2页。Linux系统重启db2数据库命令实例详解全文共4页,当前为第2页。Linux系统db2数据库常用命令 Linux系统重启db2数据库命令实例详解全文共4页,当前为第2页。 Linux系统重启db2数据库命令实例详解全文共4页,当前为第2页。 启动数据库启动db2服务:db2start 激活数据库实例:db2 activate database <db_name> 查看激活状态的数据库db2 list active databases 关闭数据库: 失效数据库实例:db2 deactivate database <db_name> 关闭数据库服务:db2stop 查看数据库db2 list db directory 查看数据库应用:db2 list applications 查看数据库应用和进程号:db2 list applications show detail 查看数据库表空间:db2pd -db <db_name> -tablespace 查看数据库配置:db2 get db cfg for <db_name> 连接数据库db2 connect to <db_name> db2 connect to <db_name> user[user_name] using [password] 断开数据库连接:db2 connect reset/db2 terminate 创建数据库db2 create db <db_name> 删除数据库db2 drop database <db_name> (如果不能删除,尝试断开激活的连接或者重启db2) 列出系统表:db2 list tables for system 列出所有用户表:db2 list tables 列出所有表:db2 list tables for all 列出特定用户表:db2 list tables for schema [user] 复制一张表:db2 create table t1 like t2 显示表结构:db2 describe table tablename 查询表:db2 "select * from table tablename where ..." 执行SQL脚本:db2 -tvf scripts.sql 查看错误代码信息:db2 ? 10054 停止激活的连接:db2 force application all;\db2 force Linux系统重启db2数据库命令实例详解全文共4页,当前为第3页。Linux系统重启db2数据库命令实例详解全文共4页,当前为第3页。application all;\db2 force application all;\db2stop Linux系统重启db2数据库命令实例详解全文共4页,当前为第3页。 Linux系统重启db2数据库命令实例详解全文共
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值