Recover controlfile with database in NOMOUNT state

Hi,
I'm doing some tests, destroying my test envinroment. At this time i was trying to recover a "missing" controlfile both via RMAN and ALTER DATABASE command, but they all have failed because i cannot mount my database and as my researches show, i am only able to recover a controlfile if my instance is in MOUNT, but i cannot mount it because of the missing controlfile. I saw that via RMAN, i can recover the controlfile from a backup if i use static service registration. This is the only manner?
Thanks for your attention
Version: 10.2.0.4
OS: Win 2003

Fabricio_Jorge wrote:
Hi,
I'm doing some tests, destroying my test envinroment. At this time i was trying to recover a "missing" controlfile both via RMAN and ALTER DATABASE command, but they all have failed because i cannot mount my database and as my researches show, i am only able to recover a controlfile if my instance is in MOUNT, but i cannot mount it because of the missing controlfile. I saw that via RMAN, i can recover the controlfile from a backup if i use static service registration. This is the only manner?
Thanks for your attention
Version: 10.2.0.4
OS: Win 2003I make new CONTROLFILE from SQL below
bcm@bcm-laptop:~$ cat restart.sql
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "V112" NORESETLOGS  NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 1168
LOGFILE
  GROUP 1 '/u01/app/oracle/oradata/v112/redo01.log'  SIZE 50M BLOCKSIZE 512,
  GROUP 2 '/u01/app/oracle/oradata/v112/redo02.log'  SIZE 50M BLOCKSIZE 512,
  GROUP 3 '/u01/app/oracle/oradata/v112/redo03.log'  SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
  '/u01/app/oracle/oradata/v112/system01.dbf',
  '/u01/app/oracle/oradata/v112/sysaux01.dbf',
  '/u01/app/oracle/oradata/v112/undotbs01.dbf',
  '/u01/app/oracle/oradata/v112/users01.dbf',
  '/u01/app/oracle/oradata/v112/example01.dbf'
CHARACTER SET AL32UTF8
-- Commands to re-create incarnation table
-- Below log names MUST be changed to existing filenames on
-- disk. Any one log file from each branch can be used to
-- re-create incarnation records.
-- ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/flash_recovery_area/V112/archivelog/2011_10_20/o1_mf_1_1_%u_.arc';
-- ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/flash_recovery_area/V112/archivelog/2011_10_20/o1_mf_1_1_%u_.arc';
-- Recovery is required if any of the datafiles are restored backups,
-- or if the last shutdown was not normal or immediate.
RECOVER DATABASE
-- Set Database Guard and/or Supplemental Logging
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
-- Database can now be opened normally.
ALTER DATABASE OPEN;
-- Commands to add tempfiles to temporary tablespaces.
-- Online tempfiles have complete space information.
-- Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/v112/temp01.dbf'
     SIZE 39845888  REUSE AUTOEXTEND ON NEXT 655360  MAXSIZE 32767M;
-- End of tempfile additions.
bcm@bcm-laptop:~$

