Can't do  ALTER DATABASE BACKUP CONTROLFILE

when I do:
ALTER DATABASE BACKUP CONTROLFILE TO '/export/home/user1/contrlfilesdbb';
i got error messages:
ERROR at line 1:
ORA-01580: error creating control backup file /export/home/user1/contrlfilesdbb
ORA-27038: created file already exists
Additional information: 1
why there is such problem?
Help, please!
thank you.
Message was edited by:
user482717

no, you should not change the permission on the actual controlfile! i was re-reading through your post and you are trying to backup your controlfile to a directory name and not a file name. you need to specify the filename you want to backup to, not just the directory.
for example:
alter database backup controlfile to '/export/home/user1/ctrlfilesdbb/bkupctrl.ctl' reuse;
you do know that this is not just a copy of the current control file but a series of scripts that based on your recovery needs can be edited to create a new control file, right?

Similar Messages

  • Concern in using "alter database backup controlfile to trace"

    Is there any impact for an online instance by running the alter database backup controlfile to trace command.
    Acutally my problem is the MAXLOGHISTORY is reached 65535 so that I would like to fix this problem otherwise my database is very slow.

    I recommend you top change that parameter re-creating the controlfile:
    CREATE CONTROLFILE
    Caution:
    Oracle recommends that you perform a full backup of all files in the database before using this statement. For more information, see Oracle9i User-Managed Backup and Recovery Guide.
    Purpose
    Use the CREATE CONTROLFILE statement to re-create a control file in one of the following cases:
    All copies of your existing control files have been lost through media failure.
    You want to change the name of the database.
    You want to change the maximum number of redo log file groups, redo log file members, archived redo log files, datafiles, or instances that can concurrently have the database mounted and open.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_54a.htm#SQLRF01203
    Joel Pérez
    http://otn.oracle.com/experts

  • How can i take a Database Backup

    Hi,
    Any one Tell me How can i take backup for My Database which is running in the given version
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE     9.2.0.3.0     Production
    TNS for Linux: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
    Help me

    Few days ago, I've seen a similar question in this forum. Backing up database involves many dependencies. It is not something you can get in a forum.
    To start with....
    http://tahiti.oracle.com
    Cheers
    Sarma.
    P.S: I couldn't find the documents server up. So couldn't give the DBA book link.

  • Alter database backup controfile to trace...

    When you run controlfile to trace, it creates following command within trc file
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE DATABASE "ABC" RESETLOGS NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 '/u01/app/oracle/oradata/abc/redo01.log' SIZE 50M,
    GROUP 2 '/u01/app/oracle/oradata/abc/redo02.log' SIZE 50M,
    GROUP 3 '/u01/app/oracle/oradata/abc/redo03.log' SIZE 50M
    -- STANDBY LOGFILE
    DATAFILE
    '/u01/app/oracle/oradata/abc/system01.dbf',
    '/u01/app/oracle/oradata/abc/undotbs01.dbf',
    '/u01/app/oracle/oradata/abc/sysaux01.dbf',
    '/u01/app/oracle/oradata/abc/users01.dbf',
    '/u01/app/oracle/oradata/abc/user_test.dbf'
    CHARACTER SET WE8ISO8859P1 ;
    My question is: when you want to use this create controlfile command, how does the database get tablespaces names (eg. system, undo, sysaux... user_test in this cas) automatically. However The Tablespaces names are not specified within the create controlfile comand

    I don't have a 9i environment. What do you get when you query
    SELECT * FROM V$CONTROLFILE_RECORD_SECTIONFor example, this is what I see in my 10.2.0.3 database :
    SQL> select * from v$controlfile_record_section where type = 'TABLESPACE';
    TYPE                         RECORD_SIZE RECORDS_TOTAL RECORDS_USED FIRST_INDEX
    LAST_INDEX LAST_RECID
    TABLESPACE                            68           100            8           0
             0        108
    SQL>When you issue RECOVER DATABASE commands, the Rollfoward from Redo
    is by datafiles, not by tablespaces.
    It is only when you OPEN the database that Oracle matches the Tablespace names.
    Surely, you do understand that Tablespace names ARE in the Data Dictionary
    and so are DataFile names and that Tablespace IDs are the join between the two ?
    Message was edited by:
    Hemant K Chitale

  • Recover database until cancel using backup controlfile Fails with ORA-01547

    Hi
    First of all, I'm sorry for posting in this community as my issue doesn't have any thing to do with Rman, but I couldn't find any more relative Community to post in
    our System is Oracle EBS 11i and the OS on the production is AIX 5.2 / and the DR is 5.3 / DB version is 9i
    we have our Oracle ERP scheduled using crontab to take a database COLD backup daily using gtar -cvzf .
    yesterday I needed to clone the database only, so I used my usual method witch is
    1) on the source SQL> alter database backup controlfile to trace as '<dest>/makecntrlfil.sql'
    then you can delete the Commented header and change the first command from
    "CREATE CONTROLFILE REUSE DATABASE <SOURCE> NORESETLOGS ..."
    TO
    CREATE CONTROLFILE SET DATABASE <TARGET> RESETLOGS <NO>ARCHIVELOG
    2) de-compress the tgz files
    3) on the target edit the $ORACLE_HOME/dbs/init<source>.ora, $ORACLE_HOME/environment file
    4)run /ORACLE_HOME/appsutils/clone/bin/adcfgclone.prl
    5) delete old controlfiles
    6) on the database run the script you created on firs t step to create a new control fole
    7)recover database until cancel using backup controlfile
    8) alter database open resetlogs
    add new temp file system
    this way I used to do it
    but yesterday when trying to execute recover database it didn't work, and gave this error
    ORA-00279: change 6450277404 generated at 02/28/2013 02:47:56 needed for thread
    1
    ORA-00289: suggestion : /ERPDEV/DBASE/devdb/9.2.0/dbs/arch1_188462.dbf
    ORA-00280: change 6450277404 for thread 1 is in sequence #188462
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL} >> I gave cancel >> so >>
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/ERPDEV/DBASE/SYS/devdata/system01.dbf'
    nothing strange in the original alert log file in the time of taking the backup
    So can You please tell me what maybe wrong and why it used to work before and now it's not
    take in consideration that we are on archive log mode, but not using Rman or the archived Logs for backup and the sequence it needed ( 188462 ) is too old and already deleted on Production.

    the output of the sript
    Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root ConcMgr will not work ConcMgr will not work ConcMgr will not work #####################################################
    172.16.10.10:1.0
    access control disabled, clients can connect from any host
    You are running adstpall.sh version 115.19
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adapcctl.sh stop script returned:
    adapcctl.sh version 115.54
    Apache Web Server Listener :httpd ( pid 765998 ) is running.
    Stopping Apache Web Server Listener (dedicated HTTP) ...
    Apache Web Server Listener (PLSQL) :httpd ( pid 2830390 ) is running.
    Stopping Apache Web Server Listener (dedicated PLSQL) ...
    adapcctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adalnctl.sh stop script returned:
    adalnctl.sh version
    Shutting down listener process APPS_ABP.
    adalnctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adtcfctl.sh stop script returned:
    You are running adtcfctl.sh version 115.14
    Shutting down TCF SocketServer for ABP on port -1.
    adtcfctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adcmctl.sh stop script returned:
    You are running adcmctl.sh version 115.28
    Shutting down concurrent managers for ABP ...
    Submitted request 7481224 for CONCURRENT FND SHUTDOWN
    adcmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfrmctl.sh stop script returned:
    You are running adfrmctl.sh version 115.37
    Stopping forms server for ABP on port 9003.
    adfrmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adrepctl.sh stop script returned:
    You are running adrepctl.sh version 115.32
    stopping Reports Server for ABP on port 7003.
    kill -9 827420
    Reports Server for ABP successfully stopped.
    adrepctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfmcctl.sh stop script returned:
    You are running adfmcctl.sh version 115.19
    Stopping forms load balancing client for ABP.
    adfmcctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfmsctl.sh stop script returned:
    You are running adfmsctl.sh version 115.15
    Stopping forms metrics server for ABP on port 9203.
    adfmsctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/jtffmctl.sh stop script returned:
    You are running jtffmctl.sh version 115.16
    Shutting down Fulfillment Server for ABP on port 9303 ...
    jtffmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    All enabled services on this node are stopped.
    Check logfile /ERPABP/APPL/abpcomn/admin/log/ABP_babtain-erp/04010130.log for details
    Exiting with status 0
    You are running addlnctl.sh version 115.7
    Logfile: /ERPABP/DBASE/abpdb/9.2.0/appsutil/log/ABP_babtain-erp/addlnctl.txt
    Shutting down listener process ABP ...
    addlnctl.sh: exiting with status 0
    You are running addbctl.sh version 115.10
    Shutting down database ABP ...
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 1 01:36:25 2013
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected.
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production
    addbctl.sh: exiting with status 0
    You are running addbctl.sh version 115.10
    Starting the database ABP ...
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 1 01:38:48 2013
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 6829474752 bytes
    Fixed Size          742336 bytes
    Variable Size          1493172224 bytes
    Database Buffers     5324800000 bytes
    Redo Buffers          10760192 bytes
    Database mounted.
    Database opened.
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production
    addbctl.sh: exiting with status 0
    You are running addbctl.sh version 115.10
    Shutting down database ABP ...
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 1 01:39:08 2013
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected.
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production
    addbctl.sh: exiting with status 0
    root 2883784 2097278 0 01:39:54 - 0:00 grep abpappl
    root 1425530 2097278 1 01:39:54 - 0:00 grep abpora
    Taring /ERPABP/DBASE/SYS/abpdata
    Mon Apr 1 01:39:54 SAUST 2013
    Mon Apr 1 03:00:16 SAUST 2013
    Taring /ERPDEV/DBASE/SYS/abpdata
    Mon Apr 1 03:00:16 SAUST 2013
    Mon Apr 1 03:10:18 SAUST 2013
    Taring /ERPABP/DBASE/DATA/abpdata
    Mon Apr 1 03:10:18 SAUST 2013
    Mon Apr 1 04:51:04 SAUST 2013
    Taring /ERPDEV/APPL/DATA/abpdata
    Mon Apr 1 04:51:04 SAUST 2013
    Mon Apr 1 05:02:58 SAUST 2013
    You are running addbctl.sh version 115.10
    Starting the database ABP ...
    SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 1 05:04:46 2013
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 6829474752 bytes
    Fixed Size          742336 bytes
    Variable Size          1493172224 bytes
    Database Buffers     5324800000 bytes
    Redo Buffers          10760192 bytes
    Database mounted.
    Database opened.
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production
    addbctl.sh: exiting with status 0
    You are running addlnctl.sh version 115.7
    Logfile: /ERPABP/DBASE/abpdb/9.2.0/appsutil/log/ABP_babtain-erp/addlnctl.txt
    Starting listener process ABP ...
    addlnctl.sh: exiting with status 0
    Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root Please Do not Forgot to run /usr/bin/runmwm as root ConcMgr will not work ConcMgr will not work ConcMgr will not work #####################################################
    172.16.10.10:1.0
    access control disabled, clients can connect from any host
    You are running adstrtal.sh version 115.16
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adapcctl.sh start script returned:
    adapcctl.sh version 115.54
    Apache Web Server Listener is not running.
    Starting Apache Web Server Listener (dedicated HTTP) ...
    Apache Web Server Listener (PLSQL) is not running.
    Starting Apache Web Server Listener (dedicated PLSQL) ...
    adapcctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adalnctl.sh start script returned:
    adalnctl.sh version
    Checking for FNDFS executable.
    Starting listener process APPS_ABP.
    adalnctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adtcfctl.sh start script returned:
    You are running adtcfctl.sh version 115.14
    TCF SocketServer for ABP on port -1 is already started.
    adtcfctl.sh: exiting with status 2
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adcmctl.sh start script returned:
    You are running adcmctl.sh version 115.28
    Starting concurrent manager for ABP ...
    Starting ABP_0401@ABP Internal Concurrent Manager Default printer is noprint
    adcmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfrmctl.sh start script returned:
    You are running adfrmctl.sh version 115.37
    Starting forms server for ABP on port 9003.
    adfrmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adrepctl.sh start script returned:
    You are running adrepctl.sh version 115.32
    starting Reports Server for ABP on port 7003.
    adrepctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfmcctl.sh start script returned:
    You are running adfmcctl.sh version 115.19
    Starting forms load balancing client for ABP.
    adfmcctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/adfmsctl.sh start script returned:
    You are running adfmsctl.sh version 115.15
    starting forms metrics server for ABP.
    adfmsctl.sh: exiting with status 0
    .end std out.
    .end err out.
    Executing service control script:
    /ERPABP/APPL/abpcomn/admin/scripts/ABP_babtain-erp/jtffmctl.sh start script returned:
    You are running jtffmctl.sh version 115.16
    Validating Fulfillment patch level via /ERPABP/APPL/abpcomn/java Fulfillment patch level validated.
    Starting Fulfillment Server for ABP on port 9303 ...
    jtffmctl.sh: exiting with status 0
    .end std out.
    .end err out.
    All enabled services for this node are started.
    Check logfile /ERPABP/APPL/abpcomn/admin/log/ABP_babtain-erp/04010505.log for details
    Exiting with status 0
    MWA Telnet Server Release: 1.0.8.4 [December 12th 2002] Mon Apr 1 05:06:01 SAUST 2013
    9653.50     /store/abp/data/data_abpdata_010413.tgz
    1089.50     /store/abp/data/datadev_abpdata_010413.tgz
    0.04     /store/abp/data/mkctrl.sql
    13309.38     /store/abp/data/sys_abpdata_010413.tgz
    1000.25     /store/abp/data/sysdev_abpdata_010413.tgz
    Mon Apr 1 05:06:01 SAUST 2013
    #######################################################################################################################

  • How to identify which trace file is your backup controlfile trace in udump

    I have a 10.2.0.3 database on unix.
    I want to setup a job to run a script every night to backup the controlfile as text format.
    such as "alter database backup controlfile to trace".
    How my script can identify which trace file is the one just created for backup controlfile and copy the file to a backup disk?
    Thanks a lot!

    I thought it's
    alter database backup controlfile to trace as 'absolute path of any file where you want the control file in clear text format ';
    for ex. in Windows..
    alter database backup controlfile to trace as *'c:\temp\create_ORCL_control.sql'*;
    This way you will know where your job is going to backup controlfile to trace

  • 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

  • Recover database without controlfile and redo logs

    Hi guys,
    I am doing a testing with an Oracle Database 11.1.0.7.0, I want recover a database in this scenario without using RMAN:
    -All controlfiles are missing
    -All redo logs are missing
    -I have a Backup Controlfile To Trace Resetlogs (bkp_controlfile.sql)
    -The database is in archivelog mode
    -The database was created with OMF (Oracle Managed Files)
    So I have done this steps:
    1) When the database was opened I rename all controlfiles and all redo logs
    2) Shutdown Abort
    3) I run the bkp_controlfile.sql, here I have a problem...
    The database put in NOMOUNT, the controlfile was created and started the RECOVER DATABASE USING BACKUP CONTROLFILE, but when run ALTER DATABASE OPEN RESETLOGS; appear this:
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1:
    '/u02/app/oracle/oradata/OMF/datafile/o1_mf_system_68hzcb2z_.dbf'I wasn´t expect this because I don´t want recover a datafile, I only want open with resetlogs.
    Any suggestion to help me?
    Thanks a lot.

    Excelent! Thanks for your answers Markus and Hemant.
    In conclusion...
    - If we have all redo logs availables we can recreate the control file and recover the database without any problems using backup controlfile to trace noresetlogs*.
    - if we haven´t all redo logs availables, there are 2 situations:
    1) If the database shutdown properly:_ We will be able to open the database using recover database using backup controlfile until cancel*.
    2) If the database doesn´t shutdown properly:_ We won´t be able to open the database with only a backup controlfile to trace.
    With all this I close this thread. Was very good experience.
    If anyone would add something will be welcome.
    Thanks for all
    I wish add the results of one of my tests: if I did all the steps in only one session of sqlplus I can shutdown properly the database, but if do the shutdown immediate* in a new session I can´t shutdown properly the database. Here I post the output:
    ALL IN ONE SESSION*
    [oracle@prueba ~]$ $ORACLE_HOME/bin/sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Wed Sep 22 13:58:10 2010
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> ALTER SYSTEM SWITCH LOGFILE;
    System altered.
    SQL> SHUTDOWN IMMEDIATE
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> STARTUP
    ORACLE instance started.
    Total System Global Area  631914496 bytes
    Fixed Size                  1315224 bytes
    Variable Size             377491048 bytes
    Database Buffers          247463936 bytes
    Redo Buffers                5644288 bytes
    Database mounted.
    Database opened.
    SQL> SHUTDOWN IMMEDIATE
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> @/home/oracle/bkp_controlfile.sql
    ORACLE instance started.
    Total System Global Area  631914496 bytes
    Fixed Size                  1315224 bytes
    Variable Size             377491048 bytes
    Database Buffers          247463936 bytes
    Redo Buffers                5644288 bytes
    Control file created.
    SQL> RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
    ORA-00279: change 398764 generated at 09/22/2010 14:09:49 needed for thread 1
    ORA-00289: suggestion :
    /u02/app/oracle/flash_recovery_area/OMF/archivelog/2010_09_22/o1_mf_1_40_%u_.arc
    ORA-00280: change 398764 for thread 1 is in sequence #40
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL> ALTER DATABASE OPEN RESETLOGS;
    Database altered.
    SQL> ALTER TABLESPACE TEMP ADD TEMPFILE '/u02/app/oracle/oradata/OMF/datafile/o1_mf_temp_69n3z3vv_.tmp' SIZE 50331648  REUSE AUTOEXTEND ON NEXT 655360  MAXSIZE 32767M;
    Tablespace altered.
    SQL>
    ALL IN DIFERENT SESSIONS*
    [oracle@prueba ~]$ $ORACLE_HOME/bin/sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Wed Sep 22 13:55:47 2010
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS '/home/oracle/bkp_controlfile.sql' RESETLOGS;
    Database altered.
    SQL> SHUTDOWN IMMEDIATE
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> STARTUP MOUNT
    ORACLE instance started.
    Total System Global Area  631914496 bytes
    Fixed Size                  1315224 bytes
    Variable Size             377491048 bytes
    Database Buffers          247463936 bytes
    Redo Buffers                5644288 bytes
    Database mounted.
    SQL> ALTER DATABASE ARCHIVELOG;
    Database altered.
    SQL> ALTER DATABASE OPEN;
    Database altered.
    SQL> ALTER SYSTEM SWITCH LOGFILE;
    System altered.
    SQL> ALTER SYSTEM SWITCH LOGFILE;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@prueba ~]$ $ORACLE_HOME/bin/sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Wed Sep 22 13:58:10 2010
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> SHUTDOWN IMMEDIATE
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/u02/app/oracle/oradata/OMF/controlfile/o1_mf_69n3x6n5_.ctl'
    ORA-27041: unable to open file
    Linux Error: 2: No such file or directory
    Additional information: 3

  • Backup controlfile from O/S command

    Is it possible that backup controlfile by OS level command without issue oracle DDL command such as "alter database backup controlfile to ..." ?

    The control file is a binary file that is constantly being written to when the database is open. If the database is open, then you should only backup the control file with RMAN or the 'alter database ..." commands. If the database is shut down, then you can use the OS command to backup the control file.
    Thanks, Tammy

  • Oracle database backup

    I want to format my hard disk. but i want to take a copy of my oracle database
    so anyone can please give me the solution for how to take a back up and again how to reload to my new oracle database? if it succeeded is it possible to retain all the schemas of my old database?

    One way to do this is to take a cole backup
    and restore with backup controlfile.
    1. alter database backup controlfile to trace
    2. find this trace and backup it to another drive
    3. shutdown immediate
    4. Backup you database files - if you don't know them (issue when db is open select name from v$session) on another drive5. format you r drive
    6. restore your files from backup
    7. Open trace file and creater a script from it yous copy and paste one of two cases
    8. if it is win nt. make an instance oradi,m -NEW -SID db
    9. sqlplus /nolog
    10. conn / as sysdba
    11. startup nomount
    12. execute script created in point 7
    For more detail instructions please refer to User Managed Backup and Recovery Guide
    Best Regards
    Krystian Zieja / mob

  • ORA-01610: recovery using the BACKUP CONTROLFILE option must be done

    Hello All,
    I have an instance on my LAB server. To explore more avenues in cloning a DB I did the following.
    1. On my Oracle 10g Instance I fired an large query which would take atleast an hour to execute.
    2. Opened another session and executed shu ABORT to shutdown the above instance abruptly.
    3. Took backup of datafiles, archive logs and redologs [ prior to shu abort, I had issued ALTER DATABASE BACKUP CONTROLFILE TO TRACE]
    Restoration steps:
    NOMOUNT with pfile edited to hold the name of the new DB_NAME
    Create control file script edited to reflect the new paths of datafile and redologs.
    MOunted succesfully.
    ALTER DATABASE OPEN RESETLOGS;
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1:
    'F:\ORACLE\COLD_BACKUP_TRIAL\SET2\DATAFILE\DUPLISYSTEM_553LC8QX_.DBF'
    SQL> recover datafile 'F:\ORACLE\COLD_BACKUP_TRIAL\SET2\DATAFILE\DUPLISYSTEM_553LC8QX_.DBF';
    ORA-00283: recovery session canceled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
    SQL> recover database using backup controlfile;
    ORA-00279: change 2962256 generated at 09/03/2009 12:06:49 needed for thread 1
    ORA-00289: suggestion :
    F:\ORACLE\COLD_BACKUP_TRIAL\SET2\FLASH_RECOVERY_AREA\DUPLI\ARCHIVELOG\2009_09_23
    \O1_MF_1_2_%U_.ARC
    ORA-00280: change 2962256 for thread 1 is in sequence #2
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    F:\oracle\cold_backup_trial\SET2\ONLINELOG_BK\O1_MF_3_553LGCH3_.log
    ORA-00342: archived log does not have expected resetlogs SCN 2933995
    ORA-00334: archived log:
    'F:\ORACLE\COLD_BACKUP_TRIAL\SET2\ONLINELOG_BK\O1_MF_3_553LGCH3_.LOG'
    I didn't find the file it was suggesting so I tried many combinations of providing the right recovery file name :-- All the latest Archive logs and Redologs in my backup.
    Still the recovery is not successful. Please let me know how can I recover my DATABASE.
    Many thanks in advance.
    Regards,
    Valli

    Greetings,
    If I understood, you basically have a copy of a primary database and the redo log archives of this pretty same database, you have backed up the control file of this primary database, edited it pointing all paths of your datafiles to the new location but renaming the instance name.
    I am assuming that you have edited the first line of your control file to something like "CREATE CONTROLFILE SET DATABASE "DB02" RESETLOGS ARCHIVELOG", in this case are you sure that the redolog archives have not loose the sequence? In this case it will ask more and more archives and it will never end, take a look at the date and time of the thread that your instance is asking for recovery. Is your instance a production database? If it is NOT production and you are SURE that the database is completely recovered and is asking for redolog files that does not even exist you can try to add the ALLOWRESETLOGS_CORRUPTION=TRUE to your init.ora and open the db... This solution is not recommended and you should never use it on production instances... take this hint as a LAST effort to bring your db online.
    Regards,
    Bruno Carvalho

  • Alter database ...

    Hi,
    alter database backup controlfile to trace
    to which trace file the control file is copied ?Is it alert.log in bdump (background dump)?
    Is control file backed up to trace automatically or we do need to execute the command ?
    if we do need to apply the archive logs then can we backup the control file to trace and start apllying the archive logs?
    Thanks,
    AUM

    to which trace file the control file is copied ?The one with most recent timestamp.
    Is it alert.log in bdump (background dump)?Not by default
    Is control file backed up to trace automatically no
    or we do need to execute the command ?There is no "need" to execute the command. DB runs fine without it.
    if we do need to apply the archive logsapply logs to WHAT exactly & WHY?
    then can we backup the control file to trace and start apllying the archive logs?no
    the file that results is a text file.
    What problem are you actually trying to solve.
    I suggest you spend some time Reading The Fine Manuals at http://tahiti.oracle.com

  • Recovery using backup controlfile

    hai,
    can any one explain me on what is the difference between recovering database as,
    recover database until cancel using backup controlfile;and
    recover database until cancel;regards
    ashik

    Hi,
    >>Note that you should only use a backup controlfile that was created via 'alter database backup controlfile to /path/to/your/controlfile_backup;'
    Not exactly... we can use a control file that was made by a cold backup in order to recover a database.
    SQL*Plus: Release 9.2.0.4.0 - Production on Tue Nov 21 21:10:19 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Enter user-name: / as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area   93394180 bytes
    Fixed Size                   451844 bytes
    Variable Size              67108864 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 667648 bytes
    Database mounted.
    Database opened.
    SQL> create user SCOTT identified by TIGER default tablespace USERS quota unlimited on USERS;
    User created.
    SQL> grant connect to SCOTT;
    Grant succeeded.
    SQL> connect SCOTT/TIGER
    Connected.
    SQL> create table emp (cod number primary key);
    Table created.
    SQL> begin
    2 for i in 1..10000 loop
    3 insert into emp values (i);
    4 end loop
    5 end;
    6 /
    PL/SQL procedure successfully completed.
    SQL> commit;
    Commit complete.
    SQL> select count(*) from emp;
      COUNT(*)
         10000
    SQL> connect system/manager
    Connected.
    SQL> select name from v$archived_log;
    NAME
    /backup/archive/1_10.dbf
    /backup/archive/1_11.dbf
    /backup/archive/1_12.dbf
    /backup/archive/1_13.dbf
    4 rows selected.
    SQL> select * from v$log;
        GROUP#    THREAD#  SEQUENCE#      BYTES    MEMBERS ARC STATUS           FIRST_CHANGE# FIRST_TIM
    1 1 14 512000 1 NO CURRENT 51849 22-NOV-06
             2          1         12     512000          1 YES INACTIVE                 51826 22-NOV-06
             3          1         13     512000          1 YES ACTIVE                   51840 22-NOV-06
    SQL> connect / as sysdba
    Connected.
    Crash Simulation
    SQL> shutdown abort
    ORACLE instance shut down.
    Lost Data files and Control Files Simulation
    SQL> host
    oracle@linux:/u01> rm oradata/BDRPS/*.dbf
    oracle@linux:/u01> rm oradata/BDRPS/*.ctl
    oracle@linux:/u01> ls -l oradata/BDRPS/
    total 1524
    -rw-r-----    1 oracle   oinstall   512512 2006-11-22 08:20 redo01.log
    -rw-r-----    1 oracle   oinstall   512512 2006-11-22 08:18 redo02.log
    -rw-r-----    1 oracle   oinstall   512512 2006-11-22 08:19 redo03.log
    Restore Data Files and Control Files from last cold backup
    oracle@linux:/u01> cp -a /backup/oradata/BDRPS/*.dbf oradata/BDRPS/
    oracle@linux:/u01> cp -a /backup/oradata/BDRPS/*.ctl oradata/BDRPS/
    oracle@linux:/u01> exit
    exit
    SQL> startup
    ORACLE instance started.
    Total System Global Area   93394180 bytes
    Fixed Size                   451844 bytes
    Variable Size              67108864 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 667648 bytes
    Database mounted.
    ORA-00314: log 1 of thread 1, expected sequence# doesn't match
    ORA-00312: online log 1 thread 1: '/u01/oradata/BDRPS/redo01.log'
    Begin Recovery Process
    SQL> recover database using backup controlfile;
    ORA-00279: change 51548 generated at 11/07/2006 20:24:21 needed for thread 1
    ORA-00289: suggestion : /backup/archive/1_10.dbf
    ORA-00280: change 51548 for thread 1 is in sequence #10
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00279: change 52048 generated at 11/22/2006 08:18:35 needed for thread 1
    ORA-00289: suggestion : /backup/archive/1_11.dbf
    ORA-00280: change 52048 for thread 1 is in sequence #11
    ORA-00278: log file '/backup/archive/1_10.dbf' no longer needed for this
    recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00279: change 52056 generated at 11/22/2006 08:18:36 needed for thread 1
    ORA-00289: suggestion : /backup/archive/1_12.dbf
    ORA-00280: change 52056 for thread 1 is in sequence #12
    ORA-00278: log file '/backup/archive/1_11.dbf' no longer needed for this
    recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00279: change 52076 generated at 11/22/2006 08:18:37 needed for thread 1
    ORA-00289: suggestion : /backup/archive/1_13.dbf
    ORA-00280: change 52076 for thread 1 is in sequence #13
    ORA-00278: log file '/backup/archive/1_12.dbf' no longer needed for this
    recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00279: change 52087 generated at 11/22/2006 08:18:37 needed for thread 1
    ORA-00289: suggestion : /backup/archive/1_14.dbf
    ORA-00280: change 52087 for thread 1 is in sequence #14
    ORA-00278: log file '/backup/archive/1_13.dbf' no longer needed for this
    recovery
    In this moment, I don't have a sequence log 14 archived, then I will use the Current Log File Group for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /u01/oradata/BDRPS/redo01.log
    Log applied.
    Media recovery complete.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    Database altered.
    SQL> connect SCOTT/TIGER
    Connected.
    SQL> select count(*) from emp;
      COUNT(*)
         10000Cheers

  • Error, Backup Controlfile

    Hello,
    When I tried to make a trace of controlfile, it works very well
    sql> alter database backup controlfile to trace
    But, when I tried to make a copy of the controlfile, it fails
    sql> alter database backup controlfile to 'E:\oracle\db\adm\bdump\control_bkp.ctl'
    ERROR at line 1:
    ORA-01587: error during controlfile backup file copy
    ORA-27091: skgfqio: unable to queue I/O
    ORA-27070: skgfdisp: async read/write failed
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 1117) The request could not be performed because of an I/O
    device error.
    The Oracle user has enough privileges to write and read files at dumps directories. And there is a lot of space on disk.
    The version of oracle software is:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE     9.2.0.8.0     Production
    TNS for 32-bit Windows: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    Operating system is Windows Server 2003
    Any ideas about the error?

    the output of E:\ORACLE\DB\ADMIN\UDUMP is
    a lot of files *.trc. Here I can see the trace for the backup controlfile.
    the output of E:\ORACLE\DB\ADMIN\UDUMP is
    is empty. I saw in command window(cmd) that oracle create the filecontrol while execute the alter database backup controlfile to 'path\control_bck.ctl'. But when the command fails, Oracle automatic delete the file.

  • Fulll database backup problem

    Dear Team ,
    During Full Online backup . I am facing the problem . The BRBACKUP Detail Log  is
    BR0051I BRBACKUP 7.00 (18)
    BR0055I Start of database backup: bdzbskui.fnt 2008-10-21 09.42.40
    BR0477I Oracle pfile /oracle/PRD/102_64/dbs/initPRD.ora created from spfile /oracle/PRD/102_64/dbs/spfilePRD.ora
    BR0280I BRBACKUP time stamp: 2008-10-21 09.42.41
    BR0301E SQL error -1587 at location BrCtlCopy-1, SQL statement:
    '/* BRBACKUP */ ALTER DATABASE BACKUP CONTROLFILE TO '/oracle/PRD/sapbackup/cntrlPRD.dbf''
    ORA-01587: error during control file backup file copy
    ORA-27091: unable to queue I/O
    ORA-27072: File I/O error
    HPUX-ia64 Error: 2: No such file or directory
    Additional information: 4
    Additional information: 195
    Additional information: 417792
    BR0320E Copying of control file to /oracle/PRD/sapbackup/cntrlPRD.dbf failed
    BR0314E Collection of information on database files failed
    BR0056I End of database backup: bdzbskui.fnt 2008-10-21 09.42.41
    BR0280I BRBACKUP time stamp: 2008-10-21 09.42.41
    BR0054I BRBACKUP terminated with errors
    please help
    manu

    one active control file is enough for database to run, you can do copy/paste on line, but make sure that what you do. make sure that all the control files are in same in size.
    i suggest you make a copy of existing control file and then perform copy.
    For example the control files details:
    SQL> show parameter control_files;
    NAME                                 TYPE        VALUE
    control_files                        string      /oracle/PRD/sapdata1/cntrl/cntrlPRD.dbf,
                                                           /oracle/PRD/sapdata2/cntrl/cntrlPRD.dbf,
                                                           /oracle/PRD/saparch/cntrl/cntrlPRD.dbf
    cheers,
    -Sunil

