- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Renaming an Oracle instance.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 05:55 AM
тАО01-29-2003 05:55 AM
I would like to know if it is easy to rename an oracle instance. If so, please give me a detailed procedure to do it.
If there is any easier, more reliable method, I would like to know as well.
My Oracle version is 8.1.6 running on an rp5450, 11.0. Thanks.
Hai
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 06:01 AM
тАО01-29-2003 06:01 AM
SolutionLong Answer:
Create a copy of the definition of the database by performing the command 'alter database backup controlfile to trace;' in svrmgrl.
Modify trace file produced, remove extraneous lines at top and bottom of file. Change topmost line to read 'create database set name
Stop database, umount all file systems, change mount points to new SID, change names of users to new SID, change Oracle Parameter files to new SID, remount all file systems.
Log in as Oracle Userid, in svrmgrl, run sql script created previously.
There is a recent thread in the forums that holds Oracle Scripts; look there for the create controlfile script.
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 06:06 AM
тАО01-29-2003 06:06 AM
Re: Renaming an Oracle instance.
then run this command:
find /oracle_home -exec grep -l 'instance_name' {} \; > /tmp/filelist
The oracle home must be your current oracle home. the instance_name must be replaced by your actual instance name.
Now you have a datafile of all the configuration changes you need to make with the exception of /etc/oratab
You can do it manually, or you can use a little script I wrote to make the change in an automated fashion.
Now the trick with this script is putting the old and new instance name in the sed section. You may need to modify your location of perl as well.
This works, its called database cloning.
If you admit to Oracle support you did it this way, they might not give you support. Hint: we do this all the time and have never had trouble except when we used to to convert a 32 bit 8.1.7.0 database to a 64 bit 8.1.7.0 database. To do that, you need a few oracle patches and might as well just install 8.1.7.4.0
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 06:33 AM
тАО01-29-2003 06:33 AM
Re: Renaming an Oracle instance.
Don't forget to change the config files listener.ora, tnsnames.ora on the serverside and tnsnames.ora on all clients
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 06:35 AM
тАО01-29-2003 06:35 AM
Re: Renaming an Oracle instance.
Thanks for your help. I have not yet tried your solutions. But I believe they should work. I prefer Steven's approach. It seems to be simpler.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 08:05 AM
тАО01-29-2003 08:05 AM
Re: Renaming an Oracle instance.
cf. the following thread
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2a7eef70e827d711abdc0090277a778c,00.html
This is straightforward and I don't think there is any support issue with this method
Rgds,
Jean-Luc
PS : as mentioned above you will have to amend your config files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2003 09:07 PM
тАО01-29-2003 09:07 PM