Gustavo,
I am not sure what your reason would be to copy the instance from this very old
machine.
If you just need the data, I would encourage you to export it with dbexport in text files
and then dbimport it in a newer version (the format is portable and should be importable
to a very recent version, when the charsets are the same).
Obviously, you do not have any documentation from the old instance, which makes it
complex to reproduce it by re-installing.
Also, windows installations are not that common, so there is probably only a limited number
of people being able to recall how it was done 25years ago.
In case you need the same environment for whatever purpose, you need to figure out
how the production setup was done (probably involving some values in the registry
which need to be present).
You did not tell us if it was possible to start an empty instance on your machine with oninit -i.
(which shows reaction when you connect to it using dbaccess).
As already stated, this would be a basic test to see if you have a proper installation.
What has not been asked: how did you create the ontape backup ?
Should have been done with ontape -s -L 0 in order to get a full archive.
Or is this a very old backup that you are trying to restore, not knowing how that one was created ?
Original Message:
Sent: 6/7/2024 5:41:00 PM
From: Marcus Haarmann
Subject: RE: Is it possible to import the copy made with ontape from one database to another PC?
I believe even in 7.31 versions, a sqlhosts file was needed, independent of the platform.
Informix is mostly dependent on some environment variables which point to the location
of the informix base dir, the onconfig file (if deviating file name) and so on.
Honestly, I never installed a windows server version (only as ODBC client),
always used some kind of Un*x (Solaris/SCO/Linux/HP UX).
I remember there was a tool called setnet32, which is still present in newer versions.
Check out the following documentation, which should apply to 7.31 mostly.
IBM Informix client/server connectivity information, the sqlhosts information, contains information that enables a client application to find and connect to any IBM Informix database server on the network. |
A client application connects to the Informix database server that is running on a computer that can be reached through the network. To establish the connection, use Setnet32 to specify the location of the Informix database server on the network and the network communications protocol to use. You must obtain this information from the administrator of the database server you want to use. |
Check on the production machine, which settings were chosen.
Good luck.
Original Message:
Sent: 6/7/2024 5:27:00 PM
From: Gustavo Echenique
Subject: RE: Is it possible to import the copy made with ontape from one database to another PC?
Hello Art!
I've been building a new Informix 7.31 TD6 engine for Windows all this week in my little free time.
I have configured everything according to the Informix manuals, and I think everything is fine.
I say estimate, because last night I tried again and it gave me the sad error message: "Physical restore failed - could not fork server connection".
In your last message you asked me for a copy of the sqlhosts file, but there is no file with that name in Windows, I had come to think that it only worked on Unix or Linux.
But then in the Informix manuals for Windows NT, in the backup and restore chapter it talks about saving the sqlhosts.
Is the sqlhosts file necessary in an Informix installation on Windows?
Can the lack of it cause Ontape to abort the restoration?
------------------------------
Gustavo Echenique
------------------------------
Original Message:
Sent: Fri May 31, 2024 10:34 AM
From: Art Kagel
Subject: Is it possible to import the copy made with ontape from one database to another PC?
Gustavo:
Post the following and we'll see what we can see:
- The last 30 lines from the message log.
- Your sqlhosts file.
- The server's host's name or IP address (whichever you used in the sqlhosts file)
- You ONCONFIG file.
If we don't see what the issue is, someone will have to look at your system live (via Zoom?) and that will likely be a chargeable consultation. I could do that for you if needed as can several others on this forum. Hopefully we will see the issue and you will be on your way.
Art
------------------------------
Art S. Kagel, President and Principal Consultant
ASK Database Management Corp.
www.askdbmgt.com
Original Message:
Sent: Fri May 31, 2024 09:56 AM
From: Gustavo Echenique
Subject: Is it possible to import the copy made with ontape from one database to another PC?
I have tried starting the server with the -i switch but it has no effect.
Sometimes it cuts off in the initialization phase, and other times in the Fast Recovery phase, but it always ends up warning that the shared memory could not be initialized.
------------------------------
Gustavo Echenique
Original Message:
Sent: Thu May 30, 2024 12:35 PM
From: Marcus Haarmann
Subject: Is it possible to import the copy made with ontape from one database to another PC?
Oninit -i will just startup a freshly initialized instance on your target machine with just the rootdbs being aktive, and it will construct sysmaster database.
Do this to make sure you have installed everything correctly.
Then, shutdown the instance with onmode -kcy and make sure you have at least a n empty file with the correct permissions for each chunk you are restoring and start ontape -r.
Alternatively, shut down the old server and copy the files in case you are not succeeding with ontape. Then just start with oninit -v
Marcus
Original Message:
Sent: 5/30/2024 11:51:00 AM
From: Gustavo Echenique
Subject: RE: Is it possible to import the copy made with ontape from one database to another PC?
Yes, of course Paul, but the "-i" switch will unbind the dbspaces for me, won't it?
------------------------------
Gustavo Echenique
Original Message:
Sent: Wed May 29, 2024 12:12 PM
From: Gustavo Echenique
Subject: Is it possible to import the copy made with ontape from one database to another PC?
Dear All:
I'm asking you about this because I made a copy of an Informix server with ontape to import it into a PC for convenience and security reasons (avoid working with real data).
On the PC I installed Informix 7.31 TD6 for Windows, which is the same version as the server, I created the same dbspaces on the same disk drives as the server, and I also named the chunks the same on both computers. I also made sure to create the dbspaces in the same order and obviously respecting their size. Also the ONCONFIG is the same for both.
The only difference is the operating system, since the server has a 32-bit Windows 2008 server, while the PC has a 64-bit Windows 10.
When I want to do ontape -r, it shows me everything that has been backed up and asks me if I want to restore, which I confirm of course, but after accepting, the command window remains without showing anything for about 15 or so. 20 minutes, and finally it informs me that it cannot connect to the server.
I clarify that also on the PC I changed the INFORMIXDIR, INFORMIXSERVER and ONCONFIG environment variables so that they remained the same.
Has anyone been able to do what I can't?
I thank you in advance for your kindness and time.
Gustavo Echenique.
------------------------------
Gustavo Echenique
------------------------------