Unix Technical Forum

Re: Dbexport

This is a discussion on Re: Dbexport within the Informix forums, part of the Database Server Software category; --> If you think about what dbexport does it should help you to solve the problem. Basically dbexport does a ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 08:32 PM
malcolm.iiug
 
Posts: n/a
Default Re: Dbexport


If you think about what dbexport does it should help you to solve the
problem.

Basically dbexport does a dbschema of the database and writes the output to
dbname.sql
Then it does an unload of each table.

So, to dbexport only one table use dbschema -ss -d dbname -t tabname
tabname.sql
to unload the table use the sql statement unload to "tabname.unl" select *
from tabname

Then drop the table and recreate the table in the new dbspace using the
dbname.sql modofied to include the "in dbspace" clause
and then load the table using "load from "tabname.unl" insert into tabname

And I'll leave it to the UNIX specialists to explain how you get the unload
file onto a tape. My UNIX isn't quite up to that but I'm sure it is
possible.

Malcolm


----- Original Message -----
From: "Howard Jones" <howie_lfc@hotmail.com>
To: <informix-list@iiug.org>
Sent: Monday, November 24, 2003 3:26 PM
Subject: Dbexport


> Hello all,
>
> IDS 9.21.FC4
> HPUX11.0
>
> The customer has requested the archive data we have currently within a
> dbspace be moved to a seperate database within the live instance. Any
> ideas....I was planning on using dbexport to tape but I have just read

that
> a dbexport exports the whole database which is not feasable.
> So to recap I wish to create a new database and populate it with the
> excisting data from a dbspace.
>
>


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 10:33 AM.


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