Similar Messages

  • Got error while recover controlfile with rman

    Dear all,
    My controlfile and some datafiles were crash and i tried to recover their with rman as the following step:
    1. startup nomount;
    2. restore controlfile from autobackup;
    3. alter database mount;
    4. restore database;
    5.SELECT archivelog_change#-1 FROM v$database;
    ARCHIVELOG_CHANGE#-1
    1301671
    6.run {
    set until scn 1301671;
    recover database;
    executing command: SET until clause
    Starting recover at 01 พ.ย. 2006
    using channel ORA_DISK_1
    starting media recovery
    media recovery failed
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 11/01/2006 15:38:01
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database reco
    ver if needed
    start until change 1301671 using backup controlfile
    ORA-00283: recovery session canceled due to errors
    ORA-01190: controlfile or data file 1 is from before the last RESETLOGS
    ORA-01110: data file 1: 'C:\ORACLE\ORADATA\DB01\SYSTEM01.DBF'
    What happend? Please give me some advise.
    Thaks for advance !
    Chara

    After every resetlogs you have to take fresh backup.
    It seems you have opened your database in resetlogs and your backup is prior to this resetlogs.So the controlfile is showing inconsistance with the other datafiles.

  • The database is in mount or nomount state.

    I see similar posts, but I have not understood the solutions. This is my first installation of a DB. I'm taking a class that requires db 10g, and I'm trying to load it on my home computer. Windows XP pro. Everything seemed to be going well, until the point where it is suppose (by the instructions I'm following) to configure a new user account. When the URL:http://localhost:5500/em is suppose to open to the login page it gives me the following error page
    The database status is currently unavailable. It is possible that the database is in mount or nomount state.
    If I hit the "Startup" button I get the following page...
    Startup/Shutdown:Specify Host and Target Database Credentials
    Specify the following credentials in order to change the status of the database.
    It wants "Host Credentials" with username and password that no matter what I put in, it doesn't like. What are the "Host" Credentials?
    The installation I'm following is off of this site...
    http://www.course.com/cdkit/installinstructions_dbIII.cfm
    I can log in to SQL with the default Scott/Tiger - but (and I don't know anything about this really), if the db won't start a lot of good it does me.
    Anybody have any suggestions? I can't seem to establish a new user account for 10g, as the db is 'currently unavailable.''
    thanks,
    Dan

    Taj,
    You tried to help me before, and I have the same problem with a differnet computer. The installation goes great until I get to step 13 (listed below). When the Oracle Enterprise Manager 10g Database Control web page opens it tells me that the db is not online. I did what you said in previous posts - except the last post. Am I suppose to do that?
    I can't seem to create a new user. Actually I just tried to log on to http://localhost:5500/em and it said the page can't load.
    13.     When the End of Installation page displays and confirms that the installation was successful, click Exit, and then click Yes to confirm exiting. The Oracle Enterprise Manager 10g Database Control web page opens.
    Configuring a New User Account for the Oracle10g Database
    When you start your computer, the Oracle10g database starts automatically, and is ready to accept data requests. Before you can use the Oracle10g database, you must perform some configuration tasks. First you create a user account, which is identified by a user name and password and is associated with an area in the database in which you create your database tables. You create a user account named dbuser, with password oracle.
    To create the user account:
    1.     On the Oracle Enterprise Manager Database Control Login page, type SYSMAN as the User Name and enter the password you specified in step 6 above, and then click Login.
    TIP: If you are not on the Oracle Enterprise Manager Database Control Login page, then open a Web Browser and type the following URL: http://localhost:5500/em
    2.     The Oracle Database Licensing Information 10g page will appear. Read the page and scroll to the bottom and then click I Agree. This page appears the first time a new user logs in to the Oracle Enterprise Manager Database Control application.
    3.     The Oracle Enterprise Manager Database Control Home page will appear. To create a new user for the Oracle database: orcl, click the Administration link.
    4.     Under the Security heading click the Users link.
    5.     On the Oracle Enterprise Manager Database Control Users page, click the Create button located on the right hand side of the page.
    6.     Type DBUSER in the Name field, oracle in the Enter Password field, and oracle in the Confirm Password field.
    7.     Type USERS in the Default Tablespace field and Temp in the Temporary Tablespace field.
    8.     Click the Roles link, click the Modify button, select DBA in the Available Roles list, and then click the move arrow so that DBA appears in the Selected Roles list.
    9.     Click OK on the Modify Roles page, and then click OK on the Create User page. A message confirms that the object was successfully created.
    10.     Click the Logout link at the bottom of the page.
    11.     Close the Oracle Enterprise Manager 10g Database Control web page by clicking the X icon in the upper right corner of the web page.
    Starting SQL*Plus and Logging On to the Oracle Database 10g
    To confirm that you can connect to your Oracle10g database, you now start SQL*Plus and log on to the database using the DBUSER account.
    To start SQL*Plus and log on to the database:
    1.     Click Start on the Windows taskbar, point to Programs or All Programs, point to Oracle – OraDb10g_home1, point to Application Development, and then click SQL Plus. The Log On dialog box opens and requests your user name, password, and host string.
    2.     Type DBUSER in the User Name field, press Tab, type oracle in the Password field, leave the Host String field blank, then click OK. The SQL*Plus program window opens, and the SQL prompt appears.
    3.     Close the Oracle SQL*Plus window.

  • Metainit error - overlaps with device in metadevice state database

    I have successfully mirrored 3 of 4 partitions on a new install but am having trouble with the last one. It is the swap partition. There are the usual steps I follow:
    SWAP (slice 1):
    1. metainit -f d11 1 1 c0t0d0s1
    2. metainit d12 1 1 c0t8d0s1
    3. metainit d10 -m d11
    4. edit the /etc/vfstab
    5. reboot
    6. metattach d10 d12
    After step #1, I get the following error:
    metainit: tpssol2: c0t0d0s1: overlaps with device in metadevice state database
    I check metastat and all the config files and don't see anything wrong.

    What platform is this? SPARC or X86 and OS version. This normally happens after a rebuild and you get 2 disk devices with the same ID.
    #iostat -Ei
    This will display your disks and IDs. If the match, you will need to do the following (this should applies for physical and virtual servers, but I have only tested it on VMware) in this example c1t0d0 and c1t1d0(secondary) are the disks with matching IDs.
    #iostat -Ei
    this shows 2 disks with the same ID
    #cfgadm -al|grep c1t
    c1::dsk/c1t0d0 disk connected configured unknown
    c1::dsk/c1t1d0 disk connected configured unknown
    #cfgadm -c unconfigure c1::dsk/c1t1d0
    #cfgadm -al|grep c1t
    c1::dsk/c1t0d0 disk connected configured unknown
    c1::dsk/c1t1d0 disk connected unconfigured unknown
    #iostat -Ei
    this shows now only one disk
    from within VMWare manager remove the secondary disk and add it back again!
    #cfgadm -c configure c1::dsk/c1t1d0
    #cfgadm -al|grep c1t
    c1::dsk/c1t0d0 disk connected configured unknown
    c1::dsk/c1t1d0 disk connected configured unknown
    #iostat -Ei
    this now showed a new disk with a unique disk ID.
    #fdisk /dev/rdsk/c1t1d0p0
    Y to the prompt to create Solaris 100% prompt
    #prtvtoc /dev/rdsk/c1t0d0s2|fmthard -s - /dev/rdsk/c1t1d0s2
    #metadb -af -c4 c1t0d0s7 c1t1d0s7
    Success! You can now setup your mirroring.
    Edited by: readlee on Sep 17, 2008 7:06 AM

  • slice overlaps with device in metadevice state database

    bash-3.00# metadb
    bash-3.00# newfs /dev/rdsk/c0t1d0s7
    newfs: construct a new file system /dev/rdsk/c0t1d0s7: (y/n)? y
    Warning: 784 sector(s) in last cylinder unallocated
    /dev/rdsk/c0t1d0s7: 103664 sectors in 17 cylinders of 48 tracks, 128 sectors
    50.6MB in 2 cyl groups (13 c/g, 39.00MB/g, 18624 i/g)
    super-block backups (for fsck -F ufs -o b=#) at:
    32, 80032,
    bash-3.00# metadb -ac3 /dev/dsk/c0t1d0s7
    bash-3.00# metadb
    flags first blk block count
    a u 16 8192 /dev/dsk/c0t1d0s7
    a u 8208 8192 /dev/dsk/c0t1d0s7
    a u 16400 8192 /dev/dsk/c0t1d0s7
    bash-3.00# metainit d20 1 1 /dev/dsk/c0t1d0s0
    metainit: unknown: c0t1d0s0: overlaps with device in metadevice state database
    bash-3.00# metainit -f d20 1 1 /dev/dsk/c0t1d0s0
    metainit: unknown: c0t1d0s0: overlaps with device in metadevice state database
    bash-3.00#
    I get the same result using raw devices.
    The root device is on slice 6 ; this slice being an LU Boot Environment.
    I'm stuck now.Any ideas?
    I'll eliminate the non allocated sectors and try again.
    Edited by: plasmichive on Nov 11, 2009 3:11 AM

    Sorry folks. I had failed to check the placing of slice 7... which I had assumed would be placed in the highest cylinder numbers... however, I used a "custom install" facility, which had placed them somewhere else... I failed to notice when I repartitioned the disk.
    The filesystem which I "newfs"ed a little chunk out of was blank anyway.
    Off to try to bite a chunk out of an operational filesystem now.... idle hands...
    Edited by: plasmichive on Nov 11, 2009 3:35 AM

  • DR in deferred state-methods to recover the standby database.

    Hi all,
    i am new to Data guard.
    1.yesterday only i came to know the Log-ship from live to DR in deferred state before 6 months.
    2.Now i am in the situation to resolve the problem.
    3.only 5days log sequence only we have before that it will purge(shell script)
    4.so there is no log collecting folder on DR server also.
    5.so kindly provide me what are the methods to recover the standby database.
    Its urgent.
    thank you in advance,
    regards,
    Jumbo.

    Hi SRP,
    DB status:
    1.*No ASM storage.*
    2.*oracle 9i.*
    3.*Archive logs deleted on both Primary and Standby.*
    my question:
    1.without recreate standby.*is their any method to recover the standby database?*
    Regards,
    Jumbo.

  • Creating a new controlfile with datafiles in RMAN backup

    Hi,
    i am using oracle 10g (10.2.0.1) in RHEL5 server. i am trying to restore a RMAN backup from one server to another new server with new db name. i have taken out the spfile from RMAN autobackup and created pfile from it and edited the pfile with new dbname and directory structure and started the db in nomount with the new pfile. Now i have restored the controfile from the RMAN autobackup tried to put the database in mount state. But it failed due to the below error
    RMAN-03002: failure of alter db command at 11/05/2012 21:44:56
    ORA-01103: database name 'ORADB' in control file is not 'DEVDB'
    Hence i shutdown the database and started the db in nomount with new pfile and tried to create the controlfile with the new db name,but it failed as it is looking for the datafiles.
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file
    '/u01/app/oracle/oradata/DEVDB/datafile/o1_mf_system_80jq0kfw_.dbf'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    All my datafiles reside in my RMAN backup. How to get the datafiles from RMAN backup in the above scenario??
    Regards,
    007

    Hello;
    The location and filename and DBIS will be different, but you need something like this :
    $ORACLE_HOME/bin/rman  << EOF
    CONNECT TARGET /
    STARTUP NOMOUNT;
    SET DBID 3754763357;  #DBID of PROD database
    RUN
       ALLOCATE CHANNEL c1 DEVICE TYPE disk format '/u01/oradata/backups';
       RESTORE CONTROLFILE FROM '/u01/oradata/backups/sb_t790762003_s85_p1';
       ALTER DATABASE MOUNT;
       SET NEWNAME FOR DATAFILE 1 TO '/u01/app/oracle/oradata/CLONE/system01.dbf';
        SET NEWNAME FOR TEMPFILE 1 TO '/u01/app/oracle/oradata/CLONE/temp01.dbf';
       RESTORE DATABASE;
       SWITCH DATAFILE ALL;
       RECOVER DATABASE;
       release channel c1;
    ALTER DATABASE OPEN RESETLOGS; So you need "SET NEWNAME" for all your files
    Full Example
    http://www.visi.com/~mseberg/rman/restore_database_without_catalog.html
    Best Regards
    mseberg

  • Trying to recover an standby database

    - Oracle 10.2.0.4 Standard Edition
    - O/S: Windows Server 2003
    - Phisically Standby
    We have primary and a standby database. My standby database was synchronized through copying archive redo logs from Primary to Standby. They were copied every 15 min to standby server and then they were recovered from there. Because a lot of archive logs were missed for ever, now my standby database is not synchronized with my primary.
    In order to recover my Standby, one week ago I followed these instructions:
    Step 1: On the standby database check the current scn.
    STDBY> select current_scn from v$database;
    CURRENT_SCN
    2527075174
    Step 2: On the primary database create the needed incremental backup from the above SCN
    C:\Documents and Settings\frego>rman target /
    run {
    allocate channel c1 type disk;
    BACKUP INCREMENTAL FROM SCN 2527075174 DATABASE
    format '\\srvbackup\archiveslogs-35\arch\incr_bkp_%U';
    Step 3: Cancel managed recovery at the standby database
    STDBY>alter database recover managed standby database cancel;
    Media recovery complete.
    Copied the backup files to standby server to "D:\arch\" folder.
    Step 4: Catalog the Incremental Backup Files at the Standby Database
    D:\arch> rman target /
    RMAN> CATALOG START WITH 'D:\arch\';
    Step 5: Apply the Incremental Backup to the Standby Database
    RMAN> RECOVER DATABASE NOREDO;
    Step 6: Put the standby database back to managed recovery mode.
    STDBY>> recover managed standby database disconnect;
    Media recovery complete.
    Step 7: On the primary create new standby controlfile
    PRIM>alter database create standby controlfile as 'C:\incr_bkp\standby01.ctl';
    System altered.
    Step 8: At Standby .. Replace standby controlfile at all location as shown by controle_files parameter.
    Copy the standby control file to the standby site. Shutdown the standby database and replace the stanby controlfiles and restart the >standby database in managed recovery mode...
    Problem was that there were new datafiles created in primary that didn't exist in standby. I had to created them manually on standby:
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB3.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB3.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB4.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB4.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BKP.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BKP.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB5.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB5.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_A.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_A.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_B.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_B.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_C.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_C.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_D.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_D.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_IDX\PADRONIDX17.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_IDX\PADRONIDX17.ORA';
    Also, I tried this commands:
    On Standby:
    RMAN> SHUTDOWN;
    RMAN> STARTUP NOMOUNT;
    RMAN> RESTORE STANDBY CONTROLFILE FROM 'D:\arch\standby01.ctl';
    RMAN> SHUTDOWN;
    RMAN> STARTUP MOUNT;
    STDB> ALTER DATABASE CLEAR LOGFILE GROUP 1;
    STDB> ALTER DATABASE CLEAR LOGFILE GROUP 2;
    STDB> ALTER DATABASE CLEAR LOGFILE GROUP 3;
    STDB> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
    Database altered.
    SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-01154: database busy. Open, close, mount, and dismount not allowed now
    SQL> recover managed standby database cancel;
    Media recovery complete.
    SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-16004: backup database requires recovery
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'D:\ORADATA\PROD\OPEXT\SYSTEM01.DBF'My Questions:
    - What is missing in order to open standby database?
    - Can I again generate rman incremental backups on Primary (from SCN 2527075174), copy them to Standby and start recovery again? Would it generate duplicate records on tables?
    - Should I generate new rman incremental backup pieces on Primary (from last SCN of Standby), copy them to standby and apply there?
    Remember that my Primary is growing every day and those rman backup pieces and standby01.ctl, that are copied on my standby server, are from one week ago.
    Thanks
    Edited by: user521219 on 22-jun-2012 9:31

    user521219 wrote:
    Should I restart and mount my standby database again?
    If I apply Step 3 now:
    STB> alter database recover managed standby database cancel;
    ERROR at line 1:
    ORA-16136: Managed Standby Recovery not activeRefer the above mentioned link. First restore controlfile & then perform recovery on standby database.
    >
    user521219      
         Newbie
    Handle:      user521219
    Status Level:      Newbie
    Registered:      Jul 20, 2006
    Total Posts:      48
    Total Questions:      29 (23 unresolved)
    >
    Consider closing your threads and keep the forum clean.
    Edited by: CKPT on Jun 22, 2012 10:43 PM

  • CREATE CONTROLFILE REUSE DATABASE

    version 9206
    where is the location where new controlfile is created, is that the location mentioned in pfile?
    I have to change 100s dbfile/online logfile destinations in multiple dbs. that what i am planning
    -startup nomount.
    mv *.dbf /newlocation & mv *.log /newlocation
    -create new controlfile with new dbfile/logfile locations
    -and starup db
    make me righ if i am not,
    I dont want to use alter database rename file to new dest because of error chances .
    Edited by: DBA2008 on Nov 11, 2009 12:07 PM

    fixed ulimit not seeing this error anymore in alert log , but stuck here
    ORA-27092: skgfofi: size of file exceeds file size limit of the process,
    SQL> startup force;
    ORACLE instance started.
    Total System Global Area 319784528 bytes
    Fixed Size 742992 bytes
    Variable Size 285212672 bytes
    Database Buffers 33554432 bytes
    Redo Buffers 274432 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open RESETLOGS;
    alter database open RESETLOGS
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/tulppwradb_db01/efrp/efrp_system01.dbf'
    SQL> recover database;
    ORA-00283: recovery session canceled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
    SQL> recover database until co^H;
    ORA-00277: illegal option to the UNTIL recovery flag CO
    SQL> recover database using recover database using backup controlfile;
    ORA-01906: BACKUP keyword expected
    SQL> recover database using backup controlfile;
    ORA-00279: change 4447751183142 generated at 09/14/2009 13:17:06 needed for
    thread 1
    ORA-00289: suggestion : /oracle/product/9.2.0.6/dbs/arch1_22008.dbf
    ORA-00280: change 4447751183142 for thread 1 is in sequence #22008
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    Media recovery cancelled.
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: '/tulppwradb_db01/efrp/efrp_system01.dbf'
    SQL> recover database using backup controlfile;
    ORA-00279: change 4447751183142 generated at 09/14/2009 13:17:06 needed for
    thread 1
    ORA-00289: suggestion : /oracle/product/9.2.0.6/dbs/arch1_22008.dbf
    ORA-00280: change 4447751183142 for thread 1 is in sequence #22008
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    AUTO
    ORA-00308: cannot open archived log
    '/oracle/product/9.2.0.6/dbs/arch1_22008.dbf'
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 3
    ORA-00308: cannot open archived log
    '/oracle/product/9.2.0.6/dbs/arch1_22008.dbf'
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 3
    SQL> exit
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    oracle:rvaix5:efrp>ulimit -a
    time(seconds) unlimited
    file(blocks) unlimited
    data(kbytes) unlimited
    stack(kbytes) 4194304
    memory(kbytes) 32768
    coredump(blocks) unlimited
    nofiles(descriptors) 2000
    SQL> startup force;
    ORACLE instance started.
    Total System Global Area 555714464 bytes
    Fixed Size 743328 bytes
    Variable Size 285212672 bytes
    Database Buffers 268435456 bytes
    Redo Buffers 1323008 bytes
    Database mounted.
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: '/tulppwradb_db01/ncersp/system01.dbf'
    Edited by: DBA2008 on Nov 12, 2009 4:07 PM

  • Recover the standby database

    Hi, I have both primary and standby database in ASM and I need to recover the standby database as it's falling behind for too long. The steps I did are:
    1. backup full database on primary
    2. create a standby controlfile and copy to /tmp on the standby
    3. on the standby, RMAN>restore standby controlfile from '/tmp/std.ctl';
    4. RMAN>restore database;
    5. SQL>recover managed standby database disconnect;
    However, the recovery always shuts down and I get the error:
    ORA-01110: data file 1: '+W08_DATA_DG/w08p/datafile/system.295.662256331'
    What's wrong with my steps?
    Your suggestion is greatly appreciated!

    the directory structures are the same. The standby was working before. It's just falling behind so I want to restore it from the new backup. Here is the init.ora
    *.audit_file_dest='/opt/app/oracle/admin/W08P/adump'
    *.background_dump_dest='/opt/app/oracle/admin/W08P/bdump'
    *.cluster_database_instances=2
    *.cluster_database=false
    *.compatible='10.2.0.3.0'
    *.control_files='+W08_DATA_DG/w08p/control01.ctl','+W08_RECOVERY_DG/w08p/control02.ctl','+W08_DATA_DG/w08p/control03.ctl'
    *.core_dump_dest='/opt/app/oracle/admin/W08P/cdump'
    *.db_block_size=8192
    *.db_create_file_dest='+W08_DATA_DG'
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='W08P'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=W08PXDB)'
    *.event='10298 trace name context forever, level 32'
    *.job_queue_processes=10
    *.log_archive_dest_1='LOCATION=+W08_RECOVERY_DG/W08P/'
    *.log_archive_format='%t_%s_%r.arc'
    *.log_archive_max_processes=6
    *.open_cursors=1000
    *.optimizer_index_caching=70
    *.optimizer_index_cost_adj=30
    *.pga_aggregate_target=1459617792
    *.processes=300
    *.remote_login_passwordfile='exclusive'
    *.sessions=1000
    *.sga_target=1610612736
    *.undo_management='AUTO'
    *.undo_retention=26000
    W08P.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/opt/app/oracle/admin/W08P/udump'
    standby_archive_dest='LOCATION=+W08_RECOVERY_DG/W08P'
    CONTROL_FILE_RECORD_KEEP_TIME=0
    standby_file_management=auto
    fal_server=w08p
    fal_client=w08p_stby
    control_file_record_keep_time=90
    ~

  • RMAN leaves database in mount state

    Hi,
    Since recently we are experiencing situation where RMAN leaves the database in mount state and manual open is necessary. I don't recall it happened before...
    (Linux RH ES3; 10gR2).
    Recovery Manager: Release 10.2.0.2.0 - Production on Sun May 27 14:55:48 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: TEST (DBID=1825238, not open) using target database control file instead of recovery catalog
    RMAN> report obsolete;
    2> delete force obsolete;
    3> list backup;
    4> sql 'ALTER DATABASE OPEN';
    5> sql 'ALTER DATABASE BACKUP CONTROLFILE TO TRACE';
    6> exit;
    RMAN retention policy will be applied to the command RMAN retention policy is set to redundancy 1 Report of obsolete backups and copies
    The same scenario(scripts) work on other databases with no problems.
    Any suggestions are appreciated.
    Thank you,
    Dobby

    Hi,
    There are the last lines from alert.log for the period:
    Sun Jun 3 14:12:48 2007
    alter database mount
    Sun Jun 3 14:12:52 2007
    Setting recovery target incarnation to 2
    Sun Jun 3 14:12:52 2007
    Successful mount of redo thread 1, with mount id 875794080
    Sun Jun 3 14:12:52 2007
    Database mounted in Exclusive Mode
    Completed: alter database mount
    Sun Jun 3 14:54:51 2007
    Starting control autobackup
    Control autobackup written to DISK device
    Last lines from rman log:
    RMAN retention policy will be applied to the command RMAN retention policy is set to redundancy 1 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=104 devtype=DISK released channel: ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of delete command at 06/03/2007 14:54:58
    ORA-19554: error allocating device, device type: SBT_TAPE, device name:
    ORA-27211: Failed to load Media Management Library
    Recovery Manager complete.
    Thx,
    Dobby

  • Dbid in nomount state

    Hello,
    can I obtain my dbid when my database is in nomount state?
    The scenario is that I had lost all my controlfiles and can only open the db in nomount state.
    Then I start rman and connect to the target db. I can restore controlfile from autobackup, but first I have to set dbid.
    Is checking the controlfile autobackup filename the only choice to obrain dbid?
    Thx.
    A.

    Hi,
    thanks a lot to you both. Controlfile autobackup name is the one I thought of and logs from older RMAN session also seems to be very useful.
    I don't use recovery catalog, so I can't use rc_database. That's why I was troubled.
    Thanks again. It helped.
    A.

  • CMP Entity Bean with database specific features

    Hi there,
    I�m studying Entity Beans and I'm doing some experiences with SQL Server.
    At first, I built a CMP Bean and marked in deploytool to create the tables. Ok, it worked.
    Now, I'm trying to interact to an existent database. But, I got a problem: the primary key is defined by the Server. I can read it and I can remove entries. But, when I try to insert some entry, I can't pass the key in SQL statement. I edited the generated statement to do it, but it doesn't work. I get a RollbackException.
    My question is: is it possible to do what I'm intending to do with CMP? What am I doing wrong?
    Do you think that, to do this, I should use BMP Entity beans?
    Thanks in advance,
    Anicio

    "CMP provides you with database independence and less coding efforts."
    BMP is not database dependent, unless you invoke database specific things in your SQL (something I do not do). CMP on the otherhand is inherently appserver specific (which was it's goal when BEA, IBM, et al. came up with it), and still limits your design possibilities. See this thread for an example:
    http://forum.java.sun.com/thread.jsp?forum=13&thread=318785
    As for less coding effort, that is a relative statment. Yes a simple CMP bean requires less coding to develop the first time. I personally view a few lines of SQL to load and store the data as being fairly trivial. But that needs to be offset with the problems inherent in using appserver specific CMP implementations.
    As an example, try mapping WebSphere CMP to a pre-existing database without using IBM's IDE. It's an incredible pain in the ass since WebSphere does not come with a "meet-in-the-middle" solution. Any J2EE developer that has had the experience of working with different appservers (especially if they have had to port an app, as I have) can attest to the complications that arise with each implementation.
    A BMP bean, written with non-DB-specific SQL, is the most portable, most flexible approach to EntityBeans. Yes, it requires the developer to be able to write some SQL, which should not take a significant amout of time. WRT queries, you have to write them, either SQL, EQL, or some appserver specific format.
    As an aside, the use of code generators to simplify the creation of EJBs lends itself well to BMP. By using a (or writing your own) code generator, you can mitigate the annoying SQL bugs that creep up early in development.

  • Coldfusion essential training, working with databases

    I am currrently working through the videos coldfusion9 essential training, the current folder is working with databases, after following the tutorial very carefully on section 4.08 "Creating an application directory and home page"
    It states making a new project & naming it " Photo Gallery"  after going through the process, of setting up the project and copying and pasting the relevant files into the folder,  there are now four folders in the project namely" home, images, Image source and styles.css"
    The tutorial then tells you to click on the "home" file and inside there are default.htm files,  this file opens fine in the browser and shows all the details and banner and color,   the tutorial goes on to say right click the default.htm file and change it to index.cfm
    after making this change however and loading up the page as a cfm file all it  shows is the text of the page with no banner or color
    can anybody help to throw some light on the problem thanks
    dm

    Lynda.com Tutorials by David Gassner

  • Query regarding XI interaction with database

    Hi all,
    I have got the Oracle database and SAP R/3 system
    Is it possible that through JDBC adapter ,
    a) Direct fetching of data from database
    b) Data should come in XI and after mapping should be  
        posted in SAP R/3 .i.e complete automated process
    c) Is it possible to put direct query statement in XI
        while connection with database through JDBC adapter
        E.g For fetching the vendor data from database
        Select * from .... 
    Thanks in advance
    Shikha Jain

    Shikha,
    <i>a) Direct fetching of data from database</i>
    In the JDBC Sender adapter you have to mention the SQL Query.
    <i>b) Data should come in XI and after mapping should be
    posted in SAP R/3 .i.e complete automated process</i>
    This is what XI does. There is no manual intervention needed.
    <i>c) Is it possible to put direct query statement in XI
    while connection with database through JDBC adapter
    E.g For fetching the vendor data from database
    Select * from ....</i>
    your question a is same. You can execute a SQL statement in the Adapter which polls the database in the intervals you mention. It could be a SELECT or EXEC PROC etc.
    regards
    Shravan

Maybe you are looking for