Re-create the control file

Hi gurus! Need help



I lost all my files control + I want to rename my database from testrman to ntstrman. But I get an error



ORA 01503 creates command file failed

ORA 01160 file is not a daatafile

dataf file is ' / oradata/ntstrman/temp01.dbf'



Won't please watch throw you and tell me what I'm doing wrong? Thank you.





create_control. SQL:



create controlfile set database ntstrman

RESETLOGS

maxLogFiles 50

maxlogmembers 3

MAXLOGHISTORY 400

MAXDATAFILES 200

MaxInstances 6

ARCHIVELOG

logfile

Group 1 ('/ oradata/ntstrman/redo01.log'),

Group 2 ('/ oradata/ntstrman/redo02.log'),

Group 3 ('/ oradata/ntstrman/redo03.log')

data file

' / oradata/ntstrman/sysaux01.dbf',

' / oradata/ntstrman/system01.dbf',

' / oradata/ntstrman/temp01.dbf',

' / oradata/ntstrman/undotbs01.dbf',

' / oradata/ntstrman/users01.dbf'

;









initntstrman.ora:



testrman.__db_cache_size = 92274688

ntstrman.__db_cache_size = 100663296

testrman.__java_pool_size = 4194304

testrman.__large_pool_size = 4194304

ntstrman.__large_pool_size = 4194304

testrman.__shared_pool_size = 62914560

ntstrman.__shared_pool_size = 54525952

testrman.__streams_pool_size = 0



*.audit_file_dest='/oradata/Admin/ntstrman/adump '

*.background_dump_dest='/oradata/Admin/ntstrman/bdump '

* full = '10.2.0.3.0'

*.control_files='/oradata/ntstrman/control01.ctl','/oradata/ntstrman/control02.ctl','/oradata/ntstrman/control03.ctl'

*.core_dump_dest='/oradata/Admin/ntstrman/cdump '

* .db_block_size = 8192

* .db_domain = "

* .db_file_multiblock_read_count = 16

* .db_name = "ntstrman".

* .db_recovery_file_dest = "/ oradata/flash_recovery_area.

* .db_recovery_file_dest_size = 2147483648

*. Dispatchers ='(Protocol=TCP) (SERVICE = ntstramnXDB)"

* .job_queue_processes = 10

* .open_cursors = 300

* .pga_aggregate_target = 16777216

* runoff = 150

* .remote_login_passwordfile = "EXCLUSIVE."

* .sga_target = 167772160

* .undo_management = "AUTO".

* .undo_tablespace = "UNDOTBS1.

*.user_dump_dest='/oradata/Admin/ntstrman/udump '

Published by: Junior Oracle DBA on October 20, 2008 15:37

This is because ' / oradata/ntstrman/temp01.dbf' is a temporary file not a data file, remove the reference to it and try again. When your database is open, you can add the temporary file in your temp tablespace with ALTER TABLESPACE TEMP ADD TEMPFILE ' / oradata/ntstrman/temp01.dbf'...

HTH

Enrique

Tags: Database

