How to relocate control file?

I want to relocate my control files to a new location.. I want to know my options on how to do this (apart from shutting down db). Users are logged on most of the time. Oracle version is 9i.

the only way i know is to shutdown the DB, change the parameter value CONTROL_FILES, copy the file to the new location and restart. Since this parameter cannot be modified online, i doubt you can do this without bouncing the instance.

Similar Messages

  • How to Restore Control file to New Server

    I want to test my backup by restoring the full backup of my production database on a separate test server.
    I have taken following action for restore to test server:
    •     Copy full backup to Test Server on same folder where it was in Production Server.
    •     Copy parameter file to Test Server. (Edit control file location on it)
    •     Connect Rman
    •     Set DB with new DBID
    •     Startup Nomount (from new parameter file)
    RUN
    ALLOCATE CHANNEL c1 TYPE DISK;
    RESTORE CONTROLFILE FROM AUTOBACKUP;
    ALTER DATABASE MOUNT;
    Then we found following error:
    RMAN> RESTORE CONTROLFILE FROM AUTOBACKUP;
    Starting restore at 07-NOV-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=9 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day: 20071107
    channel ORA_DISK_1: looking for autobackup on day: 20071106
    channel ORA_DISK_1: looking for autobackup on day: 20071105
    channel ORA_DISK_1: looking for autobackup on day: 20071104
    channel ORA_DISK_1: looking for autobackup on day: 20071103
    channel ORA_DISK_1: looking for autobackup on day: 20071102
    channel ORA_DISK_1: looking for autobackup on day: 20071101
    channel ORA_DISK_1: no autobackup in 7 days found
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/07/2007 16:35:13
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    Can anyone guide me, how to restore control file?
    Irfan

    RMAN> RESTORE CONTROLFILE FROM AUTOBACKUP;
    Starting restore at 07-NOV-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=9 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day:
    20071107
    channel ORA_DISK_1: looking for autobackup on day:
    20071106
    channel ORA_DISK_1: looking for autobackup on day:
    20071105
    channel ORA_DISK_1: looking for autobackup on day:
    20071104
    channel ORA_DISK_1: looking for autobackup on day:
    20071103
    channel ORA_DISK_1: looking for autobackup on day:
    20071102
    channel ORA_DISK_1: looking for autobackup on day:
    20071101
    channel ORA_DISK_1: no autobackup in 7 days found
    RMAN-00571:It seems to me its not finding the contolfile from 7 days before sysdate ,increase the window size using
    RMAN>restore controlfile from autobackup maxdays 15;Khurram

  • How to create Control file.

    Being a new bie plz help me.
    Can you let me know steps to create a new
    control file. Create control file is always
    giving error messages and if i have all data
    and REDO logs intact how can i recover my
    data base again using new control file
    please help ....
    null

    hai,
    for creating control file we proceed to ways:
    1. create controle file using sql command as sys or system users
    sql>alter database backup controlfile to trace;
    system itself creates controlfile and keeps in udump directory.
    2. using the old backup copies, edit the currect file locations, parameters manually.
    Then run this script at nomount mode, to create the controlfile
    murty
    null

  • How to multiplexing control files in ASM instance???

    Hi Folks
    I have an Oracle DB10g R2 with ASM in which the unique control file is in one group of ASM.
    My question is how to multiplex the controlfile and redo logs???
    Very thanks,
    Wilson

    Hi, you can use the OMF feature of ORACLE to move the controlfile into the ASM.
    1. you create a backup controlfile: ALTER DATABASE BACKUP CONTROLFILE TO '/home/oracle/control.bac';
    2. you specify the locations:
    - ALTER SYSTEM SET db_create_online_log_dest_1='+ASMGROUP1'; -- RMAN will restore one mirror of the controlfile in each of these locations!
    - ALTER SYSTEM SET db_create_online_log_dest_2='+ASMGROUP1';
    ALTER SYSTEM SET db_recover_file_dest='+ASMGROUP1'; -- this will make RMAN restore the controlfile in the flash_recovery_area!
    3. you create a pfile from spfile:
    - CREATE PFILE FROM SPFILE;
    4. you archive the current redolog:
    - ALTERSYSTEM ARCHIVE LOG ALL;
    and SHUTDOWN IMMEDIATE
    5. you edit the pfile by removing the entry for CONTROL_FILES!!!
    - and after this: CREATE SPFILE FROM PFILE;
    6. you use RMAN to restore the controlfile in the ASM:
    RMAN> STARTUP NOMOUNT;
    RMAN> RESTORE CONTROLFILE FROM '/home/oracle/control.bac';
    RMAN> ALTER DATABASE MOUNT;
    RMAN> RECOVER DATABASE USING BACKUP CONTROLFILE;
    RMAN>ALTER DATABASE OPEN RESETLOGS;
    Hope this helps,
    Lutz

  • How to mulitplex control files with raid

    I have installed 8i DB server on a HP proliant server machine. Raid 2 is configured on the server machine with windows OS, two hard disks are mirrored.
    It is often recommended to multiplex conrol files and redo log files on multiple hard disk to protect from disk failure.
    how can i do this, as i have 3 logical drives but all they are of same physical device.
    multiplexing control files on different logican drives is same as keeping them in the same default folder.
    Please help making things clear ?????

    1. RAID is all about availability and is not a substitute for duplexing of control files or online redo logs.
    2. It is better to have multiple physical drive (sets) on which to place copies of the control file and online redo logs. That way, any failure of the RAID or file system will still leave you with copies of these vital files.
    3. If you only have logical drives, it is best to place copies on various logical volumes. This way, you are (at least) protected from file system failure, corruption, or accidental delete.

  • How to write control file below data

    Hi,
    Here is my table
    create table sample1 (name varchar2(5), num number(2));
    sample.txt(Datafile)
    vikram12
    sharma13
    sonu 14
    Here is my control file
    load data
    infile 'C:\sample.txt'
    into table sample1
    fields terminated by "," optionally enclosed by '"'          
    ( name char(5), num char(2) )
    But it rejecting all the records. Just let me know where i went wrong.
    Thanks in advance

    fields terminated by "," optionally enclosed by
    '"'          As per your control file, the fields have to be seperated by commas but in your datafile it is seperated by space. Either change the delimiter in your control file or in your datafile
    Using Comma Seperated file,
    sample.txt(Datafile)
    vikram,12
    sharma,13
    sonu, 14
    load data
    infile 'C:\sample.txt'
    into table sample1
    fields terminated by ","
    optionally enclosed by '"'
    ( name char(5),
    num char(2)
    )Note:
    1. You have to increase the length of name column as your datafile has values greater than 5 characters. First and second records will be rejected with NAME VARCHAR2(5)

  • SAP BW 7.0 - How to use control file?

    Hello experts,
    In my current project, I need to use a control file to load some flat files into BW.
    In version 3.5 we had a option in the infopackage where we could select if it was a csv or a control file.
    But in 7.0 version this option is not available anymore.
    I found this threat: Use Control File to load data in BW7.0
    But a .txt control file didn't work. Can somebody help me?
    Thanks!!!

    WS adapter can be used as Direct connection or Integrated Server Communication.  Basically this adapter will be used to make communication between two SAP System's Webservice runtime. WS adapter supports Webservice reliable messaging , SAML and more security features.  Using Direct connection you can communicate two SAP systems. In this case, you dont need any ESR objects and you just need to configure ID objects only.
    Have seen this [link|http://help.sap.com/saphelp_nwpi711/helpdata/en/48/ce28613a8e5430e10000000a42189b/content.htm]
    Hope that helps

  • How to relocate keywords file in CS3 ?

    I want to put this XML file with my other data files. Can it be relocated from Documents and Settings....Bridge CS3 to elsewhere ? How do I tell Bridge where the new location is ? Thanks.

    There is no rotate spread feature in CS3. (I know Bob was saying that tongue in cheek ;-) )
    Workarounds: If it's just a few text blocks, you could group them and rotate them with the Rotation field on the Control panel or the Rotate tool. If it's an entire spread, you could consider saving the spread as an INDD file by itself, then placing the INDD file. You'd use Edit Original (on the Links panel) to edit the rotated spread, then save when you're done.

  • LR 5:  How to relocate photo files when LR says the file can not be found?

    I moved my photo files to another folder and now LR can't find them.
    How do I change the LR file location to coincide with the actual location?

    Please read these instructions: Adobe Lightroom - Find moved or missing files and folders

  • Creation of control file

    Hi friends,
    I want to do homogeneous system copy.
    I want to know the steps in homogeneous copy, and how to create control file from source system for target system.
    And after that what activity is required .
    thanks
    Regards
    Manoj

    hi
    while doing homogeneous copy sap will do some functinalaties through one sql file I think it will take control file backup and recreate it.
    if u want to do manually
    issue command
    sql>alter database backup controlfile to trace;
    look for trace file in udump dir from that file u can recreate controlfile or rename database.
    before doing take complete cold backup of source.
    start process with sap inst
    it will do certain tasks ref in manual
    let me know if u knoe some more inputs
    vinod

  • Control file for SQL*Loader

    Hello,
    I have the following file (2 line) which I want to intend in an oracle database with the SQL*Loader.
    tommy050+3423
    tom 070-0006
    The file consists of two lines and three columns.
    Column1 has always 5 digits and is a String. Additional empty digits will be filled with blanks. Here: “tommy” and “tom “
    Column2 has three digits and is a number. Here: “050” and “070”.
    Column 3 is also a number and consists of four digits. Additionally there is a fifth digit for the leading sign ("+" or "-"). Here: “+3423” and “-0006”.
    This file I want to import in my table “MyTab”.
    MyTab(
         thing          VARCHAR2(5)
         number     NUMBER(3)
         amount     NUMBER
    How would the control file for the SQL*Loader look like for this example?
    Regards
    Homer

    This is a start (untested)
        LOAD DATA
        INFILE 'sample.dat'
        BADFILE 'sample.bad'
        DISCARDFILE 'sample.dsc'
        APPEND
        INTO TABLE MyTab
          ( thing POSITION(1:5)  CHAR ,
           NUMBER    POSITION(6:8)  INTEGER,
           amount POSITION(9:12) INTEGER  )Can you have a column named number?

  • Restoring Control file from snapshot

    Hi,
    As in RMAN the following configuration will create snapshot of control file.
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'product/10.2.0/dbs/snapcf_PROD.f'; # default
    My question is how to restore control file from this snapshot to another location.
    Regards
    Krishna

    Copy RMAN backup files including archive log backup files to the target server
    Copy the SNAPSHOT CONTROL FILE or backed up control file from source server to target server.
    Source Server:
    RMAN> connect target /;
    connected to target database: HRDMO (DBID=209403493034)
    RMAN> show SNAPSHOT CONTROLFILE NAME;
    using target database control file instead of recovery catalog
    RMAN configuration parameters are:
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/opt/oracle/10g/dbs/snapcf_HRDMO.f'; # default
    Target Server:
    Export ORACLE_SID=HRDMO
    RMAN
    RMAN>startup nomount;
    RMAN> set DBID=209403493034;
    executing command: SET DBID
    RMAN> restore controlfile from '/opt/oracle/standby/dbs/snapcf_crmprod.f'; # The location where you have it in target srvr.
    RMAN>alter database mount;
    RMAN> run
    2> {
    3> sql 'alter session set NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"';
    4> set until time '2008-01-31 01:00:00';
    5> restore database;
    6> recover database;
    7> }
    RMAN>alter database open resetlogs;
    You have the copy of instance in the target server.
    Edited by: rajeysh on Jun 23, 2010 3:34 PM

  • Multiplexing control file

    How to multiplexing control file in oracle 10g?

    Hi,
    Two ways are to MULTIPLEXING CONTROL FILE.
    If you are using PFILE..
    1. Set a Parameter... CONTROL_FILE= <ORACLE_BASE>\ORADATA\ORCL\CONTROL1.CTL,<ORACLE_BASE>\ORADATA\ORCL\CONTROL2.CTL
    If you are using SPFILE..
    2. Then use, ALTER SYSTEM CLAUSE to change the paremeter value dynamically.
    for ex> ALTER SYSTEM SET CONTROL_FILE=<ORACLE_BASE>\ORADATA\ORCL\CONTROL1.CTL, <ORACLE_BASE>\ORADATA\ORCL\CONTROL2.CTL
    Thanks.

  • How to relocate one of the control files on another computer?

    Hi ,
    I have created a database(10g Release 2) on a windows xp laptop. The control_files parameter is:
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL01.CTL, C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL02.CTL, C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL03.CTL *, and I use spfile* . Now, I would want to move the third control file(C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL03.CTL) to a disk on another computer ( which is a desktop running Windows XP SP2).The laptop and the desktop are on the same network, the laptop IP address is 192.168.0.1, and the desktop IP address is 192.168.0.2.On the desktop, I have a directory named CONTROL_FILES_DIR on a disk partition named C,*and using Windows appropriate GUI, I have shared this directory CONTROL_FILES_DIR , and given to all users the read and write rights on this CONTROL_FILES_DIR directory*. Then, I take the following steps:
    a- In sql*plus(on the laptop), I execute
    alter system set control_files='C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL01.CTL', 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL02.CTL', '\\192.168.0.2\C:\CONTROL_FILES_DIR\CONTROL03.CTL'  SCOPE=SPFILEb- Then , in sql*plus(on the laptop), I execute
    shutdown immediate;c- Now, I copy CONTROL03.CTL file (on the laptop) and paste it in the directory C:\CONTROL_FILES_DIR on the desktop.
    d-Now, in sql*plus(on the laptop), I execute
    connect /as sysdba e-And,after the step d, I execute(in sql*plus, on the laptop):
    startupAnd sql*plus displays the message : ORA-00205 error in identifying control file; check alert log .
    I read the alert log file , and it was written:
    ORA-00202: control file: '\\192.168.0.2\C:\CONTROL_FILES_DIR\CONTROL03.CTL'
    ORA-27041: unable to open file
    OSD-04002: Unable to open file
    O/S-Error: (OS 5) Access is denied.Please, how can I solve this problem?
    Thanks.

    user639304 wrote:
    Hi ,
    I have created a database(10g Release 2) on a windows xp laptop. The control_files parameter is:
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL01.CTL, C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL02.CTL, C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL03.CTL *, and I use spfile* . Now, I would want to move the third control file(C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL03.CTL) to a disk on another computer ( which is a desktop running Windows XP SP2).The laptop and the desktop are on the same network, the laptop IP address is 192.168.0.1, and the desktop IP address is 192.168.0.2.On the desktop, I have a directory named CONTROL_FILES_DIR on a disk partition named C,*and using Windows appropriate GUI, I have shared this directory CONTROL_FILES_DIR , and given to all users the read and write rights on this CONTROL_FILES_DIR directory*. Then, I take the following steps:
    a- In sql*plus(on the laptop), I execute
    alter system set control_files='C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL01.CTL', 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\DB10G\CONTROL02.CTL', '\\192.168.0.2\C:\CONTROL_FILES_DIR\CONTROL03.CTL'  SCOPE=SPFILEb- Then , in sql*plus(on the laptop), I execute
    shutdown immediate;c- Now, I copy CONTROL03.CTL file (on the laptop) and paste it in the directory C:\CONTROL_FILES_DIR on the desktop.
    d-Now, in sql*plus(on the laptop), I execute
    connect /as sysdba e-And,after the step d, I execute(in sql*plus, on the laptop):
    startupAnd sql*plus displays the message : ORA-00205 error in identifying control file; check alert log .
    I read the alert log file , and it was written:
    ORA-00202: control file: '\\192.168.0.2\C:\CONTROL_FILES_DIR\CONTROL03.CTL'
    ORA-27041: unable to open file
    OSD-04002: Unable to open file
    O/S-Error: (OS 5) Access is denied.Please, how can I solve this problem?
    Thanks.Even if you get this to work one time, the very operation of your db is dependent on the availability of that second computer. Not a wise design decision. What problem are you trying to solve with this technique?

  • In case of Control File Failure, Create Control File cmd how get scn?

    The following lines i picked from the
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5033895918209
    ======================================================
    1. We can use the 'alter database rename ' at mount stage to rename any datafile. Or is it not possible to rename the system datafile like this? Why?
    2. What happens to the SCN information in the controlfile when a controlfile is recreated? How will the database sync the SCN with that of the datafiles?
    If I issue a 'backup controlfile to <file>' at 8 am and then restore that controlfile binary backup at 10 am and try to open the database, it will give me a control file old error. I understand that it is because the SCN is not in sync. But if I issue a 'backup controlfile to trace' at 8 am and use that script to recreate a new controlfile at 10 am, why doesn't I get the error? Where does it get the SCN information then?
    So what is the use of taking a binary copy of the controlfile. Looks like having a 'backup controlfile to trace' script is better than a binary backup. Do you agree? Why/whynot?
    Followup August 16, 2002 - 2pm US/Eastern:
    1) you could but I just always did it with the create controlfile statement.
    When moving system -- I do it that way
    When moving ANY OTHER tablespace -- i just offline it, move the files, rename the files online it.
    2) it just happens.
    The control file you create will read the files to figure out what is up.
    I agree, I've never used a binary controlfile backup myself.
    =========================================================
    My Question- In the Point2 above "Where does it get the SCN information and how control file do SCN Sync with data files?
    "

    1. The CREATE CONTROLFILE reads SCNs from the DataFiles. If the
    database was last shutdown, all the datafiles are "non-fuzzy" and have the same
    SCN (as of the shutdown checkpoint), If the database or some of the files are from
    are hot backup, you cannot open the database because the SCN of some files is
    older (lower) than others -- that is why a RECOVER (DATABASE or DATAFILE) is
    required.
    See http://web.singnet.com.sg/~hkchital/Incomplete_Recovery_with_BackupControlfile.doc
    2. I'm not sure I agree with Tom Kyte's response
    "I agree, I've never used a binary controlfile backup myself. "
    to the question
    "So what is the use of taking a binary copy of the controlfile. Looks like having a 'backup controlfile to trace' script is better than a binary backup. Do you agree? Why/whynot?"
    If you have lost your database (storage/filesystem failure) and all your datafiles are lost,
    you cannot simply do a CREATE CONTROLFILE from a Trace -- because the
    CREATE CONTROLFILE has to read and verify all the datafiles specified in the
    CREATE statement. If you have an RMAN Repository, you can use that to restore
    your database files but otherwise, the RMAN information about backups and backupsets
    are in the binary controlfile.
    That is why it is important to take binary controlfile backups either manually or
    using RMAN or using CONFIGURE CONTROLFILE AUTOBACKUP ON.

Maybe you are looking for