Unix Technical Forum

Help needed in transfering or backing up/restoring Informix database via ODBC.

This is a discussion on Help needed in transfering or backing up/restoring Informix database via ODBC. within the Informix forums, part of the Database Server Software category; --> I've recently encountered a full file system failure on my Informix server, it's running Informix IDS 9.20 (Linux); access ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 12:17 PM
vpreatr@gmail.com
 
Posts: n/a
Default Help needed in transfering or backing up/restoring Informix database via ODBC.

I've recently encountered a full file system failure on my Informix
server, it's running Informix IDS 9.20 (Linux); access to the Informix
tools is not available, changing the allow.hosts file isn't an option
(as the file system is damaged); otherwise I'd setup remote access
(i.e. dbaccess/dbexport, etc.) - presently Informix is online, the
dbspace's and databases have yet to be compromised.

So here's the situation, I have ODBC access, I have a backup that is a
month old, so I have a current/correct schema from dbexport; I've
attempted to export all the tables into SQL files via WinSQL (and a
couple of other products); however after creating a new database (new
server); attempts at importing (i.e. INSERT's from the .SQL files) have
either failed due to the size of the .SQL files, or due to WinSQL's
method of export (creates long statements and Informix kick's back a
460 error). A few other products couldn't go over 1940 records.

I've also tried a direct migration from one table to another table (old
server/table to new server/table), that worked fine on simple tables,
but any tables with key constraints failed; I'm not certain if I should
create a new database without the keys, import (i.e. migrate/transfer);
then create the keys as it would occur in the dbexport, i.e create
table, unload, create key, create index.

So that's the situation, the server is on borrowed time; so I either
need to find a decent utility that can export/migrate/transfer/import
an Informix database via ODBC; or figure out a way to handle the key
constraint errors when I'm attempt to migrate/transfer from old-to-new
in WinSQL.

Any suggestions, ideas, are definitely welcomed.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 12:17 PM
david@smooth1.co.uk
 
Posts: n/a
Default Re: Help needed in transfering or backing up/restoring Informix database via ODBC.


vpreatr@gmail.com wrote:
> I've recently encountered a full file system failure on my Informix
> server, it's running Informix IDS 9.20 (Linux); access to the Informix
> tools is not available, changing the allow.hosts file isn't an option
> (as the file system is damaged); otherwise I'd setup remote access
> (i.e. dbaccess/dbexport, etc.) - presently Informix is online, the
> dbspace's and databases have yet to be compromised.
>
> So here's the situation, I have ODBC access, I have a backup that is a
> month old, so I have a current/correct schema from dbexport; I've
> attempted to export all the tables into SQL files via WinSQL (and a
> couple of other products); however after creating a new database (new
> server); attempts at importing (i.e. INSERT's from the .SQL files) have
> either failed due to the size of the .SQL files, or due to WinSQL's
> method of export (creates long statements and Informix kick's back a
> 460 error). A few other products couldn't go over 1940 records.
>
> I've also tried a direct migration from one table to another table (old
> server/table to new server/table), that worked fine on simple tables,
> but any tables with key constraints failed; I'm not certain if I should
> create a new database without the keys, import (i.e. migrate/transfer);
> then create the keys as it would occur in the dbexport, i.e create
> table, unload, create key, create index.
>


Go to www.iiug.org and the Software section. Get Art Kagels utils_ak2
and use dbcopy from there to copy the data.

The new tables should not have contraints or indexes on them whilst the
copy is happening.

> So that's the situation, the server is on borrowed time; so I either
> need to find a decent utility that can export/migrate/transfer/import
> an Informix database via ODBC; or figure out a way to handle the key
> constraint errors when I'm attempt to migrate/transfer from old-to-new
> in WinSQL.
>
> Any suggestions, ideas, are definitely welcomed.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 12:17 PM
vpreatr@gmail.com
 
Posts: n/a
Default Re: Help needed in transfering or backing up/restoring Informix database via ODBC.

David,
Unfortunately I only have ODBC access, the server is not configured to
trust another INFORMIXSERVER nor can I add trust via allow.hosts (or
..rhosts) due to the level of file corruption on the failing server.
Typically I'd access the server via DBACCESS and DBEXPORT remotely
providing a trust relationship was established with the source location
(workstation/server IP, username, etc. ) - that isn't the case here. If
I attempt to access the server with such tools, I'm greeted with a
"Client host or user (myid@myaddress.com) is not trusted by the
server."

So basically unless a utility exists with the capability of dbexport or
dbcopy that can bypass or ignore the client host/use trust
restrictions; I'm limited solely to ODBC and the server is truly on
borrowed time. (If the Informix server were to be shutdown, it would
never start again due to the level of corruption at the filesystem
level)

Thanks!

