clp常見命令

來源:互聯網
上載者:User

方括弧中的參數是選擇性參數,角括弧中的內容表示變數。例如,CONNECT 的文法是:

connect to <dbname>

[ [user <userid>] using <pwd>]

這意味著,通過 CONNECT 命令以 user1 身份使用密碼 mypass 與資料庫 sample 串連可以有下列形式:

Connect to sample

Connect to sample user user1

Connect to sample user user1 using mypass

根據命令的範圍來組織所有命令。對於任何 CLP 命令,您都可以輸入加上首碼問號(“?”)的關鍵字,以查看其完整的文法。

執行個體

CLP 命令 描述

db2start 啟動資料庫管理員執行個體。

db2stop 停止資料庫管理員執行個體。

get dbm cfg 返回資料庫管理員配置設定。

get dbm cfg show detail 顯示資料庫管理員參數的當前值和延遲值(從 V8 起)。

1update dbm cfg using <p> <v> 將資料庫管理員配置參數 <p> 更新為值 <v>。

get instance 返回 DB2INSTANCE 環境變數的值。

list active databases 列出活動的資料庫和串連數。

list application [show detail] 返回關於當前連線應用程式程式的資訊。

force application (h1 [,h2,..,hn]) 根據控制代碼號與特定應用程式中斷連線。

force application all 斷開所有應用程式與資料庫的串連。

attach to <node> user <userid> using <pwd> 以使用者 <userid> 通過使用密碼 <pwd> 與標識為 <node> 的遠程執行個體串連。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.