Monday, June 30, 2014

Estimate RMAN Backup Size

I got a task to estimate RMAN backup size.

How much 3days RMAN backup occupy?

How long it will take to complete?

Is the backup size is reasonable?

Is there a way to reduce the backup size?


I have used the below query to find the size and time taken for backup.
set lines 220
set pages 1000
col cf for 9,999
col df for 9,999
col elapsed_seconds heading "ELAPSED|SECONDS"
col i0 for 9,999
col i1 for 9,999
col l for 9,999
col output_mbytes for 9,999,999 heading "OUTPUT|MBYTES"
col session_recid for 999999 heading "SESSION|RECID"
col session_stamp for 99999999999 heading "SESSION|STAMP"
col status for a10 trunc
col time_taken_display for a10 heading "TIME|TAKEN"
col output_instance for 9999 heading "OUT|INST"
select
  to_char(j.start_time, 'yyyy-mm-dd hh24:mi:ss') start_time,
  to_char(j.end_time, 'yyyy-mm-dd hh24:mi:ss') end_time,
  (j.output_bytes/1024/1024) output_mbytes, j.status, j.input_type,
  decode(to_char(j.start_time, 'd'), 1, 'Sunday', 2, 'Monday',
                                     3, 'Tuesday', 4, 'Wednesday',
                                     5, 'Thursday', 6, 'Friday',
                                     7, 'Saturday') dow,
  j.elapsed_seconds, j.time_taken_display,
  x.cf, x.df, x.i0, x.i1, x.l,
  ro.inst_id output_instance
from v$RMAN_BACKUP_JOB_DETAILS j
  left outer join (select
                     d.session_recid, d.session_stamp,
                     sum(case when d.controlfile_included = 'YES' then d.pieces else 0 end) CF,
                     sum(case when d.controlfile_included = 'NO'
                               and d.backup_type||d.incremental_level = 'D' then d.pieces else 0 end) DF,
                     sum(case when d.backup_type||d.incremental_level = 'D0' then d.pieces else 0 end) I0,
                     sum(case when d.backup_type||d.incremental_level = 'I1' then d.pieces else 0 end) I1,
                     sum(case when d.backup_type = 'L' then d.pieces else 0 end) L
                   from
                     v$BACKUP_SET_DETAILS d
                     join v$BACKUP_SET s on s.set_stamp = d.set_stamp and s.set_count = d.set_count
                   where s.input_file_scan_only = 'NO'
                   group by d.session_recid, d.session_stamp) x
    on x.session_recid = j.session_recid and x.session_stamp = j.session_stamp
  left outer join (select o.session_recid, o.session_stamp, min(inst_id) inst_id
                   from Gv$RMAN_OUTPUT o
                   group by o.session_recid, o.session_stamp)
    ro on ro.session_recid = j.session_recid and ro.session_stamp = j.session_stamp
where j.start_time > trunc(sysdate)-&NUMBER_OF_DAYS
order by j.start_time
/

Enter value for number_of_days: 1                                                                                                                                                           
                                                                                                                                                           
                                            OUTPUT                                       ELAPSED TIME                                            OUT       
START_TIME          END_TIME                MBYTES STATUS     INPUT_TYPE    DOW          SECONDS TAKEN          CF     DF     I0     I1      L  INST       
------------------- ------------------- ---------- ---------- ------------- --------- ---------- ---------- ------ ------ ------ ------ ------ -----       
2014-06-28 13:18:05 2014-06-28 13:18:08     13,512 FAILED     DB FULL       Saturday           3 00:00:03        1      0      0      0      0     1       
2014-06-28 13:26:11 2014-06-28 13:26:15     11,348 FAILED     DB FULL       Saturday           4 00:00:04        1      0      0      0      0     1       
2014-06-28 17:30:58 2014-06-28 19:07:44     21,370 COMPLETED  DB FULL       Saturday        5806 01:36:46        3      4      0      0      0     1       
2014-06-28 19:08:09 2014-06-28 19:08:16          0 FAILED     ARCHIVELOG    Saturday           7 00:00:07                                          1       
2014-06-28 20:26:00 2014-06-28 20:51:46      5,112 COMPLETED  ARCHIVELOG    Saturday        1546 00:25:46        1      0      0      0      4     1 


This is how estimated the size of the backup from Database.

