- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Oracle 7.3.4: Database name
Operating System - HP-UX
1752817
Members
4231
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО12-27-2006 01:08 AM
тАО12-27-2006 01:08 AM
Oracle 7.3.4: Database name
All,
I have a oracle 7.3.4 database. I want to make clone this database and start with another name on same server. Is it possible ? if yes How ?
Thanks
Sunil
I have a oracle 7.3.4 database. I want to make clone this database and start with another name on same server. Is it possible ? if yes How ?
Thanks
Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-27-2006 01:39 AM
тАО12-27-2006 01:39 AM
Re: Oracle 7.3.4: Database name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 02:10 AM
тАО01-09-2007 02:10 AM
Re: Oracle 7.3.4: Database name
The various articles referenced give a good description of cloning a database. However, there is one idiosyncrasy of a 7.3.4 database that you need to watch out for.
Whenever a 7.3.4 instance is started, it creates a file $ORACLE_HOME/dbs/sgadefSID.dbf, which lists the address of the shared memory segment for the instance. The CREATE CONTROLFILE script will see the source database name in the data files and see the source database sgadef file, and fail because it claims another instance already has the datafiles open.
There are two workarounds: 1, shut down the source database while running the create controlfile, or 2, temporarily rename the sgadef file for the source database.
Whenever a 7.3.4 instance is started, it creates a file $ORACLE_HOME/dbs/sgadefSID.dbf, which lists the address of the shared memory segment for the instance. The CREATE CONTROLFILE script will see the source database name in the data files and see the source database sgadef file, and fail because it claims another instance already has the datafiles open.
There are two workarounds: 1, shut down the source database while running the create controlfile, or 2, temporarily rename the sgadef file for the source database.
Trust me, I know what I'm doing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2007 09:32 PM
тАО01-09-2007 09:32 PM
Re: Oracle 7.3.4: Database name
Hi Sunil,
Do on the source database:
alter database backup controlfile to trace;
This will generate a text file on the bdump or udump (don't remember). Make the ajustmnents to be like this:
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE SET DATABASE "" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 300
MAXINSTANCES 1
MAXLOGHISTORY 500
LOGFILE
GROUP 1 (
'/disc1/...//log01a.dbf',
'/disc2/...//log01b.dbf'
) SIZE 10M,
GROUP 2 (
'/disc1/...//log02a.dbf',
'/disc2/...//log02b.dbf'
) SIZE 10M
DATAFILE
'/disc1/...//system01.dbf',
'/disc1/...//rbs01.dbf',
'/disc1/...//temp01.dbf',
...
;
Save it (clone.sql).
Copy the COLD BACKUP datafiles to /disc1/...// and /disc2/.../.
Set the user's environment to the new SID and start svrmgrl:
SVRMGRL>@clone.sql;
SVRMGRL>RECOVER DATABASE USING BACKUP CONTROLFILE; -- it may give an error but ignore!
SVRMGRL>ALTER DATABASE OPEN RESETLOGS;
If it doesn't work try it recovering WITHOUT USING BACKUP CONTROLFILE (I'm not sure if you must use this option or not):
SVRMGRL>@clone.sql;
SVRMGRL>RECOVER DATABASE; -- it may give an error but ignore!
SVRMGRL>ALTER DATABASE OPEN RESETLOGS;
Best Regards,
Eric
Do on the source database:
alter database backup controlfile to trace;
This will generate a text file on the bdump or udump (don't remember). Make the ajustmnents to be like this:
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE SET DATABASE "
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 300
MAXINSTANCES 1
MAXLOGHISTORY 500
LOGFILE
GROUP 1 (
'/disc1/.../
'/disc2/.../
) SIZE 10M,
GROUP 2 (
'/disc1/.../
'/disc2/.../
) SIZE 10M
DATAFILE
'/disc1/.../
'/disc1/.../
'/disc1/.../
...
;
Save it (clone.sql).
Copy the COLD BACKUP datafiles to /disc1/.../
Set the user's environment to the new SID and start svrmgrl:
SVRMGRL>@clone.sql;
SVRMGRL>RECOVER DATABASE USING BACKUP CONTROLFILE; -- it may give an error but ignore!
SVRMGRL>ALTER DATABASE OPEN RESETLOGS;
If it doesn't work try it recovering WITHOUT USING BACKUP CONTROLFILE (I'm not sure if you must use this option or not):
SVRMGRL>@clone.sql;
SVRMGRL>RECOVER DATABASE; -- it may give an error but ignore!
SVRMGRL>ALTER DATABASE OPEN RESETLOGS;
Best Regards,
Eric
Each and every day is a good day to learn.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP