If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Informix Export Schema and Data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-11, 07:27
aucrun aucrun is offline
Registered User
 
Join Date: Dec 2003
Posts: 65
Informix Export Schema and Data

Hi,

I'm a newbie in Informix and therefore my next questions may appear too simple. I would appreciate any kind of help.

I would like to know if there is any way to export an Informix Schema to a flat file and export data to another, separetely!
And what is the syntax for those two cases.

Thanks.

Master Aucrun
Reply With Quote
  #2 (permalink)  
Old 01-09-11, 18:17
Luis Santos Luis Santos is offline
Registered User
 
Join Date: Jun 2009
Location: Lisboa, Portugal
Posts: 51
If you use dbexport, this tool will create a directory with an sql inside like the name of database and that sql as the schema. The data will be in files separated each one as its table.

__________________
LS
Reply With Quote
  #3 (permalink)  
Old 01-11-11, 11:02
aucrun aucrun is offline
Registered User
 
Join Date: Dec 2003
Posts: 65
Hi Luis,

Thanks for your response.
By other words you say that with the usage of DBExport, I will manage to have both schema and data in separate files?

For instance, an example where I have two tables (TABLE_1 and TABLE_2):
- If I understood correctly, I would have three files:
- Database Schema with TABLE_1, TABLE_2, Indexes, Views, ...
- Data from TABLE_1
- Data from TABLE_2
Is that right?

When using DBExport the data files are generated automatically, right? Is there any way of identifying any character delimeter for fields?
For instance to get me the same result of the following sentence: "UNLOAD to flatfilename DELIMITER ',' SELECT * FROM TABLENAME"

Thanks!

Last edited by aucrun; 01-12-11 at 09:22.
Reply With Quote
  #4 (permalink)  
Old 01-22-11, 18:46
Luis Santos Luis Santos is offline
Registered User
 
Join Date: Jun 2009
Location: Lisboa, Portugal
Posts: 51
Hi aucrun,

You can read the reference Informix site at:

IBM Informix Dynamic Server v10 Information Center

About the delimiter for default is pipe "|", but you can specify one-other using DELIMITER yes. You have to set one Informix variable for export with that.

Luís.
__________________
LS
Reply With Quote
  #5 (permalink)  
Old 01-31-11, 17:37
aucrun aucrun is offline
Registered User
 
Join Date: Dec 2003
Posts: 65
Thanx.

I've gathered the Export files from DBexport, and they look like exactly as you've told, with "|" separating the fields.
Now, reading it onto an Oracle table should be easy with SQL Loader, right?

Thanks!
Reply With Quote
Reply

Tags
data, export, informix, schema

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On