Oracle database backup basics

May I ask, from a point of view, low tech a little question on the backup/restore of Oracle databases. Are there tools commonly used for backup of Oracle database? And have you ever encounter the snowman DBA / other places you have worked to make bad backups? I'd like to hear horror stories about what can and will hurt in oracle database backups? It is a simple process, or wrong - this easy ens at the end and things / featuring data etc.?
And the second part of the question is if you're looking for auditing oracle backup processes, that you are looking 'good evidence' that this is done in line with the policy /strategy?

>

Are there specific reasons why backups become unnecessary, i.e. what goes wrong, when it comes to restoration, it is not restore.

There may be two reasons. One, for example, backups are accidentally deleted, partially or completely. Another way may be the backup is marked as obsolete due to the retention or some operations strategy as resetlogs who could not leave the backups in use.

I was also wondering how easy it is perhaps "missing data" when planning a backup DB with RMAN? Is this possible? Have you ever seen do, and if so is there any 'specific' part of a database that is often overlooked during examination of what to plan for in the backup task?

What do you mean by "missing data"? It would be possible if you don't take care of backups that you plan.

Aman...

Tags: Database

Similar Questions

  • Need help with Oracle Database Backup & Restore Cold

    Environment:

    Oracle Version: 11.2.0.4

    Platform: AIX

    A few weeks ago, I had updated my Oracle 10.2.0.1 to 11.2.0.4 database. The customer changed his mind and now I downgrade to 10.2.0.1. Unfortunately, the compatibility setting is set to 11.2.0.4. So I can't use the lower upgrade scripts.

    I had taken a cold backup of the database before the upgrade. Unfortunately, I missed save logs for recovery.

    Is there a way I can always downgrade / recovery 10.2.0.1 with cold back? or is it simply not possible without the backup of redo logs.

    Thanks in advance.

    rogers42

    I had taken a cold backup of the database before the upgrade. Unfortunately, I missed save logs for recovery.

    And what do YOU mean by "had taken a cold backup"?

    Because in addition to what John said, you also need the correct initialization file.

    Do you have a return of this init file which was taken at the same time as the backup?

    I had updated my Oracle 10.2.0.1 to 11.2.0.4 database.

    I suggest that you first reinstall the 10.2.0.1 version or Oracle before recovering your cold backup.

    You must use the EXACT name of the folder structure and file that have been used originally.

    See my response in this thread a few years ago:

    Re: Restore incompatible cold backup

    You will be able to simplify this process, some given that your backup is consistent, but the steps should help you to understand what to do.

    One of my answers in THIS thread has real details for each of the steps in the other thread

    https://community.oracle.com/message/10132328?

  • Oracle Instance crashes during the allocation of channels using the Oracle database backup Service

    I am running Oracle Version 11.2.0.3 on a 64 bit Windows Server 2008 SP 2 OS.  Today when I tried to allocate a channel for 'SBT_TAPE' my instance has crashed.  Everyone knows this?

    Set ORACLE_HOME=D:\app\oracle\product\11.2.0\dbhome_1\

    Set ORACLE_SID = CNFCRAC1

    Set SBT_LIBRARY=D:\app\oracle\product\11.2.0\dbhome_1\BIN\oraopc.dll

    Set OPC_PFILE=D:\app\oracle\product\11.2.0\dbhome_1\database\opccnfcrac1.ora

    RMAN > Connect target

    RMAN > run {}

    allocate channel t1 'SBT_TAPE' device type

    PARMS ' SBT_LIBRARY=D:\app\oracle\product\11.2.0\dbhome_1\BIN\oraopc.dll, ENV=OPC_PFILE=D:\app\oracle\product\11.2.0\dbhome_1\database\opccnfcrac1.ora)';

    }

    Windows Event Viewer:

    The failing application name: ORACLE. EXE, version 11.2.0.3

    Module failed name: oraopc.dll, version 12.1.0.0

    Exception code: 0xc0000005

    Offset: 0x00000000000249af

    ID of the process failed: 0 x 1510

    Failed application start tiem: 0x01d0eb098ecd2d2f

    The failing application path: d:\app\oracle\product\11.2.0\dbhome_1\bin\ORACLE. EXE

    Flaws Path E-mail: D:\app\oracle\product\11.2.0\dbhome_1\BIN\oraopc.dll

    I made sure that the PATH environment variable has the following entry.  D:\app\oracle\product\11.2.0\dbhome_1\BIN

    RAC1 Table of contents alerts journal:

    Fri Sep 11 09:04:23 2015

    Thread 1 Advanced to record the sequence 11277 (switch LGWR)

    Currently Journal # 3 seq # 11277 mem # 0: +REDO/cnfcrac/onlinelog/group_3.258.824214591

    Fri Sep 11 09:04:31 2015

    Archived journal 23067 extra for each sequence 1 11276 0x82a6e611 dest ID thread entry 1:

    Fri Sep 11 09:06:20 2015

    Reconfiguration began (old Inc. 16, new Inc. 18)

    List of instances:

    1 (myinst: 1)

    Fri Sep 11 09:06:44 2015

    Global Resource Directory frozen

    * death detected instance - invalid domain 0 = TRUE

    Restored communication channels

    Diffuse master hash resource bitmaps

    Blocks of non-local process cleaned

    Fri Sep 11 09:06:44 2015

    LMS 0: GCS shadows cancelled 0 1 closed, 0 Xw survived

    Fri Sep 11 09:06:44 2015

    Shadows GCS LMS 1: 1 cancelled, 1 closed, 0 Xw survived

    Set of master node info

    Subject to all requests for remote enqueue

    DWN-cvts replayed, questionable VALBLKs

    All enqueues grant awarded

    Post SMON start 1 IR pass

    Fri Sep 11 09:06:46 2015

    Instance recovery: looking for dead threads

    Beginning of thread 1 instance recovery

    Subject to all requests for remote-cache GCS

    Post SMON start 1 IR pass

    Fix write in SCM resources

    Contents of the journal of alerts 2 RAC

    Fri Sep 11 08:57:47 2015

    Archived journal 23064 extra for each sequence 2 11793 0x82a6e611 dest ID thread entry 1:

    Fri Sep 11 09:06:42 2015

    Starting ORACLE instance (normal)

    LICENSE_MAX_SESSION = 0

    LICENSE_SESSIONS_WARNING = 0

    Monitoring of normal startup parameters... I looked in the CRS, ORAAGENT, OCTSSD, and CRSD marbles, but I can't find anything that stands out as to what caused the end of abnomal, another of the communication between the two bodies has not responded within the specified time.

    -Jen

    Hi Jen,

    There is a known issue with Windows module. We are working on fixing it and the new module should be available soon. I'll update as soon as we release the fixed module.

    Sridhar

  • Troubleshooting Oracle database backup

    Hi all:
    I have a customer who currently has a database of 2 nodes Standard edition for production CARS. They sometimes have clients who have problems with the data that the development team needs to solve the problems of the individual customer. Now they use Production to solve development problems (BAD)! I want to suggest a configuration that they are able to quickly use a copy of the production on another system. There are 3rd party tools. but I wanted to get consensus on what people use. Basically, I want to obtain a copy of the production quickly for troubleshooting because they need data in real-time and the ability to update the data. If I make a convincing argument to go to Enterprise Edition to use a function, which would be ok as well. Thank you all

    Based on 909592 post. all of these methods are good. But you can compare them with these considerations

    1. If the size of your database is large, using duplicate RMAN. RMAN's copy of the file system. It's fast pump data.
    2. If the size of your database is small, and you do not have security issue, you can use import data with network_link (DB Link) pump directly from Prod DB to import the specific schema in Dev DB. If your database is 11g.
    3. you can use Goldengate if your data refresh job is routine work. But you need more resources to use and pay for the license.

  • Oracle 12 c with RMAN database backup

    Hi All-

    I started back to the top of one of my PDB using utility RMAN following the instructions on the link below.

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/12C/R1/PDB/pdb_pitr/pdb_pitr.html

    --Connect to Oracle RMAN.
    rman> Connect target /
    --Set the Oracle RMAN backup device type and backup file location.
    rman> configure channel device type disk format '/stage/db_backup_files/cdb1/%U';
    --Turn on automatic backup of control files.
    rman> configure controlfile autobackup on;
    --Back up the database and archive logs.
    rman>backup database plus archivelog;
    rman> exit
    

    Back to the top has been done successfully, but when I started with the recovery process he gave me error reporting collection.

    Run {set until what SNA = 2263440; restore database connectable to pdb2; retrieve auxiliary destination of the pluggable database pdb2 = "/ stage/db_backup_files/cdb1 '; alter connectable database to pdb2 ;} open resetlogs}

    This is the track to RMAN

    Recovery Manager: release 12.1.0.2.0 - Production on sat 22 Aug 12:22:44 2015

    Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

    RMAN > Connect target /.

    connected to target database: RELIABLE (DBID = 1028507357)

    RMAN > run {}

    2 > ALTER DATABASE connectable to MultiPlay NARROW;

    3 > set up what SNA = 14899894;

    4 > restore database pluggable MultiPlay;

    5 > restore database pluggable MultiPlay;

    6 > alter database connectable to MultiPlay open resetlogs;

    {7 >}

    using the control file of the target instead of recovery catalog database

    Statement processed

    executing command: SET until clause

    From restoration to 22 August 15

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 22 type of device = DISK

    channel ORA_DISK_1: from the restore backup set data file

    channel ORA_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_DISK_1: restore datafile 00035 to E:\APP\ORADATA\RELIABLE\MULTIPLAY\SYSTEM01. DBF

    channel ORA_DISK_1: restore datafile 00036 to E:\APP\ORADATA\RELIABLE\MULTIPLAY\SYSAUX01. DBF

    channel ORA_DISK_1: restore datafile 00037 to E:\APP\ORADATA\RELIABLE\MULTIPLAY\MULTIPLAY_USERS01. DBF

    channel ORA_DISK_1: backup E:\APP\RECOVERY_AREA\RELIABLE\40A433F530464F3BBF2E7C0B1553ECE8\BACKUPSET\2015_08_22\O1_MF_NNNDF_TAG20150 piece reading

    822T115328_BXJ5C182_. BKP

    channel ORA_DISK_1: piece handle = E:\APP\RECOVERY_AREA\RELIABLE\40A433F530464F3BBF2E7C0B1553ECE8\BACKUPSET\2015_08_22\O1_MF_NNNDF_TAG20150822T115328_BX

    J5C182_. Tag BKP = TAG20150822T115328

    channel ORA_DISK_1: restored the backup part 1

    channel ORA_DISK_1: restore complete, duration: 00:01:05

    Restoration finished in 22 August 15

    From pick up to August 22, 15

    using channel ORA_DISK_1

    RMAN-05026: WARNING: following tablespaces set applies to the Point in time specified assuming

    List of tablespaces should have UNDO segments

    SYSTEM tablespace

    Tablespace UNDOTBS1

    Creation of automatic instance with SID = "zbnt."

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command recover at 22/08/2015 12:24:56

    ORA-19852: error creating services for the instance auxiliary zbnt (error 0)

    ORA-27302: failure occurred:

    ORA-27303: additional information: could not start the instance

    Thank you

    Siradji

    Just a wild guess

    You do not use this script in a command as Administrator window

    Therefore, you won't be able to create any service.

    I also have a question: your only troubleshooting activity consisted of hitting CTRL + C and CTRL-V, is not it?

    It's so boring to most of the people here do not even TRY to solve their own problems.

    -------------

    Sybrand Bakker

    Senior Oracle DBA

  • ShadowProtect backup Oracle databases

    Hi all

    I would like to hear from someone if you use ShadowProtect to backup your Oracle databases.
    What are your experiences and the advantages and disadvantages in using ShadowProtect like the one and only tools to backup and restore for Oracle databases?
    Can the potential of ShadowProtect replaces it commonly use Oracle backup/restore tools?

    The reason why I bring this up is because my boss has the idea that ShadowProtect is THE best backup and restore tools. Personally I don't think, because there may be cases where we only need to recover the database and not the whole OS. So need to hear more from you guys.


    Thank you.

    Published by: moslee on March 22, 2013 02:24

    moslee wrote:
    Hi all

    I would like to hear from someone if you use ShadowProtect to backup your Oracle databases.
    What are your experiences and the advantages and disadvantages in using ShadowProtect like the one and only tools to backup and restore for Oracle databases?
    Can the potential of ShadowProtect replaces it commonly use Oracle backup/restore tools?

    The reason why I bring this up is because my boss has the idea that ShadowProtect is THE best backup and restore tools. Personally I don't think, because there may be cases where we only need to recover the database and not the whole OS. So need to hear more from you guys.

    Thank you.

    Published by: moslee on March 22, 2013 02:24

    Given the complexity of the backup and recovery of an Oracle database, I wouldn't trust anything, but the solution of the Oracle, rman. BTW, you already paid for rman. BTW, I've been known to quietly to apply my own backups rman, then let the solution of "business" save my rman backups. When feces enter the ventilation system, your final responsibility go/no-go is to recover this database. And 'they' (management, storage management team, anyone) will never accept that their backup solution has been insufficient or fatally defective.

    Published by: EdStevens on March 22, 2013 06:18

  • What are the basic element of basic configuration of an oracle database?

    What are the basic element of basic configuration of an oracle database?

    It consists of
    one or more data files.
    one or more files of control.
    two or more redo log files.
    The database contains
    multiple users/schemas
    one or more rollback segments
    one or more storage space
    Data dictionary tables
    User objects (table, index, views etc.,)
    The server who access the database consists of
    SGA (dictionary database Cache buffers, a Redo buffers of the newspaper, shared pool SQL buffer)
    SMON (System MONito)
    PMON (Process MONitor)
    LGWR (LoG Write)
    DBWR (data writing)
    ARCH (archive)
    CKPT (Check Point)
    RECO
    Dispatcher
    Associate the user with PGS process

  • How to take database backup ASM/Instance?

    Hello

    I'm new with ASM. We take ASM/instance of database backup.

    can we have the idea to backup ASM?

    1. what components should be saved as database/Instance ASM / ASM all files?


    Please do the needful.

    Thank you
    Nitin

    Hello Nitin,

    First of all, you must understand that the RDBMS & ASM instance is different but yes, both are running on the same computer.

    ASM includes essentially two things: ASM instance (1) and the storage of the DSO (2).

    (1) ASM instance
    ------------------------

    That's just an instance when we do not backup but Yes if you want to keep the ASM instance configuration file then just follow these steps:

    [grid@host01 ~] $. oraenv
    ORACLE_SID = [+ ASM1]? + ASM1
    The basic Oracle for ORACLE_HOME=/u01/app/11.2.0/grid is/u01/app/grid

    SQL > create pfile='/home/grid/init+ASM1.ora' of spfile;

    Created file.

    (2) ASM STORAGE
    -------------------------

    -Storage ASM includes essentially ASM starts, namely new set of disks.

    -Whenever we do not create ASM diskgroup diskgroup contains still three things:

    (a) disc ASM
    (b) models and metadata
    (c) the ASM files (essentially datafile or all database files)

    -We take backup of two things on three things in ASM diskgroup:

    (1) ASM files - with RMAN because these are files of database.
    (2) ASM diskgroup models & metadata - with the MD_BACKUP of ASMCMD command.

    Now, MD_BACKUP will create a backup as your specified location file and this file will includes all models and metadata of the diskgroup. Benefits of taking diskgroup metadata are, if we lost the diskgroup, so we do not worry some details configuration command MD_RESTORE use to recreate the diskgroup with the same configuration. But remember that it does not restore the data file or any other file that was there on the diskgroup going to use RMAN to restore the missing files.

    See the example:

    ASMCMD > lsdg

    State Type sector Rebal to Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files name of the block
    EXTERN MOUNTED N 512 4096 1048576 11742 11643 0 11643 0 N ABC /.
    NORMAL CLIMB N 512 4096 1048576 15656 10661 1259 4701 0 N DATA.
    EXTERN MOUNTED N 512 4096 1048576 15656 13874 0 13874 0 N FRA.
    ASMCMD >
    >

    ASMCMD >/home/grid/data_backup_file - G DATA md_backup
    Group of disk to save metadata: DATA
    Path to current directory alias: cluster01
    Path to current directory alias: ORCL
    Path to current directory alias: ORCL/fichier_parametres
    Path to current directory alias: ORCL/DATA file
    Current directory alias path: cluster01/OCRFILE
    Path to current directory alias: ORCL/CONTROLFILE
    Path to current directory alias: ORCL/TEMPFILE
    Path to current directory alias: ORCL/ONLINELOG
    Current directory alias path: cluster01/ASMPARAMETERFILE
    ASMCMD >

    * vim # / home/grid/data_backup_file *.

    @diskgroup_set =)
    {
    "ATTRINFO"-ONLINE {}
    "MODEL. OCRBACKUP. REDUNDANCY '-ONLINE 18',
    "MODEL. FICHIER_PARAMETRES. MIRROR_REGION '-ONLINE '0',
    "MODEL. TEMPORARY FILE. REDUNDANCY '-ONLINE 18',
    "MODEL. TEMPORARY FILE. MIRROR_REGION '-ONLINE '0',
    "MODEL. FICHIER_PARAMETRES. REDUNDANCY '-ONLINE 18',
    "SECTOR_SIZE"-ONLINE '512',
    "MODEL. DATAGUARDCONFIG. REDUNDANCY '-ONLINE 18',
    ' ACCESS_CONTROL. UMASK '-ONLINE '066'.
    "MODEL. ASM_STALE. STRIPE '-ONLINE '0',
    "MODEL. ARCHIVELOG. STRIPE '-ONLINE '0',
    "MODEL. DATAGUARDCONFIG. PRIMARY_REGION '-ONLINE '0',
    "MODEL. OCRBACKUP. STRIPE '-ONLINE '0',
    "MODEL. DATA FILE. STRIPE '-ONLINE '0',
    "AU_SIZE"-ONLINE '1048576',
    "MODEL. ASMPARAMETERFILE. STRIPE '-ONLINE '0',
    "MODEL. TRACK CHANGES. PRIMARY_REGION '-ONLINE '0',
    "MODEL. CONTROLFILE. REDUNDANCY '-ONLINE 19',
    "MODEL. FLASHFILE. STRIPE '-ONLINE '0',
    "MODEL. BACKUPSET. PRIMARY_REGION '-ONLINE '0',
    "MODEL. ARCHIVELOG. PRIMARY_REGION '-ONLINE '0',
    "MODEL. TRACK CHANGES. STRIPE '-ONLINE '0',
    "MODEL. ONLINELOG. PRIMARY_REGION '-ONLINE '0',
    "MODEL. TRACK CHANGES. REDUNDANCY '-ONLINE 18',
    "MODEL. BACKUPSET. STRIPE '-ONLINE '0',
    "MODEL. OCRFILE. MIRROR_REGION '-ONLINE '0',
    "DISK_REPAIR_TIME' => '3.6 h."
    "MODEL. AUTOBACKUP. REDUNDANCY '-ONLINE 18',
    "MODEL. DUMPSET. REDUNDANCY '-ONLINE 18',
    "MODEL. RETURN OF FLAME. MIRROR_REGION '-ONLINE '0',
    "MODEL. DUMPSET. MIRROR_REGION '-ONLINE '0',
    "MODEL. DUMPSET. PRIMARY_REGION '-ONLINE '0',
    "MODEL. ASM_STALE. REDUNDANCY '-ONLINE 19',
    "MODEL. RETURN OF FLAME. PRIMARY_REGION '-ONLINE '0',
    "MODEL. CONTROLFILE. STRIPE '-ONLINE 1',
    "MODEL. DATA FILE. REDUNDANCY '-ONLINE 18',
    "MODEL. XTRANSPORT. REDUNDANCY '-ONLINE 18',
    "MODEL. AUTOBACKUP. PRIMARY_REGION '-ONLINE '0',
    "MODEL. CONTROLFILE. MIRROR_REGION '-ONLINE '0',
    "MODEL. DATA FILE. PRIMARY_REGION '-ONLINE '0',
    "MODEL. ASMPARAMETERFILE. REDUNDANCY '-ONLINE 18',
    "MODEL. FLASHFILE. MIRROR_REGION '-ONLINE '0',
    "MODEL. ASM_STALE. MIRROR_REGION '-ONLINE '0',
    "MODEL. RETURN OF FLAME. REDUNDANCY '-ONLINE 18',
    "MODEL. DATAGUARDCONFIG. STRIPE '-ONLINE '0',
    "CELL. SMART_SCAN_CAPABLE'-ONLINE 'FALSE. '
    "TEMPLATE_VERSION"-ONLINE '186646528',
    "MODEL. FICHIER_PARAMETRES. STRIPE '-ONLINE '0',
    "MODEL. DATA FILE. MIRROR_REGION '-ONLINE '0',
    "MODEL. FICHIER_PARAMETRES. PRIMARY_REGION '-ONLINE '0',
    "MODEL. BACKUPSET. MIRROR_REGION '-ONLINE '0',
    "MODEL. OCRBACKUP. MIRROR_REGION '-ONLINE '0',
    "MODEL. ONLINELOG. REDUNDANCY '-ONLINE 18',
    "MODEL. ASMPARAMETERBAKFILE. STRIPE '-ONLINE '0',
    ' ACCESS_CONTROL. PERMIT TO '-ONLINE 'FALSE. '
    "MODEL. DATAGUARDCONFIG. MIRROR_REGION '-ONLINE '0',
    "MODEL. TEMPORARY FILE. PRIMARY_REGION '-ONLINE '0',
    "COMPATIBLE. RDBMS '-ONLINE '10.1.0.0.0'.
    "MODEL. FLASHFILE. PRIMARY_REGION '-ONLINE '0',
    "MODEL. ONLINELOG. MIRROR_REGION '-ONLINE '0',
    "MODEL. FLASHFILE. REDUNDANCY '-ONLINE 18',
    "MODEL. OCRBACKUP. PRIMARY_REGION '-ONLINE '0',
    "MODEL. OCRFILE. STRIPE '-ONLINE '0',
    "MODEL. AUTOBACKUP. MIRROR_REGION '-ONLINE '0',
    "MODEL. ASM_STALE. PRIMARY_REGION '-ONLINE '0',
    "MODEL. ASMPARAMETERBAKFILE. PRIMARY_REGION '-ONLINE '0',
    "MODEL. XTRANSPORT. PRIMARY_REGION '-ONLINE '0',
    "MODEL. DUMPSET. STRIPE '-ONLINE '0',
    "MODEL. TEMPORARY FILE. STRIPE '-ONLINE '0',
    "MODEL. OCRFILE. PRIMARY_REGION '-ONLINE '0',
    "MODEL. ONLINELOG. STRIPE '-ONLINE '0',
    "MODEL. ARCHIVELOG. REDUNDANCY '-ONLINE 18',
    "MODEL. OCRFILE. REDUNDANCY '-ONLINE 18',
    "MODEL. ARCHIVELOG. MIRROR_REGION '-ONLINE '0',
    "MODEL. ASMPARAMETERFILE. MIRROR_REGION '-ONLINE '0',
    "MODEL. RETURN OF FLAME. STRIPE '-ONLINE '0',
    "MODEL. CONTROLFILE. PRIMARY_REGION '-ONLINE '0',
    "MODEL. XTRANSPORT. MIRROR_REGION '-ONLINE '0',
    "MODEL. BACKUPSET. REDUNDANCY '-ONLINE 18',
    "MODEL. ASMPARAMETERBAKFILE. REDUNDANCY '-ONLINE 18',
    "MODEL. XTRANSPORT. STRIPE '-ONLINE '0',
    "MODEL. TRACK CHANGES. MIRROR_REGION '-ONLINE '0',
    "COMPATIBLE. ASM '-ONLINE '11.2.0.0.0'.
    "MODEL. ASMPARAMETERBAKFILE. MIRROR_REGION '-ONLINE '0',
    "MODEL. ASMPARAMETERFILE. PRIMARY_REGION '-ONLINE '0',
    "MODEL. AUTOBACKUP. STRIPE'-'0' ONLINE
    },
    "DISKSINFO"-ONLINE {}
    "ASMDISK02"-ONLINE {}
    "ASMDISK02"-ONLINE {}
    "TOTAL_MB"-ONLINE '3914',
    "FAILGROUP" => "ASMDISK02."
    "NAME" => "ASMDISK02."
    "DGNAME"-ONLINE "DATA."
    'PATH' => 'ORCL:ASMDISK02 '.
    }
    },
    "ASMDISK01"-ONLINE {}
    "ASMDISK01"-ONLINE {}
    "TOTAL_MB"-ONLINE '3914',
    "FAILGROUP" => "ASMDISK01."
    "NAME" => "ASMDISK01."
    "DGNAME"-ONLINE "DATA."
    'PATH' => 'ORCL:ASMDISK01 '.
    }
    },
    "ASMDISK04"-ONLINE {}
    "ASMDISK04"-ONLINE {}
    "TOTAL_MB"-ONLINE '3914',
    "FAILGROUP" => "ASMDISK04."
    "NAME" => "ASMDISK04."
    "DGNAME"-ONLINE "DATA."
    'PATH' => 'ORCL:ASMDISK04 '.
    }
    },
    "ASMDISK03"-ONLINE {}
    "ASMDISK03"-ONLINE {}
    "TOTAL_MB"-ONLINE '3914',
    "FAILGROUP" => "ASMDISK03."
    "NAME" => "ASMDISK03."
    "DGNAME"-ONLINE "DATA."
    'PATH' => 'ORCL:ASMDISK03 '.
    }
    }
    },
    "DGINFO"-ONLINE {}
    "DGTORESTORE"-ONLINE 0
    "DGCOMPAT"-ONLINE ' 11.2.0.0.0. "
    "DGNAME"-ONLINE "DATA."
    "DGDBCOMPAT"-ONLINE ' 10.1.0.0.0. "
    "DGTYPE"-ONLINE "NORMAL."
    "DGAUSZ"-ONLINE '1048576'
    },
    "ALIASINFO"-ONLINE {}
    '6' => {
    "DGNAME"-ONLINE "DATA."
    'LEVEL'-ONLINE 1
    "ALIASNAME"-online "cluster01/ASMPARAMETERFILE"
    'REFERENCE_INDEX'-'16777322' ONLINE
    },
    '3' => {
    "DGNAME"-ONLINE "DATA."
    'LEVEL'-ONLINE 1
    "ALIASNAME" => "ORCL/CONTROLFILE.
    'REFERENCE_INDEX'-'16777534' ONLINE
    },
    '7' => {
    "DGNAME"-ONLINE "DATA."
    'LEVEL'-ONLINE 1
    "ALIASNAME" => "ORCL/FICHIER_PARAMETRES,"
    'REFERENCE_INDEX'-'16777693' ONLINE
    },
    '2' => {
    "DGNAME"-ONLINE "DATA."
    'LEVEL'-ONLINE 1
    "ALIASNAME" => "ORCL/ONLINELOG,"
    'REFERENCE_INDEX'-'16777587' ONLINE
    },
    '8' => {
    "DGNAME"-ONLINE "DATA."
    'LEVEL'-ONLINE 1
    "ALIASNAME"-online "cluster01/OCRFILE"
    'REFERENCE_INDEX'-'16777375' ONLINE
    },
    '1' => {
    "DGNAME"-ONLINE "DATA."
    'LEVEL'-ONLINE 0
    "ALIASNAME"-online "cluster01."
    'REFERENCE_INDEX'-'16777269' ONLINE
    },
    '4' => {
    "DGNAME"-ONLINE "DATA."
    'LEVEL'-ONLINE 1
    "ALIASNAME" => ORCL/DATA FILE"."
    'REFERENCE_INDEX'-'16777481' ONLINE
    },
    '0' => {
    "DGNAME"-ONLINE "DATA."
    'LEVEL'-ONLINE 0
    "ALIASNAME" => "ORCL".
    'REFERENCE_INDEX'-'16777428' ONLINE
    },
    '5' => {
    "DGNAME"-ONLINE "DATA."
    'LEVEL'-ONLINE 1
    "ALIASNAME" => "ORCL/TEMPFILE"
    'REFERENCE_INDEX'-'16777640' ONLINE
    }
    },
    'TEMPLATEINFO'-ONLINE {}
    '11' => {}
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    'TEMPNAME' => 'AUTOBACKUP.
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '7' => {
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'ASMPARAMETERFILE."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '2' => {
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'ARCHIVELOG."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '17' => {}
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'OCRBACKUP."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '1' => {
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'ASM_STALE."
    "REDUNDANCY"-ONLINE "HIGH."
    'SYSTEM' => 'Y '.
    },
    '18' => {}
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'ONLINELOG."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '0' => {
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    'TEMPNAME' => 'DATAFILE ',.
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '16' => {}
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'OCRFILE."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '13' => {}
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME'-ONLINE"TRACK CHANGES. "
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '6' => {
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'ASMPARAMETERBAKFILE."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '3' => {
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'FLASHFILE."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '9' => {
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME" => "TEMPFILE"
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '12' => {}
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'XTRANSPORT."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '14' => {}
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME'-ONLINE"FLASHBACK. "
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '15' => {}
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'DATAGUARDCONFIG."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '8' => {
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'FICHIER_PARAMETRES."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '4' => {
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE "FINE."
    'TEMPNAME' => 'CONTROLFILE.
    "REDUNDANCY"-ONLINE "HIGH."
    'SYSTEM' => 'Y '.
    },
    '10' => {}
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'BACKUPSET."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    },
    '5' => {
    "DGNAME"-ONLINE "DATA."
    "STRIPE"-ONLINE 'ROUGH. "
    "TEMPNAME' => 'DUMPSET."
    "REDUNDANCY"-ONLINE "MIRROR."
    'SYSTEM' => 'Y '.
    }
    }
    }
    );

    NOTE:

    To re-create the diskgroup dropped with the same restoration of the configuration of the diskgroup even with the aid of diskgroup as:

    asmcmd >/home/grid/data_backup_file - full - G DATA md_restore

    Hope its clear now.

    Thank you

    Ashish Shukla

  • Model reusable SQL Oracle to create a DDL/DML Scripts for Oracle database

    Hello


    I have an obligation to set up a model of Oracle SQL to create the Scripts DDL/DML reusable for Oracle databases.
    Only the Oracle DBA will run scripts permissions is not a problem.

    The workflow for any DOF is as follows:-

    (1) new table

    a. check whether the table exists in the views system/admin.
    b. If the table exists then give message "Table exists".
    c. If the table does not exist then run DDL code

    (2) add the column

    a. check if the column exists for a given table of the system/admin views
    b. If the column exists in the specified table.
    B1. backup table.
    B2. ALTER table alter column
    B3. check data or execute convert dml sauvegardΘ to the new change script.
    c. If the column does not exist
    C1. backup table
    C2. ALTER table add column
    C3. Run dml to populate the column with the default value.

    The DML scripts are to populate the base tables with the data required for business operations.

    (3) addition of new line

    a. check if the line exists by comparing the old values of each column with the new values to be added for the new record.
    b. If there is, to give message line is
    c. If not exists, add the new record.

    (4) update existing record (we createtime columns in these tables as well as changes can be tracked)

    a. check if the row exists using the primary key.
    b. If there is.
    B1. off the record by using the "active" column of the table
    B2. Add new record with the necessary changes.
    c. If does not exist, add the new record with the necessary changes.

    Could you please help with some ideas that can get this done with precision?
    I tried several ways, but I am not able to set up something that meets all the requirements.

    Thank you

    If it helps at all. Sometimes we have a requirement for a DDL statement to be rerunable and her only error if something completely unexpected happens.

    It's a little monstrous, but basically, we wrap all DDL in a dynamic statement and capture errors that would indicate that the DDL script has already been run:

    Here's a bit of a model:

    declare
       w_ddl varchar2(32767);
    begin
       begin
          --
          dbms_output.put_line('Creating table TABLE_NAME');
          --
          w_ddl := 'CREATE TABLE MY_SCHEMA.TABLE_NAME
                    ( COLUMN_1     DATE          NOT NULL
                     ,COLUMN_2  VARCHAR2(10)  NOT NULL
                     ,COLUMN_3  DATE
                    )';
           --
          execute immediate w_ddl;
          --
          dbms_output.put_line('Successfully created table TABLE_NAME');
          --
       exception
          when others then
             if sqlcode = -955 then
                dbms_output.put_line('Table Already exists.');
             else
                dbms_output.put_line('creation of table TABLE_NAME failed:');
                dbms_output.put_line(sqlerrm);
                raise;
             end if;
       end;
    
      begin
          --
          dbms_output.put_line('Creating unique primary key constraint for TABLE_NAME');
          --
          w_ddl := 'ALTER TABLE MY_SCHEMA.TABLE_NAME ADD (
                   CONSTRAINT TABLE_NAME
                   PRIMARY KEY
                   (TABLE_NAME_ID) USING INDEX)';
           --
          execute immediate w_ddl;
          --
          dbms_output.put_line('Successfully created primary key on TABLE_NAME_ID');
          --
       exception
          when others then
             if sqlcode = -02264 then
                dbms_output.put_line('constraint already exists.');
             else
                dbms_output.put_line('creation of primary key failed:');
                dbms_output.put_line(sqlerrm);
                raise;
             end if;
       END;   
    
    <>
    

    It works well with our scripts to autmoated and help us when we iterate through development and back in if needed test environments.

    In this way, we can add the DDL statements to the deployment script and run the script again without error to set the database to the State required without having to run the newly created statement only.

    Sometimes this approach translates into a creation followed a statement alter table statement to add a column, but the end result of the script is always the same, and the deployment script can be controlled at source between iterations of development that is without having to restore the ddl changes to test the modified DDL script.

    hope that gives you some ideas.

  • How to use references from web third party service with service Cloud Computing to Oracle database schema

    APEX 5.0

    Cloud Computing service for the Oracle database schema


    I'm in the middle of do a proof of concept.  Basically, I need an application with security of the stored data, UI, user, data loading, and able to post data via an external web service said.  It seems that with the database schema Oracle cloud service, it is not possible to use web service references that are not in the field.

    If I try to use a service via http reference, I get:

    ORA-20987: APEX - the requested URL was forbidden. Contact your administrator. -Contact your administrator of the application.

    If I try to use the same reference service via https, I get:

    ORA-29273: HTTP request failed

    ORA-06512: at & quot; SYS. UTL_HTTP & quot; line 1130

    ORA-29259: end-of-input reached

    I read somewhere that cloud services only https can be used.  Is this true?

    And then I read somewhere to use the protocol https, the portfolio must be configured to store certificates, etc.  However, I read somewhere else that the portfolio cannot be configured because there is no access to the instance database with the Oracle Cloud Computing database schema service.  Is this true?

    If both are true, how can I make a call to post data to an external web service?  Or do I need to use a different Cloud Computing service?  Or do I need my own instance of Oracle DB?

    Any help would be great.  Thank you!

    It turns out there was a problem with the remote rest service.  After successfully calling a rest service that was created using SQL Workshop, I tried different remote rest services and they all work.  Sorry for the confusion.  I thought it was very strange that the schema of database service wouldn't be able to do it easily.

  • Turning to Oracle RAC to the only Oracle database

    Hi all

    We are responsible for "make a copy" of Oracle RAC database a customer and our plan is to finish with the FCAC and allows you to host a new unique Oracle database. Very few of us familiar with CARS and looking for suggestions on how to do it (without affecting the source JAR).

    Can take a full expdb of the source database and simply use impdp to import into the standalone database server?

    Comments/suggestions appreciated.

    Thanks in advance.

    Can take a full expdb of the source database and simply use impdp to import into the standalone database server?

    It is an option. Data pump does not care if the source and/or destination is CARS or a mix. If the database is too large, it can take a lot of time to complete.

    Another option is to use the DOUBLE of RMAN feature. And another option is to restore the database from a backup.

    See you soon,.
    Brian

  • Need help in the migration of windows 2003 server Oracle database server 2012

    Hello

    My environment is oracle database 9i in windows server 2003, we want to move to Windows 2012 since the end of support for windows 2003.

    Please give me a plan, what no need to make the first database upgrade or upgrade of windows, what are the things will have to be considered at the level of Oracle database?

    Any help would be appreciated.

    Thank you

    Lherault

    Hello

    Given the version of your database is 9.2.0.8 and you want to upgrade to 11.2.0.4 and 9i database is running with log mode archive

    I have plan.

    (1) your database 9i working with the log mode archive Server 2003

    (2) you can take backup of Database 9i with RMAN

    (3) you can restore the backup to the base in 2008 (by using 11.2.0.4 software)

    (4) when the recovery is complete, you can open the database with resetlogs option upgrade.

    change the upgrade of open database resetlog.

    (5) once the database is open, you can run 'Upgrade PROCESS'

    (6) it should complete your upgrade in 2008

    If you think, restoration and recovery will take time, so you can install physics Eve with 11.2.0.4 version in 2008 for the Database 9i.

    During failover, you can recreate the controlfile and open the database ' change the upgrade of database open resetlog. "

    you will need to check the compatibility with the help from under documents

    Reference list Oracle database upgrade (Doc ID 730365.1)

    Note 551141.1 : Server Upgrade/Downgrade Compatibility matrix data base

  • Oracle database won't start - Interview Question? How to answer Interview in short-

    Hello people

    I am Java programmer, trying to gear to Oracle DB, attended a few Interview.

    So far in the Interview they ask this question "How do troubleshoot you if Oracle database is not running / does not start?

    Since I have no experience in real time.

    I would say that I'll go and do a TNSPING, check the Listerner.ora entries. If Windows I will tell me that I'll check Services.

    but so far, it seems that they are not happy with my answer.

    So I ask each of you to tell me how I should answer.

    I know it's the open question but how should I tell them in a nuttshell.

    Thank you

    Matt

    I am Java programmer, trying to gear to Oracle DB, attended a few Interview.

    So far in the Interview they ask this question "How do troubleshoot you if Oracle database is not running / does not start?

    Since I have no experience in real time.

    I would say that I'll go and do a TNSPING, check the Listerner.ora entries. If Windows I will tell me that I'll check Services.

    but so far, it seems that they are not happy with my answer.

    So I ask each of you to tell me how I should answer.

    I know it's the open question but how should I tell them in a nuttshell.

    Well - until now I disagree with ALL of the other answers!

    IMHO the FIRST STEP in ANY troubleshooting task is to CONFIRM that the problem really exists.

    The KEY part of this confirmation is to get ALL the information available to the person reporting the issue. In an interview which is SIMPLE - the person reporting the issue is sitting right in front of you. So instead of running around like a chicken with its head cut off you should begin by asking a few key questions:

    1. you said that the data is not running

    a. IS IT supposed TO BE running - that would be my VERY FIRST question!

    b. How do you know this? A user did report it to you? Have you tried to use yourself?

    c. How do confirm you the DB was down? Have what measures you taken?

    d. What do you mean by DOWN? Stone cold dead? Running but not accessible to business users? Running but inaccessible to anyone including DBA?

    e. what other information you have about the problem? Have you checked the log of alerts? When was the last time it was running normally? What could have happened since then to bring it down? There were backups or scheduled maintenance tasks?

    2. you said that it does not start

    a. How do you know this?

    b. did you try to start it yourself?

    c. how the restart was attempted? how much? where (what machine)?

    d. what command they use? They use 'EM? Or a console?

    (e) what has been the result? What has been the response on the console (if the console has been used) what has been the result if EM has been used?

    Your answer to that seemingly simple question should have been to about a dozen questions of your own like I did just above. There is NOTHING to do, IMHO, before getting THE news AND ALL of the one who reports the problem - that includes interviewers.

    Disappoint my more great in interviews is when otherwise intelligent people are so reluctant to ask questions to get the information they need to understand and confirm the question/problem.

    The above is why I "disagreed" with the other responses made so far. Certainly, the alerts log is important and must be checked. But it's a lot easier knowing what the person concerned (interviewer) know asking them just before starting to run. As far as we know that the interviewer was ready to tell you what the alert log say if you just ask.

    My rule #1 in an interview: ASK QUESTIONS!

    Anyone who is not asking questions in my interviews gets demerits. I can train someone how to solve problems and perform DBA tasks. But I found it almost IMPOSSIBLE to tell when they don't know something if they don't ask questions or tell me "I don't know".

    If someone just asking these questions above this would indicate to me that they know how to FIND the information they need, even if they don't know yet how to use this information.

  • Proposal Setup infrastructure - Oracle database, LDAP, Weblogic Server, part operational

    Hello Experts!

    First of all, until I opened this topic I tried to search for similar positions that can hold at least part of the necessary information for me. This topic is that most related to the architecture of the whole system in the sense of the application that contains a part of database (oracle with data models database), the operational part (unix scripts called from the web interface), weblogic server where MS Java application runs and the last part is LDAP Setup for supported LDAP grups.

    Currently confirmed architecture is for me unacceptable from the point of view of dorsal because everything would be installed on the same physical server (physical machine). From my point of view, there should be at least 3 physical separate servers:

    (1) Server database where the Oracle database is installed (say ommit backup and disaster at this stage recovery)

    (2) operation of servers shared between several applications to manage operational tasks and application configurations

    (3) separate server for Weblogic server, the LDAP server and Java application is

    Given that 2 points are obvious to me and I provided them with really simplified form then 3. is not entirely clear to me mainly due to the fact that I am the architect of solution for datawarehausing, not for applications based on J2EE.  Under the following link:

    webloic Oracle server needs a server infrastructure

    I just read to support failover and balancing I should have two different boxes physical and Weblogic software installed on each of them. I know not so so many separate for the 3rd point above mentioned how boxes I need. I would appreciate if you can share your thoughts on this subject by considering the following points:

    -scalability (1000 users at the same time)

    -further development

    -maintenance

    -installation costs

    If you can guide also links to cover this topic, I'd be more than happy

    Thanks in advance!

    Kind regards

    Bolo


    Hi Bolo

    Here's WDM of Oracle Identity management includes the installation of OID:

    Content

    I'm sorry for the confusion.

    I meant "General guidelines of architecture of say that you should keep the boxes", for example: LDAP must be in another box of WLS, also database must be in a different area, this isn't really something related to Oracle products, it is only related to the definitions of architecture.

    WebLogic Server at the end being that a java application is running in the virtual machine JAVA, WLS should run in the same box as the JVM as it comes to a unit in terms of functionality.

    Best regards

    Luz

  • Oracle Database Sizing CPU

    Hi all

    Our production database is running on 12 CPU cores. Based on the "sar" report CPU utilization, we noticed this always above 90% idle CPU time and some time (for backup), he arrived nearly 70%. (This means that its use is of about ~ 30 to 40%). O ifyour team has decided to migrate this database to 6 core CPU in order to reduce the cost of license and server cost.

    Please suggest it will be good to migrate the database to 6 CPU cores?

    Can anyone please share me measures documents to capture the database, the CPU usage and also please share all documents on the sizing of the CPU/hardware of oracle database.

    Our database current as below, server details

    Model of processor - Intel Xeon processor X 5650 @ 2.67 GHz (server - Dell PowerEdge M820)

    Total number CPU = 24 (active multithreading)

    Total number of cores - 12, 2 physical cores CPU.i.e 2 * 6

    RAM - 64 GB

    Details of the database

    Version - 11.2.0.1 (NO CARS)

    Size - 400GO

    Users - 300 users (150 concurrent users).

    Let me know if you need more information on this.

    Thank you

    If you have Enterprise Edition licenses, you can test the effect on your current platform by enabling the instance caging. It is a low risk.

    --

    John Watson

    Oracle Certified Master s/n

Maybe you are looking for