Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 64E83476A74 for ; Thu, 19 Dec 2002 11:03:56 -0500 (EST) Received: from brasileiro.net (slxwy.dorms.usu.edu [129.123.227.56]) by postgresql.org (Postfix) with ESMTP id E79564767FD for ; Thu, 19 Dec 2002 11:03:55 -0500 (EST) Received: from roberto by brasileiro.net with local (Exim 3.35 #1 (Debian)) id 18P3B4-00084W-00; Thu, 19 Dec 2002 09:05:38 -0700 Date: Thu, 19 Dec 2002 09:05:38 -0700 From: Roberto Mello To: val@webtribe.net Cc: pgsql-sql@postgresql.org Subject: Re: Perform a Select on an Oracle Database from PG Message-ID: <20021219160538.GB30522@cc.usu.edu> References: <20021219153734.42ABB18332@cheetah.webtribe.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20021219153734.42ABB18332@cheetah.webtribe.net> User-Agent: Mutt/1.4i X-message-flag: Please consider using an e-mail program other than Outlook. It's insecure. X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/242 X-Sequence-Number: 10830 On Thu, Dec 19, 2002 at 03:37:00PM +0000, val@webtribe.net wrote: > How do I do a cross-database connection? > > I have data in a table in Oracle that I need to copy into a > Postgres table. It has been suggested to me that I attempt to > perform a cross-database select instead of exporting the info > from Oracle into a CSV file and then importing the CSV data into > Postres. > > Can someone please advise me on how to do this or point me to > some documentation? Write a program in some language that can access both databases. SELECT data from Oracle and INSERT into PostgreSQL. That assumes the database structure has already been migrated. You might want to look at conversion tools in the PostgreSQL contrib tree (see ftp site) and related articles at http://techdocs.postgresql.org/ -Roberto -- +----| Roberto Mello - http://www.brasileiro.net/ |------+ + Computer Science Graduate Student, Utah State University + + USU Free Software & GNU/Linux Club - http://fslc.usu.edu/ + All true wisdom is found in taglines.