Visit Counter

Showing posts with label Ora-Errors. Show all posts
Showing posts with label Ora-Errors. Show all posts

Tuesday, July 12, 2016

ORA-27046 file size is not a multiple of logical block size



While creating pfile from spfile getting below error.


SQL> create pfile from spfile

create pfile from spfile
*
ERROR at line 1:

ORA-27046: file size is not a multiple of logical block size
Additional information 1




Solution:

As per metalink serach it seems the SPFILE has previously been manually edited when the instance was opened and the spfile has gone corrupted.


If all the parameter are same then, yes copy the pfile from production to the DR and then as the database is opened using the spfile, you need to shut it down, and open it with the new pfile. After opening the database successfully, create the spfile from it.

Monday, June 27, 2016

ORA-02096: specified initialization parameter is not modifiable with this option


I getting below error while changing db_file_name_convert.

SQL> alter system set db_file_name_convert='/ora_dat/drssaerp','/ora_dat/ssaerp','/ora_idx/drssaerp','/ora_idx/ssaerp';

ORA-02096 "Specified initialization parameter is not modifiable with this option





Solution:


SQL> alter system set db_file_name_convert='/ora_dat/drssaerp','/ora_dat/ssaerp','/ora_idx/drssaerp','/ora_idx/ssaerp';
scope=spfile;
Altered System.

Restart the database once after that u can see the modified parameter.


SQL> show parameter log_file_name_convert


log_file_name_convert  string      /ora_dat/drssaerp/, /ora_dat/ssaerp


SQL> show parameter db_file_name_convert


db_file_name_convert   string      /ora_dat/drssaerp/, /ora_dat/ssaerp/,

                                                       /ora_idx/drssaerp/, /ora_idx/ssaerp/



To see the list of parameters which are session level or system level modifiable, you can query the V$PARAMETER view like below:


SQL> Select name,isses_modifiable,issys_modifiable from v$parameter;




ORA-02096 "Specified initialization parameter is not modifiable with this option

Cause: Though the initialization parameter is modifiable, it cannot be modified using the specified command.

Action: Check the DBA Guide for information about under what scope the parameter may be modified

Wednesday, May 25, 2016

ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsed



ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsed 


The cause of this ORA-16024 error is a missing space in the variable declaration.


SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsed


ORACLE_HOME/dbs/initoratest.ora
log_archive_dest_1 = 'LOCATION = /ora_dat/ssaerp/archive1'
log_archive_dest_2 = 'LOCATION = /ora_dat/ssaerp/archive2'


I removed space between equal to sign and archive path.


log_archive_dest_1 = 'LOCATION=/ora_dat/ssaerp/archive1'
log_archive_dest_2 = 'LOCATION=/ora_dat/ssaerp/archive2'
 


SQL> startup
ORACLE instance started.

Total System Global Area 9723641856 bytes
Fixed Size                  2189808 bytes
Variable Size            4898952720 bytes
Database Buffers         4261412864 bytes
Redo Buffers              561086464 bytes
Database mounted.
Database opened.

Wednesday, May 18, 2016

ORA-03113: end of file on communication channel



SQL> startup
ORACLE instance started.

Total System Global Area 16535183300 bytes
Fixed Size 2176288 bytes
Variable Size 1006635744 bytes
Database Buffers 637534208 bytes
Redo Buffers 7172096 bytes
ORA-03113: end-of-file on communication channel
Process ID: 5736
Session ID: 191 Serial number: 1

I get the same error if I try start with RMAN:

RMAN> startup mount

Oracle instance started
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 03/07/2011 09:02:11
ORA-03113: end-of-file on communication channel
Process ID: 7256
Session ID: 192 Serial number: 5



ALERT_SSAERP.LOG


-bash-4.1$ tail - 100 alert_ssaerp.log


Errors in file /ora/app/oracle/diag/rdbms/ssaerp/ssaerp/trace/ssaerp_ora_2269.trc:
ORA-19815: WARNING: db_recovery_file_dest_size of 4781506560 bytes is 100.00% used, and has 0 remaining bytes available.
************************************************************************
You have following choices to free up space from recovery area:
1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
   then consider changing RMAN ARCHIVELOG DELETION POLICY.
2. Back up files to tertiary device such as tape using RMAN
   BACKUP RECOVERY AREA command.
3. Add disk space and increase db_recovery_file_dest_size parameter to
   reflect the new space.
4. Delete unnecessary files using RMAN DELETE command. If an operating
   system command was used to delete files, then use RMAN CROSSCHECK and
   DELETE EXPIRED commands.
