dump to pg

Started by Nicolas Parisalmost 9 years ago12 messagesgeneral
Jump to latest
#1Nicolas Paris
niparisco@gmail.com

Hi,

I have dumps from oracle and microsoft sql server (no more details). Is it
possible to load them "directly" into postgres (without oracle/mssql
license)?
dump -> csv -> postgtres
or something ?

Thanks a lot

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: Nicolas Paris (#1)
Re: dump to pg

On Wed, May 31, 2017 at 7:43 AM, Nicolas Paris <niparisco@gmail.com> wrote:

Hi,

I have dumps from oracle and microsoft sql server (no more details). Is it
possible to load them "directly" into postgres (without oracle/mssql
license)?
dump -> csv -> postgtres
or something ?

​Asking the public mailing lists for PostgreSQL for an opinion on the the
legality of doing something like this is problematic​..

Technically it would depend a lot on exactly what you are trying to load.
If you can go through CSV to do it then its probably just raw insert data
and has a decent chance of working as long as the schema is PostgreSQL has
been created to accept the incoming data.

David J.

#3Rob Sargent
robjsargent@gmail.com
In reply to: David G. Johnston (#2)
Re: dump to pg

On May 31, 2017, at 9:27 AM, David G. Johnston <david.g.johnston@gmail.com> wrote:

On Wed, May 31, 2017 at 7:43 AM, Nicolas Paris <niparisco@gmail.com> wrote:
Hi,

I have dumps from oracle and microsoft sql server (no more details). Is it possible to load them "directly" into postgres (without oracle/mssql license)?
dump -> csv -> postgtres
or something ?

​Asking the public mailing lists for PostgreSQL for an opinion on the the legality of doing something like this is problematic​..

Technically it would depend a lot on exactly what you are trying to load. If you can go through CSV to do it then its probably just raw insert data and has a decent chance of working as long as the schema is PostgreSQL has been created to accept the incoming data.

David J.

If the dumps are not ascii the ‘to csv’ step gets problematic if not impossible legally.

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#4vinny
vinny@xs4all.nl
In reply to: Nicolas Paris (#1)
Re: dump to pg

On 2017-05-31 16:43, Nicolas Paris wrote:

Hi,

I have dumps from oracle and microsoft sql server (no more details).
Is it possible to load them "directly" into postgres (without
oracle/mssql license)?

dump -> csv -> postgtres

or something ?

Thanks a lot

A very, *very* short trip to google shows that "intelligent converters"
have tools that can do both:

https://www.convert-in.com/ora2pgs.htm

There is a trial version with limited options, and the full version
seems to be priced at $49 to $100.

Disclaimer: I have no experience with this company or it's products, I'm
not affiliated, I just googled
and copy/pasted the result.

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#5Nicolas Paris
niparisco@gmail.com
In reply to: vinny (#4)
Re: dump to pg

Thanks all,

The point is I only have access to dump files, no ora/mssql server instance
access. I have noticed the warning around legality on that question. The
best solution for me is to ask to each. Once get answer, I will come back
here to provide the answer.

2017-06-01 4:14 GMT-04:00 vinny <vinny@xs4all.nl>:

Show quoted text

On 2017-05-31 16:43, Nicolas Paris wrote:

Hi,

I have dumps from oracle and microsoft sql server (no more details).
Is it possible to load them "directly" into postgres (without
oracle/mssql license)?

dump -> csv -> postgtres

or something ?

Thanks a lot

A very, *very* short trip to google shows that "intelligent converters"
have tools that can do both:

https://www.convert-in.com/ora2pgs.htm

There is a trial version with limited options, and the full version seems
to be priced at $49 to $100.

Disclaimer: I have no experience with this company or it's products, I'm
not affiliated, I just googled
and copy/pasted the result.

#6Thomas Kellerer
spam_eater@gmx.net
In reply to: Nicolas Paris (#1)
Re: dump to pg

Nicolas Paris schrieb am 31.05.2017 um 16:43:

Hi,

I have dumps from oracle and microsoft sql server (no more details). Is it possible to load them "directly" into postgres (without oracle/mssql license)?
dump -> csv -> postgtres
or something ?

If those are binary dumps (e.g. a DataPump dump in Oracle or a "backup" in SQL Server), then the answer is no.
Only Oracle or SQL Server can read those files.

If they aren't too big, you might get away by installing the express edition of the respective DBMS, then import them using the native tools, then export the data as CSV files.

Thomas

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#7Nicolas Paris
niparisco@gmail.com
In reply to: Thomas Kellerer (#6)
Re: dump to pg

If they aren't too big, you might get away by installing the express edition of the respective DBMS, then import them using the native tools, then export the data as CSV files.

Thanks Thomas. Both are binaries. The oracle's one is a 30TB database...

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#8Neil Anderson
neil@postgrescompare.com
In reply to: Nicolas Paris (#7)
Re: dump to pg

On 1 June 2017 at 17:37, Nicolas Paris <niparisco@gmail.com> wrote:

If they aren't too big, you might get away by installing the express edition of the respective DBMS, then import them using the native tools, then export the data as CSV files.

Good idea. I think SQL Server Express is limited to 10GB on the later
versions. Another tool that can read SQL Server backups is SQL Data
Compare from Redgate, it has a 14 day trial.

http://www.red-gate.com/products/sql-development/sql-data-compare/

Neil Anderson
neil@postgrescompare.com
https://www.postgrescompare.com

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#9Adrian Klaver
adrian.klaver@aklaver.com
In reply to: Neil Anderson (#8)
Re: dump to pg

On 06/02/2017 09:31 AM, Neil Anderson wrote:

On 1 June 2017 at 17:37, Nicolas Paris <niparisco@gmail.com> wrote:

If they aren't too big, you might get away by installing the express edition of the respective DBMS, then import them using the native tools, then export the data as CSV files.

Good idea. I think SQL Server Express is limited to 10GB on the later
versions. Another tool that can read SQL Server backups is SQL Data
Compare from Redgate, it has a 14 day trial.

http://www.red-gate.com/products/sql-development/sql-data-compare/

Or spin up an AWS SQL Server instance:

https://aws.amazon.com/windows/resources/amis/

Neil Anderson
neil@postgrescompare.com
https://www.postgrescompare.com

--
Adrian Klaver
adrian.klaver@aklaver.com

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#10Nicolas Paris
niparisco@gmail.com
In reply to: Adrian Klaver (#9)
Re: dump to pg

Or spin up an AWS SQL Server instance:

https://aws.amazon.com/windows/resources/amis/

Thanks for the suggestion. Problem is the data is highly sensible and
cannot go on the cloud or non trusted place

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#11Neil Anderson
neil@postgrescompare.com
In reply to: Nicolas Paris (#10)
Re: dump to pg

Thanks for the suggestion. Problem is the data is highly sensible and
cannot go on the cloud or non trusted place

Sounds like the real question now is not how to import the data, but
how to convert the backups you have to CSV or similar?
Another idea for SQL Server is to use the bcp utility.
https://www.simple-talk.com/sql/database-administration/working-with-the-bcp-command-line-utility/

Attachments:

contactapplication/octet-stream; name=contactDownload
#12Steven Chang
stevenchang1213@gmail.com
In reply to: Nicolas Paris (#7)
Re: dump to pg

hello,

not possible in your case.
To my understading, no tool can directly transform binary dump(Oralce &
MSSQL) to csv file format.

Steven

2017-06-02 5:37 GMT+08:00 Nicolas Paris <niparisco@gmail.com>:

Show quoted text

If they aren't too big, you might get away by installing the express

edition of the respective DBMS, then import them using the native tools,
then export the data as CSV files.

Thanks Thomas. Both are binaries. The oracle's one is a 30TB database...

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general