<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sixpetals</author_name>
  <author_url>https://blog.hatena.ne.jp/sixpetals/</author_url>
  <blog_title>狂言日誌</blog_title>
  <blog_url>https://sixpetals.hatenadiary.org/</blog_url>
  <categories>
    <anon>DB2</anon>
  </categories>
  <description>たんなるコマンドプロンプトではなくCLPを実行させて、その上でやる必要がある。OracleのSQL*Plusのイメージでいろいろやろうとすると感覚が違いますね。 テキストファイルからSQLステートメントを実行させたい場合はまずコネクトする。 db2 connect to ＤＢインスタンス名 である。ここでの認証は上に書いたように、windows認証が使われる。で、インスタンスに接続したら、 db2 -f ファイル名.sql とすればよいのだが、このままだとステートメントのデリミタが設定されていないので、-tをつけなくてはならないようだ。-vをつけるとエコーされる。なので、ここでは db2 -t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsixpetals.hatenadiary.org%2Fentry%2F20050627%2Fp2&quot; title=&quot;DB2で外部ファイルに書かれたSQLを実行させるには - 狂言日誌&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2005-06-27 00:00:01</published>
  <title>DB2で外部ファイルに書かれたSQLを実行させるには</title>
  <type>rich</type>
  <url>https://sixpetals.hatenadiary.org/entry/20050627/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
