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 (3.5 to 2006), 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 > Ingres database windows to linux

Topic: Ingres



Expert: Jean-Pierre Zuate
Date: 6/22/2007
Subject: Ingres database windows to linux

Question
QUESTION: Can anyone provide the steps to transfer Ingres database from windows to linux (debian) and vice versa.

I'v tried it with unloaddb but it did'nt work.

Any help would be appreciated.

Many thanks
JB

ANSWER: Hello,

To transfer Ingres data from any platform to any, you must take care of the following from both side (unix and windows, or a box and an other) :
- same locations name
- database must be extended to the same population of extension
- same value for : II_DECIMAL, II_DATE_FORMAT, II_DATE_CENTURY_BOUNDARY, II_MONEY_PREC, II_MONEY_FORMAT
- use the option -c for copydb or unloaddb. -c mean "ASCII format" vs "binary format"
- same population of users in both boxes

So, from machine one, you do something like :
mkdir directory
cd directory
unloaddb -c my_database
./unload.ing
cd ..
tar cvf directory.tar directory
Binary ftp this file to the other box
tar xvf directory.tar
cd directory
Edit copy.in to check :
- the path of the file iiud.scr & iiud65.scr (it must exist on the target machine)
- the path of the files for SQL sentences COPY TABLE ... FROM
Edit reload.ing to check :
- the path of the file copy.in
- the name of the database
./reload.ing (the database must exist and extend to the correct locations)

Hope this is clear and at least helpfull for your issue. Let me know if you need further comments of the procedure.

Regards,
Jean-Pierre Zuate

---------- FOLLOW-UP ----------

QUESTION: Thanks for the useful reply. I'll try this approach asap.

Is it possible to unload only the checkpoint data?

The initial situation is like this.
We are planning to deploy 3 windows ingres database on different sites. These servers are not connected nor replicated. What we wanna do is to get everyday the backup data for that day(not the whole database) from these windows ingres servers and upload/reload it on Linux central server with each own corresponding database.

We are currently using Powerbuilder & microsoft sql server for development. But we're moving to Ingres database for production.

Any hints is helpful.

Thanks again.
JB

Answer
Hello,

The only way you have is to use Ingres/Replicator. The only need you have to replicate your data is to have unique key on each table (with sequence in columns now it is easy). Replicator work on 3 stages :
- capture data modification
- distribute data (he say where data go)
- replicate

The last stage can be done all day (or night) long, or can be done one time by day ...

Move checkpoint from a machine to an other can be done, for sure, but not from windows to linux. Each database have a special file, aaaaaaaa.cnf, and it contain for example the locations names of the database and ... the path of the location area. It is not the same from windows to linux ... You can move Ingres files from a machine to an other if you have some key condtions honoured :
- same type os machine( OS, version)
- same architecture (same file systems)
- same name of locations, directory for those locations
- same Ingres logging system configuration
- etc
and at least it is not supported by Ingres (it mean if you loose data it is your entire problem).

Hope this help you ...
Regards,
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.