如何檢查 SAP XI 的 JDBC adapter 發出的 SQL command


在透過 SAP XI 去讀寫 database 時, 可以直接使用 SQL command, 或者也可以使用 XML SQL, 無論使用哪種, 在 operation support 上, 都會碰到一個問題, 當在 communication channel 發生問題時, 我要怎麼知道 XI 真正送出去的 SQL command 是什麼.

設定方法很簡單, 如下:

  1. 在 communication channel 新增一個參數 logSQLStatement, 如下圖:
  2. 完成收工, 夠簡單了吧.

xi_jdbc

使用的方法如下:

  1. 打開 Runtime workbench
  2. 使用 communication channel monitor 查看各 channel 的狀況
  3. 檢查 audit log, 即可看到 SQL command

注意事項:

  1. XI 3.0 SP9 之後才有這個參數
  2. 很可惜的, 這仍然不是真正的 SQL command, 舉個例來說, SQL command 中, 文字的引號會被去掉, 因此直接把該 SQL command 給拿到 SQL Plus 是無法執行的

參考文件: Note 801367 (需要 OSS 帳號)


Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.
  • You can enable syntax highlighting of source code with the following tags: <code>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • You may link to Gallery2 items on this site using a special syntax.
  • Insert Flickr images: [flickr-photo:id=230452326,size=s] or [flickr-photoset:id=72157594262419167,size=m].
  • You may insert videos with [video:URL]

More information about formatting options