Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Change the Hostname of a Server with Oracle

Re: Change the Hostname of a Server with Oracle

From: Norman Dunbar <>
Date: Thu, 07 Sep 2006 11:19:58 +0100
Message-Id: <>

Hi Raphael,

>> On one of these servers we have to rename we have installed Oracle
with two database instances.
>> So I want to ask here if anybody have experiences in changing the
hostname of a server with Oracle >> installed?

We run a clustered net up of 4 nodes, each with a different hostname. When something bad happens, each 'package' fails over to a different node of the cluster and runs quite happily.

You can see that something has gone wrong by the fact that V$INSTANCE.HOST_NAME is different

I don't think you'll have problems with changing the host name at all. (I've done it before on HPUX 10 and 11.00 and Oracle 8i with no problems.)

I do remember shutting down the databases and listeners etc before changing the hostname though - just in case. It may not have been necessary - but we didn't take chances and we were doing it at the weekend anyway.

>> Is it possible that everything I have to modify are the files
listener.ora, tnsnames.ora and services.ora???

If the tnsnames specifies the host name then you will either have to change it, or leave the old name in DNS. If you remove it from DNS then you will not be able to connect, so change it to the new host name. Ditto if you use Oracle Names.


Norman Dunbar.
Contract Oracle DBA.
Rivers House, Leeds.

Internal : 7 28 2051
External : 0113 231 2051

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.

We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at

Received on Thu Sep 07 2006 - 05:19:58 CDT

Original text of this message