Oracel FDW を使用して、PostgresからOracleのテーブルへアクセスを設定しています。
以前登録したAテーブルはアクセス可能なのですが、今回新しくBテーブルへのアクセスしたく
Aテーブルと同じ設定をしたつもりなのですが、BテーブルへのSelect文を実行すると以下のエラーが出力されます
ERROR: Oracle table "btable" for foreign table "btable" does not exist or does not allow read access DETAIL: ORA-00942: table or view does not exist HINT: Oracle table names are case sensitive (normally all uppercase). ********** エラー ********** ERROR: Oracle table "BTABLE" for foreign table "btable" does not exist or does not allow read access SQLステート:HV00R 詳細:ORA-00942: table or view does not exist ヒント:Oracle table names are case sensitive (normally all uppercase).
Postgresは9.4、Oracle12cです。
PGAdminでのPostgresの設定は以下のようになっています。
データベース └postgres ├Foreign Data Wrappers |└oracle_fdw | └外部サーバー | └remote_db | └ユーザマッピング | └postgres | CREATE USER MAPPING FOR postgres | SERVER remote_db OPTIONS (user 'user',password 'pass'); | └スキーマ └public └外部テーブル ├atable | CREATE FOREIGN TABLE atable (列定義) | SERVER remote_db OPTIONS (table 'ATABLE'); | ALTER FOREIGN TABLE atable OWNER TO postgres; | └btable CREATE FOREIGN TABLE btable (列定義) SERVER remote_db OPTIONS (table 'BTABLE'); ALTER FOREIGN TABLE btable OWNER TO postgres;
足りない設定や誤った設定、怪しいところなど、
分かる方がいらっしゃいましたら、教えてください。
よろしくお願い致します。
以上
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/05/16 12:02