Maybe you are looking for

  • 15in Macbook Pro early 2011 won't shutoff nor can I run disk utilities. Any suggestions?

    Situation: I have a 15in Macbook Pro early 2011 that I can not shutdown nor can I run disk utility to repair any issues. I recently had it serviced to replace a failing hard drive. Known issues:      - Disk Utility: Will not respond. A couple days ag

  • Clearing the cache on version 6.5.2

    I was told I should clear my caches now and then...trouble is I can't find out how to do this. Yasu works for the system and browser ones, but how do I clear Quicktime's? I've clicked on everything there was available to click on in Quicktime Prefere

  • Working of SP Service in SharePoint Development

    Hi, Can any 1 please elaborate me working of SPservice. As it uses Jquey Ajax and no server side code execution. So, how it differs from Server side object model and how much performance it increase. Which one has big advantages. Any guideline to sta

  • Thread 1 cannot allocate new log, sequence 1196,Checkpoint not complete

    We were receiving the following messages in alert log. We have Oracle 10g R2 database having four redo log groups with two members each (50 MB). To overcome this error yesterday we added two more groups with same config. Again we received the same me

  • Output determination for ordering address

    Hi In our business, more than one ordering address might be available for the same vendor. Therefore, we need to send Purchase Orders to different Ordering Address for the same vendor.Kindly help how to maintian the output determination for this. -Pr