SQL> select sum(bytes)/1024/1024 from v$datafile;                                                                                                          
                                                                                                                                                           
SUM(BYTES)/1024/1024                                                                                                                                       
--------------------                                                                                                                                       
             50387.5                                                                                                                                       
                                                                                                                                                           
SQL> select sum(bytes)/1024/1024 from dba_free_space;                                                                                                      
                                                                                                                                                           
SUM(BYTES)/1024/1024                                                                                                                                       
--------------------                                                                                                                                       
          23501.5625                                                                                                                                       
                                                                                                                                                           
SQL>                           

50387.5 - 23501.5625 = 26885.9375 = 26GB
I reviewed the below notes for the same.
How to estimate the size of an RMAN database backup (Doc ID 1274720.1)
A Complete Understanding of RMAN Compression (Doc ID 563427.1)

Sunday, June 29, 2014

ouicli.pl INSTE8_APPLY 255 (or) ERROR: Failed to execute adclone.pl

I got the below issue while Cloning ORACLE HOME from source to target. I have copied the binaries from source and initiated adcfclone. It failed 
with below errror.



[oradev@host01 bin]$ perl adcfgclone.pl dbTechStack

                     Copyright (c) 2002 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle Applications Rapid Clone

                                 Version 12.0.0

                      adcfgclone Version 120.31.12010000.8

Enter the APPS password :

Running:
/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/../jre/bin/java
u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/xmlparserv2.jar:
pps.ad.context.CloneContext -e /u01/app/oradev/product/11.2.0/dbhome_1/apps
29191.lst -stage /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone -db

Log file located at /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/

Provide the values required for creation of the new Database Context file.

Beginning rdbms home Apply - Sat Jun 28 16:27:21 2014

/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true  -Doracle.installer.oui_loc=/u01/app/oradev/product/11.2.0/dbhome_1/oui -classpath /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/xmlparserv2.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/ojdbc5.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/java:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/OraInstaller.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/ewt3.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/share.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/srvm.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/ojmisc.jar   oracle.apps.ad.clone.ApplyDBTechStack -e /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/DEV_host01.xml -stage /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone   -showProgress
APPS Password : Log file located at /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/ApplyDBTechStack_06281527.log
  \      0% completed       RC-00110: Fatal: Error occurred while relinking of ApplyDBTechStack

ERROR while running Apply...
Sat Jun 28 16:27:53 2014

 ERROR: Failed to execute /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/adclone.pl

Checked for the exact log file located u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/ApplyDBTechStack_06281527.log


  [APPLY PHASE]
  AutoConfig could not successfully execute the following scripts:
    Directory: /u01/app/oradev/product/11.2.0/dbhome_1/perl/bin/perl -I /u01/app/oradev/product/11.2.0/dbhome_1/perl/lib/5.8.3 -I /u01/app/oradev/product/11.2.0/dbhome_1/perl/lib/site_perl/5.8.3 -I /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/perl /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone
      ouicli.pl               INSTE8_APPLY       255
AutoConfig is exiting with status 1

RC-50013: Fatal: Instantiate driver did not complete successfully.
I have checked the perl version installed in ORACLE HOME and on the /usr/bin.
The versions are different.



[oradev@host01 bin]$ /u01/app/oradev/product/11.2.0/dbhome_1/perl/bin/perl --version

This is perl, v5.10.0 built for x86_64-linux-thread-multi

Copyright 1987-2007, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[oradev@host01 bin]$ perl --version

This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[oradev@host01 clone]$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/u01/app/oradev/bin
[oradev@host01 clone]$ which perl
/usr/bin/perl

Exported the ORACLE_HOME perl into PATH variable and the issue was resolved.



Solution:
---------
[oradev@host01 bin]$ export PATH=/u01/app/oradev/product/11.2.0/dbhome_1/perl/bin/perl:$PATH:.

[oradev@host01 bin]$ echo $PATH
/u01/app/oradev/product/11.2.0/dbhome_1/perl/bin/perl:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/u01/app/oradev/bin:.
And then dbTechStack went successful.


[oradev@host01 bin]$ perl adcfgclone.pl dbTechStack /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/DEV_host01.xml

                     Copyright (c) 2002 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle Applications Rapid Clone

                                 Version 12.0.0

                      adcfgclone Version 120.31.12010000.8

