AllExperts > Experts 
Search      

Ingres

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Ingres Answers
Question Library

Ask a question about Ingres
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Jean-Pierre Zuate
Expertise
Any questions about database Ingres (owned by Computer Associates then Ingres Corp) : - Ingres 6.4 - OpenINGRES from 1.0 to 2.0 - IngresII from 2.0 to 2.6 - Ingres R3, Ingres 2006 (Open Source version) - All tool around Ingres : ABF, Report Writer, Replicator, OpenROAD, Ingres/NET Ingres/STAR, ...

Experience
16 years of computing experience as :
- AS400 programmer
- AIX / Ingres administrator and developer (OpenROAD and korn shell)
- Ingres DataBase Administrator
- Ingres expert - Data modelisation - ETL - Reporting - Many of Computer Associates sofwares - ITIL / CMDB / Change Management
 
   

You are here:  Experts > Computing/Technology > Databases > Ingres > import data

Topic: Ingres



Expert: Jean-Pierre Zuate
Date: 5/25/2007
Subject: import data

Question
I want to Import xml or mdb or sql database into my ingress database ; how i will do that ?

Answer
Hello,

As far as I know the simpliest way is to import data via Ingres Import Assistant. You can find this windows only tool in the Ingres menu or by right-clicking on the green cylender on the bottom right corner of the screen.

The following is (at least) true on my own Ingres version : II 9.1.0 (int.w32/119) (check the file %II_SYSTEM%\ingres\version.rel)
* Step 1 of 4 : Choose the file to import and the table to store data.
You can import data from .csv, .dbf and .txt (and no XML here). At this stage the assistant control some parameters like the presence of a cariage return in the file.
Choose the node in the list, then the database here, and the table. If you click on "<new table>" you can choose a table name.
* Step 2 of 4 : File format identification
Choose here how Ingres Import Assistant see your data. Depend on the Separator he know, if you have headers in t your file or not, etc. You can see many tabs (csv1, csv2, etc). Click on the box "Tab correspond to expected result" and click "Next"
* Step 3 of 4 : Column Properties
Choose the column name and properties.
* Step 4 of 4 : Import Preview
Here you have an important thing to take care : Commit every ...
If you uncheck it, the whole file to import will be imported in a single transaction. Depending on your Ingres transaction log file size and the volume of your file you may not complete the action. If you meet this point, you can choose to commit every N rows. Then, transactions will be smaller and can fit your transaction log file size.
If it is not a table creation you have the choice to replace data or insert.

For XML file the only Ingres tools I know is xmlimport (see Command Reference Guide). I'm not an XML expert so I've never try this way (always find some .csv escape).

Hope this help,
Jean-Pierre

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.