************************************************************************
ARCH: Error 19809 Creating archive log file to '/ora/app/oracle/fast_recovery_area/SSAERP/archivelog/2016_05_18/o1_mf_1_135_%u_.arc'
Errors in file /ora/app/oracle/diag/rdbms/ssaerp/ssaerp/trace/ssaerp_arc1_2271.trc:
ORA-19815: WARNING: db_recovery_file_dest_size of 4781506560 bytes is 100.00% used, and has 0 remaining bytes available.
************************************************************************
You have following choices to free up space from recovery area:
1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
   then consider changing RMAN ARCHIVELOG DELETION POLICY.
2. Back up files to tertiary device such as tape using RMAN
   BACKUP RECOVERY AREA command.
3. Add disk space and increase db_recovery_file_dest_size parameter to
   reflect the new space.
4. Delete unnecessary files using RMAN DELETE command. If an operating
   system command was used to delete files, then use RMAN CROSSCHECK and
   DELETE EXPIRED commands.
************************************************************************
ARC1: Error 19809 Creating archive log file to '/ora/app/oracle/fast_recovery_area/SSAERP/archivelog/2016_05_18/o1_mf_1_136_%u_.arc'
Errors in file /ora/app/oracle/diag/rdbms/ssaerp/ssaerp/trace/ssaerp_ora_2269.trc:
ORA-16038: log 3 sequence# 135 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 3 thread 1: '/ora_dat/ssaerp/redo03.log'
USER (ospid: 2269): terminating the instance due to error 16038
System state dump requested by (instance=1, osid=2269), summary=[abnormal instance termination].
System State dumped to trace file /ora/app/oracle/diag/rdbms/ssaerp/ssaerp/trace/ssaerp_diag_2251_20160518145705.trc
Dumping diagnostic data in directory=[cdmp_20160518145705], requested by (instance=1, osid=2269), summary=[abnormal instance termination].
Instance terminated by USER, pid = 2269
-bash-4.1$ pwd



$ /ora/app/oracle/diag/rdbms/ssaerp/ssaerp/trace




Solution:




SPFILE File

SQL> Shutdown immediate;
SQL> startup mount

SQL>alter system set db_recovery_file_dest_size = 10G scope=both;


$ rman
Recovery Manager: Release 11.2.0.4.0 - production on Jul 03 18:11:11 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

RMAN> backup archivelog all delete input;





PFILE


I changed the below parameter in initssaerp.ora

db_recovery_file_dest_size of 4781506560000


Remove files on below location

/ora/app/oracle/fast_recovery_area

-bash-4.1$ ./sqlplus /nolog

SQL*Plus: Release 11.2.0.4.0 Production on Jul 03 16:56:18 2011
Copyright (c) 1982, 2013, Oracle.  All rights reserved.

SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area 1.0292E+10 bytes
Fixed Size                  2190488 bytes
Variable Size            1946162024 bytes
Database Buffers         8321499136 bytes
Redo Buffers               21839872 bytes
Database mounted.
Database opened.


SQL>












Wednesday, May 11, 2016

Oracle on Solaris 10 : Fixing the 'ORA-27102: out of memory'



When creating database using DBCA on solaris 11 sparc 64-bit getting error.


'ORA-27102: out of memory'


Environment:


Database Oracle 12c
O/S          Solaris 11.3 Sparc 64-bit


Solution


% id -p
uid=59008(oracle) gid=10001(dba) projid=3(default)

% prctl -n project.max-shm-memory -i project 3
project: 3: default
NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
project.max-shm-memory
        privileged      7.84GB      -   deny                                 -
        system          16.0EB    max   deny               



% prctl -n project.max-shm-memory -r -v 10G -i project 3

% prctl -n project.max-shm-memory -i project 3
project: 3: default
NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
project.max-shm-memory
        privileged      10.0GB      -   deny                                 -
        system          16.0EB    max   deny                                 -
Finally make sure the project is created with projects -l or cat /etc/project commands.

Wednesday, April 20, 2016

ORA-39710 only connect AS SYSDBA is allowed when OPEN in UPGRADE mode



Oracle Database Error ORA-39710

We upgrade oracle 11g database patch on solaris. Database showing restricted mode.
You have to shutdown the database (Shutdown immediate) & startup database in normal mode.


ORA-39710 only connect AS SYSDBA is allowed when OPEN in UPGRADE mode

Cause



An attempt was made to connect to a database when the database was OPEN for UPGRADE or DOWNGRADE.

Action

Try to connect again after the database upgrade or downgrade is complete.

Tuesday, December 15, 2015

ORA-15063: ASM discovered an insufficient number of disks for diskgroup

 
When Start the Database getting error.
 
 
 
