AUDIT CREATE CONTROL FILE

Hai
how to set audit for CREATE CONTROL FILE?
17:45:07 SQL> AUDIT CREATE CONTROL FILE;
AUDIT CREATE CONTROL FILE
ERROR at line 1:
ORA-00969: missing ON keyword
Whats the problem above statement?

Hello;
That sounds like an issue outside of Oracle ( OS? ). The listener logs might help.
On your first question I check the alert log of my test database. It does not show control file creation, but it kind of a Chicken and the egg, with the database create.
It does show standby information :
Mon Jan 02 05:38:59 2012
alter database create standby controlfile as 'STANDBY.ctl' Common audits
audit grant any object privilege;
audit create session;
audit alter user;
audit create user;
audit drop user;
audit drop tablespace;
audit grant any role;
audit grant any privilege;
audit alter system;
audit alter session;
audit delete on AUD$ by access;
audit insert on AUD$ by access;
audit update on AUD$ by access;
audit delete table;
audit create tablespace;
audit alter database;
audit create role;
audit create table;
audit alter any procedure;
audit create view;
audit drop any procedure;
audit drop profile;
audit alter profile;
audit alter any table;
audit create public database link;Best Regards
mseberg
Edited by: mseberg on Jul 7, 2012 7:35 AM

Similar Messages

  • Urgent: DBrefresh error 354 while creating control file, oracle9i, SAP R3

    Hi experts,
    I have created trace file in Source system and moved the same to target system and edited and then while executing the trace file to create control file the following eeror is coming
    my trace file is like this. . .
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "P47" RESETLOGS ARCHIVELOG
    --  SET STANDBY TO MAXIMIZE PERFORMANCE
        MAXLOGFILES 255
        MAXLOGMEMBERS 3
        MAXDATAFILES 336
        MAXINSTANCES 50
        MAXLOGHISTORY 8168
      '/oracle/P47/sapdata9/btabd_63/btabd.data63',
      '/oracle/P47/sapdata9/stabi_27/stabi.data27',
      '/oracle/P47/sapdata9/btabi_122/btabi.data122',
      '/oracle/P47/sapdata9/stabd_28/stabd.data28',
      '/oracle/P47/sapdata9/btabi_123/btabi.data123',
      '/oracle/P47/sapdata9/btabd_64/btabd.data64',
      '/oracle/P47/sapdata9/btabi_124/btabi.data124'
    CHARACTER SET WE8DEC
    i run command like this:
    SQL> @/oracle/P47/saptrace/usertrace/control.sql
    ORACLE instance started.
    Total System Global Area          1249618992 bytes
    Fixed Size                                     732208 bytes
    Variable Size                             788529152 bytes 
    Database Buffers                       459022446 bytes
    Redo Buffers                                1335296 bytes
    <b>354</b>
    when I press 'enter' again SQL prompt is comming
    Please help
    rgds

    Hi markus,
    thanks for reply . .
    control files are not created. . . .
    alertSID logs shows as follows
    orap47> tail -f alert_P47.log
    ARCH shutting down
    Thu Dec 13 13:01:51 2007
    ARC0: Archival stopped
    Thu Dec 13 13:01:51 2007
    ARC1: Archival stopped
    Thu Dec 13 13:01:54 2007
    ARCH: Archiving is disabled
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    <b>When @/oracle/saptrace/usertrace/control.sql command given in sepearate SQL window</b>
    Thu Dec 13 13:03:37 2007
    Starting ORACLE instance (normal)
    Disable cache advisory with old cache parameters
    Thu Dec 13 13:03:37 2007
    WARNING: EINVAL creating segment of size 0x000000004b800000
    fix shm parameters in /etc/system or equivalent
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    SCN scheme 3
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up ORACLE RDBMS Version: 9.2.0.4.0.
    System parameters with non-default values:
      processes                = 80
      sessions                 = 96
      timed_statistics         = TRUE
      shared_pool_size         = 704643072
      enqueue_resources        = 8000
      control_files            = /oracle/P47/sapdata1/cntrl/cntrlP47.dbf, /oracle/P47/sapdata2/cntrl/cntrlP47.dbf, /oracle/P47/sapdata3/cntrl/cntrlP47.dbf
      db_block_buffers         = 56033
      db_block_checksum        = FALSE
      db_block_size            = 8192
      compatible               = 9.2.0
      log_archive_start        = TRUE
      log_archive_dest         = /oracle/P47/saparch/P47arch
      log_buffer               = 1048576
      log_checkpoint_interval  = 0
      db_files                 = 354
      db_file_multiblock_read_count= 8
      log_checkpoints_to_alert = TRUE
      control_file_record_keep_time= 30
      dml_locks                = 2500
      row_locking              = always
      replication_dependency_tracking= FALSE
      transactions_per_rollback_segment= 20
      rollback_segments        = PRS_0, PRS_1, PRS_10, PRS_11, PRS_12, PRS_13, PRS_14, PRS_2, PRS_3, PRS_4, PRS_5, PRS_6, PRS_7, PRS_8, PRS_9
      transaction_auditing     = FALSE
      remote_os_authent        = TRUE
      db_domain                = world
      parallel_max_servers     = 20
      hash_join_enabled        = FALSE
      background_dump_dest     = /oracle/P47/saptrace/background
      user_dump_dest           = /oracle/P47/saptrace/usertrace
      core_dump_dest           = /oracle/P47/saptrace/background
      optimizer_features_enable= 9.2.0
      sort_area_size           = 2097152
      sort_area_retained_size  = 0
      db_name                  = P47
      open_cursors             = 800
      optimizer_mode           = choose
      btree_bitmap_plans     = FALSE
      pushjoin_predicate     = FALSE
      optimizer_index_cost_adj = 10
      newinitial_join_orders = FALSE
      optimpeek_user_binds   = FALSE
    PMON started with pid=2
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    Thu Dec 13 13:03:39 2007
    ARCH: STARTING ARCH PROCESSES
    ARC0 started with pid=8
    ARC0: Archival started
    ARC1 started with pid=9
    Thu Dec 13 13:03:39 2007
    ARCH: STARTING ARCH PROCESSES COMPLETE
    Thu Dec 13 13:03:39 2007
    ARC0: Thread not mounted
    Thu Dec 13 13:03:39 2007
    ARC1: Archival started
    ARC1: Thread not mounted
    rgds

  • Error while creating control file

    hi
    i am getting following error while creating controll file
    QL> shutdown
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area  629145600 bytes
    Fixed Size                  1250548 bytes
    Variable Size             171969292 bytes
    Database Buffers          452984832 bytes
    Redo Buffers                2940928 bytes
    SQL> @c:\study\rose\c.sql
    SP2-0042: unknown command "DATAFILE" - rest of line ignored.
    SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
    SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
    SP2-0734: unknown command beginning "CHARACTER ..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    1  CREATE CONTROLFILE SET DATABASE "ROSE" RESETLOGS  froce logging NOARCHIVELOG
    2      MAXLOGFILES 32
    3      MAXLOGMEMBERS 2
    4      MAXDATAFILES 32
    5      MAXINSTANCES 16
    6      MAXLOGHISTORY 1752
    7  LOGFILE
    8  GROUP 1 'C:\oracle\product\10.2.0\oradata\rose\LOG1ROSE.ORA'  SIZE 50M,
    9    GROUP 2 'C:\oracle\product\10.2.0\oradata\rose\LOG2ROSE.ORA'  SIZE 50M,
    10   GROUP 3 'C:\oracle\product\10.2.0\oradata\rose\LOG06.LOG'  SIZE 25M,
    11*   GROUP 4 'C:\oracle\product\10.2.0\oradata\rose\LOG07.LOG'  SIZE 25M
    SQL>

    CHETAN YADAV wrote:
    hi
    i am getting following error while creating controll file
    QL> shutdown
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area  629145600 bytes
    Fixed Size                  1250548 bytes
    Variable Size             171969292 bytes
    Database Buffers          452984832 bytes
    Redo Buffers                2940928 bytes
    SQL> @c:\study\rose\c.sqlWe can't debug what we can't see. And what we can't see is the contents of "c:\study\rose\c.sql".
    SP2-0042: unknown command "DATAFILE" - rest of line ignored.
    SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
    SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
    SP2-0734: unknown command beginning "CHARACTER ..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    1 CREATE CONTROLFILE SET DATABASE "ROSE" RESETLOGS froce logging NOARCHIVELOG
    2 MAXLOGFILES 32
    3 MAXLOGMEMBERS 2
    4 MAXDATAFILES 32
    5 MAXINSTANCES 16
    6 MAXLOGHISTORY 1752
    7 LOGFILE
    8 GROUP 1 'C:\oracle\product\10.2.0\oradata\rose\LOG1ROSE.ORA' SIZE 50M,
    9 GROUP 2 'C:\oracle\product\10.2.0\oradata\rose\LOG2ROSE.ORA' SIZE 50M,
    10 GROUP 3 'C:\oracle\product\10.2.0\oradata\rose\LOG06.LOG' SIZE 25M,
    11* GROUP 4 'C:\oracle\product\10.2.0\oradata\rose\LOG07.LOG' SIZE 25M
    SQL>

  • I am getting error while creating Control file for a fla file upoad in HANA

    Hi Experts,
    I am getting the following error when I try to create crtrol file for a flat file extraction in SAP HANA.
    Could not execute 'import data into table P935718."COPATBL" from 'COPATBL.csv' record delimited by '\n' fields ...'
    SAP DBTech JDBC: [257] (at 14): sql syntax error: incorrect syntax near "into": line 2 col 1 (at pos 14)
    Here is the code I have used to create control file after I creating the table.
    import data
    into table P935718."COPATBL"
    from 'COPATBL.csv'
        record delimited by '\n'
        fields delimited by ','
        optionally enclosed by '"'
    error log 'P935718.COPATBL.err'
    p935718 is my user ID, COPATBL is my table created, COPABL.CSV is a flat file.
    Please help me in this regard.
    Thanks,
    Guna

    Hello,
    guessing from the error message it looks that you are trying to execute "import data" as SQL command.
    Please note that import data is NOT SQL command but it is syntax for control file. You need to create file with this syntax on server and then use command: IMPORT FROM '/<path>/<filename>.ctl'
    In a shortcut:
    1.- create comma separated CSV file with your data - <source cvs>.csv
    2.- upload CVS file to HANA server
    3.- create the control file <filename>.ctl:
    import data
    into table <schema>."<table name>"
    from '<source cvs>.csv'
    record delimited by '
    fields delimited by ','
    optionally enclosed by '"'
    error log '<file name>.err'
    4.- execute command:
    IMPORT FROM '/<path>/<filename>.ctl'
    Please check following threads:
    How to load CSV files into HANA
    Will HANA supports Bulkload
    Tomas

  • Error creating CONTROL FILE

    I have a problem while installing 9iAS R2 on RH LInux 8.
    When database configuration assistant starts during the installation of 9iAS infrastructure, it gives an error "Error creating CONTROL FILE" followed by many other errors.
    Please help me out.
    Zulqarnain

    I had the same problem, but with RH9
    To fix, I ran orapwd from the $ORACLE_HOME/bin directory to create a password file called orapw. Then I moved this file to the directory where the configuration assistant complains it cannot find the file. Fixed. Obviously, just ignore the errors from the configuration assistant about the CONTROL FILE until it tells you the location of the file it is looking for.

  • 11i RW-50004 while creating control file...

    Dear all,
    Kindly let me know what this log file sys...
    I am trying to install 11i on OEL4.6 with 2GB RAM in VMware for Important test purpose. While creating control file in second stage i am getting this Error:,,
    RW-50004 : Error code received when running external process.
    Check log file for details.
    I have check ORALCEHOME/appsutil/log/SID/04270524.log
    Please let me know this error.
    Regards
    GAZA
    Creating the control file for abc_apps11i database ...+
    SQLPlus: Release 9.2.0.5.0 - Production on Fri Apr 27 06:23:10 2012*+
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    ORA-01012: not logged on+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    SP2-0640: Not connected+
    SP2-0641: "EXECUTE" requires connection to server+
    ORA-01031: insufficient privileges+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    SP2-0640: Not connected+
    exit_code=0+
    Checking for errors ...+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01012: not logged on+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    The database has not been successfully created. Shutting down the instance ...+
    SQLPlus: Release 9.2.0.5.0 - Production on Fri Apr 27 06:23:12 2012*+
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.+
    ERROR:+
    ORA-01031: insufficient privileges+
    ORA-01031: insufficient privileges+
    Cannot create control file for abc+
    RW-50010: Error: - script has returned an error:   9+
    RW-50004: Error code received when running external process.  Check log file for details.+
    Running Database Install Driver for abc instance+

    Please make sure the user accounts for the installation (applmgr/oracle) have full privileges.
    Oracle Applications Installation Guide: Using Rapid Install -- Page 1-9
    http://docs.oracle.com/cd/B25516_18/current/acrobat/r115102ins.pdf
    If you still have the same issue, please upload all the log files to any free hosting website and post the link here so we can review it.
    Thanks,
    Hussein

  • Rapid install gettin error when create control file

    hai all ,
    i faced problem when im install fresh ebs R12
    my environment :
    sun sparc 64 bit
    solaris 11
    this occur when i try to install fresh R12
    using rapidwiz , the error say ORA-00821: Specified value of sga_target 1024M is too small, needs to be at least 2100M
    and when creating control file failed,
    is any clue with this problem ?
    all prerequisite  reference to doc :
    R12.1.1 : Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Oracle Solaris on SPARC (64-bit) (Doc ID 761568.1)
    the detail log below this
    Log file located at /oracle/PROD/db/tech_st/11.1.0/appsutil/log/PROD_SMJKT-PRFND01/ApplyDatabase_11071358.log
    ^M
      |      0% completed       ^M
      /      0% completed       ^M
      -      0% completed       ^M
      \      0% completed       RC-50004: Fatal: Error occurred in ApplyDatabase:
    Control file creation failed
    Cannot execute configure of database using RapidClone
        RW-50010: Error: - script has returned an error:   1
    RW-50004: Error code received when running external process.  Check log file for details.
    Running Database Install Driver for PROD instance
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORA-00821: Specified value of sga_target 1024M is too small, needs to be at least 2100M
    ORA-01078: failure in processing system parameters
    CREATE CONTROLFILE REUSE SET DATABASE "PROD"
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    alter database open resetlogs
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0

    hai asif,
    solved my problem , with this doc
    Oracle VM Server for SPARC (previously known as LDoms or Logical Domains) :
    To set the number of VCPUs for a given Logical Domain (LDom), use the 'ldm(1M)' with the 'set-vcpu' option:
    # /opt/SUNWldm/bin/ldm set-vcpu <number> <logical_domain>
    For example to configure eight VCPUs for the Logical Domain named "ebs1":
    # /opt/SUNWldm/bin/ldm set-vcpu 8 ebs1
    Please review the Logical Domains Administration guide for detailed information.
    Users can then revert the number of VPUs to the original or desired values as a post EBS install step.
    thanks a lot..
    regards
    Imrons

  • Problem while Creating Control files while Cloning the Oracle DB

    Hi,
    I am failrly new to Oracle Administration. I have got the task of cloning our Production database into a new machine. With the help of various articles found over the web I have followed the below mentioned steps
    1)Executed the Alter database command for getting the control file copy.
    2) Taken the Datafiles,Control and redo log files copies into the Target machine.
    3) Copied the Pfile with the neccessary changes into the target machine.
    4) Edited the Create Control file syntax (generated from step 1) and executed the same on the target machine.
    Now the problem I face is that I get the following error while executing the create Control file syntax
    a)ORA-01503 - Creation of Controlfile failed.
    b) ORA-00219 - Required controlfile size 41760 exceeds max allowable size 20000.
    I am really stuck. Both my machine configurations and O/S installed are the same.
    Please advice me on how to Proceed... Thanking you all in advannce.
    Rgds,
    SN.

    Hi Jaffer,
    This is my code........ The control file has been generated by executing the syntax alter database backup controlfile to trace at the source db .
    STARTUP NOMOUNT pfile=ORADATA:ORAHOME1\ADMIN\ORACLE\PFILE\INIT.ORA;
    CREATE CONTROLFILE set DATABASE "ORACLE" RESETLOGS NOARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 2
    MAXDATAFILES 32
    MAXINSTANCES 16
    MAXLOGHISTORY 65535
    LOGFILE
    GROUP 1 'ORADATA:ORAHOME1\ORADATA\ORACLE\LOG2ORCL.ORA' SIZE 200K,
    GROUP 2 'ORADATA:ORAHOME1\ORADATA\ORACLE\LOG1ORCL.ORA' SIZE 200K
    DATAFILE
    'ORADATA:ORAHOME1\ORADATA\ORACLE\SYS1ORCL.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\USR1ORCL.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\RBS1ORCL.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_DATA.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_INDEX.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KAN_DAT.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KAN_INDEX.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KIS_DATA.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KIS_INDEX.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_LUB_DATA.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BIMBJ01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BIMAT01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BITPA01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BLUBFSINDEFX01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\TEMP01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_TOOLS.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\IMPORT1.DBF'
    CHARACTER SET WE8ISO8859P1
    # Recovery is required if any of the datafiles are restored backups,
    # or if the last shutdown was not normal or immediate.
    #RECOVER DATABASE
    # Database can now be opened normally.
    #ALTER DATABASE OPEN;
    # No tempfile entries found to add.
    #

  • Problem in creating control files

    Hi
    I am using oracle 9i
    I want to import the excel sheet data into the database.
    Please let me know how to create the control file for sql loader.
    For that i created control file using the following code
    set echo off ver off feed off pages 0
    accept tname prompt 'Enter Name of Table: '
    accept dformat prompt 'Enter Format to Use for Date Columns: '
    spool &tname..ctl
    select 'LOAD DATA'|| chr (10) ||
    'INFILE ''' || lower (table_name) || '.dat''' || chr (10) ||
    'INTO TABLE '|| table_name || chr (10)||
    'FIELDS TERMINATED BY '','''||chr (10)||
    'TRAILING NULLCOLS' || chr (10) || '('
    from user_tables
    where table_name = upper ('&tname');
    select decode (rownum, 1, ' ', ' , ') ||
    rpad (column_name, 33, ' ') ||
    decode (data_type,
    'VARCHAR2', 'CHAR NULLIF ('||column_name||'=BLANKS)',
    'FLOAT', 'DECIMAL EXTERNAL NULLIF('||column_name||'=BLANKS)',
    'NUMBER', decode (data_precision, 0,
    'INTEGER EXTERNAL NULLIF ('||column_name||
    '=BLANKS)', decode (data_scale, 0,
    'INTEGER EXTERNAL NULLIF ('||
    column_name||'=BLANKS)',
    'DECIMAL EXTERNAL NULLIF ('||
    column_name||'=BLANKS)')),
    'DATE', 'DATE "&dformat" NULLIF ('||column_name||'=BLANKS)', null)
    from user_tab_columns
    where table_name = upper ('&tname')
    order by column_id;
    select ')'
    from dual;
    spool off
    and after then i have written in the commond prompt like
    C:\sqlldr username/password@host controlfile
    then it is giving like this
    Commit point reached - logical record count 1
    Any Help?
    Thank you

    What does it say in the .log file?
    What records are in the .bad file?
    How many records in the data file - if 1 then it's all good.
    Excel often puts column headings in the .csv file - you may need to SKIP the first record (look it up in the docs).
    Don't hard code the filename into the control file - it's easier to do that when you load:
    sqlldr u/p control=controlfile data=datafileRead carefully what FLOAT and DECIMAL mean. Unless you are dealing with binary datatypes (you aren't) you probably don't need these. Only DATE needs careful treatment.
    Also, consider pulling the data in using an external table (if it is on the Oracle server already). Again, look it up in the docs - you'll still have to get the control definition right...
    Regards Nigel

  • 12c Create Control File for Entire CDB (CDB-root + PDBs)

    Hi,
    In 12c, I understand that there is a single redo log and a single control file for an entire CDB. My question is what datafiles should I use to create control file for the entire CDB. According to Managing Control Files, I suppose I should use all the datafiles (the result of query from CDB-Root: select name from v$datafile), but in practice, the control file creation process can only be successful when I use CDB-Root databfiles. Thanks in advance for any advice.

    The actual error message is duplicate tablespace (system, sysaux), but the root-CDB and PDBs should have separate system and sysaux. The following is the script I used.
    CREATE CONTROLFILE REUSE DATABASE "CDB" RESETLOGS  ARCHIVELOG
        MAXLOGFILES 16
        MAXLOGMEMBERS 3
        MAXDATAFILES 1024
        MAXINSTANCES 8
        MAXLOGHISTORY 292
    LOGFILE
      GROUP 1 '/cdbdata/cdb/redo01.log'  SIZE 50M BLOCKSIZE 512,
      GROUP 2 '/cdbdata/cdb/redo02.log'  SIZE 50M BLOCKSIZE 512,
      GROUP 3 '/cdbdata/cdb/redo03.log'  SIZE 50M BLOCKSIZE 512
    DATAFILE
      '/cdbdata/cdb/system01.dbf',
      '/cdbdata/cdb/sysaux01.dbf',
      '/cdbdata/cdb/undotbs01.dbf',
      '/cdbdata/cdb/pdbseed/system01.dbf',
      '/cdbdata/cdb/users01.dbf',
      '/cdbdata/cdb/pdbseed/sysaux01.dbf',
      '/cdbdata/cdb/pdb1/system01.dbf',
      '/cdbdata/cdb/pdb1/sysaux01.dbf',
      '/cdbdata/cdb/pdb1/pdb1_users01.dbf'
    CHARACTER SET WE8MSWIN1252

  • 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

  • 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.

  • Ora_br_copy  not creating control file

    Hi Everybody
    In order to run homogeneous system copy i am running ora_br_copy,using these option looks like it is running but it doesn't create control.sql file
    ora_br_copy.bat -generatefiles -forceLogSwitches -targetSID SMD  -password ********  -listnerport 1527
    and log file is this
    INFO: 2008-06-12 11:11:53
    Oracle Backup/Restore Copy tool is started.
    CONFIG: 2008-06-12 11:11:53
    Application options:
    forceLogSwitches=
    generatefiles=
    listnerport=1527
    oracleHome=H:\oracle\SMD\102
    password=*****
    sourceSid=smd
    targetSID=SMD
    INFO: 2008-06-12 11:11:53
    Executing Oracle database shutdown.
    INFO: 2008-06-12 11:12:00
    Oracle database shutdown output:
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Jun 12 11:11:53 2008
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected.
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    INFO: 2008-06-12 11:12:00
    Executing Oracle database startup.
    INFO: 2008-06-12 11:12:07
    Oracle database startup output:
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Jun 12 11:12:00 2008
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 2634022912 bytes
    Fixed Size              2055872 bytes
    Variable Size           1459618112 bytes
    Database Buffers      1157627904 bytes
    Redo Buffers             14721024 bytes
    Database mounted.
    Database opened.
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    INFO: 2008-06-12 11:12:08
    Forcing log switches is successfully completed.
    INFO: 2008-06-12 11:12:08
    Executing Oracle database shutdown.
    INFO: 2008-06-12 11:12:13
    Oracle database shutdown output:
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Jun 12 11:12:08 2008
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected.
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    INFO: 2008-06-12 11:12:13
    Oracle Backup/Restore Copy tool is stopped.

    Hi Everybody
    This problem was due to ora_br_bopy tool itself,I download new tool from Service Market Place and it is working fine,I am able to create control.sql file
    Hardeep

  • Creating control File in 10g

    Can anyone please let me have the syntax of creating a control file in 10g
    its very urgent .................

    If you are creating a New Control File using exisiting Datafiles and LogFiles(not creating Intial Control File during Database Creation), it hasn't changed as you did in 9i. This is an example:
    CREATE CONTROLFILE
    SET DATABASE testdb
    LOGFILE GROUP 1 ('logfile1_1.log',
    'logfile1_2.log'),
    GROUP 2 ('logfile2_1.log',
    'logfile2_2.log'),
    GROUP 3 ('logfile3_1.log',
    'logfile3_2.log')
    RESETLOGS
    DATAFILE 'datafile_system1.dbf' SIZE 5M,
    'datafile_user1.dbf' SIZE 5M,
    'datafile_undo1.dbf' SIZE 5M,
    'datafile_temp1.dbf' SIZE 5M
    MAXLOGFILES 50
    MAXLOGMEMBERS 3
    MAXLOGHISTORY 400
    MAXDATAFILES 200
    MAXINSTANCES 6
    ARCHIVELOG;
    Find Documentation on Managing Controfiles Here:
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14231/control.htm#sthref779

  • Create control file

    I changed some of the database physical structure then i tried to recreate the control file with the following command :
    CREATE CONTROLFILE REUSE DATABASE "ORACLE9I" NORESETLOGS NOARCHIVELOG
    MAXLOGFILES 50
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 226
    LOGFILE
    GROUP 1 'D:\ORACLE\ORADATA\ORACLE9I\REDO01.LOG' size 200m,
    GROUP 2 'D:\ORACLE\ORADATA\ORACLE9I\REDO02.LOG' size 200m,
    GROUP 3 'D:\ORACLE\ORADATA\ORACLE9I\REDO03.LOG' size 200m
    # STANDBY LOGFILE
    DATAFILE
    'D:\ORACLE\ORADATA\ORACLE9I\SYSTEM01.DBF',
    'D:\ORACLE\ORADATA\ORACLE9I\UNDOTBS01.DBF',
    'D:\ORACLE\ORADATA\ORACLE9I\CWMLITE01.DBF',
    'D:\ORACLE\ORADATA\ORACLE9I\DRSYS01.DBF',
    'D:\ORACLE\ORADATA\ORACLE9I\EXAMPLE01.DBF',
    'D:\ORACLE\ORADATA\ORACLE9I\INDX01.DBF',
    'D:\ORACLE\ORADATA\ORACLE9I\TOOLS01.DBF',
    'D:\ORACLE\ORADATA\ORACLE9I\USERS01.DBF'
    CHARACTER SET WE8MSWIN1252
    But it gives me the following error :
    CREATE CONTROLFILE REUSE DATABASE "ORACLE9I" NORESETLOGS NOARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01163: SIZE clause indicates 409600 (blocks), but should match header
    204800
    ORA-01517: log member: 'D:\ORACLE\ORADATA\ORACLE9I\REDO01.LOG'
    Which size i should change and to what size i should change it ? I tried to change the size of redolog files
    to different sizes but none worked .
    Any help would by appreciated .

    I tried to remove the currently exists redolog groups
    ,but i couldn't since the database is not mount and i
    couldn't put it in mount mode since the control files
    is not recogniced .r.- I guess you are not doing the correct steps. The steps that you have to carry out are these:
    1.- Shutdown the database in immediate mode if the database is started
    2.- Move the Redo Logs to another location
    3.- Startup the database in nomount state
    4.- Try to recreate the controlfiles
    Note: When you are going to recreate the controlfiles the database must be in nomunt state.
    I tried to increase the size of the redolog files to
    400M but the problem still exists :
    SQL> CREATE CONTROLFILE REUSE DATABASE "ORACLE9I"
    NORESETLOGS NOARCHIVELOG
    2 MAXLOGFILES 50
    3 MAXLOGMEMBERS 5
    4 MAXDATAFILES 100
    5 MAXINSTANCES 1
    6 MAXLOGHISTORY 226
    7 LOGFILE
    8 GROUP 1
    1 'D:\ORACLE\ORADATA\ORACLE9I\REDO01.LOG' SIZE
    400M,
    9 GROUP 2
    2 'D:\ORACLE\ORADATA\ORACLE9I\REDO02.LOG' SIZE
    400M,
    10 GROUP 3
    'D:\ORACLE\ORADATA\ORACLE9I\REDO03.LOG' SIZE 400M
    11 DATAFILE
    12 'D:\ORACLE\ORADATA\ORACLE9I\SYSTEM01.DBF',
    13 'D:\ORACLE\ORADATA\ORACLE9I\UNDOTBS01.DBF',
    14 'D:\ORACLE\ORADATA\ORACLE9I\CWMLITE01.DBF',
    15 'D:\ORACLE\ORADATA\ORACLE9I\DRSYS01.DBF',
    16 'D:\ORACLE\ORADATA\ORACLE9I\EXAMPLE01.DBF',
    17 'D:\ORACLE\ORADATA\ORACLE9I\INDX01.DBF',
    18 'D:\ORACLE\ORADATA\ORACLE9I\TOOLS01.DBF',
    19 'D:\ORACLE\ORADATA\ORACLE9I\USERS01.DBF'
    20 CHARACTER SET WE8MSWIN1252
    21 ;
    CREATE CONTROLFILE REUSE DATABASE "ORACLE9I"
    NORESETLOGS NOARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01163: SIZE clause indicates 819200 (blocks), but
    should match header
    204800
    ORA-01517: log member:
    'D:\ORACLE\ORADATA\ORACLE9I\REDO01.LOG'
    Is there any other solution other then uninstalling
    the Oracle server ?r.- You have not uninstalled the software to solve this problem. In case you can not recover this database you have to remove all the physical structures of that database and create another one.
    >
    With regardsJoel Pérez
    http://otn.oracle.com/experts

Maybe you are looking for

  • Report works in Crystal Reports, but not when scheduled in Crystal Server

    Hi, I have a pretty simple report designed in Crystal Reports 2008. Basically it shows a list of call notes (memo field) from customer activities in our CRM system. The report works fine in Crystal reports, but when run or scheduled in Crystal Server

  • Problem with data connection in adobe forms using wsdl file....

    Hi Experts,     I am tryning to create a adobe form in which i need to create a data connection using a WSDL file. But i am coing across the problem as cannot find the path of th url. i tried to create the WSDL in 2 ways and i came across the same er

  • Mobile PDF

    Does Adobe make a product to read pdf's on MS Windows Mobile 5.0?

  • Code combination based hierarchy

    Hi, I am wanting to overlay a code combination based alternative reporting hierarchy in Finance against budgets, balances and journals. The nature of the overlay is that the first contact is from code combination id (all of the used segments in the c

  • Quick question about asserts.

    So I am writing an assert statement in my program. and was wondering what I should do if I am going to the next node. should I save the current node to a new variable and then write an assert statement? Or is there a better way to do this.(First time