- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Creating a Second 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
тАО11-22-2004 06:54 AM
тАО11-22-2004 06:54 AM
How do I go about creating a second instance on the same server? I would like to have a test instance which ideally should be a mirror of the production instance on the same server. Possible? Recommended?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 06:56 AM
тАО11-22-2004 06:56 AM
Re: Creating a Second Oracle Instance
It is not recommended to have the test & production on the same server. It is a no-no for everything, not just an oracle database.
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 07:15 AM
тАО11-22-2004 07:15 AM
SolutionThere are several ways to create the second instance. Create a new instance from scratch by setting the ORACLE_SID to a new value and running the db create scripts. Or take your latest backup copy and create a clone of production. Depending on the size of your database cloning is usually faster than creating the db then importing the users/data. If you are using rman for backups then you can follow the rman procedure to duplicate the database. If not check out Metalink article 18070.1 that explains how to create a copy of the database on the same server.
Patti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 06:24 PM
тАО11-22-2004 06:24 PM
Re: Creating a Second Oracle Instance
have you considered creating another schema on the same database and use:
set current_schema
to simply change the default schema name.
this will work if your database is not HUGE!
To "copy" the objects from the "production" schema to the "test" schema, you would then just do an export/import...
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 06:33 PM
тАО11-22-2004 06:33 PM
Re: Creating a Second Oracle Instance
- cold backup you prod instance (suggested)
- on your prod:
alter database backup controlfile to trace;
(find the trace file in $ORACLE_BASE/admin/bdump
and rename it to cre_ctrl.sql
- restore the cold backup to new locations
- edit init.ora to reflect the new instance properties
- edit cre_ctrl.sql to reflect the new instance properties
- create a new env file for the new instance
- source to new env
- sqlplus /nolog
- connect / as sysdba
- startup nomount
- @cre_ctrl.sql
- alter database open
note:
1. some kernel parameters must be modified to allow 2 instances on same box, nproc, nfile, nflocks....
2. BACKUP of prod instance is must before any action on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 09:18 PM
тАО11-22-2004 09:18 PM
Re: Creating a Second Oracle Instance
It's possible.
to create a copy of existing database, cloning is fairly easy (cf. Twang post)
But as you will be on same server, the source instance has to be shut down while you clone the new one !
Is it recommended.
In most companies you (have to) separate production for test/dev/uat. Either you have different servers or partitions. Obviously, it goes back to your company policy.
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 09:35 PM
тАО11-22-2004 09:35 PM
Re: Creating a Second Oracle Instance
It is possible but must not be done.
Testing can mean many things.
It can be going into consuming resources the production need. It will not reflect anything as long as production runs on the same machine so the results can be false.
If your production DB is well sized, reserving a second SGA in memory may get you into troubles, staring swapping, and in a worst case, can go into crashing your production.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 09:36 PM
тАО11-22-2004 09:36 PM
Re: Creating a Second Oracle Instance
Here are some documentation you may read to help you in the task appointed...
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2004 09:37 PM
тАО11-22-2004 09:37 PM
Re: Creating a Second Oracle Instance
Arguments for two machines (get High availability ?):
We typically run Dev./Test on one machine and Prod on another.
The Test system is a copy of production which we refresh from time to time.
This give a good QA-system before putting into production. Since we use two servers we can (and do) setup failover.
If production server fail, the database will be started up on the D/T-machine.
Requirements: HW: 2 machines + SAN, SW: MCSG
2) Running two (or more instances) on one machine is possible.
We have a machine with 7 different small oracle db's
3) Consider if they should use same Oracle runtime or not ?
If they use separate copies of Oracle (not only DB) you will have the opportunity to upgrade each instance separately.
4) Resource allocation
Running 2 Oracle DB's on one machine:
Kernel parameters + initSID_1.ora + initSID_2.ora must match HW configuration and needs/wanted resource allocation.
/Tor-Arne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2004 02:05 AM
тАО11-23-2004 02:05 AM