8i cold backup Solaris 5.8
Guys,
I have been doing some research over the past week to determine the best way to do this. I am now at the stage where I know what I want to do, just need to know now HOW to do it! ;o)
My startegy is to shutdown the DB, do an off-line (cold) backup of the files to tape, restart the DB.
My questions that need answering to get me there:
1) what is the most efficient method of shutting down the DB?
2) which files, paths would be helpful here, do i need to backup?
3) what is the most efficient method of resatarting the DB?
4) if I need to restore from the backup I made in 2), how do i go abotu doing this? Is it just a case of copying the files over the top?
I do appreciate the time and effort you (may) put in to answer these questions.
Matt
johnson,
refer oracle migration documentation. it has answers to all your concerns. the potential pitfalls to look for are
application design w.r.t to oracle 8i (parameter changes in oracle, optimizer cahnges..etc)
amount of data to be migrated (more data more careful planning /cost)
oracle migration utility should be the easiest of you don't want to get into the nity gritty of details.
as i said..oracle documentation should tell you what is the best option for your site.
mukundan.
Similar Messages
-
Cold backup of High Availability DB 10gR2 in SOLARIS 8 SPARC
Hi
I want to know the procedure of taking Cold backup in Solaris 8 SPARC in
High Availability Environment.
Any reference document will be helpful.
Thanks in advance.
RenukaThat seems to be a contradiction in terms, high availibility and cold backup. When you do a cold backup the database is down and not available. In a primary - standby configuration, you could switch the standby to primary, shutdown the (former) primary and perform a cold backup of it.
-
Create a standby controlfile using cold backup
Hi All,
We have to setup a DR for a production database.
Here we have the coldbackup which backups all the datafiles and the control file from the production database.
For cloining we generally copy them to another instance and then create controlfile manually. But for setting up as a DR , we would be creating it for standby controlfile.
I tried to google but I am not able to find a way to create a standby controlfile from the existing controlfile cold backup.
OS version solaris 10 , database version 11.2.0.1
Regards
KK
Edited by: Kk on Feb 16, 2012 8:51 AMKk wrote:
Hi All,
We have to setup a DR for a production database.
Here we have the coldbackup which backups all the datafiles and the control file from the production database.
For cloining we generally copy them to another instance and then create controlfile manually. But for setting up as a DR , we would be creating it for standby controlfile.
I tried to google but I am not able to find a way to create a standby controlfile from the existing controlfile cold backup.
OS version solaris 10 , database version 11.2.0.1
Regards
KK
Edited by: Kk on Feb 16, 2012 8:51 AMTry as below
My version:
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL>1) Taken backup of current controlfile
2) Deleted Current controlfiles
3) Restored using standby clause from current controlfile
4) Mounted & now controlfile type is Standby
Try in this way when you have cold backup. :)
SQL> select controlfile_type from v$database;
CONTROL
CURRENT
RMAN> run
2> {
3> allocate channel ch1 device type disk format 'c:\oracle\control%U.bkp';
4> backup current controlfile;
5> release channel ch1;
6> }
using target database control file instead of recovery catalog
allocated channel: ch1
channel ch1: SID=63 device type=DISK
Starting backup at 16-FEB-12
channel ch1: starting full datafile backup set
channel ch1: specifying datafile(s) in backup set
including current control file in backup set
channel ch1: starting piece 1 at 16-FEB-12
channel ch1: finished piece 1 at 16-FEB-12
piece handle=C:\ORACLE\CONTROL08N3GEA6_1_1.BKP tag=TAG20120216T230334 comment=NONE
channel ch1: backup set complete, elapsed time: 00:00:01
Finished backup at 16-FEB-12
released channel: ch1
RMAN> exit
RMAN> restore standby controlfile from 'C:\ORACLE\CONTROL08N3GEA6_1_1.BKP';
Starting restore at 16-FEB-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=66 device type=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
output file name=C:\ORACLE\ORADATA\ORCL\CONTROL01.CTL
output file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL
Finished restore at 16-FEB-12
SQL> alter database mount;
Database altered.
SQL> select controlfile_type from v$database;
CONTROL
STANDBY
SQL>
Some More information:-
Even if your database backup is old, still you can create a new standby controlfile and restore new controlfile and restore database. Later after starting MRP all will be synchronized. No issues
SQL> select controlfile_type from v$database;
CONTROL
CURRENT
SQL> alter database create standby controlfile as 'c:\oracle\control_stby.ctl';
Database altered.
SQL> $dir c:\oracle\con*
Volume in drive C is System
Volume Serial Number is 1853-3E21
Directory of c:\oracle
02/16/2012 11:41 PM 9,748,480 CONTROL_STBY.CTL
1 File(s) 19,546,112 bytes
0 Dir(s) 177,185,570,816 bytes free
SQL>Now Just restore database. You already have backup.
Or
If you have opportunity you can go ahead for Duplicate/Duplicate from active database
Edited by: CKPT on Feb 16, 2012 11:41 PM -
Hi,
I am doing the following steps for taking Cold Backup
of my Oracle 9i Database (On Solaris).
The Database is not enabled for Archive Mode.
a)sqlplus /nolog
b)conn / as sysdba
c)start up
d)alter database backup control file to '/backup/control.ctl'
e)alter database backup control file to trace
f)shutdown immediate
g)exit
h)Manually copy all the .dbf and init.ora files to a seperate directory.
Are all the above steps correct.
If yes,can anyone give me a script which i can run manually so as to take the cold Backup.
Regards
DeepakHere is a scrip which I wrote to take a cold backup.
REM
REM Script for backing up the I2ORADEV database running in NOARCHIVELOG mode.
REM Created by Deepak Jaisingh on 24.11.2003.
REM
PROMPT
PROMPT Backup started for I2ORADEV.
PROMPT
REM
REM Stop the listener to restrict access.
REM
HOST LSNRCTL STOP;
PROMPT Listerner stopped.
PROMPT
PROMPT
PROMPT Shutting down I2ORADEV for backup.
shutdown immediate;
PROMPT
PROMPT Backing up database, redolog and control files.
HOST COPY G:\oracle\oradata\apildata\* D:\BACKUP\ORADATA\I2ORADEV\;
HOST COPY G:\ORACLE\ORADATA\I2ORADEV\* D:\BACKUP\ORADATA\I2ORADEV\;
PROMPT
PROMPT Backup for database, redolog and control files complete.
PROMPT
PROMPT Starting I2ORADEV.
startup;
REM
REM START the listener.
REM
HOST LSNRCTL START;
PROMPT Listerner started.
PROMPT
PROMPT Backup for I2ORADEV complete.
PROMPT -
Database cold backup in oracle 10g
Hi,
oracle-10.2g
solaris-10
The oracle database i connected with the sun cluster 3.2(two node cluster), for taking the cold backup one of the resource(instance). When I shutdown the resource(instance) for taking the cold backup. The resource(instance) starts automatically again on the same node.
Kindly provide me the solution for taking the cold backup by shutting down the instance.
Regards
DravidanHere is the procedure for taking coldbackup:
First shutdown the database then copy all the datafiles, tempfiles, control files and logfiles to a safe place using the select command. Then run the script as described here: http://tinyurl.com/bp85dmj -
Plz provide me some documents on how to clone a database using cold backup
Dear All,
Please provide me some documents on how to clone a database using cold backup which is in archive log.
Also, please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
Thanks,
MahipalPlease provide me some documents on how to clone a database using cold >backup which is in archive loghttp://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
Oracle9i Installation Guide
Release 2 (9.2.0.1.0) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, and Sun Solaris -
http://download.oracle.com/docs/html/A96167_01/toc.htm -
Recover a database using cold backup
Hi,
I am working in oracle 9i and solaris 5.8. I am taking coldbackup and its stored in another solaris server. I need to create a new database in the backup server using the cold backup files.
Please explain me in detail how to create a database using the files.
SQL QUERY needed.
Gobi.Hi,
go through below link
Re: Help! How to migrant my whole DBXE to another computer???!!!!!
hope this helps
Taj -
Database Cloning (Cold Backup) Doubt
Hi,
Operating System : Sun Solaris
Production Database Version : 11.1.0.6.2
UAT Server Database Version : 11.1.0.7.0
We have taken the production backup and restored in UAT server. We found that there is a conflict in version.
Is there any solution to bring the UAT up with the production cold backup.
Please give some manual steps to bring the UAT (11.1.7) with Production backup (11.1.6)
I have attached the output for your verification we got so much of error. Please suggest some steps.
We are doing the cloning manually. We need to bring the UAT database up asap.
Kindly reply me.
Thanks all.
Regards
Pramodh
Error
~~~
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
Process ID: 28848
Session ID: 335 Serial number: 5
SQL> alter database open;
ERROR:
ORA-03114: not connected to ORACLE.
SQL> shutdown immediate
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SQL> exit
Alert Log
~~~~~
ORA-00704: bootstrap process failure
ORA-39700: database must be opened with UPGRADE option
Error 704 happened during db open, shutting down database
USER (ospid: 1371): terminating the instance due to error 704
Instance terminated by USER, pid = 1371
ORA-1092 signalled during: alter database open...
ORA-1092 : opiodr aborting process unknown ospid (1371_1)
Mon Jun 08 12:53:46 2009
ORA-1092 : opitsk aborting processHi Forstmann,
Thanks for your reply.
Can you tell me whether the follwing steps will bring up the database.
1. Bring up the Production database up in UAT server
sqlplus "/as sysdba"
startup mount
alter database rename file (For datafile and redolog) to change from production location to UAT.(Using this method if any recovery needed done by smon)
shutdown immediate.
sqlplus "/as sysdba"
startup upgrade
SQL> spool upgrade.log
SQL> @?/rdbms/admin/catupgrd.sql
then run the catalog and catproc script.
OPen the database.
take the trace file.
shutdown immediate.
2. Open the UAT database.
sqlplus "/as sysdba"
startup nomount
run the control reuse script
open the database.
Whether this steps will help. Please suggest me.
Thanks you
Pramodh -
DB migration from 9i to 10g (in a new server) using a cold backup
We have a cold backup of a 9.2.0.5 database,
we would like to migrate this 9i DB to a new server with only 10g software already installed.
1- can we use DBUA to do the migration?
2- should we start the database before running DBUA?
3- if yes then we need to prepare the pfile, and the password file?
we would like to avoid installing 9i in the new server
Thanks for helpI have to Install 10g on Solaris 10 on a new server and then move my old >database which is 9i on Solaris 9 to the new box. I'm not sure how to go about >doing all this right since I'm new in the dba field and this is production.How much down time you have to perform this activity?
How big is your database?
Since you're moving the database from one server to another, You have to proceed with Export/import or datapump export/import(only if you can upgrade your 9i database to 10g). -
Partial restore from Cold backup
Hi,
I want to create a copy of our dev database to another server.
We have Oracle 10.2.0.4 server running on Solaris 10 OS.
This database is @ 120GB in size and has got lots of application data.
Now I want to create a copy of this DB without having the application data.
Can I do the following?
1. Take cold backup of this database.
2. copy the oracle binaries, controlfile, logfile to target server.
3. copy the datafiles only for SYSTEM, UNDO, TEMP and SYSAUX tablespace to target.
4. restore / create the new database? - will you pls provide me the steps for this?
Thanks,
DRHi,
In order to create a clone of your dev database trough the copy procedure you have to follow these steps:
1. Take a cold backup of your database files (and i mean ALL the files: controlfile, data files, etc)
2. Take a "cold" backup of oracle binaries (with your instance down, copy $ORACLE_HOME dir)
3 You have to ensure you have the directory structure in the new server.
4. The new server must accomplish with all the libraries requiered for clean installation (that's because you have to relink oracle binaries)
5. Once the oracle binaries are in $ORACLE_HOME, run "relink all". If everything is fine, you don't have to see any errors; if not, check the log.
6. After a succesful relink, you have to copy the database files on their corresponding directories.
7. Start the instance.
I know, it's not a friendly process, but it works.
I offer you another way.
1. Install another engine (same as your dev server).
2. Clone your dev database with one of the following procedures:
2.a. RMAN Clone
2.b. Directly import with oracle data pump.
regards -
ORA-00314 - Restoring from Cold Backup. ( Redologs on Raw Disk startup)
Greetings,
We're running Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production ( Solaris Sparc )
we've recently switched to redologs on raw disks to improve DB write performance. Have taken a cold backup of db , But db denies to open normally after restoration.
Any ideas what could be wrong? and how to fix this?
TIA,
SQL> startup;
ORACLE instance started.
Total System Global Area 1.0737E+10 bytes
Fixed Size 1996520 bytes
Variable Size 3640658200 bytes
Database Buffers 7063207936 bytes
Redo Buffers 31555584 bytes
Database mounted.
ORA-00314: log 1 of thread 1, expected sequence# doesn't match
ORA-00312: online log 1 thread 1: '/dev/rdsk/c1t4d0s3'
ORA-00312: online log 1 thread 1: '/dev/rdsk/c1t5d0s3'Try this ..
First i create a backup of control file:
SQL> alter database backup controlfile to trace;
Database altered.
Then i check udump directory. There are some trace files To find out which one contains control file, i simply make a text search :
testdb oracle@aurora:/data06/app/oracle/admin/testdb/udump> grep 'CREATE CONTROLFILE REUSE DATABASE' *.*
testdb_ora_181267.trc:CREATE CONTROLFILE REUSE DATABASE "testdb" NORESETLOGS NOARCHIVELOG
testdb_ora_181267.trc:CREATE CONTROLFILE REUSE DATABASE "testdb" RESETLOGS NOARCHIVELOG
I execute the commands which is included with CREATE CONTROLFILE REUSE DATABASE
SQL> startup nomount
ORACLE instance started.
Total System Global Area 314572800 bytes
Fixed Size 1302944 bytes
Variable Size 106700384 bytes
Database Buffers 205520896 bytes
Redo Buffers 1048576 bytes
SQL> CREATE CONTROLFILE REUSE DATABASE "testdb" RESETLOGS NOARCHIVELOG
2 MAXLOGFILES 4
3 MAXLOGMEMBERS 4
4 MAXDATAFILES 1000
5 MAXINSTANCES 1
6 MAXLOGHISTORY 4544
7 LOGFILE
8 GROUP 1 '/data07/oradata/testdb/redo01.log' SIZE 50M,
9 GROUP 2 '/data07/oradata/testdb/redo02.log' SIZE 50M,
10 GROUP 3 '/data07/oradata/testdb/redo03.log' SIZE 50M
11 DATAFILE
12 '/data07/oradata/testdb/system01.dbf',
13 '/data07/oradata/testdb/undo01.dbf',
14 '/data07/oradata/testdb/sysaux01.dbf',
15 '/data07/oradata/testdb/users01.dbf',
16 '/data07/oradata/testdb/data01.dbf',
17 '/data07/oradata/testdb/work01.dbf',
18 '/data07/oradata/testdb/ascs01.dbf',
19 '/data07/oradata/testdb/uccs_data01.dbf',
20 '/data07/oradata/testdb/uccs_index01.dbf'
21 CHARACTER SET WE8ISO8859P9
22 ;
Control file created.
Then recover db.
SQL> RECOVER DATABASE USING BACKUP CONTROLFILE -
Could anyone please send me Shell script for taking Cold backups on solaris
The script will be run and will start taking backup
if possible Automatically it will Down and UP the Database
Thanks
MarkI'm sure that a short google search should find some example for you.
Here some scripts :
http://orafaq.com/scripts/
http://www.dbasupport.com/oracle/scripts/Backup_Recovery/
But, that would be better to google for more results :
http://www.google.fr/search?q=oracle+script+backup&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:fr:official
Nicolas. -
Scripted Cold Backups / Archived Logs / Flashback
Facts:
uname -a:
SunOS {hostname omitted} 5.8 Generic_117350-39 sun4u sparc SUNW,Sun-Fire-V240
select * from v$version:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Solaris: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Archivelog enabled
Flashback enabled
db_flashback_retention_target = 7200 (5 days)
archive_lag_target = 1800 (30 minutes)
No, we are not using rman (yet). This system does not have a 24/7 SLA, so we run a cold backup every Saturday: a shell script shuts down the database and copies all the necessary files to a safe location on another host.
We do have one problem: an accumulation of archived logs. I know that we don't need to keep the logs older than the latest cold backup, but I am unsure of the correct way to clean them up, especially given that we have flashback enabled. Any suggestions?
Thanks!I think maybe I just found the answer to my own question.
Upon examining the flashback_recovery_area more closely, I see an archivelog directory and a flashback directory, which contains a number of flb files going back to 12/14 (today is 12/20). This makes a certain amount of sense since we have the flashback retention target set to 5 days.
Would I be correct in stating that the flashback files are self-managing and completely independent of the archived logs?
Would I also be correct in stating that I can happily delete the archive logs older than my last cold backup?
The thing which gives me pause is that I swear I remember reading somewhere that flashback uses the archived logs. Did I misunderstand something? -
Should we backup Archivelogs for ad-hoc Cold backups ?
B version: 11.2
OS version : Solaris 5.10
Below is the script we use for ad-hoc cold backups. Is there a need to take the backup of archivelogs when we do the cold backup ?
Sometimes archivelog backup piece's size is bigger than the backup piece containing the full backup of the DB itself ! So, too much disk space is wasted.
The script we use
run
allocate channel t1 type disk;
sql 'alter system archive log current';
shutdown immediate;
startup mount;
backupĀ full database format='/mypath/ORCL_full_%U_%T.bkp' tag='ORCL_full';
backup archivelog all tag='arch_bkp' format='/mypath/ORCL_BKP/arch_%U_%T.bkp' delete input;
release channel t1;
}Hello;
A cold backup is a consistent state. So you don't have to back them up. No new archived logs generated during the backup either so you are still OK.
For other types of RMAN backup you ALWAYS want this. This guarantees that datafile backups taken during the command are recoverable to a consistent state.
Best Regards
mseberg -
How to recover a cold backup (Oracle 9i)
Hello,
We got the following situation, one of our clients wants to switch from Oracle 9i to Microsoft SQL Server 2008.
Our client is located in Singapore and we operate in Belgium, they have sent us an external HD with a media/cold backup of their database.
We also got both the database name and the passwords for the database.
In order to get this database available I have taken the following steps:
1)Created an Virtual Machine with Windows XP SP3,
2)Installed Oracle 9i on this VM,
3)Created a database using the database name and passwords given by the client.
Now I want to recover our clients database, how do I do this.
I know there texts about it, but I need a step for step guide to do this (that's the way I learn by seeing how its done and then reproduce it)
Thanks for any responseAfter some calls and putting pressure on our client IT I've been able to find out that there either using 11 or 10g.
Also found out that the name they gave me is not the name they use
So I followed the instructions on [http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/create.htm#1000691] , I did find some mistakes in the page
I got the following create database statement
CREATE DATABASE dbname
USER SYS IDENTIFIED BY pz6r58
USER SYSTEM IDENTIFIED BY y1tz5p
LOGFILE GROUP 1 ('D:\dbname\redo01.log') SIZE 100M,
GROUP 2 ('D:\dbname\redo02.log') SIZE 100M,
GROUP 3 ('D:\dbname\redo03.log') SIZE 100M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
MAXINSTANCES 1
CHARACTER SET US7ASCII
DATAFILE 'D:\dbname\system01.dbf' SIZE 700M REUSE
EXTENT MANAGEMENT LOCAL
DEFAULT TEMPORARY TABLESPACE tempts1
TEMPFILE D:\dbname\temp01.dbf' *(The documentation said datafile instead of tempfile)*
SIZE 270M REUSE
SYSAUX DATAFILE 'D:\dbname\sysaux01.dbf' size 700M reuse
UNDO TABLESPACE undotbs
DATAFILE 'D:\dbname\undotbs01.dbf'
SIZE 3984M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED;
after executing
ORA-01501: CREATE DATABASE failed
ORA-00200: controlfile could not be created
ORA-00202: controlfile: 'D:\dbname\control01.ctl'
ORA-27038: file exists
OSD-04010: <create> option specified, file already exist
So what did I do wrong, altough I'm guessing I copied the original files to early
[code="sql"]DATAFILE 'D:\dbname\system01.dbf' SIZE 700M REUSE
Although I did use reuse
I shutdown the database and removed the files to and replaced them with the files from the client,
Mounted the database succesfully and tried to query the metadata
Mixing the information found on
Creating an Oracle Database,
Oracle Recovery Procedure
Got ORA-01219, which is logical since the databse isn't open yet.
I open the database using alter database open
ORA-01157: cannot identify data file 1 - file not found
ORA-01110: data file 1: '/home/oracle/product/10.1.0/oradata/orcl/system01.dbf'
So any ideas want went wrong this time
Edited by: Resender on 19-mei-2011 1:00
Maybe you are looking for
-
QM Inspection Plans migration - How to migrate deleted plans.
Hello All, I'm currently working on a migration project from 4.7 to 6.0. Our customer wants to migrate all QM inspection plans, including those are marked as deleted (PLKO-LOEKZ = 'X'). I'm using BAPI_INSPECTIONPLAN_CREATE. The BAPI works fine when t
-
Autonumber bug in headings following a procedure
Hoping someone has an answer to this... I'm on Frame 11 (11.0.0.380) on Windows 7. I'm running into a strange issue with headings that are autonumbered. Everything works as expected... until I include a proccedure that has autonumbered steps and sub-
-
[SOLVED]stucked while creating templaet
hi frs, i need to create a templaet like this employee number Fieldwork1 fieldwork2 fieldwork3 11111111111111 20 30 10 22222222222222 30 40 5 fieldwork1,fieldwork2,fieldwork3 are attribute7 shown in XML file below how to make it. help pls Regards Raj
-
Re: BAPI_ROUTING_UPLOAD
Dear PP Experts We are working with Product costing and Production planning modules and we get peculiar behaviour as mentioned below We used the program BAPI_ROUTING_UPLOAD to put the routing in place. After execution of the standard cost estimate we
-
Hi, Can anybody tell me some documentation to learn Reguler Expression. Thanks®ards, Chandan