Enter the APPS password :


Running Rapid Clone with command:
perl /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/adclone.pl java=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/../jre mode=apply stage=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone component=dbTechStack method=CUSTOM dbctxtg=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/DEV_host01.xml showProgress contextValidated=false
Running:
perl /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/adclone.pl java=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/../jre mode=apply stage=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone component=dbTechStack method=CUSTOM dbctxtg=/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/DEV_host01.xml showProgress contextValidated=false
APPS Password :

Beginning rdbms home Apply - Sat Jun 28 16:39:08 2014

/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=false  -Doracle.installer.oui_loc=/u01/app/oradev/product/11.2.0/dbhome_1/oui -classpath /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/xmlparserv2.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/ojdbc5.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/java:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/OraInstaller.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/ewt3.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/share.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/oui/srvm.jar:/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone/jlib/ojmisc.jar   oracle.apps.ad.clone.ApplyDBTechStack -e /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/DEV_host01.xml -stage /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/clone   -showProgress
APPS Password : Log file located at /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/ApplyDBTechStack_06281539.log
  |      0% completed
Log file located at /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/ApplyDBTechStack_06281539.log
  \      0% completed

Completed Apply...
Sat Jun 28 16:41:08 2014

Starting database listener for DEV:
Running:
/u01/app/oradev/product/11.2.0/dbhome_1/appsutil/scripts/DEV_host01/addlnctl.sh start DEV
Logfile: /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/addlnctl.txt

You are running addlnctl.sh version 120.1.12010000.4


Starting listener process DEV ...


LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 28-JUN-2014 16:41:10

Copyright (c) 1991, 2011, Oracle.  All rights reserved.

Starting /u01/app/oradev/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.3.0 - Production
System parameter file is /u01/app/oradev/product/11.2.0/dbhome_1/network/admin/DEV_host01/listener.ora
Log messages written to /u01/app/oradev/product/11.2.0/dbhome_1/admin/DEV_host01/diag/tnslsnr/host01/DEV/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host01.demo.com)(PORT=1534)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=host01.demo.com)(PORT=1534)))
STATUS of the LISTENER
------------------------
Alias                     DEV
Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date                28-JUN-2014 16:41:11
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oradev/product/11.2.0/dbhome_1/network/admin/DEV_host01/listener.ora
Listener Log File         /u01/app/oradev/product/11.2.0/dbhome_1/admin/DEV_host01/diag/tnslsnr/host01/DEV/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host01.demo.com)(PORT=1534)))
Services Summary...
Service "DEV" has 1 instance(s).
  Instance "DEV", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

addlnctl.sh: exiting with status 0

addlnctl.sh: check the logfile /u01/app/oradev/product/11.2.0/dbhome_1/appsutil/log/DEV_host01/addlnctl.txt for more information ...

Friday, June 27, 2014

Clear Cache in Oracle Apps R12

Follow the below navigation to clear all middle tier cache in Oracle Apps R12.

Functional Administrator-->Core Services-->Caching Framework-->Global Configuration-->Clear All Cache-->Click on Yes. You will get a confirmation that all middle tier cache is cleared.













Thursday, June 26, 2014

Oracle Application forms in Firefox

Mozilla Firefox ESR is certified as a Windows-based client browser for Oracle E-Business Suite 11i, 12.0, 12.1, and 12.2. 

Not all the versions of Firefox will be able to open the Oracle Applications forms. Only the ESR version could be used to open forms in Oracle Applications.

Download the software from the following link and install on your windows machine.

https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/24.1.0esr/win32/en-US/

Try launching Oracle Application forms now in Firefox.


To view the version of Firefox goto Help-->Options-->About Firefox.


Host key verification failed.

I was trying to scp files from one server to another server.

when I hit scp it scolded me that "Host key verification failed."

[appprd@host01 PRD]$ scp -pr xxlpr apptst@host02.domain.com:/u02/app/apptst/
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE host01 IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA Host key has just been changed.
The fingerprint for the RSA key sent by the remote host01 is
80:f3:c5:26:16:d1:9a:23:8d:c9:00:44:84:75:1a:7f.
Please contact your system administrator.
Add correct host01 key in /u01/app/appprd/.ssh/known_hosts to get rid of this message.

