Unix Technical Forum

RE: Migrating HPL jobs

This is a discussion on RE: Migrating HPL jobs within the Informix forums, part of the Database Server Software category; --> i am not sure if there are utilities/documents to do this, but i had done this few years ago ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 07:49 AM
Savio Pinto \(s\)
 
Posts: n/a
Default RE: Migrating HPL jobs


i am not sure if there are utilities/documents to do this, but i had done this few years ago with success. basically, i manually (using a program/script) inserted records in the onpload database, this method may not be supported by informix but it worked for me, here is what i did,

- unload data from the following tables project,device,query,formats,maps & session from onpload database

- write a script to read the unloaded data and insert the data in the existing onpload database, in the following tables (the order is important)
a. project
b. device
c. query
d. formats
e. formatitem
f. maps
g. mapitem
h. session

- you have to be very careful with the serial key columns, basically let the engine generate the serial key value for you during the insert, for e.g. when you insert a row in the project table make sure the projectid is generated by the engine, then you can use the projectid to insert rows in the other tables (query,maps,session....), you will have to do the same for the other serial key (formid, formatid...) columns

- make sure to take a backup of the onpload database before doing this migration.

- also, this procedure is risky, and may not be supported by informix.



-----Original Message-----
From: owner-informix-list@iiug.org
[mailtowner-informix-list@iiug.org]On Behalf Of Andy Kent
Sent: Tuesday, March 01, 2005 5:20 AM
To: informix-list@iiug.org
Subject: Migrating HPL jobs


I need to migrate a set of HPL jobs from a dev to a production box, but
I don't want to overwrite the jobs that are already on the production
box (so dbexport / dbimport are no good).

Can someone point me in the direction of a utility / piece of SQL / bit
of documentation to help do this?

Thanks

Andy Kent


sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 07:50 AM
superboer
 
Posts: n/a
Default Re: Migrating HPL jobs

Why the heck is export /import no good??

you could use:

export DBONPLOAD=superboer

start ipload and it will create a db called superboer with all the
tables.
or grab an export of your production,
rename the onpload.exp dir and sql file to something else,
import it and set DBONPLOAD.

See you

Superboer.

"Savio Pinto \(s\)" <spinto@cap.org> wrote in message news:<1109783430.ac3947a359eb97083d8d5e0bff7a63ef@ teranews>...
> i am not sure if there are utilities/documents to do this, but i had done this few years ago with success. basically, i manually (using a program/script) inserted records in the onpload database, this method may not be supported by informix but it worked for me, here is what i did,
>
> - unload data from the following tables project,device,query,formats,maps & session from onpload database
>
> - write a script to read the unloaded data and insert the data in the existing onpload database, in the following tables (the order is important)
> a. project
> b. device
> c. query
> d. formats
> e. formatitem
> f. maps
> g. mapitem
> h. session
>
> - you have to be very careful with the serial key columns, basically

let the engine generate the serial key value for you during the
insert, for e.g. when you insert a row in the project table make sure
the projectid is generated by the engine, then you can use the
projectid to insert rows in the other tables (query,maps,session....),
you will have to do the same for the other serial key (formid,
formatid...) columns
>
> - make sure to take a backup of the onpload database before doing this migration.
>
> - also, this procedure is risky, and may not be supported by informix.
>
>
>
> -----Original Message-----
> From: owner-informix-list@iiug.org
> [mailtowner-informix-list@iiug.org]On Behalf Of Andy Kent
> Sent: Tuesday, March 01, 2005 5:20 AM
> To: informix-list@iiug.org
> Subject: Migrating HPL jobs
>
>
> I need to migrate a set of HPL jobs from a dev to a production box, but
> I don't want to overwrite the jobs that are already on the production
> box (so dbexport / dbimport are no good).
>
> Can someone point me in the direction of a utility / piece of SQL / bit
> of documentation to help do this?
>
> Thanks
>
> Andy Kent
>
>
> sending to informix-list

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com