pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hartrc <rhart2@mt.gov>
To: pgsql-general@postgresql.org
Subject: Re: oracle_fdw
Date: Fri, 19 Oct 2012 06:53:26 -0700 (PDT)
Message-ID: <1350654806509-5729005.post@n5.nabble.com> (raw)
In-Reply-To: <D960CB61B694CF459DCFB4B0128514C208902B3D@exadv11.host.magwien.gv.at>
References: <1350593603292-5728931.post@n5.nabble.com>
	<D960CB61B694CF459DCFB4B0128514C208902B3D@exadv11.host.magwien.gv.at>

Thanks Laurenz for your post...

Some more info
Oracle Server:Oracle 11g R2 (11.2.0.2.0)
Client: 11.2  
Was installed using Oracle Universal Installer

I don't really want to post the full environment of the postmaster but
basically I could see no entry in there for ORACLE_HOME or TNS_ADMIN, should
I?

LD_LIBRARY_PATH=mypostgreshomedirectory/lib

are there any others in particular of interest?

Here is my fdw, server and foreign table specs. I have 'myinstancename'
defined in tnsnames.ora which is in $ORACLE_HOME/NETWORK/ADMIN


CREATE FOREIGN DATA WRAPPER oracle_fdw
  HANDLER oracle_fdw_handler
  VALIDATOR oracle_fdw_validator;
ALTER FOREIGN DATA WRAPPER oracle_fdw
  OWNER TO postgres;

CREATE SERVER myinstancename
   FOREIGN DATA WRAPPER oracle_fdw
  OPTIONS (dbserver 'myinstancename');
ALTER SERVER myinstancename
  OWNER TO postgres;


CREATE FOREIGN TABLE public.wild_lek
   ("WL_ID" integer ,
    "WL_ALIAS" character varying(50) ,
    "WL_AHM_FL" character varying(1) ,
    "WL_INACTIVE_FL" character varying(1) ,
    "WL_SATELLITE_FL" character varying(20) ,
    "WL_LESPPSG_FL" character varying(1) )
   SERVER myinstancename
   OPTIONS (table 'MYUSER.MYTABLE');
ALTER FOREIGN TABLE 'MYUSER.MYTABLE'  OWNER TO postgres;


Rob



--
View this message in context: http://postgresql.1045698.n5.nabble.com/oracle-fdw-tp5728931p5729005.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.




view thread (7+ messages)  latest in thread

Message-ID: <1350654806509-5729005.post@n5.nabble.com>
Permalink:  ../1350654806509-5729005.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1350654806509-5729005.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-general@postgresql.org
  Cc: rhart2@mt.gov
  Subject: Re: oracle_fdw
  In-Reply-To: <1350654806509-5729005.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox