Spfile

My database is using spfile.(9i on NT). I want to start my database using a pfile.How can I ahieve it.

startup pfile=/full/path/to/pfile/initsid.ora

Similar Messages

  • Does sun Cluster 3.0/3.1 HA Oracle agent support to use Oracle spfile?

    When defining the resource, the 'parameter_file' properties is usually sets to the Oracle pfile. Is it possible to use Oracle spfile?
    It is said if leaving 'parameter_file' NULL, it will be default to Oracle default. Suppose leaving it NULL and with Oracle spfile created in default location, will it use the spfile?

    You did not specify which Sun Cluster version and Oracle version you are running.
    Within SC 3.1 my understanding is that beginning with Oracle 9i it is possible to use the spfile.
    If you leave the "parameter_file" property empty (NULL) then the default behaviour for 9i should work:
    search under $ORACLE_HOME/dbs in the order:
    1. spfile$(ORACLE_SID}.ora
    2. spfile.ora
    3. init${ORACLE_SID}.ora
    Greets
    Thorsten

  • Error Creating Spfile / DB

    I'm trying to create a 9.2 db for thei first time (I'm used to 8), but running into an error just trying to create the spfile. It used to get past the create spfile statement earlier (and, unfortunately, fail on the create database) but now it can't even get that far. I've included the output generated when runing my db script and below that is the init file. Help :( Thanks.
    SQL> SET TERMOUT ON
    SQL>
    SQL> CONNECT / AS SYSDBA
    Connected to an idle instance.
    SQL>
    SQL> -- Create the spfile and startup the database.
    SQL>
    SQL> CREATE SPFILE FROM PFILE='$ORACLE_HOME/dbs/initecassdev.ora';
    CREATE SPFILE FROM PFILE='$ORACLE_HOME/dbs/initecassdev.ora'
    ERROR at line 1:
    ORA-01012: not logged on
    SQL>
    SQL> STARTUP NOMOUNT
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL>
    SQL> -- Create database
    SQL>
    SQL> CREATE DATABASE ecassdev
    2      USER SYS IDENTIFIED BY pw
    3      USER SYSTEM IDENTIFIED BY pw
    4      LOGFILE GROUP 1 ('/REDOLOG/ecassdev/redo01.log') SIZE 100M,
    5           GROUP 2 ('/REDOLOG/ecassdev/redo02.log') SIZE 100M,
    6           GROUP 3 ('/REDOLOG/ecassdev/redo03.log') SIZE 100M
    7      MAXLOGFILES 5
    8      MAXLOGMEMBERS 5
    9      MAXLOGHISTORY 1
    10      MAXDATAFILES 100
    11      MAXINSTANCES 1
    12      CHARACTER SET US7ASCII
    13      NATIONAL CHARACTER SET AL16UTF16
    14      DATAFILE '/DATA/ecassdev/system01.dbf' SIZE 325M REUSE
    15      EXTENT MANAGEMENT LOCAL
    16      DEFAULT TEMPORARY TABLESPACE tempts1
    17      TEMPFILE '/DATA/ecassdev/temp01.dbf'
    18      SIZE 20M REUSE
    19      UNDO TABLESPACE undotbs
    20      DATAFILE '/DATA/ecassdev/undotbs01.dbf'
    21      SIZE 200M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED;
    CREATE DATABASE ecassdev
    ERROR at line 1:
    ORA-01012: not logged on
    SQL>
    SQL> -- Create additional tablespaces ...
    SQL>
    SQL> -- Create a user tablespace to be assigned as the default tablespace for users
    SQL> CREATE TABLESPACE data LOGGING
    2      DATAFILE '/DATA/ecassdev/ecassdev01.dbf'
    3      SIZE 25M REUSE AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED
    4      EXTENT MANAGEMENT LOCAL;
    CREATE TABLESPACE data LOGGING
    ERROR at line 1:
    ORA-01012: not logged on
    SQL> -- Create a tablespace for indexes, separate from user tablespace
    SQL> CREATE TABLESPACE indx LOGGING
    2      DATAFILE '/DATA/ecassdev/indx01.dbf'
    3      SIZE 25M REUSE AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED
    4      EXTENT MANAGEMENT LOCAL;
    CREATE TABLESPACE indx LOGGING
    ERROR at line 1:
    ORA-01012: not logged on
    SQL>
    SQL> create user ecassdev identified by pw
    2 default tablespace data;
    create user ecassdev identified by pw
    ERROR at line 1:
    ORA-01012: not logged on
    SQL>
    SQL> grant create session to ecassdev;
    grant create session to ecassdev
    ERROR at line 1:
    ORA-01012: not logged on
    SQL> grant dba to ecassdev;
    grant dba to ecassdev
    ERROR at line 1:
    ORA-01012: not logged on
    # Cache and I/O
    DB_BLOCK_SIZE=4096
    DB_CACHE_SIZE=20971520
    # Cursors and Library Cache
    CURSOR_SHARING=SIMILAR
    OPEN_CURSORS=300
    # Diagnostics and Statistics
    BACKGROUND_DUMP_DEST=/$ORACLE_BASE/admin/ecassdev/bdump
    CORE_DUMP_DEST=/$ORACLE_BASE/admin/ecassdev/cdump
    TIMED_STATISTICS=TRUE
    USER_DUMP_DEST=/$ORACLE_BASE/admin/ecassdev/udump
    # Control File Configuration
    CONTROL_FILES=("/DATA/ecassdev/control01.ctl",
    "/DATA/ecassdev/control02.ctl",
    "/DATA/ecassdev/control03.ctl")
    # Archive
    LOG_ARCHIVE_DEST_1='LOCATION=/ARCHLOG/ecassdev'
    LOG_ARCHIVE_FORMAT=%t_%s.dbf
    LOG_ARCHIVE_START=TRUE
    # Shared Server
    # Uncomment and use first DISPATCHES parameter below when your listener is
    # configured for SSL
    # (listener.ora and sqlnet.ora)
    # DISPATCHERS = "(PROTOCOL=TCPS)(SER=MODOSE)",
    # "(PROTOCOL=TCPS)(PRE=oracle.aurora.server.SGiopServer)"
    #DISPATCHERS="(PROTOCOL=TCP)(SER=MODOSE)",
    # "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)",
    # (PROTOCOL=TCP)
    # Miscellaneous
    COMPATIBLE=9.2.0
    DB_NAME=ecassdev
    # Distributed, Replication and Snapshot
    DB_DOMAIN=bis.doc.gov
    REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
    # Network Registration
    INSTANCE_NAME=ecassdev
    # Pools
    JAVA_POOL_SIZE=31457280
    LARGE_POOL_SIZE=1048576
    SHARED_POOL_SIZE=52428800
    # Processes and Sessions
    PROCESSES=150
    # Redo Log and Recovery
    FAST_START_MTTR_TARGET=300
    # Resource Manager
    RESOURCE_MANAGER_PLAN=SYSTEM_PLAN
    # Sort, Hash Joins, Bitmap Indexes
    SORT_AREA_SIZE=524288
    # Automatic Undo Management
    UNDO_MANAGEMENT=AUTO
    UNDO_TABLESPACE=undotbs

    Oracle Error :: ORA-15268
    internal Oracle file string already exists.
    Cause: File was already in existence.
    Action: This is an internal error. Contact Oracle Support Services.

  • Unable to startup 12c RAC database, can't open spfile in ASM

    hello,
    I'm testing 12cRAC database on RHEL5 and need your help to troubleshoot and fix the following issue  -
    DBCA fails at the end of the configuration to create and startup new RAC database with the following errors
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file '+DATA/TDB1/spfileTDB1.ora'
    ORA-17503: ksfdopn:2 Failed to open file +DATA/TDB1/spfileTDB1.ora
    ORA-15056: additional error message
    ORA-17503: ksfdopn:2 Failed to open file +DATA/TDB1/spfiletdb1.ora
    ORA-01017: invalid username/password; logon denied
    I also tried executing script (which was created by DBCA) to create the new DB  manually and got the same results - it happens during first attempt to start it up using SPFILE after new DB was successfully created (it was started up using pfile)
    Clusterware with ASM install was successful, binaries were also installed without issues,
    cluster seems healthy, I see correct files within ASM using asmcmd etc ..
    got stuck here and need some directions ... very confused by ORA-01017 password error
    wonder if anyone had same or similar issues ?
    Thank you !

    Fixed.
    Thank you everyone for suggestions and recommendations -
    ASM is accessible using asmcmd and I can see all the DB files incuding spfile, they were created by DBCA, alert log showed same information I posted
    After extensive troubleshooting and testing the issue was idedntified and fixed - 'dba' group needs to be the primary group for 'oracle' user, not the secondary one. I suspected that something was not right with 'oracle' user access to asm based on that strange password error. There is more I need to check as the issue and fix with swapping groups seems strange. Secondary group is not enough ti have proper rights ??? my first reaction was - seriously ? wtf ?
    Anyway - I need to move one now ...
    Thank you again !

  • About spfile creating in oracle 10g while creating a new database

    hi everyone,
    i had this problem while i was creating a new database in oracle 10g.when running the database script, it gives an error about invalid option for create temporary tablespace. is it necessary to have an spfile created in 10g. when the script was not working,we tried to create spfile which gives error tht it does not match the parameter db_name. its taking the default db_name=orcl itself..tis not taking our new db name.
    im creating it manually through sql prompt not through DBCA.the problem is that its still accepting the default db name. please send me the solution with syntaxes.
    thanx

    first of all, thanx for giuding me as im a student doing a course in this
    what abt the creation of spfile.. in a documentation for steps in creating database, they have mentioned it as recommended in creating spfile.here are some notes regarding this ....for oracle 10g
    Step 5: Create a Server Parameter File (Recommended)
    Oracle recommends that you create a server parameter file as a dynamic means of maintaining initialization parameters. The server parameter file is discussed in "Managing Initialization Parameters Using a Server Parameter File".
    The following script creates a server parameter file from the text initialization parameter file and writes it to the default location. The script can be executed before or after instance startup, but after you connect as SYSDBA. The database must be restarted before the server parameter file takes effect.
    -- create the server parameter file
    CREATE SPFILE='/u01/oracle/dbs/spfilemynewdb.ora' FROM
    PFILE='/u01/oracle/admin/initmynewdb/scripts/init.ora';
    SHUTDOWN
    -- the next startup will use the server parameter file
    EXIT
    the error : db_name does not match with the parameter.
    its still taking the default orcl database name

  • Error while creating spfile from pfile

    i am creating spfile from pfile and i am facing some issue regarding this i am getting error as ORA-01127: database name 'bbcomdev''' exceeds size limit of 8 characters as my db name is 8 characters only..
    Please help.

    Anand.. wrote:
    If the pfile if we mention the below, instance startup fails
    *.db_name=''bbcomdev''Why do you have two pairs of single-quote marks?
    >
    >
    SQL> startup nomount pfile='D:\oracle\product\11.2.0.2\dbhome_1\database\INITbbcomdev.ORA'
    ORA-01127: database name 'bbcomdev''' exceeds size limit of 8 characters
    Anand                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Spfile error on windows 2003

    Hi,
    we are installed clusterware on windows 2003.and the database software.
    we created 5 raw device for ocr,ocr mirror,voting disk and remanings are for datafiles and controlfiles.
    we installed successfully.but when we reboot the system,we got the error
    which is indicating spfile related due to path.
    i think i made a mistake while installing oracle database,selecting spfile location.
    i read the documents about rac installation .but no tell about mount point location for spfile and datafile and controlfile.all the documents saying remove drive or path for raw device.my question is how the process find or identity the location of spfile or datafile or controlfile.

    Hi,
    Thanks for reply.I forget to mention database version 10.1.2,and clusterware 10gR2.sorry for that.
    I installed clusterware then VIP and database.we checked crs healthcheck.it was ok.
    what we made a mistake.
    whether we have to set mount point for spfile( raw device) and datafile and controlfile.
    please help me out that.

  • Restore spfile from rman backup ---- error.

    Hi,
    I am trying to execute recovery on new machine ...
    I have done the following steps..
    I have one database as ora10g2 as peroduction database on one machine as hosta
    I have created a catalog on another machine cora10g2 (hostb)
    I have taken a full backup from hosta as per following ...
    the following command execute from hosta machine.
    $ rman target sys/<passwd>@ora10g2 catalog rman/rman@cora10g2 ...
    Backup completed ...
    Now I am trying to restore this backup on hostb machine where i have already rman catlog database ..
    I have done the following setting ...on host b
    set oracle_sid=DUP
    and execute following command ...
    rman target / catalog rman/rman@cora10g2
    RMAN> set dbid 2760732370
    executing command: SET DBID
    database name is "BAAN10G2" and DBID is 2760732370
    RMAN>
    RMAN>
    RMAN> startup force nomount ;
    startup failed: ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/oracle/dbs/baan10g2/dbs/initbaan10g2.ora'
    starting Oracle instance without parameter file for retrival of spfile
    Oracle instance started
    Total System Global Area 159383552 bytes
    Fixed Size 1977112 bytes
    Variable Size 67114216 bytes
    Database Buffers 83886080 bytes
    Redo Buffers 6406144 bytes
    RMAN>
    RMAN>
    RMAN>
    RMAN> show all ;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman/backup/control/cntrl_%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/baanora3/rman/ora10g2/bkup_db_%d_s%s_P%p_t%t' MAXPIECESIZE 1024;
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    RMAN>
    RMAN>
    RMAN> list backup of spfile ;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2420 Full 7.33M DISK 00:00:01 14-JUN-07
    BP Key: 2426 Status: AVAILABLE Compressed: NO Tag: TAG20070614T182935
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070614-00
    SPFILE Included: Modification time: 14-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2509 Full 7.33M DISK 00:00:01 15-JUN-07
    BP Key: 2515 Status: AVAILABLE Compressed: NO Tag: TAG20070615T130416
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-00
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2694 Full 7.33M DISK 00:00:01 15-JUN-07
    BP Key: 2739 Status: AVAILABLE Compressed: NO Tag: TAG20070615T131703
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-01
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2760 Full 80.00K DISK 00:00:01 15-JUN-07
    BP Key: 2763 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163437
    Piece Name: /rman/spfile/spfile.ora
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2769 Full 7.33M DISK 00:00:02 15-JUN-07
    BP Key: 2771 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163441
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-02
    SPFILE Included: Modification time: 15-JUN-07
    RMAN>
    RMAN>
    RMAN> restore spfile from autobackup ;
    Starting restore at 19-JUN-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=36 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=35 devtype=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: sid=34 devtype=DISK
    allocated channel: ORA_DISK_4
    channel ORA_DISK_4: sid=33 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day: 20070619
    channel ORA_DISK_1: looking for autobackup on day: 20070618
    channel ORA_DISK_1: looking for autobackup on day: 20070617
    channel ORA_DISK_1: looking for autobackup on day: 20070616
    channel ORA_DISK_1: looking for autobackup on day: 20070615
    channel ORA_DISK_1: looking for autobackup on day: 20070614
    channel ORA_DISK_1: looking for autobackup on day: 20070613
    channel ORA_DISK_1: no autobackup in 7 days found
    channel ORA_DISK_2: looking for autobackup on day: 20070619
    channel ORA_DISK_2: looking for autobackup on day: 20070618
    channel ORA_DISK_2: looking for autobackup on day: 20070617
    channel ORA_DISK_2: looking for autobackup on day: 20070616
    channel ORA_DISK_2: looking for autobackup on day: 20070615
    channel ORA_DISK_2: looking for autobackup on day: 20070614
    channel ORA_DISK_2: looking for autobackup on day: 20070613
    channel ORA_DISK_2: no autobackup in 7 days found
    channel ORA_DISK_3: looking for autobackup on day: 20070619
    channel ORA_DISK_3: looking for autobackup on day: 20070618
    channel ORA_DISK_3: looking for autobackup on day: 20070617
    channel ORA_DISK_3: looking for autobackup on day: 20070616
    channel ORA_DISK_3: looking for autobackup on day: 20070615
    channel ORA_DISK_3: looking for autobackup on day: 20070614
    channel ORA_DISK_3: looking for autobackup on day: 20070613
    channel ORA_DISK_3: no autobackup in 7 days found
    channel ORA_DISK_4: looking for autobackup on day: 20070619
    channel ORA_DISK_4: looking for autobackup on day: 20070618
    channel ORA_DISK_4: looking for autobackup on day: 20070617
    channel ORA_DISK_4: looking for autobackup on day: 20070616
    channel ORA_DISK_4: looking for autobackup on day: 20070615
    channel ORA_DISK_4: looking for autobackup on day: 20070614
    channel ORA_DISK_4: looking for autobackup on day: 20070613
    channel ORA_DISK_4: no autobackup in 7 days found
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 06/19/2007 18:00:13
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    RMAN>
    I am not able to restore spfile from rman backup ;;;

    Hi,
    I would like to know few things
    1. How are you setting the db_name ? you can set db_id at RMAN, how are you setting the db_name ?
    2. Do you have any default init file at default location ? if yes, is the db_name parameter set correctly in that file ?
    Since spfile is yet to be restored, you must set the db_name parameter correctly before you start spfile restore.This can be done with init file at default location which can even contain just one paremeter i.e db_name.

  • Control File and SPFILE Autobackup command struck

    O.S Version:
    Linux Version "Red Hat Enterprise Linux Server release 6.2 (Santiago)
    Linux version 2.6.32-220.13.1.el6.x86_64 ([email protected]) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Thu Mar 29 11:46:40 EDT 2012
    2.6.18-308.16.1.el5  x86_64
    Tape Archiver : HP Data Protector
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Problem :
    In one of our environment,  OEM grid 11g scheduled Level 0 backup struck at the Control File and SPFILE Autobackup.
    RMAN Script:
    run {
    2> backup format '<%d_%s:%t:%p:%f>.df' incremental level 0 cumulative database;
    3> sql 'alter system archive log current';
    4> backup format '<%d_%s:%t:%p>.al' archivelog all not backed up;
    5> }
    RMAN Configuration
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name TestDB are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 45 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO 'TestDB_%F';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'TestDB_%F';
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE 'SBT_TAPE' TO 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE 'SBT_TAPE' TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS  'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=TestDB,OB2BARLIST=Siv_ORA_TESTSrvr1_TestDB_DB,OB2BARHOSTNAME=TESTSrvr1)';
    CONFIGURE MAXSETSIZE TO UNLIMITED;
    CONFIGURE ENCRYPTION FOR DATABASE OFF;
    CONFIGURE ENCRYPTION ALGORITHM 'AES128';
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+DG_TestDB_UAT_DATA_01/TestDB/TEMPFILE/snapcf_TestDB.f';
    RMAN Log:
    1.    Backup started at 07-SEP-2013 07:09:46
         Finished backup at 07-SEP-2013 07:16:38
    Wherein the Control file backup started at 07-SEP-2013 07:16:38 failed at 09/07/2013 12:44:38.  It kept struck for  5 Hours.
    Starting backup at 07-SEP-2013 07:09:46
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: SID=250 instance=TestDB device type=SBT_TAPE
    channel ORA_SBT_TAPE_1: Data Protector A.06.20/370
    allocated channel: ORA_SBT_TAPE_2
    Finished backup at 07-SEP-2013 07:16:38
    Starting Control File and SPFILE Autobackup at 07-SEP-2013 07:16:38
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of Control File and SPFILE Autobackup command on ORA_SBT_TAPE_1 channel at 09/07/2013 12:44:38
    ORA-19506: failed to create sequential file, name="TestDB_c-2078060264-20130907-ff", parms=""
    ORA-27028: skgfqcre: sbtbackup returned error
    ORA-19511: Error received from media manager layer, error text:
       Vendor specific error: Cannot find requested element ERR(-2)
    ORACLE error from recovery catalog database: ORA-03113: end-of-file on communication channel
    Process ID: 2045
    Session ID: 89 Serial number: 36509
    RMAN> delete noprompt archivelog all backed up 1 times to sbt;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of delete command at 09/07/2013 13:00:07
    RMAN-06004: ORACLE error from recovery catalog database: ORA-03114: not connected to ORACLE
    RMAN> **end-of-file**
    Why does the RMAN Backup struck at Controlfile , SPFile autobackup?

    Hello;
    I believe the issue is caused by your media management software. You should contact your media management vendor.
    Try the same operation to disk and I bet it works.
    Best Regards
    mseberg

  • I can only backup the datafiles but not the control files and SPFiles

    Hello, all,
    I am using the Oracle 10g on a linux server which runs redhat 9. I want to backup the whole database to the disk, but not the flash recovery area. It is /rawdata. I will show how I configure the backup part in EM. Is there anything wrong?
    1. the ARCHIVELOG is on
    2. under Administration, in the All Initialization Parameters, I remove the string value of “log_archive_dest_1”. After that, I go to the SPFile and remove the string value of “log_archive_dest_1”
    3. configure backup settings and policies. The Disk Backup Location field is set to /rawdata. Select Image Copy for Disk Backup type. Test Disk backup is successful.
    4. go to Policy page. Select “Automatically backup the control file and server parameter file (SPFile) with every backup and database structural change.) input /rawdata into the filed: Autobackup Disk Location
    Select “Optimize the whole database backup by skipping unchanged files such as read-only and offline datafiles that have been backed up”
    Select “Retain backups that are necessary for a recovery to any time whin the specified number of days (point-in-time recovery)
    Accept the default of 31days
    5. go to Schedul Backup
    6. select customized from the backup Strategy drop-down menu. Select the Whole Database
    7. in the Options page, select “Full backup” in the Backup Type section. Select “Online Backup” in the Backup Mode section. Select “back up all archived logs on disk” in the Advanced section.
    8. in the Setting page, select “Disk”
    9. in the Schedule page, accept the default job name and description. Select Immediately to execute the job immediately.
    10. just submit the job.
    After several minutes, the job is failed while the Prebackup and Postbackup are succeeded. The log says:
    Recovery Manager: Release 10.1.0.2.0 - Production
    Copyright (c) 1995, 2004, Oracle. All rights reserved.
    RMAN>
    connected to target database: ORCL10G (DBID=770753237)
    using target database controlfile instead of recovery catalog
    RMAN>
    Starting backup at 11-OCT-06
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=268 devtype=DISK
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00001 name=+DATADG/orcl10g/system01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSTEM_FNO-1_68hvin50 tag=BACKUP_ORCL10G_000_101106111844 recid=108 stamp=603544772
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00003 name=+DATADG/orcl10g/sysaux01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSAUX_FNO-3_69hvin6d tag=BACKUP_ORCL10G_000_101106111844 recid=109 stamp=603544813
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00005 name=+DATADG/orcl10g/example01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-EXAMPLE_FNO-5_6ahvin7g tag=BACKUP_ORCL10G_000_101106111844 recid=110 stamp=603544829
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00002 name=+DATADG/orcl10g/undotbs01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-UNDOTBS1_FNO-2_6bhvin7v tag=BACKUP_ORCL10G_000_101106111844 recid=111 stamp=603544835
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:08
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00004 name=+DATADG/orcl10g/users01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-USERS_FNO-4_6chvin87 tag=BACKUP_ORCL10G_000_101106111844 recid=112 stamp=603544841
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    Finished backup at 11-OCT-06
    Starting Control File and SPFILE Autobackup at 11-OCT-06
    piece handle=/rawdata/c-770753237-20061011-05 comment=NONE
    Finished Control File and SPFILE Autobackup at 11-OCT-06
    RMAN>
    Starting backup at 11-OCT-06
    current log archived
    using channel ORA_DISK_1
    archived log /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_cqhvf270 not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 1062
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 10/11/2006 11:20:54
    RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
    ORA-19625: error identifying file /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_puhkv41f
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    RMAN>
    Recovery Manager complete.
    It seems the system tries to find a file “arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_cqhvf270” in /rawdata. I just can not understand.
    What should I do? Any advice is highly appreciated!
    Qian

    the string value in the field of 'log_archive_dest_1" under "All Initialization parameters" is "LOCATION=+DATADG/orcl10g/". The same value was in the field under SPFile.
    I reset these values and tried to backup the whole database. The same error appeared. The log says:
    Recovery Manager: Release 10.1.0.2.0 - Production
    Copyright (c) 1995, 2004, Oracle. All rights reserved.
    RMAN>
    connected to target database: ORCL10G (DBID=770753237)
    using target database controlfile instead of recovery catalog
    RMAN>
    Starting backup at 11-OCT-06
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=245 devtype=DISK
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00001 name=+DATADG/orcl10g/system01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSTEM_FNO-1_6ghvj9rd tag=BACKUP_ORCL10G_000_101106043753 recid=114 stamp=603563922
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00003 name=+DATADG/orcl10g/sysaux01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSAUX_FNO-3_6hhvj9sq tag=BACKUP_ORCL10G_000_101106043753 recid=115 stamp=603563963
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00005 name=+DATADG/orcl10g/example01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-EXAMPLE_FNO-5_6ihvj9tu tag=BACKUP_ORCL10G_000_101106043753 recid=116 stamp=603563977
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00002 name=+DATADG/orcl10g/undotbs01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-UNDOTBS1_FNO-2_6jhvj9ud tag=BACKUP_ORCL10G_000_101106043753 recid=117 stamp=603563984
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00004 name=+DATADG/orcl10g/users01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-USERS_FNO-4_6khvj9uk tag=BACKUP_ORCL10G_000_101106043753 recid=118 stamp=603563990
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    Finished backup at 11-OCT-06
    Starting Control File and SPFILE Autobackup at 11-OCT-06
    piece handle=/rawdata/c-770753237-20061011-07 comment=NONE
    Finished Control File and SPFILE Autobackup at 11-OCT-06
    RMAN>
    Starting backup at 11-OCT-06
    current log archived
    using channel ORA_DISK_1
    archived log /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_cqhvf270 not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 1062
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 10/11/2006 16:40:05
    RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
    ORA-19625: error identifying file /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_puhkv41f
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    RMAN>
    Recovery Manager complete.
    Why the system keeps trying to find files under /rawdata? It is the destination, not the source.
    Any help is appreciated!
    Qian
    Message was edited by:
    QianChen

  • RMAN retention policy - backup spfile and then redundancy = 5 removes it.

    I have a database that is Oracle Standard Edition and it is version 9.2.0.6.
    The spfile has not changed since November, 2005. A list backup does not show an spfile backup with a tag of "hot_database_spfile_backup_full". I took a close look at the RMAN script log and was shocked to discover that the spfile backup from the current day is being deleted. Is that because of the redundancy = 5? I'm trying to figure out why a backup piece from the current day is being deleted?
    Examples follow.
    The script deletes obsolete with redundancy = 5, however, I believe the intent was to keep 25 days because one of the configure clauses is set to a recovery window of 25 days. I realize that the redundancy overrides the configure retention policy command. I can fix the script and remove the redundancy = 5.
    In the RMAN run statement, I first resync the catalog, backup the spfile, a full backup of the database including current controlfile plus archive log (delete input), resync catalog, switch logfile, and backup any additional archive logs. The backup looks fine.
    Then, I allocate a channel for maintenance type sbt. The script then has a "delete noprompt expired backup;" a "delete noprompt obsolete redundancy = 5;" and finally, a crosscheck;
    example of backup piece that is later deleted:
    Starting backup at 07/18/2006 20:00:14
    channel t1: starting full datafile backupset
    channel t1: specifying datafile(s) in backupset
    including current SPFILE in backupset
    channel t1: starting piece 1 at 07/18/2006 20:00:14
    channel t1: finished piece 1 at 07/18/2006 20:00:15
    piece handle=P*****_2338_1_596145614_FULL comment=API Version 2.0,MMS Version 5.2.0.0
    channel t1: backup set complete, elapsed time: 00:00:01
    Finished backup at 07/18/2006 20:00:15
    deletion:
    Deleting the following obsolete backups and copies:
    Type Key Completion Time Filename/Handle
    <other lines deleted>
    Backup Set 27453 07/18/2006 20:00:14
    Backup Piece 27454 07/18/2006 20:00:14
    P*****_2338_1_596145614_FULL
    deleted backup piece
    backup piece handle=P*****_2338_1_596145614_FULL recid=2039 stamp=596145614
    Deleted 12 objects
    Why is a backup piece created on 7/18 being deleted in the maintenance step?
    Thanks in advance!

    In the next step in the script, the controlfile and spfile are backed up:
    backup
    full
    skip inaccessible
    tag hot_database_backup_full
    format '%d_%s_%p_%t_FULL'
    (Database
    include current controlfile)
    Plus Archivelog delete input;
    Even though my backup script is redundant by backing up the spfile twice, when I list the backup of the spfile, I would have expected to find 5 backups with a tag of hot_database_spfile_backup_full and 5 with a tag of hot_database_backup_full. That is not the case. I only find spfiles with a tag of hot_database_backup_full. i am still perplexed by RMAN.
    I will modify my script - remove the backup of the spfile, and crosscheck before the delete commands. I will also remove the redundancy = 5. The intent is to keep 25 days of backups.
    Thanks for your comments

  • How to edit spfile in RAC with location +DATA/

    Dear All,
    My RAC is 2 node 11gR2 on Linux.
    I need to modify my spfile since my UNDO tablespace is giving error while Oracle Starts up:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    ORA-30012: undo tablespace 'UNDOTBS2' does not exist or of wrong type
    I changed UNDO TABLESPACE recently using alter system only.
    Now I want to change the UNDO TABLESPACE in spfile.
    When i go to dbs directory i can see the parameter file and its contents are: SPFILE='+DATA/racdb/spfileracdb.ora'
    I need to edit this file, how can i edit it?
    Kindly help
    Regards,
    Imran

    mrimran,
    After asking an enormous amount of doc questions you should know
    alter system scope=spfile
    alters the spfile
    You should also know how to find the documentation (searchable) at http://tahiti.oracle.com and to use it
    Your abuse of this forum with doc questions is completely unacceptable.
    I will, from now on, mark every further doc question from your handle as abuse of this forum. Every question, until moderators have removed you!!!
    Sybrand Bakker
    Senior Oracle DBA

  • How to specify multiple listeners in the init/spfile

    hi experts,
    can u explain me How to specify multiple listeners in the init/spfile ?

    you do not specify linsteners in spfile.
    The easiest way to configure more listeners is to use Net Configuration Assistant tool.

  • File Count using SPFile Object

    Hi,
    I am trying to get the file count using through SPFile within the selected dates of date time controls as below.
    But not able to get the count of the files in the folder as there is not count property in the SPFile object.
    Please share your ideas/thoughts on the same.
                                    foreach (SPFile file in oFolder.Files)
                                        if ((file.TimeCreated > dtFromDate.SelectedDate) &&( file.TimeCreated<dtToDate.SelectedDate))
                                            int filecount;                              
    Regards,Sudheer
    Thanks & Regards, Sudheer

    Hi ,
    as you have int filecount, increase the count whenever it satisfies the if condition as mentioned
    above.
    int filecount=0;         
    foreach (SPFile file in oFolder.Files)
        if ((file.TimeCreated > dtFromDate.SelectedDate) &&( file.TimeCreated<dtToDate.SelectedDate))
                               filecount++;           
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • RMAN Active Cloning: how to include SPFILE on ASM

    O.S Version     HP-UX B.11.31 U ia64
    Oracle DB Version     11.2.0.3.0
         Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Storage : ASM Diskgroups
    On RMAN active cloning of databases, how to include the SPFILE to be cloned on the ASM Storage?

    Hello;
    Check out the example here :
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupad.htm
    Under "Example 25-4 Duplicating from a File System to ASM (Active)"
    or
    Example 25-5 Duplicating from ASM to ASM (Active)
    Best Regards
    mseberg
    Edited by: mseberg on May 15, 2013 10:34 AM

  • Clearing (removing) an SPFILE parameter

    11.2.0.3/Solaris
    I want to clear the value set for LOCAL_LISTENER and set it to null. As per doc, I have to use RESET command. But RESET works only with SCOPE= SPFILE . ie. I have to bounce the DB to bring this change into effect.
    SQL> show parameter spfile
    NAME                                 TYPE        VALUE
    spfile                               string      /u01/app/oracle/product/11.2.0
                                                     /dbhome_1/dbs/spfileorcl.ora
    SQL>
    SQL> show parameter LOCAL_LISTENER
    NAME                                 TYPE        VALUE
    local_listener                       string      (DESCRIPTION=(ADDRESS=(PROTOCO
                                                     L=TCP)(HOST=192.168.0.182)(POR
                                                     T=1892)))
    SQL>
    SQL>
    SQL>
    SQL> alter system reset LOCAL_LISTENER scope=both;
    alter system reset LOCAL_LISTENER scope=both
    ERROR at line 1:
    ORA-32029: resetting with SCOPE=MEMORY or SCOPE=BOTH is currently not supported
    SQL> alter system reset LOCAL_LISTENER ;
    System altered.
    SQL> show parameter spfile
    NAME                                 TYPE        VALUE
    spfile                               string      /u01/app/oracle/product/11.2.0
                                                     /dbhome_1/dbs/spfileorcl.ora
    SQL>
    ------ Still showing the old value as a bounce is required
    SQL> show parameter LOCAL_LISTENER
    NAME                                 TYPE        VALUE
    local_listener                       string      (DESCRIPTION=(ADDRESS=(PROTOCO
                                                     L=TCP)(HOST=192.168.0.182)(POR
                                                     T=1892)))Is setting the parameter to empty string supported in Oracle . It seems to have worked for me, But i would like to know if it is recommended.
    SQL> show parameter LOCAL_LISTENER
    NAME                                 TYPE        VALUE
    local_listener                       string      (DESCRIPTION=(ADDRESS=(PROTOCO
                                                     L=TCP)(HOST=192.168.0.182)(POR
                                                     T=1892)))
    SQL> alter system set LOCAL_LISTENER = '' scope = both;
    System altered.
    SQL> show parameter LOCAL_LISTENER
    NAME                                 TYPE        VALUE
    local_listener                       string
    SQL>The below article says it is not recommeded to use empty string. But , what other option do I have to clear a parameter's value without bouncing the DB ?
    http://coskan.wordpress.com/2007/03/07/setting-or-resetting-unsetting-parameters/
    Edited by: greeny on 12-Nov-2012 06:25

    1)
    if you want to set local_listener for only this session
    ALTER SYSTEM SET LOCAL_LISTENER='' SCOPE=MEMORY;
    if you want to make it persistent (need rebound to take effect):
    ALTER SYSTEM SET LOCAL_LISTENER='' SCOPE=SPFILE;
    if you want use at this session and make persistent when rebound database:
    ALTER SYSTEM SET LOCAL_LISTENER='' SCOPE=BOTH;
    2)SQL> alter system reset LOCAL_LISTENER scope=both;
    alter system reset LOCAL_LISTENER scope=both
    ERROR en lÝnea 1:
    ORA-32029: actualmente no se soporta el restablecimiento con SCOPE=MEMORY o
    SCOPE=BOTH
    SQL> alter system set LOCAL_LISTENER='' scope=MEMORY;
    Sistema modificado.
    SQL> alter system reset LOCAL_LISTENER ;
    Sistema modificado.Edited by: Fran on 12-nov-2012 6:43

Maybe you are looking for

  • Nomad julebox Zen NX 30Go prob

    Hello !I have a problem with my nomad zen NX 30 Go: It was running very well, but today when I started it, the screen was blocked on "EAX", I can hear the harddri've disc turning for 0 secondes before it stops, but the screen still displays "EAX". I

  • OS and SDK for iPhone same as iPod touch?

    Just curious. It looks like the bundled applications are the same. Just wondering if they share the same OS and SDK.

  • How to I get back my web address bar, bookmark and back and forth bottons

    my web address bar and back and forth bottoms and my bookmark bottoms have disappeared from my browser I can't use firefox without these How do I get them back

  • Import purchased music to iTunes

    Hi! I just bought a new iMac, but I'm having some problems getting the old music I purchased into the new iMac. I can see a list over all the music, but not an option to import it to iTunes. Can anyone help me? Thank you

  • Mp3 download problem

    I cannot uninstall Windows Media Player from add-ons.My problem is when I click any Mp3's download button then it open instead of save the file.So, I need to uninstall Windows Media Player.