ablog

不器用で落着きのない技術者のメモ

2010-05-03から1日間の記事一覧

Oracle に接続だけ行う Java プログラム

こんなファイルがあって、 > dir /b build.bat ConnectionTester.bat ConnectionTester.class ConnectionTester.java ojdbc14.jarコンパイルして、 > build.bat実行すると、 > ConnectionTester.bat orcl db01こんな感じ。 ソースコードは以下の通り。 Conne…

ORA-02270: no matching unique or primary key for this column-list

現象 外部キーを作成しようとすると、ORA-02270 が発生する。 SQL> alter session set current_schema = "scott"; SQL> alter table foo add constraint foo_bar_fk1 foreign key (bar) references bar (id) on delete set null enable; error at line 1: or…

JDBC Thin Driver のデバッグ

id:takabow に教えてもらったのでメモメモ。 @yoheia JDBCのトレースはバージョンによって若干の差異がありますが、 http://otndnld.oracle.co.jp/document/products/oracle11g/111/doc_dvd/java.111/E05720-02/diagnose.htm http://twitter.com/takabow/sta…