<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>tdtshのブログ &#187; oracle</title>
	<atom:link href="http://www.tdtsh.com/blog/archives/category/oracle/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tdtsh.com/blog</link>
	<description>java とか ソーシャルウェブとか Google App Engine とかの事の備忘録</description>
	<lastBuildDate>Thu, 29 Jul 2010 06:39:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.tdtsh.com/blog/archives/category/oracle/feed" />
		<item>
		<title>Access 2010 では DBエンジンに SQL Azure が使える様になる</title>
		<link>http://www.tdtsh.com/blog/archives/679</link>
		<comments>http://www.tdtsh.com/blog/archives/679#comments</comments>
		<pubDate>Tue, 15 Jun 2010 02:03:26 +0000</pubDate>
		<dc:creator>tdtsh</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sqlserver]]></category>
		<category><![CDATA[クラウド]]></category>

		<guid isPermaLink="false">http://www.tdtsh.com/blog/?p=679</guid>
		<description><![CDATA[
マイクロソフトのAccess 2010では、ODBCを通じてクラウド上のリレーショナルデータベースであるSQL Azureに直接接続可能だと、MS Officeチームのブログのエントリ「Access 2010 and  [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>
マイクロソフトのAccess 2010では、ODBCを通じてクラウド上のリレーショナルデータベースであるSQL Azureに直接接続可能だと、MS Officeチームのブログのエントリ「Access 2010 and SQL Azure」で紹介されています。<br />
Access 2010 and SQL Azure &#8211; Microsoft Access &#8211; Site Home &#8211; MSDN Blogs</p>
<p>この機能を使えば、社内でSQL Serverの運用をすることなく、Access 2010から大規模なリレーショナルデータベースの機能を利用することができるようになります。」
</p></blockquote>
<p><a href="http://www.publickey1.jp/blog/10/access_2010odbcsql_azure.html" onclick="javascript:urchinTracker ('/outbound/article/www.publickey1.jp');">Access 2010からODBCでクラウドのSQL Azureに接続可能。そのメリットは？</a></p>
<p>JetエンジンのままAccessを多人数で使うのは、排他制御の面でも、性能の面でも、あまり宜しくないんですけど、現場によっては結構重宝されていますよね。</p>
<p>自動でシュリンクしないからファイルがどんどん肥大化するし、しょっちゅう壊れるし。<br />
せめてMSDE、今で言うとSQL Server Express Editionですかね、を使って欲しい訳です。</p>
<blockquote><p>
データベース管理者にとっては、SQL Serverのデータメンテナンスなど管理業務をAccessから行うことでずっと便利になるという指摘もいただきました。たしかに、それもぐっと楽になりそうです。
</p></blockquote>
<p>ODBCドライバさえあれば、OracleでもDB2でもデータ管理は出来ますね。<br />
SQL大好きな私にとってAccessのクエリを使うのは苦痛なんですけど、エンドユーザにはGUIで操作できるAccessは結構使いやすいみたいですね。</p>
<p>RDMBSはコモディティ化した感があります。<br />
今後のデータストアのプラットフォームは、完全にクラウド上での覇権争いになってきました。<br />
KVSで無くRDBMSじゃ無いと駄目な案件を、SQL Azure と VM Forceが受け皿になっていきそうな予感。</p>
<p>どうするOracle陣営。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tdtsh.com/blog/archives/679/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.tdtsh.com/blog/archives/679" />
	</item>
		<item>
		<title>Oracleで ORA-01745: ホスト/バインド変数名が無効です。</title>
		<link>http://www.tdtsh.com/blog/archives/392</link>
		<comments>http://www.tdtsh.com/blog/archives/392#comments</comments>
		<pubDate>Mon, 28 Sep 2009 11:27:17 +0000</pubDate>
		<dc:creator>tdtsh</dc:creator>
				<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.tdtsh.com/blog/?p=392</guid>
		<description><![CDATA[たまにやるので、メモ。
ORA-01745: ホスト/バインド変数名が無効です。
なんて言われて、INSERTが失敗する。
何のことはない、VALUES句の後で、カンマを入れ忘れてた。
こんな感じ。

	 VALUES  [...]]]></description>
			<content:encoded><![CDATA[<p>たまにやるので、メモ。</p>
<p>ORA-01745: ホスト/バインド変数名が無効です。</p>
<p>なんて言われて、INSERTが失敗する。</p>
<p>何のことはない、VALUES句の後で、カンマを入れ忘れてた。</p>
<p>こんな感じ。</p>
<pre>
	 VALUES (?,?,? ?)
</pre>
<p>正しくは、こう。</p>
<pre>
	 VALUES (?,?,?,?)
</pre>
<p>実際は、バインド変数の数はもっと沢山あって、改行とか入っているから<br />
間違えに気づくのがちょっと遅かった。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tdtsh.com/blog/archives/392/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.tdtsh.com/blog/archives/392" />
	</item>
		<item>
		<title>java.sql.SQLException: 列索引が無効です。</title>
		<link>http://www.tdtsh.com/blog/archives/343</link>
		<comments>http://www.tdtsh.com/blog/archives/343#comments</comments>
		<pubDate>Fri, 04 Sep 2009 11:07:13 +0000</pubDate>
		<dc:creator>tdtsh</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.tdtsh.com/blog/?p=343</guid>
		<description><![CDATA[Spring Framework の JdbcTemplate を使ってて、こんなんでました。

	java.sql.SQLException: 列索引が無効です。

[commons-dbutils] エラー：列索引が [...]]]></description>
			<content:encoded><![CDATA[<p>Spring Framework の JdbcTemplate を使ってて、こんなんでました。</p>
<pre>
	java.sql.SQLException: 列索引が無効です。
</pre>
<p><a href="http://blogs.yahoo.co.jp/e_coc_e/4957344.html" onclick="javascript:urchinTracker ('/outbound/article/blogs.yahoo.co.jp');">[commons-dbutils] エラー：列索引が無効です。 &#8211; メモ！メモ！ &#8211; Yahoo!ブログ</a><br />
によると、</p>
<pre>
	PreparedStatementのプレースホルダの数と、設定しているパラメータの数が合っていない。
</pre>
<p>らしい。</p>
<p>が、数は有っている。</p>
<p>散々悩んだ挙句、ResultSetのgetXX の引数が、途中で間違ってた。<br />
こんな感じ。</p>
<pre>
	bean.setValue1(rs.getString(1));
	bean.setValue2(rs.getString(2));
	bean.setValue8(rs.getString(8));
	bean.setValue4(rs.getString(4));
	bean.setValue5(rs.getString(5));
	bean.setValue6(rs.getString(6));
</pre>
<p>実際は、列の数が200以上ある様なケースだったので、なかなか判らなかったのだ。</p>
<p>自戒の意味を込めて、書いておこう。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tdtsh.com/blog/archives/343/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.tdtsh.com/blog/archives/343" />
	</item>
		<item>
		<title>Oracleで、exp、impでデータ移動、複製</title>
		<link>http://www.tdtsh.com/blog/archives/181</link>
		<comments>http://www.tdtsh.com/blog/archives/181#comments</comments>
		<pubDate>Wed, 22 Jul 2009 04:06:49 +0000</pubDate>
		<dc:creator>tdtsh</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.tdtsh.com/blog/?p=181</guid>
		<description><![CDATA[一連のRDBMSインスタンス間のデータ移動関係シリーズ

PostgreSQLのCOPYコマンド
LOADでCSVファイルをMySQLデータベースにインポートする
pgdumpでPostgreSQLサーバ間でデータ移動、 [...]]]></description>
			<content:encoded><![CDATA[<p>一連のRDBMSインスタンス間のデータ移動関係シリーズ</p>
<ul>
<li><a href="http://www.tdtsh.com/blog/archives/158" >PostgreSQLのCOPYコマンド</a></li>
<li><a href="http://www.tdtsh.com/blog/archives/166" >LOADでCSVファイルをMySQLデータベースにインポートする</a></li>
<li><a href="http://www.tdtsh.com/blog/archives/170" >pgdumpでPostgreSQLサーバ間でデータ移動、複製</a></li>
</ul>
<p>今回はOracle版メモ。</p>
<h4>移行元サーバからデータをエクスポート</h4>
<pre>
exp "db_username/db_password@from_server file=dump.dmp tables=(table_a, table_b)"
</pre>
<h4>移行先サーバへデータをインポート</h4>
<pre>
imp "db_username/db_password@distination file=dump.dmp tables=(table_a, table_b)"
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tdtsh.com/blog/archives/181/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.tdtsh.com/blog/archives/181" />
	</item>
		<item>
		<title>Oracleで制御ファイルの自動バックアップ</title>
		<link>http://www.tdtsh.com/blog/archives/52</link>
		<comments>http://www.tdtsh.com/blog/archives/52#comments</comments>
		<pubDate>Tue, 23 Jun 2009 10:08:36 +0000</pubDate>
		<dc:creator>tdtsh</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.tdtsh.com/blog/?p=52</guid>
		<description><![CDATA[


 制御ファイルの自動バックアップの有効化


rman target sys/pass@hoge
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE [...]]]></description>
			<content:encoded><![CDATA[<div class="section">
<ul>
<ul>
<li> 制御ファイルの自動バックアップの有効化</li>
</ul>
</ul>
<p>rman target sys/pass@hoge</p>
<p>CONFIGURE CONTROLFILE AUTOBACKUP ON;</p>
<p>CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO &#8216;/path_to_backup/ctl_%F&#8217;</p>
<p></p>
<ul>
<ul>
<li> 自動バックアップからの制御ファイルのリストア</li>
</ul>
</ul>
<p>set dbid = 682122420;</p>
<p>set CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO &#8216;/path_to_backup/ctl_%F&#8217;</p>
<p>restore controlfile from autobackup;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.tdtsh.com/blog/archives/52/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.tdtsh.com/blog/archives/52" />
	</item>
		<item>
		<title>Oracleの表領域を移動 備忘録</title>
		<link>http://www.tdtsh.com/blog/archives/53</link>
		<comments>http://www.tdtsh.com/blog/archives/53#comments</comments>
		<pubDate>Tue, 23 Jun 2009 08:01:41 +0000</pubDate>
		<dc:creator>tdtsh</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.tdtsh.com/blog/?p=53</guid>
		<description><![CDATA[
すぐに忘れるのでメモ。
Oracle 9iで実行
ALTER TABLESPACE USERS offline;
ここで表領域のデータファイルをコピーまたは移動する
mv /PATH_TO_CURRENT/USERS0 [...]]]></description>
			<content:encoded><![CDATA[<div class="section">
<p>すぐに忘れるのでメモ。</p>
<p>Oracle 9iで実行</p>
<p>ALTER TABLESPACE USERS offline;</p>
<p>ここで表領域のデータファイルをコピーまたは移動する</p>
<p>mv /PATH_TO_CURRENT/USERS01.DBF /PATH_TO_MOVE/USERS01.DBF</p>
<p>ALTER TABLESPACE USERS RENAME DATAFILE &#8216;/PATH_TO_CURRENT/USERS01.DBF&#8217; to &#8216;/PATH_TO_MOVE/USERS01.DBF&#8217;;</p>
<p>ALTER TABLESPACE USERS online;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.tdtsh.com/blog/archives/53/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.tdtsh.com/blog/archives/53" />
	</item>
		<item>
		<title>Oracleの表領域をオフライン/オンライン 備忘録</title>
		<link>http://www.tdtsh.com/blog/archives/54</link>
		<comments>http://www.tdtsh.com/blog/archives/54#comments</comments>
		<pubDate>Tue, 23 Jun 2009 08:01:00 +0000</pubDate>
		<dc:creator>tdtsh</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.tdtsh.com/blog/?p=54</guid>
		<description><![CDATA[
すぐに忘れるのでメモ。
Oracle 9iで実行
ALTER TABLESPACE USERS read only;
ALTER TABLESPACE USERS read write;

]]></description>
			<content:encoded><![CDATA[<div class="section">
<p>すぐに忘れるのでメモ。</p>
<p>Oracle 9iで実行</p>
<p>ALTER TABLESPACE USERS read only;</p>
<p>ALTER TABLESPACE USERS read write;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.tdtsh.com/blog/archives/54/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.tdtsh.com/blog/archives/54" />
	</item>
		<item>
		<title>OracleのREDOログを移動する備忘録</title>
		<link>http://www.tdtsh.com/blog/archives/55</link>
		<comments>http://www.tdtsh.com/blog/archives/55#comments</comments>
		<pubDate>Tue, 23 Jun 2009 07:57:59 +0000</pubDate>
		<dc:creator>tdtsh</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.tdtsh.com/blog/?p=55</guid>
		<description><![CDATA[
すぐに忘れるのでメモ。
Oracle 9iで実行。
移動先にファイルが存在したら失敗するので、あるなら削除する。
del /PATH_TO_MOVE/NEWREDO01.LOG
del /PATH_TO_MOVE/NE [...]]]></description>
			<content:encoded><![CDATA[<div class="section">
<p>すぐに忘れるのでメモ。</p>
<p>Oracle 9iで実行。</p>
<p>移動先にファイルが存在したら失敗するので、あるなら削除する。</p>
<p>del /PATH_TO_MOVE/NEWREDO01.LOG</p>
<p>del /PATH_TO_MOVE/NEWREDO02.LOG</p>
<p>del /PATH_TO_MOVE/NEWREDO03.LOG</p>
<p>sqlplus &#8220;sys/password@hogehoge as sysdba&#8221;</p>
<p>ALTER DATABASE ADD LOGFILE MEMBER &#8216;/PATH_TO_MOVE/NEWREDO01.LOG&#8217; TO GROUP 1;</p>
<p>ALTER DATABASE ADD LOGFILE MEMBER &#8216;/PATH_TO_MOVE/NEWREDO02.LOG&#8217; TO GROUP 2;</p>
<p>ALTER DATABASE ADD LOGFILE MEMBER &#8216;/PATH_TO_MOVE/NEWREDO03.LOG&#8217; TO GROUP 3;</p>
<p>ALTER SYSTEM SWITCH LOGFILE;</p>
<p>ALTER SYSTEM SWITCH LOGFILE;</p>
<p>ALTER SYSTEM SWITCH LOGFILE;</p>
<p>ALTER DATABASE DROP LOGFILE MEMBER &#8216;/PATH_TO_DELETE/OLDREDO01.LOG&#8217;;</p>
<p>ALTER DATABASE DROP LOGFILE MEMBER &#8216;/PATH_TO_DELETE/OLDREDO02.LOG&#8217;;</p>
<p>ALTER DATABASE DROP LOGFILE MEMBER &#8216;/PATH_TO_DELETE/OLDREDO03.LOG&#8217;;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.tdtsh.com/blog/archives/55/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.tdtsh.com/blog/archives/55" />
	</item>
	</channel>
</rss>
