472,340 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,340 software developers and data experts.

Unidata Universe impot into PostgreSQL

My company is researching the idea of moving from a very large, old
and complex UniData DB to something else that is newer and quicker. I
was thinking about PostgreSQL, but am not sure PostgreSQL could import
the data, and / or what kinds of issues could arrise, not to mention
if it's even possible in the first place.

Your thoughs would be greatly appreciated!
thanks!
Ralph
Jul 19 '05 #1
1 2602
Quoth ph***@pacbell.net (Ralph):
My company is researching the idea of moving from a very large, old
and complex UniData DB to something else that is newer and quicker. I
was thinking about PostgreSQL, but am not sure PostgreSQL could import
the data, and / or what kinds of issues could arrise, not to mention
if it's even possible in the first place.

Your thoughs would be greatly appreciated!
thanks!
Ralph


You might take a look at the "conversions" documents...
<http://techdocs.postgresql.org/#convertfrom>

Take a look at your database schemas to see if you are using any data
types not supported by PostgreSQL; it would seem very unlikely that
this would be the case.

You'll need to start some form of project to see about getting the
data out of the existing database and into PostgreSQL; I'm not sure
what UniData has as export tools, but you have quite a lot of
flexibility in pushing data into PostgreSQL.

The "methodology" that I prefer to use for such conversions is to take
the input data, "massage" it, _as text_, and thereby generate a script
of SQL statements that may be directly loaded in. That is preferable
to writing a program that does direct inserts because you can read the
SQL scripts to help debug the process beforehand, and refer back to it
afterwards if there is a need to document anomalies found later.

If speed is _not_ a priority, then setting up a series of INSERT
statements (perhaps with periodic BEGIN/COMMIT, to cut down on
transaction costs) is one method. That is the 'simple' place to
start.

If it makes sense to do some "interpretation" on the way in, you might
create some stored procedures that are more 'intelligent.' For
instance, in the domain management area, I have sometimes set up a
"create_domain" stored procedure that processes an Internet domain,
filling in values on several of the tables that are involved,
populating appropriate fields with create-time defaults, and setting
up linkages to status information stored in secondary tables.

If you create a suitable set of stored procedures, it may be possible
to "clean up" aspects of the legacy data that may not be totally
clean.

If raw speed is vital, as when time is money, and the time between
shutting down the old system and starting up the new one is a costly
period of downtime, then there are ways of speeding things up. You
generate SQL scripts that contain instances of:

COPY this_table from stdin;
[thousands of rows of tab-delimited data...]
\.

That will be short on data validation, which puts a HIGH value on
testing the conversion HEAVILY before using it...

I have pointed to three methodologies:
1. A bunch of INSERTs;
2. Stored procedures directed to your application;
3. Raw speed via COPY.

It is likely to all be text processing, so whether your favorite text
processing language is Perl, Python, Ruby, Tcl, Awk, or more esoteric
options like Icon, Common Lisp, or M4, that's your call. C/C++/Java
aren't so strong in having nice "syntactic sugar" for string
processing, so they probably aren't nearly as suitable.
--
"cbbrowne","@","ntlug.org"
http://cbbrowne.com/info/linuxdistributions.html
"The reality of the software business today is that if you find
something that can make you ridiculously rich, then that's something
that Microsoft is going to take away from you." -- Max Metral
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Otis Green | last post by:
Vote for or against a new newsgroup proposal. To summarize what you need to do, just send an empty e-mail to postgresql-ballot@netagw.com You...
0
by: Bill J. | last post by:
I have to update a PostgreSQL linked server through MSSQL2K. I first configured the connection with ODBC as follows and I can do queries with no...
0
by: Bill J. | last post by:
I have to update a PostgreSQL linked server through MSSQL2K. I first configured the connection with ODBC as follows and I can do queries with no...
0
by: ruhunu Gamarala | last post by:
Hi, I get the following exception periodically. does anybody what is the reason for it to throw this exception? I really appriciate if anyone can...
6
by: Peter Downes | last post by:
I have an IBM UniVerse database running on Windows 2003 SBS. Every night the UniVerse services appear to hang, and users cannot connect to the...
5
by: 1000101011 | last post by:
Hello all A client of ours is using IBM Unidata (U2 product line) V6 and now wants to migrate away to something more dynamic. When I say dynamic...
0
by: Greg Sabino Mullane | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This is a PGP-signed copy of the checksums for following PostgreSQL versions: 7.4.5 7.4.4...
0
by: mishrabi | last post by:
Hi Experts, Could you Please provide hoew to Migrating IBM Universe Database to Oracle. Whats are the steps to be taken care and how to extract...
0
by: SagittaDeveloper | last post by:
Hi, I'm have a problem connecting to IBM Universe via JDBC. When I run the connection code to UV from a none web application it connects and...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.