dbTalk Databases Forums  

Re: [Info-Ingres] Editing the Ingres config file.

comp.databases.ingres comp.databases.ingres


Discuss Re: [Info-Ingres] Editing the Ingres config file. in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Bowes
 
Posts: n/a

Default Re: [Info-Ingres] Editing the Ingres config file. - 11-25-2011 , 09:37 AM






Hi Andre,

I'm using a Perl program with a cunning set of sysread/syswrite routines toget the data using unpack and then write it back after repacking the edited data.

Marty

From: Laframboise, André [mailto:Andre.Laframboise (AT) bac-lac (DOT) gc.ca]
Sent: 25 November 2011 15:35
To: Martin Bowes
Subject: Editing the Ingres config file.

Hi Marty,

The config file is a binary file. I think you have to make sure you're editor is not text based.
Years ago I tried editing it a few times with various editors but none worked.

I eventually wrote a small C program to replace some characters in it and it worked as long as the I replaced existing characters only.
I think there's a set structure to that file so string lengths have to remain the same.

But a config file editor would be nice.

Andre



Andre C. Laframboise
Technical Advisor , Database and Data Administration
Conseiller Technique, Administration de base de données et de données
Application Services / Services d'Application
Application Development / Développement d'application
Library and Archives Canada / Bibliothèque et Archives Canada
550, boul. de la Cité, Gatineau, QC
Canada K1A 0N4
andre.laframboise (AT) lac-bac (DOT) gc.ca
Téléphone / Telephone 819-997-7407
Télécopieur / Facsimile 819-994-6835
Gouvernement du Canada / Government of Canada
www.collectionscanada.gc.ca<http://www.collectionscanada.gc.ca/>

Reply With Quote
  #2  
Old   
Martin Bowes
 
Posts: n/a

Default Re: [Info-Ingres] Editing the Ingres config file. - 11-25-2011 , 09:53 AM






Yep sysread/syswrite operate at the byte level.

Marty

From: Laframboise, André [mailto:Andre.Laframboise (AT) bac-lac (DOT) gc.ca]
Sent: 25 November 2011 15:52
To: Martin Bowes
Cc: Ingres and related product discussion forum
Subject: RE: Editing the Ingres config file.

Don't you hate that ... I googled config file structure and the first thing it found was another post asking the same question, by me 5 years ago !

http://www.dbmonster.com/Uwe/Forum.a...-file-question

I don't know Perl but I know the read/write calls must be able to manage bytes, not characters. Can sysread/write do this ?

Andre

________________________________
From: Martin Bowes [mailto:martin.bowes (AT) ctsu (DOT) ox.ac.uk]
Sent: November 25, 2011 10:37 AM
To: Laframboise, André
Cc: Ingres and related product discussion forum
Subject: RE: Editing the Ingres config file.
Hi Andre,

I'm using a Perl program with a cunning set of sysread/syswrite routines toget the data using unpack and then write it back after repacking the edited data.

Marty

From: Laframboise, André [mailto:Andre.Laframboise (AT) bac-lac (DOT) gc.ca]
Sent: 25 November 2011 15:35
To: Martin Bowes
Subject: Editing the Ingres config file.

Hi Marty,

The config file is a binary file. I think you have to make sure you're editor is not text based.
Years ago I tried editing it a few times with various editors but none worked.

I eventually wrote a small C program to replace some characters in it and it worked as long as the I replaced existing characters only.
I think there's a set structure to that file so string lengths have to remain the same.

But a config file editor would be nice.

Andre



Andre C. Laframboise
Technical Advisor , Database and Data Administration
Conseiller Technique, Administration de base de données et de données
Application Services / Services d'Application
Application Development / Développement d'application
Library and Archives Canada / Bibliothèque et Archives Canada
550, boul. de la Cité, Gatineau, QC
Canada K1A 0N4
andre.laframboise (AT) lac-bac (DOT) gc.ca
Téléphone / Telephone 819-997-7407
Télécopieur / Facsimile 819-994-6835
Gouvernement du Canada / Government of Canada
www.collectionscanada.gc.ca<http://www.collectionscanada.gc.ca/>

Reply With Quote
  #3  
Old   
nikosv
 
Posts: n/a

Default Re: Editing the Ingres config file. - 11-27-2011 , 12:43 PM



On Nov 25, 5:53*pm, Martin Bowes <martin.bo... (AT) ctsu (DOT) ox.ac.uk> wrote:
Quote:
Yep sysread/syswrite operate at the byte level.
also unbuffered, if I may add

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.