- 1、本文档共12页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
linux下启动db2数据库命令(国外英文资料)
linux下启动db2数据库命令(国外英文资料)DB2 related database commandsStart the database instanceTo start the instance of the database, switch to the db2inst1 user (note: db2inst1 user is an instance of the current database), and then execute the instance of db2start to start the database[root @localhost instance] # su-db2inst1[db2inst1 @localhost ~] $db2startSQL1063N DB2START processing was successful.[db2inst1 @localhost ~] $The shutdown of the database instanceStart by forcing all the applications on the instance under db2inst1 user and then close the database instance[db2inst1 @localhost ~] $db2 force application allDB20000I The FORCE APPLICATION command completed successfully.The DB21024I This command is asynchronous and may not be effective immediately.[db2inst1 @localhost ~] $db2stopSQL1064N DB2STOP processing was successful.[db2inst1 @localhost ~] $Forced to stop[db2inst1 @localhost DB2] $db2stop forceSQL1064N DB2STOP processing was successful.[db2inst1 @ localhost DB2] $Display all instances[db2inst1 @localhost ~] $db2ilistdb2inst1[db2inst1 @localhost ~] $Show the current instance[db2inst1 @localhost ~] $db2 get instanceThe current database manager instance is: db2inst1[db2inst1 @localhost ~] $Remove an instance (note: switch to root user rights)[root @ localhost ~] # CD/opt/IBM/db2 / V9.7 / instance[root @localhost instance] # PWD/ opt/IBM/db2 / V9.7 / instance[root @ localhost instance] #. / db2idrop db2inst1DBI1070I Program db2idrop completed successfully.[root @ localhost instance] #List the databases in the current instance[root @localhost instance] # su-db2inst1[db2inst1 @localhost ~] $db2 list db directorySQL1031N The database directory cannot be found on The indicated file system.SQLSTATE = 58031,[db2inst1 @localhost ~] $Note: the above information indicates that there is no database in the instanceCreate a database[root @localhost instance] # su-db2inst1[db2inst1 @localhost ~] $db2 create database testSQL1032N No start database manager command was issued. SQLSTATE
文档评论(0)