Info on udump,bdump & cdump

hi, i know this is a really newbie question, but am just looking for further info in regards to what the above mentioned dumps are. a link or something would be appreciated greatly. thanks.

udump - user_dump_dest
bdump - background_dump_dest
cdump - core_dump_dest
udump:
whenever you trace a session, its trace file is written in this udump, session deadlock trace is written in this destination and if session sql causes an internal error ora-600, it trace also written in this destination.
bdump:
You will have your alert_DBNAME.log file here. You already know the importance of alert log file. Also, if oracle background process detects any error, its trace written here.
cdump:
core dump, you will have core directory in this destination for OS kind or fatal errors.
Jaffar

Similar Messages

  • On oracleXE 10g installation,  bdump, cdump, udump  are not created

    Hi all,
    I installed Oracle XE 10g on my system successfully, but in
    C:\oraclexe\app\oracle\admin
    folder, bdump, cdump, and udump files are not created. Any help, what may be the reason will be appreciated.
    Thanks in advance,
    Pal

    The SQL used to to create and configure a database excludes the ability to create the directories required. (unless using ASM)
    This means that before running the dbcreate shell script (or equivalent), the directories need to be created via the o/s itself - usually a command line script.
    The Oracle XE version for Linux combines this (the command line stuff and SQL stuff) into a single script in $ORACLE_HOME/bin/createdb.sh - I would expect that you will find a .cmd version of this for XE on Windows.
    In this script, the mkdir command is used to create the required directories before the sqlplus is launched to create the database.
    However, this script does not create separate bdump/adump/cdump/etc directories.
    It creates the following 2 directories:
    mkdir $logdir
    mkdir $filedir
    These are defined as:
    filedir=$ORACLE_HOME/dbs
    logdir=$ORACLE_HOME/log
    Then it configures the init.ora for the db create as follows:
    user_dump_dest=$logdir
    background_dump_dest=$logdir
    core_dump_dest=$logdir
    audit_file_dest=$logdir
    BTW, I suggest that you consider posting database questions in the [url http://forums.oracle.com/forums/forum.jspa?forumID=61]Database - General forum - this forum is specifically about the database SQL and PL/SQL languages. Not about db installation, configuration and so on.

  • Manner to delete the 'obsolete'(???) files in \udump , \bdump dir...

    Hi ,
    Is there any manner that OracleDB10g can delete automatically the 'obsolete' - maybe the files which were created 2 , 3 or greater number of days ago ...-files created in \udump , \bdump directories...????
    In a way , for example , as the obsolete backups (of course if the Backup policy has been defined appropriately)....
    Thank you.....
    Sim

    There is not an 'ideal' retention time, it all depends on your local politics. If you daily look for errors on the alert.log file, most of them refer to a trace file for further details, then you should investigate on that specific day and most probably you would end up raising a service request at metalink, depending on severity, you will then be requested to send the trace and log related files. If you wait 60 days to perform such task and if this issue was critical for the system, most probably you would not have any database to administer.
    Those files are not historic archives, those files are meant to be reviewed ASAP. So a decision on whether to keep them for further analysis or purge them because they are informative only, should be done on a short time frame.
    ~ Madrid

  • Help in moving bdump, udump and cdump

    I have been asked to move the dump directories in a database. the path they point to is incorrect. how do I make this move so that they are located at a new path. OS is linux, database is 9i (9208)
    thanks

    I have been asked to move the dump directories in a
    database. the path they point to is incorrect. how do
    I make this move so that they are located at a new
    path. OS is linux, database is 9i (9208)
    thanksI don't quite understand your requirement. Is the problem
    1) The parameters don't point at valid directories? or
    2) The directories are valid - but in the wrong place?
    In both cases you will want to update the relevant initialisation parameters which are respectively
    background_dump_dest
    user_dump_dest
    core_dump_destIn the second case you'll also likely want to move the os files - using the os mv command, but I'd rename the old alert.log file when moving it.
    Niall Litchfield
    http://www.orawin.info/

  • A Nice Audit Script

    Hi,
    I am trying to build yet an other database audit script. Actually my db target are 9i/10g. The goal is to tell if the database respect some standard and good basics practice. I want to be able to parse the result because it have to run on many databases.
    - Any suggestions or remarks are welcome
    - your scripts (or link to some url) will be tested and welcome
    - I may provide you the source script when it will be advanced.
    - You may note that i was inspired for the beginning on a script in www.dba-village.com
    The actual defined rules are following :
    Instance     hiddens parameters
         Events valuated in init.ora
         Spfile unused
         Having no Jvm and Java Pool not set to 0
    Difference with v$parameter and spfile
    Database     Control file name not following rule name
         Datafile not folliowing rule name
         Redo logs file name not following rule name
         Archivelog file name not following rule name
         Spfile file name not following rule name
         Directories udump, bdump, cdump not following rule name
    Tablespace     Tablespace having extents no multiple of db_bloxk_size *db_file_multiblock_read_count
         Tablespace having data and index
         Tablespacfe dictionnary managed
         Tablespace not having uniform extent
         Tablespace empty
         None temporary segment in temporary tablespace
         MaxExtent of system tablespace
    Role     Dangerous Role granted
    Privilege     Dangerous Privilege Granted
         System user granted on object to application user
         non system user granted to system schema
    Schema     Samples schema installed
    Segment      Non system segment in tablespace sysaux
         Non system segment in tablespace system
         Lob not in specific tablespace
    Objects     Objects having blank in name
         Columns having blank in name
    Datafile     Datafile in autoextend mode
         Datafile in autoextend mode without maximum
    Schema     Samples schema installed
         User having objects with name like "SYS%'
         User having not default tablespace
         User having not temporay tablespace
    Statistics      Statistics with different date on same schema
         Schema without Statistics
    Table     Big table, with statistic without index
         Big table, without statistics without index
         Table > 10 go with statistic unpartionned
         Table > 10 go without statistic unpartionned
         Table having more than two unique index
         Little table with statistic having index
         Little table without statistic having index
    Index     Index having constraint disabled
         Little table with statistic having index
         Analyzed table but not analyzed index
    synonym     Phantom synonym
    Data     Type used long, long raw, and char
    The actual Draft (1st result) is following :
    -- Instance Information --
    Cpu_Count 2 | Host_Name CBID5000133
    Instance_Name puma | Database_Status ACTIVE
    Status OPEN | Startup_Time 02-08-2007 10:14
    Version 10.2.0.3.0 | Instance_Role PRIMARY_INSTANCE
    Database log mode ARCHIVELOG
    Background Dump Dest C:\ORACLE\ADMIN\PUMA\BDUMP
    Spfile C:\ORACLE\10.2.0\DATABASE\SPFILEPUMA.ORA
    -- Database Space (Mb) 1073 | SGA (Mb) 276 --
    -- Nb. Datafiles 5 | Nb. Tempfiles 1 --
    Data Buffer Hit ratio 96,0 | Library Buffer Hit ratio 99,9
    Dict. Buffer Hit ratio 81,0 | Switch number (last hour) 0
    Session number 4 | Active session number 4
    Redo size (Kb) 51200
    Dba_Tablespaces Status OK | V$Log Status OK
    V$Datafile Status OK | V$Tempfile Status OK
    V$Recover_File OK | V$Recovery_Log OK
    Lock number 0 | Indexes unusable 0
    Tablespace in Backup Mode 0 | Tablespace > 90% 3
    Jobs Broken 0 | Objects Invalid 0
    Shared_Pool Failure 0 | Latch > 1% 5
    Trigger Disabled 16 | Constraint Disabled 27
    -- More Instance Information --
    07_dictionnary_accessibility FALSE Db_Keep_Cache_Size 0
    Compatible 10.2.0.3.0 Db_Block_Size 8192
    Created 31-07-2007 14:03 Logins ALLOWED
    Cursor_Sharing EXACT Sort_Area_Size 65536
    Db Name PUMA Dbid 3523213029
    Db_Cache_Advice ON Db_File_Multiblock_Read_Count 8
    Db_Cache_Size 0 Open_Cursor 300
    Db_Domain Null Db_Unique_Name puma
    Log_Archive_Format ARC%S_%R.%T Remote_Login_PasswordFile EXCLUSIVE
    Open_Mode READ WRITE Logins ALLOWED
    Processes 150 Pga_Aggregate_Target 95420416
    Sga_Target 289406976 Sga_Max_Size 289406976
    Shared_Pool 0 Java_Pool_Size 0
    Statistics_Level TYPICAL Job_Queue_Processes 10
    Undo_Management AUTO Undo_Retention 900
    Undo_Tablespace UNDOTBS1 Nls_Character_Set WE8MSWIN1252
    -- Tablespaces --
    % Largest
    Alloc Used Free Used Nb Free % Ext. Ext. Auto
    Content Tablespace Name (Mb) (Mb) (Mb) Space frag Ext.(Mb) Coal. M. Ext.
    PERMANENT SYSTEM 480 472 8 98.3 2 7.9 100 LOCAL Yes
    SYSAUX 240 234 6 97.7 14 4.8 100 LOCAL Yes
    EXAMPLE 100 77 23 77.4 3 19.8 100 LOCAL Yes
    USERS 5 3 2 65.0 1 1.8 100 LOCAL Yes
    sum 825 787 38 20
    TEMPORARY TEMP 20 20 0 100.0 LOCAL Yes
    sum 20 20 0
    UNDO UNDOTBS1 30 30 0 99.4 3 .1 100 LOCAL Yes
    sum 30 30 0 3
    Tablespace Fragmentation Details
    Tablespace FRAGMENTATION_STATUS
    EXAMPLE Bubble Frag
    SYSAUX Bubble Frag
    SYSTEM Bubble Frag
    UNDOTBS1 Bubble Frag
    USERS No Frag
    * Fragmentation Summary
    Database total size: 855MB
    Fragmentation total size: 0MB,
    that is 0% of total
    Table fragmentation size: 0MB,
    that is 0% of total
    Index fragmentation size: 0MB,
    that is 0% of total
    * Table Fragmentation Summary by Tablespaces
    aucune ligne sélectionnée
    * Index Fragmentation Summary by Tablespaces
    aucune ligne sélectionnée
    ============================================================================================
    OBJECTS FOR REORGANISATION
    ============================================================================================
    * This script reports the table that is highly fragmented
    ============================================================================================
    ALL OBJECTS WITH NUMBER OF EXTENTS > 500 (except temporary and rollback segments)
    ============================================================================================
    ============================================================================================
    ALL TABLES WITH PERCENTAGE OF CHAINED ROWS > 0.1% (acceptable < 3%)
    ============================================================================================
    ============================================================================================
    ALL TABLES WITH FREESPACE/BLOCK > 2*PCTFREE
    ============================================================================================
    ============================================================================================
    ALL TABLES WITH PERCENTAGE OF EMPTY BLOCKS (ABOVE HWM) > 50% (waisted space)
    ============================================================================================
    ============================================================================================
    display the table name and column name of the tables that need to be indexed
    ============================================================================================
    TABLE_NAME CONSTRAINT_NAME TABLE_TO_BE_INDEXED COLUMN_TO_BE_INDEXED
    CHANNELS COSTS_CHANNEL_FK COSTS CHANNEL_ID
    PROMOTIONS COSTS_PROMO_FK COSTS PROMO_ID
    REGIONS COUNTR_REG_FK COUNTRIES REGION_ID
    COUNTRIES CUSTOMERS_COUNTRY_FK CUSTOMERS COUNTRY_ID
    EMPLOYEES DEPT_MGR_FK DEPARTMENTS MANAGER_ID
    ============================================================================================
    lists foreign keys that are missing indexes
    on the foreign key columns in the child table. If the index is not in place
    share lock problems may occur on the parent table
    ============================================================================================
    Missing Index
    HR-> COUNTR_REG_FK(REGION_ID[1]) ***** Missing Index
    HR-> DEPT_MGR_FK(MANAGER_ID[1]) ***** Missing Index
    SH-> COSTS_CHANNEL_FK(CHANNEL_ID[1]) ***** Missing Index
    SH-> COSTS_PROMO_FK(PROMO_ID[1]) ***** Missing Index
    SH-> CUSTOMERS_COUNTRY_FK(COUNTRY_ID[1]) ***** Missing Index
    -- xx. Objects having blank in name --
    Rule xx - MICKY TABLE "test blank"
    -- xx. Empty tablespaces
    Rule xx - Tablespace MICKY_02 vide
    Rule xx - Tablespace MICKY_03 vide
    Rule xx - Tablespace MICKY_04 vide
    Rule xx - Tablespace MICKY_05 vide
    -- xx. Analyzed index but not analyzed table
    Rule xx Index SYS_IL0000052024C00022$$ not analyzed but table CUSTOMERS is.
    Rule xx Index SYS_IL0000052024C00023$$ not analyzed but table CUSTOMERS is.
    Rule xx Index SYS_IL0000052024C00022$$ not analyzed but table CUSTOMERS is.
    Rule xx Index SYS_IL0000052024C00023$$ not analyzed but table CUSTOMERS is.
    -- xx. Dangerous Privilege Granted
    Rule xx -> Grantee PRIVILEGE ADM
    Rule xx SCHEDULER_ADMIN CREATE ANY JOB YES
    Rule xx WMSYS UNLIMITED TABLESPACE NO
    Rule xx XDB UNLIMITED TABLESPACE NO
    Rule xx OLAP_DBA CREATE ANY TABLE NO
    Rule xx OLAP_DBA LOCK ANY TABLE NO
    Rule xx OLAP_DBA ALTER ANY DIMENSION NO
    -- xx. Table name and column name of the tables that need to be indexed
    Rule xx -> TABLE_NAME CONSTRAINT_NAME TABLE_TO_BE_INDEXED COLUMN_TO_BE_INDEXED
    !Rule xx CHANNELS COSTS_CHANNEL_FK COSTS CHANNEL_ID
    !Rule xx PROMOTIONS COSTS_PROMO_FK COSTS PROMO_ID
    !Rule xx REGIONS COUNTR_REG_FK COUNTRIES REGION_ID
    !Rule xx COUNTRIES CUSTOMERS_COUNTRY_FK CUSTOMERS COUNTRY_ID
    !Rule xx EMPLOYEES DEPT_MGR_FK DEPARTMENTS MANAGER_ID

    Hi, for Oracle 10g you can use the Oracle Policy for custom alerts, then you can monitoring the database from Oracle Database Control.
    Regards.

  • Problem in recovering database

    I Have Oracle Database 10g (10.2.0.1.0) on Windows Server 2003
    I have taken full hot RMAN backup of database.
    I have copied the backup files from flash recovery area.
    I have one other Machine having windows server 2003 And Oracle 10g Same version. I have copied the backup files from first machine to Flash Recovery Area folder on second machine.
    Now i am trying to restore the database of first machine to second machine.
    1. I have created a new instance on second machice with same name as in fiirst machine.
    2. I have created one ORA password file as well.
    3. SET ORACLE_SID=<name of DB as it was in first machine>
    4. RMAN TARGET sys/<password given in newly ORA pwd file>@<DB name> nocatalog
    5. SET DBID=<dbid of old database>
    6. STARTUP NOMOUNT FORCE
    7. RESTORE SPFILE TO PFILE '<path of new pfile>' from '<path where backup files are there>';
    8. CREATE UDUMP,BDUMP,CDUMP,PFILE,ORADATA FOLDERS where required;
    9. SHUTDOWN IMMEDIATE;
    10. STARTUP NOMOUNT PFILE='<path of newly created pfile>';
    11 RESTORE CONTROLFILE FROM '<path of backup files>';
    12. ALTER DATABASE MOUNT;
    Everything work fine till here
    Now my next step was
    13. RESTORE DATABASE;
    Then it gives error like:-
    RMAN> restore database;
    Starting restore at 20-NOV-08
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=375 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/20/2008 21:00:54
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    Firstly i copied backup files to flash recovery area, then i copied files to 'D:\oracle\product\10.2.0\db_1\database' as well. Because i have done it in 9i, in 9i i copied the backup files to this backup folder then while doing restore RMAN succesfully takes file from this folder & restores the database. but in 10g RMAN is not recognising the path of backup. How this problem can be solved? Or is this some different problem which i am not getting?
    Waiting for reply..

    Hi ORADBA,
    Thanks for your response. Your solution worked. Actually there was a difference the Oracle installation on server from which i was taking backup is on E drive.
    And the server on which i am trying to restore that database has Oracle installation files on D drive. That's why this confusion occurred.
    But i have one query again. I am not able to recover my database fully.
    Firstly i typed restore database command that worked. Thereafter i tried recover database command. that commant resulted in an error as given below. Than i typed command archive log list on SQL promt, from there i found the information of latest archive log. then i tried recover database until logseq 484 thread 1. That also didn't work. In the same situation i tried to open database i was able to open database using command alter database open resetlogs. I suppose i was not able to recover the database fully. Hi can i recover my database fully?
    waiting for reply. Thanks in advance.
    RMAN> recover database;
    Starting recover at 24-NOV-08
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting incremental datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    destination for restore of datafile 00001: E:\ORACLE\PRODUCT\10.2.0\ORADATA\TESTDB\SYSTEM01.DBF
    destination for restore of datafile 00002: E:\ORACLE\PRODUCT\10.2.0\ORADATA\TESTDB\UNDOTBS01.DBF
    destination for restore of datafile 00003: E:\ORACLE\PRODUCT\10.2.0\ORADATA\TESTDB\SYSAUX01.DBF
    destination for restore of datafile 00004: E:\ORACLE\PRODUCT\10.2.0\ORADATA\TESTDB\USERS01.DBF
    channel ORA_DISK_1: reading from backup piece E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TESTDB\BACKUPSET\2008_11_20\O1
    MFNNND1_BACKUP_TESTDB_L_1_4LB0PZXS_.BKP*
    channel ORA_DISK_1: restored backup piece 1
    piece handle=E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TESTDB\BACKUPSET\2008_11_20\O1_MF_NNND1_BACKUP_TESTDB_L_1_4L
    B0PZXS_.BKP tag=BACKUP_TESTDB_L_112008115509
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
    starting media recovery
    unable to find archive log
    archive log thread=1 sequence=484
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 11/24/2008 19:47:07
    RMAN-06054: media recovery requesting unknown log: thread 1 seq 484 lowscn 11013224
    RMAN> recover database until logseq 484;
    Starting recover at 24-NOV-08
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 11/24/2008 19:48:07
    RMAN-06556: datafile 1 must be restored from backup older than scn 11009149
    RMAN> recover database until logseq 484 thread 1;
    Starting recover at 24-NOV-08
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 11/24/2008 19:48:20
    RMAN-06556: datafile 1 must be restored from backup older than scn 11009149
    RMAN> recover database until logseq 483 thread 1;
    Starting recover at 24-NOV-08
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 11/24/2008 19:48:58
    RMAN-06556: datafile 1 must be restored from backup older than scn 10973094
    RMAN> recover database until logseq 482 thread 1;
    Starting recover at 24-NOV-08
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 11/24/2008 19:49:06
    RMAN-06556: datafile 1 must be restored from backup older than scn 10952975
    RMAN> alter database open;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 11/24/2008 19:49:21
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    RMAN> alter database open resetlogs
    *2> ;*
    Edited by: user648257 on Nov 24, 2008 6:48 AM

  • Process creation on solaris

    Hi,
    a few doubts on solaris process creation .
    The "Jim Maurno" , Peeling back process layers , Part 1 , says that
    man_nprocs( maximum number of processes system-wide) =
    10 + 16*maxusers(number of megabytes of memory installed in the system)
    Could someone tell me how these numbers 10 and 16 were arrived at ?

    Before start creating a database manually, create all the necessary directories for log files/datafiles/ etc i.e. Udump, Bdump, Cdump, etc.,
    3) startup mount pfile="path of the pfile"
    Startup with NOMOUNT i.e startup nomount
    4) run the create database script.
    After creating the database, do not forget to run the two important scripts catalog.sql -- creates the views of data dictionary tables and the dynamic performance views
    catproc.sql -- establishes the usage of PL/SQL functionality and creates many of the PL/SQL Oracle supplied packages
    For more information on Manually Creating an Oracle Database, take a look at the Oracle Documentations.
    http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/create.htm#1000691
    Regards,
    Sabdar Syed.

  • Moving oracle 8i db running in windows 2k3 srvr to another machine

    hi everybody,
    my scenario is very simple but i am not able to do that so plz give ur soln wth proper sql commands and steps.
    i want to move oracle 8i db running in windows 2003 server to another machine running in same server how can i do this.
    my database name is att.
    path: c:\oracle\ora81\database
    path: c:\oracle\oradata\att
    inside this cntrl files, log files and trace files are there.
    path: c;\oracle\admin\att
    inside this pfile,udump,bdump,cdump are there.
    so kindly provide me soln asap as i hav to do it by tmw.
    plz oracle dba experts and professionals help me.
    thanks
    suresh

    Why have you made a duplicate post?
    moving 8i database\very urgent\plz
    Questions and suggestions in that thread are unanswered from your side.

  • Where are udump,cdump,bdump  trace files in grid control?

    Hi
    All
    I want to show all the trace file those are in bdump,udump and cdump.
    Where can I find those file or information in Grid control?
    Thanks,
    Vishal
    Message was edited by:
    vishal patel
    Message was edited by:
    vishal patel

    They aren't. You may see references to trace files in the alert log pages .. for instance when you get an ORA-xxxxx alert it will show the name of the trace file that pertains to it.

  • Restoring RMAN backup on a different server

    Hi oracle gurus
    i have following scenario
    i have a compressed backup set of a database
    i want to restore that rman backup on to a different server.
    both the server have same version of oracle.and both the server are of 32 bit.
    please reply if any more info is required.

    RESTORE AND RECOVERY PROCEDURE OF PRODUCTION DATABASE BACKUP ON TEST SERVERS
    As part of disaster recovery exercise or to test the validity of a RMAN backup, a full restore and recovery of databases can be performed on scratch or test servers utilising the production RMAN backups which have been restored from the tape backups on these test or scratch servers.
    This note will illustrate the above procedure by detailing the steps required to restore the backup of a production database (prod1) on a test server linux01 .
    The following assumptions are made in this note:
    The RMAN backups have been restored from tape backups to the same backup location on the test server as the production server where the backup was originally taken
    The identical directory structure as is present on production has been created on the test server. This will apply to not only the location of the database files (data, control files, redo log files), but also to the bdump,cdump, udump and adump locations.
    Controlfile autobackup has been enabled. This is important.
    Overview
    Restore the spfile from the autobackup
    Restore the controlfile from the autobackup
    Restore the data files
    Recover by applying archived redo log files
    Open the database with resetlogs
    Restore the SPFILE
    [oracle@linux01 prod1]$ rman target /
    connected to target database (not started)
    RMAN> set dbid=4266928631
    executing command: SET DBID
    RMAN> startup force nomount;
    startup failed: ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/dbs/initprod1.ora'
    starting Oracle instance without parameter file for retrival of spfile
    Oracle instance started
    Total System Global Area 159383552 bytes
    Fixed Size 2039056 bytes
    Variable Size 67109616 bytes
    Database Buffers 83886080 bytes
    Redo Buffers 6348800 bytes
    RMAN> run
    2> {SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u02/backup/prod1/%F';
    3> restore spfile from autobackup;
    4> }
    RMAN> shutdown immediate;
    Restore the Control File
    In this case, the instance is now being started with the restored spfile. We can create a pfile as well from this spfile is so required.
    RMAN> startup nomount
    connected to target database (not started)
    Oracle instance started
    RMAN> set dbid=4266928631
    executing command: SET DBID
    RMAN> run
    2> {SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u02/backup/prod1/%F';
    3> restore controlfile from autobackup;
    4> }
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    Restore the database
    RMAN> restore database;
    Recover the database
    The recovery will fail at a point where it cannot restore any more archived redo log files.
    In this case the last archived log file which has been backed up is sequence 613.
    This information can be obtained by issuing a LIST BACKUP OF ARCHIVELOG ALL command.
    So RMAN will fail when it tries to apply sequence 614 ….
    RMAN> recover database
    [oracle@linux01 PROD1]$ rman target /
    connected to target database: PROD1 (DBID=4266928631, not open)
    RMAN> sql 'alter database open resetlogs';
    RMAN>
    reference: http://gavinsoorma.com/recovery-scenarios/

  • Logs for Oracle Fail Safe

    Hi Guys
    I need to know where Oracle writes logs for Fail Safe components, Fail Safe Manager and Fail Safe server?
    Any idea?
    Regards
    PG

    user10676961 wrote:
    First of all, I'm not a native English speaker, so excuse for my msitakes :8}
    I have a basic knowlede of Oracle, but this is something I need help with:
    I have a Windows cluster with Oracle Fail Safe. There will be multiple databases on this cluster. Oracle and Oracle Fail Safe are installed on disk D: on both nodes (local disk).
    When Fail Safe creates a sample database it creates this directory structure on cluster disk O:
    OFSDB
    OFS1
    admin
    OFS1
    adump
    bdump
    cdump
    pfile
    udump
    flash_recovery_area
    OFS1
    ONLINELOG
    oradata
    OFS1
    {code}
    All database related files like parameter files are created on the cluster disk, not in Oracle Home, where they are by default.Hi
    most of the directories that you refer to are controlled by initialisation parameters in the parameter file for the database. What would probably be sensible for you to do is to use DBCA not to create the database, but to create the scripts to create the database. You can then edit those scripts appropriately.
    In particular the directories used in your example are controlled by these parameters
    adump                           audit_file_dest
    bdump                           background_dump_dest
    udump                           user_dump_dest
    cdump                           core_dump_dest
    flash_recovery_area         db_recovery_file_dest (and db_recovery_file_dest_size)the online log directory tree will be created if you choose to use oracle managed files for the redo logs, alternatively you can manually specify them in the create database statement.
    The generated scripts should contain a .bat file which precreates the admin structures.
    so to recap, use dbca to create the scripts :- edit the scripts, don't set ORACLE_BASE.
    Niall Litchfield
    Oracle DBA
    http://www.orawin.info/
    Edited by: Niall Litchfield on Jan 22, 2009 8:16 AM added code tags for readability

  • How to upgrade DB

    What are the methods/considerations to upgrade DB?

    If you want to upgrade from 9 to 10 I have a method and a file.
    I have a file, it is written in Spanish, may be you want it.
    If you want, I can send it?
    Do you have an e-mail address so that I can send it?
    Paola
    @}--->--->-----
    I am adding the text, but it is in Spanish my mother tongue.
    1.- Instale el software de 10g.
    2.-Corra la utilería pre-upgrade:
         SQL> @?/rdbms/admin/utlu102i.sql en el home de la versión y usuario anterior.
    3.- Hacer los ajustes. Los init spfile orapw lk copiarlos a 10g con oracle10 en el init cambiar las rutas de los bdump cdump udump create pfile debajo de $ORACLE_HOME/admin/dbname
    Hacer los ajustes del init o spfile para que apunten a los dump destinies de 10g.
    4.- Shutdown la base de datos a ser actualizada.
    Cambiar con –R el owner de oracle9 a oracle10 de los archivos de toda la base
    5.-Switchear al nuevo home Oracle Database 10g y hacer una inicialización de la base:
              SQL> startup upgrade;
         En esta misma sesión crear el tablespace siguiente:
    6.-Crear el tablespace SYSAUX.
    6.1.- Se muestran distintos tamaños para esta creación dependiendo de las características del sistema:
    Factor     Small     Medium     Large
    Number of CPUs     2     8     32
    Number of concurrently active sessions     5     20     100
    Number of user objects (tables and indexes)     500     5,000     50,000
    Estimated SYSAUX size at steady state with default config     500 MB     2 GB     5 GB
    7.- Correr el script de upgrade:
    SQL> @?/rdbms/admin/catupgrd.sql
    8.- correr la utilería de status post upgrade
         SQL> @?/rdbms/admin/utlu102s.sql
    9.-Recompilar cualquier código PL/SQL y Java.
         SQL>shutdown immediate;
         SQL> startup
         SQL> @?/rdbms/admin/utlrp.sql
    10.- Borrar los init, spfile, orapw, lk de la dbname en $ORACLE_HOME9 y debajo de admin. Borrar la carpeta dbname con sus subcarpetas
    11.- El listener y tnsnames de $ORACLE_HOME10 debe estar actualizado para tomar los servicios de la bd que se le hizo el upgrade.
    12.- Se crea la dbconsole como sigue:
    emca –config dbcontrol db –repos create
    14.- Levantar el isqlplus de $ORACLE_HOME/bin/isqlplusctl start
    Certify - Certification Matrix: Oracle Database - Enterprise Edition on HP-UX PA-RISC
    Server Certifications
    OS     Product     Certified With     Version     Status     Addtl. Info.     Components     Other     Install Issue
    11i v2 (11.23)     10gR2 64-bit     N/A     N/A     Certified     Yes
    None     None     None
    11i v1 (11.11)      10gR2 64-bit     N/A     N/A     Certified     Yes
    None     None     None
    11i v2 (11.23)     10g 64-bit     N/A     N/A     Certified     Yes
    None     None     None
    11i v1 (11.11)     10g 64-bit     N/A     N/A     Certified     Yes
    None     None     None
    10.- Hacer el upgrade del RMAN. Del Recovery catalog:
    1.     sqlplus> connect sys/oracle@catdb as sysdba;
    2.     sqlplus> grant TYPE to rman;
    3.     % rman TARGET / CATALOG rman/cat@catdb
    connected to recovery catalog database
    PL/SQL package rcat.DBMS_RCVCAT version 08.00.04 in RCVCAT database
    is too old
    Issue the UPGRADE CATALOG command:
    UPGRADE CATALOG;
    recovery catalog owner is rman
    enter UPGRADE CATALOG command again to confirm catalog upgrade
    Enter the UPDATE CATALOG command again to confirm:
    UPGRADE CATALOG;
    recovery catalog upgraded to version 09.02.00
    DBMS_RCVMAN package upgraded to version 09.02.00
    DBMS_RCVCAT package upgraded to version 09.02.00
    Creación de la consola de administración
    Se hace con el usuario y el ambiente del actual base 10g.
    /Paola

  • Oracle 9i problems in amd processor

    Hai,
    I have installed oracle in my system but it occupying the whole disk space. it is showing low disk space.my system configuration is amd processor,512 mb ram,
    asus mother board.please any of them solve my problem.
    Thanking you
    sudhakar.

    I have installed oracle in my system What kind of system?
    but it occupying the whole disk space
    it is showing low disk spaceWhat about archivelog?
    Or maybe you have just 3GB disk... don't know, because you didn't provide important info.
    my system configuration is amd processor,512 mb ram
    asus mother board.What is the purpose of this characteristic (where is the point)? I guess this has nothing to do with disk space occupation.
    So if your problem is low disk space, then try:
    1. check whether your database is running in archivelog mode and whether is generate archive redo logs. If your database need to be in archivelog mode (preffered for production db) then backup your archive logs and then remove it from disk.
    To check whether your database is running in archivelog mode execute from sqlplus (as sys or system):
    select log_mode from v$database;To check whether (of course this is a must in archivelog mode) and where is your database generate archive logs execute from sqlplus:
    show parameters log_archive_start
    show parameters log_archive_dest2. check sizes of bdump, cdump and udump directory and delete unecessary trace files, or coredumps. (oc course there might be large alert log file)
    To show location of bdump, cdump and udump directories execute fro sqlplus:
    show parameters dump_destPlease, be more specific and write important information in your future posts.

  • Steps to be kept in mind while creating a database

    Hi Friends,
    I have written the very basic steps that are required for creation of database. The steps are as following:-
    1.     Create the Environment /Folders. “bdump”, “cdump”, “udump”, “pfile”, “redo”, “control”, “datafile”. These are folders that have to be created in “d:\oracle\admin\orash\
    2.Create the Pfile.
    Open the notepad write the blew parameters and Save in the pfile folder with the name ‘initorash.ora’
    db_name=orash
    Instance_name=orash
    Background_dump_dest=’d:\oracle\admin\orash\bdump’
    core_dump_dest=’d:\oracle\admin\orash\cdump’
    user_dump_dest=’d:\oracle\admin\orash\udump’
    Control_files=’d:\oracle\admin\orash\control\control01.ctl’, ‘d:\ oracle\admin\orash\control\control02.ctl’
    undo_management=auto     
    undo_tablespace=undotbs1
    remote_login_passwordfile=exclusive
    compatible=9.2.0.0.0
    3.     c:\>oradim –new –sid orash –startmode m –pfile d:\oracle\admin\orash\pfile\initorash.ora
    4.     c:\>orapwd file=d:\oracle\ora92\database\pwdorash.ora password=orash entries=5
    5.     Creation of Database: -
    Open the notepad write the blew parameter & Save this file in pfile folder with the name of ‘createdb.sql’:-
              create database orash
    logfile
    group 1(‘d:\oracle\admin\orash\redo\redo01.log’) size 200m,
    group 2(‘d:\oracle\admin\orash\redo\redo02.log’) size 200m
    datafile ‘d:\oracle\admin\orash\datafile\system01.dbf’ size 300m
    6.     C:\> set oracle_sid=orash
    7.     C:\>sqlplus/nolog
    8.     SQL> conn sys as sysdba
    9.     SQL>startup nomount pfile=’d:\oracle\admin\orash\pfile\initorash.ora’
    10.     SQL>@d:\oracle\admin\orash\pfile\createdb.sql     
    11.     SQL>@?\rdbms\admin\catalog.sql
    12.     SQl>@?\rdbms\admin\catproc.sql      
    Thanks,
    Shiv Kumar Dadhwal

    since you choose to use auto undo management, you'd better add undo tablespace into that create database statement.
    Plus, carefully choose a Character set that suit your need. Some time it's hard to change it after database go live.

  • Manual database creation

    Hi all,
    I need to create a small database manually.
    What are the mandatory fields for DB creation.
    What are the steps to be followed?
    If anyone have the script please send me.
    Thanks in advance.
    regards,
    prem

    hi prem..
    you have to create script for database creation..
    no problem if ur on 9i.
    let do below step..
    step 1. open ur dbca and create script for ur database.
    step 2. create folder
    bdump, udump, cdump ---- d:\oracle\ora90\admin\3 folder 1.bdump, 2. udump, 3.cdump
    folder name some ur db_name -----d:\oracle\oradata\"folder name must be some ur db_name"
    step 3. go cmd prompt
    start>run>command [enter]
    cmd>set oracle_sid=dbname
    cmd> create password file..... ( see mentioned link in previous post)
    cmd>create and start services ( see mentioned link in prev. post)
    cmd>sqlplus/nolog
    sql>conn sys as sysdba
    connected
    sql> run all database creation scripts.
    script generate in
    d:\oracle\admin\script\>>>>>>.scritps
    Note.>> Drive may be C:,D: whatever according ur setting.
    hope this helps
    Taj.
    Message was edited by:
    user52

Maybe you are looking for

  • How do I find a serial number for a stolen ipod.

    How do I find the serial number for an ipod that has been stolen. We do not have the box or paperwork that came with it.

  • HT201272 How do I download from itunes Lion and iPhoto to my imac which I have perviously installed

    I have recently installed os Lion but I am not happy with the way it is operating and wish to reinstall it. I understand I can do a clean install by holding down the option key on start up and selecting the hidden drive. This leaves me with a problem

  • SVG chart: length of axis-labels

    Apparently there is a limitation on the length of x- or y-axis labels for a SVG chart. Does anybody know how to display axis labels that are larger than 15 characters? Is there something that you can do with the CSS to increase the limit?

  • CS6 updates and Mac write permissions

    I have CS6 on a 2008 MacBook Pro and a 2010 iMac. I went to retrieve the recent update today and all went well on the MacBook Pro. However, on the iMac, I keep getting an error message that says that write permission needs to be given to the file pat

  • Help with the Drill

    ...my first time messing with Drills [http://docs.google.com/Doc?id=dfr8cvrq_179fm6rd8fx|http://docs.google.com/Doc?id=dfr8cvrq_179fm6rd8fx] I created 2 hierarchies in Designer - Master, Detail. I know this is a hassle but could you have a look at th