久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <i id='3aw9Q'><tr id='3aw9Q'><dt id='3aw9Q'><q id='3aw9Q'><span id='3aw9Q'><b id='3aw9Q'><form id='3aw9Q'><ins id='3aw9Q'></ins><ul id='3aw9Q'></ul><sub id='3aw9Q'></sub></form><legend id='3aw9Q'></legend><bdo id='3aw9Q'><pre id='3aw9Q'><center id='3aw9Q'></center></pre></bdo></b><th id='3aw9Q'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3aw9Q'><tfoot id='3aw9Q'></tfoot><dl id='3aw9Q'><fieldset id='3aw9Q'></fieldset></dl></div>

    <small id='3aw9Q'></small><noframes id='3aw9Q'>

    <tfoot id='3aw9Q'></tfoot>

    • <bdo id='3aw9Q'></bdo><ul id='3aw9Q'></ul>

      <legend id='3aw9Q'><style id='3aw9Q'><dir id='3aw9Q'><q id='3aw9Q'></q></dir></style></legend>

      1. 為機器登錄用戶以外的特定用戶運行創建/刪除

        Run create/drop DB2 database commands for a specific user other than machine logged-in user(為機器登錄用戶以外的特定用戶運行創建/刪除 DB2 數據庫命令)
        • <small id='4eF2y'></small><noframes id='4eF2y'>

          <tfoot id='4eF2y'></tfoot>
            • <bdo id='4eF2y'></bdo><ul id='4eF2y'></ul>

                <i id='4eF2y'><tr id='4eF2y'><dt id='4eF2y'><q id='4eF2y'><span id='4eF2y'><b id='4eF2y'><form id='4eF2y'><ins id='4eF2y'></ins><ul id='4eF2y'></ul><sub id='4eF2y'></sub></form><legend id='4eF2y'></legend><bdo id='4eF2y'><pre id='4eF2y'><center id='4eF2y'></center></pre></bdo></b><th id='4eF2y'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4eF2y'><tfoot id='4eF2y'></tfoot><dl id='4eF2y'><fieldset id='4eF2y'></fieldset></dl></div>
                  <tbody id='4eF2y'></tbody>
                1. <legend id='4eF2y'><style id='4eF2y'><dir id='4eF2y'><q id='4eF2y'></q></dir></style></legend>

                  本文介紹了為機器登錄用戶以外的特定用戶運行創建/刪除 DB2 數據庫命令的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  db2 CREATE DATABASE XYZ
                  
                  db2 DROP   DATABASE XYZ
                  

                  這些 db2 命令不支持在 db2cmd/db2clp 上為機器登錄用戶以外的特定用戶執行時指定用戶名/密碼.因此導致異常

                  These db2 commands which doesn't provide support to specify username/password while executing on db2cmd/db2clp for a specific user other than machine logged-in user. Hence result a exception

                  SQL1092N 請求的命令或操作失敗,因為用戶標識沒有執行請求的命令或操作的權限."

                  "SQL1092N The requested command or operation failed because the user ID does not have the authority to perform the requested command or operation."

                  當通過選擇以不同用戶身份運行"來運行相同的命令時,它可以正常工作.

                  And when the same commands run as by choosing 'Run as different user', it works properly.

                  1. 但我需要使用 Java 代碼中的相同機制,但不知道如何使用.是否可以以不同的用戶表單 Java 代碼打開已安裝的 db2 的 clp??
                  2. 是否可以在創建/刪除命令中關聯用戶名/密碼?

                  推薦答案

                  在 CLP 中,您可以首先使用所需的任何用戶 ID ATTACH 到實例,然后發出 CREATE DATABASE 命令.

                  From the CLP you can first ATTACH to the instance using whatever user ID you need, and then issue the CREATE DATABASE command.

                  如果實例在您的本地機器上運行,您只需像這樣附加:

                  If the instance is running on your local machine, you just attach like this:

                  $ db2 attach to db2inst1 user db2inst1
                  Enter current password for db2inst1: 
                  
                     Instance Attachment Information
                  
                   Instance server        = DB2/LINUXX8664 9.7.5
                   Authorization ID       = DB2INST1
                   Local instance alias   = DB2INST1
                  

                  如果實例在遠程服務器上運行,則附加到您在數據庫目錄中定義的節點名稱":

                  If the instance is running on a remote server, you attach to the "node name" that you have defined in your database catalog:

                  $ db2 list db directory
                  
                   System Database Directory
                  
                   Number of entries in the directory = 1
                  
                  Database 1 entry:
                  
                   Database alias                       = SAMPLE
                   Database name                        = SAMPLE
                   Node name                            = SRV01
                   Database release level               = d.00
                   Comment                              =
                   Directory entry type                 = Remote
                   Catalog database partition number    = -1
                   Alternate server hostname            =
                   Alternate server port number         =
                  

                  在本例中,list database directory 的輸出中顯示的節點名稱為 SRV01,因此您可以使用以下命令進行附加:db2 attach to srv01 user <用戶名>.

                  In this example, the Node Name shown in the output from list database directory is SRV01, so you would attach using: db2 attach to srv01 user <username>.

                  這篇關于為機器登錄用戶以外的特定用戶運行創建/刪除 DB2 數據庫命令的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數轉換為整數?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)
                  • <bdo id='EXGpB'></bdo><ul id='EXGpB'></ul>
                    <i id='EXGpB'><tr id='EXGpB'><dt id='EXGpB'><q id='EXGpB'><span id='EXGpB'><b id='EXGpB'><form id='EXGpB'><ins id='EXGpB'></ins><ul id='EXGpB'></ul><sub id='EXGpB'></sub></form><legend id='EXGpB'></legend><bdo id='EXGpB'><pre id='EXGpB'><center id='EXGpB'></center></pre></bdo></b><th id='EXGpB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='EXGpB'><tfoot id='EXGpB'></tfoot><dl id='EXGpB'><fieldset id='EXGpB'></fieldset></dl></div>

                    1. <tfoot id='EXGpB'></tfoot>

                      <small id='EXGpB'></small><noframes id='EXGpB'>

                          <tbody id='EXGpB'></tbody>

                          <legend id='EXGpB'><style id='EXGpB'><dir id='EXGpB'><q id='EXGpB'></q></dir></style></legend>
                            主站蜘蛛池模板: 国产精品777一区二区 | 美女亚洲一区 | 久久三级影院 | 一区二区精品视频 | 国产精品一区二区视频 | 国产精品毛片在线 | 免费在线一区二区 | 99国产精品久久久久 | 紧缚调教一区二区三区视频 | 黄色亚洲 | 狠狠亚洲 | 国产精品三级久久久久久电影 | 成人av色 | 本地毛片 | 亚洲最新在线视频 | 成人在线观 | 亚洲视频在线观看 | 欧美久久一级 | 福利视频一区二区三区 | 一本岛道一二三不卡区 | 一区二区三区av | 亚洲在线日韩 | 成人av免费 | 国产精品欧美一区二区 | 久久综合入口 | 欧美91| 人人澡人人爱 | 国精产品一品二品国精在线观看 | 亚洲视频 欧美视频 | 懂色av一区二区三区在线播放 | 亚洲成人精品在线观看 | 成人免费一区二区三区牛牛 | 一级黄色片在线免费观看 | 精品一区二区三区免费毛片 | 久久久蜜臀国产一区二区 | 曰批视频在线观看 | 国产一区2区 | 亚洲手机视频在线 | 色网站视频 | 日韩在线观看中文字幕 | 国内精品在线视频 |