Recover database oracle 9i Solaris 9
I am trying to recover my database. I get this error:
SQL> recover database;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
Pls assist.
I supposed that you recover database using backup control files.
So you should to use the following
recover database using backup controlfile until cancel;
Similar Messages
-
I got error when I export database ORACLE 9i from solaris 9.
I want to export full database ORACLE 9i from SOLARIS 9 to import full database on ORACLE 9i on windows.
I set oracle environment and NSL_LANG with command:
bash-3.00$ export ORACLE_SID=TIS
bash-3.00$ export NLS_LANG=AMERICAN_AMERICA.TH8TISASCII
and then run command to export:
bash-3.00$ exp system/manager@TIS full=y file= /u03/dmp/TISfull.dmp log=/u03/dmp/exp_TIS.log
I got error message as:
Export: Release 9.2.0.1.0 - Production on Thu Oct 8 17:57:32 2009
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Export done in TH8TISASCII character set and UTF8 NCHAR character set
About to export the entire database ...
. exporting tablespace definitions
. exporting profiles
. exporting user definitions
. exporting roles
. exporting resource costs
. exporting rollback segment definitions
. exporting database links
. exporting sequence numbers
. exporting directory aliases
. exporting context namespaces
. exporting foreign function library names
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions
. exporting system procedural objects and actions
. exporting pre-schema procedural objects and actions
EXP-00008: ORACLE error 25153 encountered
ORA-25153: Temporary Tablespace is Empty
ORA-06512: at "SYS.DBMS_AW", line 42
ORA-06512: at "SYS.DBMS_AW", line 105
ORA-06512: at "SYS.DBMS_AW", line 221
ORA-06512: at "SYS.DBMS_AW_EXP", line 264
ORA-06512: at line 1
EXP-00083: The previous problem occurred when calling SYS.DBMS_AW_EXP.schema_info_exp
. exporting cluster definitions
EXP-00056: ORACLE error 25153 encountered
ORA-25153: Temporary Tablespace is Empty
ORA-06512: at "SYS.DBMS_LOB", line 424
ORA-06512: at "SYS.DBMS_METADATA", line 1140
ORA-06512: at line 1
EXP-00056: ORACLE error 25153 encountered
ORA-25153: Temporary Tablespace is Empty
ORA-06512: at "SYS.DBMS_LOB", line 424
ORA-06512: at "SYS.DBMS_METADATA", line 1140
ORA-06512: at line 1
EXP-00000: Export terminated unsuccessfully
How can I solve this problem?
Any suggestion?#### HOW to solve it.
## To check the default temporary tablespace of the database:
SQL> select property_name, property_value from database_properties;
## check DEFAULT_TEMP_TABLESPACE, if it use wrong temporary tablespace, run:
SQL> alter database default temporary tablespace temp;
## check user with temporary tablespace, run command:
SQL> select username, temporary_tablespace, account_status from dba_users;
## change temporary tablespace:
SQL> create temporary tablespace temp1 tempfile '/data/u01/app/oracle/oradata/TIS/temp_b.dbf' size 100m;
SQL> alter database default temporary tablespace temp1;
SQL> drop tablespace temp including contents and datafiles;
SQL> create temporary tablespace temp tempfile '/data/u01/app/oracle/oradata/TIS/temp01.dbf' size 100m autoextend off extent management local uniform size 1m;
SQL> alter database default temporary tablespace temp;
SQL> drop tablespace temp1 including contents and datafiles;
Thanks -
Can i use Oracle Database Audit Vault and Oracle Database Firewall on Solaris?
Can i use Oracle Database Audit Vault and Oracle Database Firewall on Solaris?
4195bee8-4db0-4799-a674-18f89aa500cb wrote:
i dont have access to My Oracle Support can u send text or html of document please?
Moderator Action:
No they cannot send you a document that is available only to those with access to MOS.
That would violate the conditions of having such service contract credentials.
Asking someone to violate such privileges is a serious offense and could get that other person's organization banned from all support and all their support contracts cancelled.
Your post is locked.
Your duplicate post that you placed into the Audit Vault forum space has been removed (it had no responses).
This thread which you had placed in the Solaris 10 forum space is moved to the Audit Vault forum space.
That's the proper location for Audit Vault questions. -
Migrate Oracle 9i Database to Oracle 10g Solaris Platform
Hi DBAs,
Thank you very much all of you, you helped me in RMAN Duplicate Database, There was a problem in my backupset and now it has been resolved.
I have now following task.
I want to migrate Oracle 9i Database to Oracle 10g ASM, both are on Solaris platform. Please provide me step by step solution. I have very big Database about 250G Database.In the "Complete checklist for manual upgrades to 10gR2" is written:
PREREQUISITES
=============
+ Install Oracle 10g Release 2 in a new Oracle Home.
+ Install the latest available patchset from Metalink.
+ Install the latest available Critical Patch Update.
... so "Install the latest available Critical Patch Update" step is that for the Oracle 10g database Oracle Home or Oracle 9i database Oracle Home ? I think that is for the 10g database/ Oracle Home ...
after applying the CPU pacht there is some "Post Installation Instructions":
3.3.5 Post Installation Instructions which demande a connection to the database:
3. For each database instance running out of the ORACLE_HOME being patched, connect to the database using SQL*Plus as SYSDBA and run catcpu.sql as follows:
cd %ORACLE_HOME%\CPU\CPUJan2007
sqlplus /nolog SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catcpu.sql
SQL> QUIT
My question is ... If I want to upgrade a 9i database to 10g and I apply this CPU before the upgrade is done (to 10g Oracle Home), how could I connect to an instance which is not present to run this script ? ... is this step mandatory or is optional ?
Thanks,
P. -
Oracle database installation in solaris using RAC
hai everyone
i want to install in my pc RAC configuration in solaris install database oracle 10g.
i want proper document step by step.
help me
deendbaPC and solaris? How do you plan to perform this task? by means of virtual machines? Please specify. In the mean time you may want to check the install RAC documentation for solaris.
Oracle® Database Oracle Clusterware and Oracle Real Application Clusters Installation Guide
10g Release 2 (10.2) for Solaris Operating System
Part Number B14205-07
~ Madrid. -
ERROR install oracle database 10gR2 in solaris sparc 64
Dear All,
I got error when installing oracle database 10gR2 on solaris sparc 64.
these are the messages:
/usr/ccs/bin/make -f ins_precomp.mk relink ORACLE_HOME=/usr/app/oracle/product/10.2.0/db_1 EXENAME=proc/Linking /usr/app/oracle/product/10.2.0/db_1/precomp/li
b/proc
ld: fatal: file /usr/app/oracle/product/10.2.0/db_1/lib32/libclntsh.so: unknown file type
ld: fatal: File processing errors. No output written to /usr/app/oracle/product/10.2.0/db_1/precomp/lib/proc
*** Error code 1
The following command caused the error:
echo "Linking /usr/app/oracle/product/10.2.0/db_1/precomp/lib/proc"; \
rm -f /usr/app/oracle/product/10.2.0/db_1/precomp/lib/proc; \
/usr/ccs/bin/ld -o /usr/app/oracle/product/10.2.0/db_1/precomp/lib/proc -L/usr/app/oracle/product/10.2.0/db_1/precomp/lib/ -L/usr/app/oracle/product/10.2
.0/db_1/lib/ -dy /usr/app/oracle/product/10.2.0/db_1/lib/prod/lib/v9/crti.o /usr/app/oracle/product/10.2.0/db_1/lib/prod/lib/v9/crt1.o /usr/app/oracle/product
/10.2.0/db_1/lib/s0main.o /usr/app/oracle/product/10.2.0/db_1/precomp/lib/pdc.o /usr/app/oracle/product/10.2.0/db_1/precomp/lib/pds.o /usr/app/oracle/product/
10.2.0/db_1/precomp/lib/libproc2.a /usr/app/oracle/product/10.2.0/db_1/lib/libslax10.a /usr/app/oracle/product/10.2.0/db_1/precomp/lib/libpgp.a -lpls10 -lplp
10 /usr/app/oracle/product/10.2.0/db_1/lib/libplc10.a -lsnls10 -lunls10 -lnls10 /usr/app/oracle/product/10.2.0/db_1/rdbms/lib/kpudfo.o -lclntsh `cat /usr/ap
p/oracle/product/10.2.0/db_1/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /usr/app/oracle/product/10.2.0/db_1/lib/
ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lmm -lsnls10 -lnls10 -lcore10
-lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat /usr/app/oracle/product/10.2.0/db_1/lib/ldflags`
-lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /usr/app/oracle/product/10.2.0/db_1/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10
-lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lpls10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -
lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lsnls10 -lnls10 -lcore10 -lsnls10
-lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat /usr/app/oracle/product/10.2.0/db_1/lib/sysliblist` -R
/opt/SUNWcluster/lib/sparcv9:/usr/app/oracle/product/10.2.0/db_1/lib:/opt/ORCLcluster/lib/ -Y P,:/opt/SUNWcluster/lib/sparcv9:/opt/ORCLcluster/lib/:/usr/ccs
/lib/sparcv9:/usr/lib/sparcv9 -Qy -lc -laio -lposix4 -lm /usr/app/oracle/product/10.2.0/db_1/lib/prod/lib/v9/crtn.o; \
/bin/chmod 755 /usr/app/oracle/product/10.2.0/db_1/precomp/lib/proc
make: Fatal error: Command failed for target `/usr/app/oracle/product/10.2.0/db_1/precomp/lib/proc'
/usr/ccs/bin/make -f ins_precomp.mk relink ORACLE_HOME=/usr/app/oracle/product/10.2.0/db_1 EXENAME=proc/Linking /usr/app/oracle/product/10.2.0/db_1/precomp/li
b/proc
ld: fatal: file /usr/app/oracle/product/10.2.0/db_1/lib32/libclntsh.so: unknown file type
ld: fatal: File processing errors. No output written to /usr/app/oracle/product/10.2.0/db_1/precomp/lib/proc
*** Error code 1
any help would be appreciate.
Thank you
Regards,
SpiritI'm not sure with the solaris sparc 64.
but the most common problem with Linux x86_64 which I assume probably similar. that type of error caused by
you have to install glibc-devel-32 bit and libstdc++-devel 32 bit together with your 64 bit. both libraries required by the Oracle to solve the linking problem.
http://forums.oracle.com/forums/thread.jspa?messageID=1254866
probably it will help you.
sorry, this is just my guessing of your problem.
thanks -
How can I install Oracle Database 10g for Solaries (SPARC) from the console
Dear Forum Members,
In my office, I have to installed Oracle Database 10g for Solaries (SPARC). But I have to do it without DISPLAY Monitor.Is it possible install it by remote login to this server using response file (silent mode) or something like that?
If yes. Then How?
If anyone have the exact solution, then I need your feedback. I shall wait for your reply.
Thanks
Aungshuman PaulThere are 2 possible ways to accomplish this.
First,
Silent installation
http://www.informit.com/articles/article.asp?p=174771&rl=1
Second, (cut/paste from other site)
How to install Oracle software remotely?
Remote Software Installation Steps: (For Solaris only)
If you want to install Oracle Software remotely, you should perform the following steps. These steps are applicable only if your source and target machine are running Unix.
For example, you can install Oracle Software from your home from Washington, DC to a target source in California.
1. Pick your source server or machine for remote installation.
2. Check that your CD is in your source CD-ROM drive.
3. On the target machine, find your target machine name with the output of the /usr/bin/hostname
4. On the source machine, login as a user.
5. On the source machine, enable client access: % /usr/openwin/bin/xhost + target-machine-name
6. Become root user by typing: su (dont use -)
7. Check that Volume Manger is running. # ps ef |grep vold (if you see an entry that contains /usr/sbin/vold, Volume Manager is running. Then skip to Step 10.
8. If not then do the following: # mkdir p /cdrom/your-cd-file-name
9. # mount F hsfs r cdrom-device /cdrom/your-cd-file-name
10. Add the following line to your /etc/dfs/dfstab file: # share F nfs o ro /cdrom/your-cd-file-name
11. Verify whether your source machine is an NFS server: # ps ef | grep nfsd
12. If you see an entry that contains /use/lib/nfs/nfsd a 16, then nfsd is running and skip to Step 16.
13. If nfsd is running, then type: # /usr/sbin/shareall
14. If nfsd is not running, then start nfsd by typing: # /etc/init.d/nfs.server start
15. Verify whether your source machine is an NFS server again by typing: # ps ef | grep nfsd
16. Make sure your source machine is exporting your product directory by typing: # /usr/sbin/dfshares
17. Now, log in to the target machine by type: # rlogin target-machine-name l user (not root)
18. Then log in as the root user by typing: # su
19. Go to the source machine by typing: # cd /net/source-machine/cdrom/your-cd-file-name ,then Skip to 24.
20. If you cannot change to that directory in Step 19 and you do not have an auto-mounter on your network, then create amount point by typing the following commands.
21. # mkdir /remote_products
22. # /usr/sbin/mount F nfs r source-machine:/cdrom/your-cd-file-name /remote_products
23. # cd /remote_products
24. Redirect the target machine display to source machine by typing: # DISPLAY=source-machine:0; export DISPLAY (if you use a Bourne or Korn shell).
25. Start the Web Start Installer by typing: # ./installer (or whatever the installer name program is). -
Recover database from archive log: Time based recovery
Hi,
Could you pelase help regarding the following:
I have power outage in my machine running oracle 9i on Solaris OS 9
Oracle is mounted but failed to open
Once it is started showing the error message
SQL> startup;
ORACLE instance started.
Total System Global Area 9457089744 bytes
Fixed Size 744656 bytes
Variable Size 3154116608 bytes
Database Buffers 6291456000 bytes
Redo Buffers 10772480 bytes
Database mounted.
ORA-01113: file 4 needs media recovery
ORA-01110: data file 4: '/opt/oracle/oradata/sysdb/indx/indx01.dbf'
So I tried to recover the database
SQL> recover database;
ORA-00279: change 1652948240 generated at 12/03/2007 13:09:08 needed for thread
1
ORA-00289: suggestion : /opt/oracle/oradata/nobilldb/archive/1_183942.dbf
ORA-00280: change 1652948240 for thread 1 is in sequence #183942
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
ORA-00279: change 1652948816 generated at 12/03/2007 13:09:19 needed for thread
1
ORA-00289: suggestion : /opt/oracle/oradata/nobilldb/archive/1_183943.dbf
ORA-00280: change 1652948816 for thread 1 is in sequence #183943
ORA-00278: log file '/opt/oracle/oradata/nobilldb/archive/1_183942.dbf' no
longer needed for this recovery
The power outage at 16:00pm and the recovery archive log file '/opt/oracle/oradata/nobilldb/archive/1_183942.dbf' at 11 am
Always I am applying the next sequence it is giving the same message and asking the next sequence. I have more than 900 archive log from 11am to 4pm and each of them having the size of 100mb and it take 1 minute to get back from each to provide this error message.
How I can start my recovery from say 15:45 onwards until 16:15?
I have all archive logs in the proper destination.
Still my database is not opened and it is starts applying archive log since 5 hours back, please help me regarding this
Thanks in advanceWrong forum. Post your question in the following forum:
General Database Discussions -
Recover Database Failed..
Hi,
I am trying to recover my Oracle 9i v9.2.0.4 database running on Solaris 9 (sparc). Database is in archived log mode and RMAN is also used to perform incremental and full backups.
My database died with an internal error and so far I can restore it from within RMAN with no problem. When I execute "Recover database", I see the following:
RMAN> recover database;
Starting recover at 12-APR-04
using channel ORA_DISK_1
using channel ORA_DISK_2
channel ORA_DISK_1: starting incremental datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
destination for restore of datafile 00003: /ora02/app/oracle/oradata/sunesdb/cwmlite01.dbf
destination for restore of datafile 00005: /ora02/app/oracle/oradata/sunesdb/example01.dbf
destination for restore of datafile 00006: /ora02/app/oracle/oradata/sunesdb/indx01.dbf
destination for restore of datafile 00010: /ora02/app/oracle/oradata/sunesdb/xdb01.dbf
channel ORA_DISK_2: starting incremental datafile backupset restore
channel ORA_DISK_2: specifying datafile(s) to restore from backup set destination for restore of datafile 00001: /ora02/app/oracle/oradata/sunesdb/system01.dbf
destination for restore of datafile 00008: /ora02/app/oracle/oradata/sunesdb/tools01.dbf
channel ORA_DISK_1: restored backup piece 1
piece handle=/ora_backup/ora_df522977420_s309_s1 tag=TAG20040408T233019 params=NULL
channel ORA_DISK_1: restore complete
channel ORA_DISK_2: restored backup piece 1
piece handle=/ora_backup/ora_df522977515_s311_s1 tag=TAG20040408T233019 params=NULL
channel ORA_DISK_2: restore complete
channel ORA_DISK_1: starting incremental datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
destination for restore of datafile 00002: /ora02/app/oracle/oradata/sunesdb/undotbs01.dbf
destination for restore of datafile 00004: /ora02/app/oracle/oradata/sunesdb/drsys01.dbf
destination for restore of datafile 00007: /ora02/app/oracle/oradata/sunesdb/odm01.dbf
destination for restore of datafile 00009: /ora02/app/oracle/oradata/sunesdb/users01.dbf
channel ORA_DISK_1: restored backup piece 1
piece handle=/ora_backup/ora_df522977420_s310_s1 tag=TAG20040408T233019 params=NULL
channel ORA_DISK_1: restore complete
starting media recovery
media recovery failed
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 04/12/2004 17:10:44
ORA-00283: recovery session canceled due to errors
RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed start
ORA-00283: recovery session canceled due to errors
ORA-00600: internal error code, arguments: [3020], [8388729], [1], [154], [167160], [16
ORA-10567: Redo is inconsistent with data block (file# 2, block# 121)
ORA-10564: tablespace UNDOTBS1
ORA-01110: data file 2: '/ora02/app/oracle/oradata/sunesdb/undotbs01.dbf'
ORA-10560: block type 'KTU SMU HEADER BLOCK'
RMAN>
I also tried to restore and recover to 08-Apr-04, the day before it crashed. This can be done successfully but I still cannot open the database.
The error says I need to used RESETLOGS or NORESETLOGS. I followed but the database still refused to open.
What should I do to get the database back online? I am not DBA trained and hence kindly list me the steps to follow.
Is it possible to start without the undotsb01.dbf and then rebuild it? What would I lose by doing this? Any alternatives?
Thank you very much!Bad news.. I forgot to turn off my cron jobs last night and it seems that my backups were overwritten. I cannot restore back to 08-APR-04 as it reported RMAN-06023: no backup or copy of datafile found to restore.
Any way to resolve the undotsb01.dbf problem so that I can startup my database again? -
Recover database to new server problem
Hi all,
I'm running a production 10.2.0.4 DB in archivelog mode on Solaris 10.8. I used RMAN with a recovery catalog to execute the stored script:
run{sql 'alter system archive log current';
backup incremental level 0
database archivelog all delete input;}
I copied the rman files and spfile to a test server with the same directory structres. No Problem.
Using "rman target /" I started the database in nomount and restored the controlfile from backup and mounted the database. No Problem.
Still within the RMAN session, I restored the 1TB worth of datafiles. The restore completed, no problem.
I then issued the command, "recover database;" PROBLEM, RMAN said datafile1 "System.dbf" needs more recovery to be in a consistent state.
WHY? I issued the commands, "alter system archive log current;" and "archivelog all delete input" in my script.
Why does it need the next archivelog to be consistent?
I was under the impression that all I need to recover a database with rman was the output files from RMAN.
I copied the next archivelog over and in SQLPLUS as SYS I issued the command, " recover database using backup controlfile until cancel;"
I canceled the recovery when it asked for the next archivelog and opened database reset logs.
If I didn't have access to the next archive log how would I solve this problem?Your BACKUP should be executed as BACKUP DATABASE PLUS ARCHIVELOG. The "PLUS ARCHIVELOG" causes Oracle to issue an ALTER SYSTEM SWITCH LOGFILE at the end of the database backup so that the ArchiveLog generated gets picked up by the subsequent Backup of the ArchiveLog as well.
Your first RECOVER DATABASE command was attempting a Complete recovery. Had you specified an UNTIL clause, Oracle would know that you wanted an Incomplete recovery upto the last available archivelog. Your second RECOVER DATABASE with the UNTIL CANCEL was an Incomplete Recovery.
Hemant K Chitale -
Recover Database complains of version
This is not technicaly a RMAN question but it seemed the most appropriate forum.
I am testing some database recovery scenarios so I know what I'm doing if I have a real problem.
I have a database that I have replicated to another machine and have current control files and archive logs, but am restoring an older set of datafiles to try and recover using the archive log information.
The archives were created on another server, but I have tried to mirror that install on a nother system. I have restored the control and archive log files from a more recent "hot" backup and the datafiles from an older "cold" backup. When I attempt a manual or auto recovery I get the following error:
ORA-00331: log version 8.1.0.0.0 incompatible with ORACLE version 8.0.5.0.0
ORA-00334: archived log: '/var/opt/oracle/admin/ORCL/arch/arch_1_34963.arc'
Both this instance and the instance that created the original files were backup up from are running 8.1.6.0.0
Any ideas why I would be seing this? I did a similar test about a month ago with no problems, I can't figure out what is different. Here is a log of the session: Sorry if the formatting get's mangled)
Oracle Server Manager Release 3.1.6.0.0 - Production
Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.
Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production
SVRMGR> connect internal
Connected.
SVRMGR> startup mount
ORACLE instance started.
Total System Global Area 55152624 bytes
Fixed Size 69616 bytes
Variable Size 15777792 bytes
Database Buffers 39124992 bytes
Redo Buffers 180224 bytes
Database mounted.
SVRMGR> select * from v$version;
BANNER
Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
PL/SQL Release 8.1.6.0.0 - Production
CORE 8.1.6.0.0 Production
TNS for Solaris: Version 8.1.6.0.0 - Production
NLSRTL Version 3.4.0.0.0 - Production
5 rows selected.
SVRMGR> recover database
ORA-00279: change 2203988 generated at 01/30/2001 08:05:10 needed for thread 1
ORA-00289: suggestion : /var/opt/oracle/admin/ORCL/arch/arch_1_34963.arc
ORA-00280: change 2203988 for thread 1 is in sequence #34963
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
ORA-00331: log version 8.1.0.0.0 incompatible with ORACLE version 8.0.5.0.0
ORA-00334: archived log: '/var/opt/oracle/admin/ORCL/arch/arch_1_34963.arc'
SVRMGR> set autorecovery on
Autorecovery ON
SVRMGR> recover database
ORA-00279: change 2203988 generated at 01/30/2001 08:05:10 needed for thread 1
ORA-00289: suggestion : /var/opt/oracle/admin/ORCL/arch/arch_1_34963.arc
ORA-00280: change 2203988 for thread 1 is in sequence #34963
ORA-00331: log version 8.1.0.0.0 incompatible with ORACLE version 8.0.5.0.0
ORA-00334: archived log: '/var/opt/oracle/admin/ORCL/arch/arch_1_34963.arc'
SVRMGR> shutdown
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SVRMGR> exit
Server Manager complete.
nullDennis,
What about the compatible parameter in the init.ora? What is it set to on the new host?
Thanks. -
Unable to recover database after rman recovery and database open resetlogs
I am running Oracle 10.2.0.5 on OpenSUSE 9. I have been trying to upgrade the database to 11g, through dbua. I was getting stuck at one point during the Oracle Server install and the upgrade failed and I was forced to restore the database to an earlier backup.
Below is the current place that I am stuck. As you can see I opened the database multiple times and reset the logs. Now I am afraid that my controlfile and redo log backups are out of sync and i can't get them back on track. Before when I actually got the database recovered RMAN would immediately throw:
RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row
RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT rows
OPA-00600: ORA-00600: internal error code, arguments: ...
The database would open with ALTER DATABASE RESETLOGS but any query on non-system tables would fail and throw:
ORA-04045: errors during recompilation/revalidation of LCRS_DEV1.FACILITY_REF
ORA-00600: internal error code, arguments: [17069], [0x1158ED180], [], [], [],
I hope I have not dug myself into too deep of a hole here.
Here is the trace from my most recent attempt.
RMAN> startup nomount;
connected to target database (not started)
Oracle instance started
Total System Global Area 3070230528 bytes
Fixed Size 2099424 bytes
Variable Size 301991712 bytes
Database Buffers 2751463424 bytes
Redo Buffers 14675968 bytes
RMAN> list incarnation of database;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of list command at 08/02/2011 15:49:04
ORA-01507: database not mounted
RMAN> restore controlfile from autobackup;
Starting restore at 02-AUG-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
recovery area destination: /opt/oracle/flash_recovery_area
database name (or database unique name) used for search: LCRSDEV
channel ORA_DISK_1: autobackup found in the recovery area
channel ORA_DISK_1: autobackup found: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758129928_73jr2s7p_.bkp
channel ORA_DISK_1: control file restore from autobackup complete
output filename=/opt/oracle/oradata/LCRSDEV/control01.ctl
output filename=/opt/oracle/oradata/LCRSDEV/control02.ctl
output filename=/opt/oracle/oradata/LCRSDEV/control03.ctl
Finished restore at 02-AUG-11
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
RMAN> list incarnation of database;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
1 1 LCRSDEV 756543625 PARENT 1 22-OCT-05
2 2 LCRSDEV 756543625 PARENT 525876 20-JAN-11
3 3 LCRSDEV 756543625 PARENT 92348137 18-JUL-11
4 4 LCRSDEV 756543625 PARENT 95654931 01-AUG-11
5 5 LCRSDEV 756543625 PARENT 95675699 01-AUG-11
6 6 LCRSDEV 756543625 PARENT 95676699 02-AUG-11
7 7 LCRSDEV 756543625 PARENT 95676700 02-AUG-11
8 8 LCRSDEV 756543625 CURRENT 95676701 02-AUG-11
RMAN> restore database until scn 95676700;
Starting restore at 02-AUG-11
Starting implicit crosscheck backup at 02-AUG-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
Crosschecked 6 objects
Finished implicit crosscheck backup at 02-AUG-11
Starting implicit crosscheck copy at 02-AUG-11
using channel ORA_DISK_1
Finished implicit crosscheck copy at 02-AUG-11
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758129928_73jr2s7p_.bkp
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/02/2011 15:52:04
RMAN-20208: UNTIL CHANGE is before RESETLOGS change
RMAN> restore database;
Starting restore at 02-AUG-11
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to /opt/oracle/oradata/LCRSDEV/system01.dbf
restoring datafile 00002 to /opt/oracle/oradata/LCRSDEV/undotbs01.dbf
restoring datafile 00003 to /opt/oracle/oradata/LCRSDEV/sysaux01.dbf
restoring datafile 00004 to /opt/oracle/oradata/LCRSDEV/users01.dbf
restoring datafile 00005 to /opt/oracle/oradata/LCRSDEV/LCRS_TBS.dbf
channel ORA_DISK_1: reading from backup piece /opt/oracle/flash_recovery_area/LCRSDEV/backupset/2011_07_22/o1_mf_nnndf_TAG20110722T111922_72m8rc5x_.bkp
channel ORA_DISK_1: restored backup piece 1
piece handle=/opt/oracle/flash_recovery_area/LCRSDEV/backupset/2011_07_22/o1_mf_nnndf_TAG20110722T111922_72m8rc5x_.bkp tag=TAG20110722T111922
channel ORA_DISK_1: restore complete, elapsed time: 00:23:36
Finished restore at 02-AUG-11
RMAN> recover database until scn 95676700;
Starting recover at 02-AUG-11
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 08/02/2011 16:16:28
RMAN-20208: UNTIL CHANGE is before RESETLOGS change
RMAN> recover database;
Starting recover at 02-AUG-11
using channel ORA_DISK_1
starting media recovery
archive log thread 1 sequence 90 is already on disk as file /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_90_72ml85v3_.arc
archive log filename=/opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73jr20qc_.arc thread=1 sequence=1
unable to find archive log
archive log thread=1 sequence=1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 08/02/2011 16:25:04
RMAN-06054: media recovery requesting unknown log: thread 1 seq 1 lowscn 95676701Thanks for the reply Hemant. I have reset the database for the controlfile that I am using as backup and now I am not able to recover until the correct SCN. I am thinking that my recovery catalog is bad. If I mount with the current controlfile I have this list of incarnations:
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
*1 1 LCRSDEV 756543625 PARENT 1 22-OCT-05*
*2 2 LCRSDEV 756543625 PARENT 525876 20-JAN-11*
*3 3 LCRSDEV 756543625 PARENT 92348137 18-JUL-11*
*4 4 LCRSDEV 756543625 PARENT 95654931 01-AUG-11*
*5 5 LCRSDEV 756543625 PARENT 95675699 01-AUG-11*
*6 6 LCRSDEV 756543625 PARENT 95676699 02-AUG-11*
*7 7 LCRSDEV 756543625 PARENT 95676700 02-AUG-11*
*8 8 LCRSDEV 756543625 PARENT 95676701 02-AUG-11*
*9 9 LCRSDEV 756543625 CURRENT 95676702 02-AUG-11*
However if I restore the controlfile to the earlier version I am getting the following output from the process:
RMAN> startup nomount;
connected to target database (not started)
Oracle instance started
Total System Global Area 3070230528 bytes
Fixed Size 2099424 bytes
Variable Size 301991712 bytes
Database Buffers 2751463424 bytes
Redo Buffers 14675968 bytes
RMAN> restore controlfile from '/opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_07_22/o1_mf_s_757164997_72m9rqw3_.bkp';
Starting restore at 03-AUG-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
output filename=/opt/oracle/oradata/LCRSDEV/control01.ctl
output filename=/opt/oracle/oradata/LCRSDEV/control02.ctl
output filename=/opt/oracle/oradata/LCRSDEV/control03.ctl
Finished restore at 03-AUG-11
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
RMAN> list incarnation of database;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
1 1 LCRSDEV 756543625 PARENT 1 22-OCT-05
2 2 LCRSDEV 756543625 PARENT 525876 20-JAN-11
3 3 LCRSDEV 756543625 CURRENT 92348137 18-JUL-11
RMAN> restore database until scn 92348137;
Starting restore at 03-AUG-11
Starting implicit crosscheck backup at 03-AUG-11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
Crosschecked 1 objects
Finished implicit crosscheck backup at 03-AUG-11
Starting implicit crosscheck copy at 03-AUG-11
using channel ORA_DISK_1
Finished implicit crosscheck copy at 03-AUG-11
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_01/o1_mf_1_1_73g3hn6o_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_01/o1_mf_1_2_73g3hnxq_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_01/o1_mf_1_1_73g0rts6_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_134_72v9gv4s_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_138_72v9p4b4_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_120_72v8wwg0_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_121_72v8x5ty_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_131_72v9cnrv_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_139_72v9q5ok_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_137_72v9n4t5_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_136_72v9l88q_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_123_72v8ytm8_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_132_72v9dcxd_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_124_72v8zkg0_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_128_72v96qm1_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_135_72v9jqmx_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_129_72v98q3r_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_125_72v91g3b_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_118_72v8v8r4_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_127_72v9626w_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_130_72v9bqtb_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_141_72vncy6g_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_122_72v8ycd4_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_126_72v94cns_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_133_72v9fb17_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_140_72vn6wgo_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_25/o1_mf_1_119_72v8v9hf_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73j3wo01_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_2_73josgf1_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73jr20qc_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_2_73jh223h_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73josflf_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73jvqdqs_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_3_73josh91_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_08_02/o1_mf_1_1_73j91rh9_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_91_72mqlnx9_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_111_72mrdr5m_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_96_72mqx958_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_114_72mrgsf9_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_94_72mqs6gj_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_102_72mr3893_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_99_72mr2h6c_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_104_72mr5hfm_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_109_72mrc83z_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_98_72mr080w_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_93_72mqq36m_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_97_72mqz0mm_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_116_72mrk268_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_101_72mr31yv_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_110_72mrddhg_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_95_72mqv3hp_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_105_72mr5vq4_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_115_72mrjd2s_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_106_72mr7hnt_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_100_72mr2qfc_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_112_72mrfc5j_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_107_72mr909t_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_103_72mr4pol_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_113_72mrfsb9_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_117_72mrl5mf_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_108_72mrb13l_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_90_72ml85v3_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_22/o1_mf_1_92_72mqnxz1_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_26/o1_mf_1_143_72y6ww71_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_26/o1_mf_1_144_72ybybps_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_26/o1_mf_1_142_72xt10j7_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/archivelog/2011_07_26/o1_mf_1_145_72yccy5z_.arc
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_01/o1_mf_s_758043324_73g3jfxx_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_01/o1_mf_s_758035850_73fw6vrc_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758133684_73jvr5px_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758127608_73jot9x0_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758109276_73j3xfom_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_08_02/o1_mf_s_758129928_73jr2s7p_.bkp
File Name: /opt/oracle/flash_recovery_area/LCRSDEV/autobackup/2011_07_22/o1_mf_s_757164997_72m9rqw3_.bkp
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/03/2011 12:53:19
RMAN-20208: UNTIL CHANGE is before RESETLOGS change
Edited by: K Doyle on Aug 3, 2011 10:22 AM -
Recover database in NOarchivelog mode :)
Hi all. How to recover a database wich is in noarchivelog mode? B-)
Suppose,
I have 3 redolog groups (with two members in each, the second members are located on another drive ). When first redo log group was 1/2 full I took a full backup. Then there were 2 switches from first to second and from second to third. Now the currnet redolog group - 3 (just started). At this point we faced media failer. How to roll forward changes using backup + online redologs?
Edited by: Junior Oracle DBA on Oct 16, 2008 1:53 PMRestore your database cold backup (excluding redo logs).
Then issue this command :
RECOVER DATABASE USING BACKUP CONTROLFILE
provide the names of the last ACTIVE / CURRENT Redo Logs in the database when Oracle prompts for an ArchiveLog.
When Oracle has finished recovery to a consistent point in time, it will return to the command prompt without any error.
Now issue this command :
ALTER DATABASE OPEN RESETLOGS
You would have a Complete Recovery.
This is provided that Oracle had NOT cycled through all the Online Redo Logs since the time when the Cold Backup was taken. (If Oracle had cycled through all the Online Redo Logs, it would have overwrriten the oldest log because it wasn't in ArchiveLog mode).
Hemant K Chitale
http://hemantoracledba.blogspot.com -
How to recover database without controlfile and redo files?
Hi all,
If I just have datafiles using hot backup saving in another machine, and all files in current database were lost including data files,control files and redo log files .
How can I recover database just using hot backup datafiles? without control file, without redo files.
Your help is greatly appreciated.alter database backup control file to trace
SQL> alter database backup controlfile to trace;
Go to udump folder in oracle home folder check the trace file copy these lines
CREATE CONTROLFILE REUSE DATABASE "O10G1 NORESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 454
LOGFILE
GROUP 1 'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\REDO01.LOG' SIZE 10M,
GROUP 2 'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\REDO02.LOG' SIZE 10M,
GROUP 3 'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\REDO03.LOG' SIZE 10M
-- STANDBY LOGFILE
DATAFILE
'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\SYSTEM01.DBF',
'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\UNDOTBS01.DBF',
'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\SYSAUX01.DBF',
'E:\ORACLE2\PRODUCT\10.1.0\ORADATA\O10G1\USERS01.DBF'
CHARACTER SET WE8MSWIN1252
Change the new database name abc
and REUSE replaced by SET and NORESTLOGS replaced by RESTLOGS above lines.
Save as C1.sql
C:\ set oracle_sid=instance name
C:\>sqlplus /nolog
SQL*Plus: Release 10.1.0.2.0 - Production on Tue Apr
11 06:44:28 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> connect / as sysdba;
Connected to an idle instance.
SQL> startup nomount
pfile='C:\oracle\product\10.1.0\admin\jeeno\pfile\jeenoinit.ora'
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145750508 bytes
Database Buffers 25165824 bytes
Redo Buffers 262144 bytes
SQL> @c1.sql
Control file created.
SQL> alter database open resetlogs;
Database altered -
How to recover database in this situation?
My os is windows 2000 server, the oracle database version is 9.2.0.1
And the database is in archivelog mode.
first: I backup the controlfile to trace
second: I added a new tablespace
third: I shutdown immediate the database
forth: I delete the controlfile and datafile of the new added database
then: I tried to recover my database.
But I meet troubles.
I am a user from China. Appreciate your help!
C:\>sqlplus
SQL*Plus: Release 9.2.0.1.0 - Production on 星期一 10月 24 21:05:24 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
请输入用户名: sys/nolog as sysdba
连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> archive log list
数据库日志模式 存档模式
自动存档 启用
存档终点 D:\oracle\ora92\RDBMS
最早的概要日志序列 0
下一个存档日志序列 1
当前日志序列 1
SQL> select group#, sequence#, archived, status from v$log;
GROUP# SEQUENCE# ARC STATUS
1 0 YES UNUSED
2 0 YES UNUSED
3 1 NO CURRENT
SQL> create tablespace user_data datafile
2 'd:\oracle\oradata\wwfdb\user_data01.dbf' size 50m;
表空间已创建。
SQL> create table t(a number) tablespace user_data;
表已创建。
SQL> insert into t values(10);
已创建 1 行。
SQL> commit;
SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> host del d:\oracle\oradata\wwfdb\*.CTL
SQL> host del d:\oracle\oradata\wwfdb\user_data01.dbf
SQL> startup nomount
ORACLE 例程已经启动。
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
SQL> CREATE CONTROLFILE REUSE DATABASE "WWFDB" NORESETLOGS ARCHIVELOG
2 MAXLOGFILES 50
3 MAXLOGMEMBERS 5
4 MAXDATAFILES 100
5 MAXINSTANCES 1
6 MAXLOGHISTORY 226
7 LOGFILE
8 GROUP 1 'D:\ORACLE\ORADATA\WWFDB\REDO01.LOG' SIZE 100M,
9 GROUP 2 'D:\ORACLE\ORADATA\WWFDB\REDO02.LOG' SIZE 100M,
10 GROUP 3 'D:\ORACLE\ORADATA\WWFDB\REDO03.LOG' SIZE 100M
11 DATAFILE
12 'D:\ORACLE\ORADATA\WWFDB\SYSTEM01.DBF',
13 'D:\ORACLE\ORADATA\WWFDB\UNDOTBS01.DBF',
14 'D:\ORACLE\ORADATA\WWFDB\CWMLITE01.DBF',
15 'D:\ORACLE\ORADATA\WWFDB\DRSYS01.DBF',
16 'D:\ORACLE\ORADATA\WWFDB\EXAMPLE01.DBF',
17 'D:\ORACLE\ORADATA\WWFDB\INDX01.DBF',
18 'D:\ORACLE\ORADATA\WWFDB\ODM01.DBF',
19 'D:\ORACLE\ORADATA\WWFDB\TOOLS01.DBF',
20 'D:\ORACLE\ORADATA\WWFDB\USERS01.DBF',
21 'D:\ORACLE\ORADATA\WWFDB\XDB01.DBF'
22 CHARACTER SET ZHS16GBK;
控制文件已创建
SQL> recover database until time '2005-10-24 21:10:33';
完成介质恢复。
SQL> alter database open;
alter database open
ERROR 位于第 1 行:
ORA-01589: ??????????? RESETLOGS ? NORESETLOGS ??
SQL> alter database open noresetlogs;
数据库已更改。
SQL> select * from t;
select * from t
ERROR 位于第 1 行:
ORA-00376: ???????? 11
ORA-01111: ???? 11 ???? - ?????????
ORA-01110: ???? 11: 'D:\ORACLE\ORA92\DATABASE\MISSING00011'
the above sql statement:
recover database until time '2005-10-24 21:10:33',the reason I choosed the time '2005-10-24 21:10:33'
is based the contents of alert.log file:
Mon Oct 24 21:10:20 2005
create tablespace user_data datafile
'd:\oracle\oradata\wwfdb\user_data01.dbf' size 50m
Mon Oct 24 21:10:32 2005
Completed: create tablespace user_data datafile
'd:\oracle\orHi,
why you create trace file ? and if you did that then you must have trace your ctl file after adding the tablespace for your db.so your ctl file will have registered the name of newly created tablespace.and if you do not have backup of ctl file which dosent contain the name of newly created tablespace then how would you recover your tablespace ? if you want to achieve your disered thoughts then add the tablespace and then backup of your full db then shutdown your db and delete your ctl file and data file.now open your db in nomount mode then restore your ctl file and datafile.
thanks
Alok
Maybe you are looking for
-
Advice on upgrade from Ecc 6.0 (No enhancement pack) to EHP 7
Dear Friends Our customer is thinking about upgrading from ECC 6.0 (No enhancement) to EhP 7. Can anybody tell me what are major efforts, steps and approx. time and precautions to consider in this case. thanks a lot in advance Victor
-
MBAM on Workgroup (non-domain) Computers
Hi, is it possible to manage non-domain computers with MBAM to deploy bitlocker? assuming policy is set by local policy or registry settings. thanks ahead,
-
Indesign Server CS6 on OSX slowed down
I have CS6 installation on Mac Pro 4,1 quad core with 16GB of ram with OSX 10.9. Only four instances are working now, and there are no other processes except one CS4 on this machine. After few months server have problem with speed, sometimes server i
-
Hi, We have some jars (not listed in the modules.xml) in our ear, from which we want to be able to dynamically reload some classes during development. Is there a way to expand these jars during deployment, so that we can use the regular dynamic reloa
-
Hi, I am business owner using PC for years at work. I use a blackberry for e-m and Outlook (last version) for many things... Is there a reliable and effective method for importing (using Mail or Entourage) my mailboxes and my old e-ms from Outlook? T