日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

查看DB2执行计划

發布時間:2025/3/20 编程问答 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 查看DB2执行计划 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

2019獨角獸企業重金招聘Python工程師標準>>>

[db2inst1@gzdbtsvr4 /home/db2inst1]#su - eser
eser's Password:?
$ cd /home/db2inst1/sqllib/bin
$ db2 conect to esnew
DB21034E ?The command was processed as an SQL statement because it was not a?
valid Command Line Processor command. ?During SQL processing it returned:
SQL1024N ?A database connection does not exist. ?SQLSTATE=08003
$ db2 connect to esnew

? ?Database Connection Information

?Database server ? ? ? ?= DB2/AIX64 10.5.8
?SQL authorization ID ? = ESER
?Local database alias ? = ESNEW

$ db2 set current explain mode explain
DB20000I ?The SQL command completed successfully.
$ db2 "select * from sysibm.sysdummy1"
SQL0217W ?The statement was not executed as only Explain information requests?
are being processed. ?SQLSTATE=01604
$ db2exfmt -d esnew -g TIC -w -l -s % -n % -o db2exmt.out
DB2 Universal Database Version 10.5, 5622-044 (c) Copyright IBM Corp. 1991, 2012
Licensed Material - Program Property of IBM
IBM DATABASE 2 Explain Table Format Tool

Connecting to the Database.
Connect to Database Successful.
Enter up to 26 character Explain timestamp (Default -1) ==>?
Enter section number (0 for all, Default 0) ==>?
Unable to open output file.
$ ls ~/jupiter/
ls: 0653-341 The file /home/eser/jupiter/ does not exist.
$ ls ~/
create_pro.sql ?tuning
$ db2exfmt -d esnew -g TIC -w -l -s % -n % -o ~/db2exmt.out
DB2 Universal Database Version 10.5, 5622-044 (c) Copyright IBM Corp. 1991, 2012
Licensed Material - Program Property of IBM
IBM DATABASE 2 Explain Table Format Tool
Connecting to the Database.
Connect to Database Successful.
Enter up to 26 character Explain timestamp (Default -1) ==>?
Enter section number (0 for all, Default 0) ==>?
Output is in /home/eser/db2exmt.out.
Executing Connect Reset -- Connect Reset was Successful.
$ more /home/eser/db2exmt.out

=======================================================
1.db2 conect to esnew
2.db2 set current explain mode explain
3.db2 "sql_statment"
4.db2exfmt -d esnew -g TIC -w -l -s % -n % -o ~/db2exmt.out
5. more /home/eser/db2exmt.out

轉載于:https://my.oschina.net/u/2277088/blog/3019113

總結

以上是生活随笔為你收集整理的查看DB2执行计划的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。