david@smooth1.co.uk wrote:
> Go to www.iiug.org and the Software section. Get Art Kagels utils_ak2
> and use dbcopy from there to copy the data.
>
> The new tables should not have contraints or indexes on them whilst the
> copy is happening.
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 12:18 PM
Clive Eisen
 
Posts: n/a
Default Re: Help needed in transfering or backing up/restoring Informix databasevia ODBC.

vpreatr@gmail.com wrote:
> David,
> Unfortunately I only have ODBC access, the server is not configured to
> trust another INFORMIXSERVER nor can I add trust via allow.hosts (or
> .rhosts) due to the level of file corruption on the failing server.
> Typically I'd access the server via DBACCESS and DBEXPORT remotely
> providing a trust relationship was established with the source location
> (workstation/server IP, username, etc. ) - that isn't the case here. If
> I attempt to access the server with such tools, I'm greeted with a
> "Client host or user (myid@myaddress.com) is not trusted by the
> server."



can you block the server in a checkpoint and dd the chunks over scp? You
don't need a trusted relationship, just informix or root access over ssh.

Then install the same version of IDS on the same sort of hardware and bingo!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 12:18 PM
vpreatr@gmail.com
 
Posts: n/a
Default Re: Help needed in transfering or backing up/restoring Informix database via ODBC.

Hi Clive,
SSH nor DD is available, the majority of all tools and their subsequent
libraries have been corrupted; the database is online simply due to the
fact the chunks are located on a different drive.

Now if I could use the raw chunks from the good drive, i.e. replace the
faulty drive, install OS, re-install Informix and then access the
chunks that were created previously; that might be an option; however
I'm unable to backup anything in the /opt/informix directory; so
essential configuration files are not accessible. Last I checked (years
ago), using those previous "good" chunks isn't an option; or is it?

At present I have a replacement server, same OS, same IDS version,
virtually the same hardware online, I'm exporting all the data to SQL
files (inserts); and then I'm slowly attempting to import that data
into the new server; fortunately I had a working schema, so the
database and subsequent table structure is identical - the downside is
the .SQL files were formatted with long statements (i.e. -460 errors);
and I'm having issues with the ODBC tools crashing due to the .SQL file
sizes.

In attempt to resolve the long statement errors, I'm editing each
file, running the INSERT's and then comparing the data. This process is
consuming a monumental amount of time and the outcome is uncertain as
the tools are unpredictable.

Thanks!

Clive Eisen wrote:
> can you block the server in a checkpoint and dd the chunks over scp? You
> don't need a trusted relationship, just informix or root access over ssh.
>
> Then install the same version of IDS on the same sort of hardware and bingo!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-20-2008, 12:18 PM
Clive Eisen
 
Posts: n/a
Default Re: Help needed in transfering or backing up/restoring Informix databasevia ODBC.

vpreatr@gmail.com wrote:
> Hi Clive,
> SSH nor DD is available, the majority of all tools and their subsequent
> libraries have been corrupted; the database is online simply due to the
> fact the chunks are located on a different drive.

I hope somebody is paying you well :-)

Can you list what you know does work on this machine - or is it just the
running IDS?

Do you know the path to all the chunks?

>
> Now if I could use the raw chunks from the good drive, i.e. replace the
> faulty drive, install OS, re-install Informix and then access the
> chunks that were created previously; that might be an option; however
> I'm unable to backup anything in the /opt/informix directory; so
> essential configuration files are not accessible. Last I checked (years
> ago), using those previous "good" chunks isn't an option; or is it?

In order to get a running system from just the chunks AFAIK you need
three things - the same version of IDS, the path to the root chunk and
all the chunks in the same place as before. And you can get all of this
from your month old backup.

>
> At present I have a replacement server, same OS, same IDS version,
> virtually the same hardware online, I'm exporting all the data to SQL
> files (inserts); and then I'm slowly attempting to import that data
> into the new server; fortunately I had a working schema, so the
> database and subsequent table structure is identical - the downside is
> the .SQL files were formatted with long statements (i.e. -460 errors);
> and I'm having issues with the ODBC tools crashing due to the .SQL file
> sizes.

Good plan, but as you say fraught with difficulty.

I'd work on this in order to get copies of the data in case all else fails.

Then move the drive out and COPY IT to another drive using dd and
someone looking over your shoulder to make sure you get the dds round
the right way ( I might even put the read only jumper on the drive if it
has one ) and then try in start IDS on the replacement server with the copy.
>
> In attempt to resolve the long statement errors, I'm editing each
> file, running the INSERT's and then comparing the data. This process is
> consuming a monumental amount of time and the outcome is uncertain as
> the tools are unpredictable.
>

YUK
> Thanks!
>

You have my deepest sympathy in this
--
Clive
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 09:16 AM.


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