<?xml version="1.0" encoding="UTF-8" ?>
<feed xml:lang="ja" xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0">
  <title type="text">きまぐれブログ</title>
  <subtitle type="html"></subtitle>
  <link rel="self" type="application/atom+xml" href="http://yazy.blog.shinobi.jp/atom"/>
  <link rel="alternate" type="text/html" href="http://yazy.blog.shinobi.jp/"/>
  <updated>2006-11-19T13:32:14+09:00</updated>
  <author><name>やじぃ</name></author>
  <generator uri="//www.ninja.co.jp/blog/" version="0.9">忍者ブログ</generator>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />
  <entry>
    <id>yazy.blog.shinobi.jp://entry/171</id>
    <link rel="alternate" type="text/html" href="http://yazy.blog.shinobi.jp/%E4%BB%95%E4%BA%8B%E3%83%A1%E3%83%A2/oracle%20%E5%AE%9F%E8%A1%8C%E6%99%82%E9%96%93%E8%A8%88%E6%B8%AC" />
    <published>2010-02-12T11:09:54+09:00</published> 
    <updated>2010-02-12T11:09:54+09:00</updated> 
    <category term="仕事メモ" label="仕事メモ" />
    <title>Oracle 実行時間計測</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[SQL*PLUSにて<br />
<br />
実行結果を画面に出力しないで、SQLの実行時間を計測したいときはコレ<br />
<br />
set autotrace traceonly<br />
set timing on<br />
<br />
<blockquote>SQL> select * from dual;<br />
<br />
経過: 00:00:00.10</blockquote><br />
<br />
]]> 
    </content>
    <author>
            <name>やじぃ</name>
        </author>
  </entry>
  <entry>
    <id>yazy.blog.shinobi.jp://entry/170</id>
    <link rel="alternate" type="text/html" href="http://yazy.blog.shinobi.jp/%E4%BB%95%E4%BA%8B%E3%83%A1%E3%83%A2/oracle%20pl-sql%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%20%E7%B5%B1%E8%A8%88%E6%83%85%E5%A0%B1" />
    <published>2009-02-05T09:35:57+09:00</published> 
    <updated>2009-02-05T09:35:57+09:00</updated> 
    <category term="仕事メモ" label="仕事メモ" />
    <title>Oracle PL/SQLパッケージ 統計情報</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[◇表と列（および索引）の統計情報を収集<br />
<br />
<div style="margin-left: 40px;">DBMS_STATS.GATHER_TABLE_STATS (<br />
&nbsp;&nbsp;&nbsp; ownname VARCHAR2,<br />
&nbsp;&nbsp;&nbsp; tabname VARCHAR2,<br />
&nbsp;&nbsp;&nbsp; partname VARCHAR2 DEFAULT NULL,<br />
&nbsp;&nbsp;&nbsp; estimate_percent NUMBER DEFAULT to_estimate_percent_type<br />
&nbsp;&nbsp;&nbsp; (get_param('ESTIMATE_PERCENT')),<br />
&nbsp;&nbsp;&nbsp; block_sample BOOLEAN DEFAULT FALSE,<br />
&nbsp;&nbsp;&nbsp; method_opt VARCHAR2 DEFAULT get_param('METHOD_OPT'),<br />
&nbsp;&nbsp;&nbsp; degree NUMBER DEFAULT to_degree_type(get_param('DEGREE')),<br />
&nbsp;&nbsp;&nbsp; granularity VARCHAR2 DEFAULT 'AUTO',<br />
&nbsp;&nbsp;&nbsp; cascade BOOLEAN DEFAULT to_cascade_type(get_param('CASCADE')),<br />
&nbsp;&nbsp;&nbsp; stattab VARCHAR2 DEFAULT NULL,<br />
&nbsp;&nbsp;&nbsp; statid VARCHAR2 DEFAULT NULL,<br />
&nbsp;&nbsp;&nbsp; statown VARCHAR2 DEFAULT NULL,<br />
&nbsp;&nbsp;&nbsp; no_invalidate BOOLEAN DEFAULT to_no_invalidate_type (<br />
&nbsp;&nbsp;&nbsp; get_param('NO_INVALIDATE')));<br />
&nbsp;</div>
<div>基本は</div>
<div style="margin-left: 40px;">DBMS_STATS.GATHER_TABLE_STATS(ownname,tabname);</div>
<ul>
    <li>ownname 分析する表のスキーマ。</li>
    <li>tabname 表の名前。</li>
</ul>
でOK#%V:231%#<br />
<br />
◇統計収集の確認<br />
<br />
<div style="margin-left: 40px;">SELECT TABLE_NAME NAME, LAST_ANALYZED<br />
&nbsp; FROM USER_TABLES<br />
WHERE TABLE_NAME = tabname;</div>]]> 
    </content>
    <author>
            <name>やじぃ</name>
        </author>
  </entry>
  <entry>
    <id>yazy.blog.shinobi.jp://entry/169</id>
    <link rel="alternate" type="text/html" href="http://yazy.blog.shinobi.jp/%E4%BB%95%E4%BA%8B%E3%83%A1%E3%83%A2/oracle%20sql-plus%20%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%82%BD%E3%83%BC%E3%82%B9%E3%81%AE%E5%87%BA%E5%8A%9B%EF%BC%88%E3%83%A6%E3%83%BC%E3%82%B6%E5%8D%98%E4%BD%8D%EF%BC%89" />
    <published>2009-01-30T10:35:06+09:00</published> 
    <updated>2009-01-30T10:35:06+09:00</updated> 
    <category term="仕事メモ" label="仕事メモ" />
    <title>Oracle SQL-PLUS パッケージソースの出力（ユーザ単位）</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[set head off<br />
set pagesize 0<br />
set long 10000000<br />
set linesize 1000<br />
set trims on<br />
BEGIN<br />
-- dbms_metadata.get_ddlユーティリティのオプション設定<br />
-- terminator（/）を付加する<br />
&nbsp; DBMS_METADATA.SET_TRANSFORM_PARAM(<br />
&nbsp;&nbsp;&nbsp;&nbsp; TRANSFORM_HANDLE =&gt; DBMS_METADATA.SESSION_TRANSFORM<br />
&nbsp;&nbsp;&nbsp;&nbsp; , NAME =&gt; 'SQLTERMINATOR'<br />
&nbsp;&nbsp;&nbsp;&nbsp; , VALUE =&gt; TRUE);<br />
END;<br />
/<br />
spool all_package_source.txt<br />
select dbms_metadata.get_ddl(object_type, object_name) from all_objects<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; where owner = 'ユーザ名'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and object_type in ('PACKAGE','PACKAGE_BODY');<br />
spool off<br type="_moz" />]]> 
    </content>
    <author>
            <name>やじぃ</name>
        </author>
  </entry>
  <entry>
    <id>yazy.blog.shinobi.jp://entry/168</id>
    <link rel="alternate" type="text/html" href="http://yazy.blog.shinobi.jp/%E4%BB%95%E4%BA%8B%E3%83%A1%E3%83%A2/oracle%20sql-plus%20%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%82%BD%E3%83%BC%E3%82%B9%E3%81%AE%E5%87%BA%E5%8A%9B" />
    <published>2009-01-30T10:33:44+09:00</published> 
    <updated>2009-01-30T10:33:44+09:00</updated> 
    <category term="仕事メモ" label="仕事メモ" />
    <title>Oracle SQL-PLUS パッケージソースの出力</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[set head off<br />
set pagesize 0<br />
set long 10000000<br />
set linesize 1000<br />
set trims on<br />
spool all_package_source.txt<br />
select text<br />
from&nbsp;&nbsp; user_source<br />
where&nbsp; name='パッケージ名'<br />
and&nbsp;&nbsp;&nbsp; type='PACKAGE BODY'<br />
order by line;<br />
spool off]]> 
    </content>
    <author>
            <name>やじぃ</name>
        </author>
  </entry>
  <entry>
    <id>yazy.blog.shinobi.jp://entry/167</id>
    <link rel="alternate" type="text/html" href="http://yazy.blog.shinobi.jp/%E6%97%A5%E8%A8%98/get%E3%81%A0%E3%81%9C%EF%BD%9E%EF%BC%81" />
    <published>2007-12-06T21:14:32+09:00</published> 
    <updated>2007-12-06T21:14:32+09:00</updated> 
    <category term="日記" label="日記" />
    <title>Getだぜ～！</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<br />