Similar Questions

  • installation quick error when creating the control file

    Hai all,

    I have faced the problem when im installing fresh ebs R12

    my environment:

    Sun sparc 64-bit

    Solaris 11

    This happens when I try to install R12 charge

    rapidwiz, the error ORA-00821 say: sga_target 1024M value is too small, must be at least 2100 m

    and when you create it control file does not,

    no idea is that with this problem?


    all prior references to doc:

    R12.1.1: Oracle eBusiness Suite Installation and Notes version upgrade 12 (12.1.1) for Oracle Solaris on SPARC (64-bit) (Doc ID 761568.1()


    the journal of details below

    Logfile located at /oracle/PROD/db/tech_st/11.1.0/appsutil/log/PROD_SMJKT-PRFND01/ApplyDatabase_11071358.log

    ^ M

    |      0% complete ^ M

    / 0% completed ^ M

    -0% complete ^ M

    ------0% complete RC-50004: Fatal: error in ApplyDatabase:

    Creating control files is not

    Cannot run configuration database using RapidClone

    RW-50010: error:-script returned an error: 1

    RW-50004: Error Code when you run the external process.  Check the log file for more details.

    Install the driver database for the PROD instance running

    Connect to an instance is idle.

    ORACLE instance stops.

    Connect to an instance is idle.

    ORA-00821: sga_target 1024M value is too small, must be at least 2100 m

    ORA-01078: failure in the treatment of system settings

    CREATE CONTROLFILE REUSE SET DATABASE "PROD".

    *

    ERROR on line 1:

    ORA-01034: ORACLE not available

    Process ID: 0

    Session IDs: serial number 0: 0

    ALTER database open resetlogs

    *

    ERROR on line 1:

    ORA-01034: ORACLE not available

    Process ID: 0

    Session IDs: serial number 0: 0

    Hello

    Please consult the following notes, because it deals with workarounds:

    R12.1.1: Oracle eBusiness Suite Installation and upgrade version Notes 12 (12.1.1) for Oracle Solaris on SPARC (64-bit) (Doc ID 761568.1)

    See article: known issues

    and

    ORA-00821 during create Controlfile in the ApplyDatabase Phase of the R12.1.1 Installation on Solaris (Doc ID 1116525.1)

    HTH!

    Thank you &

    Best regards

  • Error at line 1: ORA-01503: creating the control file has no

    Hello

    I do disaster when I create controlfile by trace, I got an error

    CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 2
    MAXDATAFILES 30
    MAXINSTANCES 1
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ' / test/opt/102/oradata/test/redo1.log' 100M, SIZE
    GROUP 2 ' / test/opt/102/oradata/test/redo2.log' 100M, SIZE
    GROUP 3 ' / test/opt/102/oradata/test/redo3.log' SIZE 100 m
    DATA FILE
    ' / test/opt/102/oradata/test/system.dbf',
    ' / test/opt/102/oradata/test/undotbs1.dbf',
    ' / test/opt/102/oradata/test/sysaux.dbf',
    ' / test/opt/102/oradata/test/users01.dbf'
    CHARACTER SET WE8ISO8859P1
    ;
    CREATE CONTROLFILE SEt DATABASE 'test' RESETLOGS ARCHIVELOG
    *
    ERROR on line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in the identification of file ' / test/opt/102/oradata/test/system.dbf'
    ORA-27037: unable to get file status
    Linux-x86_64 error: 2: no such file or directory
    Additional information: 3

    I wrote something wrong?

    Thank you

    I understand, but I couldnot restoration l datafile by rman restore command coz base not at the stage of editing!

    Appear you are not using the rman backup catalog and controlfile to help register rman backup.
    in this case if you recreate the controlfile to way you will lose all your information backup of controlfile.
    better restore controlfile from piece of backup or AutoSave. as restore controlfile from ""

  • How can I specify location of the control file when the manual creation of DB?

    DB version: 11.2.0.4

    OS: Oracle Linux 6.6

    The CREATE DATABASE command creates the control file.

    CREATE DATABASE command is executed once you start the instance in NOMOUNT State as shown below.

    SQL > startup nomount pfile=$ORACLE_HOME/dbs/initBRCPRD.ora

    SQL > create database 'BRCPRD '.

    MaxInstances 32

    MAXLOGHISTORY 1

    maxLogFiles 192

    maxlogmembers 3

    ..

    .

    .

    < snipped >

    When you create the database manually, we can define the control_files parameter in the init.ora as below and control file will be created at this location. Right?

    control_files = ("" / u01/oradata/BRCPRD/BRCPRD_control01.ctl","/u01/oradata/BRCPRD/BRCPRD_control02.ctl "")

    When I was generating the DB using DBCA GUI creation scripts, it asks to enter the location of the Online redo logs and control files.

    I entered my desired location. But, I couldn't find CONTROL_FILES parameter in the init.ora file generated the DBCA. This is why I got confused. I think that DBCA is internally somehow. So thought I'd post it here.

    Hi John, OP

    Just checked the init.ora file created by DBCA. Although the parameter CONTROL_FILES is undefined, db_create_file_dest = '+ DATA_DG1' was created. OMF default location is defined by the db_create_file_dest parameter.

    So, I could safely use this script for the manual creation of DB, and during the CREATE DATABASE command execution, oracle will place CONTROL_FILES + DATA_DG1 using the format;

    +DiskGroup/dbname/filetype/filetypetag.file.incarnation

  • Creation of the control file has no

    Hi all



    When I am creating the control file my terminal is suspended on the next step

    SQL > @/u02/ORACLE/orcldb/9.2.0/dbs/contrl.sql
    ORACLE instance started.

    Total System Global Area 581506668 bytes
    Bytes of size 452204 fixed
    402653184 variable size bytes
    167772160 of database buffers bytes
    Redo buffers 10629120 bytes
    54

    and in the log file alert receive no error

    Hi, Frank.

    Very nice work Helios (as usual).

    Thank you, I share just what I know thatsall

    Thank you, I learned something new today.

    The same for all users of the forum

    Normally, I clone cold backups so I don't need to manually create the controlfile.

    I see that your solution is contained in the following note;
    "Cloning of Oracle Application 11i with rapid Clone /R12 - database (9i/10 g / 11 g) using on Open Database [ID 760772.1] hot backup.

    You are correct, we mainly use this method for hot backup-Section advance clonning

    But I'm still curious to know if Nicolas is to create a clone of a hot backup or a backup to cold, and why he uses the 'ARCHIVELOG' option on his clone.

    It depends, for me I prefer to choose option NOARCHIVELOG and NORESETLOG

    Please check:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/statements_5003.htm

    Respect of
    HELIOS

  • Problem to identify the control file when creating physical standby

    Hello

    (database version: 10.2.0.4)
    linux platform)

    I use the command below to create physical database from a backup before:
    rman target / auxiliary sys/tiger@paceview
    
    Recovery Manager: Release 10.2.0.4.0 - Production on Tue Sep 4 18:05:53 2012
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    connected to target database: PACEVIEW (DBID=2092349485)
    connected to auxiliary database: PACEVIEW (not mounted)
    
     run {
     allocate auxiliary channel c1 device type DISK;
     set until sequence 38;
     duplicate target database for standby dorecover nofilenamecheck;
     }
    
    
    released channel: ORA_DISK_1
    allocated channel: c1
    channel c1: sid=35 devtype=DISK
    
    allocated channel: c2
    channel c2: sid=36 devtype=DISK
    
    executing command: SET until clause
    
    Starting Duplicate Db at 04-SEP-12
    
    contents of Memory Script:
    {
       set until scn  138180211934;
       restore clone standby controlfile;
       sql clone 'alter database mount standby database';
    }
    executing Memory Script
    
    executing command: SET until clause
    
    Starting restore at 04-SEP-12
    
    channel c1: restoring control file
    ORA-19625: error identifying file /backup/rman/paceview/DEL1_standby.ctl
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    ORA-19600: input file is control file  (/backup/rman/paceview/DEL1_standby.ctl)
    ORA-19601: output file is control file  (/PGHProdDB/oradata/paceview/control1.ctl)
    failover to previous backup
    
    released channel: c1
    released channel: c2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/04/2012 18:01:44
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06024: no backup or copy of the control file found to restore
    I already tried to cross but always give same error
    Thank you

    Hello;

    That's what I'd do:

    Primary backup (change in your directory as needed)

    RMAN RUN {
    allocate channel d1 type disk;
    backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
    backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
    release channel d1;
    }
    

    Move the backup and duplicate like this:

    rman target sys/password@PRIMARY auxiliary /
    
    RMAN> run {
    allocate channel C1 device type disk;
    allocate auxiliary channel C2 device type disk;
    duplicate target database for standby nofilenamecheck;
    }
    

    For details of this method, see:

    http://www.Visi.com/~mseberg/duprman2.html

    Best regards

    mseberg

  • problem in the control file created by file LKM to Oracle (SQLLDR)

    I have a fixed file ABC.txt and it has three fields/columns of length, C1: = 4, C2: = 10 & C3: = 6 & I use LKM to Oracle (SQLLDR) file to load data into the target oracle table.

    I received the following error message in step CALL SQLLDR at km
    "org.apache.bsf.BSFException: exception of Jython: Traceback (innermost last):
    File "< string >", line 3, in? »

    Then I checked the registry of file control and found that the start value position & final value was not defined in the control file that is created automatically by LKM
    "
    SQL * Loader-350: error of syntax on line 14.
    Expects an integer positive, found ': '.
    C1_C1 POSITION (:) '


    The control created by ODI file & the position value is missing.

    OPTIONS)
    SKIP = 0,
    ERRORS = 0,
    DIRECT = FALSE
    )
    DOWNLOAD THE DATA
    INFILE 'C:/SNAPON/EOL.txt '.
    BADFILE "C:/SNAPON/ABC.bad."
    DISCARDFILE 'C:/SNAPON/ABC.dsc '.
    DISCARDMAX 1
    IN THE TABLE SNAPON_W.C$ _0ABC
    (
    C1_C1 POSITION (:),
    C2_C2 POSITION (:),
    C3_C3 POSITION (:)
    )

    '
    Anyone know why the position value is not created in the control file.

    Published by: neeraj_singh on March 3, 2011 01:25

    Hi Neeraj,

    It happens because you have not selected the area of mapping as STAGUING running.

    Open your interface, click each column of your data target store, make sure that "run them One" is marked on the "transit Zone".

    Then run your interface.

    Thank you
    Fati

  • Quickie: Write to the file measure VI, how to create the new file?

    I use the writing on measurement file express VI in my code and I plugged into it a control that sets the location where to save the file of measure

    The only problem is that the file of measure must exist first! I cant for example, from the Control Panel, click the directory to browse box, navigate to a folder and type a name for the file. It just says: file not found! It's like the control file directory opens a file to save in, rather than creating a new file to this location

    How can I solve this?

    AlexMason86 wrote:

    Project attached

    If I go into the navigation options, what should I do? Just selected new and existing files?

    Uh, Yes. Also, there is a help button.

  • Impossible to copy the control file.

    Hi everyone, I am trying to clone my database and get this error when you try to copy the control file.  I apologize if it's very beginner to here but I'm really stuck and need a hand!  Thank you.

    SQL > @D:\oracle\product\test\cloneinfo\test_ctl.sql

    ORA-01081: cannot start already running ORACLE - he stop first

    CREATE CONTROLFILE SET DATABASE "mediated" RESETLOGS ARCHIVELOG

    *

    ERROR on line 1:

    ORA-01503: CREATE CONTROLFILE failed

    ORA-00200: control file could not be created

    ORA-00202: control file: ' D:\ORACLE\PRODUCT\ORADATA\TEST\TEST_CONTROL01. CTL'

    ORA-27038: created file already exists

    OSD-04010: < create > option specified, the file already exists

    START: RECNO: = SYS. DBMS_BACKUP_RESTORE. SETCONFIG ("CONTROLFILE AUTOBACKUP', 'ON'")

    ; END;

    *

    ERROR on line 1:

    ORA-01507: database not mounted

    ORA-06512: at "SYS." "X$ DBMS_BACKUP_RESTORE ', line 4400

    ORA-06512: at line 1

    ALTER DATABASE OPEN RESETLOGS

    *

    ERROR on line 1:

    ORA-01507: database not mounted

    SQL > select name from v$ datafile

    2;

    Select name from v$ datafile

    *

    ERROR on line 1:

    ORA-01507: database not mounted

    Each of us has started early, don't worry.

    (1) analyze the errors:

    ORA-01081: cannot start already running ORACLE - he stop first

    your database are open? Check it with--> sqlplus > select status from v$ instance;

    (2) following error:

    ORA-00202: control file: ' D:\ORACLE\PRODUCT\ORADATA\TEST\TEST_CONTROL01. CTL'

    ORA-27038: created file already exists

    OSD-04010: option specified, file already exists

    Explain to: https://forums.oracle.com/message/9629124

    (3) to create controlfile your database should be in status "Nomount". So:

    SQL > shutdown immediate;

    SQL > startup nomount;

    4) more info on: CREATE CONTROLFILE

    If you have more problems, let us know.

  • Creating a control file

    I have a question about the creation of a control file. If I want to create another control file, do I need to put values/paths of the control file in the CREATE CONTROLFILE statement?

    go in $ORACLE_HOME/dbs directory... you will find pfile/spfile.

  • How can I validate the data in the control file?

    Consider that the SQLLoader reads the data entry of the path file and loads the data in the base tables up on top of the description specified in the control file.
    First, the form is created:

    create table sql_loader_1 (load_time date, digital Champ_1, Champ_2 varchar2 (10))
    Example of control file:
    load_1.CTL

    load data
    INFILE "load_1.dat", "str"\r\n"
    insert into table sql_loader_1
    (
    load_time sysdate,
    Champ_2 position (01:10).
    Champ_1 position(11:20)
    )
    Note that positions 11 to 20 are loaded in positions 1 to 10 in Champ_2 and Champ_1. The load_time field is filled with time current (sysdate) load.

    Here is the data. The name of the file (load_1.dat) had been specified with the statement for infile in the control file.

    load_1.dat

    0123456789abcdefghij
    **********##########
    foo bar
    This is a very long line
    and the next one is
    short

    declared the Champ_1 as a numeric data type, but the input data file contains the data "Sue"(position 11:20) so the sql loader adds not the record to the database instead the record is written in the bad file. But I want to validate the data of the "(position 11:20) is digital or not." How can I post this in the control file itself? If it is not possible, how can I validate it in the database? give me a sample code to explain this

    Here are two ideas.

    Idea 1: This control file will check to see if the data to be loaded in Champ_1 contains a number (including the negative and decimal).

    load data
    infile 'load_1.dat' "str '\r\n'"
    insert into table sql_loader_1
    (
    load_time sysdate,
    field_2 position( 1:10),
    field_1 position(11:20) "decode(trim(translate(:field_1,'-0123456789.',' ')),null,:field_1,-999)"
    ) 
    

    If Champ_1 is a number or null, it is passed through, as is. If there is no numeric characters (in addition to '-'and'.') a distinct value-999 will be inserted for you allow to load the rest of the columns and easy to see the lines had data that cannot be loaded in Champ_1. This idea has its flaws (a string like "... ("will always drain the .bad file)

    Idea 2: Load the data into a staging table first (or define an external table) where all columns are VARCHAR2. Then use SQL or PL/SQL to validate data in the staging table in your process to move the data into the table with the actual data types.

  • Corrupt block is detected in the control file

    Hi all

    I have a scenario where I have set up regional advisory councils active / standby and I managed archive redo logs applied to sleep - everything was ok

    Versions - Oracle 11g R2, RHEL 5

    Scenario 1:
    Perfectly redo application log on the work of sleep when I don't create our software application tables using sql on the primary scripts until AFTER the stages of CAR/Dataguard completed successfully.



    Scenario 2:
    Redo log application does not work when I'm not running our sql scripts until I take a RMAN backup of the primary to be duplicated in the Standby

    Everything comes in the day before after the rman duplicate, archive logs is transferred, but now they are not applied.

    I see the ORA-00227: Corrupt block is detected in the control file: (block 1, block # 1) in the journal alerts when I put on standby in Recovery Mode

    My theory is that somehow our sql scripts are breaking my rman backups when I run them before creating a primary RMAN backup to load on Standby - I just need someone to indicate whether there is a possibility of their experience, if so I will contact the support of Oracle to continue the investigation. It's my first time working on CARS DG etc.

    Thank you

    Hello
    If not solved with 11.2.0.2 I opened a SR.
    I don't think that this should be the case...
    Sebastian

  • ORA-01103: name of database 'Soqs2' in the control file is not ' tests1...

    Hello, please help me on this... im using 10.2.0.4.0, DB created by ex-colleague

    When the db connection has ora error 1103 and tried to create controlfile using track, but I could not

    Here are the details:

    Tests1 > bootable media.
    ORACLE instance started.

    Total System Global Area 734003200 bytes
    Bytes of size 2141536 fixed
    328159904 variable size bytes
    369098752 of database buffers bytes
    Redo buffers 34603008 bytes
    ORA-01103: "Used2" database name in the control file is not "Tests1.

    you want save ctl file and changing the dbname, get error below...

    Tests1 > alter database backup controlfile to trace;
    ALTER database backup controlfile to trace
    *
    ERROR on line 1:
    ORA-01507: database not mounted

    TESTING1:/app/Oracle/TESTING1/product/10.2.0.4/DBS > grep db_name initTESTING1.ora
    * .db_name = "Gel1.

    I found used2 entered into the alert log file...

    Tests1: / app/oracle/tests1/admin/bdump > grep used2 alert_TESTING1.log
    DBNAME will change to the new DBNAME of used2 tests1
    Name of database used2.
    ID of the database for the database used2 changed in 1933958893.

    I tried to create new controlfile and tried to start... got under error so I hv mentioned even path of the data files...
    ORA-01161: name of database used2 in the file header does not match name tests1

    This is the first law of holes.

    When you are in a hole, the first thing you can do is STOP digging.

    Did you take a full backup, the cold since the event started?

    DBNAME will change to the new DBNAME of used2 tests1

    When & why this has happened?

    You have a valid & recent backup?

    I tried to create new controlfile

    Why did you do this?

    Edited by: sb92075 may 7, 2010 20:36

  • Cannot create the .css file

    What happened to textedit, it's now the fubar for webdesign!

    I used to be able to create the .css files with text edit but now its locked to the rtf format and will not produce a usable file more.

    Look at the preferences and change it to RTF to plain text.

  • Error message Microsoft Word "Word could not create the work file. Check the amount of disk space on your startup disk. »

    I have a MacBook Pro, retina 13inch OS X el Capitan Version 10.11.1 with 16 GB of memory. It's brand new and I have recently installed Microsoft Word/Powerpoint etc. a disc that I bought a few years to my previous MacBook. It seems to work very well, but whenever I want to open a word document a message comes up saying "Word could not create the work file. Check the amount of disk space on your startup disk '. However, once I click 'OK' this message disappears and my word file opens without a problem. I have 16 GB of memory on this laptop and it's new I have not reached anywhere near the maximum amount of storage so I'm puzzled as to what this message means. How can I avoid that this message popping up everytime I open Microsoft Word? Any help would be appreciated!

    This has nothing to do with memory - it's the SSD. Word tries to create a temporary file to use as a backup if the program crashes while you are working. First, run the Microsoft Update program to see if there are updates you have missed. Second, Microsoft currently supports only versions 2011 and 2016, so if yours is older, you should consider the upgrade. Thirdly, I suspect that the temporary file is not get created so that you have fewer cancellations (maybe any) and that if the program crashes you have to restore.

Maybe you are looking for