Offending key in /u01/app/appprd/.ssh/known_hosts:5
RSA host01 key for host02.domain.com has changed and you have requested strict checking.

Host key verification failed.

lost connection

Cuase: The same Host was registered with different key in $HOME/.ssh/known_hosts file


Solution:

Temporary: mv /u01/app/appprd/.ssh/known_hosts /u01/app/appprd/.ssh/known_hosts_old. Once the job is done replace again.

Permanent(in fact correct): remove the host01 key entry from $HOME/.ssh/known_hosts.

When you try scp again it will prompt you to add the new key, say yes. The new key will be added in known_hosts file. 

Now it will not give your the error.

[appprd@host01 PRD]$ mv /u01/app/appprd/.ssh/known_hosts /u01/app/appprd/.ssh/known_hosts_old
[appprd@host01 PRD]$ scp -pr xxlpr apptst@host02.domain.com:/u02/app/apptst/

The authenticity of Host 'host02.domain.com (192.168.1.102)' can't be established.
RSA key fingerprint is 80:f3:c5:26:16:d1:9a:23:8d:c9:00:44:84:75:1a:7f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'host02.domain.com,192.168.1.102' (RSA) to the list of known hosts.
apptst@host02.domain.com's password:

RMAN-06026: some targets not found - aborting restore during clone

I got this error when I was trying to clone TEST from PROD using duplicate method.

released channel: c1

released channel: c2

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

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

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

RMAN-03002: failure of Duplicate Db command at 06/25/2014 00:00:49

RMAN-03015: error occurred in stored script Memory Script

RMAN-06026: some targets not found - aborting restore

RMAN-06023: no backup or copy of datafile 584 found to restore

RMAN-06023: no backup or copy of datafile 583 found to restore

RMAN-06023: no backup or copy of datafile 582 found to restore

RMAN-06023: no backup or copy of datafile 581 found to restore

RMAN-06023: no backup or copy of datafile 580 found to restore

RMAN-06023: no backup or copy of datafile 579 found to restore

RMAN-06023: no backup or copy of datafile 578 found to restore

RMAN-06023: no backup or copy of datafile 577 found to restore

RMAN-06023: no backup or copy of datafile 576 found to restore

RMAN-06023: no backup or copy of datafile 575 found to restore

RMAN-06023: no backup or copy of datafile 574 found to restore

RMAN-06023: no backup or copy of datafile 573 found to restore

RMAN-06023: no backup or copy of datafile 572 found to restore

RMAN-06023: no backup or copy of datafile 571 found to restore

RMAN-06023: no backup or copy of datafile 570 found to restore

RMAN-06023: no backup or copy of datafile 569 found to restore

RMAN-06023: no backup or copy of datafile 568 found to restore

RMAN-06023: no backup or copy of datafile 567 found to restore

RMAN-06023: no backup or copy of datafile 566 found to restore

RMAN-06023: no backup or copy of datafile 565 found to restore

RMAN-06023: no backup or copy of datafile 564 found to restore

RMAN-06023: no backup or copy of datafile 563 found to restore

RMAN-06023: no backup or copy of datafile 562 found to restore

RMAN-06023: no backup or copy of datafile 561 found to restore

RMAN-06023: no backup or copy of datafile 560 found to restore

RMAN-06023: no backup or copy of datafile 559 found to restore

RMAN-06023: no backup or copy of datafile 558 found to restore

RMAN-06023: no backup or copy of datafile 557 found to restore

RMAN-06023: no backup or copy of datafile 556 found to restore

RMAN-06023: no backup or copy of datafile 555 found to restore

RMAN-06023: no backup or copy of datafile 554 found to restore

RMAN-06023: no backup or copy of datafile 553 found to restore

RMAN-06023: no backup or copy of datafile 552 found to restore

RMAN-06023: no backup or copy of datafile 551 found to restore

RMAN-06023: no backup or copy of datafile 550 found to restore

RMAN-06023: no backup or copy of datafile 549 found to restore

RMAN-06023: no backup or copy of datafile 548 found to restore

RMAN-06023: no backup or copy of datafile 547 found to restore

RMAN-06023: no backup or copy of datafile 546 found to restore

RMAN-06023: no backup or copy of datafile 545 found to restore

RMAN-06023: no backup or copy of datafile 544 found to restore

RMAN-06023: no backup or copy of datafile 543 found to restore