SQL> startup
ASM instance started
...
ORA-15032: not all alterations performed
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "RECO"
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "DATA"
 
 
 
 
Action:

 Check that the disks in the diskgroup are present and functioning, that the owner of the ORACLE binary has read/write permission to the disks, and that the ASM_DISKSTRING initialization parameter has been set correctly. Verify that ASM discovers the appropriate disks by querying V$ASM_DISK from the ASM instance
 
 
Solution:
 
 #/etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks: DISK1
                                                           [  OK  ]
 
 
 
There are two disk for ASM but it showing one disk.
 
 
$ /etc/init.d/oracleasm init
 
 
$ /etc/init.d/oracleasm listdisks
 
DISK1
DISK2
 
 
$ ls -ltr /dev/oracleasm/disk/*
 
/dev/oracleasm/disks/DISK2
/dev/oracleasm/disks/DISK1
 
 
 
 
$ cd /grid/bin
 
$ ./crsctl stop resource -all
 
$ ./crsctl start resource -all
 
 
 
 $ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       localhost
ora.LISTENER.lsnr
               ONLINE  ONLINE       localhost
ora.LISTENER_GRID.lsnr
               ONLINE  ONLINE       localhost
ora.asm
               ONLINE  ONLINE       localhost                Started
ora.eons
               OFFLINE OFFLINE      localhost
ora.ons
               OFFLINE OFFLINE      localhost
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
      1        ONLINE  ONLINE       localhost
ora.diskmon
      1        ONLINE  ONLINE       localhost
ora.migrate.db
      1        ONLINE  OFFLINE                               Instance Shutdown
ora.orcl.db
      1        OFFLINE OFFLINE
ora.orcl.test.svc
      1        OFFLINE OFFLINE
ora.stby.db
      1        OFFLINE OFFLINE

 
 
 
 
 
                                                     
 
 
 

Wednesday, October 28, 2015

ORA-01565: error in identifying file '+DATA/orcl/spfileorcl.ora'



SQL> startup
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+DATA/orcl/spfileorcl.ora'
ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
ORA-15056: additional error message
ORA-17503: ksfdopn:DGOpenFile05 Failed to open file +DATA/orcl/spfileorcl.ora
ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
ORA-15173: entry 'spfileorcl.ora' does not exist in directory 'orcl'





[oracle@ora11 bin]$ ./crsctl stat res -t -init

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

Name Target State Server State details

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

Local Resources

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

ora.DATA.dg

ONLINE OFFLINE ora11 STABLE

ora.LISTENER.lsnr

ONLINE ONLINE ora11 STABLE

ora.asm

ONLINE ONLINE ora11 Started,STABLE

ora.ons

OFFLINE OFFLINE ora11 STABLE

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

Cluster Resources

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

ora.cssd

1 ONLINE ONLINE ora11 STABLE

ora.diskmon

1 OFFLINE OFFLINE STABLE

ora.evmd

1 ONLINE ONLINE ora11 STABLE

ora.oraafi.db

1 ONLINE OFFLINE STABLE

ora.orabig.db

1 ONLINE OFFLINE STABLE

ora.oradb.db

1 ONLINE OFFLINE STABLE

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

[oracle@ora11 bin]$










Solution
----------

[oracle@ora11 bin]$ ./crsctl start resource -all

CRS-5702: Resource 'ora.LISTENER.lsnr' is already running on 'ora11'

CRS-5702: Resource 'ora.asm' is already running on 'ora11'

CRS-5702: Resource 'ora.cssd' is already running on 'ora11'

CRS-5702: Resource 'ora.evmd' is already running on 'ora11'

CRS-2501: Resource 'ora.ons' is disabled

CRS-2672: Attempting to start 'ora.DATA.dg' on 'ora11'

CRS-2672: Attempting to start 'ora.diskmon' on 'ora11'

CRS-2676: Start of 'ora.diskmon' on 'ora11' succeeded

CRS-2676: Start of 'ora.DATA.dg' on 'ora11' succeeded

CRS-2679: Attempting to clean 'ora.oraafi.db' on 'ora11'

CRS-2679: Attempting to clean 'ora.orabig.db' on 'ora11'

CRS-2679: Attempting to clean 'ora.oradb.db' on 'ora11'

CRS-2681: Clean of 'ora.oraafi.db' on 'ora11' succeeded

CRS-2672: Attempting to start 'ora.oraafi.db' on 'ora11'

CRS-2681: Clean of 'ora.orabig.db' on 'ora11' succeeded

CRS-2672: Attempting to start 'ora.orabig.db' on 'ora11'

CRS-2681: Clean of 'ora.oradb.db' on 'ora11' succeeded

CRS-2672: Attempting to start 'ora.oradb.db' on 'ora11'

CRS-5010: Update of configuration file "/ora/oracle/app/oracle/product/12.1.0/grid/srvm/admin/oratab.bak.ora11" failed: details at "(:CLSN00011:)" in "/ora/oracle/app/oracle/product/12.1.0/grid/log/ora11/agent/ohasd/oraagent_oracle/oraagent_oracle.log"

 

CRS-2676: Start of 'ora.oraafi.db' on 'ora11' succeeded

CRS-5702: Resource 'ora.oraafi.db' is already running on 'ora11'

CRS-2676: Start of 'ora.oradb.db' on 'ora11' succeeded

CRS-2676: Start of 'ora.orabig.db' on 'ora11' succeeded

CRS-5702: Resource 'ora.orabig.db' is already running on 'ora11'

CRS-4000: Command Start failed, or completed with errors.

[oracle@ora11 bin]$

[oracle@ora11 bin]$



[oracle@ora11 bin]$ ./sqlplus /nolog

SQL*Plus: Release 12.1.0.1.0 Production on Thu Oct 29 02:32:07 2015

Copyright (c) 1982, 2013, Oracle. All rights reserved.

SQL> conn / as sysdba

Connected.

SQL> exit



[oracle@ora11 bin]$ ./crsctl stat res -t -init

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

Name Target State Server State details

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

Local Resources

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

ora.DATA.dg

ONLINE ONLINE ora11 STABLE

ora.LISTENER.lsnr

ONLINE ONLINE ora11 STABLE

ora.asm

ONLINE ONLINE ora11 Started,STABLE

ora.ons

OFFLINE OFFLINE ora11 STABLE

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

Cluster Resources

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

ora.cssd

1 ONLINE ONLINE ora11 STABLE

ora.diskmon

1 OFFLINE OFFLINE STABLE

ora.evmd

1 ONLINE ONLINE ora11 STABLE

ora.oraafi.db

1 ONLINE ONLINE ora11 Open,STABLE

ora.orabig.db

1 ONLINE ONLINE ora11 Open,STABLE

ora.oradb.db

1 ONLINE ONLINE ora11 Open,STABLE

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

[oracle@ora11 bin]$







 

Monday, October 5, 2015

ORA-01102 cannot mount database in exclusive




The Oracle docs note this on the ora-01102 error:
ORA-01102 cannot mount database in EXCLUSIVE mode
 
Cause: Some other instance has the database mounted exclusive or shared.
Action: Shut down the other instance or mount in a compatible mode.
 
 
 
 
 
POSSIBLE SOLUTION:
 

      Verify that the database was shutdown cleanly by doing the following:

1. Verify that there is not a "sgadef<sid>.dbf" file in the directory
"ORACLE_HOME/dbs".

% ls $ORACLE_HOME/dbs/sgadef<sid>.dbf

If this file does exist, remove it.

% rm $ORACLE_HOME/dbs/sgadef<sid>.dbf

2. Verify that there are no background processes owned by "oracle"

% ps -ef | grep ora_ | grep $ORACLE_SID

If background processes exist, remove them by using the Unix
command "kill". For example:

% kill -9 <Process_ID_Number>

3. Verify that no shared memory segments and semaphores that are owned
by "oracle" still exist

% ipcs -b

If there are shared memory segments and semaphores owned by "oracle",
remove the shared memory segments

% ipcrm -m <Shared_Memory_ID_Number>

and remove the semaphores

% ipcrm -s <Semaphore_ID_Number>

NOTE: The example shown above assumes that you only have one
database on this machine. If you have more than one
database, you will need to shutdown all other databases
before proceeding with Step 4.

4. Verify that the "$ORACLE_HOME/dbs/lk<sid>" file does not exist

5. Startup the instance

Solaris 10/Oracle: Fixing ORA-27102: out of memory Error

Solaris 10/Oracle: Fixing ORA-27102: out of memory Error
Symptom:

As part of a database tuning effort you increase the SGA/PGA sizes; and Oracle greets with an ORA-27102: out of memory error message. The system had enough free memory to serve the needs of Oracle.
SQL> startup
ORA-27102: out of memory
SVR4 Error: 22: Invalid argument

Diagnosis
$ oerr ORA 27102
27102, 00000, "out of memory"
// *Cause: Out of memory
// *Action: Consult the trace file for details

Not so helpful. Let's look the alert log for some clues.
% tail -2 alert.log
WARNING: EINVAL creating segment of size 0x000000028a006000
fix shm parameters in /etc/system or equivalent

Oracle is trying to create a 10G shared memory segment (depends on SGA/PGA sizes), but operating system (Solaris in this example) responded with an invalid argument (EINVAL) error message. There is a little hint about setting shm parameters in /etc/system.

Prior to Solaris 10, shmsys:shminfo_shmmax parameter has to be set in /etc/system with maximum memory segment value that can be created. 8M is the default value on Solaris 9 and prior versions; where as 1/4th of the physical memory is the default on Solaris 10 and later. On a Solaris 10 (or later) system, it can be verified as shown below:
% prtconf | grep Mem
Memory size: 32760 Megabytes

% id -p
uid=59008(oracle) gid=10001(dba) projid=3(default)

% prctl -n project.max-shm-memory -i project 3
project: 3: default
NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
project.max-shm-memory
        privileged      7.84GB      -   deny                                 -
        system          16.0EB    max   deny                                 -

Now it is clear that the system is using the default value of 8G in this scenario, where as the application (Oracle) is trying to create a memory segment (10G) larger than 8G. Hence the failure.

So, the solution is to configure the system with a value large enough for the shared segment being created, so Oracle succeeds in starting up the database instance.

On Solaris 9 and prior releases, it can be done by adding the following line to /etc/system, followed by a reboot for the system to pick up the new value.

set shminfo_shmmax = 0x000000028a006000
However shminfo_shmmax parameter was obsoleted with the release of Solaris 10; and Sun doesn't recommend setting this parameter in /etc/system even though it works as expected.

On Solaris 10 and later, this value can be changed dynamically on a per project basis with the help of resource control facilities . This is how we do it on Solaris 10 and later:
% prctl -n project.max-shm-memory -r -v 10G -i project 3

% prctl -n project.max-shm-memory -i project 3
project: 3: default
NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
project.max-shm-memory
        privileged      10.0GB      -   deny                                 -
        system          16.0EB    max   deny                                 -

Note that changes made with the prctl command on a running system are temporary, and will be lost when the system is rebooted. To make the changes permanent, create a project with projadd command and associate it with the user account as shown below:
% projadd -p 102  -c 'eBS benchmark' -U oracle -G dba  -K 'project.max-shm-memory=(privileged,10G,deny)' OASB
% usermod -K project=OASB oracle

Finally make sure the project is created with projects -l or cat /etc/project commands.
% projects -l
...
...
OASB
        projid : 102
        comment: "eBS benchmark"
        users  : oracle
        groups : dba
        attribs: project.max-shm-memory=(privileged,10737418240,deny)

% cat /etc/project
...
...
OASB:102:eBS benchmark:oracle:dba:project.max-shm-memory=(privileged,10737418240,deny)

With these changes, Oracle would start the database up normally.
SQL> startup
ORACLE instance started.

Total System Global Area 1.0905E+10 bytes
Fixed Size                  1316080 bytes
Variable Size            4429966096 bytes
Database Buffers         6442450944 bytes
Redo Buffers               31457280 bytes
Database mounted.
Database opened.

ORA-01031: insufficient privileges



ORA-01031: insufficient privileges


Cause: An attempt was made to change the current username or password without the appropriate privilege. This error also occurs if attempting to install a database without the necessary operating system privileges. When Trusted Oracle is configure in DBMS MAC, this error may occur if the user was granted the necessary privilege at a higher label than the current login.

Action: Ask the database administrator to perform the operation or grant the required privileges. For Trusted Oracle users getting this error although granted the appropriate privilege at a higher label, ask the database administrator to re-grant the privilege at the appropriate label. 
 


I resolved this issue to add oinstall group in /etc/group in solaris and oracle user part of this group.

 

Monday, August 3, 2015

ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below



RMAN> run {

2> allocate channel ch00 type 'SBT_TAPE';

3> send 'NB_ORA_CLIENT=lh-ora-rs';

4> recover database;

5> release channel ch00;

6> }

allocated channel: ch00

channel ch00: sid=1987 devtype=SBT_TAPE

channel ch00: Veritas NetBackup for Oracle - Release 7.6 (2014102721)

sent command to channel: ch00

Starting recover at 03-AUG-15

starting media recovery

Oracle Error:

ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below

ORA-01194: file 1 needs more recovery to be consistent

ORA-01110: data file 1: '/ora_dat/ssaerp/system01.dbf'

released channel: ch00

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

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

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

RMAN-03002: failure of recover command at 08/03/2015 14:06:59

RMAN-06053: unable to perform media recovery because of missing log

RMAN-06025: no backup of log thread 1 seq 105266 lowscn 3956325323 found to rest ore

RMAN-06025: no backup of log thread 1 seq 105265 lowscn 3956321064 found to rest ore



I moved archive log files from production to Development server and try to recover database.


RMAN> run {

2> allocate channel t1 type disk;

3> recover database;

4> release channel t1;

5> }

allocated channel: t1

channel t1: sid=1987 devtype=DISK

Starting recover at 03-AUG-15

starting media recovery

archive log thread 1 sequence 105265 is already on disk as file /ora_dat/ssaerp/ archive1/1_105265_694624922.dbf

archive log thread 1 sequence 105266 is already on disk as file /ora_dat/ssaerp/ archive1/1_105266_694624922.dbf

Oracle Error:

ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below

ORA-01194: file 1 needs more recovery to be consistent

ORA-01110: data file 1: '/ora_dat/ssaerp/system01.dbf'

released channel: t1

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

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

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

RMAN-03002: failure of recover command at 08/03/2015 14:13:32

RMAN-06053: unable to perform media recovery because of missing log

RMAN-06102: no channel to restore a backup or copy of log thread 1 seq 105264 lo wscn 3956321028

RMAN-06102: no channel to restore a backup or copy of log thread 1 seq 105263 lo wscn 3956315146

RMAN-06102: no channel to restore a backup or copy of log thread 1 seq 105262 lo wscn 3956283401

RMAN> run {

2> allocate channel t1 type disk;

3> recover database;

4> release channel t1;

5> }

allocated channel: t1

channel t1: sid=1987 devtype=DISK

Starting recover at 03-AUG-15

starting media recovery

archive log thread 1 sequence 105262 is already on disk as file /ora_dat/ssaerp/archive1/1_105262_694624922.dbf

archive log thread 1 sequence 105263 is already on disk as file /ora_dat/ssaerp/archive1/1_105263_694624922.dbf

archive log thread 1 sequence 105264 is already on disk as file /ora_dat/ssaerp/archive1/1_105264_694624922.dbf

archive log thread 1 sequence 105265 is already on disk as file /ora_dat/ssaerp/archive1/1_105265_694624922.dbf

archive log thread 1 sequence 105266 is already on disk as file /ora_dat/ssaerp/archive1/1_105266_694624922.dbf

archive log filename=/ora_dat/ssaerp/archive1/1_105262_694624922.dbf thread=1 sequence=105262

archive log filename=/ora_dat/ssaerp/archive1/1_105263_694624922.dbf thread=1 sequence=105263

archive log filename=/ora_dat/ssaerp/archive1/1_105264_694624922.dbf thread=1 sequence=105264

archive log filename=/ora_dat/ssaerp/archive1/1_105265_694624922.dbf thread=1 sequence=105265

archive log filename=/ora_dat/ssaerp/archive1/1_105266_694624922.dbf thread=1 sequence=105266

archive log filename=/ora_dat/ssaerp/archive1/1_105267_694624922.dbf thread=1 sequence=105267

archive log filename=/ora_dat/ssaerp/archive1/1_105268_694624922.dbf thread=1 sequence=105268

archive log filename=/ora_dat/ssaerp/archive1/1_105269_694624922.dbf thread=1 sequence=105269

archive log filename=/ora_dat/ssaerp/archive1/1_105270_694624922.dbf thread=1 sequence=105270

archive log filename=/ora_dat/ssaerp/archive1/1_105271_694624922.dbf thread=1 sequence=105271

archive log filename=/ora_dat/ssaerp/archive1/1_105272_694624922.dbf thread=1 sequence=105272

archive log filename=/ora_dat/ssaerp/archive1/1_105273_694624922.dbf thread=1 sequence=105273

archive log filename=/ora_dat/ssaerp/archive1/1_105274_694624922.dbf thread=1 sequence=105274

archive log filename=/ora_dat/ssaerp/archive1/1_105275_694624922.dbf thread=1 sequence=105275

archive log filename=/ora_dat/ssaerp/archive1/1_105276_694624922.dbf thread=1 sequence=105276

archive log filename=/ora_dat/ssaerp/archive1/1_105277_694624922.dbf thread=1 sequence=105277

archive log filename=/ora_dat/ssaerp/archive1/1_105278_694624922.dbf thread=1 sequence=105278

unable to find archive log

archive log thread=1 sequence=105279

released channel: t1

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

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

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

RMAN-03002: failure of recover command at 08/03/2015 14:25:51

RMAN-06054: media recovery requesting unknown log: thread 1 seq 105279 lowscn 3956590616





RMAN> alter database open resetlogs;

database opened

RMAN>
 

Sunday, February 22, 2015

ORA-27046: file size is not a multiple of logical block size Additional information: 1




SQL> create pfile from spfile;
create pfile from spfile
*

ERROR at line 1:
ORA-27046: file size is not a multiple of logical block size
Additional information: 1



The SPFILE is corrupted. The corruption could have happened because of the manual editing of the binary SPFILE. There is no way the spfile can be repaired or modified manually because spfile is a binary file.



Solution:


1. Restore from backup (If we have a recent backup of spfile then can restore it)
2. Create pfile from alert log file. We can get the list of non-default parameters from the alert log at startup time and with that can create pfile.
3. Get the parameters from the corrupted spfile using utilities like strings. We can even try using tools like "vi" to open the spfile and get the parameters.
Eg: strings spfile$ORACLE_SID.ora init$ORACLE_SID.ora

Then create spfile from the pfile.

Sunday, January 25, 2015

ORA-19573: cannot obtain exclusive enqueue for datafile 8

$ ./rman target / nocatalog

Recovery Manager: Release 10.2.0.4.0 - Production on Sun Oct 06 13:55:43 2013

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: SSAERP (DBID=3389811866, not open)
using target database control file instead of recovery catalog

RMAN>  RECOVER DATABASE NOREDO;

Starting recover at 06-Oct-13
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: sid=1982 devtype=SBT_TAPE
channel ORA_SBT_TAPE_1: Veritas NetBackup for Oracle - Release 6.5 (2007072323)
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=982 devtype=DISK
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 00008: /ora_dat/drssaerp/xdb_SSAERP02.dbf
destination for restore of datafile 00019: /ora_idx/drssaerp/idb_SSAERP02.dbf
channel ORA_DISK_1: reading from backup piece /ora_idx/drssaerp/bk/forstandby_l ptes4o_1_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 06/10/2013 13:57:11
ORA-19870: error reading backup piece /ora_idx/drssaerp/bk/forstandby_lvptes4o_1 _1
ORA-19573: cannot obtain exclusive enqueue for datafile 8


Solution:

It seems database is open mode for which performing restore
Shutdown database and put the mount stage and start recovery.


Friday, January 23, 2015

ORA-19506: failed to create sequential file name="/ora_idx/ssaerp/backup/forstandby_ltpteqk7_1_1", parms=""



RMAN> backup incremental from scn 95670 database FORMAT '/ora_idx/ssaerp/backup/forstandby_%U' tag 'FORSTANDBY';

Starting backup at 01/23/2013
using channel ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: starting full datafile backupset
channel ORA_SBT_TAPE_1: specifying datafile(s) in backupset
input datafile fno=00006 name=/ora_dat/ssaerp/xdb_SSAERP01.dbf
input datafile fno=00007 name=/ora_idx/ssaerp/xdb_SSAERP01.dbf
channel ORA_SBT_TAPE_1: starting piece 1 at 01/23/2013
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 01/23/2013 14:45:42
ORA-19506: failed to create sequential file, name="/ora_idx/ssaerp/backup/forstandby_ltpteqk7_1_1", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
   VxBSACreateObject: Failed with error:
   Server Status:  the specified policy is not of the correct client type


RMAN> run {
2> allocate channel t1 type disk;
3> backup incremental from scn 95670 database FORMAT '/ora_idx/ssaerp/backup/forstandby_%U' tag 'FORSTANDBY';
4> release channel t1;
5> }



Starting backup at 01/23/2013
channel t1: starting full datafile backupset
channel t1: specifying datafile(s) in backupset
input datafile fno=00006 name=/ora_dat/ssaerp/xdb_SSAERP01.dbf
input datafile fno=00007 name=/ora_idx/ssaerp/xdb_SSAERP01.dbf
channel t1: starting piece 1 at 01/23/2013
channel t1: finished piece 1 at 01/23/2013
piece handle=/ora_idx/ssaerp/backup/forstandby_lupterr7_1_1 tag=FORSTANDBY comment=NONE
channel t1: backup set complete, elapsed time: 00:05:05
channel t1: starting full datafile backupset
channel t1: specifying datafile(s) in backupset
input datafile fno=00008 name=/ora_dat/ssaerp/xdb_SSAERP02.dbf
input datafile fno=00019 name=/ora_idx/ssaerp/idb_SSAERP02.dbf
channel t1: starting piece 1 at 01/23/2013
channel t1: finished piece 1 at 01/23/2013
piece handle=/ora_idx/ssaerp/backup/forstandby_lvptes4o_1_1 tag=FORSTANDBY comment=NONE
channel t1: backup set complete, elapsed time: 00:05:06
channel t1: starting full datafile backupset
channel t1: specifying datafile(s) in backupset
input datafile fno=00009 name=/ora_dat/ssaerp/xdb_SSAERP03.dbf
input datafile fno=00020 name=/ora_idx/ssaerp/idx_SSAERP03.dbf
channel t1: starting piece 1 at 01/23/2013
channel t1: finished piece 1 at 01/23/2013
piece handle=/ora_idx/ssaerp/backup/forstandby_m0ptesea_1_1 tag=FORSTANDBY comment=NONE
channel t1: backup set complete, elapsed time: 00:05:05
channel t1: starting full datafile backupset
channel t1: specifying datafile(s) in backupset
input datafile fno=00010 name=/ora_dat/ssaerp/xdb_SSAERP04.dbf
input datafile fno=00021 name=/ora_idx/ssaerp/idx_SSAERP04.dbf
channel t1: starting piece 1 at 01/23/2013
channel t1: finished piece 1 at01/23/2013
piece handle=/ora_idx/ssaerp/backup/forstandby_m1ptesnr_1_1 tag=FORSTANDBY comment=NONE
channel t1: backup set complete, elapsed time: 00:05:15
channel t1: starting full datafile backupset
channel t1: specifying datafile(s) in backupset
input datafile fno=00011 name=/ora_dat/ssaerp/xdb_SSAERP05.dbf
input datafile fno=00022 name=/ora_idx/ssaerp/idx_SSAERP05.dbf
channel t1: starting piece 1 at 01/23/2013
channel t1: finished piece 1 at 01/23/2013
piece handle=/ora_idx/ssaerp/backup/forstandby_m2ptet1n_1_1 tag=FORSTANDBY comment=NONE
channel t1: backup set complete, elapsed time: 00:05:05
channel t1: starting full datafile backupset
channel t1: specifying datafile(s) in backupset
input datafile fno=00012 name=/ora_dat/ssaerp/xdb_SSAERP06.dbf
input datafile fno=00023 name=/ora_idx/ssaerp/idx_SSAERP06.dbf
channel t1: starting piece 1 at 01/23/2013
channel t1: finished piece 1 at 01/23/2013
piece handle=/ora_idx/ssaerp/backup/forstandby_m3ptetb8_1_1 tag=FORSTANDBY comment=NONE
channel t1: backup set complete, elapsed time: 00:05:15
channel t1: starting full datafile backupset
channel t1: specifying datafile(s) in backupset
input datafile fno=00013 name=/ora_dat/ssaerp/xdb_SSAERP07.dbf
input datafile fno=00024 name=/ora_idx/ssaerp/idx_SSAERP07.dbf

.........



input datafile fno=00002 name=/ora_dat/ssaerp/undotbs01.dbf
channel t1: starting piece 1 at 01/23/2013
channel t1: finished piece 1 at 01/23/2013
piece handle=/ora_idx/ssaerp/backup/forstandby_meptf0me_1_1 tag=FORSTANDBY comment=NONE
channel t1: backup set complete, elapsed time: 00:01:55
channel t1: starting full datafile backupset
channel t1: specifying datafile(s) in backupset
input datafile fno=00005 name=/ora_dat/ssaerp/system02.dbf
input datafile fno=00004 name=/ora_dat/ssaerp/users01.dbf
input datafile fno=00003 name=/ora_dat/ssaerp/sysaux01.dbf
input datafile fno=00001 name=/ora_dat/ssaerp/system01.dbf
channel t1: starting piece 1 at 01/23/2013
channel t1: finished piece 1 at01/23/2013
piece handle=/ora_idx/ssaerp/backup/forstandby_mfptf0q2_1_1 tag=FORSTANDBY comment=NONE
channel t1: backup set complete, elapsed time: 00:00:55
Finished backup at 01/23/2013

Starting Control File and SPFILE Autobackup at 01/23/2013
piece handle=/ora/app/oracle/bkcont/c-3389811866-20150123-00 comment=NONE
Finished Control File and SPFILE Autobackup at 01/23/2013

released channel: t1

RMAN>

Sunday, November 30, 2014

ORA-16024 - parameter string cannot be parsed



ORA-16024 - parameter string cannot be parsed

Cause - The value for the specified LOG_ARCHIVE_DEST_n (n = 1...5) parameter could not be parsed.
Common causes for this error are a misplaced equal sign, an unrecognized option, or an option that is missing a required value.

Action - Correct the value for the LOG_ARCHIVE_DEST_n parameter




Another Cause: 

I created pfile from spfile on production server for standby database.
Actually I didn't transfer pfile through FTP..I transfer file through copy/paste using NAS.
It transfered the pfile but when I start the database given above error...I googled checked all solution but it didn't work. I again transfer pfile through FTP then it resolved.