NEVER TYPE THIS

Never type this on your Informix server:
oninit -i

When I started working with the Informix DBA who was consulting for my previous job, I expressed an interest in learning more Informix DBA stuff. He said, "Great! Here's the first thing you need to learn: never ever type "oninit -i". Repeat that after me."

So I did, and later I learned what it meant. It reinitializes all the dataspaces, returning them to a fixed, known state - i.e. empty. Like FORMAT C: for your data warehouse.

He explained, using the following story:

So, this DBA I know had called me up and asked, "Terry, how do you recover from "oninit -i"?

I said, "You have to restore from your latest Informix Level 0 Archive."

"But, what if you don't have a recent Level 0?

"In that case, monster.com."

It's true that there are times when you need to type it, such as in a fresh Informix installation. But you must know exactly why you're doing it, and you don't ever just pick it from the list of options when attempting to troubleshoot a problem.

And so I never did it by mistake, thanks to this warning.


Footnote: I don't ever log in as informix; I always log in as myself and use sudo -u to run things as informix. I'm not sure whether this really makes the world a safer place or whether it's just habit from using sudo for root all the time. Or if it's just obsessive-compulsive disorder. But that's how I do it.

Daniel F. Boyd / boyd@csgeeks.org
Last modified: Sat Jul 6 12:34:07 2002