RMAN-06023: no backup or copy of datafile 542 found to restore

RMAN-06023: no backup or copy of datafile 541 found to restore

RMAN-06023: no backup or copy of datafile 540 found to restore

RMAN-06023: no backup or copy of datafile 539 found to restore

RMAN-06023: no backup or copy of datafile 538 found to restore

RMAN-06023: no backup or copy of datafile 537 found to restore

RMAN-06023: no backup or copy of datafile 536 found to restore

RMAN-06023: no backup or copy of datafile 535 found to restore

RMAN-06023: no backup or copy of datafile 534 found to restore

RMAN-06023: no backup or copy of datafile 533 found to restore

RMAN-06023: no backup or copy of datafile 532 found to restore

RMAN-06023: no backup or copy of datafile 531 found to restore

RMAN-06023: no backup or copy of datafile 530 found to restore

RMAN-06023: no backup or copy of datafile 529 found to restore

RMAN-06023: no backup or copy of datafile 528 found to restore

RMAN-06023: no backup or copy of datafile 527 found to restore

RMAN-06023: no backup or copy of datafile 526 found to restore

RMAN-06023: no backup or copy of datafile 525 found to restore

RMAN-06023: no backup or copy of datafile 524 found to restore

RMAN-06023: no backup or copy of datafile 523 found to restore

RMAN-06023: no backup or copy of datafile 522 found to restore

RMAN-06023: no backup or copy of datafile 521 found to restore

RMAN-06023: no backup or copy of datafile 520 found to restore

RMAN-06023: no backup or copy of datafile 519 found to restore

RMAN-06023: no backup or copy of datafile 518 found to restore

RMAN-06023: no backup or copy of datafile 517 found to restore

RMAN-06023: no backup or copy of datafile 516 found to restore

RMAN-06023: no backup or copy of datafile 515 found to restore

RMAN-06023: no backup or copy of datafile 514 found to restore

RMAN-06023: no backup or copy of datafile 513 found to restore

RMAN-06023: no backup or copy of datafile 512 found to restore

MAN-

RMAN>



Recovery Manager complete.



The backup is mounted on TEST with the same directory structure. I am surprised how the backup does not have the specified datafiles as I have already verfied the backup log before starting the activity.

I checked the whether any access privilige issue with the backup. It is not, the backups are accessible without issues.

The backups available in

-bash-3.00$ cd /u03/backup/PRD

-bash-3.00$ ls -ltr

total 40

drwxrwxrwx  2 21000 21000 8192 Jun 23 07:32 day1

-rw-r--r--  1 21000 21000    0 Jun 24 23:50 day3.last

drwxrwxrwx  2 21000 21000 8192 Jun 25 00:11 day2

drwxr-xr-x  2 21000 21000 4096 Jun 25 02:11 day3


When a backup starts it removes the oldest one and creates new directory. My backup was in day3 now its renamed to day2.

I fired the restore script just before the new backup starts. Hence the rman could not identify the backup pieces.

Cuase: Backup directory structure changed at OS level and not in sync with RMAN repository.


Solution:
---------
crosscheck backup;
reinitiate the restore script;




Monday, June 23, 2014

Listener and Concurrent Managers are not coming up after clone in 11i

I performed 11i instance clone, adcfgclone went successful. When I tried to start the services the listener is not coming up. After troubleshooting sometime found that tnslsnr,tnsping and lsnrctl are missing. I thought the issue was with binaries. I again copied the apps binaries from source and now I made sure that all the binaries are copied successfully. I again ran adcfgclone and it went successful again. I tried to bring up the services, still the same issue. Strange, tnslsnr,tnsping and lsnrctl are missing again. The listener is coming up and hence Concurrent Manager also

Solution:


Copy  tnslsnr, tnsping and lsnrctl from source.

Stop all application services.

Run autoconfig (optional).

Try to bring the services.
 This time all the services were started successfully.

I looked at the adcgclone log, the file are missing after relinking tools (8.0.6) oracle home. I need to look at the relink log file to find the exact cause. I will take a look later after posting this blog.

NLS boot file not found or invalid opmnctl ping – EBS 12.2 ADCFGCLONE FAIL

Error: adcfgclone.pl failed while performing clone of EBS 12.2 instance. This occurred while ohsT2PApply is in progress. INST_TOP/adm...