って言ってる場合じゃないんですが<br />
<span style="font-size:150%">インフルエンザ Getだぜ～！</span><br />
<br />
<br /><a href="http://yazy.blog.shinobi.jp/%E6%97%A5%E8%A8%98/get%E3%81%A0%E3%81%9C%EF%BD%9E%EF%BC%81" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>やじぃ</name>
        </author>
  </entry>
  <entry>
    <id>yazy.blog.shinobi.jp://entry/166</id>
    <link rel="alternate" type="text/html" href="http://yazy.blog.shinobi.jp/%E4%BB%95%E4%BA%8B%E3%83%A1%E3%83%A2/%E5%84%AA%E7%A7%80%E3%81%AA%E7%A4%BE%E5%93%A1%E3%82%92%E8%BE%9E%E3%82%81%E3%81%95%E3%81%9B%E3%81%AA%E3%81%84%E6%96%B9%E6%B3%95" />
    <published>2007-11-29T23:29:39+09:00</published> 
    <updated>2007-11-29T23:29:39+09:00</updated> 
    <category term="仕事メモ" label="仕事メモ" />
    <title>優秀な社員を辞めさせない方法</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<a href="http://www.geekpage.jp/blog/?id=2007/11/28" target="_blank"><br />
優秀な社員を辞めさせない方法</a><br />
<br />
いくつかなるほど～と思ったので　___φ(￣^￣ )メモメモ<br />
<br />
<br /><a href="http://yazy.blog.shinobi.jp/%E4%BB%95%E4%BA%8B%E3%83%A1%E3%83%A2/%E5%84%AA%E7%A7%80%E3%81%AA%E7%A4%BE%E5%93%A1%E3%82%92%E8%BE%9E%E3%82%81%E3%81%95%E3%81%9B%E3%81%AA%E3%81%84%E6%96%B9%E6%B3%95" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>やじぃ</name>
        </author>
  </entry>
  <entry>
    <id>yazy.blog.shinobi.jp://entry/165</id>
    <link rel="alternate" type="text/html" href="http://yazy.blog.shinobi.jp/%E3%83%84%E3%83%BC%E3%83%AB/iq%E3%83%86%E3%82%B9%E3%83%88" />
    <published>2007-11-26T13:16:36+09:00</published> 
    <updated>2007-11-26T13:16:36+09:00</updated> 
    <category term="ツール" label="ツール" />
    <title>IQテスト</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[お昼ごはん食べた後の残り20分間でダッシュでテスト#%V:88%#<br />
<br />
<a href="http://www.iqtest.dk/main.swf" target="_blank">IQ測定フラッシュ</a><br />
<br />
<br />
<br /><a href="http://yazy.blog.shinobi.jp/%E3%83%84%E3%83%BC%E3%83%AB/iq%E3%83%86%E3%82%B9%E3%83%88" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>やじぃ</name>
        </author>
  </entry>
  <entry>
    <id>yazy.blog.shinobi.jp://entry/164</id>
    <link rel="alternate" type="text/html" href="http://yazy.blog.shinobi.jp/%E4%BB%95%E4%BA%8B%E3%83%A1%E3%83%A2/oracle10g%20dbconsole%E3%81%8C%E8%B5%B7%E5%8B%95%E3%81%97%E3%81%AA%E3%81%84" />
    <published>2007-11-22T10:59:12+09:00</published> 
    <updated>2007-11-22T10:59:12+09:00</updated> 
    <category term="仕事メモ" label="仕事メモ" />
    <title>Oracle10g DBConsoleが起動しない</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<br />
なんか OracleDBConsole サービスが起動時にエラーなってしまう<br /><a href="http://yazy.blog.shinobi.jp/%E4%BB%95%E4%BA%8B%E3%83%A1%E3%83%A2/oracle10g%20dbconsole%E3%81%8C%E8%B5%B7%E5%8B%95%E3%81%97%E3%81%AA%E3%81%84" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>やじぃ</name>
        </author>
  </entry>
  <entry>
    <id>yazy.blog.shinobi.jp://entry/163</id>
    <link rel="alternate" type="text/html" href="http://yazy.blog.shinobi.jp/%E6%97%A5%E8%A8%98/%E3%81%93%E3%81%84%E3%81%A4%E3%81%AF%E3%83%BB%E3%83%BB%E3%83%BB" />
    <published>2007-10-18T23:35:52+09:00</published> 
    <updated>2007-10-18T23:35:52+09:00</updated> 
    <category term="日記" label="日記" />
    <title>こいつは・・・</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<br />
かっちょいい#%V:192%#<br />
<br />
<br />
#%V:29%#＿＿＿＿＿#%V:38%# ===3<br />
<br />
<br />
<br />
<br /><a href="http://yazy.blog.shinobi.jp/%E6%97%A5%E8%A8%98/%E3%81%93%E3%81%84%E3%81%A4%E3%81%AF%E3%83%BB%E3%83%BB%E3%83%BB" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>やじぃ</name>
        </author>
  </entry>
  <entry>
    <id>yazy.blog.shinobi.jp://entry/162</id>
    <link rel="alternate" type="text/html" href="http://yazy.blog.shinobi.jp/%E6%97%A5%E8%A8%98/%E3%81%93%E3%81%93%E3%81%AB%E3%81%84%E3%82%8B%E3%82%88" />
    <published>2007-10-16T23:16:20+09:00</published> 
    <updated>2007-10-16T23:16:20+09:00</updated> 
    <category term="日記" label="日記" />
    <title>ここにいるよ</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[<br />
FOXの嫁さんからオススメされました#%V:178%##%V:178%##%V:178%#<br />
<br />
なかなか(￣▽￣)b グッ!<br />
<br />
<br /><a href="http://yazy.blog.shinobi.jp/%E6%97%A5%E8%A8%98/%E3%81%93%E3%81%93%E3%81%AB%E3%81%84%E3%82%8B%E3%82%88" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>やじぃ</name>
        </author>
  </entry>
</feed>