DUPLICATE DB CREATION IN SAME SERVER USING BACKUP PIECE

rac1[dev]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 22 00:18:26 2012

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

Connected to an idle instance.

SQL> startup nomount pfile=’$ORACLE_HOME/dbs/initdev.ora’;

ORACLE instance started.
Total System Global Area 393375744 bytes
Fixed Size 1336764 bytes
Variable Size 125831748 bytes
Database Buffers 260046848 bytes
Redo Buffers 6160384 bytes

SQL> exit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

rac1[dev]_oracle> rman auxiliary /

Recovery Manager: Release 11.2.0.1.0 – Production on Wed Aug 22 00:24:03 2012

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

connected to auxiliary database: DEV (not mounted)

RMAN> duplicate database to dev backup location ‘/backup/backup/prod’;

Starting Duplicate Db at 22-AUG-12

contents of Memory Script:
{
sql clone “create spfile from memory”;
}
executing Memory Script

sql statement: create spfile from memory

contents of Memory Script:
{
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area 393375744 bytes

Fixed Size 1336764 bytes
Variable Size 130026052 bytes
Database Buffers 255852544 bytes
Redo Buffers 6160384 bytes

contents of Memory Script:
{
sql clone “alter system set db_name =
”PROD” comment=
”Modified by RMAN duplicate” scope=spfile”;
sql clone “alter system set db_unique_name =
”DEV” comment=
”Modified by RMAN duplicate” scope=spfile”;
shutdown clone immediate;
startup clone force nomount
restore clone primary controlfile from ‘/backup/backup/prod/c-202722890-20120818-00’;
alter clone database mount;
}
executing Memory Script

sql statement: alter system set db_name = ”PROD” comment= ”Modified by RMAN duplicate” scope=spfile

sql statement: alter system set db_unique_name = ”DEV” comment= ”Modified by RMAN duplicate” scope=spfile

Oracle instance shut down

Oracle instance started

Total System Global Area 393375744 bytes

Fixed Size 1336764 bytes
Variable Size 130026052 bytes
Database Buffers 255852544 bytes
Redo Buffers 6160384 bytes

Starting restore at 22-AUG-12
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=19 device type=DISK

channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
output file name=/u01/dev/control/control1.ctl
output file name=/u01/dev/control/control2.ctl
Finished restore at 22-AUG-12

database mounted
released channel: ORA_AUX_DISK_1
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=19 device type=DISK

contents of Memory Script:
{
set until scn 570173;
set newname for datafile 1 to
“/u01/dev/data/system01.dbf”;
set newname for datafile 2 to
“/u01/dev/data/sysaux01.dbf”;
set newname for datafile 3 to
“/u01/dev/data/undotbs01.dbf”;
set newname for datafile 4 to
“/u01/dev/data/users01.dbf”;
restore
clone database
;
}
executing Memory Script

executing command: SET until clause

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting restore at 22-AUG-12
using channel ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00001 to /u01/dev/data/system01.dbf
channel ORA_AUX_DISK_1: restoring datafile 00003 to /u01/dev/data/undotbs01.dbf
channel ORA_AUX_DISK_1: reading from backup piece /backup/backup/prod/backup_PROD_set17_piece1_20120818
channel ORA_AUX_DISK_1: piece handle=/backup/backup/prod/backup_PROD_set17_piece1_20120818 tag=TAG20120818T005047
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:46
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00002 to /u01/dev/data/sysaux01.dbf
channel ORA_AUX_DISK_1: restoring datafile 00004 to /u01/dev/data/users01.dbf
channel ORA_AUX_DISK_1: reading from backup piece /backup/backup/prod/backup_PROD_set18_piece1_20120818
channel ORA_AUX_DISK_1: piece handle=/backup/backup/prod/backup_PROD_set18_piece1_20120818 tag=TAG20120818T005047
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:25
Finished restore at 22-AUG-12

contents of Memory Script:
{
switch clone datafile all;
}
executing Memory Script

datafile 1 switched to datafile copy
input datafile copy RECID=6 STAMP=791944170 file name=/u01/dev/data/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=7 STAMP=791944171 file name=/u01/dev/data/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=8 STAMP=791944171 file name=/u01/dev/data/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=9 STAMP=791944171 file name=/u01/dev/data/users01.dbf

contents of Memory Script:
{
set until scn 570173;
recover
clone database
delete archivelog
;
}
executing Memory Script

executing command: SET until clause

Starting recover at 22-AUG-12
using channel ORA_AUX_DISK_1

starting media recovery

channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=68
channel ORA_AUX_DISK_1: reading from backup piece /backup/backup/prod/backup_PROD_set19_piece1_20120818
channel ORA_AUX_DISK_1: piece handle=/backup/backup/prod/backup_PROD_set19_piece1_20120818 tag=TAG20120818T005144
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=/u01/dev/flash/DEV/archivelog/2012_08_22/o1_mf_1_68_837pnnw7_.arc thread=1 sequence=68
channel clone_default: deleting archived log(s)
archived log file name=/u01/dev/flash/DEV/archivelog/2012_08_22/o1_mf_1_68_837pnnw7_.arc RECID=1 STAMP=791944172
media recovery complete, elapsed time: 00:00:01
Finished recover at 22-AUG-12

contents of Memory Script:
{
shutdown clone immediate;
startup clone nomount;
sql clone “alter system set db_name =
”DEV” comment=
”Reset to original value by RMAN” scope=spfile”;
sql clone “alter system reset db_unique_name scope=spfile”;
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script

database dismounted
Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area 393375744 bytes

Fixed Size 1336764 bytes
Variable Size 130026052 bytes
Database Buffers 255852544 bytes
Redo Buffers 6160384 bytes

sql statement: alter system set db_name = ”DEV” comment= ”Reset to original value by RMAN” scope=spfile

sql statement: alter system reset db_unique_name scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area 393375744 bytes

Fixed Size 1336764 bytes
Variable Size 130026052 bytes
Database Buffers 255852544 bytes
Redo Buffers 6160384 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE “DEV” RESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 ( ‘/u01/dev/redo/redo01.log’ ) SIZE 50 M REUSE,
GROUP 2 ( ‘/u01/dev/redo/redo02.log’ ) SIZE 50 M REUSE,
GROUP 3 ( ‘/u01/dev/redo/redo03.log’ ) SIZE 50 M REUSE
DATAFILE
‘/u01/dev/data/system01.dbf’
CHARACTER SET AL32UTF8

contents of Memory Script:
{
set newname for tempfile 1 to
“/u01/dev/data/temp01.dbf”;
set newname for tempfile 2 to
“/u01/dev/data/temp02.dbf”;
switch clone tempfile all;
catalog clone datafilecopy “/u01/dev/data/sysaux01.dbf”,
“/u01/dev/data/undotbs01.dbf”,
“/u01/dev/data/users01.dbf”;
switch clone datafile all;
}
executing Memory Script

executing command: SET NEWNAME

executing command: SET NEWNAME

renamed tempfile 1 to /u01/dev/data/temp01.dbf in control file
renamed tempfile 2 to /u01/dev/data/temp02.dbf in control file

cataloged datafile copy
datafile copy file name=/u01/dev/data/sysaux01.dbf RECID=1 STAMP=791944387
cataloged datafile copy
datafile copy file name=/u01/dev/data/undotbs01.dbf RECID=2 STAMP=791944387
cataloged datafile copy
datafile copy file name=/u01/dev/data/users01.dbf RECID=3 STAMP=791944387

datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=791944387 file name=/u01/dev/data/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=791944387 file name=/u01/dev/data/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=791944387 file name=/u01/dev/data/users01.dbf

contents of Memory Script:
{
Alter clone database open resetlogs;
}
executing Memory Script

database opened
Finished Duplicate Db at 22-AUG-12

RMAN> exit

Recovery Manager complete.
rac1[dev]_oracle>

SQL> select instance_name,status from v$instance;

INSTANCE_NAME STATUS
—————- ————
dev OPEN

SQL> select open_mode,name from v$database;

OPEN_MODE NAME
——————– ———
READ WRITE DEV

SQL>

PROFILE CREATION AND UPDATION

hostname[instance]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.2.0 Production on Thu Aug 30 01:43:50 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> set lines 160
SQL> set pages 500
SQL> select USERNAME,CREATED,EXPIRY_DATE,ACCOUNT_STATUS,PROFILE from dba_users where username like ‘%HYP%’ order by 2;

USERNAME CREATED EXPIRY_DA ACCOUNT_STATUS PROFILE
—————————— ——— ——— ——————————– ——————————
user1 13-FEB-12 OPEN DEFAULT
user2 13-FEB-12 OPEN DEFAULT
user3 13-FEB-12 OPEN DEFAULT

check the available profiles in database

SQL> select * from dba_profiles;

PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
DEFAULT COMPOSITE_LIMITKERNEL UNLIMITED
DEFAULT SESSIONS_PER_USERKERNEL UNLIMITED
DEFAULT CPU_PER_SESSIONKERNEL UNLIMITED
DEFAULT CPU_PER_CALLKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_CALLKERNEL UNLIMITED
DEFAULT IDLE_TIMEKERNEL UNLIMITED
DEFAULT CONNECT_TIMEKERNEL UNLIMITED
DEFAULT PRIVATE_SGAKERNEL UNLIMITED
DEFAULT FAILED_LOGIN_ATTEMPTSPASSWORD 10
DEFAULT PASSWORD_LIFE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_MAXPASSWORD UNLIMITED
DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
DEFAULT PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_GRACE_TIMEPASSWORD UNLIMITED

16 rows selected.

only one profile is available so see the details about the profile

SQL> select * from dba_profiles where PROFILE=’DEFAULT’;

PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
DEFAULT COMPOSITE_LIMITKERNEL UNLIMITED
DEFAULT SESSIONS_PER_USERKERNEL UNLIMITED
DEFAULT CPU_PER_SESSIONKERNEL UNLIMITED
DEFAULT CPU_PER_CALLKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_CALLKERNEL UNLIMITED
DEFAULT IDLE_TIMEKERNEL UNLIMITED
DEFAULT CONNECT_TIMEKERNEL UNLIMITED
DEFAULT PRIVATE_SGAKERNEL UNLIMITED
DEFAULT FAILED_LOGIN_ATTEMPTSPASSWORD 10
DEFAULT PASSWORD_LIFE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_MAXPASSWORD UNLIMITED
DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
DEFAULT PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_GRACE_TIMEPASSWORD UNLIMITED

16 rows selected.

Create a new profile and modify according to existing profile
SQL> create Profile custom LIMIT PASSWORD_LIFE_TIME 365;

Profile created.

SQL> alter profile CUSTOM limit PASSWORD_REUSE_TIME UNLIMITED;
SQL> alter profile CUSTOM limit COMPOSITE_LIMIT UNLIMITED;
SQL> alter profile CUSTOM limit SESSIONS_PER_USER UNLIMITED;
SQL> alter profile CUSTOM limit CPU_PER_SESSION UNLIMITED;
SQL> alter profile CUSTOM limit CPU_PER_CALL UNLIMITED;
SQL> alter profile CUSTOM limit LOGICAL_READS_PER_SESSION UNLIMITED;
SQL> alter profile CUSTOM limit LOGICAL_READS_PER_CALL UNLIMITED;
SQL> alter profile CUSTOM limit IDLE_TIME UNLIMITED;
SQL> alter profile CUSTOM limit CONNECT_TIME UNLIMITED;
SQL> alter profile CUSTOM limit PRIVATE_SGA UNLIMITED;
SQL> alter profile CUSTOM limit PASSWORD_LOCK_TIME UNLIMITED;
SQL> alter profile CUSTOM limit PASSWORD_GRACE_TIME UNLIMITED;
SQL> alter profile CUSTOM limit PASSWORD_VERIFY_FUNCTION PASSWORD_VERIFY;
SQL> alter profile CUSTOM limit FAILED_LOGIN_ATTEMPTS 10;
SQL> alter profile CUSTOM limit PASSWORD_REUSE_MAX UNLIMITED;

Now compare the both existing and new profile are same same or not in new profile password expiry is set to 365 days
SQL> select * from dba_profiles where PROFILE=’DEFAULT’;

PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
DEFAULT COMPOSITE_LIMITKERNEL UNLIMITED
DEFAULT SESSIONS_PER_USERKERNEL UNLIMITED
DEFAULT CPU_PER_SESSIONKERNEL UNLIMITED
DEFAULT CPU_PER_CALLKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_CALLKERNEL UNLIMITED
DEFAULT IDLE_TIMEKERNEL UNLIMITED
DEFAULT CONNECT_TIMEKERNEL UNLIMITED
DEFAULT PRIVATE_SGAKERNEL UNLIMITED
DEFAULT FAILED_LOGIN_ATTEMPTSPASSWORD 10
DEFAULT PASSWORD_LIFE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_MAXPASSWORD UNLIMITED
DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
DEFAULT PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_GRACE_TIMEPASSWORD UNLIMITED

16 rows selected.

SQL> select * from dba_profiles where PROFILE=’CUSTOM’;

PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
CUSTOM COMPOSITE_LIMITKERNEL UNLIMITED
CUSTOM SESSIONS_PER_USERKERNEL UNLIMITED
CUSTOM CPU_PER_SESSIONKERNEL UNLIMITED
CUSTOM CPU_PER_CALLKERNEL UNLIMITED
CUSTOM LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
CUSTOM LOGICAL_READS_PER_CALLKERNEL UNLIMITED
CUSTOM IDLE_TIMEKERNEL UNLIMITED
CUSTOM CONNECT_TIMEKERNEL UNLIMITED
CUSTOM PRIVATE_SGAKERNEL UNLIMITED
CUSTOM FAILED_LOGIN_ATTEMPTSPASSWORD 10
CUSTOM PASSWORD_LIFE_TIMEPASSWORD 365
CUSTOM PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
CUSTOM PASSWORD_REUSE_MAXPASSWORD UNLIMITED
CUSTOM PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
CUSTOM PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
CUSTOM PASSWORD_GRACE_TIMEPASSWORD UNLIMITED

16 rows selected.

now assign the profile to users ‘ who expiry date you want to extend to 1 year’

SQL> alter user user1 PROFILE CUSTOM;
SQL> alter user user3 PROFILE CUSTOM;
SQL> alter user user2 PROFILE CUSTOM;

SQL> select USERNAME,CREATED,EXPIRY_DATE,ACCOUNT_STATUS,PROFILE from dba_users where username like ‘%HYP%’ order by 2;

USERNAME CREATED EXPIRY_DA ACCOUNT_STATUS PROFILE
—————————— ——— ——— ——————————– ——————————
user1 13-FEB-12 12-FEB-13 OPEN CUSTOM
user2 13-FEB-12 12-FEB-13 OPEN CUSTOM
user3 13-FEB-12 12-FEB-13 OPEN CUSTOM

observer carefully user are assigned to new profile ‘CUSTOM’ but expity date is changed acouding to creation date to 1year
to effect this changes we need to update the password below query to get the passwords of all users

SQL> select ‘alter user ‘||name||’ identified by values ”’||password||”’;’ from SYS.USER$;

‘ALTERUSER’||NAME||’IDENTIFIEDBYVALUES”’||PASSWORD||”’;’
————————————————————————————————
alter user user1 identified by values ‘CCCCE1B4577D5B3F’;

SQL> alter user HYP_PLANAPP9 identified by values ’19F3C3A86A97E8E0′;

User altered.

SQL> alter user user1 identified by values ‘317047F2ED3DE4B3’;
alter user user2 identified by values ‘0326255DC8420F8F’;

User altered.

SQL>

now check the expiry date is changed from modified date to 1year earlier its from creation date to 1year

SQL> select USERNAME,CREATED,EXPIRY_DATE,ACCOUNT_STATUS,PROFILE from dba_users where username like ‘%HYP%’ order by 2;

USERNAME CREATED EXPIRY_DA ACCOUNT_STATUS PROFILE
—————————— ——— ——— ——————————– ——————————
user1 13-FEB-12 30-AUG-13 OPEN CUSTOM
user2 13-FEB-12 30-AUG-13 OPEN CUSTOM
user3 13-FEB-12 30-AUG-13 OPEN CUSTOM

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

DB LINKS

col OWNER for a12
col DB_LINK for a20
col USERNAME for a12
col HOST for a50
set pages 200
select OWNER,DB_LINK,USERNAME,HOST from dba_db_links where DB_LINK=upper(‘&dblink_name’);

To view the existing db links and their properties like private or public

set lines 180
set pages 300
col OWNER format a10
col DB_LINK format a40
col USERNAME format a15
col HOST for a80
set long 100000
select * FROM dba_db_links;

to get the DDL for particular db link use this command

SQL> set long 100000

SQL> select dbms_metadata.get_ddl( ‘DB_LINK’, ‘hostname.domainname.com’,’APPS’ ) from dual;

Create db link by connecting to owner of the db link where it need to be connect in the target database user

hostname[dev]_oracle> sqlplus apps/password

SQL*Plus: Release 11.2.0.2.0 Production on Wed May 23 12:11:52 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> show user
USER is “APPS”

SQL>
create database link hostname.domainname.com
2 connect to APPS identified by password
3 using
4 ‘(DESCRIPTION=
5 (LOAD_BALANCE=YES)
6 (FAILOVER=YES)
7 (ADDRESS_LIST=
8 (ADDRESS=(PROTOCOL=tcp)(HOST=prod-scan.domainname.com)(PORT=1525))
9 )
10 (CONNECT_DATA=
11 (SERVICE_NAME=stage)
12 )
13 )’;

Database link created.

Add the target tns details in source and test the connection by issuing the below command

SQL> SELECT COUNT(*) FROM DUAL@hostname.domainname.com;

COUNT(*)
———-
1

to drop the db link connect to the owner of db link and drop

SQL> conn apps/password

Connected.

SQL> drop database link “hostname.domainname.com”;

database link dropped

SELECT ‘CREATE ‘||DECODE(U.NAME,’PUBLIC’,’public ‘)||’DATABASE LINK ‘||CHR(10)
||DECODE(U.NAME,’PUBLIC’,Null, ‘SYS’,”,U.NAME||’.’)|| L.NAME||chr(10)
||’CONNECT TO ‘ || L.USERID || ‘ IDENTIFIED BY “‘||L.PASSWORD||'” USING
”’||L.HOST||””
||chr(10)||’;’ TEXT
FROM SYS.LINK$ L, SYS.USER$ U
WHERE L.OWNER# = U.USER#;
SELECT ‘CREATE ‘||DECODE(U.NAME,’PUBLIC’,’public ‘)||’DATABASE LINK ‘||CHR(10)
||DECODE(U.NAME,’PUBLIC’,Null, ‘SYS’,”,U.NAME||’.’)|| L.NAME||chr(10)
||’CONNECT TO ‘ || L.USERID || ‘ IDENTIFIED BY “‘||L.PASSWORD||'” USING ”’||L.HOST||””
||chr(10)||’;’ TEXT
FROM SYS.LINK$ L, SYS.USER$ U
WHERE L.OWNER# = U.USER#
and l.USERID like ‘%????%’;
select ‘conn ‘||owner||’/&&’||owner|| chr(10)||’create database link ‘||rtrim(ltrim(db_link))||’ ‘||’connect to ‘||rtrim(ltrim(username))||’ identified by ‘||rtrim(ltrim(password))||’ using ‘||””||rtrim(ltrim(b.host))||””||’;’
from dba_db_links A, sys.link$ B
where A.db_link = B.name
and B.ctime = A.created
and owner like ‘&Owner’
order by owner;
SELECT name, value FROM v$parameter WHERE (name LIKE ‘%link%’) OR (name IN (‘global_names’, ‘dblink_encrypt_login’));

MAIL FROM SERVER

uuencode raccheck_instance_052212_083058.html raccheck_instance_052212_083058.html| mailx -s ‘raccheck_instance’ krishna.kasarla@gmail.com

hostname[instance1]_oracle> cat space_report.sh
#!/bin/ksh
# set -x
################################################################################
## space_report.sh
##
## PURPOSE: Creates a report of Tablespace Size.
##
## USAGE: tablespace_size.sh
##
## OUTPUTS: Standard Output via command line execution.
##
## NOTIFICATION: Standard Output via command line execution.
##
##
################################################################################
set pagesize 100
tablespaceSize() {
sqlplus -s -m “HTML ON TABLE ‘BORDER=”1″‘” “/ as sysdba” @$DBA_HOME/admin/space_report.sql >> $space_log
}

# MAIN

space_log=$DBA_HOME/audit/space_report.log
title=”Database Size Report”
email=mukhtar.ganayee@ge.com

echo “Database Size Report” > $space_log
# Get the list of the current intances running
for sid_name in $(ps -ef | grep pmon | awk ‘{print $8}’ | cut -d_ -f3 | grep -v “grep” | grep -v “+ASM” | sort -u)
do
# Verify sid input
if [ -z “$sid_name” ]
then
echo “==========================================================” >> $space_log
echo “Error====>Instance is missing for instance \”$sid_name\”” >> $space_log
echo “==========================================================” >> $space_log
else
# Set the instance environment
if [ ! -f $HOME/bin/$sid_name ]
then
echo “===================================================================” >> $space_log
echo “Error====>No environment script found for instance \”$sid_name\”” >> $space_log
echo “===================================================================” >> $space_log
else
. $HOME/bin/$sid_name

# Get the Cron Job for the instance
system_pwd=`tellme system`

echo “

Instance: $sid_name

” >> $space_log
tablespaceSize
echo ” ” >> $space_log
fi
fi
echo ” ” >> $space_log
done

printf “To:%s\nSubject:%s\nContent-Type: text/html\n” \
“$email” “$title” | cat – $space_log | /usr/lib/sendmail -t
#uuencode $space_log | mailx -s “Regarding :Tablespace Report for All Databases on Server $hostname” -c “$email”
hostname[instance1]_oracle>

ADRCI COMMANDS

For any ora 600 or ora 7445 error I encourage all to use adrci more than uploading trace and alert logs individually.

hostname[instance]_oracle> adrci

ADRCI: Release 11.2.0.2.0 – Production on Fri Jul 20 00:00:13 2012

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

ADR base = “/instance/oracle/oracle_base”

adrci> show home

ADR Homes:
diag/rdbms/instance/instance
diag/clients/user_oracle/host_777677599_80

adrci> set home diag/rdbms/instance/instance

adrci> show incident

ADR Home = /instance/oracle/oracle_base/diag/rdbms/instance/instance:
*************************************************************************
INCIDENT_ID PROBLEM_KEY CREATE_TIME
——————– ———————————————————– —————————————-
61937 ORA 7445 [ksmdget()+337] 2012-07-19 23:00:24.905000 -04:00
60017 ORA 7445 [ksmdgup()+57] 2012-07-19 23:00:28.814000 -04:00
2 rows fetched

adrci> ips pack incident 61937 in /tmp

Generated package 1 in file /tmp/ORA7445ks_20120720000220_COM_1.zip, mode complete

-rw-r–r– 1 oracle oinstall 171184398 Jul 20 00:06 ORA7445ks_20120720000220_COM_1.zip

adrci> show problem

ADR Home = /instance/oracle/oracle_base/diag/rdbms/instance/instance:
*************************************************************************
PROBLEM_ID PROBLEM_KEY LAST_INCIDENT LASTINC_TIME
——————– ———————————————————– ——————– —————————————-
1 ORA 7445 [ksmdget()+337] 61937 2012-07-19 23:00:24.905000 -04:00
2 ORA 7445 [ksmdgup()+57] 60017 2012-07-19 23:00:28.814000 -04:00
2 rows fetched

adrci> show alert

Choose the alert log from the following homes to view:

1: diag/rdbms/kittu/kittu2
2: diag/tnslsnr/kasarla/listener_kittu
3: diag/tnslsnr/kasarla/lsnrkittu
4: diag/tnslsnr/kasarla/listener_scan1
5: diag/tnslsnr/kasarla/lstnkittu
6: diag/clients/user_oracle/host_3639815057_80
Q: to quit

Please select option: 1

RMAN COMMANDS

RMAN INCREMENTAL LEVEL 0 BACKUP SCRIPT

RUN
{
ALLOCATE CHANNEL CH1 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
ALLOCATE CHANNEL CH2 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
ALLOCATE CHANNEL CH3 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
ALLOCATE CHANNEL CH4 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL = 0 DATABASE TAG kittu4_HOTINCR_11102012;
BACKUP FORMAT ‘/backup1/control/%d_%M_%D_%Y_%t.ctl’
CURRENT CONTROLFILE TAG kittu4_control_11102012;
sql “alter system archive log current”;
backup AS COMPRESSED BACKUPSET archivelog all format ‘/backup1/incr/%d_ARCH_%M%D%Y_%p_%s’;
}

TO RESTORE THE MISSING ARCHIVES FROM TAPE

run
{
set archivelog destination to ‘/backup1/backup/oracle/cfs/backup’;
ALLOCATE CHANNEL CH1 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH2 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH3 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH4 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH5 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH6 DEVICE TYPE DISK;
restore archivelog sequence between 1049 and 1053;
}

TO REGISTRING THE BACKUP PICES LOCATION

RMAN> catalog start with ‘/ora11/u02/oracle/kittu1_bkp’;

TO DUPLICATE THE DATABASE EXCLUDING FEW TABLESPACE

run
{
allocate auxiliary channel ch1 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch2 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch3 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch4 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch5 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
set until SCN 12448690600646;
set newname for datafile 1001 to ‘backup/data1/users04.dbf’;
set newname for datafile 1013 to ‘backup/data1/undotbsp37.dbf’;
set newname for datafile 1012 to ‘backup/data1/undotbsp36.dbf’;
set newname for datafile 1011 to ‘backup/data1/undotbsp35.dbf’;
set newname for tempfile 21 to ‘backup/data1/tempu_11.dbf’;
set newname for tempfile 22 to ‘backup/data1/tempu_12.dbf’;
duplicate target database to temp
skip tablespace GETS_DW_UXD,GETS_DW_UXX,IDWD,IDWDL,IDWDX,IDWXL,IDWXM,IDWXX,JAROSDIMDAT,JAROSDIMIDX,JAROSFACTDAT,JAROSFACTIDX,JAROSMETADAT,JAROSMETAIDX
LOGFILE
group 1 (‘backup/redo_1/kittu/kittu_redo_1a.log’,’backup/redo_2/kittu/kittu_redo_1b.log’) size 2000m,
group 2 (‘backup/redo_1/kittu/kittu_redo_2a.log’,’backup/redo_2/kittu/kittu_redo_2b.log’) size 2000m;
}

similar script using set until time

run {
set until time “to_date(’23-07-2012 16:00:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel aux_disk1 device type disk;
allocate auxiliary channel aux_disk2 device type disk;
allocate auxiliary channel aux_disk3 device type disk;
allocate auxiliary channel aux_disk4 device type disk;
allocate auxiliary channel aux_disk5 device type disk;
allocate auxiliary channel aux_disk6 device type disk;
allocate auxiliary channel aux_disk7 device type disk;
allocate auxiliary channel aux_disk8 device type disk;
duplicate database to ‘testdb’
BACKUP LOCATION ‘/backup/oracle/kittu/oracle/kittu1/incr’
NOFILENAMECHECK
spfile
set db_unique_name=’testdb’
set DB_FILE_NAME_CONVERT=’+KITTU_VG/kittu/datafile’, ‘/backup/oracle/testdb/data’
set LOG_FILE_NAME_CONVERT=’+KITTU_VG/kittu/onlinelog’, ‘/backup/oracle/testdb/redo’
set SGA_TARGET=”8G”
set sga_max_size=”8G”
set CONTROL_FILES=’/backup/oracle/testdb/control/control01.ctl’,’/backup/oracle/testdb/control/control02.ctl’
set log_archive_max_processes=’5′
set log_archive_dest_1=’LOCATION=/backup/oracle/testdb/arch’
set diagnostic_dest=’/kittu/oracle/oracle_base’
set audit_file_dest=’/kittu/oracle/oracle_base/admin/testdb/adump’
set compatible=’11.2.0.2′
set job_queue_processes=’0′
set aq_tm_processes=’0′
set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=hostname.domain.com)(PORT=1530))’
set remote_listener=’1525′
set cluster_database=’FALSE’; }
}

To test the Tape is configured for restore

run
{
allocate channel ch1 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
}

CLONING TO ANOTHER NODE

run
{
allocate channel C1 device type disk;
allocate channel C2 device type disk;
allocate channel C3 device type disk;
allocate channel C4 device type disk;
allocate channel C5 device type disk;
allocate channel C6 device type disk;
set newname for datafile 1 to ‘/ora11/u01/oracle/kittu1/data/system01.dbf’;
set newname for datafile 2 to ‘/ora11/u01/oracle/kittu1/data/tools01.dbf’;
set newname for datafile 3 to ‘/ora11/u01/oracle/kittu1/data/def01.dbf’;
set newname for datafile 4 to ‘/ora11/u01/oracle/kittu1/data/tsecwpindx01.dbf’;
set newname for datafile 5 to ‘/ora11/u01/oracle/kittu1/data/tsfaadmdta01.dbf’;
set newname for datafile 6 to ‘/ora11/u01/oracle/kittu1/data/tsfaadmidx01.dbf’;
restore database;
switch datafile all;
recover database;
}

helpful querys

set pages0
set heading off
set echo off
set flush off
set pagesize 50000
set linesize 32767
set long 50000
select owner||’:’|| dbms_metadata.get_ddl(‘DB_LINK’,db_link,owner) from dba_db_links;
select distinct substr(file_name,0,instr(file_name,’/’,-1)) “Data MOunts” from dba_data_files;
select ‘alter database rename file ‘||””|| member||””|| ‘ to ‘|| ””||’/ora11/u01/oracle/kittu1/redo1/’||SUBSTR(member, INSTR(member, ‘/’, -1) + 1)||””||’;’ from v$logfile ;
select ‘set newname for datafile ‘||file#||’ to ‘||””||’/ora11/u01/oracle/kittu1/data/’||SUBSTR(name, INSTR(name, ‘/’, -1) + 1)||””||’;’ from v$datafile;
select ‘ALTER DATABASE TEMPFILE ‘||””||name||””||’ DROP;’ from v$tempfile;
select ‘alter user ‘||username||’ identified by values ‘||””||password||””|| ‘;’ from dba_users;
select ‘alter user ‘||name||’ identified by values ‘||password||’;’ from SYS.USER$;
select member from v$logfile;
nohup rman cmdfile=restor.ctl log=resotre_kittu1.log &

select a.sid,a.serial#,b.username,b.opname,LAST_UPDATE_TIME,round(b.SOFAR*100 / b.TOTALWORK,2) || ‘%’ as progress,
b.TIME_REMAINING,b.target from gV$SESSION_LONGOPS b,gV$SESSION a where a.sid=b.sid and TIME_REMAINING 0 order by 6;

Select OPERATION,STATUS,TO_CHAR(start_time,’DD-MON-YY HH24:MI’),TO_CHAR(end_time,’DD-MON-YY HH24:MI’),OUTPUT_DEVICE_TYPE from V$RMAN_STATUS;
Select OPERATION,STATUS,TO_CHAR(start_time,’DD-MON-YY HH24:MI’),TO_CHAR(end_time,’DD-MON-YY HH24:MI’),OUTPUT_DEVICE_TYPE from V$RMAN_STATUS where start_time>sysdate-1 ;
SELECT TO_CHAR(start_time,’DD-MON-YY HH24:MI’) “Start of backup”,Sofar, totalwork,elapsed_seconds/60 “ELAPSED TIME IN MINUTES”,ROUND(sofar/totalwork*100,2) “Percentage Completed so far” FROM v$session_longops;

select distinct(CHECKPOINT_CHANGE#) from v$datafile;

Frequently Asked Questions about Restoring Or Duplicating Between Different Versions And Platforms [ID 369644.1]
Compatibility Matrix for Export And Import Between Different Oracle Versions [Video] [ID 132904.1]


To check the backup on tape

/usr/openv/netbackup/bin/bp


To check the backup list on tape

/usr/openv/netbackup/bin/bplist -C kasarla01_b -l -s 02/05/2013 00:00:00 -e 02/05/2013 23:59:59 -R /backup/oracle/kittu/


to restore the backups to desk

/usr/openv/netbackup/bin/bprestore -B -L /usr/openv/netbackup/restorelog26th.txt -w -k “restore description” -f /user/openv/netbackup/filelist26th.txt


to sent the backups to tape

/usr/openv/netbackup/bin/bpbackup -w -s user_back_1year -L /backup/oracle/export/tape.log /backup/oracle/export


Archives restore from tape

bprestore -A -L /user_defined_and pre-created_log_file -w -k “user defined description as used at backup time” -f file_containg_list_of_files_or_directories_to_be_restored

MIGRATION OF 10G SINGLE INSTANCE TO 11GR2 RAC ON ASM [ DIFFERENT SERVER ]

*************************************************************************************
MIGRATION OF 10G SINGLE INSTANCE TO 11GR2 RAC ON ASM [ DIFFERENT SERVER ]
*************************************************************************************

[ i have already installed/configured cluster/database-software/scan/asmdisks ]
clone 10g ORACLE_HOME to the newservers
rman cold backup of source database [ in my case instance ] has to be moved to the RAC servers

startup nomount instance instance

hostname.domainname.com[oracle]_instance> rman target /

Recovery Manager: Release 10.2.0.4.0 – Production on Wed Jan 12 12:31:59 2011

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

connected to target database: IBSS (DBID=233784647, not mounted)

RMAN> restore controlfile from ‘/stg/backup/software/database_bkp/IBSS_01_09_2011_739998183.ctl’;



RMAN> ####controlfile will be restored to ASMDISK GROUP ‘+ORADATA’ b’coz i gave control_files=’+ORADATA’ in initinstance.ora#####

RMAN> exit;

hostname.domainname.com[oracle]_instance2> cat initinstance.ora

audit_trail = OS
control_files = (‘+ORADATA/IBSS/CONTROLFILE/current.318.740228395’)
db_block_size = 16384
db_create_online_log_dest_1=’+ORADATA’
db_file_multiblock_read_count = 32
db_files = 100
db_name = instance
disk_asynch_io = true
filesystemio_options = asynch
job_queue_processes = 10
nls_date_format = DD-MON-RR
nls_sort = binary
OPTIMIZER_MODE = choose
parallel_max_servers = 32
pga_aggregate_target = 200M
processes = 100
QUERY_REWRITE_ENABLED = TRUE
sessions = 200
session_max_open_files = 30
#shared_pool_size = 100M
sga_target = 800M
sort_area_size = 10485760
star_transformation_enabled = FALSE
undo_management = AUTO
undo_retention = 7200
undo_tablespace = UNDOTBS
workarea_size_policy = auto
compatible=10.2.0.2

instance >startup mount

ORACLE instance started.
Total System Global Area 314572800 bytes
Fixed Size 2083656 bytes
Variable Size 201327800 bytes
Database Buffers 100663296 bytes
Redo Buffers 10498048 bytes
Database mounted.

alter database rename file ‘/s030/so/redo01/oracle/instance/log/redo01g3.log’ to ‘+ORADATA/IBSS/ONLINELOG/redo01g3’;
alter database rename file ‘/s030/so/redo02/oracle/instance/log/redo02g3.log’ to ‘+ORADATA/IBSS/ONLINELOG/redo02g3’;
alter database rename file ‘/s030/so/redo01/oracle/instance/log/redo02g1.log’ to ‘+ORADATA/IBSS/ONLINELOG/redo02g1’;
alter database rename file ‘/s030/so/redo02/oracle/instance/log/redo02g2.log’ to ‘+ORADATA/IBSS/ONLINELOG/redo02g2’;
alter database rename file ‘/s030/so/redo01/oracle/instance/log/redo01g1.log’ to ‘+ORADATA/IBSS/ONLINELOG/redo01g1’;
alter database rename file ‘/s030/so/redo02/oracle/instance/log/redo01g2.log’ to ‘+ORADATA/IBSS/ONLINELOG/redo01g2’;

cd $GRID_HOME/bin

crsctl pin css -n hostname555 hostname

set pages 8000
set lines 300
SELECT ‘set newname for datafile ‘||file#||’ to ”’||replace(name,’+ORADATA/widw10g’,’+wdev8′) ||”’;’ from V$DATAFILE;
SELECT ‘set newname for datafile ‘||file#||’ to ”’||’+DATA’ ||”’;’ from V$DATAFILE;

hostname.domainname.com[oracle]_instance> rman target /

Recovery Manager: Release 10.2.0.4.0 – Production on Wed Jan 12 12:31:59 2011

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

connected to target database: IBSS (DBID=233784647, not open)

RUN
{
ALLOCATE CHANNEL CH1 TYPE DISK;
ALLOCATE CHANNEL CH2 TYPE DISK;
ALLOCATE CHANNEL CH3 TYPE DISK;
ALLOCATE CHANNEL CH4 TYPE DISK;
5> set newname for datafile 1 to ‘+ORADATA’;
6> set newname for datafile 2 to ‘+ORADATA’;
7> set newname for datafile 3 to ‘+ORADATA’;
8> set newname for datafile 4 to ‘+ORADATA’;
9> set newname for datafile 5 to ‘+ORADATA’;
10> set newname for datafile 6 to ‘+ORADATA’;
11> set newname for datafile 7 to ‘+ORADATA’;
12> restore database;
13> switch datafile all;
14> alter database open resetlogs;
15> }

rman TARGET / cmdfile=cmd.txt LOG grdp.log APPEND

Recovery Manager complete.
hostname.domainname.com[oracle]_instance> sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 – Production on Wed Jan 12 15:14:50 2011

Copyright (c) 1982, 2007, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

instance >select l.group# , l.bytes , l.status , l.archived , lf.member from v$logfile lf , v$log l where lf.group# = l.group#;

GROUP# BYTES STATUS ARC MEMBER
———- ———- —————- — —————————————-
1 104857600 CURRENT NO +ORADATA/instance/onlinelog/redo01g1
1 104857600 CURRENT NO +ORADATA/instance/onlinelog/redo01g2
2 104857600 INACTIVE NO +ORADATA/instance/onlinelog/redo02g1
2 104857600 INACTIVE NO +ORADATA/instance/onlinelog/redo02g2

instance >alter tablespace temp add tempfile ‘+ORADATA’ size 1024M;

Tablespace altered.

instance >select name from v$tempfile;

NAME
——————————————————————————————————————————————————————————————————–
+ORADATA/instance/tempfile/temp.337.740244311

instance >exit

hostname.domainname.com[oracle]_instance> cd /stg/backup/base/11.2/rdbms/admin

hostname.domainname.com[oracle]_instance> cp utlu112i.sql /stg/backup/base/10.2/rdbms/admin
hostname.domainname.com[oracle]_instance> cd /stg/backup/base/10.2/rdbms/admin

hostname.domainname.com[oracle]_instance> sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 – Production on Wed Jan 12 15:30:07 2011

Copyright (c) 1982, 2007, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

instance >@utlu112i.sql

Oracle Database 11.2 Pre-Upgrade Information Tool 01-12-2011 15:30:40
.
**********************************************************************
Database:
**********************************************************************
–> name: IBSS
–> version: 10.2.0.4.0
–> compatible: 10.2.0.2
–> blocksize: 16384
–> platform: Linux x86 64-bit
–> timezone file: V4
.
**********************************************************************
Tablespaces: [make adjustments in the current environment]
**********************************************************************
WARNING: –> SYSTEM tablespace is not large enough for the upgrade.
…. currently allocated size: 350 MB
…. minimum required size: 383 MB
…. increase current size by: 33 MB
…. tablespace is NOT AUTOEXTEND ENABLED.
–> UNDOTBS tablespace is adequate for the upgrade.
…. minimum required size: 290 MB
–> TEMP tablespace is adequate for the upgrade.
…. minimum required size: 61 MB
–> SYSAUX tablespace is adequate for the upgrade.
…. minimum required size: 417 MB
.
**********************************************************************
Flashback: OFF
**********************************************************************
**********************************************************************
Update Parameters: [Update Oracle Database 11.2 init.ora or spfile]
**********************************************************************
WARNING: –> “shared_pool_size” needs to be increased to at least 596 MB
.
**********************************************************************
Renamed Parameters: [Update Oracle Database 11.2 init.ora or spfile]
**********************************************************************
— No renamed parameters found. No changes are required.
.
**********************************************************************
Obsolete/Deprecated Parameters: [Update Oracle Database 11.2 init.ora or spfile]
**********************************************************************
— No obsolete parameters found. No changes are required
.
**********************************************************************
Components: [The following database components will be upgraded or installed]
**********************************************************************
–> Oracle Catalog Views [upgrade] VALID
–> Oracle Packages and Types [upgrade] VALID
.
**********************************************************************
Miscellaneous Warnings
**********************************************************************
WARNING: –> Database is using a timezone file older than version 11.
…. After the release migration, it is recommended that DBMS_DST package
…. be used to upgrade the 10.2.0.4.0 database timezone version
…. to the latest version which comes with the new release.
WARNING: –> Database contains schemas with stale optimizer statistics.
…. Refer to the Upgrade Guide for instructions to update
…. schema statistics prior to upgrading the database.
…. Component Schemas with stale statistics:
…. SYS
WARNING: –> Database contains INVALID objects prior to upgrade.
…. The list of invalid SYS/SYSTEM objects was written to
…. registry$sys_inv_objs.
…. The list of non-SYS/SYSTEM objects was written to
…. registry$nonsys_inv_objs.
…. Use utluiobj.sql after the upgrade to identify any new invalid
…. objects due to the upgrade.
…. USER EXCELADM01 has 2 INVALID objects.
…. USER PUBLIC has 2 INVALID objects.
…. USER SYSTEM has 5 INVALID objects.
…. USER SYS has 2 INVALID objects.
WARNING:–> recycle bin in use.
…. Your recycle bin turned on.
…. It is REQUIRED
…. that the recycle bin is empty prior to upgrading
…. your database.
…. The command: PURGE DBA_RECYCLEBIN
…. must be executed immediately prior to executing your upgrade.
.

PL/SQL procedure successfully completed.

instance >PURGE DBA_RECYCLEBIN;

DBA Recyclebin purged.

instance >shut immediate;

Database closed.
Database dismounted.
ORACLE instance shut down.

hostname.domainname.com[oracle]_instance> export ORACLE_HOME=/stg/backup/base/11.2
[oracle@hostname dbs]$ cp initinstance.ora /stg/backup/base/11.2/dbs/initinstance.ora
[oracle@hostname dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 12 15:36:21 2011

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

Connected to an idle instance.

SQL> startup upgrade

ORACLE instance started.

Total System Global Area 835104768 bytes
Fixed Size 2217952 bytes
Variable Size 230688800 bytes
Database Buffers 595591168 bytes
Redo Buffers 6606848 bytes
Database mounted.
Database opened.

SQL> @?/rdbms/admin/catupgrd.sql

SQL> Rem *********************************************************************
SQL> Rem END catupgrd.sql
SQL> Rem *********************************************************************

[oracle@hostname dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 12 16:20:00 2011

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

Connected to an idle instance.

SQL> startup

ORACLE instance started.

Total System Global Area 835104768 bytes
Fixed Size 2217952 bytes
Variable Size 230688800 bytes
Database Buffers 595591168 bytes
Redo Buffers 6606848 bytes
Database mounted.
Database opened.

SQL> @?/rdbms/admin/utlrp

TIMESTAMP
——————————————————————————–
COMP_TIMESTAMP UTLRP_BGN 2011-01-12 16:21:49

DOC> The following PL/SQL block invokes UTL_RECOMP to recompile invalid
DOC> objects in the database. Recompilation time is proportional to the
DOC> number of invalid objects in the database, so this command may take
DOC> a long time to execute on a database with a large number of invalid
DOC> objects.
DOC>
DOC> Use the following queries to track recompilation progress:
DOC>
DOC> 1. Query returning the number of invalid objects remaining. This
DOC> number should decrease with time.
DOC> SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
DOC>
DOC> 2. Query returning the number of objects compiled so far. This number
DOC> should increase with time.
DOC> SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;
DOC>
DOC> This script automatically chooses serial or parallel recompilation
DOC> based on the number of CPUs available (parameter cpu_count) multiplied
DOC> by the number of threads per CPU (parameter parallel_threads_per_cpu).
DOC> On RAC, this number is added across all RAC nodes.
DOC>
DOC> UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel
DOC> recompilation. Jobs are created without instance affinity so that they
DOC> can migrate across RAC nodes. Use the following queries to verify
DOC> whether UTL_RECOMP jobs are being created and run correctly:
DOC>
DOC> 1. Query showing jobs created by UTL_RECOMP
DOC> SELECT job_name FROM dba_scheduler_jobs
DOC> WHERE job_name like ‘UTL_RECOMP_SLAVE_%’;
DOC>
DOC> 2. Query showing UTL_RECOMP jobs that are running
DOC> SELECT job_name FROM dba_scheduler_running_jobs
DOC> WHERE job_name like ‘UTL_RECOMP_SLAVE_%’;
DOC>#

PL/SQL procedure successfully completed.

TIMESTAMP
——————————————————————————–
COMP_TIMESTAMP UTLRP_END 2011-01-12 16:22:05

DOC> The following query reports the number of objects that have compiled
DOC> with errors (objects that compile with errors have status set to 3 in
DOC> obj$). If the number is higher than expected, please examine the error
DOC> messages reported with each object (using SHOW ERRORS) to see if they
DOC> point to system misconfiguration or resource constraints that must be
DOC> fixed before attempting to recompile these objects.
DOC>#

OBJECTS WITH ERRORS
——————-
0

DOC> The following query reports the number of errors caught during
DOC> recompilation. If this number is non-zero, please query the error
DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
DOC> are due to misconfiguration or resource constraints that must be
DOC> fixed before objects can compile successfully.
DOC>#

ERRORS DURING RECOMPILATION
—————————
0

PL/SQL procedure successfully completed.

SQL>shut immediate;

*********************************************************************************

*********************************************************************************

hostname.domainname.com[oracle]_instance1> cd $ORACLE_HOME/dbs

hostname.domainname.com[oracle]_instance1> cp initinstance.ora initinstance1.ora

hostname.domainname.com[oracle]_instance1> vi initinstance1.ora

#####add cluster specific parameters as below and save######

*.cluster_database = TRUE
*.cluster_database_instances = 2
*.undo_management=AUTO
instance1.instance_name=instance1
instance1.instance_number=1
instance1.thread=1
instance1.undo_tablespace=UNDOTBS
instance2.instance_name=instance2
instance2.instance_number=2
instance2.thread=2
instance2.undo_tablespace=UNDOTBS2

hostname.domainname.com[oracle]_instance1> sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 12 16:34:14 2011

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> CREATE UNDO TABLESPACE UNDOTBS2 DATAFILE ‘+DATA’ size 1024M;

Tablespace created.

SQL> alter database add logfile thread 2 group 3 (‘+DATA’,’+DATA’) SIZE 250M;

Database altered.

SQL> alter database add logfile thread 2 group 4 (‘+DATA’,’+DATA’) SIZE 250M;

Database altered.

SQL> alter database enable public thread 2;

Database altered.

SQL> select GROUP#,THREAD#,MEMBERS,STATUS from gv$log;

GROUP# THREAD# MEMBERS STATUS
———- ———- ———- —————-
1 1 2 CURRENT
2 1 2 INACTIVE
3 2 2 CURRENT
4 2 2 UNUSED

@?/rdbms/admin/catclust.sql

PL/SQL procedure successfully completed.

SQL> create spfile=’+DATA’ from pfile;

File created.

SQL>exit;

hostname.domainname.com[oracle]_instance1> cd $ORACLE_HOME/dbs
hostname.domainname.com[oracle]_instance1> vi initinstance1.ora

SPFILE=’+ORADATA/IBSS/PARAMETERFILE/spfile.332.740248995′

hostname.domainname.com[oracle]_instance1> sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 12 16:47:21 2011

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> shut immediate;

Database closed.
Database dismounted.
ORACLE instance shut down.

SQL> startup

ORACLE instance started.

Total System Global Area 835104768 bytes
Fixed Size 2217952 bytes
Variable Size 293603360 bytes
Database Buffers 532676608 bytes
Redo Buffers 6606848 bytes
Database mounted.
Database opened.

SQL> select instance_name from v$instance;

INSTANCE_NAME
—————-
instance1

login to hostname555 :
#######################

hostname.domainname.com[oracle]_instance2> cd $ORACLE_HOME/dbs
hostname.domainname.com[oracle]_instance2> vi initinstance2.ora

SPFILE=’+ORADATA/IBSS/PARAMETERFILE/spfile.332.740248995′

hostname.domainname.com[oracle]_instance2> sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 12 16:50:49 2011

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

Connected to an idle instance.

SQL> startup

ORACLE instance started.

Total System Global Area 835104768 bytes
Fixed Size 2217952 bytes
Variable Size 293603360 bytes
Database Buffers 532676608 bytes
Redo Buffers 6606848 bytes
Database mounted.
Database opened.

SQL> select instance_name from v$instance;

INSTANCE_NAME
—————-
instance2

SQL> select * from v$active_instances;

INST_NUMBER
———–
INST_NAME
——————————————————————————–
1
hostname.domainname.com:instance1

2
hostname.domainname.com:instance2

srvctl config scan

netca

SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=1.2.3.4)(PORT=1578))))’ scope=both sid=’cpss1′;

System altered.

SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=4.3.2.1)(PORT=1578))))’ scope=both sid=’cpss2′;

System altered.

srvctl config scan

alter system set remote_listener=’s497_98_scan.domainname.com:1621′ scope=both sid=’*’;

##alter system set remote_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=s497_98_scan.domainname.com)(PORT=1621))))’ scope=both sid=’*’;

show parameter listen

SQL> srvctl config scan_listener

SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1621
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1621
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1621

SQL> srvctl status scan_listener

SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node hostname498
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node hostname497
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node hostname497

srvctl config scan

SCAN name: s497_98_scan.domainname.com, Network: 1/3.239.140.0/255.255.252.0/bond0
SCAN VIP name: scan1, IP: /s497_98_scan.domainname.com/3.239.140.110
SCAN VIP name: scan2, IP: /s497_98_scan.domainname.com/3.239.140.109
SCAN VIP name: scan3, IP: /s497_98_scan.domainname.com/3.239.140.108

SQL> alter system set remote_listener=”s497_98_scan.domainname.com:1621″ scope=both sid=’*’; #### do this individually on both instances ####

INSTALL ACL

prod =
(DESCRIPTION =
(ADDRESS_LIST =
(FAILOVER = on)
(LOAD_BALANCE = on)
(ADDRESS = (PROTOCOL = TCP)(HOST = p604_5_6_scan.domainname.com)(PORT = 1621))
)
(CONNECT_DATA =
(SERVICE_NAME = prod)
(FAILOVER_MODE =
(METHOD = BASIC)
(TYPE = SELECT)
(RETRIES = 18)
(DELAY = 1)
)
)
)

*********************************************************************************

hostname.domainname.com[oracle]_instance2> cd $ORACLE_HOME/network/admin
hostname.domainname.com[oracle]_instance2> pwd
/stg/backup/base/11.2/network/admin

hostname.domainname.com[oracle]_instance2> cat tnsnames.ora

vrt1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 56_scan.domainname.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = vrt1)
)
)

LISTENERS_SCAN =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 3.49.16.29)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 3.39.16.28)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 3.49.16.30)(PORT = 1521))
)

instance =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = s555_56_scan.domainname.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = instance)
)
)

hostname.domainname.com[oracle]_instance1> echo $ORACLE_HOME
/stg/backup/base/11.2

hostname.domainname.com[oracle]_instance1> srvctl add database -d instance -o /stg/backup/base/11.2
hostname.domainname.com[oracle]_instance1> srvctl add instance -d instance -i instance1 -n hostname.domainname.com
hostname.domainname.com[oracle]_instance1> srvctl add instance -d instance -i instance2 -n hostname.domainname.com
hostname.domainname.com[oracle]_instance1> srvctl config database -d instance -a

Database unique name: instance
Database name:
Oracle home: /stg/backup/base/11.2
Oracle user: oracle
Spfile:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: instance
Database instances: instance2,instance1
Disk Groups:
Services:
Database is administrator managed

shutdown all instances manually and start usinig srvctl

hostname.domainname.com[oracle]_instance2> lsnrctl service

LSNRCTL for Linux: Version 11.2.0.1.0 – Production on 13-JAN-2011 10:35:35

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
Services Summary…
Service “+ASM” has 1 instance(s).
Instance “+ASM2”, status READY, has 1 handler(s) for this service…
Handler(s):
“DEDICATED” established:0 refused:0 state:ready
LOCAL SERVER
Service “instance” has 1 instance(s).
Instance “instance2”, status READY, has 1 handler(s) for this service…
Handler(s):
“DEDICATED” established:0 refused:0 state:ready
LOCAL SERVER
Service “vrt1” has 1 instance(s).
Instance “vrt12”, status READY, has 1 handler(s) for this service…
Handler(s):
“DEDICATED” established:0 refused:0 state:ready
LOCAL SERVER
Service “vrt1XDB” has 1 instance(s).
Instance “vrt12”, status READY, has 1 handler(s) for this service…
Handler(s):
“D000” established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER
(ADDRESS=(PROTOCOL=tcp)(HOST=hostname555)(PORT=46687))
The command completed successfully

hostname.domainname.com[oracle]_instance2>

now to test remote-connectivity !
********************************

hostname021[oracle]_devld> sqlplus system/bbs1w_90ysr@instance

SQL*Plus: Release 10.2.0.4.0 – Production on Thu Jan 13 11:22:20 2011

Copyright (c) 1982, 2007, Oracle. All Rights Reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> select name from v$database;

NAME
———
IBSS

SQL> select * from v$active_instances;

INST_NUMBER
———–
INST_NAME
——————————————————————————–
1
hostname.domainname.com:instance1

2
hostname.domainname.com:instance2

SQL>

RAC INSTALLATION 11G


1) Creating oracle OS User Account:

useradd -u 900 -g oinstall -G dba oracle

2) create software directories


3) Add the following lines to the /etc/security/limits.conf file:

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

4) enable ssh on both nodes

/usr/bin/ssh-keygen -t rsa
/usr/bin/ssh-keygen -t dsa

5) create asm disks

[oracle@node2-pub ~]$ uname -a
Linux node2-pub.hingu.net 2.6.9-55.0.2.EL #1 Tue Jun 26 14:08:18 EDT 2007 i686 i686 i386 GNU/Linux

oracleasm-2.6.9-55.0.2.EL-2.0.3-1.i686.rpm
oracleasmlib-2.0.2-1.i386.rpm
oracleasm-support-2.0.3-1.i386.rpm
[root@node1-pub rpms]# rpm -ivh oracleasm-2.6.9-55.0.2.EL-2.0.3-1.i686.rpm \
> oracleasmlib-2.0.2-1.i386.rpm \
> oracleasm-support-2.0.3-1.i386.rpm


6) Configure ASM on both the nodes

[root@node1-pub ~]# /etc/init.d/oracleasm configure


7) Create ASM Disk Device(s) that will be used in ASM diskgroup (stamping devises as an ASM disks): from one node only

[root@node1-pub ~]# /etc/init.d/oracleasm createdisk DSK1 /dev/sdb1
Marking disk “/dev/sdb1” as an ASM disk: [ OK ]
[root@node1-pub ~]# /etc/init.d/oracleasm createdisk DSK2 /dev/sdc1
Marking disk “/dev/sdc1” as an ASM disk: [ OK ]
[root@node1-pub ~]# /etc/init.d/oracleasm createdisk DSK3 /dev/sdd1
Marking disk “/dev/sdd1” as an ASM disk: [ OK ]
[root@node1-pub ~]# /etc/init.d/oracleasm createdisk DSK4 /dev/sde1
Marking disk “/dev/sde1” as an ASM disk: [ OK ]
[root@node1-pub ~]# /etc/init.d/oracleasm scandisks
Scanning system for ASM disks: [ OK ]
[root@node1-pub ~]# /etc/init.d/oracleasm listdisks
DSK1
DSK2
DSK3
DSK4
[root@node1-pub ~]#
[root@node1-pub ~]# /etc/init.d/oracleasm status
Checking if ASM is loaded: [ OK ]
Checking if /dev/oracleasm is mounted: [ OK ]
[root@node1-pub ~]#

On the other node, you only need to execute the below command to show these disks up there.

[root@node2-pub ~]# /etc/init.d/oracleasm scandisks
[root@node2-pub ~]# /etc/init.d/oracleasm listdisks
DSK1
DSK2
DSK3
DSK4

8) Grid CRS


9) Install ASM

[oracle@node2-pub pfile]$ srvctl add asm -n node1-pub -i +ASM1 -o /u01/app/asm/product/11gr1 -p /u02/ocfs2/asm_spfile/spfile+ASM.ora
[oracle@node2-pub pfile]$ srvctl add asm -n node2-pub -i +ASM2 -o /u01/app/asm/product/11gr1 -p /u02/ocfs2/asm_spfile/spfile+ASM.ora

[oracle@node2-pub pfile]$ srvctl enable asm -n node1-pub -i +ASM1
[oracle@node2-pub pfile]$ srvctl enable asm -n node2-pub -i +ASM2

Run the dbca again to add/create disk groups to the ASM instance.

[oracle@node1-pub ~]$ /u01/app/asm/product/11gr1/bin/dbca

[oracle@node1-pub ~]$ export ORACLE_SID=+ASM1
[oracle@node1-pub ~]$ asmcmd
ASMCMD> ls
DATA/
FLASH/
ASMCMD> lsdg

10) Install DB_HOME

11) Create RAC db

PRINTER INSTALLATION

as root, perform steps 1-6 for all concurrent nodes

system-config-printer

1. Add printer to host file (/etc/hosts)

# Printers for CCL
3.223.201.223 CORP_PBRE013
3.223.201.224 CORP_PBRE014
for testing:
ping CORP_PBRE013
ping CORP_PBRE014
Other way to test:
telnet CORP_PBRE013 9100
telnet CORP_PBRE014 9100

2. Add a new printer to server

/usr/sbin/lpadmin -p CORP_PBRE013 -E -v socket://3.223.201.223
/usr/sbin/lpadmin -p CORP_PBRE014 -E -v socket://3.223.201.224

more /etc/cups/printers.conf

lpq CORP_PBRE013
lpq CORP_PBRE014

3. Bounce printer service

service cups restart

4. Check the printer queue

lpq -P CORP_PBRE013
lpq -P CORP_PBRE014

5. Enable and accept on

/usr/bin/cupsenable CORP_PBRE013
/usr/bin/cupsenable CORP_PBRE014

/usr/sbin/cupsaccept CORP_PBRE013
/usr/sbin/cupsaccept CORP_PBRE014

6. Send a test document to print

echo “test printing” | lp -d CORP_PBRE013
echo “test printing” | lp -d CORP_PBRE014


7. Start setup printer in EBS

System Administrator -> Install: Printer -> Register


8. Add a new printer for the applications

Click on Add icon
Printer: CORP_PBRE013
Type : –PASTA Universal Printer Type
Description : Xerox WorkCentre 4150 PS located at COE – Department 2.30 Printer Corner
Click on Save icon

Click on Add icon
Printer: CORP_PBRE014
Type : –PASTA Universal Printer Type
Description : Xerox WorkCentre 4150 PS located at COE – Department 2.21 Near Patch Room
Click on Save icon


9. Send the “Active Users” as test print

########################################

http://linksysdefaultpassword.com/category/xerox-routers/ para default password de printers

Note:297522.1 – How to investigate printing issues and work towards its resolution

########################################

lpadmin -p Finance_APrintRm_WCP35 -s 3.85.145.132

lpinfo -v shows

http://linux.web.psi.ch/dist/scientific/42/update/20060419/

printconf_conf

cd /etc/cups/interfaces/
more cups/printers.conf

R12.2 Concept







Architecture



1) The Client (Desktop) Tier

2) The Application Tier

3) The Database Tier

The connection between the application tier and the client tier can operate successfully over a Wide Area Network (WAN).



1) The Client (Desktop) Tier

You log in via the Oracle E-Business Suite Home Page on a desktop client web browser.The Home Page provides a single point of access to

a)HTML-based applications,

b)Forms-based applications,

c)Business Intelligence applications.



Forms Client Applet:



is a general-purpose presentation applet that supports all Oracle E-Business Suite Forms-based products

The Forms client applet is packaged as a collection of Java Archive (JAR) files.

The JAR files contain all Java classes required to run the presentation layer

Desktop Java Client:

The Forms client applet must run within a Java Virtual Machine (JVM) on the desktop client.

The Sun JRE Plug-in component allows use of the Oracle JVM on web clients,instead of the browser's own JVM

If the JRE Plug-in has not been installed, the browser prompts the user to download the required installation executable.

The Forms client applet and commonly used JAR files are downloaded from the Web server at the beginning of the client's first session.

All downloaded JAR files are cached locally on the client, ready for future sessions.

Release 12.2, the cache directory path C:\Documents and Settings\jalee\ApplicationData\Sun\Java\Deployment\cache





2) The Application Tier

The application tier has a dual role:

*hosting the various servers and service groups that process the business logic

*managing communication between the desktop tier and the database tier.



Several service groups or servers comprise are

a)Web Services (HTTP services)

b)Forms services

c)Concurrent Processing server

Web and Forms services are provided by Oracle Application Server and Oracle Fusion Middleware.





a)Web Services (HTTP services)

Includes the following majorcomponents:

*Web Listener (Oracle HTTP Server powered by Apache)

*Java Servlet Engine (Oracle WebLogic Server, WLS)



The Web listener component of the Oracle HTTP server accepts incoming HTTP requests (for particular URLs) from client browsers, and routes the requests to WLS.



The Oracle HTML-based applications (originally known as Self-Service applications)

*Operate via a direct connection to the Web server

*Use HTML documents, JavaScript, Java Server Pages, JavaBeans, and Servlets

*Dynamically generate HTML pages by executing Java code

*Use a metadata dictionary for flexible layout

*it Do not use Oracle Forms for the interface





An HTML-based Applications module uses the following access path:



1. The user clicks the hyperlink of a function from a browser.

2. The browser makes a URL request to the Web listener.

3. The Web listener contacts the Servlet engine (Oracle WebLogic Server), where it runs a JSP.

4. The JSP obtains the content from the E-Business Suite tables and uses information from the metadata dictionary to construct the HTML page.

5. The resulting HTML page is passed back to the browser, via the Web server.



The Oracle HTML-based applications can be either inquiry or transactional

*Inquiry modules only read the Oracle E-Business Suite database.

*transactional modules both read and update the database.



Oracle Application Framework Processing Details

1. Oracle WebLogic Server validates user access to the page.

2. The page definition (metadata UI definition) is loaded from the metadata repository on the database tier into the application tier.

3. The BC4J objects that contain the application logic and access the database are instantiated.

4. The Java Controller programmatically manipulates the page definition as necessary, based on dynamic UI rules.

5. UIX (HTML UI Generator) interprets the page definition, creates the corresponding HTML in accordance with UI standards, and sends the page to the browser.



Oracle Application Framework components are

*Business Components for Java (BC4J), included in Oracle JDeveloper, is used to create Java business

components for representing business logic.

*Oracle WebLogic Server supplies the Oracle Application Framework with underlying security and applications Java services





b)Forms Services

By default, Forms services in 12.2 are provided by the Forms listener servlet



Benefits of using the Forms listener servlet include:

• Ability to re-establish dropped network connections

• Fewer machines and ports need to be exposed at the firewall

• Easier firewall/proxy server configuration

• More robust and secure deployment over the Internet



Forms Listener Servlet Architecture

• The Forms listener servlet is a Java servlet that delivers the ability to run Oracle Forms over HTTP or HTTPS connections

• The Forms listener servlet communicates with the Oracle database server using the Oracle Net networking infrastructure.

• The Forms services communicates with the desktop client using the TCP/IP network protocol

• The Forms listener servlet caches data and provides it to the client as needed

• The Forms listener servlet manages the creation of a Forms,runtime process,network communications between the client and Forms runtime process

• The client sends HTTP requests and receives HTTP responses from the Web services, which acts as the network endpoint for the client.



Forms Socket Mode Architecture

• Once a connection has been made, many operations can be performed with or without interaction with the Forms server

• When a user entering data into a field, data is passed to a Forms server on the application tier The user interface logic runs in the Forms server, and determines user interface effect based on the user's action

• When a few field values change there is no need to update the entire screen.only the changed fields are updated with the new values.







c)Concurrent Processing Server

• Oracle E-Business Suite data can be conducted via HTML-based applications or the more traditional Forms-based applications

• There are also reporting programs and data updating programs that need to run either periodically, or on an ad hoc basis

• These programs run in the background while users continue to work on other tasks

• These programs allows non–interactive and potentially long-running functions to be executed efficiently

• It uses operating system facilities to enable background scheduling of jobs

• Concurrent Processing Server implemented via the Batch Processing Services

• Concurrent Requests is nothing but a Processes that run on the Concurrent Processing server

• When you submit a request, either through HTML-based or Forms-based applications, a row is inserted into a database table specifying the program to be run . The concurrent manager then reads the applicable requests in the table, and starts the associated concurrent program



Concurrent Manager



• Is an executable that is registered as a program library within Oracle E-Business Suite

• Runs in its own operating system process which can start one concurrent program at a time

• These programs may be written using a variety of Oracle tools include SQL programs, SQL Loader programs, Oracle Reports programs, spawned C programs, and host language programs such as UNIX shell scripts or Windows command files.

• It Can optionally run an immediate program that runs as part of the concurrent manager's own operating system process

• It Can be allowed to run any concurrent program, or be specialized to run certain programs

• It Operates during the days and times defined by a work shift

• A concurrent program library contains concurrent programs that can be called by a concurrent manager

example is the (FNDLIBR), which contains immediate concurrent programs, and is assigned to the standard concurrent manager.

• each concurrent manager can only run immediate concurrent programs from its own concurrent program library

• The Concurrent Processing server communicates with the database server via Oracle Net.



• The log or output file associated with a concurrent request is passed back to the Report Review Agent, also known as the Web Review Agent.

• The Report Review Agent passes a file containing the entire report to the Forms services.

• The Forms services pass the report back to the user's browser one page at a time.



Internal Concurrent Manager (ICM)



• controls all other concurrent managers.

• It administers the startup and shutdown of managers as defined by their work shift

• monitors for process failure and cleans up if a failure occurs.

• The ICM does not process concurrent requests itself (except for queue control requests, such as ACTIVATE, DEACTIVATE, or ABORT).

• it must be running before any other manager can be activated. Once the ICM has been activated, it starts a Service Manager (FNDSM) on each node that is enabled for concurrent processing.it Acting as an agent of the ICM

• Service Manager starts the concurrent managers on its node, excluding any managers that have been deactivated,

• The Applications Listener must be configured to source the OracleE-Business Suite environment file before FNDSM is spawned

• The Service Manager is a component of the Generic Service Management (GSM)architecture rather than Concurrent Processing,although GSM and Concurrent Processing are closely integrated.

• Service Manager is the parent process for all concurrent manager

• When the ICM is initiated on UNIX, the $FND_TOP/bin/startmgr program is invoked. This calls $FND_TOP/bin/batchmgr

• Starts the ICM process using the command FNDLIBR, with startup parameters FND, CPMGR, and FNDCPMBR.

• Creates log files (std.mgr and wnnn.mgr) in $APPLCSF/$APPLLOG.

• two commands can be entered to control the Internal Concurrent Manager: startmgr, which starts the ICM; and concsub, which is used to stop or abort the ICM,

• the basic ICM definition should not be changed .if required modify the sleep time (number of seconds waits for checking for new concurrent requests), PMON (process monitor) cycle time (number of sleep cycles the ICM waits between checking for failed workers) and queue size (duration between checks for number of active workers, measured in PMON cycles) as well as some Parallel Concurrent Processing options



Conflict Resolution Manager (CRM)



• it basic functions to check concurrent program definitions for incompatibility rules.

• When programs are defined with incompatibilities with other programs, both programs will show up in the Conflict Resolution Manager if they are both trying to run at the same time. Programs that are submitted but have no place to run because of incorrect setup choices for the concurrent managers will also show up under the Conflict Resolution Manager.

• When a concurrent program is incompatible with another program, the two programs cannot access or update the same data simultaneously.

• When you define a concurrent program, you can list those programs you want it to be incompatible with your program

• You can also make a program incompatible with all other concurrent programs by defining the program to be run-alone.

• There are two types of program incompatibilities "Global" incompatibilities, and "Domain-specific" incompatibilities.

• When you list a program as incompatible with your request set, the program will not run simultaneously within the same conflict domain as the request set or any of the reports within the set.

• the basic CRM definition should not be changed, but you can modify the sleep time for each work shift, as well as some Parallel Concurrent Processing options



Standard Manager



• It will accept and run any concurrent requests, as it has no specialization rules that would restrict its activities.

• Jobs should only be excluded from the Standard Manager after ensuring they can be run by an alternative manager, such as a product-specific manager or user-defined manager



• The basic SM definition shuld not altered without careful planning,otherwise some programs might not be able to run at all



Transaction Managers

• While narmal concurrent manager runs the conc program in asynchronous mode (it may not run the requst on immediate basic) but the transaction manager runs conc request in syschronous mode that means when a client request comes it executes immediately

• An example is approval of an order, where execution of the request must take place quickly.

• transaction managers support synchronous processing of particular requests from client machines

• A request from a client program to run a server-side program synchronously causes a transaction manager to run it immediately, and then to return a status to the client program

• runtime, concurrent processing starts a number of these managers. Rather than polling the concurrent requests table to determine what to do, a transaction manager waits to be signalled by a client program.

• The execution of the requested transaction program takes place on the server, transparent to the client and with minimal time delay.

• Communication with a transaction manager is automatic

• The transaction manager mechanism does not establish an ongoing connection between the client and the transaction manager processes.

• Each transaction manager can process only the programs contained in its program library

• Transaction managers can only process requests submitted from responsibilities associated with the same data group.

• If you create custom data groups, you should define new transaction managers



Parallel Concurrent Processing (PCP)

• concurrent processing activities to be distributed across multiple nodes in an Oracle Real Application Clusters

• hardware resources can be fully utilized, maximizing throughput and providing resilience to node failure

• Run concurrent processes on multiple nodes to improve concurrent processing throughput

• Administrate concurrent managers running on multiple nodes from any node in the cluster

• One or more concurrent managers can be specified to run on one or more nodes

• Parallel Concurrent Processing is enabled by default

• PCP is always available for use in environments where one or more concurrent processing nodes exist.

• PCP does not require an Oracle RAC environment

• you do not have to use PCP in an Oracle RAC environment, although it typically makes sense to do so.











Next topic will update soon....











































































































































































































































































































































step-by-step R12.2 PATCHING



[applmgr@kasarla01 13398481]$ adop.sh phase=prepare
[START_TASK] [Thu Jul 5 01:45:38 2012] Executing adzdoptl.pl
[START_TASK] [Thu Jul 5 01:45:38 2012] Checking for the required ENV setup
[STOP_TASK] [Thu Jul 5 01:45:38 2012] Checking for the required ENV setup
[START_TASK] [Thu Jul 5 01:45:38 2012] Performing verification of parameters
[STOP_TASK] [Thu Jul 5 01:45:38 2012] Performing verification of parameters

Enter the APPS user name [press enter for default]:Enter
Enter the APPS password [press enter for default]:Apps password
Enter the SYSTEM user's password [press enter for default]:system password
Enter the WLS Admin password [press enter for default]:WLS password
Enter the run context file name [/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml]:Enter

Do you want to create/update patch appltop [create/update]? [Default:update] :Enter

Enter the patch context file name [/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml]:Enter
[START_TASK] [Thu Jul 5 01:46:06 2012] Checking for any pending sessions
[STOP_TASK] [Thu Jul 5 01:46:11 2012] Checking for any pending sessions
[START_TASK] [Thu Jul 5 01:46:12 2012] Staging the current session
[STOP_TASK] [Thu Jul 5 01:46:17 2012] Staging the current session
Logfile location :
***** Start of adzdoptl.pl run *****
Current Session Id is : .

[START_TASK] [Thu Jul 5 01:46:24 2012] Invoking prepare phase

Enter the patching stage location : /orasoft/oraApps/OEL5_64/upgrade_12.2/TEAMTESTING/13398481
[START_TASK] [Thu Jul 5 01:47:02 2012] Validating the configuration
[START_TASK] [Thu Jul 5 01:47:03 2012] Validating Configuration
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SANITY_Thu_Jul_5_01_47_03_2012/TXK_SANITY_filesystemcheck_Thu_Jul_5_01_47_05_2012/txkADOPPreparePhaseSanityCheck_Thu_Jul_5_01_47_05_2012.log
Program : started @ Thu Jul 5 01:47:05 2012

*** Log File = /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SANITY_Thu_Jul_5_01_47_03_2012/TXK_SANITY_filesystemcheck_Thu_Jul_5_01_47_05_2012/txkADOPPreparePhaseSanityCheck_Thu_Jul_5_01_47_05_2012.log

Script Name : txkADOPPreparePhaseSanityCheck.pl

Started : Thu Jul 5 01:47:05 EDT 2012




-----------
Values used
-----------
Mode : update
Action : filesystemcheck
Context File : /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
PATCH Context File : /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
OUT Directory : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SANITY_Thu_Jul_5_01_47_03_2012


===================================

Updating existing patch appl top...

===================================



==============================

Inside updatePatchApplTop()...

==============================





==========================

Validating context file...

==========================





================================

Validating PATCH context file...

================================





======================================

Validating APPS schema credentials...

======================================





=====================================

Validating SYSTEM user credentials...

=====================================





========================================

Validating WLS Admin user credentials...

========================================



Executing SYSTEM command: perl /apps/backup/applmgr/R12_2/at2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml -servername=AdminServer -logfile=/apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SANITY_Thu_Jul_5_01_47_03_2012/TXK_SANITY_filesystemcheck_Thu_Jul_5_01_47_05_2012/EBSProvisioner.log -promptmsg=hide
EXIT STATUS: 0
Valid WLS Admin user credentials.



==================

Validating mode...

==================



Mode = update



====================

Validating action...

====================



Action = filesystemcheck



===========================

Inside checkPrivileges()...

===========================



Checking whether below directories have READ/WRITE access:

/apps/backup/applmgr/R12_2/at2

/apps/backup/applmgr/R12_2/at1



Privileges check PASSED.






============================

Inside checkFileEdition()...

============================



Value of FILE EDITION from RUN file system : run

Value of FILE EDITION from PATCH file system: patch



File edition check PASSED.






==========================

Inside checkDiskSpace()...

==========================





========================

Inside runDFCommand()...

========================



LOG LOCATION: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SANITY_Thu_Jul_5_01_47_03_2012/TXK_SANITY_filesystemcheck_Thu_Jul_5_01_47_05_2012/df.out

Execute SYSTEM command : df /apps/backup/applmgr/R12_2/at1
"df" command output: 218103808 190584192 27519616 88% /apps/backup



MINIMIUM SPACE REQUIRED (in GB): 25
FREE SPACE AVAILABLE (in GB): 26.2447509765625
Space check PASSED.





Program : completed @ Thu Jul 5 01:47:25 2012

[STOP_TASK] [Thu Jul 5 01:47:25 2012] Validating Configuration
[STOP_TASK] [Thu Jul 5 01:47:26 2012] Validating the configuration
[START_TASK] [Thu Jul 5 01:47:26 2012] Performing check to see if pending cleanup actions exist
Checking if pending cleanup actions...
No pending cleanup actions, proceeding with other steps.
[STOP_TASK] [Thu Jul 5 01:47:31 2012] Performing check to see if pending cleanup actions exist
[STOP_TASK] [Thu Jul 5 01:47:31 2012] Deleting rows from ad_patches_tables table
[STOP_TASK] [Thu Jul 5 01:47:33 2012] Deleting rows from ad_patches_tables table
[START_TASK] [Thu Jul 5 01:47:34 2012] Performing DB Sanity checks
[START_TASK] [Thu Jul 5 01:47:35 2012] Check for the DB Space
[STOP_TASK] [Thu Jul 5 01:47:36 2012] Check for the DB Space
[START_TASK] [Thu Jul 5 01:47:37 2012] Checking if edition enabled users exist
[STOP_TASK] [Thu Jul 5 01:47:39 2012] Checking if edition enabled users exist
[START_TASK] [Thu Jul 5 01:47:39 2012] Performing Check for patch service existance
[STOP_TASK] [Thu Jul 5 01:47:41 2012] Performing Check for patch service existance
[START_TASK] [Thu Jul 5 01:47:42 2012] Performing Check for Logon Trigger existance and enablement
[STOP_TASK] [Thu Jul 5 01:47:43 2012] Performing Check for Logon Trigger existance and enablement
[STOP_TASK] [Thu Jul 5 01:47:44 2012] Performing DB Sanity checks
[START_TASK] [Thu Jul 5 01:47:45 2012] Generating Tablespace Report
Generating Tablespace Report ...
Following report displays the status of important tablespaces. (ie. freespace))
[START_TASK] [Thu Jul 5 01:47:47 2012] Generating Report to display the status of important tablespaces. (ie. free space) ...
=========================================================================
= Important Tablespace Status
=========================================================================

TABLESPACE_NAME TOTAL_SPACE(GB) USED_SPACE(GB) FREE_SPACE(GB) PCT_USED
------------------------------ --------------- -------------- -------------- --------
APPS_TS_SEED 11.72 4.25 7.47 36.29
APPS_TS_TX_DATA 78.59 66.29 12.31 84.34
APPS_TS_TX_IDX 31.72 25.79 5.93 81.31
SYSTEM 46.88 12.20 34.68 26.03

[STOP_TASK] [Thu Jul 5 01:47:48 2012] Generating Report to display the status of important tablespaces. (ie. free space) ...
Above report is captured in file : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/out/adzdshowts.out.

Done with Generating Tablespace Report.
[STOP_TASK] [Thu Jul 5 01:47:51 2012] Generating Tablespace Report
[START_TASK] [Thu Jul 5 01:47:52 2012] Run the concurrent program
Start : Calling concurrent program...

Concurrent Request started successfully Number :

Done : Calling concurrent program...

[STOP_TASK] [Thu Jul 5 01:47:58 2012] Run the concurrent program
[START_TASK] [Thu Jul 5 01:47:58 2012] Check and create Patch Edition (if required)
[START_TASK] [Thu Jul 5 01:47:59 2012] Checking if Patch Edition already exists
Patch Edition does not exist.
[START_TASK] [Thu Jul 5 01:48:02 2012] Creating Patch Edition ...
[STOP_TASK] [Thu Jul 5 01:51:35 2012] Creating Patch Edition
[STOP_TASK] [Thu Jul 5 01:51:36 2012] Checking if Patch Edition already exists
[STOP_TASK] [Thu Jul 5 01:51:36 2012] Check and create Patch Edition (if required)
[START_TASK] [Thu Jul 5 01:51:37 2012] Performing steps to synchronise the FS
[START_TASK] [Thu Jul 5 01:51:38 2012] Performing steps to syncup FS of RUN and PATCH appltops
[START_TASK] [Thu Jul 5 01:51:40 2012] Sync FS of RUN and PATCH
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/txkADOPPreparePhaseSynchronize_Thu_Jul_5_01_51_41_2012.log
Program : started @ Thu Jul 5 01:51:41 2012

*** Log File = /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/txkADOPPreparePhaseSynchronize_Thu_Jul_5_01_51_41_2012.log

Script Name : txkADOPPreparePhaseSynchronize.pl

Started : Thu Jul 5 01:51:41 EDT 2012




-----------
Values used
-----------
Context File : /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
PATCH Context File : /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
OUT Directory : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012
Patch Top : /orasoft/oraApps/OEL5_64/upgrade_12.2/TEAMTESTING/13398481
Mode : update


===================================

Updating existing patch appl top...

===================================



==============================

Inside updatePatchApplTop()...

==============================





==========================

Validating context file...

==========================





================================

Validating PATCH context file...

================================





======================================

Validating APPS schema credentials...

======================================





=====================================

Validating SYSTEM user credentials...

=====================================





========================================

Validating WLS Admin user credentials...

========================================



Executing SYSTEM command: perl /apps/backup/applmgr/R12_2/at2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml -servername=AdminServer -logfile=/apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/EBSProvisioner.log -promptmsg=hide
EXIT STATUS: 0
Valid WLS Admin user credentials.



==================

Validating mode...

==================



Mode = update



=======================

Validating patch top...

=======================





==================================

Inside checkDBPrepareRequired()...

==================================



File Edition Type: patch


==========================

Inside getEditionName()...

==========================



SQL Command: SELECT NVL(ad_zd.get_edition('PATCH'),'NULL') from dual

Edition Name: V_20120705_0148

Proceeding to prepare the tables...



===========================

Inside prepareDBTables()...

===========================



Generating SQL file: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/prepare_tables.sql
SQL Command: exec ad_zd_seed.prepare('FND_PROFILE_OPTION_VALUES');
SQL Command: exec ad_zd_seed.prepare('WF_RESOURCES');
SQL Command: exec ad_zd_seed.prepare('IBY_BEPINFO');


==========================

Inside sourcePatchEnv()...

==========================



Sourcing the PATCH file system environment: /apps/backup/applmgr/R12_2/at1/EBSapps/appl/APPSKITTU4_kasarla01.env

Execute SYSTEM command : sqlplus *********** @/apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/prepare_tables.sql

SQL*Plus: Release 10.1.0.5.0 - Production on Thu Jul 5 01:52:04 2012

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


========================

Inside sourceRunEnv()...

========================



Sourcing the RUN file system environment: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/APPSKITTU4_kasarla01.env

SQL execution went through successfully.


==============================

Inside getPatchListFromDB()...

==============================



SQL Command: SELECT bug_number||',' FROM ad_adop_session_patches WHERE appltop_base = '/apps/backup/applmgr/R12_2/at2' and appltop_patch_base IS NULL



========================

Validating patch list...

========================



Directory /orasoft/oraApps/OEL5_64/upgrade_12.2/TEAMTESTING/13398481/13358519 exists.

Copying the file

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

SOURCE : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4/adalldefaults.txt

TARGET : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/adalldefaults.txt


Copying the file

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

SOURCE : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/adalldefaults.txt

TARGET : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/adalldefaults.txt




===========================================

Inside loadDefaultsFileIntoGlobalArray()...

===========================================





=================================

Inside setDefaultsFileParams()...

=================================



Updating SYSTEM user...



================================

Inside tokenStartValueIndex()...

================================





=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = DEF_SYSTEM_PWD

lower_index = 0

upper_index = 1484



=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = START_OF_VALUE

lower_index = 136

upper_index = 1484



=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = END_OF_VALUE

lower_index = 136

upper_index = 1484

Updating APPS schema...



================================

Inside tokenStartValueIndex()...

================================





=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = ORACLE_password_Application_Object_Library

lower_index = 0

upper_index = 1484



=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = START_OF_VALUE

lower_index = 164

upper_index = 1484



=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = END_OF_VALUE

lower_index = 164

upper_index = 1484

Updating patch application flag...



================================

Inside tokenStartValueIndex()...

================================





=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = ALREADY_APPLIED_PATCH

lower_index = 0

upper_index = 1484



=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = START_OF_VALUE

lower_index = 579

upper_index = 1484



=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = END_OF_VALUE

lower_index = 579

upper_index = 1484

Updating missing translated version flag...



================================

Inside tokenStartValueIndex()...

================================





=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = MISSING_TRANSLATED_VERSION

lower_index = 0

upper_index = 1484



=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = START_OF_VALUE

lower_index = 652

upper_index = 1484



=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = END_OF_VALUE

lower_index = 652

upper_index = 1484

Updating DBNAME...



================================

Inside tokenStartValueIndex()...

================================





=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = DBNAME

lower_index = 0

upper_index = 1484



=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = START_OF_VALUE

lower_index = 37

upper_index = 1484



=====================================

Inside getIndexOfStringFromArray()...

=====================================



search_string = END_OF_VALUE

lower_index = 37

upper_index = 1484



=============================================

Inside updateDefaultsFileFromGlobalArray()...

=============================================





============================

Inside copyValidPatches()...

============================



Creating the directory: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/source

Creating the directory: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/destination

Creating the directory: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/source/13358519



=============================

Inside mergeValidPatches()...

=============================



Merging AD patches...


################# BEGIN PATCH MERGING #################


SOURCE LOCATION : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/source


DESTINATION LOCATION: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/destination


MERGE NAME : ADThuJul50151412012



==========================

Inside sourcePatchEnv()...

==========================



Sourcing the PATCH file system environment: /apps/backup/applmgr/R12_2/at1/EBSapps/appl/APPSKITTU4_kasarla01.env

Execute SYSTEM command : admrgpch -admode -s /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/source -d /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/destination -merge_name ADThuJul50151412012 -logfile /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/admrgpch.log

Executing the merge of the patch drivers
No driver files exists in /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/source/13358519.


Copying files...

100% complete. Copied 0 files of 0...

Character-set converting files...

0 unified drivers merged.

Patch merge completed successfully

Please check the log file at /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/admrgpch.log.


========================

Inside sourceRunEnv()...

========================



Sourcing the RUN file system environment: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/APPSKITTU4_kasarla01.env

Merging of patches went through successfully.

################# END PATCH MERGING #################

Merging NON-AD patches...


################# BEGIN PATCH MERGING #################


SOURCE LOCATION : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/source


DESTINATION LOCATION: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/destination


MERGE NAME : NONADThuJul50151412012



==========================

Inside sourcePatchEnv()...

==========================



Sourcing the PATCH file system environment: /apps/backup/applmgr/R12_2/at1/EBSapps/appl/APPSKITTU4_kasarla01.env

Execute SYSTEM command : admrgpch -s /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/source -d /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/destination -merge_name NONADThuJul50151412012 -logfile /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/admrgpch.log

Executing the merge of the patch drivers
No driver files exists in /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/source/13358519.


Copying files...

100% complete. Copied 0 files of 0...

Character-set converting files...

0 unified drivers merged.

Patch merge completed successfully

Please check the log file at /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/admrgpch.log.


========================

Inside sourceRunEnv()...

========================



Sourcing the RUN file system environment: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/APPSKITTU4_kasarla01.env

Merging of patches went through successfully.

################# END PATCH MERGING #################



===============================

Inside validateDriverFiles()...

===============================





==============================

Inside searchFileContents()...

==============================



Validating PATCH DRIVER: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/destination/u_ADThuJul50151412012.drv
AD patch driver is NOT valid...



==============================

Inside searchFileContents()...

==============================



Validating PATCH DRIVER: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/destination/u_NONADThuJul50151412012.drv
Non-AD patch driver is NOT valid...



============================

Inside applyMergedPatch()...

============================





============================

Inside syncOtherContent()...

============================



Synchronizing the directories:

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

SOURCE : /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/conc/

TARGET : /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/conc/


Execute SYSTEM command : rsync -ar /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/conc/ /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/conc/
Synchronizing the directories:

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

SOURCE : /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/soa/

TARGET : /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/soa/


Execute SYSTEM command : rsync -ar /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/soa/ /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/soa/
Copying the file

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

SOURCE : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/adalldefaults.txt

TARGET : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/adalldefaults.txt




======================================

Inside updateAppliedPatchListInDB()...

======================================





===========================

Inside generateSQLFile()...

===========================



Generating SQL file: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/update_patchlist.sql

SQL Command: UPDATE ad_adop_session_patches SET appltop_patch_base = '/apps/backup/applmgr/R12_2/at1' WHERE appltop_base = '/apps/backup/applmgr/R12_2/at2' AND bug_number = '13358519';



==========================

Inside executeSQLFile()...

==========================



Execute SYSTEM command : sqlplus *********** @/apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SYNC_Thu_Jul_5_01_51_39_2012/TXK_SYNC_update_Thu_Jul_5_01_51_41_2012/update_patchlist.sql

SQL*Plus: Release 10.1.0.5.0 - Production on Thu Jul 5 01:55:12 2012

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


1 row updated.


Commit complete.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL execution went through successfully.

Program : completed @ Thu Jul 5 01:55:12 2012

[STOP_TASK] [Thu Jul 5 01:55:12 2012] Sync FS of RUN and PATCH
[STOP_TASK] [Thu Jul 5 01:55:13 2012] Performing steps to syncup FS of RUN and PATCH appltops
[STOP_TASK] [Thu Jul 5 01:55:14 2012] Performing steps to synchronise the FS
[START_TASK] [Thu Jul 5 01:55:15 2012] Performing steps to validate configuration
[START_TASK] [Thu Jul 5 01:55:16 2012] Validating the configuration
[START_TASK] [Thu Jul 5 01:55:18 2012] Validating Configuration
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SANITY_Thu_Jul_5_01_55_17_2012/TXK_SANITY_dbcheck_Thu_Jul_5_01_55_19_2012/txkADOPPreparePhaseSanityCheck_Thu_Jul_5_01_55_19_2012.log
Program : started @ Thu Jul 5 01:55:19 2012

*** Log File = /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SANITY_Thu_Jul_5_01_55_17_2012/TXK_SANITY_dbcheck_Thu_Jul_5_01_55_19_2012/txkADOPPreparePhaseSanityCheck_Thu_Jul_5_01_55_19_2012.log

Script Name : txkADOPPreparePhaseSanityCheck.pl

Started : Thu Jul 5 01:55:19 EDT 2012




-----------
Values used
-----------
Mode : update
Action : dbcheck
Context File : /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
PATCH Context File : /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
OUT Directory : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SANITY_Thu_Jul_5_01_55_17_2012


===================================

Updating existing patch appl top...

===================================



==============================

Inside updatePatchApplTop()...

==============================





==========================

Validating context file...

==========================





================================

Validating PATCH context file...

================================





======================================

Validating APPS schema credentials...

======================================





=====================================

Validating SYSTEM user credentials...

=====================================





========================================

Validating WLS Admin user credentials...

========================================



Executing SYSTEM command: perl /apps/backup/applmgr/R12_2/at2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml -servername=AdminServer -logfile=/apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/log/TXK_SANITY_Thu_Jul_5_01_55_17_2012/TXK_SANITY_dbcheck_Thu_Jul_5_01_55_19_2012/EBSProvisioner.log -promptmsg=hide
EXIT STATUS: 0
Valid WLS Admin user credentials.



==================

Validating mode...

==================



Mode = update



====================

Validating action...

====================



Action = dbcheck



=============================

Inside checkDBConnection()...

=============================



Expected TWO_TASK (or LOCAL) on PATCH file system: KITTU4_patch
DB connection check PASSED.





Program : completed @ Thu Jul 5 01:55:36 2012

[STOP_TASK] [Thu Jul 5 01:55:36 2012] Validating Configuration
[STOP_TASK] [Thu Jul 5 01:55:37 2012] Validating the configuration
[STOP_TASK] [Thu Jul 5 01:55:38 2012] Performing steps to validate configuration
[STOP_TASK] [Thu Jul 5 01:55:40 2012] Invoking prepare phase
[STOP_TASK] [Thu Jul 5 01:55:43 2012] Executing adzdoptl.pl

adop exiting with status = 0
[applmgr@kasarla01 13398481]$

[applmgr@kasarla01 13398481]$ adop.sh phase=apply
[START_TASK] [Thu Jul 5 01:56:45 2012] Executing adzdoptl.pl
[START_TASK] [Thu Jul 5 01:56:45 2012] Checking for the required ENV setup
[STOP_TASK] [Thu Jul 5 01:56:45 2012] Checking for the required ENV setup
[START_TASK] [Thu Jul 5 01:56:45 2012] Performing verification of parameters
[STOP_TASK] [Thu Jul 5 01:56:45 2012] Performing verification of parameters

Enter the APPS user name [press enter for default]:Enter
Enter the APPS password [press enter for default]:Apps password
Enter the SYSTEM user's password [press enter for default]:system password
Enter the WLS Admin password [press enter for default]:WLS password
Enter the run context file name [/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml]:Enter

Enter the patch context file name [/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml]:Enter
[START_TASK] [Thu Jul 5 01:57:41 2012] Checking for any pending sessions
Using the session id which is not complete for all phases.

[STOP_TASK] [Thu Jul 5 01:57:45 2012] Checking for any pending sessions
[START_TASK] [Thu Jul 5 01:57:45 2012] Staging the current session
[STOP_TASK] [Thu Jul 5 01:57:46 2012] Staging the current session
Logfile location :
***** Start of adzdoptl.pl run *****
Current Session Id is : .

[START_TASK] [Thu Jul 5 01:57:51 2012] Invoking apply phase
[START_TASK] [Thu Jul 5 01:57:52 2012] Performing Check for Logon Trigger existance and enablement
[STOP_TASK] [Thu Jul 5 01:57:53 2012] Performing Check for Logon Trigger existance and enablement

autopatch will be invoked interactively. Command-line parameters can be provided below. Eg. options=nodatabaseportion, etc. If nothing, press the RETURN key.


Enter command-line arguments for autopatch (if any here) :Enter

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

Oracle Applications AutoPatch

Version 12.0.0

NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.


Attention: AutoPatch no longer checks for unapplied pre-requisite patches.
You must use OAM Patch Wizard for this feature. Alternatively, you can
review the README for pre-requisite information.


Your default directory is '/apps/backup/applmgr/R12_2/at1/EBSapps/appl'.
Is this the correct APPL_TOP [Yes] ?Enter

AutoPatch records your AutoPatch session in a text file
you specify. Enter your AutoPatch log file name or press [Return]
to accept the default file name shown in brackets.

Filename [adpatch.log] :u.log

You can be notified by email if a failure occurs.
Do you wish to activate this feature [No] ?Enter

Please enter the batchsize [1000] :Enter


Please enter the name of the Oracle Applications System that this
APPL_TOP belongs to.

The Applications System name must be unique across all Oracle
Applications Systems at your site, must be from 1 to 30 characters
long, may only contain alphanumeric and underscore characters,
and must start with a letter.

Sample Applications System names are: "prod", "test", "demo" and
"Development_2".

Applications System Name [KITTU4] : KITTU4 *


NOTE: If you do not currently have certain types of files installed
in this APPL_TOP, you may not be able to perform certain tasks.

Example 1: If you don't have files used for installing or upgrading
the database installed in this area, you cannot install or upgrade
the database from this APPL_TOP.

Example 2: If you don't have forms files installed in this area, you cannot
generate them or run them from this APPL_TOP.

Example 3: If you don't have concurrent program files installed in this area,
you cannot relink concurrent programs or generate reports from this APPL_TOP.


Do you currently have files used for installing or upgrading the database
installed in this APPL_TOP [YES] ? YES *


Do you currently have Java and HTML files for HTML-based functionality
installed in this APPL_TOP [YES] ? YES *


Do you currently have Oracle Applications forms files installed
in this APPL_TOP [YES] ? YES *


Do you currently have concurrent program files installed
in this APPL_TOP [YES] ? YES *


Please enter the name Oracle Applications will use to identify this APPL_TOP.

The APPL_TOP name you select must be unique within an Oracle Applications
System, must be from 1 to 30 characters long, may only contain
alphanumeric and underscore characters, and must start with a letter.

Sample APPL_TOP Names are: "prod_all", "demo3_forms2", and "forms1".

APPL_TOP Name [kasarla01] : kasarla01 *



You are about to apply a patch to the installation of Oracle Applications
in your ORACLE database 'KITTU4_patch'
using ORACLE executables in '/apps/backup/applmgr/R12_2/at1/EBSapps/10.1.2'.

Is this the correct database [Yes] ?

AutoPatch needs the password for your 'SYSTEM' ORACLE schema
in order to determine your installation configuration.

Enter the password for your 'SYSTEM' ORACLE schema:


The ORACLE username specified below for Application Object Library
uniquely identifies your existing product group: APPLSYS

Enter the ORACLE password of Application Object Library [APPS] :

AutoPatch is verifying your username/password.
The status of various features in this run of AutoPatch is:


Feature Active? APPLTOP Data model Flags
------------------------------ ------- -------- ----------- -----------
CHECKFILE Yes 1 1 Y N N Y N Y
PREREQ Yes 6 6 Y N N Y N Y
CONCURRENT_SESSIONS No 2 2 Y Y N Y Y N
PATCH_TIMING Yes 2 2 Y N N Y N Y
PATCH_HIST_IN_DB Yes 6 6 Y N N Y N Y
SCHEMA_SWAP Yes 1 1 Y N N Y Y Y
JAVA_WORKER Yes 1 1 Y N N Y N Y
CODELEVEL Yes 1 1 Y N N Y N Y



Identifier for the current session is 60911

Reading product information from file...

Reading language and territory information from file...

Reading language information from applUS.txt ...

AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/zpbprod.txt
does not exist for product "zpb".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/amwprod.txt
does not exist for product "amw".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/gcsprod.txt
does not exist for product "gcs".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/eaaprod.txt
does not exist for product "eaa".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/bscprod.txt
does not exist for product "bsc".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/abmprod.txt
does not exist for product "abm".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/evmprod.txt
does not exist for product "evm".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/femprod.txt
does not exist for product "fem".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/mstprod.txt
does not exist for product "mst".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/ipdprod.txt
does not exist for product "ipd".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/dddprod.txt
does not exist for product "ddd".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/blcprod.txt
does not exist for product "blc".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/rcmprod.txt
does not exist for product "rcm".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/itaprod.txt
does not exist for product "ita".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/fiiprod.txt
does not exist for product "fii".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/poaprod.txt
does not exist for product "poa".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/iscprod.txt
does not exist for product "isc".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/zfaprod.txt
does not exist for product "zfa".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/zsaprod.txt
does not exist for product "zsa".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/pftprod.txt
does not exist for product "pft".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/ftpprod.txt
does not exist for product "ftp".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/cssprod.txt
does not exist for product "css".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/meprod.txt
does not exist for product "me".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/xnmprod.txt
does not exist for product "xnm".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/xncprod.txt
does not exist for product "xnc".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/xnsprod.txt
does not exist for product "xns".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/fptprod.txt
does not exist for product "fpt".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/okrprod.txt
does not exist for product "okr".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/cueprod.txt
does not exist for product "cue".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/ibaprod.txt
does not exist for product "iba".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/ibpprod.txt
does not exist for product "ibp".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/bilprod.txt
does not exist for product "bil".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/bixprod.txt
does not exist for product "bix".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/ozpprod.txt
does not exist for product "ozp".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/ozsprod.txt
does not exist for product "ozs".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/rlaprod.txt
does not exist for product "rla".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/vehprod.txt
does not exist for product "veh".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/rhxprod.txt
does not exist for product "rhx".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/imtprod.txt
does not exist for product "imt".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/bivprod.txt
does not exist for product "biv".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/ahmprod.txt
does not exist for product "ahm".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/okbprod.txt
does not exist for product "okb".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/okiprod.txt
does not exist for product "oki".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/okoprod.txt
does not exist for product "oko".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/xniprod.txt
does not exist for product "xni".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/jtsprod.txt
does not exist for product "jts".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/amfprod.txt
does not exist for product "amf".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/psbprod.txt
does not exist for product "psb".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/igwprod.txt
does not exist for product "igw".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/igsprod.txt
does not exist for product "igs".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/igfprod.txt
does not exist for product "igf".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/cuiprod.txt
does not exist for product "cui".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/cupprod.txt
does not exist for product "cup".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/cufprod.txt
does not exist for product "cuf".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/cusprod.txt
does not exist for product "cus".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/cunprod.txt
does not exist for product "cun".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


AutoPatch warning:
Product Data File
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/cleprod.txt
does not exist for product "cle".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.


Reading database to see what industry is currently installed.

Reading FND_LANGUAGES to see what is currently installed.
**** Running Seed Table Prepare for FND_LANGUAGES ****

Currently, the following languages are installed:

Code Language Status
---- --------------------------------------- ---------
US American English Base
F European French Install
HU Hungarian Install
ESA Latin American Spanish Install
I Italian Install
PL Polish Install
ZHT Traditional Chinese Install

Reading language information from applF.txt ...

Reading language information from applHU.txt ...

Reading language information from applESA.txt ...

Reading language information from applI.txt ...

Reading language information from applPL.txt ...

Reading language information from applZHT.txt ...

Your base language will be AMERICAN.

Your other languages to install are: FRENCH, HUNGARIAN, LATIN AMERICAN SPANISH, ITALIAN, POLISH, TRADITIONAL CHINESE

Setting up module information.
Saving module information.
Reading database for information about the products.
Reading database for information about how products depend on each other.
Reading topfile.txt ...

Saving product information.

AD code level : [C]

*** Running in NZDT Uptime mode ***

Not checking the system maintenance mode.



Trying to obtain a lock...


Attempting to instantiate the current-view snapshot...

Was already instantiated. So no instantiation done this time.


**************** S T A R T O F U P L O A D ****************

Start date: Thu Jul 05 2012 02:00:29



0 "left over" javaupdates.txt files uploaded to DB: Thu Jul 05 2012 02:00:29

0 patches uploaded from the ADPSV format patch history files: Thu Jul 05 2012 02:00:29


Uploading information about files copied during the previous runs ...

0 "left over" filescopied_.txt files uploaded to DB: Thu Jul 05 2012 02:00:29

****************** E N D O F U P L O A D ******************




End date: Thu Jul 05 2012 02:00:29




Enter the directory where your Oracle Applications patch has been unloaded

The default directory is [/orasoft/oraApps/OEL5_64/upgrade_12.2/TEAMTESTING/13398481] :

Please enter the name of your AutoPatch driver file : u13398481.drv

Getting Oracle Applications Release...

Current installed release is 12.2.0

Reading patch driver file...

Parsing and loading patch driver file...
49 lines processed.

Not checking patch integrity as integrity checking flag is turned off.

Successfully read patch driver file.

Determining target release...

Current target release is 12.2.0


Determining which bug fixes to apply...

Done determining which bug fixes to apply.


Log and Info File sync point:
Thu Jul 05 2012 02:01:03

Turning off actions that reference unrecognized products.


Log and Info File sync point:
Thu Jul 05 2012 02:01:03

End of unrecognized products checking.



AD utilities can support a maximum of 999 workers. Your
current database configuration supports a maximum of 308 workers.
Oracle recommends that you use between 48 and 96 workers.


Enter the number of parallel workers [48] :


AutoPatch will run in parallel mode.


Did not need to apply new applterr.txt.

Applying new applprod.txt (if any)...

Did not need to apply new applprod.txt.

Performing version checking for driver files...

Copying driver files into installation area...

No driver files were selected for copying.

Skipping...
ForceCopy driver files into installation area for Specified driver
since no such action is present for this driver file

Screening out files not valid for this installation...

Determining valid on-site files...

Skipping...
Extract object modules from libraries for Specified driver
since no such action is present for this driver file

Performing version checking...

Skipping...
Determine directories to create for Specified driver
since no such action is present for this driver file

Skipping...
Determine executables to link for Specified driver
since no such action is present for this driver file

Skipping...
Determine forms to generate for Specified driver
since no such action is present for this driver file

Skipping...
Determine Oracle Reports libraries to generate for Specified driver
since no such action is present for this driver file

Skipping...
Determine reports to generate for Specified driver
since no such action is present for this driver file

Skipping...
Determine if need to generate message files for Specified driver
since no such action is present for this driver file

Looking for active bug fixes with no active actions...


Reading customized files list (if any)...

Did not find customized files registration file
"/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/applcust.txt"
The file may have been uploaded to the database.


This patch replaces the following customized files:

No customized files are replaced by this patch.


Copying files into installation area...

**********************************************************
You are running admvcode

Header information is:
$Header: aiopatch.lc 120.11 2011/05/11 11:19:47 asutrala ship $

Start of admvcode session
Date/Time is Thu Jul 05 2012 02:02:02

Filelist file is: /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/out/copymast.txt
Patch Character Set is: us7ascii
On-site Character Set is: AL32UTF8



Log and Info File sync point:
Thu Jul 05 2012 02:02:02

Information about files copied to the APPL_TOP would be written to the
informational message file.

Character set 'US7ASCII' is a subset of character set 'AL32UTF8'.
No character set conversion is required.


Copying files to APPL_TOP...

0 directories created.
1 files copied without character set conversion.
0 files copied with successful character set conversion.

1 files copied successfully.
0 files had fatal errors.

admvcode is exiting with status 0

End of admvcode session
Date/time is Thu Jul 05 2012 02:02:02
**********************************************************

Done copying files into installation area.

Skipping...
ForceCopy files into installation area for Specified driver
since no such action is present for this driver file

Skipping...
Archive object modules into product libraries for Specified driver
since no such action is present for this driver file

Skipping...
Create Directories for Specified driver
since no such action is present for this driver file

Skipping...
Relink for Specified driver
since no such action is present for this driver file

Performing second half of mirrored copies...

No mirrored copies were executed in this patch.

Updating Oracle Applications Java files if necessary...

No Oracle Applications Java files required updates.

Checking to see if any files possibly included in the product JAR files
were copied by this patch...

No files possibly included in the product JAR files
were copied by this patch.


Skipping ...
Running AutoConfig to instantiate templates which affect
the generation of JAR files since none of these templates
were patched during this run of adpatch.




No product JAR files need to be re-generated.


Checking to see if adjborg.txt or any files included in
adjborg.txt were copied by this patch...

adjborg.txt and/or at least one file included in
adjborg.txt was copied by this patch.

** Updating appsborg.zip ...

Reading adjborg.txt...

adearea();
No files listed in /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/adjborg.txt
Ignoring ...
adjborg.txt file seems to be empty.

Done reading adjborg.txt.
As adjborg.txt file is empty, skipping the generation of appsborg.zip

** Successfully updated appsborg.zip file .


Checking to see if adjborg2.txt or any files included in
adjborg2.txt were copied by this patch...

adjborg2.txt and/or at least one file included in
adjborg2.txt was copied by this patch.

** Updating appsborg2.zip ...

Reading adjborg2.txt...

adearea();
No files listed in /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/adjborg2.txt
Ignoring ...
adjborg2.txt file seems to be empty.

Done reading adjborg2.txt.
As adjborg2.txt file is empty, skipping the generation of appsborg2.zip

** Successfully updated appsborg2.zip file .


Compiling JSP files...

Not compiling JSPs: no JSPs in patch.

No JSP files were compiled.

Number of invalid objects: 5

Getting list of invalid objects in APPS schema.

Invalid object reports are recorded in
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/60911_preenv.*

Running SQL scripts and EXEC commands...

Determining which SQL and EXEC commands to run...

Done determining which SQL and EXEC commands to run.


Running SQL and EXEC commands in parallel...



Creating the AD_UTIL_PARAMS table...
Table AD_UTIL_PARAMS already exists, so dropping the table and recreating it.

Creating FND_INSTALL_PROCESSES table...

Writing dependencies of jobs to run to appldep.txt file...

There are now 2 jobs remaining (current phase=A0):
0 running, 1 ready to run and 1 waiting.

Reading completed jobs from restart file (if any).

There are now 2 jobs remaining (current phase=A0):
0 running, 1 ready to run and 1 waiting.


Determining which java executables are supported by adJavaWorker...

Starting worker processes.

Worker process 1 started.

Worker process 2 started.

Worker process 3 started.

Worker process 4 started.

Worker process 5 started.

Worker process 6 started.

Worker process 7 started.

Worker process 8 started.

Worker process 9 started.

Worker process 10 started.

Worker process 11 started.

Worker process 12 started.

Worker process 13 started.

Worker process 14 started.

Worker process 15 started.

Worker process 16 started.

Worker process 17 started.

Worker process 18 started.

Worker process 19 started.

Worker process 20 started.

Worker process 21 started.

Worker process 22 started.

Worker process 23 started.

Worker process 24 started.

Worker process 25 started.

Worker process 26 started.

Worker process 27 started.

Worker process 28 started.

Worker process 29 started.

Worker process 30 started.

Worker process 31 started.

Worker process 32 started.

Worker process 33 started.

Worker process 34 started.

Worker process 35 started.

Worker process 36 started.

Worker process 37 started.

Worker process 38 started.

Worker process 39 started.

Worker process 40 started.

Worker process 41 started.

Worker process 42 started.

Worker process 43 started.

Worker process 44 started.

Worker process 45 started.

Worker process 46 started.

Worker process 47 started.

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

Worker process 48 started.

Checking if all jobs have their actual and symbolic arguments in sync....

Done.


Reading jobs from FND_INSTALL_PROCESSES table ...


Done reading jobs from FND_INSTALL_PROCESSES table ...

Telling workers to read 'todo' restart file.
Done.
************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl


Starting phase 0 (A0): fin

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl


There are now 2 jobs remaining (current phase=A0):
0 running, 1 ready to run and 1 waiting.

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

Assigned: file ADZDFINALIZE.sql on worker 1 for product ad username APPLSYS.
************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:21

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.0.0
AD Worker started at: Thu Jul 05 2012 02:02:22

APPL_TOP is set to /apps/backup/applmgr/R12_2/at1/EBSapps/appl

Completed: file ADZDFINALIZE.sql on worker 1 for product ad username APPLSYS.

Starting phase 1 (A1): upg


There are now 1 jobs remaining (current phase=A1):
0 running, 1 ready to run and 0 waiting.

Assigned: file qa_do_ddl.sql on worker 1 for product qa username QA.
Completed: file qa_do_ddl.sql on worker 1 for product qa username QA.

Telling workers to quit...


All workers have quit.


Dropping FND_INSTALL_PROCESSES table...


FND_INSTALL_PROCESSES table dropped.


Dropping AD_DEFERRED_JOBS table...


AD_DEFERRED_JOBS table dropped.


Done running SQL and EXEC commands in parallel.


Updating the checkfile repository if necessary...
Processing the last batch...
Done updating the checkfile repository...


Dropping AD_TABLE_INDEX_INFO table...


AD_TABLE_INDEX_INFO table dropped.

Done running SQL scripts and EXEC commands.

Compiling invalid objects...


sqlplus -s APPS/***** @/apps/backup/applmgr/R12_2/at1/EBSapps/appl/ad/12.0.0/sql/adutlrcmp.sql APPLSYS ***** APPS ***** ***** 48 0 NONE FALSE

sqlplus -s APPS/***** @/apps/backup/applmgr/R12_2/at1/EBSapps/appl/ad/12.0.0/sql/adutlrcmp.sql APPLSYS ***** APPS ***** ***** 48 0 NONE FALSE

Number of invalid objects: 4

Getting list of invalid objects in APPS schema.

Invalid object reports are recorded in
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/60911_postenv.*

Skipping...
Generate forms library files for Specified driver
since no such action is present for this driver file

Skipping...
Generate forms menu files for Specified driver
since no such action is present for this driver file

Skipping...
Generate forms for Specified driver
since no such action is present for this driver file

Skipping...
Generate reports libraries for Specified driver
since no such action is present for this driver file

Skipping...
Generate reports for Specified driver
since no such action is present for this driver file

Skipping...
Generate Messages for Specified driver
since no such action is present for this driver file

Skipping...
Generate Workflow resource files for Specified driver
since no such action is present for this driver file

Skipping ...
Running AutoConfig since none of its templates were
patched during this run of adpatch.

Saving Patch History information to Database...

Trying to obtain a lock...


adopCheckExistingCreateRecord: Record Patch value:13398481
ADOP record doesn't exist in AD_ADOP_SESSION_PATCHES repository with samesession id and bug number,Insert a ADOP record

Successfully updated ADOP record in ADOP_SESSION repository,
> Inserted 1 patch history records (total).

Gathering Statistics for AD_PATCH_HIST_TEMP

Done Gathering Statistics for AD_PATCH_HIST_TEMP

>>> Inserted 2 bug history records for this patch (total).
>>>>> Inserted 0 action history records for this bug (total).

Gathering Statistics for AD_PATCH_HIST_TEMP

Done Gathering Statistics for AD_PATCH_HIST_TEMP

>>> Inserted 2 bug history records for this patch (total).
>>>>> Inserted 0 action history records for this bug (total).



Updating the current-view snapshot...

Done saving Patch History information.


About to do IREP processing...

Attempting to process IREP files ...

Successfully processed IREP files.

Done IREP processing.


Copying applprod.tmp to applprod.txt (if needed)...

Did not need to copy applprod.tmp to applprod.txt.

Copying admin//applterr.txt to admin/applterr.txt (if needed)...

Did not need to copy admin/KITTU4_patch/applterr.txt to admin/applterr.txt.

sqlplus -s APPS/***** @/apps/backup/applmgr/R12_2/at1/EBSapps/appl/ad/12.0.0/sql/adtimrpt.sql 60911 adt60911

A job timing report has been generated for the current session.
You should check the file
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/out/adt60911.lst

for details.


Purging timing information for prior sessions.

sqlplus -s APPS/***** @/apps/backup/applmgr/R12_2/at1/EBSapps/appl/ad/12.0.0/sql/adtpurge.sql 10 1000

Done purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/adpatch.lgi

Errors and warnings are listed in the log file
/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/adpatch.log

and in other log files in the same directory.

[STOP_TASK] [Thu Jul 5 02:04:30 2012] Invoking apply phase
[START_TASK] [Thu Jul 5 02:04:31 2012] Generating Post Apply Reports
Generating Status Report ...
Following report displays difference between RUN/PATCH edition (DB objects) - it displays the New/Changed objects.)
[START_TASK] [Thu Jul 5 02:04:33 2012] Generating Report to display New/Changed Objects ...
===========================================================================
= Differences between RUN and PATCH edition (Editionable Objects)
===========================================================================

OWNER OBJECT_NAME OBJECT_TYPE STATUS InValid?
------------------------------ ----------------------------------- -------------------- ------- ---------
APPS FND_LANGUAGES$ FUNCTION CHANGED
APPS FND_LANGUAGES+ TRIGGER CHANGED
APPS FND_PROFILE_OPTION_VALUES$ FUNCTION CHANGED
APPS FND_PROFILE_OPTION_VALUES+ TRIGGER CHANGED
APPS IBY_BEPINFO$ FUNCTION CHANGED
APPS IBY_BEPINFO+ TRIGGER CHANGED
APPS OZF_EARNING_SUMMARY_MV# VIEW CHANGED
APPS WF_RESOURCES$ FUNCTION CHANGED
APPS WF_RESOURCES+ TRIGGER CHANGED
APPS FND_LANGUAGES> TRIGGER NEW
APPS FND_PROFILE_OPTION_VALUES> TRIGGER NEW
APPS IBY_BEPINFO> TRIGGER NEW
APPS QA_PLANS_PUB_DO_DDL PACKAGE NEW
APPS QA_PLANS_PUB_DO_DDL PACKAGE BODY NEW
APPS WF_RESOURCES> TRIGGER NEW



=========================================================================
= New Tables
=========================================================================



=========================================================================
= New/Changed Columns
=========================================================================



=========================================================================
= New Indexes
=========================================================================



=========================================================================
= Revised Indexes
=========================================================================



=========================================================================
= Cross-edition Triggers
=========================================================================

OWNER TRIGGER_NAME TABLE_OWNER TABLE_NAME CROSSEDITI STATUS
------------------------------ ------------------------------ ------------------------------ ------------------------------ ---------- ----------
APPS WF_RESOURCES> APPLSYS WF_RESOURCES FORWARD ENABLED
APPS FND_LANGUAGES> APPLSYS FND_LANGUAGES FORWARD ENABLED
APPS IBY_BEPINFO> IBY IBY_BEPINFO FORWARD ENABLED
APPS FND_PROFILE_OPTION_VALUES> APPLSYS FND_PROFILE_OPTION_VALUES FORWARD ENABLED



=========================================================================
= New/Revised Materialized views
=========================================================================

OWNER MVIEW_NAME STATUS
------------------------------ ------------------------------ -------
APPS OZF_EARNING_SUMMARY_MV CHANGED

[STOP_TASK] [Thu Jul 5 02:05:11 2012] Generating Report to display New/Changed Objects ...
Above report is captured in file : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/out/adzdcmped.out.

Following report displays the editions in the system
[START_TASK] [Thu Jul 5 02:05:13 2012] Generating Report to display editions ...
=========================================================================
= Editions
=========================================================================

EDITION_NAME USABLE Default? Current?
--------------- --------- --------- ---------
ORA$BASE YES
V_20120530_0012 YES
V_20120615_0049 YES
V_20120627_1154 YES DEFAULT CURRENT
V_20120705_0148 YES

[STOP_TASK] [Thu Jul 5 02:05:14 2012] Generating Report to display editions ...
Above report is captured in file : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/out/adzdshowed.out.

Following report displays the summary of editioned objects per edition
[START_TASK] [Thu Jul 5 02:05:17 2012] Generating Report to display summary of editioned objects...
=========================================================================
= Editioned Objects Per Edition
=========================================================================

EDITION_NAME A_VALID A_INVALID A_TOTAL S_VALID S_INVALID S_TOTAL TOTAL
--------------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
ORA$BASE 173482 1 173483 0 0 0 173483
V_20120530_0012 0 0 0 173906 0 173906 173906
V_20120615_0049 2 0 2 173903 0 173903 173905
V_20120627_1154 11 0 11 173905 0 173905 173916
V_20120705_0148 15 0 15 173906 1 173907 173922

Note :
(A_) - Actualized objects
(S_) - Stubs

[STOP_TASK] [Thu Jul 5 02:05:22 2012] Generating Report to display summary of editioned objects...
Above report is captured in file : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/out/adzdshowobjs.out.

[START_TASK] [Thu Jul 5 02:05:23 2012] Report to display the status report for seed data manager
Report is captured in file : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/out/adzdshowsm.out.

"Seed Manager Status:"

"---- Seed Data Tables that were prepared in the current edition ----"

OWNER TABLE_NAME SYNC
-------------------- ------------------------------ -------
APPLSYS FND_LANGUAGES FORWARD
APPLSYS FND_PROFILE_OPTION_VALUES FORWARD
APPLSYS WF_RESOURCES FORWARD
IBY IBY_BEPINFO FORWARD

[STOP_TASK] [Thu Jul 5 02:05:51 2012] Report to display the status report for seed data manager
Report is captured in file : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/out/adzdshowsm.out.

Done with Generating Status Report.
[STOP_TASK] [Thu Jul 5 02:05:52 2012] Generating Post Apply Reports
[STOP_TASK] [Thu Jul 5 02:05:54 2012] Executing adzdoptl.pl

adop exiting with status = 0
[applmgr@kasarla01 13398481]$

[applmgr@kasarla01 13398481]$ adop.sh phase=cutover
[START_TASK] [Thu Jul 5 02:09:00 2012] Executing adzdoptl.pl
[START_TASK] [Thu Jul 5 02:09:00 2012] Checking for the required ENV setup
[STOP_TASK] [Thu Jul 5 02:09:00 2012] Checking for the required ENV setup
[START_TASK] [Thu Jul 5 02:09:00 2012] Performing verification of parameters
[STOP_TASK] [Thu Jul 5 02:09:00 2012] Performing verification of parameters

Enter the APPS user name [press enter for default]:Enter
Enter the APPS password [press enter for default]:Apps password
Enter the SYSTEM user's password [press enter for default]:sytem password
Enter the WLS Admin password [press enter for default]:WLS password
Enter the run context file name [/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml]:Enter

Enter the patch context file name [/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml]:Enter
[START_TASK] [Thu Jul 5 02:09:29 2012] Checking for any pending sessions
Using the session id which is not complete for all phases.

[STOP_TASK] [Thu Jul 5 02:09:33 2012] Checking for any pending sessions
[START_TASK] [Thu Jul 5 02:09:34 2012] Staging the current session
[STOP_TASK] [Thu Jul 5 02:09:34 2012] Staging the current session
Logfile location :
***** Start of adzdoptl.pl run *****
Current Session Id is : .

[START_TASK] [Thu Jul 5 02:09:42 2012] Invoking cutover phase

Enter the no of workers for DB Cutover : 8
[START_TASK] [Thu Jul 5 02:10:19 2012] Performing Check for Logon Trigger existance and enablement
[STOP_TASK] [Thu Jul 5 02:10:21 2012] Performing Check for Logon Trigger existance and enablement
[START_TASK] [Thu Jul 5 02:10:23 2012] Performing Cutover Phase steps
[START_TASK] [Thu Jul 5 02:10:27 2012] Finalize
[STOP_TASK] [Thu Jul 5 02:10:31 2012] Finalize
[START_TASK] [Thu Jul 5 02:10:32 2012] Force Shutdown
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012/TXK_CTRL_forceshutdown_Thu_Jul_5_02_10_34_2012/txkADOPCutOverPhaseCtrlScript_Thu_Jul_5_02_10_34_2012.log
Program : started @ Thu Jul 5 02:10:34 2012

*** Log File = /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012/TXK_CTRL_forceshutdown_Thu_Jul_5_02_10_34_2012/txkADOPCutOverPhaseCtrlScript_Thu_Jul_5_02_10_34_2012.log

Script Name : txkADOPCutOverPhaseCtrlScript.pl

Started : Thu Jul 5 02:10:34 EDT 2012




-----------
Values used
-----------
Context File : /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
PATCH Context File : /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
OUT Directory : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012
Action : forceshutdown


=========================

Inside executeAction()...

=========================





==========================

Validating context file...

==========================





================================

Validating PATCH context file...

================================





======================================

Validating APPS schema credentials...

======================================





=====================================

Validating SYSTEM user credentials...

=====================================





====================

Validating action...

====================



Action = forceshutdown



========================================

Validating WLS Admin user credentials...

========================================



Executing SYSTEM command: perl /apps/backup/applmgr/R12_2/at2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml -servername=AdminServer -logfile=/apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012/TXK_CTRL_forceshutdown_Thu_Jul_5_02_10_34_2012/EBSProvisioner.log -promptmsg=hide
EXIT STATUS: 0
Valid WLS Admin user credentials.



=================================

Inside forceShutdownServices()...

=================================





==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: other
ctrl_code: stop
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adopmnctl.sh
srv_status: enabled
srv_name: Oracle Process Manager for KITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adopmnctl.sh stop

You are running adopmnctl.sh version 120.0

Stopping Oracle Process Manager (OPMN) and the managed processes ...
opmnctl stopall: stopping opmn and all managed processes...

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adopmnctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adopmnctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: wls
ctrl_code: abort
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh
srv_status: enabled
srv_name: oacore_server1
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh abort oacore_server1 -nopromptmsg

You are running admanagedsrvctl.sh version 120.10

Stopping oacore_server1...
..Refer /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adoacorectl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adoacorectl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: wls
ctrl_code: abort
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh
srv_status: enabled
srv_name: forms_server1
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh abort forms_server1 -nopromptmsg

You are running admanagedsrvctl.sh version 120.10

Stopping forms_server1...
.Refer /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adformsctl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adformsctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: wls
ctrl_code: abort
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh
srv_status: enabled
srv_name: oafm_server1
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh abort oafm_server1 -nopromptmsg

You are running admanagedsrvctl.sh version 120.10

Stopping oafm_server1...

oafm_server1 is already shutdown

admanagedsrvctl.sh: exiting with status 2

admanagedsrvctl.sh: check the logfile /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adoafmctl.txt for more information ...

EXIT STATUS: 2
/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: wls
ctrl_code: abort
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh
srv_status: enabled
srv_name: forms-c4ws_server1
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh abort forms-c4ws_server1 -nopromptmsg

You are running admanagedsrvctl.sh version 120.10

Stopping forms-c4ws_server1...

forms-c4ws_server1 is already shutdown

admanagedsrvctl.sh: exiting with status 2

admanagedsrvctl.sh: check the logfile /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for more information ...

EXIT STATUS: 2
/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: wls
ctrl_code: stop
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adadminsrvctl.sh
srv_status: enabled
srv_name: AdminServer
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adadminsrvctl.sh stop -nopromptmsg

You are running adadminsrvctl.sh version 120.7

Stopping WLS Admin Server...
Refer /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adadminsrvctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: wls
ctrl_code: stop
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adnodemgrctl.sh
srv_status: enabled
srv_name: NodeManager
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adnodemgrctl.sh stop -nopromptmsg

You are running adnodemgrctl.sh version 120.8


adnodemgrctl.sh: exiting with status 0

adnodemgrctl.sh: check the logfile /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adnodemgrctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adnodemgrctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: cm
ctrl_code: abort
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adcmctl.sh
srv_status: enabled
srv_name: OracleConcMgrKITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adcmctl.sh abort -nopromptmsg

You are running adcmctl.sh version 120.19

Aborting concurrent managers for KITTU4 ...
ORACLE Password:
Submitted request 1375546 for CONCURRENT FND ABORT


adcmctl.sh: exiting with status 0


adcmctl.sh: check the logfile /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adcmctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adcmctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: other
ctrl_code: stop
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/jtffmctl.sh
srv_status: enabled
srv_name: Oracle Fulfillment Server KITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/jtffmctl.sh stop

You are running jtffmctl.sh version 120.3

Shutting down Fulfillment Server for KITTU4_patch on port 9328 ...

jtffmctl.sh: exiting with status 0

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/jtffmctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: mwa
ctrl_code: stop
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/mwactlwrpr.sh
srv_status: disabled
srv_name: Oracle MWA Service KITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/mwactlwrpr.sh stop -nopromptmsg


Not executing the script /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/mwactlwrpr.sh as the service is DISABLED




==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: other
ctrl_code: stop
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adformsrvctl.sh
srv_status: disabled
srv_name: OracleFormsServer-Forms KITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adformsrvctl.sh stop


Not executing the script /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adformsrvctl.sh as the service is DISABLED




==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: other
ctrl_code: stop
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adalnctl.sh
srv_status: enabled
srv_name: OracleTNSListenerAPPS_KITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adalnctl.sh stop

adalnctl.sh version 120.3

Shutting down listener process APPS_KITTU4.

adalnctl.sh: exiting with status 0


adalnctl.sh: check the logfile /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adalnctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/adalnctl.sh went through successfully.

Program : completed @ Thu Jul 5 02:13:57 2012

[STOP_TASK] [Thu Jul 5 02:13:57 2012] Force Shutdown
[START_TASK] [Thu Jul 5 02:13:58 2012] Performing Automic DB cutover
************* Start of adzdpmgr session *************
adzdpmgr started at: Thu Jul 05 2012 02:13:59

[START_TASK] Connecting to database

[STOP_TASK] Connecting to database

[START_TASK] Determining Worker Count

Number of workers = 8

[STOP_TASK] Determining Worker Count

[START_TASK] Processing Phases

[Calling] APPS.AD_ZD_PARALLEL_EXEC.update_status_R_to_N('CUTOVER')

[Done Calling] APPS.AD_ZD_PARALLEL_EXEC.update_status_R_to_N('CUTOVER')

[Calling] SELECT AD_ZD_PARALLEL_EXEC.getUtility_IDs(''CUTOVER'') FROM dual

Jobs failed with UNEXPECTED erors in current or any previous PHASE, count --> 0
[Done Calling] SELECT AD_ZD_PARALLEL_EXEC.getUtility_IDs(''CUTOVER'') FROM dual

[START_TASK] Processing CUTOVER Phase

[START_TASK] Executing SQL statement

Retriving information from database.

getUtility_IDs =
List of utility_id s :-
50005

>>>>>>>>>>>>>>>>>>>>>>>>>> 50005 >>>>>>>>>>>>>>>>>>>>>>>>>

Processing utility_id = 50005
noofworkers = 8
Spawning Workers ==>
Spawning Worker #1

Spawning Worker #2

Spawning Worker #3

Spawning Worker #4

Spawning Worker #5

Spawning Worker #6

Spawning Worker #7

Spawning Worker #8

Waiting for child process to complete utility_id
Connected.
Connected.

Session altered.


Session altered.

Connected.

Session altered.

Connected.
Connected.

Session altered.


Session altered.

Connected.
Connected.
Connected.

Session altered.


Session altered.


Session altered.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


Commit complete.


Commit complete.


Commit complete.


Commit complete.


Commit complete.


Commit complete.


Commit complete.


PL/SQL procedure successfully completed.


Commit complete.


All children cameout

<== Done Spawning Workers

Checking for any failed/unattended/incomplete tasks in this uid

Failed jobs in this phase and utility_id-> 0

Not-executed jobs in this phase and utility_id, count--> 0

<<<<<<<<<<<<<<<<<<<<<<<<<< 50005 <<<<<<<<<<<<<<<<<<<<<<<<<

Jobs failed with UNEXPECTED erors in current utility_id [ 50005 ]or any previous utility_id of current phase [ CUTOVER ], count -->0
If there is any AD_ZD% INVALIDS, Re-Compiling them after CUTOVER phase

[STOP_TASK] Processed CUTOVER Phase

Compiling Invalid Objects, invoking sys.utl_recomp.recomp_parallel()...

[STOP_TASK] DONE with sys.utl_recomp.recomp_parallel() call.

[STOP_TASK] ************** DONE *********************

[STOP_TASK] Exiting out SUCCESSFULLY.
[STOP_TASK] [Thu Jul 5 02:15:03 2012] Performing Automic DB cutover
[START_TASK] [Thu Jul 5 02:15:04 2012] Setting Patch Edition as Default Edition
[STOP_TASK] [Thu Jul 5 02:15:05 2012] Setting Patch Edition as Default Edition
[START_TASK] [Thu Jul 5 02:15:07 2012] Calling Post Cutover Script
[STOP_TASK] [Thu Jul 5 02:15:10 2012] Calling Post Cutover Script
[START_TASK] [Thu Jul 5 02:15:11 2012] Atomic File System Cutover
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012/TXK_CTRL_ctxupdate_Thu_Jul_5_02_15_13_2012/txkADOPCutOverPhaseCtrlScript_Thu_Jul_5_02_15_13_2012.log
Program : started @ Thu Jul 5 02:15:13 2012

*** Log File = /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012/TXK_CTRL_ctxupdate_Thu_Jul_5_02_15_13_2012/txkADOPCutOverPhaseCtrlScript_Thu_Jul_5_02_15_13_2012.log

Script Name : txkADOPCutOverPhaseCtrlScript.pl

Started : Thu Jul 5 02:15:13 EDT 2012




-----------
Values used
-----------
Context File : /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
PATCH Context File : /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
OUT Directory : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012
Action : ctxupdate


=========================

Inside executeAction()...

=========================





==========================

Validating context file...

==========================





================================

Validating PATCH context file...

================================





======================================

Validating APPS schema credentials...

======================================





=====================================

Validating SYSTEM user credentials...

=====================================





====================

Validating action...

====================



Action = ctxupdate



=============================

Inside updateFileEdition()...

=============================





======================

Inside backupFile()...

======================



Taking back up of the file

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

ACTUAL FILE : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/KITTU4_kasarla01.env

BACKUP LOCATION : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012/TXK_CTRL_ctxupdate_Thu_Jul_5_02_15_13_2012/PATCH_APPSKITTU4_kasarla01.env




======================

Inside backupFile()...

======================



Taking back up of the file

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

ACTUAL FILE : /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml

BACKUP LOCATION : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012/TXK_CTRL_ctxupdate_Thu_Jul_5_02_15_13_2012/PATCH_KITTU4_kasarla01.xml


Updating Context Variable

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

NAME : s_file_edition_type

VALUE : run


Update successful



===========================

Inside instantiateFile()...

===========================





**************************************************************

File Instantiation:

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

Template: /apps/backup/applmgr/R12_2/at1/EBSapps/appl/ad/12.0.0/admin/template/APPLSYS_ux.env

Instantiated location: /apps/backup/applmgr/R12_2/at1/EBSapps/appl/KITTU4_kasarla01.env

**************************************************************






======================

Inside backupFile()...

======================



Taking back up of the file

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

ACTUAL FILE : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/KITTU4_kasarla01.env

BACKUP LOCATION : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012/TXK_CTRL_ctxupdate_Thu_Jul_5_02_15_13_2012/RUN_APPSKITTU4_kasarla01.env




======================

Inside backupFile()...

======================



Taking back up of the file

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

ACTUAL FILE : /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml

BACKUP LOCATION : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012/TXK_CTRL_ctxupdate_Thu_Jul_5_02_15_13_2012/RUN_KITTU4_kasarla01.xml


Updating Context Variable

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

NAME : s_file_edition_type

VALUE : patch


Update successful



===========================

Inside instantiateFile()...

===========================





**************************************************************

File Instantiation:

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

Template: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/ad/12.0.0/admin/template/APPLSYS_ux.env

Instantiated location: /apps/backup/applmgr/R12_2/at2/EBSapps/appl/KITTU4_kasarla01.env

**************************************************************





Program : completed @ Thu Jul 5 02:15:39 2012

[STOP_TASK] [Thu Jul 5 02:15:39 2012] Atomic File System Cutover
[START_TASK] [Thu Jul 5 02:15:41 2012] Retiring the old editions
[STOP_TASK] [Thu Jul 5 02:15:43 2012] Retiring the old editions
[START_TASK] [Thu Jul 5 02:15:44 2012] Killing sessions connected to old edition
[STOP_TASK] [Thu Jul 5 02:15:52 2012] Killing sessions connected to old edition
[START_TASK] [Thu Jul 5 02:15:54 2012] Force Startup
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012/TXK_CTRL_forcestartup_Thu_Jul_5_02_15_56_2012/txkADOPCutOverPhaseCtrlScript_Thu_Jul_5_02_15_56_2012.log
Program : started @ Thu Jul 5 02:15:56 2012

*** Log File = /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012/TXK_CTRL_forcestartup_Thu_Jul_5_02_15_56_2012/txkADOPCutOverPhaseCtrlScript_Thu_Jul_5_02_15_56_2012.log

Script Name : txkADOPCutOverPhaseCtrlScript.pl

Started : Thu Jul 5 02:15:56 EDT 2012




-----------
Values used
-----------
Context File : /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
PATCH Context File : /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/appl/admin/KITTU4_kasarla01.xml
OUT Directory : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/admin/KITTU4_patch/log/TXK_CTRL_Thu_Jul_5_02_10_32_2012
Action : forcestartup


=========================

Inside executeAction()...

=========================





==========================

Validating context file...

==========================





================================

Validating PATCH context file...

================================





======================================

Validating APPS schema credentials...

======================================





=====================================

Validating SYSTEM user credentials...

=====================================





====================

Validating action...

====================



Action = forcestartup



================================

Inside forceStartupServices()...

================================





==============================

Inside execServiceControl()...

==============================



file_system: PATCH
srv_group: wls
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adnodemgrctl.sh
srv_status: enabled
srv_name: NodeManager
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adnodemgrctl.sh start -nopromptmsg

You are running adnodemgrctl.sh version 120.8

Starting the Node Manager...
NMProcess:
NMProcess: Jul 5, 2012 2:16:43 AM weblogic.nodemanager.server.NMServerConfig initDomainsMap
NMProcess: INFO: Loading domains file: /apps/backup/applmgr/R12_2/at1/FMW_Home/wlserver_10.3/common/nodemanager/nodemanager.domains
NMProcess:
NMProcess: Jul 5, 2012 2:16:43 AM weblogic.nodemanager.server.NMServer
NMProcess: INFO: Loaded node manager configuration properties from '/apps/backup/applmgr/R12_2/at1/FMW_Home/wlserver_10.3/common/nodemanager/nodemanager.properties'
NMProcess: Node manager v10.3
NMProcess:
NMProcess: Configuration settings:
NMProcess:
NMProcess: NodeManagerHome=/apps/backup/applmgr/R12_2/at1/FMW_Home/wlserver_10.3/common/nodemanager
NMProcess: ListenAddress=kasarla01.corporate.ge.com
NMProcess: ListenPort=5583
NMProcess: ListenBacklog=50
NMProcess: SecureListener=false
NMProcess: AuthenticationEnabled=true
NMProcess: NativeVersionEnabled=true
NMProcess: CrashRecoveryEnabled=false
NMProcess: JavaHome=/apps/backup/applmgr/R12_2/at1/FMW_Home/jrockit_160_22_D1.1.1-3
NMProcess: StartScriptEnabled=false
NMProcess: StopScriptEnabled=false
NMProcess: StartScriptName=startWebLogic.sh
NMProcess: StopScriptName=
NMProcess: LogFile=/apps/backup/applmgr/R12_2/at1/FMW_Home/wlserver_10.3/common/nodemanager/nodemanager.log
NMProcess: LogLevel=INFO
NMProcess: LogLimit=0
NMProcess: LogCount=1
NMProcess: LogAppend=true
NMProcess: LogToStderr=true
NMProcess: LogFormatter=weblogic.nodemanager.server.LogFormatter
NMProcess: DomainsFile=/apps/backup/applmgr/R12_2/at1/FMW_Home/wlserver_10.3/common/nodemanager/nodemanager.domains
NMProcess: DomainsFileEnabled=true
NMProcess: StateCheckInterval=500
NMProcess: QuitEnabled=true
NMProcess: UseMACBroadcast=false
NMProcess: DomainRegistrationEnabled=false
NMProcess: DomainsDirRemoteSharingEnabled=false
NMProcess:
NMProcess: Domain name mappings:
NMProcess:
NMProcess: EBS_AccessGate_KITTU4 -> /apps/backup/applmgr/sso/accessgate/domains/EBS_AccessGate_KITTU4
NMProcess: EBS_domain_KITTU4 -> /apps/backup/applmgr/R12_2/at1/FMW_Home/user_projects/domains/EBS_domain_KITTU4
NMProcess:
NMProcess:
NMProcess: Jul 5, 2012 2:16:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/apps/backup/applmgr/R12_2/at1/FMW_Home/user_projects/domains/EBS_domain_KITTU4/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess:
NMProcess: Jul 5, 2012 2:16:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/apps/backup/applmgr/R12_2/at1/FMW_Home/user_projects/domains/EBS_domain_KITTU4/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess:
NMProcess: Jul 5, 2012 2:16:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/apps/backup/applmgr/R12_2/at1/FMW_Home/user_projects/domains/EBS_domain_KITTU4/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess:
NMProcess: Jul 5, 2012 2:16:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/apps/backup/applmgr/R12_2/at1/FMW_Home/user_projects/domains/EBS_domain_KITTU4/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess:
NMProcess: Jul 5, 2012 2:16:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/apps/backup/applmgr/R12_2/at1/FMW_Home/user_projects/domains/EBS_domain_KITTU4/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess:
NMProcess: Jul 5, 2012 2:16:47 AM weblogic.nodemanager.server.Listener run
NMProcess: INFO: Plain socket listener started on port 5583, host kasarla01.corporate.ge.com
Refer /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adnodemgrctl.txt for details

adnodemgrctl.sh: exiting with status 0

adnodemgrctl.sh: check the logfile /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adnodemgrctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adnodemgrctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: PATCH
srv_group: wls
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adadminsrvctl.sh
srv_status: enabled
srv_name: AdminServer
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adadminsrvctl.sh start -nopromptmsg

You are running adadminsrvctl.sh version 120.7

Starting WLS Admin Server...
Refer /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adadminsrvctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: PATCH
srv_group: other
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adapcctl.sh
srv_status: enabled
srv_name: Oracle HTTP Server KITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adapcctl.sh start

You are running adapcctl.sh version 120.0

Starting OPMN managed Oracle HTTP Server (OHS) instance ...
opmnctl startproc: starting opmn managed processes...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adapcctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adapcctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: PATCH
srv_group: other
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adalnctl.sh
srv_status: enabled
srv_name: OracleTNSListenerAPPS_KITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adalnctl.sh start

adalnctl.sh version 120.3

Checking for FNDFS executable.
Starting listener process APPS_KITTU4.

adalnctl.sh: exiting with status 0


adalnctl.sh: check the logfile /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adalnctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adalnctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: PATCH
srv_group: wls
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh
srv_status: enabled
srv_name: oacore_server1
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh start oacore_server1 -nopromptmsg

You are running admanagedsrvctl.sh version 120.10

Calling txkChkFormsDeployment.pl to check whether latest FORMSAPP.EAR is deployed...
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012.log
Program : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl started @ Thu Jul 5 02:20:53 2012

*** Log File = /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012.log

Execute SYSTEM command : unzip /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/formsapp.ear -d /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012
Archive: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/formsapp.ear
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/META-INF/application.xml
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/formsweb.war
Execute SYSTEM command : unzip /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/formsweb.war -d /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012
Archive: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/formsweb.war
creating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/WEB-INF/
creating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/WEB-INF/lib/
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/WEB-INF/lib/frmsrv.jar
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/WEB-INF/orion-web.xml
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/WEB-INF/web.xml


LOCATION OF LATEST FRMSRV.JAR: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_20_52_2012/WEB-INF/lib/frmsrv.jar
SIZE OF LATEST FRMSRV.JAR: 207383
LOCATION OF EXISTING FRMSRV.JAR: /apps/backup/applmgr/R12_2/at1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/lib/frmsrv.jar
SIZE OF EXISTING FRMSRV.JAR: 207383
LOCATION OF EXISTING FRMSRV.JAR: /apps/backup/applmgr/R12_2/at1/FMW_Home/Oracle_EBS-app1/applications/forms/forms/WEB-INF/lib/frmsrv.jar
SIZE OF EXISTING FRMSRV.JAR: 207383
===========================================
*** Latest formsapp.ear already present ***
===========================================


LOCATION OF LATEST FRMALL.JAR: /apps/backup/applmgr/R12_2/at1/EBSapps/10.1.2/forms/java/frmall.jar
SIZE OF LATEST FRMALL.JAR: 1879477
LOCATION OF EXISTING FRMALL.JAR: /apps/backup/applmgr/R12_2/at1/FMW_Home/Oracle_EBS-app1/applications/forms-c4ws/formsclient/WEB-INF/lib/frmall.jar
SIZE OF EXISTING FRMALL.JAR: 1879477
=========================================
*** Latest frmall.jar already present ***
=========================================


Successfully Completed the script
Perl script txkChkFormsDeployment.pl got executed successfully


Starting oacore_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adoacorectl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: PATCH
srv_group: wls
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh
srv_status: enabled
srv_name: forms_server1
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh start forms_server1 -nopromptmsg

You are running admanagedsrvctl.sh version 120.10

Calling txkChkFormsDeployment.pl to check whether latest FORMSAPP.EAR is deployed...
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012.log
Program : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl started @ Thu Jul 5 02:28:15 2012

*** Log File = /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012.log

Execute SYSTEM command : unzip /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/formsapp.ear -d /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012
Archive: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/formsapp.ear
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/META-INF/application.xml
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/formsweb.war
Execute SYSTEM command : unzip /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/formsweb.war -d /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012
Archive: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/formsweb.war
creating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/WEB-INF/
creating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/WEB-INF/lib/
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/WEB-INF/lib/frmsrv.jar
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/WEB-INF/orion-web.xml
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/WEB-INF/web.xml


LOCATION OF LATEST FRMSRV.JAR: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_28_14_2012/WEB-INF/lib/frmsrv.jar
SIZE OF LATEST FRMSRV.JAR: 207383
LOCATION OF EXISTING FRMSRV.JAR: /apps/backup/applmgr/R12_2/at1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/lib/frmsrv.jar
SIZE OF EXISTING FRMSRV.JAR: 207383
LOCATION OF EXISTING FRMSRV.JAR: /apps/backup/applmgr/R12_2/at1/FMW_Home/Oracle_EBS-app1/applications/forms/forms/WEB-INF/lib/frmsrv.jar
SIZE OF EXISTING FRMSRV.JAR: 207383
===========================================
*** Latest formsapp.ear already present ***
===========================================


LOCATION OF LATEST FRMALL.JAR: /apps/backup/applmgr/R12_2/at1/EBSapps/10.1.2/forms/java/frmall.jar
SIZE OF LATEST FRMALL.JAR: 1879477
LOCATION OF EXISTING FRMALL.JAR: /apps/backup/applmgr/R12_2/at1/FMW_Home/Oracle_EBS-app1/applications/forms-c4ws/formsclient/WEB-INF/lib/frmall.jar
SIZE OF EXISTING FRMALL.JAR: 1879477
=========================================
*** Latest frmall.jar already present ***
=========================================


Successfully Completed the script
Perl script txkChkFormsDeployment.pl got executed successfully


Starting forms_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adformsctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: PATCH
srv_group: wls
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh
srv_status: enabled
srv_name: oafm_server1
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh start oafm_server1 -nopromptmsg

You are running admanagedsrvctl.sh version 120.10

Starting oafm_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adoafmctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: PATCH
srv_group: wls
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh
srv_status: enabled
srv_name: forms-c4ws_server1
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh start forms-c4ws_server1 -nopromptmsg

You are running admanagedsrvctl.sh version 120.10

Calling txkChkFormsDeployment.pl to check whether latest FORMSAPP.EAR is deployed...
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012.log
Program : /apps/backup/applmgr/R12_2/at1/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl started @ Thu Jul 5 02:32:43 2012

*** Log File = /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012.log

Execute SYSTEM command : unzip /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/formsapp.ear -d /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012
Archive: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/formsapp.ear
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/META-INF/application.xml
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/formsweb.war
Execute SYSTEM command : unzip /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/formsweb.war -d /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012
Archive: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/formsweb.war
creating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/WEB-INF/
creating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/WEB-INF/lib/
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/WEB-INF/lib/frmsrv.jar
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/WEB-INF/orion-web.xml
inflating: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/WEB-INF/web.xml


LOCATION OF LATEST FRMSRV.JAR: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/rgf/TXK/txkChkFormsDeployment_Thu_Jul_5_02_32_43_2012/WEB-INF/lib/frmsrv.jar
SIZE OF LATEST FRMSRV.JAR: 207383
LOCATION OF EXISTING FRMSRV.JAR: /apps/backup/applmgr/R12_2/at1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/lib/frmsrv.jar
SIZE OF EXISTING FRMSRV.JAR: 207383
LOCATION OF EXISTING FRMSRV.JAR: /apps/backup/applmgr/R12_2/at1/FMW_Home/Oracle_EBS-app1/applications/forms/forms/WEB-INF/lib/frmsrv.jar
SIZE OF EXISTING FRMSRV.JAR: 207383
===========================================
*** Latest formsapp.ear already present ***
===========================================


LOCATION OF LATEST FRMALL.JAR: /apps/backup/applmgr/R12_2/at1/EBSapps/10.1.2/forms/java/frmall.jar
SIZE OF LATEST FRMALL.JAR: 1879477
LOCATION OF EXISTING FRMALL.JAR: /apps/backup/applmgr/R12_2/at1/FMW_Home/Oracle_EBS-app1/applications/forms-c4ws/formsclient/WEB-INF/lib/frmall.jar
SIZE OF EXISTING FRMALL.JAR: 1879477
=========================================
*** Latest frmall.jar already present ***
=========================================


Successfully Completed the script
Perl script txkChkFormsDeployment.pl got executed successfully


Starting forms-c4ws_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/admanagedsrvctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: PATCH
srv_group: cm
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adcmctl.sh
srv_status: enabled
srv_name: OracleConcMgrKITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adcmctl.sh start -nopromptmsg

You are running adcmctl.sh version 120.19

Starting concurrent manager for KITTU4 ...
Starting KITTU4_0705@KITTU4 Internal Concurrent Manager
Default printer is noprint

adcmctl.sh: exiting with status 0


adcmctl.sh: check the logfile /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/logs/appl/admin/log/adcmctl.txt for more information ...

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adcmctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: RUN
srv_group: other
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/jtffmctl.sh
srv_status: enabled
srv_name: Oracle Fulfillment Server KITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/jtffmctl.sh start

You are running jtffmctl.sh version 120.3

Validating Fulfillment patch level via /apps/backup/applmgr/R12_2/at2/EBSapps/comn/java/classes
Fulfillment patch level validated.
Starting Fulfillment Server for KITTU4_patch on port 9328 ...

jtffmctl.sh: exiting with status 0

EXIT STATUS: 0
/apps/backup/applmgr/R12_2/at2/inst/apps/KITTU4_kasarla01/admin/scripts/jtffmctl.sh went through successfully.


==============================

Inside execServiceControl()...

==============================



file_system: PATCH
srv_group: mwa
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/mwactlwrpr.sh
srv_status: disabled
srv_name: Oracle MWA Service KITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/mwactlwrpr.sh start -nopromptmsg


Not executing the script /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/mwactlwrpr.sh as the service is DISABLED




==============================

Inside execServiceControl()...

==============================



file_system: PATCH
srv_group: other
ctrl_code: start
ctrl_script: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adformsrvctl.sh
srv_status: disabled
srv_name: OracleFormsServer-Forms KITTU4_kasarla01
apps_user: APPS
Executing SYSTEM command: /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adformsrvctl.sh start


Not executing the script /apps/backup/applmgr/R12_2/at1/inst/apps/KITTU4_kasarla01/admin/scripts/adformsrvctl.sh as the service is DISABLED



Program : completed @ Thu Jul 5 02:35:22 2012

[STOP_TASK] [Thu Jul 5 02:35:22 2012] Force Startup
Done with cutover phase.


Broadcast message from applmgr (pts/7) (Thu Jul 5 02:35:23 2012):

The context of the Oracle E-Business Suite system KITTU4_PATCH has been changed after the completion of Online Patching. All users connected to the Run or Patch file system must now re-source the Oracle E-Business Suite Applications Environment.
[STOP_TASK] [Thu Jul 5 02:35:23 2012] Performing Cutover Phase steps
[START_TASK] [Thu Jul 5 02:35:25 2012] : Cancelling concurrent program

Concurrent Request Number :

[STOP_TASK] [Thu Jul 5 02:35:28 2012] : Cancelling concurrent program

[STOP_TASK] [Thu Jul 5 02:35:28 2012] Invoking cutover phase
[START_TASK] [Thu Jul 5 02:35:30 2012] Generating Report displaying Covered Objects per Edition
[START_TASK] [Thu Jul 5 02:35:31 2012] Report showing the Summary of Covered Objects per Edition
Report is captured in file : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/out/adzdcobjs.out.

=========================================================================
= Covered Objects per Edition
=========================================================================

EDITION_NAME ACTUAL STUB TOTAL
--------------- ---------- ---------- ----------
V_20120627_1154 9 0 9

[STOP_TASK] [Thu Jul 5 02:36:00 2012] Report showing the Summary of Covered Objects per Edition
Report is captured in file : /apps/backup/applmgr/R12_2/at2/EBSapps/appl/admin/KITTU4/out/adzdcobjs.out.

[STOP_TASK] [Thu Jul 5 02:36:01 2012] Generating Report displaying Covered Objects per Edition
The context of the Oracle E-Business Suite system KITTU4_PATCH has been changed after the completion of Online Patching. All users connected to the Run or Patch file system must now re-source the Oracle E-Business Suite Applications Environment.

[STOP_TASK] [Thu Jul 5 02:36:04 2012] Executing adzdoptl.pl

adop exiting with status = 0
[applmgr@kasarla01 13398481]$ date
Thu Jul 5 02:38:01 EDT 2012
[applmgr@kasarla01 13398481]$


R12 CLONING

Table of Contents

Overview 4
Prepare PROD Instance (Source) 4
Preparing DEV4 instance (Destination) 4
Clean up development application (DEV4) 8
Clean up development database (DEV4) 8
Clone production database over development 9
Database tier configuration 12
Application tier configuration 15
Appendix 22
A. Cloning database with Catalog and NBU 22
B. Cloning database with catalog and no connecting to target. ( Using DBID ) 23
C. Cloning database without Catalog and without NBU 23
D. Cloning database with Active Clone 25
E. RDBMS Clone 25
F. Issues and fixes 26

Overview

This document provides step-by-step instructions on how to cloneCentral Corporate Ledger Production (PROD) which is an Oracle E-business Suite (EBS) version 12 to a development instance (DEV4). It includes database and application.


Prepare PROD Instance (Source)

1. Prepare source system database tier for cloning.

As Oracle on hostdb65

. PROD
cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
perl adpreclone.pl dbTier


2. Prepare source system application tier for cloning.

As appPROD on hostapp61

cd $ADMIN_SCRIPTS_HOME
perl adpreclone.pl appsTier


3. Take Source Applications backup.

As root on hostdb65

pbrunsu–

RDBMS and CHECKIN Backup (Conditional …)

nohupdbp65/dba01/oracle/admin/BackupApplfs.sh \
/dbp65/dba01/oracle/PROD1/admin/PROD_hostdbp65_fs.xml /fstshr/bac>> \
/dbp65/dba01/oracle/PROD1/audit/backup_apps_PROD_hostdbp65.audit`date +\%m\%d` 2>&1 &

APPS, COMMON, iAS and Web/Forms tiers

nohup/dbp65/dba01/oracle/admin/BackupApplfs.sh \
/dbp65/dba01/oracle/PROD1/admin/PROD_hostapp61_fs.xml/fstshr/backup>>\
/dbp65/dba01/oracle/PROD1/audit/backup_apps_PROD_hostapp61.audit`date +\%m\%d` 2>&1&


Preparing DEV4 instance (Destination)

4. Take backup of some target db customizations.
– DB links

As Oracle on hostdb65

sqlplus / as sysdba

spool $SID_HOME/info/db_links.sh

select ‘create database link ‘||db_link||’ connect to ‘||username||’ identified by using ”’||host||”’;’
fromdba_db_links
wheredb_link not in ( ‘APPS_TO_APPS.CORPORATE.GE.COM’,
‘EDW_APPS_TO_WH.US.ORACLE.COM’,
‘EDW_APPS_TO_WH.CORPORATE.GE.COM’,
‘APPS_TO_APPS.US.ORACLE.COM’)


5. Backup Custom schemas.

As Oracle on hostdb65

. DEV4

mkdir -p /fsdshr/backup/oracle/DEV4/datapump
sqlplus / as sysdba
CREATE OR REPLACE DIRECTORY DATA_PUMP_DIR AS ‘/fsdshr/backup/oracle/DEV4/datapump’;
Exit;

sqlplus apps/xxxx
set pages 0
set lines 200
spool $SID_HOME/scripts/exp_custom.sh
SELECT ‘expdp system/$(tellme system)@DEV4 schemas=’|| name ||’ directory=DATA_PUMP_DIR dumpfile=’|| name|| ‘_DEV4.dmp logfile=’||name ||’_DEV4.log’
FROM sys.user$
WHERE name in (
select username
fromdba_users
whereaccount_status ‘LOCKED’
AND username IN(
select username
fromdba_users
where username not in( ‘SYS’,
‘SYSTEM’,
‘APPLSYSPUB’,
‘APPLSYS’,
‘APPS’,
‘APPS_MRC’,
‘DBSNMP’,
‘SSOSDK’,
‘AD_MONITOR’,
‘CTXSYS’,
‘EDWREP’,
‘ODM’,
‘JUNK_PS’,
‘MDSYS’,
‘ODM_MTR’,
‘OLAPSYS’,
‘ORDPLUGINS’,
‘ORDSYS’,
‘OUTLN’,
‘OWAPUB’,
‘PORTAL30_DEMO’,
‘PORTAL30_PUBLIC’,
‘PORTAL30_PS’,
‘PORTAL30_SSO_PUBLIC’,
‘PORTAL30’,
‘PORTAL30_SSO’,
‘DMSYS’,
‘PERFSTAT’,
‘NGSSQUIRREL’,
‘BBMON’,
‘IBA’,
‘IMT’,
‘IPD’,
‘MDDATA’,
‘ME’,
‘MGDSYS’,
‘OKB’,
‘OKO’,
‘OKR’,
‘ORACLE_OCM’,
‘OZP’,
‘OZS’,
‘RHX’,
‘RLA’,
‘SCOTT’,
‘SI_INFORMTN_SCHEMA’,
‘VEH’,
‘XDB’,
‘XNS’,
‘ABM’,
‘AHM’,
‘AMF’,
‘ANONYMOUS’,
‘CSMIG’,
‘CSS’,
‘CUE’,
‘CUN’,
‘DIP’,
‘EAA’,
‘EM_MONITOR’,
‘EUL_US’,
‘EVM’,
‘FPT’,
‘XNC’,
‘XNI’,
‘XNM’,
‘SPATIAL_WFS_ADMIN_USR’,
‘APPQOSSYS’,
‘SPATIAL_CSW_ADMIN_USR’,
‘ORDDATA’,
‘COECBOSTATS’,
‘XS$NULL’)
MINUS
select ORACLE_USERNAME
fromfnd_oracle_userid
)
);
Spool off
Exit

As Oracle on hostdb65

chmod 700 $SID_HOME/scripts/exp_custom.sh
nohup $SID_HOME/scripts/exp_custom.sh > $SID_HOME/audit/exp_custom.log &


6. Backup custom schema passwords.

As Oracle on hostdb65

sqlplus apps/
set pages 0
spool $SID_HOME/info/custom_pwd.txt
select ‘alter user ‘ || name || ‘ identified by values ”’ || password ||”’;’
fromsys.user$
where name = ‘GECL’ or
name IN(
select username
fromdba_users
where username not in( ‘SYS’,
‘SYSTEM’,
‘APPLSYSPUB’,
‘APPLSYS’,
‘APPS’,
‘APPS_MRC’,
‘DBSNMP’,
‘SSOSDK’,
‘AD_MONITOR’,
‘CTXSYS’,
‘EDWREP’,
‘ODM’,
‘JUNK_PS’,
‘MDSYS’,
‘ODM_MTR’,
‘OLAPSYS’,
‘ORDPLUGINS’,
‘ORDSYS’,
‘OUTLN’,
‘OWAPUB’,
‘PORTAL30_DEMO’,
‘PORTAL30_PUBLIC’,
‘PORTAL30_PS’,
‘PORTAL30_SSO_PUBLIC’,
‘PORTAL30’,
‘PORTAL30_SSO’,
‘DMSYS’,
‘PERFSTAT’,
‘NGSSQUIRREL’,
‘BBMON’,
‘IBA’,
‘IMT’,
‘IPD’,
‘MDDATA’,
‘ME’,
‘MGDSYS’,
‘OKB’,
‘OKO’,
‘OKR’,
‘ORACLE_OCM’,
‘OZP’,
‘OZS’,
‘RHX’,
‘RLA’,
‘SCOTT’,
‘SI_INFORMTN_SCHEMA’,
‘VEH’,
‘XDB’,
‘XNS’,
‘ABM’,
‘AHM’,
‘AMF’,
‘ANONYMOUS’,
‘CSMIG’,
‘CSS’,
‘CUE’,
‘CUN’,
‘DIP’,
‘EAA’,
‘EM_MONITOR’,
‘EUL_US’,
‘EVM’,
‘FPT’,
‘XNC’,
‘XNI’,
‘XNM’,
‘SPATIAL_WFS_ADMIN_USR’,
‘APPQOSSYS’,
‘SPATIAL_CSW_ADMIN_USR’,
‘ORDDATA’,
‘COECBOSTATS’,
‘XS$NULL’)
MINUS
select ORACLE_USERNAME
fromfnd_oracle_userid
);


7. Backup GECL_TOP.

As root on hostdb65

pbrunsu –
cd/fsdshr/DEV4/appDEV4/appl
tarcvf – gecl 2>/fsdshr/backup/apps/DEV4_hostapp61/gecl_top.tar.idx|gzip -c | split -b2000m – /fsdshr/backup/apps/DEV4_hostapp61/gecl_top.tar.gz

Clean up development application (DEV4)

8. Shut down Applications server processes on development application servers.

hostapp61
5 apd62

pbrunsu – appDEV4

$ADMIN_SCRIPTS_HOME/adstpall.sh apps/apps_password


9. Remove application directories (Wait until all components are stopped)

pbrunsu –
[root@hostapp61 ~]# cd/fsdshr/DEV4/appDEV4
[root@hostapp61 ~]#rm -rfapplcomninst tech
[root@hostapp61 ~]# exit


Clean up development database (DEV4)

10. Blackout DEV4 targets from OEM.

11. Comment all crontab entries related to DEV4

As oracle on hostdb65

Crontab -e
## Clone 00 21 * * * /dbd65/dba01/oracle/admin/utility.sh DEV4> /dbd65/dba01/oracle/DEV41/audit/utility.audit 2>&1
## Clone 00 5,17 * * * /dbd65/dba01/oracle/admin/utility.sh DEV4utility_arch.ctl> /dbd65/dba01/oracle/DEV41/audit/backup_rman_arch.audit`date +\%m\%d` 2>&1


12. Backup Spfile outside ASM

As oracle on hostdb65

sqlplus / as sysdba
createpfile=’$ORACLE_HOME/dbs/initDEV4_before_drop.ora’ from spfile;


13. Drop Auxiliary Database

As Oracle on hostdbd6

. DEV4

sqlplus / as sysdba
alter system set cluster_database=FALSE scope=spfile;
quit

srvctl stop database -d DEV4

sqlplus / as sysdba

startup force mount
alter system enable RESTRICTED session;
exit

– Clean up archive log ASM

rman target=/ nocatalog<< EOF RUN { DELETE NOPROMPT ARCHIVELOG ALL; } EXIT; EOF -Drop the database. As Oracle on hostdbd6 sqlplus / as sysdba drop database;
14. Stop dynamic listener for Auxiliary Database (Target Database)

As Oracle on hostdbd6

. DEV4
srvctl stop listener -l lstnDEV4


Clone production database over development

15. Decide if RDBMS is with same patch level

Check with opatch command if DEV4 and PROD are with the same patch level.

Follow the steps onAppendix E “RDBMS Clone” in case you need to clone RDBMS


16. Create new empty init.ora file

As Oracle on hostdbd6

vi $ORACLE_HOME/dbs/initDEV4_clone.ora
db_name=”DEV4″

17. Verify communication between both databases

As oracle on hostdb65

Test you are able to connect both server as sysdba

vi$TNS_ADMIN/DEV41_hostdb65_ifile.ora
# — Target DB
PROD_stage =
(DESCRIPTION =
( ADDRESS = (PROTOCOL = TCP)
( HOST = hostapp61.domain.com )(PORT = 1544))
( CONNECT_DATA =
( SID = PROD1)
( SERVICE_NAME = PROD))
)

# — Auxiliary DB
DEV4_dev =
(DESCRIPTION =
( ADDRESS = (PROTOCOL = TCP)
( HOST = hostdb65.domain.com )(PORT = 1542))
( CONNECT_DATA =
( SID = DEV41 )
( SERVICE_NAME = DEV4.domain.com ))
)

vi $TNS_ADMIN/listener_ifile.ora

SID_LIST_LSTNDEV4 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = DEV4.domain.com)
(ORACLE_HOME =/DEV4/oracle/DEV4db/11.2.0.2)
(SID_NAME = DEV41)
)
)

LSTNDEV4 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST=hostdb65.domain.com)(PORT = 1542))
)


18. Start static listener for Auxiliary Database

As oracle on hostdb65

lsnrctl start lstnDEV4


19. Startup auxiliary database in NOMOUNT

As oracle on hostdb65

sqlplus / as sysdba
startupnomountpfile=$ORACLE_HOME/dbs/initDEV4_clone.ora
exit


20. Recreate password file using prod sys password.

As oracle on hostdb65

cd $ORACLE_HOME/dbs
mvorapw${ORACLE_SID} orapw${ORACLE_SID}.old
orapwd file=orapw${ORACLE_SID} PASSWORD= entries=5 ignorecase=y


21. Test the connectivity between both sides.

As oracle on hostdb65

sqlplussys@PROD_stage as sysdba
alter database disable block change tracking;

sqlplus sys@DEV4_dev as sysdba


22. Clone database

Start a vnc server session and connect as oracle and DEV4.

Start a vnc server session as oracle on hostdb65

Choose the approach to clone database from the append section.

Append A. Cloning database with Catalog and NBU
Append B. Cloning database with catalog and no connecting to target. (Using DBID)
Append C. Cloning database without Catalog and without NBU
Append D. Cloning database with Active Clone (Not tested yet)

23. Remove thread 3 and redologs (Only for Dev).

As oracle on hostdb65

sqlplus / as sysdba

alter database disable thread 3;

select lf.MEMBER
from V$LOGFILE lf
where exists ( Select ‘x’ from V$LOG l
wherelf.GROUP# = l.GROUP#
and THREAD# = 3 );

+ERPD_REDOA_VG/DEV4/redo/redog7t3a.log
+ERPD_REDOB_VG/DEV4/redo/redog7t3b.log
+ERPD_REDOA_VG/DEV4/redo/redog8t3a.log
+ERPD_REDOB_VG/DEV4/redo/redog8t3b.log
+ERPD_REDOA_VG/DEV4/redo/redog9t3a.log
+ERPD_REDOB_VG/DEV4/redo/redog9t3b.log

select ‘alter database drop logfile group ‘ || GROUP# || ‘;’
from V$LOG l
where THREAD# = 3;

alter database drop logfile group 7;
alter database drop logfile group 8;
alter database drop logfile group 9;

As grid on hostdb65

pbrunsu – grid
sqlplus / as sysasm

ALTER DISKGROUP ERPD_REDOA_VG DROP FILE
‘+ERPD_REDOA_VG/DEV4/redo/redog7t3a.log’;

ALTER DISKGROUP ERPD_REDOB_VG DROP FILE
‘+ERPD_REDOB_VG/DEV4/redo/redog7t3b.log’;

ALTER DISKGROUP ERPD_REDOA_VG DROP FILE
‘+ERPD_REDOA_VG/DEV4/redo/redog8t3a.log’;

ALTER DISKGROUP ERPD_REDOB_VG DROP FILE
‘+ERPD_REDOB_VG/DEV4/redo/redog8t3b.log’;

ALTER DISKGROUP ERPD_REDOA_VG DROP FILE
‘+ERPD_REDOA_VG/DEV4/redo/redog9t3a.log’;

ALTER DISKGROUP ERPD_REDOB_VG DROP FILE
‘+ERPD_REDOB_VG/DEV4/redo/redog9t3b.log’;


24. Disable Checkin process Jobs.

As oracle on hostdb65

. DEV4
sqlplus / as sysdba

executedbms_scheduler.disable(‘GECL.CCLCHECKIN_JOB’);
executedbms_scheduler.disable(‘GECL.CCLCHECKIN_JOB_DEL’);


25. Restore spfile.

As oracle on hostdb65

shutdown immediate

startupnomountpfile=$ORACLE_HOME/dbs/initDEV4_after_clone.ora
createspfile=’+DEV4DB_VG/DEV4/SPFILE/spfileDEV4.ora’ from
pfile=’$ORACLE_HOME/dbs/initDEV4_after_clone.ora’;

shutdown immediate
exit

Database tierconfiguration

26. Stop static Listener and start dinamic listener

As oracle on hostdb65

lsnrctl stop lstnDEV4
srvctl start listener -l lstnDEV4


27. Start DB with autostart

As oracle on hostdb65

srvctl start instance -d DEV4 -iDEV41
srvctl start instance -d DEV4 -iDEV42


28. Update the RDBMS ORACLE_HOME file system with AutoConfig files.

As oracle on hostdb65

cd $ORACLE_HOME/
scphostdbp65:/fstshr/PROD/appPROD/inst/apps/PROD_hostapp61/admin/out/appsutil.zip .

mvappsutilappsutil.bk
unzip -o appsutil.zip
cdappsutil.bk
tarcvf – jre | (cd $ORACLE_HOME/appsutil; tar xf -)

On hostdbq66 and hostdbq67 as oracle

cd $ORACLE_HOME/
mvappsutilappsutil.bk
scp hostdbp65:$ORACLE_HOME/appsutil.zip .
unzip -o appsutil.zip
cdappsutil.bk
tarcvf – jre | (cd $ORACLE_HOME/appsutil; tar xf -)


29. Deregister the current database server

– Purge Source fnd_nodes and Service Topology Model

As oracle on hostdb65

sqlplus apps/[APPS password]
execfnd_net_services.remove_system(‘PROD’);
commit;
execfnd_conc_clone.setup_clean;
commit;
exit

– Clean up Concurrent Managers.

cd $SID_HOME/sql

sqlplus apps/[apps password]
@cmclean.sql
commit;


30. Cancel any Scheduled Custom concurrent program

As oracle on hostdbb65

updatefnd_concurrent_requests
setstatus_code=’X’, phase_code=’C’
whererequest_id IN(select DISTINCT a.request_id
fromapps.fnd_concurrent_requests a,
apps.FND_CONCURRENT_PROGRAMS_VL c
wherea.phase_code in (‘P’,’R’,’I’)
anda.concurrent_program_id = c.concurrent_program_id(+)
andc.USER_CONCURRENT_PROGRAM_NAME like ‘CCL%’);

commit;
exit;


31. Generate the context file on each database node

NODE 1 – hostdbd65

As oracle on hostdb65

. DEV4
cd$ORACLE_HOME/appsutil/bin
perl adbldxml.pl appsuser=apps appspass=pwd

Do you want to enable SCAN addresses[N]: Y
Specify value for s_scan_name: fserpd-scan.domain.com
Specify value for s_scan_port: 1525
Enter the value for Display Variable: hostdb65:1.0

NODE 2 – hostdbd66

As oracle on hostdbd66

. DEV4
cd $ORACLE_HOME/appsutil/bin
perl adbldxml.pl appsuser=apps appspass=pwd

Do you want to enable SCAN addresses[N]: Y
Specify value for s_scan_name: fserpd-scan.domain.com
Specify value for s_scan_port: 1525
Enter the value for Display Variable: hostdbd66:1.0


32. Update the context file just created

NODE 1 – hostdbd65

As oracle on hostdb65

vi /DEV4/oracle/DEV4db/11.2.0.2/appsutil/DEV41_hostdb65.xml
hostdb65-vip

NODE 2 – hostdbd66

As oracle on hostdbd66

vi /DEV4/oracle/DEV4db/11.2.0.2/appsutil/DEV42_hostdbd66.xml
hostdbd66-vip

33. Run Autoconfig on all DB tiers

Run Autoconfig on all database nodes

– NODE 1 on hostdb65 as oracle

cd $ORACLE_HOME/appsutil
$ORACLE_HOME/appsutil/bin/adconfig.sh contextfile=DEV41_hostdb65.xml

– NODE 2 on hostdbd66 as oracle

cd $ORACLE_HOME/appsutil
$ORACLE_HOME/appsutil/bin/adconfig.sh contextfile=DEV42_hostdbd66.xml


34. Create custom database env. variable file

– NODE 1 on hostdb65 as oracle

cd $ORACLE_HOME

vi customDEV41_hostdb65.env
CHECKIN_TOP=/fsdshr/DEV4/usrDEV4
export CHECKIN_TOP

– NODE 2 on hostdbd66 as oracle

cd $ORACLE_HOME

vi customDEV42_hostdbd66.env
CHECKIN_TOP=/fsdshr/DEV4/usrDEV4
export CHECKIN_TOP


35. Run the library update script against the database

NODE 1 on hostdb65 as oracle

cd $ORACLE_HOME/appsutil/install/$CONTEXT_NAME

sqlplus / as sysdba @adupdlib.sql so


Application tier configuration

36. Copying source apps binaries into the target

On Database tier hostdb65 as oracle

cd/fsdshr/backup/apps/PROD_hostapp61
scp kasarla@ hostapd61:/fspshr/backup/apps/PROD1_hostapp61/APPL_TOP* .
scp kasarla@ hostapd61:/fspshr/backup/apps/PROD1_hostapp61/COMMON_TOP* .
scp kasarla@ hostapd61:/fspshr/backup/apps/PROD1_hostapp61/iAS_ORACLE_HOME* .
scp kasarla@ hostapd61:/fspshr/backup/apps/PROD1_hostapp61/TOOLS_ORACLE_HOME* .


37. Uncompressing apps binaries into the target

As appPROD on hostapp61

cd /fsdshr/DEV4/appDEV4

cat/fsdshr/backup/apps/PROD_alphostapp61/APPL_TOP_PROD_hostapp61.tar.gz*|gunzip -c |tar xvf –
cat /fsdshr/backup/apps/PROD_hostapp61/COMMON_TOP_PROD_hostapp61.tar.gz*|gunzip -c |tar xvf–

mkdir tech
cd tech
cat /fsdshr/backup/apps/PROD_hostapp61/iAS_ORACLE_HOME_PROD_hostapp61.tar.gz*|gunzip -c |tar xvf –
cat /fsdshr/backup/apps/PROD_hostapp61/TOOLS_ORACLE_HOME_PROD_hostapp61.tar.gz*|gunzip -c |tar xvf –


38. Create temporal tns listener entry on hostapp61

As appPROD on hostapp61

cd /fsdshr/DEV4/appDEV4/tech/10.1.2/network/admin
rmtnsnames.ora

vitnsnames.ora
DEV4=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=hostdb65.domain.com)(PORT=1542))
(CONNECT_DATA=
(SERVICE_NAME=DEV4)
(INSTANCE_NAME=DEV41)
)
)


39. Configure the Primary Target Application Node (hostapp61)

As appPROD on hostapp61

cd /fsdshr/DEV4/appDEV4/comn/clone/bin

perl adcfgclone.pl appsTier
Enter the APPS password :

Target System Hostname: hostapp61
Target System Domain Name: domain.com
Target System Database SID : DEV4
Target System Database Server Node : hostdb65
Target System Database Domain Name : domain.com
Target System Base Directory : /fsdshr/DEV4/appDEV4
Target System Tools ORACLE_HOME Directory : /fsdshr/DEV4/appDEV4/tech/10.1.2
Target System Web ORACLE_HOME Directory: /fsdshr/DEV4/appDEV4/tech/10.1.3
Target System APPL_TOP Directory : /fsdshr/DEV4/appDEV4/appl
Target System COMMON_TOP Directory: /fsdshr/DEV4/appDEV4/comn
Target System Instance Home Directory : /fsdshr/DEV4/appDEV4/inst
Target System Root Service: enabled
Target System Web Entry Point Services: enabled
Target System Web Application Services: enabled
Target System Batch Processing Services: enabled
Target System Other Services: enabled
Do you want to preserve the Display: n
Target System Display: hostapp61:1.0
Do you want the target system to have the same port: n
Target System Port Pool [0-99] : 21
Value which will be set as APPLPTMP: 1
Do you want to reset custom variable settings(y/n) n


40. – Prepare primary node (hostapp61), executing pre-clone as follow:

As appPROD on hostapp61

cd /fsdshr/DEV4/appDEV4/appl

. APPSDEV4_hostapp61.env
cd $INST_TOP/admin/scripts
perl adpreclone.pl appsTier


41. Add Node 2 (hostapd62)

As appPROD on hostapd62

cd /fsdshr/DEV4/appDEV4/comn/clone/bin
perl adclonectx.pl addnode contextfile=/fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapp61/appl/admin/DEV4_hostapp61.xml
apps_password

Target System Hostname: hostapd62
Target System Domain Name domain.com
Do you want the inputs to be validated (y/n) [n] ? : y
Target System Root Service: enabled
Target System Web Entry Point Services: enabled
Target System Web Application Services: enabled
Target System Batch Processing Services: enabled
Target System Other Services: enabled
Do you want to preserve the Display: n
Target System Display: hostapd62:1.0
Do you want the target system to have the same port: n
Target System Port Pool [0-99] : 21
Value which will be set as APPLPTMP: 1
Do you want to reset custom variable settings(y/n) n


42. Update apps configuration editing context file

All application servers:

hostapp61

vi/fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapp61/appl/admin/DEV4_hostapp61.xml

hostapd62

vi/fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapd62/appl/admin/DEV4_hostapd62.xml

Parameter New value
s_webentryhost dev3.ccl
s_webentrydomain finance.domain.com
s_login_page http://dev4.domain.com:8027/OA_HTML/AppsLogin

s_external_url http://dev4.domain.com:8027
s_cookie_domain .finance.domain.com
s_oc4j_cluster_nodes hostapp61.domain.com:6221,hostapd62.domain.com:6221
s_smtphost e2ksmtp01
s_smtpdomainname e2k.ad.domain.com
s_javamailer_imap_user r00239602
s_javamailer_reply_to r00239602 @mail.ad.domain.com

s_forms_path Add the following paths:
:/fsdshr/DEV4/appDEV4/appl/au/12.0.0/forms/US:/fsdshr/DEV4/appDEV4/appl/gecl/12.0.0/forms/US
s_adovar_ldlib Append the following path:
/fsdshr/DEV4/appDEV4/appl/Adobe/Reader8/bin:
s_tools_twotask DEV4_BALANCE
s_weboh_twotask DEV4_BALANCE
s_cp_twotask DEV4_BALANCE


43. Run Autoconfig Node 2 (hostapd62)

As appDEV4 on hostapd62

cd /fsdshr/DEV4/appDEV4/appl/ad/12.0.0/bin
perl adconfig.pl contextfile=/fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapd62/appl/admin/DEV4_hostapd62.xml
Enter the APPS user password: apps_password

44. Run Autoconfig Node 1 (hostapp61)

As appDEV4 on hostapd62

cd /fsdshr/DEV4/appDEV4/appl/ad/12.0.0/bin
perl adconfig.pl contextfile=/fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapp61/appl/admin/DEV4_hostapp61.xml
Enter the APPS user password: apps_password

45. Compile invalid APPS objects using adadmin

As appDEV4 on hostapp61

On hostapp61
adadmin system password/apps_password
3. Compile/Reload Applications Database Entities menu
1. Compile APPS schema

Enter the number of workers [48] :
Run Invoker Rights processing in incremental mode [No] ?


46. Configure status flag for BigIP

As appDEV4 on hostapp61

mkdir -p $INST_TOP/portal/status
cd $INST_TOP/portal/status
scp kasarla@hostapq61:/fstshr/PROD/appPROD/inst/apps/PROD_hostapp61/portal/status/status.html .

As appDEV4 on hostapd62

. /fsdshr/DEV4/appDEV4/appl/APPSDEV4_hostapd62.env
mkdir -p $INST_TOP/portal/status
cd $INST_TOP/portal/status
cp /fsdshr/DEV4/appDEV4/inst/apps/DEV4_hostapp61/portal/status/status.html.


47. Create custom environment files

As appDEV4 on hostapd61

cd $APPL_TOP
vicustomDEV4_hostapp61.env
GECL_TOP=/fsdshr/DEV4/appDEV4/appl/gecl/12.0.0
DISPLAY=hostapp61.domain.com:1.0
PATH=$PATH:/fsdshr/DEV4/appDEV4/appl/Adobe/Reader8/bin
export GECL_TOP DISPLAY PATH

As appDEV4 on hostapd62

cd $APPL_TOP
vi customDEV4_hostapd62.env
GECL_TOP=/fsdshr/DEV4/appDEV4/appl/gecl/12.0.0
DISPLAY=hostapd62.domain.com:1.0
PATH=$PATH:/fsdshr/DEV4/appDEV4/appl/Adobe/Reader8/bin
export GECL_TOP DISPLAY PATH


48. Change Product Schemas Passwords.

As oracle on hostdb65

$ . DEV4

sqlplus / as sysdba

ALTER PROFILE ebs_profile LIMIT PASSWORD_VERIFY_FUNCTION NULL;
ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL;

alter user sys identified by ;
alter user system identified by account unlock;

As appDEV4 on hostapd61

FNDCPASS APPS/ 0 Y SYSTEM/ SYSTEM APPLSYS
FNDCPASS APPS/ 0 Y SYSTEM/ ALLORACLE
FNDCPASS APPS/ 0 Y SYSTEM/ USER SYSADMIN

As oracle on hostdb65

sqlplus / as sysdba

ALTER PROFILE ebs_profile LIMIT PASSWORD_VERIFY_FUNCTION F_GE_PASSWORD_VERIFY;
ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION F_GE_PASSWORD_VERIFY;

49. Register to SSO each application node.

As appDEV4 on hostapd61

cd $APPL_TOP/../temp/bin
./ssoreg_r12_linux DEV4 PROD

As appPROD on hostapd62

cd $APPL_TOP/../temp/bin
./ssoreg_r12_linux DEV4 PROD


50. Per Bug 1237624.1 execute fnd_oid_plug.setPlugin.

Connect DB as apps

sqlplus apps/

executefnd_oid_plug.setPlugin;

SELECT count(*) FROM fnd_user_preferences WHERE user_name=’#INTERNAL’ AND
module_name=’OID_CONF’;

COUNT(*)
———-
13


51. Start application in all servers.

As appDEV4 on hostapd61

$ADMIN_SCRIPTS_HOME/adstrtal.sh apps/apps_password

As appDEV4 on hostapd62

$ADMIN_SCRIPTS_HOME/adstrtal.sh apps/apps_password


52. Change Site Name.

As sysadmin

http://dev4.domain.com:8024/OA_HTML/AppsLocalLogin.jsp

System Administrator responsibility –> Profile –> System
Enter “Site Name”
Change its value to “DEV4 (DEV4 on RAC)” and save


53. Update nodes for Concurrent Programs.

As sysadmin

http://dev4.domain.com:8024/OA_HTML/AppsLocalLogin.jsp

System Administrator responsibility
–> Concurrent –> Manager –> Define
Hit Ctrl+F11 and go thru each concurrent manager.
Update those who have a primary/secondary node.
hostapp61 –>hostapd61
hostapp62 –> hostapd62
hostapp63 –> hostapd62


54. Activate Internal Monitor(s)

As sysadmin

http://dev4.domain.com:8027/OA_HTML/AppsLocalLogin.jsp

Go to Concurrent>Manager>Define
For each Internal Monitor concurrent manager
(Query for Internal Monitor%)
– Click on Work Shifts button
– Assign the following values and save
Work Shift = Standard
Processes = 1
Enable it, clicking on Enabled check box (first screen) and save

55. Set Workflow correct password for imap user

Update password for workflow ID (Corp210User)


56. Restore original GECL_TOP into target.

As root on hostapd61

pbrunsu –
cd /fsdshr/DEV4/appDEV4/appl
mvgeclgecl_bak

cat/fsdshr/backup/apps/DEV4_hostapp61/gecl_top.tar.gz*|gunzip -c |tar xvf –


57. Execute basic testing.

http://dev4.domain.com:8027/OA_HTML/AppsLogin
http://dev4.domain.com:8027/OA_HTML/AppsLocalLogin.jsp

– Login to application.
– Execute a report
– Send a test Workflow message


58. Restore previous passwords for custom DB ID.

See $SID_HOME/info/custom_pwd.txt


59. Restore missing DB Links.

60. Create default sfile used by ad patches.

As appDEV4 on hostapd61

adpatchdefaultsfile=${APPL_TOP}/admin/${TWO_TASK}/${TWO_TASK}_def.txt

Fill out the information required for APPS and SYSTEM


61. Reconfigure RMAN Backups.

62. Uncomment crontab entries for backups.

63. Clean up all files required to clone

64. Create zip file for autoconfig


Appendix

A. Cloning database with Catalog and NBU

Use this approach if you want to clone from a specific time and backup is on tape.

rmanrman TARGET sys/catalog rcatstg/@rmns AUXILIARY / | tee $SID_HOME/audit/rmanclone_$ORACLE_SID.`date +%d%m_%H%M`.log
run {
set until time “to_date(’24-06-2012 23:00:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel ch1 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch2 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch3 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch4 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch5 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch6 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch7 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch8 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
duplicate target database to ‘DEV4’
NOFILENAMECHECK
spfile
setdb_unique_name=’DEV4′
set DB_FILE_NAME_CONVERT=’+PRODDB_VG/PROD/DATAFILE’,’+DEV4DB_VG/DEV4/DATAFILE’
set LOG_FILE_NAME_CONVERT=’+ERPD_REDOA_VG/PROD’,’+ERPD_REDOA_VG/DEV4′,
‘+ERPD_REDOB_VG/PROD’,’+ERPD_REDOB_VG/DEV4′
set SGA_TARGET=”8G”
set sga_max_size=”8G”
set CONTROL_FILES=’+ERPD_REDOA_VG/DEV4/control/control01.ctl’,
‘+ERPD_REDOB_VG/DEV4/control/control02.ctl’
setlog_archive_max_processes=’5′
set log_archive_dest_1=’LOCATION=+ERPD_ARCH_VG/DEV4′
setdiagnostic_dest=’/DEV4/oracle/oracle_base’
setaudit_file_dest=’/DEV4/oracle/oracle_base/audit/DEV4/DEV41′
set compatible=’11.2.0.2′
setjob_queue_processes=’0′
setaq_tm_processes=’0′
set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=hostdb65-vip.domain.com)(PORT=1542))’
setremote_listener=’1525′
setcluster_database=’FALSE’; }


B. Cloning database with catalog and no connecting to target.( Using DBID )

Use this approach if you want to clone from a specific time in the past, backup is on tape but target is down.

rman catalog rcatstg/@rmns AUXILIARY / | tee $SID_HOME/audit/rmanclone_$ORACLE_SID.`date +%d%m_%H%M`.log
run {
set DBID 884570082 # DBID from PROD
set until time “to_date(’24-06-2012 23:00:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel ch1 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch2 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch3 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch4 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch5 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch6 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch7 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
allocate auxiliary channel ch8 type ‘sbt_tape’ parms
‘ENV=(NB_ORA_SERVER=ghnbumstr1_b,NB_ORA_CLIENT=hostdbp65_b)’;
duplicate target database to ‘DEV4’
NOFILENAMECHECK
spfile
setdb_unique_name=’DEV4′
set DB_FILE_NAME_CONVERT=’+PRODDB_VG/PROD/DATAFILE’,’+DEV4DB_VG/DEV4/DATAFILE’
set LOG_FILE_NAME_CONVERT=’+ERPD_REDOA_VG/PROD’,’+ERPD_REDOA_VG/DEV4′,
‘+ERPD_REDOB_VG/PROD’,’+ERPD_REDOB_VG/DEV4′
set SGA_TARGET=”8G”
set sga_max_size=”8G”
set CONTROL_FILES=’+ERPD_REDOA_VG/DEV4/control/control01.ctl’,
‘+ERPD_REDOB_VG/DEV4/control/control02.ctl’
setlog_archive_max_processes=’5′
set log_archive_dest_1=’LOCATION=+ERPD_ARCH_VG/DEV4′
setdiagnostic_dest=’/DEV4/oracle/oracle_base’
setaudit_file_dest=’/DEV4/oracle/oracle_base/audit/DEV4/DEV41′
set compatible=’11.2.0.2′
setjob_queue_processes=’0′
setaq_tm_processes=’0′
set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=hostdb65-vip.domain.com)(PORT=1542))’
setremote_listener=’1525′
setcluster_database=’FALSE’; }


C. Cloning database without Catalog and without NBU

Use this approach if you want to clone where a Backup sets are on dislfor all (data files, control files and archive logs).

Copy all Backup set for datafiles, Control file and archives to a single directory

BACKUP LOCATION ‘/fsdshr/backup/oracle/DEV4/oracle/PROD/incr’

Copy Backup set from Stage

Connect to server hostdb65 as oracle as DEV4

mkdir –p /fsdshr/backup/oracle/DEV4/oracle/PROD/incr
cd /fsdshr/backup/oracle/DEV4/oracle/PROD/incr
scphostdb65:/fstshr/backup/oracle/PROD/oracle/PROD1/incr/PROD*06242012*
scp hostdb65:/fstshr/backup/oracle/PROD/oracle/PROD1/control/PROD*06242012*
scp hostdb65:/fstshr/backup/oracle/PROD/oracle/PROD1/arch/PROD*06242012*

In case you need to restore archive logs on stage server directory.

Connect to stage database server as oracle

grep “input archived log thread=” $SID_HOME/audit/PROD_backup_rman.audit0624 | \
awk ‘{print $4 $5}’|sort

rman target / catalog rcatstg/@rmns | tee $SID_HOME/audit/rmanclone_$ORACLE_SID.`date +%d%m_%H%M`.log
run {
allocate channel ch1 type ‘sbt_tape’;
allocate channel ch2 type ‘sbt_tape’;
allocate channel ch3 type ‘sbt_tape’;
setarchivelog destination to ‘/fspshr/backup/oracle/PROD/arch_temp’;
restorearchivelog from logseq 2950 until logseq 2962 THREAD 1;
restorearchivelog from logseq 2766 until logseq 2776 THREAD 2;
restorearchivelog from logseq 2946 until logseq 2954 THREAD 3;
release channel ch1;
release channel ch2;
release channel ch3;
}

Transfer restored archive logs to Development server.

Connect to Dev 3 database server as oracle

mkdir -p /fsdshr/backup/oracle/DEV4/oracle/PROD/arch
cd/fsdshr/backup/oracle/DEV4/oracle/PROD/arch
scphostdbp65:/fsqshr/backup/oracle/PROD/arch_temp/*arc .

As oracle on hostdb65

sqlplus / as sysdba
startupnomountpfile=$ORACLE_HOME/dbs/initDEV4_clone.ora
exit

rman AUXILIARY / | tee $SID_HOME/audit/rmanclone_$ORACLE_SID.`date +%d%m_%H%M`.log
run {
ALLOCATE AUXILIARY CHANNEL CH1 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH2 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH3 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH4 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH5 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH6 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH7 TYPE DISK;
ALLOCATE AUXILIARY CHANNEL CH8 TYPE DISK;
duplicate database to ‘DEV4’
BACKUP LOCATION ‘/fsdshr/backup/oracle/DEV4/oracle/PROD/incr’
NOFILENAMECHECK
spfile
setdb_unique_name=’DEV4′
set DB_FILE_NAME_CONVERT=’+PRODDB_VG/PROD/DATAFILE’,’+DEV4DB_VG/DEV4/DATAFILE’
set LOG_FILE_NAME_CONVERT=’+ERPD_REDOA_VG/PROD’,’+ERPD_REDOA_VG/DEV4′,
‘+ERPD_REDOB_VG/PROD’,’+ERPD_REDOB_VG/DEV4′
set SGA_TARGET=”8G”
set sga_max_size=”8G”
set CONTROL_FILES=’+ERPD_REDOA_VG/DEV4/control/control01.ctl’,
‘+ERPD_REDOB_VG/DEV4/control/control02.ctl’
setlog_archive_max_processes=’5′
set log_archive_dest_1=’LOCATION=+ERPD_ARCH_VG/DEV4′
setdiagnostic_dest=’/DEV4/oracle/oracle_base’
setaudit_file_dest=’/DEV4/oracle/oracle_base/audit/DEV4/DEV41′
set compatible=’11.2.0.2′
setjob_queue_processes=’0′
setaq_tm_processes=’0′
set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=hostdb65-vip.domain.com)(PORT=1542))’
setremote_listener=’1525′
setcluster_database=’FALSE’; }


D. Cloning database with Active Clone

Still Pending

E. RDBMS Clone

As your Linux ID on hostdb65 get the latest Oracle home backup from PROD

mkdir /fsdshr/backup/apps/PROD
scp kasarla@hostdbp65:/fspshr/backup/apps/PROD1_hostdbp65/RDBMS_ORACLE_HOME* .

As root hostdb65

pbrun su –
cd /DEV4/oracle/DEV4db
mv 11.2.0.2 11.2.0.2_old
cat /fsdshr/backup/apps/PROD/RDBMS_ORACLE_HOME_PROD_hostdbp65.tar.gz* \
|gunzip -c |tar xvf –

As oracle hostdb65

cd $ORACLE_HOME/oui/bin/
./runInstaller -detachHome ORACLE_HOME=$ORACLE_HOME

Starting Oracle Universal Installer…

Checking swap space: must be greater than 500 MB. Actual 55926 MB Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /fserpq/oracle/oraInventory
‘DetachHome’ failed.

cd $ORACLE_HOME/clone/bin
perl clone.pl ORACLE_HOME=”$ORACLE_HOME” ORACLE_HOME_NAME=”OraDb11g_${ORACLE_SID}” \
ORACLE_BASE=”$ORACLE_BASE” OSDBA_GROUP=oinstall OSOPER_GROUP=oinstall

cd $ORACLE_HOME/bin
pbrun $ORACLE_HOME/root.sh

cd /DEV4/oracle/DEV4db/11.2.0.2/bin
pbrunchgrpasmadmin oracle
pbrunchmod 6751 oracle

ls -l oracle
-rwsr-s–x 1 oracle asmadmin 229087634 Jun 5 00:09 oracle

pbrunchown root $ORACLE_HOME/rdbms/admin/externaljob.ora
pbrunchown root $ORACLE_HOME/bin/jssu
pbrunchmod 4750 $ORACLE_HOME/bin/jssu
pbrunchown root $ORACLE_HOME/bin/extjob
pbrunchmod 4750 $ORACLE_HOME/bin/extjob

pbrun vi $ORACLE_HOME/rdbms/admin/externaljob.ora
run_user = nobody
run_group = nobody
run_user = usrDEV4
run_group = gecl

cd $ORACLE_HOME
rmPROD_hostdbp65.env
rm -rfappsutil appsutil_bk.zip appsutil.zip

cd /DEV4/oracle/DEV4db/11.2.0.2_old
tarcvf – appsutil |(cd /DEV4/oracle/DEV4db/11.2.0.2; tar xvf -)

Grant directory (and subdir permissions) as follow:

cd $ORACLE_HOME/..
setfacl -R -m user:usrDEV4:r-x 11.2.0.2

getfacl 11.2.0.2
# file: 11.2.0.2
# owner: oracle
# group: dba
user::rwx
user:usrDEV4:r-x
group::rwx
mask::rwx

cd $ORACLE_HOME
mvdbsdbs.old
cd /DEV4/oracle/DEV4db/11.2.0.2_old
tarcvf – dbs|(cd $ORACLE_HOME; tar xvf -)

cd $ORACLE_HOME/network
mv admin admin.old
cd /DEV4/oracle/DEV4db/11.2.0.2_old/network/
tarcvf – admin |(cd $ORACLE_HOME/network; tar xvf -)

Repeat the same steps for hostdbd66

F. Issues and fixes

ERROR
“System Hold, Fix Manager before resetting counters”.

Finally as per the note:985835.1, I have done the following

1. Stop all middle tier services including the concurrent managers.
Please make sure that no FNDLIBR, FNDSM, or any dead process is running.

2. Stop the database.

3. Start the database.

4. Go to cd $FND_TOP/bin
$ adrelink.sh force=y link_debug=y “fnd FNDLIBR”
$ adrelink.sh force=y link_debug=y “fnd FNDFS”
$ adrelink.sh force=y link_debug=y “fnd FNDCRM”
$ adrelink.sh force=y link_debug=y “fnd FNDSM”

5. Run the CMCLEAN.SQL script from the referenced note below (don’t forget to commit).

6. Execute the following SQL:

select CONCURRENT_QUEUE_NAME from FND_CONCURRENT_QUEUES where
CONCURRENT_QUEUE_NAME like ‘FNDSM%’;

7. Start the middle tier services including your concurrent manager.

Now all of my concurrent managers are back to normal.

UPGRADE EBS R12 WITH 11gr2


Contents

Oracle E-Business Suite R12 with Oracle Database 11gR2 3
Preparation Tasks Section 3
Pre-Installation Tasks Section: 3
Upgrade Autoconfig to the latest version. 3
Apply the 11g Release 2 interoperability patch for Release 12.0.4 (8623536) 4
Run Autoconfig 4
Apply patch 6400501 5
Deregister the current database server (skip) 5
Update application tier context file with new database listener port number (skip) 5
Installation Tasks Section 6
Database Installation 6
Database Upgrade 7
Post-Installation Tasks Section 21
After the Database Upgrade 21

Oracle E-Business Suite R12 with Oracle Database 11gR2
Preparation Tasks Section
a) Stop checkin process daemon
b) Comment any schedule crontab job
c) Perform full-backup (database/apps)
d) Verify /etc/oraInst.loc is pointing to the correct oraInventory instance
#
# If the Oracle inventory is not setup correctly this utility will
# fail. To check accessibility to the inventory you can use the
# command
#
# % opatch lsinventory
#
e) Perform an inicial count of invalid db objects
#
set pagesize 500
set linesize 100

select substr(comp_name,1,40) comp_name, status, substr(version,1,10) version from
dba_registry order by comp_name;

select substr(object_name,1,40) object_name,substr(owner,1,15) owner,object_type from
dba_objects where status=’INVALID’ order by owner,object_type;

select owner,object_type,count(*) from dba_objects where status=’INVALID’ group by
owner,object_type order by owner,object_type ;
Pre-Installation Tasks Section:
Upgrade Autoconfig to the latest version.
Apply the TXK AutoConfig Template patch 7237313
Patch # 7237313 R12.TXK.A.DELTA.6
Product Techstack Lang US, HU ESA Size 27M (28423760 bytes)
Pre-install Tasks
None
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u7237313.drv (This is the unified driver)
Post-install Tasks
None
Comments
None
Copy AutoConfig to the RDBMS ORACLE_HOME
Update the RDBMS ORACLE_HOME file system with the AutoConfig files by performing the following steps:

On the application tier (as the APPLMGR user):

Log in to the APPL_TOP environment (source the environment file)
Create appsutil.zip file
perl /bin/admkappsutil.pl
This will create appsutil.zip in /admin/out

On the database tier (as the ORACLE user):
Copy or FTP the appsutil.zip file to the cd
unzip -o appsutil.zip

Do not run autoconfig until after below patch is applied
Apply the 11g Release 2 interoperability patch for Release 12.0.4 (8623536)
Patch # 8623536 INTEROPERABILITY PATCH FOR R12 ON 11.2 RDBMS
Product Applications Updates Lang US, HU, ESA Size 60M (62983654 bytes)
Preparation tasks
Required Code levels
R12.AD.A.delta.4
R12.ATG_PF.A.delta.4
R12.TXK.A.delta.6
Pre-install Tasks
1. Source the Applications environment file
2. Run the Patch Application Assistant by entering “admsi.pl”.
3. Run the adgrants.sql script as a user that can connect as SYSDBA to grant privileges to selected SYS objects and create PL/SQL profiler objects.

Usage:

1. Create $ORACLE_HOME/appsutil/admin on the database server.

2. Compare the version of adgrants.sql(UNIX) in $APPL_TOP/admin
to that in patch directory.

3. Copy the higher version of adgrants.sql (UNIX) to
$ORACLE_HOME/appsutil/admin.

4. Set the environment to point to ORACLE_HOME on the database server.

5. Use SQL*Plus to run the script:

UNIX:
$ sqlplus /nolog
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql
Apply The Patch
u8623536.drv
Post-install Tasks
None
Comments
None
Run Autoconfig
Run AutoConfig on the database tier and then on the applications tier
Apply patch 6400501
Apply patch 6400501 to the iAS 10.1.2 (TOOLS) Applications tier Oracle home

Patch # 6400501 APPSST11G:1203:NOT ABLE TO COMPILE FORMS LIBRARRY WITH 11G DB
Product PLSQL Lang Linux-86 Size 8.7K (8907 bytes)
Pre-install Tasks
None
Apply The Patch
# To apply the patch, unzip the PSE container file:
#
# p6400501_10105_LINUX.zip
#
# Set your current directory to the directory where the patch
# is located:
#
# % cd 6400501
#
# Ensure that the directory containing the opatch script appears in
# your $PATH; then enter the following command:
#
# % opatch apply
Post-install Tasks
# Patch Special Instructions:
# —————————
#
# For Apps Users on R12 Apps Tier (10.1.0.5):
# Execute:
# $ cd $ORACLE_HOME/forms/lib32
# Note: if this directory does not exist: cd $ORACLE_HOME/forms/lib
# $ make -f ins_forms.mk install
# $ cd $ORACLE_HOME/reports/lib32
# Note: if this directory does not exist: cd $ORACLE_HOME/reports/lib
# $ make -f ins_reports.mk install
#
# % opatch lsinventory
Comments
For Linux x86-64 environments, download the Linux 32-bit version of the patch as the Applications tier Oracle home is 32-bit.
Deregister the current database server (skip)
If you plan to change the database port, host, SID, or database name parameter on the database server, you must also update AutoConfig on the database tier and deregister the current database server node.
Update application tier context file with new database listener port number (skip)
The new 11.2.0 Oracle home uses its own database listener for the database instance, replacing the current database listener.
Installation Tasks Section
Database Installation
Prepare to create the 11.2.0 Oracle home
The 11.2.0 Oracle home must be installed on the database server node in a different directory than the current Oracle home.

Install the base 11.1.0 software
Log in to the database server node as the owner of the Oracle RDBMS file system and database instance. Ensure that environment settings, such as ORACLE_HOME, are set for the new Oracle home you are about to create, and not for any existing Oracle homes on the database server node. Perform all the steps in Chapter 3 of the Oracle Database Installation Guide 11g Release 2 (11.2) for your platform.

1. Download the software
2. Extract the Installation Files
3. Run Oracle Universal Installer
$ ./runInstaller

In the Installation Types window, use the Product Languages button to select any languages other than American English that are used by your Applications database instance. Choose the Enterprise Edition installation type. In the subsequent windows, select the options not to upgrade an existing database and to install the database software only.
Install Oracle Database 11g Products from the 11g Examples CD (skip)
On the database server node, as the owner of the Oracle RDBMS file system and database instance, perform the tasks in section 3, “Download Oracle Database Examples” in the Oracle Database Examples CD Installation Guide.

In the Installation Types window, use the Product Languages button to select any languages other than American English that are used by your Applications database instance.

After the installation, make sure that:

The ORACLE_BASE environment variable must be set accordingly.
The ORACLE_HOME environment variable points to the new 11.2.0 Oracle home.
The PATH environment variable includes $ORACLE_HOME/bin and the directory where the new perl executable is located (usually $ORACLE_HOME/perl/bin).
The LD_LIBRARY_PATH environment variable includes $ORACLE_HOME/lib.
The PERL5LIB environment variable points to the directories where the new perl libraries are located (usually $ORACLE_HOME/perl/lib/ and $ORACLE_HOME/perl/lib/site_perl/)
Create nls/data/9idata directory
On the database server node, as the owner of the Oracle RDBMS file system and database instance, run the $ORACLE_HOME/nls/data/old/cr9idata.pl script to create the $ORACLE_HOME/nls/data/9idata directory.

After creating the directory, make sure that the ORA_NLS10 environment variable is set to the full path of the 9idata directory whenever you enable the 11g Oracle home.
Apply additional 11.1.0.6 RDBMS patches
Apply the following patches:

For all UNIX/Linux platforms apply patch 9218789.

Patch # 9218789 N-APPLY BUNDLE PATCH FOR RDBMS 11.2.0.1 WITH EBS RELEASE 12
Product RDBMS Server Lang GENERIC Size 21.8 MB
Preparation tasks
None
Pre-install Tasks
Shut down services running from the ORACLE_HOME
Apply The Patch
Patch Installation Steps:
————————-
1. Set your current directory to the directory where the patch is located.

% cd /9218789

2. Apply the patch.

Use the following command to apply the patch to the ORACLE_HOME:

% opatch napply -skip_subset -skip_duplicate

When OPatch starts, it will validate the patch and make sure there
are no conflicts with the software already installed in the ORACLE_HOME.
OPatch categorizes two types of conflicts:

(a) Conflicts with a patch already applied to the ORACLE_HOME
In this case, please stop the patch installation and contact
Oracle Support Services.

(b) Conflicts with subset patch already applied to the ORACLE_HOME
In this case, please continue the install, as the new patch
contains all the fixes from the existing patch in the ORACLE_HOME.
The subset patch will automatically be rolled back prior to the
installation of the new patch.
Post-install Tasks
Run only the catmgdidcode.sql and utlrp.sql
SQL> @?/md/admin/catmgdidcode.sql
SQL> @?/rdbms/admin/utlrp.sql
Comments
Do not run any of the post install instructions as those will be done after the upgrade.
Database Upgrade
Shut down Applications server processes and database listener
On each application tier server node, shut down all server processes or services. On the database tier server node, shut down the Oracle Net or Net8 database listener in the old Oracle home.

Note: The Applications will be unavailable to users until all remaining tasks in this section are completed.
Drop SYS.ENABLED$INDEXES (conditional – skip)
If the SYS.ENABLED$INDEXES table exists, use SQL*Plus to connect to the database as SYSDBA and running the following command to drop it:

SQL> drop table sys.enabled$indexes;
Prepare to upgrade
Database Upgrade Assistant
Database Upgrade Assistant (DBUA) interactively steps you through the upgrade
process and configures the database for the new Oracle Database 11g release. DBUA
automates the upgrade process by performing all of the tasks normally performed
manually. DBUA makes appropriate recommendations for configuration options such
as tablespaces and redo logs. You can then act on these recommendations.
DBUA provides support for Oracle Real Application Clusters (Oracle RAC). In an
Oracle RAC environment, DBUA upgrades all the database and configuration files on
all nodes in the cluster.
Upgrade the database instance

The instructions for the database upgrade are outlined in Oracle Database Upgrade Guide 11g Release 2 (11.2) Chapters 3 and 4.

Perform the steps from the “Run the Pre-Upgrade Information Tool” section to the “Upgrade the Database Using the Database Upgrade Assistant” section of chapter 3 and any step in chapter 4 that is relevant to your environment.
Run the Pre-Upgrade Information Tool
1. Log in to the system as the owner of the Oracle Database 11g Release 2 (11.2)
Oracle home directory.

2. Copy the Pre-Upgrade Information Tool (utlu112i.sql) from the Oracle
Database 11g Release 2 (11.2) ORACLE_HOME/rdbms/admin directory to a
directory outside of the Oracle home, such as the temporary directory on your
system. Make a note of the new location of this file.

3. Log in to the system as the owner of the Oracle home directory of the database to
be upgraded.

4. Change to the directory that you copied utlu112i.sql to in Step 2.

5. Start SQL*Plus.

6. Connect to the database instance as a user with SYSDBA privileges.

7. Set the system to spool results to a log file for later analysis:
SQL> SPOOL upgrade_info.log

8. Run the Pre-Upgrade Information Tool:
SQL> @utlu112i.sql

9. Turn off the spooling of script results to the log file:
SQL> SPOOL OFF
Check the output of the Pre-Upgrade Information Tool in upgrade_info.log.

Findings:
MODIFY them from init file (before upgrade – restart database)
WARNING: –> “java_pool_size” needs to be increased to at least 64 MB

Attention: Before performing any upgrade or maintenance operation, all customers must have the _disable_fast_validate parameter in their initialization file. Database shouldn’t be bounced.

Before database upgrade.
WARNING: –> Database contains schemas with stale optimizer statistics.
…. Refer to the Upgrade Guide for instructions to update
…. schema statistics prior to upgrading the database.
…. Component Schemas with stale statistics:
…. SYS
…. OLAPSYS
Oracle recommends that you use the DBMS_
STATS.GATHER_DICTIONARY_STATS procedure to gather these statistics. For example, you can enter the following:
SQL> EXEC DBMS_STATS.GATHER_DICTIONARY_STATS;

WARNING: –> Database contains INVALID objects prior to upgrade.
…. The list of invalid SYS/SYSTEM objects was written to
…. registry$sys_inv_objs.
…. The list of non-SYS/SYSTEM objects was written to
…. registry$nonsys_inv_objs.
…. Use utluiobj.sql after the upgrade to identify any new invalid
…. objects due to the upgrade.
…. USER IDMCCL has 1 INVALID objects.
…. USER PUBLIC has 1 INVALID objects.
…. USER CCLRDC has 1 INVALID objects.
…. USER 501729051 has 1 INVALID objects.
…. USER APPS has 2 INVALID objects.
…. USER SYS has 2 INVALID objects.
Re-run utlrp.sql and keep the count of the invalid objects.

REPLACE THEM from the init file (consider them for the 11gR2 init.ora file)
–> background_dump_dest 11.1 DEPRECATED replaced by
“diagnostic_dest”
–> user_dump_dest 11.1 DEPRECATED replaced by
“diagnostic_dest”
–> core_dump_dest 11.1 DEPRECATED replaced by
“diagnostic_dest”

REMOVE them from init file (consider them for the 11gR2 init.ora file)
–> plsql_native_library_dir 11.2 OBSOLETE
–> plsql_native_library_subdir_ 11.2 OBSOLETE

After completing the database upgrade.
WARNING: –> Database is using a timezone file older than version 11.
…. After the release migration, it is recommended that DBMS_DST package
…. be used to upgrade the 10.2.0.4.0 database timezone version
…. to the latest version which comes with the new release.

Use the DBMS_DST PL/SQL package and follow the instructions
in “Steps to Upgrade Time Zone File and Timestamp with Time
Zone Data” in Oracle Database Globalization Support Guide.

WARNING: –> Database contains schemas with objects dependent on network packages.
…. Refer to the Upgrade Guide for instructions to configure Network ACLs.
…. USER APPS has dependent objects.

Use below PL/SQL block for restoring/configuring the Network ACLs. Only APPS user is affected.
DECLARE
acl_path VARCHAR2(4000);
BEGIN
SELECT acl INTO acl_path FROM dba_network_acls
WHERE host = ‘host_name’ AND lower_port IS NULL AND upper_port IS NULL;
IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(acl_path,
‘user_name’,’connect’) IS NULL THEN
DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl_path,
‘user_name’, TRUE, ‘connect’);
END IF;
EXCEPTION
WHEN no_data_found THEN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(‘ACL_name.xml’,
‘ACL description’, ‘user_name’, TRUE, ‘connect’);
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(‘ACL_name.xml’,’host_name’);
END;
COMMIT;

1– Execute the anonymous PL/SQL code
2- Enter name of the user to whom the access has to be given
3- Enter which Privilege to be granted. Privilege can be Connect / Resolve.
4- Enter name of the Access Control List XML file.
* See additional info in Metalink Note 453756.1

When running dbua, set the _disable_fast_validate parameter using the following command:

Disable Database Vault (from new 11gR2 rdbms ORACLE_HOME) as follow:

cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk dv_off lbac_off ioracle

$ dbua -initParam “_disable_fast_validate=TRUE”

When upgrading all statistics tables, note that Oracle E-Business Suite has only one statistics table, APPLSYS.FND_STATTAB, that needs to be upgraded.

If you plan to change the PL/SQL compilation mode, disable the compilation of objects.
Using the Database Upgrade Assistant
On Linux or UNIX platforms, enter the following command at a system
prompt in the Oracle Database 11g Release 2 (11.2) environment:
dbua

Select the database you want to upgrade to Oracle Database 11g Release 2 (11.2).

Select Recompile invalid objects at the end of upgrade

Select Not Move Database Files as Part of Upgrade

Setup Fast Recovery Area location ??? – Unselect

Configure the Database with Enterprise Manager (Local/Central Management) – DISABLE all options

Setup Database credentials for DBSNMP and SYSMAN (needed for EM)

You might face following error during the upgrade process:

ORA-01408: such column list already indexed
create index system.repcat$_audit_column_f2_idx on
system.repcat$_audit_column(base_sname,base_oname,base_conflict_type_id, base_reference_name)
/
system.repcat$_audit_column(base_sname,base_oname,base_conflict_type_id,
*
ERROR at line 2:
ORA-01408: such column list already indexed

Cause
An extra index exist on the database which shouldn’t exist.
It is created probably by an APPS oneoff.

Unpublished Bug 5589516 “APPSST: 11G UPGRADE ERRORS OUT WITH INDEX CREATION”

Solution
— To implement the solution, please execute the following steps::

1.- connect as sysdba to the database
2.- remove the offending index:
drop index system.REPCAT$_AUDIT_COLUMN_IDX1;
3.
3.1 -If the upgrade has finished without any other error:
create index system.repcat$_audit_column_f2_idx
on system.repcat$_audit_column
(base_sname,base_oname,base_conflict_type_id, base_reference_name);
3.2.- If the upgrade was cancelled or more errors were reported retry the upgrade manually (see Note 429825.1) :
$ cd $ORACLE_HOME/rdbms/admin
$ sqlplus “/ as sysdba”
SQL> startup UPGRADE
SQL> set echo on
SQL> SPOOL upgrade.log
SQL> @catupgrd.sql
SQL> spool off
Modify initialization parameters
Use the following sections in document 396009.1, Database Initialization Parameter Settings for Oracle Applications Release 12 on My Oracle Support as a guideline:

 Common database initialization parameters
 Release-specific database initialization parameters for 11gR2
 Database initialization parameter sizing

Ensure the parameter “_disable_fast_validate=TRUE” is in the initialization file. This line will have to be commented out after the upgrade and any other maintenance procedures.

Attention: If you encounter the error:
ORA-04030: out of process memory when trying to allocate 822904 bytes (pga heap, kco buffer)
ORA-07445: exception encountered: core dump [dbgtfdFileWrite()+48]
then set the _pga_max_size initialization parameter to a larger value as follows:
_pga_max_size=104857600
Restart your database.

If native compilation of PL/SQL code is disabled in your database instance, ignore the initialization parameters that pertain to the native compilation of PL/SQL code. Ensure that the temporary tablespace is properly defined. Follow the instructions in the Temporary Tablespace Setup section.
Note: There are many ways to generate the parameter file (for example, copying and updating an old init.ora parameter file). You are not confined to using the parameter files generated by the database upgrade assistant.
Perform post-install instructions
a) Recreate index system.repcat$_audit_column_f2_idx in case it had to be dropped earlier.
create index system.repcat$_audit_column_f2_idx
on system.repcat$_audit_column
(base_sname,base_oname,base_conflict_type_id, base_reference_name);

b) Update the database timezone version (see the log work below)

SQL> column PROPERTY_NAME format a30
SQL> column VALUE format a30
SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME;

PROPERTY_NAME VALUE
—————————— ——————————
DST_PRIMARY_TT_VERSION 4
DST_SECONDARY_TT_VERSION 0
DST_UPGRADE_STATE NONE

SQL> SELECT version FROM v$timezone_file;

VERSION
———-
4

SQL> exec DBMS_DST.BEGIN_PREPARE(11)

PL/SQL procedure successfully completed.

SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME;
2 3 4
PROPERTY_NAME VALUE
—————————— ——————————
DST_PRIMARY_TT_VERSION 4
DST_SECONDARY_TT_VERSION 11
DST_UPGRADE_STATE PREPARE

SQL> TRUNCATE TABLE SYS.DST$TRIGGER_TABLE;
TRUNCATE TABLE sys.dst$affected_tables;
TRUNCATE TABLE sys.dst$error_table;

Table truncated.

SQL>
Table truncated.

SQL>
Table truncated.

SQL>
SQL> BEGIN
DBMS_DST.FIND_AFFECTED_TABLES
(affected_tables => ‘sys.dst$affected_tables’,
log_errors => TRUE,
log_errors_table => ‘sys.dst$error_table’);
END;
/ 2 3 4 5 6 7

PL/SQL procedure successfully completed.

SQL> SELECT * FROM sys.dst$affected_tables;

no rows selected

SQL> EXEC DBMS_DST.END_PREPARE;

PL/SQL procedure successfully completed.

SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME; 2 3 4

PROPERTY_NAME VALUE
—————————— ——————————
DST_PRIMARY_TT_VERSION 4
DST_SECONDARY_TT_VERSION 0
DST_UPGRADE_STATE NONE

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup upgrade;
ORACLE instance started.

Total System Global Area 2142679040 bytes
Fixed Size 1337720 bytes
Variable Size 922748552 bytes
Database Buffers 1191182336 bytes
Redo Buffers 27410432 bytes
Database mounted.
Database opened.
SQL> set serveroutput on
SQL> purge dba_recyclebin;

DBA Recyclebin purged.

SQL> TRUNCATE TABLE SYS.DST$TRIGGER_TABLE;
TRUNCATE TABLE sys.dst$affected_tables;
TRUNCATE TABLE sys.dst$error_table;
Table truncated.

SQL>
Table truncated.

SQL>

Table truncated.

SQL> EXEC DBMS_DST.BEGIN_UPGRADE(11)
An upgrade window has been successfully started.

PL/SQL procedure successfully completed.

SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME; 2 3 4

PROPERTY_NAME VALUE
—————————— ——————————
DST_PRIMARY_TT_VERSION 11
DST_SECONDARY_TT_VERSION 4
DST_UPGRADE_STATE UPGRADE

SQL> column OWNER format a20
SQL> column TABLE_NAME a30
SQL> column TABLE_NAME format a30
SQL> column UPGRADE_IN_PROGRESS format a20
SQL> SELECT OWNER, TABLE_NAME, UPGRADE_IN_PROGRESS FROM ALL_TSTZ_TABLES where UPGRADE_IN_PROGRESS=’YES’;

OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
APPLSYS AQ$_WF_WS_SAMPLE_L YES
APPLSYS AQ$_WF_NOTIFICATION_OUT_L YES
APPLSYS AQ$_WF_REPLAY_OUT_L YES
ASO AQ$_ASO_ORDER_FEEDBACK_T_L YES
APPLSYS AQ$_WF_WS_JMS_IN_L YES
APPLSYS AQ$_WF_WS_JMS_OUT_S YES
APPLSYS AQ$_WF_WS_JMS_IN_S YES
APPLSYS AQ$_WF_JMS_IN_S YES
APPLSYS AQ$_WF_IN_S YES
APPLSYS AQ$_WF_REPLAY_OUT_S YES
AR AQ$_HZ_JMS_OUT_L YES

OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
AR AQ$_HZ_JMS_OUT_S YES
APPLSYS AQ$_WF_WS_JMS_OUT_L YES
APPLSYS AQ$_WF_JMS_IN_L YES
APPLSYS AQ$_WF_IN_L YES
APPLSYS AQ$_WF_DEFERRED_L YES
APPLSYS AQ$_WF_WS_SAMPLE_S YES
APPLSYS AQ$_WF_NOTIFICATION_IN_S YES
APPLSYS AQ$_WF_REPLAY_IN_S YES
OKC AQ$_OKC_AQ_EV_TAB_S YES
XNP AQ$_XNP_OUT_MSG_QTAB_L YES
APPLSYS AQ$_WF_JAVA_DEFERRED_L YES

OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
APPLSYS AQ$_WF_NOTIFICATION_IN_L YES
APPLSYS AQ$_WF_DEFERRED_TABLE_M_L YES
APPLSYS AQ$_FND_CP_GSM_IPC_AQTBL_S YES
APPLSYS AQ$_FND_CP_GSM_OPP_AQTBL_S YES
APPLSYS AQ$_WF_JAVA_ERROR_S YES
APPLSYS AQ$_WF_ERROR_S YES
APPLSYS AQ$_WF_DEFERRED_S YES
PO AQ$_PO_OTM_OUT_L YES
XNP AQ$_XNP_OUT_MSG_QTAB_S YES
APPLSYS AQ$_FND_CP_GSM_OPP_AQTBL_L YES
APPLSYS AQ$_FND_CP_GSM_IPC_AQTBL_L YES

OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
APPLSYS AQ$_WF_JMS_JMS_OUT_L YES
APPLSYS AQ$_WF_CONTROL_L YES
APPLSYS AQ$_WF_REPLAY_IN_L YES
APPLSYS AQ$_WF_CONTROL_S YES
PO AQ$_PO_OTM_OUT_S YES
CS AQ$_CS_SERVICE_REQUEST_OQT_S YES
ASO AQ$_ASO_ORDER_FEEDBACK_T_S YES
APPLSYS AQ$_FND_CP_TM_AQTBL_S YES
APPLSYS AQ$_WF_JAVA_DEFERRED_S YES
APPLSYS AQ$_WF_JMS_OUT_S YES
APPLSYS AQ$_WF_DEFERRED_TABLE_M_S YES

OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
AR AQ$_AR_REV_REC_QT_L YES
AR AQ$_AR_REV_REC_QT_S YES
OKC AQ$_OKC_AQ_EV_TAB_L YES
APPLSYS AQ$_FND_CP_TM_RET_AQTBL_L YES
APPLSYS AQ$_WF_JAVA_ERROR_L YES
APPLSYS AQ$_WF_JMS_OUT_L YES
APPLSYS AQ$_WF_OUT_L YES
APPLSYS AQ$_WF_ERROR_L YES
APPLSYS AQ$_WF_NOTIFICATION_OUT_S YES
APPLSYS AQ$_WF_OUT_S YES
APPLSYS AQ$_FND_CP_TM_AQTBL_L YES

OWNER TABLE_NAME UPGRADE_IN_PROGRESS
——————– —————————— ——————–
APPLSYS AQ$_FND_CP_TM_RET_AQTBL_S YES
APPLSYS AQ$_WF_JMS_JMS_OUT_S YES
CS AQ$_CS_SERVICE_REQUEST_IQT_L YES
CS AQ$_CS_SERVICE_REQUEST_OQT_L YES
CS AQ$_CS_SERVICE_REQUEST_IQT_S YES

60 rows selected.

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 2142679040 bytes
Fixed Size 1337720 bytes
Variable Size 922748552 bytes
Database Buffers 1191182336 bytes
Redo Buffers 27410432 bytes
Database mounted.
Database opened.
SQL> set serveroutput on
SQL> VAR numfail number
SQL> BEGIN
2 DBMS_DST.UPGRADE_DATABASE(:numfail,
parallel => TRUE,
3 4 log_errors => TRUE,
5 log_errors_table => ‘SYS.DST$ERROR_TABLE’,
6 log_triggers_table => ‘SYS.DST$TRIGGER_TABLE’,
7 error_on_overlap_time => FALSE,
8 error_on_nonexisting_time => FALSE);
9 DBMS_OUTPUT.PUT_LINE(‘Failures:’|| :numfail);
10 END;
11 /
Table list: ASO.AQ$_ASO_ORDER_FEEDBACK_T_S
Number of failures: 0
Table list: OKC.AQ$_OKC_AQ_EV_TAB_S
Number of failures: 0
Table list: AR.AQ$_AR_REV_REC_QT_S
Number of failures: 0
Table list: XNP.AQ$_XNP_OUT_MSG_QTAB_S
Number of failures: 0
Table list: CS.AQ$_CS_SERVICE_REQUEST_OQT_S
Number of failures: 0
Table list: CS.AQ$_CS_SERVICE_REQUEST_IQT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_DEFERRED_TABLE_M_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_DEFERRED_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_ERROR_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_REPLAY_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_IN_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_REPLAY_IN_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_IN_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_CONTROL_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_NOTIFICATION_IN_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_NOTIFICATION_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_JMS_IN_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JAVA_DEFERRED_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JAVA_ERROR_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_JMS_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_JMS_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_SAMPLE_S
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_GSM_OPP_AQTBL_S
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_TM_RET_AQTBL_S
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_TM_AQTBL_S
Number of failures: 0
Table list: AR.AQ$_HZ_JMS_OUT_S
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_GSM_IPC_AQTBL_S
Number of failures: 0
Table list: PO.AQ$_PO_OTM_OUT_S
Number of failures: 0
Table list: AR.AQ$_AR_REV_REC_QT_L
Number of failures: 0
Table list: ASO.AQ$_ASO_ORDER_FEEDBACK_T_L
Number of failures: 0
Table list: PO.AQ$_PO_OTM_OUT_L
Number of failures: 0
Table list: XNP.AQ$_XNP_OUT_MSG_QTAB_L
Number of failures: 0
Table list: OKC.AQ$_OKC_AQ_EV_TAB_L
Number of failures: 0
Table list: CS.AQ$_CS_SERVICE_REQUEST_OQT_L
Number of failures: 0
Table list: CS.AQ$_CS_SERVICE_REQUEST_IQT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_DEFERRED_TABLE_M_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_DEFERRED_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_ERROR_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_REPLAY_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_IN_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_REPLAY_IN_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_IN_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_CONTROL_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_NOTIFICATION_IN_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_NOTIFICATION_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_JMS_IN_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JAVA_DEFERRED_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JAVA_ERROR_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_JMS_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_JMS_JMS_OUT_L
Number of failures: 0
Table list: APPLSYS.AQ$_WF_WS_SAMPLE_L
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_GSM_IPC_AQTBL_L
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_GSM_OPP_AQTBL_L
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_TM_RET_AQTBL_L
Number of failures: 0
Table list: APPLSYS.AQ$_FND_CP_TM_AQTBL_L
Number of failures: 0
Table list: AR.AQ$_HZ_JMS_OUT_L
Number of failures: 0
Failures:0

PL/SQL procedure successfully completed.

SQL> VAR fail number
BEGIN
DBMS_DST.END_UPGRADE(:fail);
DBMS_OUTPUT.PUT_LINE(‘Failures:’|| :fail);
END;
/SQL> 2 3 4 5
An upgrade window has been successfully ended.
Failures:0

PL/SQL procedure successfully completed.

SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME; 2 3 4

PROPERTY_NAME VALUE
—————————— ——————————
DST_PRIMARY_TT_VERSION 11
DST_SECONDARY_TT_VERSION 0
DST_UPGRADE_STATE NONE

SQL> SELECT * FROM v$timezone_file;

FILENAME VERSION
———————————————————— ———-
timezlrg_11.dat 11

SQL>

d) Configure the Network ACLs

DECLARE
acl_path VARCHAR2(4000);
BEGIN
SELECT acl INTO acl_path FROM dba_network_acls
WHERE host = ‘*’ AND lower_port IS NULL AND upper_port IS NULL;
IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(acl_path,
‘APPS’,’connect’) IS NULL THEN
DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl_path,
‘APPS’, TRUE, ‘connect’);
END IF;
EXCEPTION
WHEN no_data_found THEN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(‘ACL_connect.xml’,
‘ACL for users with connect’, ‘APPS’, TRUE, ‘connect’);
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(‘ACL_connect.xml’,’*’);
END;
/
COMMIT;

f) Run only the catmgdidcode.sql and utlrp.sql scripts for the post install instructions in patch 9218789. The other scripts are run as part of the dbua upgrade.
SQL> @?/md/admin/catmgdidcode.sql
SQL> @?/rdbms/admin/utlrp.sql
g)
Natively compile PL/SQL code (optional)
You can choose to run Oracle E-Business Suite 12.1 PL/SQL database objects in natively compiled mode with Oracle Database 11g. See the “Compiling PL/SQL Program Units for Native Execution” section of Chapter 12 of Oracle Database PL/SQL Language Reference 11g Release 2 (11.2).

1. Shut down application services, the listener, and the database.
■ Shut down all of the Application services including the Forms Processes, Web
Servers, Reports Servers, and Concurrent Manager Servers. After shutting
down all of the Application services, ensure that all of the connections to the
database were terminated.
■ Shut down the TNS listener of the database to ensure that no new connections
are made.
■ Shut down the database in normal or immediate mode as the user SYS. See the
Oracle Database Administrator’s Guide.

2. Set PLSQL_CODE_TYPE to NATIVE in the compilation parameter file. If the
database is using a server parameter file, then set this after the database has started.

3. Start up the database in upgrade mode, using the UPGRADE option. For
information about SQL*Plus STARTUP, see the SQL*Plus User’s Guide and Reference.

4. Run this code to list the invalid PL/SQL units. You can save the output of the
query for future reference with the SQL SPOOL statement:

— To save the output of the query to a file:
SPOOL pre_update_invalid.log
SELECT o.OWNER, o.OBJECT_NAME, o.OBJECT_TYPE
FROM DBA_OBJECTS o, DBA_PLSQL_OBJECT_SETTINGS s
WHERE o.OBJECT_NAME = s.NAME AND o.STATUS=’INVALID’;

— To stop spooling the output: SPOOL OFF

5. Run this query to determine how many objects are compiled NATIVE and
INTERPRETED (to save the output, use the SQL SPOOL statement):
SELECT TYPE, PLSQL_CODE_TYPE, COUNT(*)
FROM DBA_PLSQL_OBJECT_SETTINGS
WHERE PLSQL_CODE_TYPE IS NOT NULL
GROUP BY TYPE, PLSQL_CODE_TYPE
ORDER BY TYPE, PLSQL_CODE_TYPE;

Any objects with a NULL plsql_code_type are special internal objects and can
be ignored.

6. Run the $ORACLE_HOME/rdbms/admin/dbmsupgnv.sql script as the user SYS
to update the plsql_code_type setting to NATIVE in the dictionary tables for all
PL/SQL units. This process also invalidates the units. Use TRUE with the script to
exclude package specifications; FALSE to include the package specifications.
This update must be done when the database is in UPGRADE mode. The script is
guaranteed to complete successfully or rollback all the changes.
SQL> @?/rdbms/admin/dbmsupgnv.sql FALSE

7. Shut down the database and restart in NORMAL mode.

8. Before you run the utlrp.sql script, Oracle recommends that no other sessions
are connected to avoid possible problems. You can ensure this with this statement:
ALTER SYSTEM ENABLE RESTRICTED SESSION;

9. Run the $ORACLE_HOME/rdbms/admin/utlrp.sql script as the user SYS. This
script recompiles all the PL/SQL modules using a default degree of parallelism.
See the comments in the script for information about setting the degree explicitly.
If for any reason the script is abnormally terminated, rerun the utlrp.sql script
to recompile any remaining invalid PL/SQL modules.

10. Compile also APPS invalid objects using adadmin

11. Disable the restricted session mode for the database, then start the services that
you previously shut down. To disable restricted session mode, use this statement:
ALTER SYSTEM DISABLE RESTRICTED SESSION;
Post-Installation Tasks Section
After the Database Upgrade
Start the new database listener (conditional)
If the Oracle Net listener for the database instance in the new Oracle home has not been started, you must start it now. Since AutoConfig has not yet been implemented, start the listener with the lsnrctl executable (UNIX/Linux) or Services (Windows). See the Oracle Database Net Services Administrator’s Guide, 11g Release 2 (11.2) for more information.
Run adgrants.sql
Copy $APPL_TOP/admin/adgrants.sql (adgrants_nt.sql for Windows) from the administration server node to the database server node. Use SQL*Plus to connect to the database as SYSDBA and run the script using the following command:

$ sqlplus “/ as sysdba” @adgrants.sql (or adgrants_nt.sql)

Note: Verify the usage of adgrants.sql in the adgrants.sql script. Older versions of adgrants.sql require the APPLSYS schema name parameter to be passed instead of APPS.
Grant create procedure privilege on CTXSYS
Copy $AD_TOP/patch/115/sql/adctxprv.sql from the administration server node to the database server node. Use SQL*Plus to connect to the database as APPS and run the script using the following command:
$ sqlplus apps/ @adctxprv.sql \
CTXSYS
Set CTXSYS parameter
Use SQL*Plus to connect to the database as SYSDBA and run the following command:
$ sqlplus “/ as sysdba”
SQL> exec ctxsys.ctx_adm.set_parameter(‘file_access_role’, ‘public’);
Validate Workflow ruleset
On the administration server node, use SQL*Plus to connect to the database as APPS and run the $FND_TOP/patch/115/sql/wfaqupfix.sql script using the following command:
$ sqlplus / @wfaqupfix.sql\

Implement and run AutoConfig
Implement and run AutoConfig in the new Oracle home on the database server node. If the database listener of the new Oracle home is defined differently than the old Oracle home, you must also run AutoConfig on each application tier server node to update the system with the new listener.

If instance is on 12.0.X and is not upgraded to 10.1.3.3 AS patchset, Patch 4585869 needs to be applied:

Patch # 4585869 CLOSE() API OF XMLPRINTDRIVER DOESN’T CLOSE THE HANDLE PROPERLY
Product XML Developers Kit Lang GENERIC Size 15K (16219 bytes)
Pre-install Tasks
Patch Special Instructions:
# —————————
Set ORACLE_HOME and PATH (opatch) towards AS 10.1.3
# Whilst you do not need to shutdown the instances to apply this patch,
# you will need to shutdown and restart the instance in order
# to pick up the JAVA chnages.
#
# If the Oracle inventory is not setup correctly this utility will
# fail. To check accessibility to the inventory you can use the
# command
#
# % opatch lsinventory
Apply The Patch
# To apply the patch, unzip the PSE container file:
#
# % unzip p4585869_10130_GENERIC.zip
#
# Set your current directory to the directory where the patch
# is located:
#
# % cd 4585869
#
# Ensure that the directory containing the opatch script appears in
# your $PATH; then enter the following command:
#
# % opatch apply
Post-install Tasks
None
Comments
None

Copy AutoConfig to the RDBMS ORACLE_HOME
Update the RDBMS ORACLE_HOME file system with the new AutoConfig files delivered in the above patch

On the application tier (as the APPLMGR user):

Log in to the APPL_TOP environment (source the environment file)
Create appsutil.zip file
perl /bin/admkappsutil.pl
This will create appsutil.zip in /admin/out

On the database tier (as the ORACLE user):
Copy or FTP the appsutil.zip file to the cd
unzip -o appsutil.zip

Install JRE on the Database tier
Follow the steps below to ensure that jre version on the applications tier and the database tier is atleast 1.5 or higher:

If you are using a “fully certified” platform, please refer to Metalink Note 418664.1 to install jre under the /appsutil directory.

cd [ORACLE_HOME]/appsutil/
mv jre jre_old
Install the latest update of JRE 6.0 into the [ORACLE_HOME]/appsutil directory
mv jre1.6.0._latest_update# jre (for example ‘mv jre1.6.0_15 jre’)

The E-Business Suite system is now configured to use the latest update of JRE for AutoConfig running on the database tier.

Check the JRE version as follow:

cd [ORACLE_HOME]/appsutil/jre/bin
java -version

If you are using a “Database tier only” platform, please refer to Metalink Note 456197.1 to install jre under the /appsutil directory.

Generate the Database Context File
Execute the following command to create your Database Context File:

perl /appsutil/bin/adbldxml.pl

Run AutoConfig on the Database tier
/appsutil/bin/adconfig.sh contextfile=
Gather statistics for SYS schema
Copy $APPL_TOP/admin/adstats.sql from the administration server node to the database server node. Note that adstats.sql has to be run in restricted mode. Use SQL*Plus to connect to the database as SYSDBA and use the following commands to run adstats.sql in restricted mode:
$ sqlplus “/ as sysdba”
SQL> alter system enable restricted session;
SQL> @adstats.sql
$ sqlplus “/ as sysdba”
SQL> alter system disable restricted session;
SQL> exit;

Note: Make sure that you have at least 1.5 GB of free default temporary tablespace.
Create Demantra privileges (skip)
If you are using Demantra, perform the steps in document 730883.1 on My Oracle Support.
Re-create custom database links (conditional)
If the Oracle Net listener in the 11.2.0 Oracle home is defined differently than the one used by the old Oracle home, you must re-create any custom self-referential database links that exist in the Applications database instance. To check for the existence of database links, use SQL*Plus on the database server node to connect to the Applications database instance as APPS and run the following query:
$ sqlplus apps/
SQL> select db_link from all_db_links;

The EDW_APPS_TO_WH and APPS_TO_APPS database links, if they exist, should have been updated with the new port number by AutoConfig in the previous step.
If you have custom self-referential database links in the database instance, use the following commands to drop and re-create them:
$ sqlplus apps/
SQL> drop database link ;
SQL> create database link connect to
identified by using
‘(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=)
(PORT=))(CONNECT_DATA=(SID=)))’;

where , , , , , and reflect the new Oracle Net listener for the database instance.
Re-create grants and synonyms
Oracle Database 11g Release 2 (11.2) contains new functionality for grants and synonyms compared to previous database releases. As a result, you must re-create the grants and synonyms in the APPS schema. On the administration server node, as the owner of the Applications file system, run AD Administration and select the “Recreate grants and synonyms for APPS schema” task from the Maintain Applications Database Objects menu.
Re-run utlrp and count any invalid db object
$ sqlplus “/ as sysdba”
SQL> @?/rdbms/admin/utlrp.sql

set pagesize 500
set linesize 100

select substr(comp_name,1,40) comp_name, status, substr(version,1,10) version from
dba_registry order by comp_name;

select substr(object_name,1,40) object_name,substr(owner,1,15) owner,object_type from
dba_objects where status=’INVALID’ order by owner,object_type;

select owner,object_type,count(*) from dba_objects where status=’INVALID’ group by
owner,object_type order by owner,object_type ;

SQL> /
OBJECT_NAME OWNER OBJECT_TYPE
—————————— ————— —————
XLA_00200_AAD_S_000016_PKG APPS PACKAGE BODY
FEM_CHECK_BR_DIS_MBRS_PKG APPS PACKAGE BODY
IGW_REPORT_PROCESSING APPS PACKAGE BODY
IGW_BUDGET_CATEGORY_V APPS VIEW
GEDBA_SESSION_INFO_V APPS VIEW

SQL>

Some Oracle Grants Proposal (IGW) objects objects in E-Business Suite Release 12 may show up as invalid objects. For example:

Object Type Object Name
View IGW_BUDGET_CATEGORY_V
Package Body IGW_REPORT_PROCESSING

This is a known issue and all failures stemming from Oracle Grants Proposal such as IGW invalid objects should be ignored. Metalink Note 965907.1

According to SR 3-1367298521, invalid package (FEM_CHECK_BR_DIS_MBRS_PKG) may be ignored if not using EPF. This is a bug which is fixed in 12.1.2. However, no direct fix is required as long as you/we are not using EPF.
Migrate SYSTEM tablespace to LOCALLY MANAGED
Reference: Metalink Note 735978.1

You can migrate your SYSTEM tablespace from dictionary-managed to locally managed by performing the following steps:

i.e.
ALTER TABLESPACE CTXD READ ONLY;
ALTER TABLESPACE OWAPUB READ ONLY;
ALTER TABLESPACE ODM READ ONLY;
ALTER TABLESPACE PORTAL READ ONLY;
ALTER TABLESPACE APPS_TS_TX_DATA READ ONLY;
ALTER TABLESPACE APPS_TS_TX_IDX READ ONLY;
ALTER TABLESPACE APPS_TS_SEED READ ONLY;
ALTER TABLESPACE APPS_TS_INTERFACE READ ONLY;
ALTER TABLESPACE APPS_TS_SUMMARY READ ONLY;
ALTER TABLESPACE APPS_TS_NOLOGGING READ ONLY;
ALTER TABLESPACE APPS_TS_ARCHIVE READ ONLY;
ALTER TABLESPACE APPS_TS_QUEUES READ ONLY;
ALTER TABLESPACE APPS_TS_MEDIA READ ONLY;
ALTER TABLESPACE OLAP READ ONLY;
ALTER TABLESPACE APPS_TS_TOOLS READ ONLY;
ALTER TABLESPACE DISCOVERER READ ONLY;
ALTER TABLESPACE USERS READ ONLY;
ALTER TABLESPACE USERSX READ ONLY;

ALTER TABLESPACE SYSAUX OFFLINE;

ALTER SYSTEM ENABLE RESTRICTED SESSION;

EXECUTE DBMS_SPACE_ADMIN.TABLESPACE_MIGRATE_TO_LOCAL(‘SYSTEM’);

SELECT extent_management
FROM dba_tablespaces
WHERE tablespace_name = ‘SYSTEM’;

ALTER SYSTEM DISABLE RESTRICTED SESSION;

ALTER TABLESPACE SYSAUX ONLINE;

ALTER TABLESPACE CTXD READ WRITE;
ALTER TABLESPACE OWAPUB READ WRITE;
ALTER TABLESPACE ODM READ WRITE;
ALTER TABLESPACE PORTAL READ WRITE;
ALTER TABLESPACE APPS_TS_TX_DATA READ WRITE;
ALTER TABLESPACE APPS_TS_TX_IDX READ WRITE;
ALTER TABLESPACE APPS_TS_SEED READ WRITE;
ALTER TABLESPACE APPS_TS_INTERFACE READ WRITE;
ALTER TABLESPACE APPS_TS_SUMMARY READ WRITE;
ALTER TABLESPACE APPS_TS_NOLOGGING READ WRITE;
ALTER TABLESPACE APPS_TS_ARCHIVE READ WRITE;
ALTER TABLESPACE APPS_TS_QUEUES READ WRITE;
ALTER TABLESPACE APPS_TS_MEDIA READ WRITE;
ALTER TABLESPACE OLAP READ WRITE;
ALTER TABLESPACE APPS_TS_TOOLS READ WRITE;
ALTER TABLESPACE DISCOVERER READ WRITE;
ALTER TABLESPACE USERS READ WRITE;
ALTER TABLESPACE USERSX READ WRITE;
Restart Applications server processes
Restart all the Application tier server processes that you shut down previously. Remember that the Oracle Net listener for the database instance, as well as the database instance itself, need to be started in the 11.2 Oracle home. Users may return to the system.
Synchronize Workflow views
Log on to Oracle E-Business Suite with the “System Administrator” responsibility. Click Requests > Run > Single Request and the OK button. Enter the following parameters:
Request Name = Workflow Directory Services User/Role Validation
p_BatchSize = 10000
p_Check_Dangling = Yes
Add missing user/role assignments = Yes
Update WHO columns in WF tables = No

Click “OK” and “Submit”.

EBS 12.1.2 RELEASE UPDATE PACK TO AN EXISTING RELEASE R12.1

Contents

Applying the 12.1.2 Release Update Pack to an existing R12.1 3
Preparation Tasks Section 3
Pre-Installation Tasks Section: 3
Prerequisites code levels. 3
Other requisites 3
Installation Tasks Section: 4
Install R12.AD.B.DELTA.2 4
Install 12.1.2 Release Update Pack 4
Post-Installation Tasks Section: 6
Apply post-patch fixes 6
Post-Update Steps. 7
1. Update database tier nodes with the Release 12.1.2 code level 7
2. Perform NLS-related Step (conditional) 8
3. Perform Product-specific Steps (conditional) 8
4. Perform Other Post-steps 8

Applying the 12.1.2 Release Update Pack to an existing R12.1
Preparation Tasks Section
a) Stop checkin process daemon
b) Comment any schedule crontab job
c) Perform full-backup (database/apps)
d) Verify /etc/oraInst.loc is pointing to the correct oraInventory instance
#
# If the Oracle inventory is not setup correctly this utility will
# fail. To check accessibility to the inventory you can use the
# command
#
# % opatch lsinventory
#
e) Perform an inicial count of invalid db objects
#
set pagesize 500
set linesize 100

select substr(comp_name,1,40) comp_name, status, substr(version,1,10) version from
dba_registry order by comp_name;

select substr(object_name,1,40) object_name,substr(owner,1,15) owner,object_type from
dba_objects where status=’INVALID’ order by owner,object_type;

select owner,object_type,count(*) from dba_objects where status=’INVALID’ group by
owner,object_type order by owner,object_type ;
Pre-Installation Tasks Section:
Prerequisites code levels.
a) EBS should be already in release 12.1 before upgrading to 12.1.2
Other requisites
b) As OracleAS 10g Patchset 10.1.3.x for Oracle E-Business Suite Release 12 document is updated regularly, verify the latest copy of Note 454811.1 (for 10.1.3.5) or Note 728531.1 (for 10.1.3.4 ) and apply all required patches mentioned in the document, before upgrading to Release 12.1.2.

– Nothing else should be done for OracleAS 10g 10.1.3.x (Linux-x86) if upgrade process is/was followed using document “Upgrading to the OracleAS 10g 10.1.3.4 Patch Set in Oracle E-Business Suite Release 12 v4.0”. It includes any change up to last change log (June 3, 2010) registered in Note 728531.1

c) As the OracleAS 10g Patchset 10.1.2.3 for Forms and Reports for Oracle E-Business Suite Release 12 Note 437878.1 document is updated regularly, verify the latest copy of Note 437878.1 and apply all required patches that are mentioned in this document before upgrading to Release 12.1.2.

Follow steps in document “Updating OracleAS 10g Forms and Reports in Oracle E-Business Suite Release 12 v1.0”. It included any change up to Last Updated Note 437878.1 (Sep 3, 2010)
Installation Tasks Section:

To apply Release 12.1.2, follow these steps:
Install R12.AD.B.DELTA.2
1. Use AutoPatch to apply R12.AD.B.DELTA.2 Patch 8502056, before you complete any of the other steps in this section. Do not merge this patch with any other patch. R12.AD.B.Delta.2 must be applied separately. Refer to Oracle E-Business Suite DBA Software Updates, Release 12.1.2 Note 879322.1 for more information about R12.AD.B.Delta.2.

Patch # 8502056 Oracle Applications DBA Release Update Pack 2 for 12.1 (R12.AD.B.DELTA.2)
Product Applications DBA Lang GENERAL Size 964.1 KB
Pre-install Tasks
Run the adgrants.sql script as a user that can connect as SYSDBA to grant privileges to selected SYS objects and create PL/SQL profiler objects.
Usage:
1. Create $ORACLE_HOME/appsutil/admin on the database server.
2. Copy adgrants.sql (UNIX) from this patch directory to
$ORACLE_HOME/appsutil/admin.
3. Set the environment to point to ORACLE_HOME on the database server.
4. Use SQL*Plus to run the script:
$ sqlplus /nolog
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u8502056.drv (This is the unified driver)
Post-install Tasks
• Invoker’s Right processing is re-enabled in the latest AD minipack (R12.AD.B.DELTA.2). Customers who have already upgraded to 12.1.1 can optionally run AD Admin as follows to re-enable Invoker’s Right on existing PL/SQL packages:
o Run adadmin > Compile/Reload Applications Database Entities menu >
Compile APPS schema.
o Choose “No” at the following prompt:
Run Invoker Rights processing in incremental mode [No]
Comments
None
Install 12.1.2 Release Update Pack
 1. Drop any custom MV with REFRESH FAST ON COMMIT when referencing APPLSYS.FND_FLEX_VALUES table. Recreate it at the end of the upgrade.

SQL> drop MATERIALIZED VIEW GECL.CCL_MANAGEMENT_ENTITY_DPC_MV;

i.e.
CREATE MATERIALIZED VIEW “GECL”.”CCL_MANAGEMENT_ENTITY_DPC_MV” TABLESPACE “USERS” PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 128K BUFFER_POOL
DEFAULT) LOGGING USING INDEX TABLESPACE “USERSX” PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 128K BUFFER_POOL DEFAULT) REFRESH FAST ON COMMIT AS
SELECT
h.parent_flex_value parent_value,
v.flex_value child_value,
t.description child_desc,
v.enabled_flag enabled_flag,
v.attribute4 country_code,
v.attribute35 line_of_business,
t.rowid “trowid”, v.rowid “vrowid”,s.rowid “srowid”,h.rowid “hrowid”
FROM APPLSYS.FND_FLEX_VALUES_TL t,
APPLSYS.FND_FLEX_VALUES v,
APPLSYS.FND_FLEX_VALUE_SETS s,
APPLSYS.FND_FLEX_VALUE_HIERARCHIES h
WHERE
v.flex_value_set_id = s.flex_value_set_id
AND s.flex_value_set_id = h.flex_value_set_id
AND s.flex_value_set_name = ‘CCL_MANAGEMENT_ENTITIES’
AND v.flex_value_id = t.flex_value_id
AND t.language = ‘US’
AND v.summary_flag = ‘N’
AND v.flex_value BETWEEN child_flex_value_low AND child_flex_value_high

 Work with the suggested values below:

database params
job_queue_processes(# of CPUs) :from 2 to 10
parallel_max_servers (2x#CPUs): from 8 to 16
sga_max_size: from 2Gb to 3GB
pga_aggregate_target: stay with 4Gb

e.g.
# Needed for EBS 12.1.1 upgrade
job_queue_processes = 10
parallel_max_servers = 16
sga_max_size = 3G
pga_aggregate_target = 4G

2. Use AutoPatch to apply Release 12.1.2 Patch 7303033 and follow the instructions in the patch readme file.

Patch # 7303033 Oracle E-Business Suite 12.1.2 Release Update Pack (RUP2)
Product Applications Updates Lang US,
HU,
ESA Size 3.1 GB
252.9 MB
251.9 MB
Pre-install Tasks
You must apply R12.AD.B.DELTA.2 as a prerequisite before you apply this patch. Do not merge R12.AD.B.DELTA.2 with this patch. It must be applied separately.
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u7303033.drv (This is the unified driver)
Post-install Tasks
None
Comments
Apply the patch using the following adpatch options:

batch size and adworkers
adworkers (1.5xCPUs): =>12 (for each apps node)
batch size=>10k

AD parallel processing
In primary node:
adpatch workers=24 localworkers=12

Start an AD controller session on each of the other nodes:
adctrl distributed=y
Enter the worker range: 13-24
Post-Installation Tasks Section:
Apply post-patch fixes
The post-release update patch addresses issues that were identified after the release of Release 12.1.2. Apply the following patch on top of a Release 12.1.2 instance.

Patch 8937577 – This PA-DSS consolidated patch allows Oracle Payments customers to benefit from the ongoing enhancements made to conform to PA-DSS requirements. For more information, refer to Note 981033.1 Oracle Payment Application Data Security Standard (PA-DSS) Consolidated Patch Release Notes, Release 12.1.

Patch # 8937577 PA-DSS CONSOLIDATED PATCH FOR ORACLE PAYMENTS
Product
Payments Lang US,
HU,
ESA Size 21.6 MB
9.5 MB
9.5 MB
Pre-install Tasks
None
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u8937577.drv (This is the unified driver)
Post-install Tasks
Following post install steps should be followed after the patch application:
* Bounce the middle-tier.
Comments
NOTE: Please additionally apply the CPU patch 9720630:R12.IBY.B as a post install step after applying the current patch

Patch # 9720630 CPU Bug
Product
Payments Lang US,
HU,
ESA Size 9 MB
5.2 MB
5.2 MB
Pre-install Tasks
Pre-requisites: 8937577:R12.IBY.B
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u9720630.drv (This is the unified driver)
Post-install Tasks
Need to run the CP “Purge Redundant PA-DSS Incidental Data” after patch application.
Comments
None
Post-Update Steps.
1. Update database tier nodes with the Release 12.1.2 code level

After you have upgraded to Release 12.1.2, perform the following post-update steps to update all database tier nodes with the code level, provided by Release 12.1.2:

Application tier:
As the APPLMGR user, run the environment (UNIX) or the command (WINDOWS) file for the current APPL_TOP.
. .//APPS.env

Run AutoConfig on the APPL_TOP.

Run the admkappsutil.pl utility to create the file appsutil.zip in the /admin/out directory.

perl /bin/admkappsutil.pl

Database tier:
As the ORACLE user, run the environment (UNIX) or the command (WINDOWS) file for the current ORACLE_HOME.

cd
. .//.env

Copy or FTP the appsutil.zip file to the .
Uncompress appsutil.zip under the .

cd
unzip -o appsutil.zip

Run AutoConfig on the and in all apps nodes

Database tier and application tier:
Re-run adpreclone.pl on the database tier and the application tier. Since updates included in RUP6 were applied to the system, adpreclone must be run again to apply the updates to the clone directory structures that were used during cloning.

perl adpreclone.pl dbTier
perl adpreclone.pl appsTier
2. Perform NLS-related Step (conditional)

If you have languages other than American English already installed in your Release 12.1.1 system, apply the translated version(s) of Release 12.1.2 Patch 7303033 for each active language immediately after applying the American English version of the Release 12.1.2 Patch 7303033.

These translated versions should have been already applied in section “Installation Tasks Section, step 2. Use AutoPatch to apply Release 12.1.2 Patch 7303033”

Note: If you plan to install new languages after you apply Release 12.1.2 Patch 7303033, refer to Oracle Applications NLS Release Notes Note 788053.1. See the Installing Translations section and follow the instructions for adding a new language to a Release 12.1.1 system. It is not necessary to apply the Release12.1.2 Patch 7303033 for the new language(s).
3. Perform Product-specific Steps (conditional)

After you have completed the steps to update all database tier nodes with the code level, perform the following post-update steps only if you have licensed one of these products:

Oracle E-Business Suite Integrated SOA Gateway
Oracle Manufacturing Operations Center
Oracle Product Information Management
Oracle Value Chain Planning

Nothing to do further based on licensed products in CCL
4. Perform Other Post-steps
a) Recreate MV(s) dropped in previous step:
CREATE MATERIALIZED VIEW “GECL”.”CCL_MANAGEMENT_ENTITY_DPC_MV” TABLESPACE “USERS” PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 128K BUFFER_POOL DEFAULT) LOGGING USING INDEX TABLESPACE “USERSX” PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE ( INITIAL 128K BUFFER_POOL DEFAULT) REFRESH FAST ON COMMIT AS
SELECT
h.parent_flex_value parent_value,
v.flex_value child_value,
t.description child_desc,
v.enabled_flag enabled_flag,
v.attribute4 country_code,
v.attribute35 line_of_business,
t.rowid “trowid”, v.rowid “vrowid”,s.rowid “srowid”,h.rowid “hrowid”
FROM APPLSYS.FND_FLEX_VALUES_TL t,
APPLSYS.FND_FLEX_VALUES v,
APPLSYS.FND_FLEX_VALUE_SETS s,
APPLSYS.FND_FLEX_VALUE_HIERARCHIES h
WHERE
v.flex_value_set_id = s.flex_value_set_id
AND s.flex_value_set_id = h.flex_value_set_id
AND s.flex_value_set_name = ‘CCL_MANAGEMENT_ENTITIES’
AND v.flex_value_id = t.flex_value_id
AND t.language = ‘US’
AND v.summary_flag = ‘N’
AND v.flex_value BETWEEN child_flex_value_low AND child_flex_value_high;

b) According to metalink note 748501.1, If there is an invalid XLA_00200_AAD_S_0000, perform the following:
As sys:
SQL> alter session set plsql_optimize_level=1;
SQL> alter package APPS.XLA_00200_AAD_S_000011_PKG compile;

Package altered

SQL> @?/rdbms/admin/utlrp.sql

c) According to metalink note 1157843.1, PA_PWP_SUMM_PKG is Invalid After 12.1.2 Upgrade. In order to fix it, apply patch 9813360.

Patch # 9813360 1OFF:9671344:12.1.2:12.1.2:SUPPLIER TAB SHOWING ERROR
Product Project Costing Lang GENERIC Size 13.7 KB
Pre-install Tasks
None
Apply The Patch
This patch contains the following unified driver file to be applied with AutoPatch: u9813360.drv (This is the unified driver)
Post-install Tasks
None
Comments
None

Use AutoPatch to apply the latest consolidated online help Patch 7303032 and follow the instructions in the patch readme file.

Patch # 7303032 Online Help for Oracle E-Business Suite 12.1.2 Release Update Pack (RUP2)
Product Applications Updates Lang GENERIC??? Size 45.9 MB

Pre-install Tasks
None
Apply The Patch
This patch contains the following unified driver file to be applied with
AutoPatch:
u7303032.drv (This is the unified driver)
Post-install Tasks
None
Comments
Apply this patch at the end of Post-installation Tasks section

step-by-step BACKUP AND RECOVERY

SQL> alter database backup controlfile to trace;

Database altered.

SQL> create pfile=’/autofs/oracle/kittu5/oracle/kittu5.ora’ from spfile;

File created.

RMAN> backup spfile to destination ‘/autofs/oracle/kittu5/oracle’;

Starting backup at 14-SEP-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=1409 instance=kittu51 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=205 instance=kittu51 device type=DISK
channel ORA_DISK_1: starting compressed full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 14-SEP-12
channel ORA_DISK_1: finished piece 1 at 14-SEP-12
piece handle=/autofs/oracle/kittu5/oracle/KITTU5/backupset/2012_09_14/o1_mf_nnsnf_TAG20120914T005006_855fvy5f_.bkp tag=TAG20120914T005006 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 14-SEP-12

RMAN>

hostname1[kittu51]_oracle> srvctl status database -d kittu5

Instance kittu51 is running on node hostname1
Instance kittu52 is running on node hostname2
hostname1[kittu51]_oracle>

ASMCMD> pwd

+KITTU5_VG/kittu5/PARAMETERFILE
ASMCMD> ls
spfile.384.792267127
ASMCMD> rm spfile.384.792267127
ASMCMD>

hostname1[kittu51]_oracle> srvctl stop database -d kittu5
hostname1[kittu51]_oracle> srvctl start database -d kittu5

PRCR-1079 : Failed to start resource ora.kittu5.db
CRS-5017: The resource action “ora.kittu5.db start” encountered the following error:
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file ‘+KITTU5_VG/kittu5/SPFILE/spfilekittu5.ora’
ORA-17503: ksfdopn:2 Failed to open file +KITTU5_VG/kittu5/SPFILE/spfilekittu5.ora
ORA-15056: additional error message
ORA-17503: ksfdopn:2 Failed to open file +KITTU5_VG/kittu5/spfile/spfilekittu5.ora
ORA-15173: entry ‘spfilekittu5.ora’ does not exist in directory ‘spfile’
ORA-06512: at line 4

CRS-2674: Start of ‘ora.kittu5.db’ on ‘hostname1’ failed
CRS-5017: The resource action “ora.kittu5.db start” encountered the following error:
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file ‘+KITTU5_VG/kittu5/SPFILE/spfilekittu5.ora’
ORA-17503: ksfdopn:2 Failed to open file +KITTU5_VG/kittu5/SPFILE/spfilekittu5.ora
ORA-15056: additional error message
ORA-17503: ksfdopn:2 Failed to open file +KITTU5_VG/kittu5/spfile/spfilekittu5.ora
ORA-15173: entry ‘spfilekittu5.ora’ does not exist in directory ‘spfile’
ORA-06512: at line 4

CRS-2674: Start of ‘ora.kittu5.db’ on ‘hostname2’ failed
CRS-2632: There are no more servers to try to place resource ‘ora.kittu5.db’ on that would satisfy its placement policy

hostname1[kittu51]_oracle>

hostname1[kittu51]_oracle> rman target /

Recovery Manager: Release 11.2.0.2.0 – Production on Fri Sep 14 01:06:11 2012

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

connected to target database: DUMMY (not mounted)

RMAN> startup nomount force;

startup failed: ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file ‘+KITTU5_VG/kittu5/SPFILE/spfilekittu5.ora’
ORA-17503: ksfdopn:2 Failed to open file +KITTU5_VG/kittu5/SPFILE/spfilekittu5.ora
ORA-15056: additional error message
ORA-17503: ksfdopn:2 Failed to open file +KITTU5_VG/kittu5/spfile/spfilekittu5.ora
ORA-15173: entry ‘spfilekittu5.ora’ does not exist in directory ‘spfile’
ORA-06512: at line 4

starting Oracle instance without parameter file for retrieval of spfile
Oracle instance started

Total System Global Area 158662656 bytes

Fixed Size 2224584 bytes
Variable Size 109055544 bytes
Database Buffers 41943040 bytes
Redo Buffers 5439488 bytes

RMAN>

RMAN> restore spfile to ‘+KITTU5_VG/kittu5/SPFILE/spfilekittu5.ora’ from ‘/autofs/oracle/kittu5/oracle/KITTU5/backupset/2012_09_14/o1_mf_nnsnf_TAG20120914T005006_855fvy5f_.bkp’;

Starting restore at 14-SEP-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=25 device type=DISK

channel ORA_DISK_1: restoring spfile from AUTOBACKUP /autofs/oracle/kittu5/oracle/KITTU5/backupset/2012_09_14/o1_mf_nnsnf_TAG20120914T005006_855fvy5f_.bkp
channel ORA_DISK_1: SPFILE restore from AUTOBACKUP complete
Finished restore at 14-SEP-12

RMAN>

hostname1[kittu51]_oracle> srvctl start database -d kittu5
hostname1[kittu51]_oracle> srvctl status database -d kittu5

Instance kittu51 is running on node hostname1
Instance kittu52 is running on node hostname2
hostname1[kittu51]_oracle>

ASMCMD> pwd
+KITTU5_VG/kittu5/CONTROLFILE/
ASMCMD> ls

backup.256.792191095
current.257.792191097

ASMCMD> rm current.257.792191097

ORA-15032: not all alterations performed
ORA-15028: ASM file ‘+KITTU5_VG/kittu5/CONTROLFILE/current.257.792191097’ not dropped; currently being accessed (DBD ERROR: OCIStmtExecute)

hostname1[kittu51]_oracle> srvctl stop database -d kittu5
hostname1[kittu51]_oracle>
ASMCMD> rm current.257.792191097

ASMCMD>

hostname1[kittu51]_oracle> srvctl start database -d kittu5

PRCR-1079 : Failed to start resource ora.kittu5.db
CRS-5017: The resource action “ora.kittu5.db start” encountered the following error:
ORA-00205: error in identifying control file, check alert log for more info

CRS-2674: Start of ‘ora.kittu5.db’ on ‘hostname1’ failed
CRS-2632: There are no more servers to try to place resource ‘ora.kittu5.db’ on that would satisfy its placement policy
CRS-5017: The resource action “ora.kittu5.db start” encountered the following error:
ORA-00205: error in identifying control file, check alert log for more info

CRS-2674: Start of ‘ora.kittu5.db’ on ‘hostname2’ failed
hostname1[kittu51]_oracle>

hostname1[kittu51]_oracle> rman target / catalog rcatdev/passwd@rmnd

Recovery Manager: Release 11.2.0.2.0 – Production on Fri Sep 14 01:12:53 2012

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

connected to target database (not started)
connected to recovery catalog database

RMAN> startup nomount;

Oracle instance started

Total System Global Area 37413179392 bytes

Fixed Size 2234296 bytes
Variable Size 4026533960 bytes
Database Buffers 33285996544 bytes
Redo Buffers 98414592 bytes

RMAN> restore controlfile;

Starting restore at 14-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=205 instance=kittu51 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=405 instance=kittu51 device type=DISK

channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: copied control file copy
input file name=/autofs/oracle/kittu5/oracle/control.txt
output file name=+KITTU5_VG/kittu5/control/control01.ctl
output file name=+KITTU5_VG/kittu5/control/control02.ctl
Finished restore at 14-SEP-12

RMAN>
RMAN> recover database;

Starting recover at 14-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=405 instance=kittu51 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=606 instance=kittu51 device type=DISK

starting media recovery

archived log for thread 1 with sequence 37 is already on disk as file +KITTU5_VG/kittu5/redo/redog1t1a.log
archived log for thread 1 with sequence 38 is already on disk as file +KITTU5_VG/kittu5/redo/redog2t1a.log
archived log for thread 2 with sequence 47 is already on disk as file +KITTU5_VG/kittu5/redo/redog5t2a.log
archived log file name=+KITTU5_VG/kittu5/redo/redog1t1a.log thread=1 sequence=37
archived log file name=+KITTU5_VG/kittu5/redo/redog5t2a.log thread=2 sequence=47
archived log file name=+KITTU5_VG/kittu5/redo/redog2t1a.log thread=1 sequence=38
Finished recover at 14-SEP-12

RMAN> exit

Recovery Manager complete.

hostname1[kittu51]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.2.0 Production on Fri Sep 14 01:21:10 2012

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> alter database open resetlogs;

Database altered.

SQL>

SQL> shut immediate;

Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

hostname1[kittu51]_oracle> srvctl start database -d kittu5
hostname1[kittu51]_oracle> srvctl status database -d kittu5

Instance kittu51 is running on node hostname1
Instance kittu52 is running on node hostname2
hostname1[kittu51]_oracle>

hostname1[kittu51]_oracle> srvctl stop database -d kittu5
hostname1[kittu51]_oracle> srvctl status database -d kittu5

Instance kittu51 is not running on node hostname1
Instance kittu52 is not running on node hostname2

hostname1[kittu51]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.2.0 Production on Fri Sep 14 01:35:31 2012

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

Connected to an idle instance.

SQL> startup force restrict mount pfile=’/autofs/oracle/kittu5/oracle/kittu5.ora’;

ORACLE instance started.

Total System Global Area 3.7413E+10 bytes
Fixed Size 2234296 bytes
Variable Size 4026533960 bytes
Database Buffers 3.3286E+10 bytes
Redo Buffers 98414592 bytes
Database mounted.

SQL> drop database;

Database dropped.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> exit

hostname1[kittu51]_oracle> rman target / catalog rcatdev/passwd@rmnd

Recovery Manager: Release 11.2.0.2.0 – Production on Fri Sep 14 01:39:31 2012

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

connected to target database (not started)
connected to recovery catalog database

RMAN> startup force nomount;

Oracle instance started

Total System Global Area 37413179392 bytes

Fixed Size 2234296 bytes
Variable Size 4026533960 bytes
Database Buffers 33285996544 bytes
Redo Buffers 98414592 bytes

RMAN> restore controlfile;

Starting restore at 14-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=205 instance=kittu51 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=405 instance=kittu51 device type=DISK

channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: copied control file copy
input file name=/autofs/oracle/kittu5/oracle/control.txt
output file name=+KITTU5_VG/kittu5/control/control01.ctl
output file name=+KITTU5_VG/kittu5/control/control02.ctl
Finished restore at 14-SEP-12

RMAN> run
2> {
3> ALLOCATE CHANNEL CH1 DEVICE TYPE DISK;
4> ALLOCATE CHANNEL CH2 DEVICE TYPE DISK;
5> ALLOCATE CHANNEL CH3 DEVICE TYPE DISK;
6> ALLOCATE CHANNEL CH4 DEVICE TYPE DISK;
7> ALLOCATE CHANNEL CH5 DEVICE TYPE DISK;
8> ALLOCATE CHANNEL CH6 DEVICE TYPE DISK;
9> ALLOCATE CHANNEL CH7 DEVICE TYPE DISK;
10> ALLOCATE CHANNEL CH8 DEVICE TYPE DISK;
11> ALLOCATE CHANNEL CH9 DEVICE TYPE DISK;
12> ALLOCATE CHANNEL CH10 DEVICE TYPE DISK;
13> ALLOCATE CHANNEL CH11 DEVICE TYPE DISK;
14> restore database;
15> }

released channel: ORA_DISK_1
released channel: ORA_DISK_2
allocated channel: CH1
channel CH1: SID=205 instance=kittu51 device type=DISK

allocated channel: CH2
channel CH2: SID=405 instance=kittu51 device type=DISK

allocated channel: CH3
channel CH3: SID=805 instance=kittu51 device type=DISK

allocated channel: CH4
channel CH4: SID=1006 instance=kittu51 device type=DISK

allocated channel: CH5
channel CH5: SID=1206 instance=kittu51 device type=DISK

allocated channel: CH6
channel CH6: SID=1405 instance=kittu51 device type=DISK

allocated channel: CH7
channel CH7: SID=5 instance=kittu51 device type=DISK

allocated channel: CH8
channel CH8: SID=206 instance=kittu51 device type=DISK

allocated channel: CH9
channel CH9: SID=406 instance=kittu51 device type=DISK

allocated channel: CH10
channel CH10: SID=607 instance=kittu51 device type=DISK

allocated channel: CH11
channel CH11: SID=806 instance=kittu51 device type=DISK

Starting restore at 14-SEP-12

channel CH1: starting datafile backup set restore
channel CH1: specifying datafile(s) to restore from backup set
channel CH1: restoring datafile 00006 to +KITTU5_VG/kittu5/datafile/ctxd01.dbf
channel CH1: restoring datafile 00010 to +KITTU5_VG/kittu5/datafile/olap.dbf
channel CH1: restoring datafile 00025 to +KITTU5_VG/kittu5/datafile/undo04.dbf
channel CH1: restoring datafile 00035 to +KITTU5_VG/kittu5/datafile/a_txn_data12.dbf
channel CH1: restoring datafile 00050 to +KITTU5_VG/kittu5/datafile/users03.dbf
channel CH1: restoring datafile 00053 to +KITTU5_VG/kittu5/datafile/undo2_01.dbf
channel CH1: restoring datafile 00062 to +KITTU5_VG/kittu5/datafile/undo3_04.dbf
channel CH1: restoring datafile 00068 to +KITTU5_VG/kittu5/datafile/ccl_pja_dat02.dbf
channel CH1: restoring datafile 00314 to +KITTU5_VG/kittu5/datafile/portal01.dbf
channel CH1: restoring datafile 00396 to +KITTU5_VG/kittu5/datafile/a_summ01.dbf
channel CH1: restoring datafile 00405 to +KITTU5_VG/kittu5/datafile/a_txn_ind04.dbf
channel CH1: reading from backup piece /autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_8
channel CH2: starting datafile backup set restore
channel CH2: specifying datafile(s) to restore from backup set
channel CH2: restoring datafile 00007 to +KITTU5_VG/kittu5/datafile/owad01.dbf
channel CH2: restoring datafile 00009 to +KITTU5_VG/kittu5/datafile/odm.dbf
channel CH2: restoring datafile 00011 to +KITTU5_VG/kittu5/datafile/sysaux01.dbf
channel CH2: restoring datafile 00015 to +KITTU5_VG/kittu5/datafile/a_txn_ind06.dbf
channel CH2: restoring datafile 00051 to +KITTU5_VG/kittu5/datafile/a_txn_data18.dbf
channel CH2: restoring datafile 00054 to +KITTU5_VG/kittu5/datafile/undo2_02.dbf
channel CH2: restoring datafile 00063 to +KITTU5_VG/kittu5/datafile/undo3_05.dbf
channel CH2: restoring datafile 00069 to +KITTU5_VG/kittu5/datafile/ccl_pja_idx01.dbf
channel CH2: restoring datafile 00397 to +KITTU5_VG/kittu5/datafile/a_nolog01.dbf
channel CH2: restoring datafile 00398 to +KITTU5_VG/kittu5/datafile/a_archive01.dbf
channel CH2: restoring datafile 00406 to +KITTU5_VG/kittu5/datafile/a_txn_ind05.dbf
channel CH2: reading from backup piece /autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_9
channel CH3: starting datafile backup set restore
channel CH3: specifying datafile(s) to restore from backup set
channel CH3: restoring datafile 00004 to +KITTU5_VG/kittu5/datafile/system04.dbf
channel CH3: restoring datafile 00021 to +KITTU5_VG/kittu5/datafile/users01.dbf
channel CH3: restoring datafile 00023 to +KITTU5_VG/kittu5/datafile/undo02.dbf
channel CH3: restoring datafile 00036 to +KITTU5_VG/kittu5/datafile/a_txn_data13.dbf
channel CH3: restoring datafile 00057 to +KITTU5_VG/kittu5/datafile/undo2_05.dbf
channel CH3: restoring datafile 00060 to +KITTU5_VG/kittu5/datafile/undo3_02.dbf
channel CH3: restoring datafile 00392 to +KITTU5_VG/kittu5/datafile/a_txn_data01.dbf
channel CH3: restoring datafile 00394 to +KITTU5_VG/kittu5/datafile/a_ref01.dbf
channel CH3: restoring datafile 00399 to +KITTU5_VG/kittu5/datafile/a_queue01.dbf
channel CH3: restoring datafile 00407 to +KITTU5_VG/kittu5/datafile/a_ref02.dbf
channel CH3: reading from backup piece /autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_7
channel CH4: starting datafile backup set restore
channel CH4: specifying datafile(s) to restore from backup set
channel CH4: restoring datafile 00016 to +KITTU5_VG/kittu5/datafile/a_ref03.dbf
channel CH4: restoring datafile 00019 to +KITTU5_VG/kittu5/datafile/olap01.dbf
channel CH4: restoring datafile 00020 to +KITTU5_VG/kittu5/datafile/discoverer01.dbf
channel CH4: restoring datafile 00024 to +KITTU5_VG/kittu5/datafile/undo03.dbf
channel CH4: restoring datafile 00034 to +KITTU5_VG/kittu5/datafile/a_txn_data11.dbf
channel CH4: restoring datafile 00047 to +KITTU5_VG/kittu5/datafile/sysaux05.dbf
channel CH4: restoring datafile 00049 to +KITTU5_VG/kittu5/datafile/a_txn_data17.dbf
channel CH4: restoring datafile 00061 to +KITTU5_VG/kittu5/datafile/undo3_03.dbf
channel CH4: restoring datafile 00067 to +KITTU5_VG/kittu5/datafile/ccl_pja_dat01.dbf
channel CH4: restoring datafile 00288 to +KITTU5_VG/kittu5/datafile/system10.dbf
channel CH4: restoring datafile 00404 to +KITTU5_VG/kittu5/datafile/a_txn_ind03.dbf
channel CH4: reading from backup piece /autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_3
channel CH5: starting datafile backup set restore
channel CH5: specifying datafile(s) to restore from backup set
channel CH5: restoring datafile 00028 to +KITTU5_VG/kittu5/datafile/users02.dbf
channel CH5: restoring datafile 00030 to +KITTU5_VG/kittu5/datafile/a_txn_data08.dbf
channel CH5: restoring datafile 00031 to +KITTU5_VG/kittu5/datafile/a_int03.dbf
channel CH5: restoring datafile 00039 to +KITTU5_VG/kittu5/datafile/undo05.dbf
channel CH5: restoring datafile 00042 to +KITTU5_VG/kittu5/datafile/sysaux04.dbf
channel CH5: restoring datafile 00044 to +KITTU5_VG/kittu5/datafile/a_nolog02.dbf
channel CH5: restoring datafile 00046 to +KITTU5_VG/kittu5/datafile/a_txn_data16.dbf
channel CH5: restoring datafile 00064 to +KITTU5_VG/kittu5/datafile/undo3_06.dbf
channel CH5: restoring datafile 00065 to +KITTU5_VG/kittu5/datafile/sysaux06.dbf
channel CH5: restoring datafile 00402 to +KITTU5_VG/kittu5/datafile/a_txn_data03.dbf
channel CH5: reading from backup piece /autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_5
channel CH6: starting datafile backup set restore
channel CH6: specifying datafile(s) to restore from backup set
channel CH6: restoring datafile 00003 to +KITTU5_VG/kittu5/datafile/system03.dbf
channel CH6: restoring datafile 00012 to +KITTU5_VG/kittu5/datafile/apps_ts_tools01.dbf
channel CH6: restoring datafile 00014 to +KITTU5_VG/kittu5/datafile/a_txn_data04.dbf
channel CH6: restoring datafile 00018 to +KITTU5_VG/kittu5/datafile/sysaux02.dbf
channel CH6: restoring datafile 00033 to +KITTU5_VG/kittu5/datafile/a_txn_data10.dbf
channel CH6: restoring datafile 00052 to +KITTU5_VG/kittu5/datafile/a_txn_data19.dbf
channel CH6: restoring datafile 00056 to +KITTU5_VG/kittu5/datafile/undo2_04.dbf
channel CH6: restoring datafile 00059 to +KITTU5_VG/kittu5/datafile/undo3_01.dbf
channel CH6: restoring datafile 00070 to +KITTU5_VG/kittu5/datafile/sysaux08.dbf
channel CH6: restoring datafile 00351 to +KITTU5_VG/kittu5/datafile/system07.dbf
channel CH6: restoring datafile 00354 to +KITTU5_VG/kittu5/datafile/system11.dbf
channel CH6: reading from backup piece /autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_1
channel CH7: starting datafile backup set restore
channel CH7: specifying datafile(s) to restore from backup set
channel CH7: restoring datafile 00002 to +KITTU5_VG/kittu5/datafile/system02.dbf
channel CH7: restoring datafile 00008 to +KITTU5_VG/kittu5/datafile/a_queue02.dbf
channel CH7: restoring datafile 00017 to +KITTU5_VG/kittu5/datafile/a_int02.dbf
channel CH7: restoring datafile 00022 to +KITTU5_VG/kittu5/datafile/usersx01.dbf
channel CH7: restoring datafile 00037 to +KITTU5_VG/kittu5/datafile/a_txn_data14.dbf
channel CH7: restoring datafile 00038 to +KITTU5_VG/kittu5/datafile/a_txn_ind07.dbf
channel CH7: restoring datafile 00055 to +KITTU5_VG/kittu5/datafile/undo2_03.dbf
channel CH7: restoring datafile 00295 to +KITTU5_VG/kittu5/datafile/system06.dbf
channel CH7: restoring datafile 00353 to +KITTU5_VG/kittu5/datafile/system08.dbf
channel CH7: restoring datafile 00379 to +KITTU5_VG/kittu5/datafile/undo01.dbf
channel CH7: restoring datafile 00393 to +KITTU5_VG/kittu5/datafile/a_txn_ind01.dbf
channel CH7: reading from backup piece /autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_2
channel CH8: starting datafile backup set restore
channel CH8: specifying datafile(s) to restore from backup set
channel CH8: restoring datafile 00013 to +KITTU5_VG/kittu5/datafile/system12.dbf
channel CH8: restoring datafile 00026 to +KITTU5_VG/kittu5/datafile/a_txn_data05.dbf
channel CH8: restoring datafile 00027 to +KITTU5_VG/kittu5/datafile/a_txn_data06.dbf
channel CH8: restoring datafile 00041 to +KITTU5_VG/kittu5/datafile/sysaux03.dbf
channel CH8: restoring datafile 00045 to +KITTU5_VG/kittu5/datafile/a_txn_data15.dbf
channel CH8: restoring datafile 00058 to +KITTU5_VG/kittu5/datafile/undo2_06.dbf
channel CH8: restoring datafile 00395 to +KITTU5_VG/kittu5/datafile/a_int01.dbf
channel CH8: restoring datafile 00400 to +KITTU5_VG/kittu5/datafile/a_media01.dbf
channel CH8: restoring datafile 00401 to +KITTU5_VG/kittu5/datafile/a_txn_data02.dbf
channel CH8: reading from backup piece /autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_4
channel CH9: starting datafile backup set restore
channel CH9: specifying datafile(s) to restore from backup set
channel CH9: restoring datafile 00001 to +KITTU5_VG/kittu5/datafile/system01.dbf
channel CH9: restoring datafile 00005 to +KITTU5_VG/kittu5/datafile/system05.dbf
channel CH9: restoring datafile 00029 to +KITTU5_VG/kittu5/datafile/a_txn_data07.dbf
channel CH9: restoring datafile 00032 to +KITTU5_VG/kittu5/datafile/a_txn_data09.dbf
channel CH9: restoring datafile 00040 to +KITTU5_VG/kittu5/datafile/undo06.dbf
channel CH9: restoring datafile 00043 to +KITTU5_VG/kittu5/datafile/a_txn_ind08.dbf
channel CH9: restoring datafile 00048 to +KITTU5_VG/kittu5/datafile/usersx02.dbf
channel CH9: restoring datafile 00066 to +KITTU5_VG/kittu5/datafile/sysaux07.dbf
channel CH9: restoring datafile 00352 to +KITTU5_VG/kittu5/datafile/system09.dbf
channel CH9: restoring datafile 00403 to +KITTU5_VG/kittu5/datafile/a_txn_ind02.dbf
channel CH9: reading from backup piece /autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_6
channel CH1: piece handle=/autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_8 tag=KITTU51_HOTINCR_0914_0010
channel CH1: restored backup piece 1
channel CH1: restore complete, elapsed time: 00:21:40
channel CH2: piece handle=/autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_9 tag=KITTU51_HOTINCR_0914_0010
channel CH2: restored backup piece 1
channel CH2: restore complete, elapsed time: 00:22:60
channel CH3: piece handle=/autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_7 tag=KITTU51_HOTINCR_0914_0010
channel CH3: restored backup piece 1
channel CH3: restore complete, elapsed time: 00:24:50
channel CH4: piece handle=/autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_3 tag=KITTU51_HOTINCR_0914_0010
channel CH4: restored backup piece 1
channel CH4: restore complete, elapsed time: 00:25:39
channel CH7: piece handle=/autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_2 tag=KITTU51_HOTINCR_0914_0010
channel CH7: restored backup piece 1
channel CH7: restore complete, elapsed time: 00:27:19
channel CH5: piece handle=/autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_5 tag=KITTU51_HOTINCR_0914_0010
channel CH5: restored backup piece 1
channel CH5: restore complete, elapsed time: 00:27:59
channel CH6: piece handle=/autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_1 tag=KITTU51_HOTINCR_0914_0010
channel CH6: restored backup piece 1
channel CH6: restore complete, elapsed time: 00:28:09
channel CH9: piece handle=/autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_6 tag=KITTU51_HOTINCR_0914_0010
channel CH9: restored backup piece 1
channel CH9: restore complete, elapsed time: 00:28:29
channel CH8: piece handle=/autofs/oracle/kittu5/oracle/kittu51/incr/KITTU5_HOT_09142012_1_4 tag=KITTU51_HOTINCR_0914_0010
channel CH8: restored backup piece 1
channel CH8: restore complete, elapsed time: 00:28:49
Finished restore at 14-SEP-12
released channel: CH1
released channel: CH2
released channel: CH3
released channel: CH4
released channel: CH5
released channel: CH6
released channel: CH7
released channel: CH8
released channel: CH9
released channel: CH10
released channel: CH11

RMAN> exit

Recovery Manager complete.

hostname1[kittu51]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.2.0 Production on Fri Sep 14 02:13:45 2012

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> shut immediate;

ORA-01507: database not mounted

ORACLE instance shut down.

SQL> startup mount;

ORACLE instance started.

Total System Global Area 3.7413E+10 bytes
Fixed Size 2234296 bytes
Variable Size 4026533960 bytes
Database Buffers 3.3286E+10 bytes
Redo Buffers 98414592 bytes
Database mounted.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

hostname1[kittu51]_oracle> rman target / catalog rcatdev/passwd@rmnd

Recovery Manager: Release 11.2.0.2.0 – Production on Fri Sep 14 02:14:50 2012

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

connected to target database: KITTU5 (DBID=3829540906, not open)
connected to recovery catalog database

RMAN> recover database;

Starting recover at 14-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=405 instance=kittu51 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=606 instance=kittu51 device type=DISK

starting media recovery

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 09/14/2012 02:15:07
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 2 with sequence 47 and starting SCN of 12629449875310 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 38 and starting SCN of 12629449878685 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 37 and starting SCN of 12629449875304 found to restore

RMAN> exit

Recovery Manager complete.

hostname1[kittu51]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.2.0 Production on Fri Sep 14 02:15:54 2012

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> select distinct(CHECKPOINT_CHANGE#) from v$datafile;

CHECKPOINT_CHANGE#
——————
1.2629E+13
1.2629E+13
1.2629E+13
1.2629E+13
1.2629E+13
1.2629E+13
1.2629E+13
1.2629E+13
1.2629E+13
1.2629E+13

10 rows selected.

SQL> shut immediate;

ORA-01109: database not open

Database dismounted.
ORACLE instance shut down.

SQL> startup mount pfile=’/autofs/oracle/kittu5/oracle/kittu5.ora’;

ORACLE instance started.

Total System Global Area 3.7413E+10 bytes
Fixed Size 2234296 bytes
Variable Size 4026533960 bytes
Database Buffers 3.3286E+10 bytes
Redo Buffers 98414592 bytes
Database mounted.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

hostname1[kittu51]_oracle> rman target / catalog rcatdev/passwd@rmnd

Recovery Manager: Release 11.2.0.2.0 – Production on Fri Sep 14 02:18:43 2012

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

connected to target database: KITTU5 (DBID=3829540906, not open)
connected to recovery catalog database

RMAN> recover database;

Starting recover at 14-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=1204 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=1405 device type=DISK

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 09/14/2012 02:24:17
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 2 with sequence 47 and starting SCN of 12629449875310 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 38 and starting SCN of 12629449878685 found to restore
RMAN-06025: no backup of archived log for thread 1 with sequence 37 and starting SCN of 12629449875304 found to restore

RMAN> catalog archivelog ‘+KITTU5_VG/kittu5/archive/log_47_2_792265862.arc’;

cataloged archived log
archived log file name=+KITTU5_VG/kittu5/archive/log_47_2_792265862.arc RECID=83 STAMP=793938496

RMAN> catalog archivelog ‘+KITTU5_VG/kittu5/archive/log_38_1_792265862.arc’;

cataloged archived log
archived log file name=+KITTU5_VG/kittu5/archive/log_38_1_792265862.arc RECID=84 STAMP=793938525

RMAN> catalog archivelog ‘+KITTU5_VG/kittu5/archive/log_37_1_792265862.arc’;

cataloged archived log
archived log file name=+KITTU5_VG/kittu5/archive/log_37_1_792265862.arc RECID=85 STAMP=793938546

RMAN> recover database;

Starting recover at 14-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=1004 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=1204 device type=DISK

starting media recovery

archived log for thread 1 with sequence 37 is already on disk as file +KITTU5_VG/kittu5/archive/log_37_1_792265862.arc
archived log for thread 1 with sequence 38 is already on disk as file +KITTU5_VG/kittu5/archive/log_38_1_792265862.arc
archived log for thread 2 with sequence 47 is already on disk as file +KITTU5_VG/kittu5/archive/log_47_2_792265862.arc
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=2 sequence=46
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=36
channel ORA_DISK_1: reading from backup piece /autofs/oracle/kittu5/oracle/kittu51/arch/KITTU5_ARCH_09142012_1_18
channel ORA_DISK_1: piece handle=/autofs/oracle/kittu5/oracle/kittu51/arch/KITTU5_ARCH_09142012_1_18 tag=KITTU51_ARCH_0914_0010
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:26
archived log file name=+KITTU5_VG/kittu5/archive/log_36_1_792265862.arc thread=1 sequence=36
archived log file name=+KITTU5_VG/kittu5/archive/log_46_2_792265862.arc thread=2 sequence=46
archived log file name=+KITTU5_VG/kittu5/archive/log_37_1_792265862.arc thread=1 sequence=37
archived log file name=+KITTU5_VG/kittu5/archive/log_47_2_792265862.arc thread=2 sequence=47
archived log file name=+KITTU5_VG/kittu5/archive/log_38_1_792265862.arc thread=1 sequence=38
Finished recover at 14-SEP-12

RMAN> exit

Recovery Manager complete.

hostname1[kittu51]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.2.0 Production on Fri Sep 14 02:31:02 2012

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> alter database open resetlogs;

Database altered.

SQL> shut immediate;

Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

hostname1[kittu51]_oracle> srvctl start database -d kittu5
hostname1[kittu51]_oracle> srvctl status database -d kittu5

Instance kittu51 is running on node hostname1
Instance kittu52 is running on node hostname2
hostname1[kittu51]_oracle>

USERS

TO CHECK THE GIVEN USER PRIVILLAGES

select
lpad(‘ ‘, 2*level) || granted_role “User, his roles and privileges”
from
(
/* THE USERS */
select
null grantee,
username granted_role
from
dba_users
where
username like upper(‘%&enter_username%’)
/* THE ROLES TO ROLES RELATIONS */
union
select
grantee,
granted_role
from
dba_role_privs
/* THE ROLES TO PRIVILEGE RELATIONS */
union
select
grantee,
privilege
from
dba_sys_privs
)
start with grantee is null
connect by grantee = prior granted_role;

TO CHECK OBJECTS COUNT FOR A USER

select object_type,count(*) from dba_objects where owner=’CASAA_DW’ group by object_type;

TO CHECK USER DETIALS

select USERNAME,ACCOUNT_STATUS,DEFAULT_TABLESPACE,TEMPORARY_TABLESPACE from dba_users where USERNAME=’&USERNAME’;

TO GET USER DETIALS USING DDLS

set pagesize 0
set long 90000
set heading off;
set echo off;
Set pages 999;
set long 90000;
SELECT DBMS_METADATA.GET_DDL(‘USER’,’E_USER’) FROM dual;
select DBMS_METADATA.GET_GRANTED_DDL(‘SYSTEM_GRANT’,’E_USER’) FROM dual;
select DBMS_METADATA.GET_GRANTED_DDL(‘ROLE_GRANT’,’E_USER’) FROM dual;
select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’E_USER’) FROM dual;

create a user

CREATE USER H_PP14 IDENTIFIED BY passwd DEFAULT TABLESPACE “USERS_DATA” TEMPORARY TABLESPACE “TEMP”;

grants

grant connect to HYPP14;
grant resource to HYPP14;
GRANT CREATE VIEW TO HYPP14;
GRANT CREATE TABLE TO HYPP14;
GRANT UNLIMITED TABLESPACE TO HYPP14;
GRANT EXECUTE ON HYP_USER.USERMAINTENANCE to IDM_USER;
OR

SELECT ‘GRANT SELECT ON ‘||OWNER||’.’ ||TABLE_NAME || ‘ TO UMESH;’ FROM DBA_TABLES where OWNER=’CA_DW’;

ALL GRANTS AT A TIME FROM ONE USER TO ANOTHER USER

select ‘grant ‘||decode(object_type,’TABLE’,’select,insert,delete,update ‘,’VIEW’,’select,insert,delete,update ‘,’SEQUENCE’,’SELECT ‘,’PROCEDURE’,’EXECUTE ‘,’PACKAGE’,’EXECUTE ‘,’TRIGGER’,’EXECUTE ‘,’FUNCTION’,’EXECUTE ‘)||
‘ on ‘||owner||’.’||object_name||’ to TO_USER;’
from dba_objects where OWNER=’FROM_USER’
and object_type not in (‘INDEX’,’PACKAGE BODY’,’DATABASE LINK’);

set pages 40000
select ‘ create synonym new_user.’|| object_name ||’ for ‘ ||owner||’.’ ||object_name ||’;’ from dba_objects where owner=’old user’ and object_type in (‘TABLE’,’VIEW’,’SEQUENCE’,’TRIGGER’);
select ‘GRANT SELECT ON ‘||owner||’.’||table_name||’ TO new_user ;’ from dba_tables where owner=’olduser’;

to check the expiry date

select USERNAME,ACCOUNT_STATUS,EXPIRY_DATE from dba_users where EXPIRY_DATE between sysdate and sysdate+7;
alter user RAC_ACCNT account unlock;
SQL> select NAME,PASSWORD from sys.user$ where NAME=’&DBUSER’;

NAME PASSWORD
—————————— ——————————
DBUSER A6D4555654AB883338B888A

SQL> alter user DBUSER identified by values ‘A6D4555654AB883338B888A’;

User altered.

SQL> select USERNAME,EXPIRY_DATE from dba_users where USERNAME=’DBUSER’;

USERNAME EXPIRY_DA
—————————— ———
DBUSER 27-APR-13

SQL> alter user APPS_TRINITY identified by values ‘123BBE968’;

alter user APPS_TRINITY identified by values ‘123BBE968’
*
ERROR at line 1:
ORA-28007: the password cannot be reused

set lines 170
set pages 300
select * from dba_profiles;
SQL> alter profile default LIMIT PASSWORD_REUSE_TIME UNLIMITED;

Profile altered.
SQL> alter user APPS_TRINITY identified by values ‘123BBE968’;

User altered.
SQL> alter profile default LIMIT PASSWORD_REUSE_TIME 1800;

Profile altered.

Grants for other OBJECT_TYPE

SQL> select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′) FROM dual;

DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′)
——————————————————————————–

GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER01”

SQL> GRANT EXECUTE ON “SYS”.”NON-EBS” TO USER02;
GRANT EXECUTE ON “SYS”.”NON-EBS” TO USER02
*
ERROR at line 1:
ORA-04042: procedure, function, package, or package body does not exist

SQL> select OBJECT_NAME,OBJECT_TYPE,OWNER from dba_objects where OBJECT_NAME like ‘%NON-EBS%’;

OBJECT_NAME OBJECT_TYPE OWNER
——————– ——————- ——————————
NON-EBS CONSUMER GROUP SYS

SQL> exec dbms_resource_manager_privs.GRANT_SWITCH_CONSUMER_GROUP(grantee_name=>’USER02′,consumer_group=>’NON-EBS’,grant_option=> false);

PL/SQL procedure successfully completed.

SQL> select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′) FROM dual;

DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′)
——————————————————————————–

GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER01”

SQL> select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′) FROM dual;

DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′)
——————————————————————————–

GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER02” WITH GRANT OPTION

SQL> exec dbms_resource_manager_privs.REVOKE_SWITCH_CONSUMER_GROUP (‘USER02′,’NON-EBS’);

PL/SQL procedure successfully completed.

SQL> exec dbms_resource_manager_privs.GRANT_SWITCH_CONSUMER_GROUP(grantee_name=>’USER02′,consumer_group=>’NON-EBS’,grant_option=> false);

PL/SQL procedure successfully completed.

SQL> select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′) FROM dual;

DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′)
——————————————————————————–

GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER02”

BLOCKING AND LOCKS

TO FINDOUT THE LOCKS (RAC ENV)
col BLOCKING_STATUS format a100
col module format a20
col program format a30
col username format a8
select distinct s1.username || ‘@’ || s1.machine || ‘ ( INST=’ || s1.inst_id || ‘ SID=’ || s1.sid || ‘ ) is blocking ‘
|| s2.username || ‘@’ || s2.machine || ‘ ( INST=’ || s1.inst_id || ‘ SID=’ || s2.sid || ‘ ) ‘ AS blocking_status,s1.username,s1.osuser,s1.module,s1.program,
s1.status,floor(s1.last_call_et / 60) “Minutes” from gv$lock l1, gv$session s1, gv$lock l2, gv$session s2
where s1.sid=l1.sid and s2.sid=l2.sid and l1.BLOCK=1 and l2.request > 0
and l1.id1 = l2.id1 and l2.id2 = l2.id2 and l1.inst_id = s1.inst_id;

TO FINDOUT THE No of BLOCKING SESSION count

SELECT blocking_sid, num_blocked
FROM ( SELECT blocking_sid, SUM(num_blocked) num_blocked
FROM ( SELECT l.id1, l.id2,
MAX(DECODE(l.block, 1, i.instance_name||’-‘||l.sid,
2, i.instance_name||’-‘||l.sid, 0 )) blocking_sid,
SUM(DECODE(l.request, 0, 0, 1 )) num_blocked
FROM gv$lock l, gv$instance i
WHERE ( l.block!= 0 OR l.request > 0 ) AND
l.inst_id = i.inst_id
GROUP BY l.id1, l.id2)
GROUP BY blocking_sid
ORDER BY num_blocked DESC)
WHERE num_blocked != 0;

To findout object status

select INST_ID,SID,SERIAL#,STATUS,OSUSER,PROGRAM,SQL_ID from gv$session where SID=&SID;

To findout Waitevent

select sid, event, wait_time, seconds_in_wait, p1
from v$session_wait
where sid = &1
/

col event format a60

select u.sid, u.username, e.event from v$session u, v$session_wait e where u.sid=e.sid
and e.event not like ‘SQL*Net message from client’
order by 3
/

To findout OBJECT level lock

col username format a20
col sess_id format a10
col object format a25
col mode_held format a10
select oracle_username || ‘ (‘ || s.osuser || ‘)’ username
, s.sid || ‘,’ || s.serial# sess_id
, owner || ‘.’ || object_name object
, object_type
, decode( l.block
, 0, ‘Not Blocking’
, 1, ‘Blocking’
, 2, ‘Global’) status
, decode(v.locked_mode
, 0, ‘None’
, 1, ‘Null’
, 2, ‘Row-S (SS)’
, 3, ‘Row-X (SX)’
, 4, ‘Share’
, 5, ‘S/Row-X (SSX)’
, 6, ‘Exclusive’, TO_CHAR(lmode)) mode_held
from v$locked_object v
, dba_objects d
, v$lock l
, v$session s
where v.object_id = d.object_id
and v.object_id = l.id1
and v.session_id = s.sid
order by oracle_username, session_id;

To findout Row level lock

col KILL for a20
col TAB for a40
set lines 180
set pages 200
select nvl(S.USERNAME,’Internal’) username,
nvl(S.TERMINAL,’None’) terminal,
L.SID||’,’||S.SERIAL# Kill,
U1.NAME||’.’||substr(T1.NAME,1,20) tab,
decode(L.LMODE,1,’No Lock’,
2,’Row Share’,
3,’Row Exclusive’,
4,’Share’,
5,’Share Row Exclusive’,
6,’Exclusive’,null) lmode,
decode(L.REQUEST,1,’No Lock’,
2,’Row Share’,
3,’Row Exclusive’,
4,’Share’,
5,’Share Row Exclusive’,
6,’Exclusive’,null) request
from V$LOCK L,
V$SESSION S,
SYS.USER$ U1,
SYS.OBJ$ T1
where L.SID = S.SID
and T1.OBJ# = decode(L.ID2,0,L.ID1,L.ID2)
and U1.USER# = T1.OWNER#
and S.TYPE != ‘BACKGROUND’
and S.username not in (‘SYS’,’SYSTEM’)
order by 1,2,5;

This script will display the SQL text of locked transactions.

set pagesize 60
set linesize 132
select s.username username,
a.sid sid,
a.owner||’.’||a.object object,
s.lockwait,
t.sql_text SQL
from v$sqltext t,
v$session s,
v$access a
where t.address=s.sql_address
and t.hash_value=s.sql_hash_value
and s.sid = a.sid
and a.owner != ‘SYS’
and upper(substr(a.object,1,2)) != ‘V$’
/

displays locks and gives the SID and Serial Number of the session to kill.

set linesize 132 pagesize 66
break on Kill on username on terminal
column Kill heading ‘Kill String’ format a13
column res heading ‘Resource Type’ format 999
column id1 format 9999990
column id2 format 9999990
column lmode heading ‘Lock Held’ format a20
column request heading ‘Lock Requested’ format a20
column serial# format 99999
column username format a10 heading “Username”
column terminal heading Term format a6
column tab format a35 heading “Table Name”
column owner format a9
column Address format a18
column ctime heading “Seconds”
select nvl(S.USERNAME,’Internal’) username,
nvl(S.TERMINAL,’None’) terminal,
L.SID||’,’||S.SERIAL# Kill,
U1.NAME||’.’||substr(T1.NAME,1,20) tab,
decode(L.LMODE,1,’No Lock’,
2,’Row Share’,
3,’Row Exclusive’,
4,’Share’,
5,’Share Row Exclusive’,
6,’Exclusive’,null) lmode,
decode(L.REQUEST,1,’No Lock’,
2,’Row Share’,
3,’Row Exclusive’,
4,’Share’,
5,’Share Row Exclusive’,
6,’Exclusive’,null) request,
l.ctime
from V$LOCK L,
V$SESSION S,
SYS.USER$ U1,
SYS.OBJ$ T1
where L.SID = S.SID
and T1.OBJ# = decode(L.ID2,0,L.ID1,L.ID2)
and U1.USER# = T1.OWNER#
and S.TYPE != ‘BACKGROUND’
order by 1,2,5
/

check database level locks for an application user.
first get the userid from application user name:

select USER_NAME,USER_ID from apps.fnd_user where USER_NAME=’&username’;

USER_NAME USER_ID
———————————- ———-
CONE-HCAMPOS 52463

SQL> select s.sid,s.status,last_call_et,s.program from v$session s, v$process p where s.paddr=p.addr and pid in (select pid FROM FND_LOGINS WHERE USER_ID=&userid);

3525 INACTIVE 43817 JDBC Thin Client

3531 INACTIVE 19802 JDBC Thin Client

86 rows selected.

Locks held by above sessions:

SQL> select sid,serial#,status,last_Call_et,program,module from v$session where sid in (select
session_id from v$locked_object where session_id in (select sid from v$session s,v$process p where
s.paddr=p.addr and pid in (select pid FROM FND_LOGINS WHERE USER_ID=&userid)));

no rows selected

As per above query output , No objects are being locked by the db sessions of user CONE-HCAMPOS.

APPS

DB INFO

set pages 999
set linesize 160
col HOST_NAME format a40
col PLATFORM_NAME for a30
select INSTANCE_NAME,HOST_NAME,VERSION,STATUS,LOGINS,DATABASE_STATUS from gv$instance;
select NAME,LOG_MODE,OPEN_MODE,PLATFORM_NAME from gv$database;

APPS INFO

set lines 160
set pages 300
col PLATFORM_CODE for a15
col VIRTUAL_IP for a30
select NODE_NAME “Node Name”, to_char(CREATION_DATE, ‘DD-MON-RR HH24:MI’) “Creation Date”,
decode(STATUS,’Y’,’ACTIVE’,’INACTIVE’) Status,
decode(SUPPORT_CP,’Y’, ‘ConcMgr’,’No’) ConcMgr,
decode(SUPPORT_FORMS,’Y’,’Forms’, ‘No’) Forms,
decode(SUPPORT_WEB,’Y’,’Web’, ‘No’) WebServer,
decode(SUPPORT_ADMIN, ‘Y’,’Admin’, ‘No’) Admin,
decode(SUPPORT_DB, ‘Y’,’Rdbms’, ‘No’) Database,
PLATFORM_CODE, VIRTUAL_IP
from apps.fnd_nodes
where node_name != ‘AUTHENTICATION’;

Application version

select RELEASE_NAME from fnd_product_groups;

APPLICATION URL

select home_url from apps.icx_parameters;

languages installed

select NLS_LANGUAGE, INSTALLED_FLAG,LANGUAGE_CODE from FND_LANGUAGES where INSTALLED_FLAG in (‘B’,’I’);

Shared appl_top or not

select SHARED, APPL_TOP_GUID,PATH from apps.fnd_appl_tops;

find MRC Enabled ??

select multi_currency_flag from fnd_product_groups;

find Multi-org enabled?

select multi_org_flag from fnd_product_groups;

Workflow Version

select TEXT from WF_RESOURCES where NAME=’WF_VERSION’;

workflow mailer status

select COMPONENT_NAME,COMPONENT_STATUS from FND_SVC_COMPONENTS where component_id = ‘10006’;

workflow COMPONENT status

set lines 160
select COMPONENT_NAME,COMPONENT_STATUS from FND_SVC_COMPONENTS;

to findout the MODULE/PRODUCT is installed or not ?

col product for a10
col status for a15
col product_version for a10
col patchset for a30
col update_date for a15

select decode(nvl(a.APPLICATION_short_name,’Not Found’),’SQLAP’,’AP’,’SQLGL’,’GL’,’OFA’,’FA’,
‘Not Found’,’id ‘||to_char(fpi.application_id),
a.APPLICATION_short_name) Product,
decode(fpi.status,’I’,’Installed’,’S’,’Shared’,’N’,’Inactive’,fpi.status) status,
fpi.product_version,
nvl(fpi.patch_level,’– Not Available –‘) Patchset,
to_char(fpi.last_update_date,’dd-Mon-RRRR’) “Update_Date”
from apps.fnd_oracle_userid o, apps.fnd_application a, apps.fnd_product_installations fpi
where fpi.application_id = a.application_id(+)
and fpi.oracle_id = o.oracle_id(+)
order by 2,1
/

Patching querys

select bug_number creation_date from ad_bugs where bug_number in (
‘6272107’,
‘6272107’,
‘6272107’,
‘6272107’,
‘6272107’,
‘6272107’);
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where BUG_NUMBER like ‘&patchno’;
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date between ’11-FEB-11′ AND ’12-FEB-11′;
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date like ‘%11-FEB-11%’;
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where bug_number like ‘598704%’;
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date>’11-FEB-11′;
select BUG_NUMBER,CREATION_DATE,LANGUAGE from apps.ad_bugs where creation_date<'11-FEB-11';
select PATCH_NAME,PATCH_TYPE,CREATION_DATE from AD_APPLIED_PATCHES where CREATION_DATE LIKE '%12-FEB-11%';

what are all the nodes patch has been applied

select aap.patch_name, aat.name, apr.end_date
from ad_applied_patches aap,
ad_patch_drivers apd,
ad_patch_runs apr,
ad_appl_tops aat
where aap.applied_patch_id = apd.applied_patch_id
and apd.patch_driver_id = apr.patch_driver_id
and aat.appl_top_id = apr.appl_top_id
and aap.patch_name = ‘&PatchName’;

What drivers are applied while applying patch??

select apd.driver_file_name, apd.DRIVER_TYPE_C_FLAG “C”,
apd.DRIVER_TYPE_D_FLAG “D”, apd.DRIVER_TYPE_G_FLAG “G” ,
apdl.language from ad_patch_drivers apd, ad_patch_driver_langs apdl
where apd.patch_driver_id=apdl.patch_driver_id and
apd.driver_file_name like ‘%&a%’;

distributed ad

on node 1 give the below command
adpatch options=hotpatch workers=48 localworkers=24
on node 2 give the below command
adctrl distributed=y

admerge

admrgpch -s /cfsdshr/ccld3/appccld3/temp/patches/oem/9444535_long -d /cfsdshr/ccld3/appccld3/temp/patches/oem/9444535_long/dest

Apache version

$IAS_ORACLE_HOME/Apache/Apache/bin/httpd -v

perl version

$IAS_ORACLE_HOME/perl/bin/perl -v|grep built

Java version

$AFJVAPRG -version

Client JRE version

cat $FORMS_WEB_CONFIG_FILE|grep sun_plugin_version

Forms Version

$ORACLE_HOME/bin/frmcmp_batch|grep Forms| grep Version

PL/SQL Version

$ORACLE_HOME/bin/frmcmp_batch|grep PL/SQL|grep Version

Forms Communication Mode

cat $FORMS_WEB_CONFIG_FILE|grep serverURL=

DDL

set pages 0
set long 10000000
select dbms_metadata.get_ddl(‘PACKAGE’,’BILLERIF’,’SOWGBSDBA01′) FROM DUAL;
select dbms_metadata.get_ddl(‘PACKAGE_BODY’,’IPS_EXCEL_HC_DATA_PKG’,’IPS’) FROM DUAL;
select dbms_metadata.get_ddl(‘TRIGGER’,’TRGECALEVENTSTATS’,’CALPDBA01′) FROM DUAL;
select dbms_metadata.get_ddl(‘VIEW’,’SVC_WO_COM_DTLS_V’,’GETS_DW_SVC’) FROM DUAL;
select dbms_metadata.get_ddl(‘SEQUENCE’,’SEQ_DUEDATECHANGE_N’,’ECMDBA01′) FROM DUAL;
select dbms_metadata.get_ddl(‘USER’,’GET_DW_ETL’) from dual;
select dbms_metadata.get_ddl(‘TABLE’,’DEPT’,’SCOTT’) from dual;
select dbms_metadata.get_ddl(‘INDEX’,’DEPT_IDX’,’SCOTT’) from dual;
select dbms_metadata.get_ddl(‘DB_LINK’,’TEST.COM’,’VAP_DEFAULT_PROD’) from dual;
select dbms_metadata.get_ddl(‘PROCEDURE’,’IR_NOTE_STOP’,’DSI_DPIPE’) from dual;
select dbms_metadata.get_ddl(‘MATERIALIZED_VIEW’,’FILINGS’,’ECMDBA01′) from dual;
select dbms_metadata.get_ddl(‘CONSTRAINT’,’C1_TGDC_905C_AMT’,’FIRDBA01′) from dual;
select dbms_metadata.get_ddl(‘SYSTEM_GRANT’,’HLCDDBA01′) FROM dual;
select dbms_metadata.get_ddl(‘ROLE_GRANT’,’HLCDDBA01′) FROM dual;
select dbms_metadata.get_ddl(‘ROLE’,’SCHEMA_ROLE’) from dual;
select dbms_metadata.get_ddl(‘OBJECT_GRANT’,’HLCDDBA01′) FROM dual;
select dbms_metadata.get_granted_ddl( ‘TABLESPACE_QUOTA’, ‘HLCDDBA01’ ) from dual;

SELECT DBMS_METADATA.GET_DDL(‘USER’,u.USERNAME) FROM DBA_USERS u WHERE USERNAME IN
(‘CORPORATE_FINANCE_CMS_DB’,
‘CORPORATE_FINANCE_COGNOS_ENTER’,
‘CORPORATE_FINANCE_COGNOS_REPOR’,
‘CORPORATE_FINANCE_DDS_DM_DB’);

DB SIZE


DB UP TIME
select SYSDATE-logon_time “Days”, (SYSDATE-logon_time)*24 “Hours”
from sys.v_$session
where sid=1 /* this is PMON */
/

DB SIZE (Database Size,Used space,Free space)
col “Database Size” format a20
col “Free space” format a20
col “Used space” format a20
select round(sum(used.bytes) / 1024 / 1024 / 1024 ) || ‘ GB’ “Database Size”
, round(sum(used.bytes) / 1024 / 1024 / 1024 ) –
round(free.p / 1024 / 1024 / 1024) || ‘ GB’ “Used space”
, round(free.p / 1024 / 1024 / 1024) || ‘ GB’ “Free space”
from (select bytes
from v$datafile
union all
select bytes
from v$tempfile
union all
select bytes
from v$log) used
, (select sum(bytes) as p
from dba_free_space) free
group by free.p;

Database grouth year wise
select
to_char(b.CREATION_TIME,’YYYY’),
count(1) “NO_OF_FILES”,
sum( round(b.bytes/1024/1024,2)) “SIZE_IN_MB”
from v$datafile b,dba_data_files a where a.file_id=b.file#
group by to_char(b.CREATION_TIME,’YYYY’)
order by to_char(b.CREATION_TIME,’YYYY’) desc;

Database grouth monthly wise
select to_char(creation_time, ‘RRRR Month’) “Month”,
sum(bytes)/1024/1024 “Growth in Meg”
from sys.v_$datafile
where creation_time > SYSDATE-365
group by to_char(creation_time, ‘RRRR Month’);

Calculate total space for all datafiles within database.
select DF.TOTAL/1048576 “DataFile Size Mb”,
LOG.TOTAL/1048576 “Redo Log Size Mb”,
CONTROL.TOTAL/1048576 “Control File Size Mb”,
(DF.TOTAL + LOG.TOTAL + CONTROL.TOTAL)/1048576 “Total Size Mb”
from dual,
(select sum(a.bytes) TOTAL from dba_data_files a) DF,
(select sum(b.bytes) TOTAL from v$log b) LOG,
(select sum((cffsz+1)*cfbsz) TOTAL from x$kcccf c) CONTROL;

Calculate space for list of tablespaces within primary database.
select DF.TOTAL/1048576 “DataFile Size Mb”,
LOG.TOTAL/1048576 “Redo Log Size Mb”,
CONTROL.TOTAL/1048576 “Control File Size Mb”,
(DF.TOTAL + LOG.TOTAL + CONTROL.TOTAL)/1048576 “Total Size Mb” from dual,
(select sum(a.bytes) TOTAL from dba_data_files a
where tablespace_name in(‘SYSTEM’,’UNDOTBS1′, ‘SYSAUX’, ‘USERS’)) DF,
(select sum(b.bytes) TOTAL from v$log b) LOG,
(select sum((cffsz+1)*cfbsz) TOTAL from x$kcccf c) CONTROL;

Schema SIZE
select sum(bytes)/1024/1024/1024 from dba_segments where owner=upper(‘&owner’);

TABLESPACE


ALL TABLESPACES SIZE IN MB
SET LINES 150
SET pages 300
col “Tablespace” FOR a30
col “Total MB” FOR a15
col “Free MB” FOR a15
col “Used MB” FOR a15
col “% Used” FOR a15
SELECT tablespace_name “Tablespace”,
d.STATUS “Status”,
TO_CHAR((a.bytes / 1048576),’99,999,990.900′) “Total MB”,
TO_CHAR(((DECODE(f.bytes, NULL, 0, f.bytes)) / 1048576),’99,999,990.900′) “Free MB”,
TO_CHAR(((a.bytes – DECODE(f.bytes, NULL, 0, f.bytes)) / 1048576),’99,999,990.900′) “Used MB”,
TO_CHAR((((a.bytes – DECODE(f.bytes, NULL, 0, f.bytes)) / 1048576)*100) / (a.bytes / 1048576),’999,999.9′) “% Used”
FROM
(sys.dba_tablespaces d JOIN sys.sm$ts_avail a USING (tablespace_name))
LEFT OUTER JOIN sys.sm$ts_free f USING (tablespace_name)
ORDER BY 6
/

TO CHECK SINGLE TABLESPACE AND ALL ITS DATAFILE LIST IN MB
set lines 190
col FILE_NAME for a55
col TABLESPACE_NAME for a20
select TABLESPACE_NAME,FILE_NAME,bytes/1024/1024 “MB” from dba_data_files where TABLESPACE_NAME=upper(‘&tsname’);

TO ADD NEW DATAFILE
alter tablespace STAGE_DATA add datafile ‘+KITTU_VG/INST/datafile/stage15.dbf’ size 4000m;

TO RESIZE A DATAFILE
ALTER DATABASE DATAFILE ‘+KITTU_VG/INST/datafile/stage15.dbf’ RESIZE 4G;

TO CHECK THE TEMP TABLESPACE
set lines 160
set pages 300
col FILE_NAME for a70
col PROPERTY_VALUE for a40
Select tablespace_name,file_name,bytes/1024/1024 from dba_temp_files;
select TABLESPACE_NAME,sum(BYTES_USED)/1024/1024 USED_MB, sum(BYTES_FREE)/1024/1024 FREE_MB from V$TEMP_SPACE_HEADER group by TABLESPACE_NAME;

To findout default temp tablespace
set lines 160
set pages 300
col PROPERTY_VALUE for a40
select property_name,property_value from database_properties where property_name=’DEFAULT_TEMP_TABLESPACE’;

TO ADD TEMP FILE
ALTER TABLESPACE PSTEMP ADD TEMPFILE ‘/u02/oradata/hrcopy/pstemp01.dbf’ SIZE 1000M;

TO RESIZE TEMP FILE
alter database tempfile ‘/u02/oradata/TESTDB/temp01.dbf’ resize 250M;

TOTAL TEMP USAGE
SELECT (SELECT (SUM (tu.blocks))
FROM v$tempseg_usage tu)
* (SELECT VALUE
FROM v$parameter
WHERE NAME = ‘db_block_size’)
/ 1024 / 1024 AS “Used (MB)”,
(SELECT SUM (tf.BYTES)
FROM dba_temp_files tf) / 1024 / 1024 AS “Total (MB)”,
ROUND ((SELECT (SUM (tu.blocks))
FROM v$tempseg_usage tu) / (SELECT SUM (tf.blocks)
FROM dba_temp_files tf) * 100,
2
) AS pct
FROM DUAL;

WHO IS USING TEMP TABLESPACE
set lines 160
set pages 500
col SID_SERIAL for a15;
col USERNAME for a15;
col osuser for a15;
col SPID for a15
col MODULE for a30
col PROGRAM for a20
col TABLESPACE for a10
SELECT S.sid || ‘,’ || S.serial# sid_serial, S.username, S.osuser, P.spid, S.module,
S.program, SUM (T.blocks) * TBS.block_size / 1024 / 1024 mb_used, T.tablespace,
COUNT(*) sort_ops
FROM v$sort_usage T, v$session S, dba_tablespaces TBS, v$process P
WHERE T.session_addr = S.saddr
AND S.paddr = P.addr
AND T.tablespace = TBS.tablespace_name
GROUP BY S.sid, S.serial#, S.username, S.osuser, P.spid, S.module,
S.program, TBS.block_size, T.tablespace
ORDER BY sid_serial;

WHO IS USING UNDO TABLESPACE
SET PAGESIZE 500
SET LINESIZE 160
COLUMN pgm_notes FORMAT a80 HEADING ‘Notes’
COLUMN rbs FORMAT a12 HEADING ‘Undo Segment’
COLUMN oracle_user FORMAT a12 HEADING ‘Oracle|Username’
COLUMN sid_serial FORMAT a12 HEADING ‘SID,Serial’
COLUMN unix_pid FORMAT a6 HEADING ‘O/S|PID’
COLUMN Client_User FORMAT a20 HEADING ‘Client|Username’
COLUMN Unix_user FORMAT a12 HEADING ‘O/S|Username’
COLUMN login_time FOR/MAT a17 HEADING ‘Login Time’
COLUMN last_txn FORMAT a17 HEADING ‘Last Active’
COLUMN undo_kb FORMAT 99,999,999 HEADING ‘Undo KB’
SELECT r.name rbs,
nvl(s.username, ‘None’) oracle_user,
s.osuser client_user,
p.username unix_user,
to_char(s.sid)||’,’||to_char(s.serial#) as sid_serial,
p.spid unix_pid,
— TO_CHAR(s.logon_time, ‘mm/dd/yy hh24:mi:ss’) as login_time,
— TO_CHAR(sysdate – (s.last_call_et) / 86400,’mm/dd/yy hh24:mi:ss’) as last_txn,
t.used_ublk * TO_NUMBER(x.value)/1024 as undo_kb
FROM v$process p,
v$rollname r,
v$session s,
v$transaction t,
v$parameter x
WHERE s.taddr = t.addr
AND s.paddr = p.addr(+)
AND r.usn = t.xidusn(+)
AND x.name = ‘db_block_size’
ORDER
BY r.name
;

CALCULATE UNDO RETENTION
SELECT d.undo_size/(1024*1024) “ACTUAL UNDO SIZE [MByte]”,
SUBSTR(e.value,1,25) “UNDO RETENTION [Sec]”,
ROUND((d.undo_size / (to_number(f.value) *
g.undo_block_per_sec))) “OPTIMAL UNDO RETENTION [Sec]”
FROM (
SELECT SUM(a.bytes) undo_size
FROM v$datafile a,
v$tablespace b,
dba_tablespaces c
WHERE c.contents = ‘UNDO’
AND c.status = ‘ONLINE’
AND b.name = c.tablespace_name
AND a.ts# = b.ts#
) d,
v$parameter e,
v$parameter f,
(
SELECT MAX(undoblks/((end_time-begin_time)*3600*24))
undo_block_per_sec
FROM v$undostat
) g
WHERE e.name = ‘undo_retention’
AND f.name = ‘db_block_size’
/

SYSAUX USAGE
select OCCUPANT_NAME,SCHEMA_NAME,SPACE_USAGE_KBYTES from V$sysaux_occupants order by
SPACE_USAGE_KBYTES;

COMPONENTS ARE OCCUPYING SPACE IN SYSAUX
select space_usage_kbytes, occupant_name, occupant_desc from v$sysaux_occupants
order by 1 desc;

ALL DATAFILES USAGE
set pages 8000
set lines 700
col FILE_NAME for a60
SELECT SUBSTR (df.NAME, 1, 60) file_name, df.bytes / 1024 / 1024 allocated_mb,
((df.bytes / 1024 / 1024) – NVL (SUM (dfs.bytes) / 1024 / 1024, 0)) used_mb,
NVL (SUM (dfs.bytes) / 1024 / 1024, 0) free_space_mb
FROM v$datafile df, dba_free_space dfs
WHERE df.file# = dfs.file_id(+)
GROUP BY dfs.file_id, df.NAME, df.file#, df.bytes
ORDER BY file_name;

To find out the RETENTION period stats:
Select dbms_stats.get_stats_history_retention from dual;

LOCALLY VS DICTIONARY MANAGED TABLESPACES
select tablespace_name, extent_management from dba_tablespaces;

TO DETERMINE AUTOEXTEND ON/OFF TABLESPACES
select file_id, tablespace_name, bytes, maxbytes, maxblocks, increment_by, file_name from dba_data_files where autoextensible = ‘YES’;

TO VERIFY THE LOCATION OF ALL FILES
set lines 160
set lines 100
set pages 999
col name format a70
set lines 100
set pages 999
col name format a70
select name, bytes from
(select name, bytes from v$datafile
union all
select name, bytes from v$tempfile
union all
select lf.member “name”, l.bytes from v$logfile lf , v$log l where lf.group# = l.group#
union all
select name, 0 from v$controlfile) used , (select sum(bytes) as p from dba_free_space) free
/

THE FOLLOWING QUERY RETURNS A LIST OF OBJECTS THAT ARE CREATED IN THE SYSTEM TABLESPACE BUT NOT OWNED BY SYS OR SYSTEM.(DEPENDENCY)
select owner, segment_name, segment_type from dba_segments where tablespace_name = ‘SYSTEM’ and owner not in (‘SYS’,’SYSTEM’);

To Determine the Tablespace more then 90%
SELECT vm.tablespace_name,
(100 – (NVL (vf.BYTES, 0) / vm.BYTES) * 100) pctinuse,
NVL (vf.BYTES, 0)/1024/1024 free_mb, vm.BYTES max_bytes,
NVL (MAX (f.BYTES), 0) free_ext
FROM SYS.sm$ts_avail vm, SYS.sm$ts_free vf, SYS.dba_free_space f
WHERE vm.tablespace_name = vf.tablespace_name
AND vm.tablespace_name = f.tablespace_name
AND (100 – (NVL (vf.BYTES, 0) / vm.BYTES) * 100) > 90
GROUP BY vm.tablespace_name, vf.BYTES, vm.BYTES
ORDER BY 1;

To Determine the Tablespace more then 80% full
set pages 999 lines 100
col tablespace_name format a40
col “size MB” format 999999999
col “% Used” format 999
col “80%” format 999999
col “75%” format 999999
select tsu.tablespace_name
, ceil(tsu.used_mb) “size MB”
, 100 – floor(tsf.free_mb/tsu.used_mb*100) “% Used”
, (tsu.used_mb / 100) * (20 – floor(tsf.free_mb/tsu.used_mb*100)) “80%”
, (tsu.used_mb / 100) * (25 – floor(tsf.free_mb/tsu.used_mb*100)) “75%”
from (select tablespace_name, sum(bytes)/1024/1024 used_mb
from dba_data_files group by tablespace_name) tsu
, (select tablespace_name, sum(bytes)/1024/1024 free_mb
from dba_free_space group by tablespace_name) tsf
where tsu.tablespace_name = tsf.tablespace_name (+)
and 100 – floor(tsf.free_mb/tsu.used_mb*100) >= 80
order by 3,4,5

PT

Check the active session

set lines 180
set pagesize 300
col SID for 99999
col SERIAL# for 99999
col PROGRAM for a50
col SPID for a10
col USERNAME for a10
col OSUSER for a10
col MACHINE for a30
col SQL_ID for a15
select distinct p.INST_ID,sid,s.serial#,spid,osuser,s.username,s.machine,s.program,s.sql_id
from gv$process p,gv$session s
where status = ‘ACTIVE’
and p.addr = s.paddr
and s.username != ‘ ‘
and s.username not in (‘SYS’,’SYSTEM’,’DBSNMP’)
order by 2
/

To check the sid and serial hash value of concurrent request

select fcr.request_id,S.inst_id,S.SID,S.SERIAL# from gv$session s, apps.fnd_concurrent_requests fcr where s.audsid =fcr.oracle_session_id
and fcr.request_id =’&con_req_id’;

To findout particular sid

col PROCESS for a8;
col OSUSER for a10;
col USERNAME for a10;
col module for a30;
col program for a30
select distinct sid, b.serial#, osuser, b.username,process,b.program, module,b.sql_id,status from gv$process a,gv$session b where sid=’&sid’;

To check explain plan

SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY());
SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR(’70kw0zmnw6pjn’));
SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_AWR(‘dmbp9z2xf4bkf’));

with the sid check the sql

select sql_text from gv$session, gv$sqltext
where gv$session.sql_address = gv$sqltext.address
and gV$session.sql_hash_value = gv$sqltext.hash_value
and sid = &sid
order by piece
/

If you know the sql findout sql_id

set lines 200
set pages 500
col sql_id for a15;
col sql_text for a150
select sql_id,SUBSTR(sql_text,1,150) sql_text from gv$sql where sql_text LIKE ‘&query%’;

To check any blocking sessions

col BLOCKING_STATUS format a100
col module format a20
col program format a30
col username format a8
select distinct s1.username || ‘@’ || s1.machine || ‘ ( INST=’ || s1.inst_id || ‘ SID=’ || s1.sid || ‘ ) is blocking ‘
|| s2.username || ‘@’ || s2.machine || ‘ ( INST=’ || s1.inst_id || ‘ SID=’ || s2.sid || ‘ ) ‘ AS blocking_status,s1.username,s1.osuser,s1.module,s1.program,
s1.status,floor(s1.last_call_et / 60) “Minutes” from gv$lock l1, gv$session s1, gv$lock l2, gv$session s2
where s1.sid=l1.sid and s2.sid=l2.sid and l1.BLOCK=1 and l2.request > 0
and l1.id1 = l2.id1 and l2.id2 = l2.id2 and l1.inst_id = s1.inst_id;

To check when the requst started running

select to_char(sysdate,’dd-mon-yy hh24:mi:ss’) from dual;
select to_char(actual_start_date,’dd-mon-yy hh24:mi:ss’) from fnd_concurrent_requests where request_id =’&req_id’;

to check no of execttions

select SQL_ID,child_number,PLAN_HASH_VALUE,EXECUTIONS,ELAPSED_TIME,CPU_TIME,sql_plan_baseline from v$sql where sql_id=’&sql_id’;

To check the any sub request of parent concurrent request

select request_id from fnd_concurrent_requests where parent_request_id=’&parent_req_id’;

To findout the program id to detarmine program name

select request_id,concurrent_program_id from fnd_concurrent_requests where request_id =’&req_id’;

To findout the program name

select USER_CONCURRENT_PROGRAM_NAME from fnd_concurrent_programs_tl where CONCURRENT_PROGRAM_ID =’&prog_id’;

check table stat

select NUM_ROWS,LAST_ANALYZED from all_tables where table_name like ‘&tablename’;
select count(1) from GL_BALANCES;
select stale_stats from dba_tab_statistics where table_name like ‘&tablename’;
select TABLE_NAME,PARTITION_NAME from all_tab_partitions where TABLE_NAME=’&tablename’;
select OWNER,OBJECT_TYPE,OBJECT_NAME from dba_objects where OBJECT_NAME =’&tablename’;
select BLOCKS,BYTES from dba_segments where SEGMENT_TYPE=’TABLE’ and OWNER=’&owner’ and SEGMENT_NAME=’&segment_name’;
select INDEX_NAME from dba_indexes where TABLE_NAME=’ACCT’ and OWNER=’SMITH’;

To kill a particular sesstion

select ‘alter system kill session ‘ || ”” || sid || ‘,’ || serial# ||’,@’|| inst_id || ”” || ‘ immediate;’ from gv$session where OSUSER=’&OSUSERNAME’;

TO VERIFY THE KILLED SESSION

SELECT inst_id, status, event, state, blocking_session, sid, serial#, program FROM gv$session WHERE status = ‘KILLED’;

–from os kill spid

enableing trace

EXEC DBMS_MONITOR.session_trace_enable(session_id =>2899,serial_num=>1, waits=>TRUE, binds=>FALSE);

then with that trace , tkprof and you can analyze the plan and exec,fetch calls.

Table stats

SQL> EXEC dbms_stats.gather_table_stats(‘SMITH’,’ACCT’,cascade=>TRUE);

Schema Stats

execute dbms_stats.gather_schema_stats(‘SMITH’, estimate_percent=>100, cascade=>TRUE);

check the Last Analyzed date

SQL> select table_name,num_rows,LAST_ANALYZED from dba_tables where OWNER=’SMITH’ order by 1;

Create a SQL tuning task

DECLARE
my_task_name VARCHAR2(30);
my_sqltext CLOB;
BEGIN
my_sqltext := ‘SELECT * FROM EMP’;

my_task_name := DBMS_SQLTUNE.CREATE_TUNING_TASK(
sql_text => my_sqltext,
user_name => ‘SYS’,
scope => ‘COMPREHENSIVE’,
time_limit => 60,
task_name => ‘TEST_sql_tuning_task’,
description => ‘Task to tune a query on a specified PRODUCT’);
END;

To view the task names associated with a specific owner, you can run the following

SQL> select task_name from dba_advisor_log where owner=’SYS’;

Execute the tuning task

SQL> Execute dbms_sqltune.Execute_tuning_task (task_name => ‘TEST_sql_tuning_task’);

Check the status of the task

SQL> select task_name,status from dba_advisor_log where owner = ‘SYS’ and task_name=’TEST_sql_tuning_task’;

View the Recommendations

set long 65536
set longchunksize 65536
set linesize 100
select dbms_sqltune.report_tuning_task(‘TEST_sql_tuning_task’) from dual;

Display detailed information about the current user’s session.

select ‘Sid, Serial#, Aud sid : ‘|| s.sid||’ , ‘||s.serial#||’ , ‘||
s.audsid||chr(10)|| ‘DB User / OS User : ‘||s.username||
‘ / ‘||s.osuser||chr(10)|| ‘Machine – Terminal : ‘||
s.machine||’ – ‘|| s.terminal||chr(10)||
‘OS Process Ids : ‘||
s.process||’ (Client) ‘||p.spid||’ (Server)’|| chr(10)||
‘Client Program Name : ‘||s.program “Session Info”
from v$process p,v$session s
where p.addr = s.paddr
and s.audsid = userenv(‘SESSIONID’)
/

To find information about currently long-running queries

set lines 200 pages 200
col sql_text for a50
col username for a12
col sid for 9999
col key for 99999999999999
select key, sid, username, sql_id, sql_plan_hash_value plan_hash, elapsed_time, cpu_time, buffer_gets, disk_reads, substr(sql_text,1,50) sql_text
from v$sql_monitor
where status = ‘EXECUTING’;

To find the execution plan for a key value.

set lines 200 pages 200
col operation for a32
col plan_options for a20
col plan_object_name for a24
col id for 999
select plan_line_id id, lpad (‘ ‘, plan_depth) || plan_operation operation , plan_options , plan_object_name , plan_cardinality card, plan_cost
from v$sql_monitor q, v$sql_plan_monitor p
where q.key = p.key
and q.key =
order by id;

SCHEMA REFRESH

Check the schema SIZE

SQL> select sum(bytes)/1024/1024/1024 from dba_segments where owner=upper(‘&owner’);

Check the Object count of the specific schema

select object_type,count(*) from dba_objects where owner=upper(‘&username’) group by object_type;
select owner,object_type,count(*) from dba_objects where owner=’JTF’ group by owner,object_type;
select owner,count(*) from dba_objects where owner like ‘JTF%’ group by owner;
select owner,count(*) from dba_objects group by owner;
select object_type,count(*) from dba_objects where owner=upper(‘&username’) group by object_type;

Get the DDL of schema if required

set long 100000
select dbms_metadata.get_ddl(‘USER’,upper(‘&username’)) from dual;
select dbms_metadata.get_granted_ddl( ‘SYSTEM_GRANT’, upper(‘&username’) ) from dual;
select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,upper(‘&username’)) FROM dual;
select GRANTEE,TABLE_NAME from dba_tab_privs where GRANTEE=upper(‘&username’);
select dbms_metadata.get_granted_ddl( ‘ROLE_GRANT’, upper(‘&username’)) from dual;

Take the passwords bkp:

select ‘alter user ‘||username||’ identified by values ‘||password||’;’ from dba_users; –10g
select ‘alter user ‘||name||’ identified by values ‘||password||’;’ from SYS.USER$; –11g

Export the schema on source and target (Master Note for Data Pump [ID 1264715.1])

expdp system/passwd DUMPFILE=USER01_21_09_2012.dmp DIRECTORY=EXPORT_HOME logfile=USER01_21_09_2012.log SCHEMAS=USER01

SCP to target

scp USER01_21_09_2012.dmp kasarlak@hostname:/u01/oracle/inst/export

Droping schema objects only excluding db links:

select ‘drop ‘||object_type||’ ‘||owner||’.’||object_name||DECODE(OBJECT_TYPE,’TABLE’,’ CASCADE CONSTRAINTS;’,’;’)
from dba_objects
where owner in (‘RNRDBA01’) and
OBJECT_TYPE not in (‘DATABASE LINK’)
order by object_type,object_name;

Import the schema in target

impdp system/passwd DUMPFILE=USER01_21_09_2012.dmp DIRECTORY=EXPORT_HOME logfile=USER01_21_09_2012.log SCHEMAS=USER01

Check if any invalids

set lines 200
set pages 999
col “obj” format a40
select OBJECT_NAME,OBJECT_TYPE from user_objects where status=’INVALID’;
select owner || ‘.’ || object_name “obj”, object_type from dba_objects where status = ‘INVALID’;
select OWNER,OBJECT_NAME,OBJECT_TYPE,STATUS from dba_objects where OBJECT_NAME=’XDB_PI_TRIG’;
select ‘ALTER ‘ || OBJECT_TYPE || ‘ ‘ || OWNER || ‘.’ || OBJECT_NAME || ‘ COMPILE;’from dba_objects where status = ‘INVALID’ and object_type in (‘PACKAGE’,’FUNCTION’,’PROCEDURE’);

TO CHECK THE SCHEMA DETAILS

set lines 160
set pages 300
select USERNAME,ACCOUNT_STATUS,DEFAULT_TABLESPACE,TEMPORARY_TABLESPACE from DBA_USERS where USERNAME=’SRCADMIN’;

USERNAME ACCOUNT_STATUS DEFAULT_TABLESPACE TEMPORARY_TABLESPACE
—————————— ——————————– —————————— ——————————
SRCADMIN OPEN USERS TEMP

SQL>
TO CREATE A TABLE TO EXPORT THE EXISTING SCHEMA

begin
dbms_stats.create_stat_table(
ownname => ‘SRCADMIN’,
stattab => ‘SRCADMIN_STATS_28DEC2012’,
tblspace => ‘USERS’
);
end;
/

PL/SQL procedure successfully completed.
TO EXPORT THE EXISTING SCHEMA STATS

EXEC DBMS_STATS.EXPORT_SCHEMA_STATS (‘SRCADMIN’,’SRCADMIN_STATS_28DEC2012′,NULL,’SRCADMIN’);

PL/SQL procedure successfully completed.

SQL>
CHECK THE EXPORT IS TAKEN THE BACKUP OR NOT

select count(*) from SRCADMIN.SRCADMIN_STATS_28DEC2012;

COUNT(*)
———-
8289
SQL>
GATHER STATS ON A SCHEMA

BEGIN
DBMS_STATS.GATHER_SCHEMA_STATS (
OWNNAME =>’SRCADMIN’,
estimate_percent => 10,
GRANULARITY => ‘ALL’,
METHOD_OPT => ‘FOR ALL INDEXED COLUMNS SIZE AUTO’,
DEGREE => 31,
CASCADE => TRUE
);END;
/

PL/SQL procedure successfully completed.
SQL>
QUERY TO CHECK THE LAST ANALYSED TABLES WITH DATA AND TIME

SET PAUSE ON
SET PAUSE ‘Press Return to Continue’
SET PAGESIZE 60
SET LINESIZE 300
SELECT t.owner,
t.table_name AS “Table Name”,
t.num_rows AS “Rows”,
t.avg_row_len AS “Avg Row Len”,
Trunc((t.blocks * p.value)/1024) AS “Size KB”,
to_char(t.last_analyzed,’DD/MM/YYYY HH24:MM:SS’) AS “Last Analyzed”
FROM dba_tables t,
v$parameter p
WHERE t.owner = Decode(Upper(‘&&Table_Owner’), ‘ALL’, t.owner, Upper(‘&&Table_Owner’))
AND p.name = ‘db_block_size’
ORDER by t.owner,t.last_analyzed,t.table_name
/

Concurrent Manager

CONCURRENT MANAGER STATUS

set lines 180
set pages 300
col USER_CONCURRENT_QUEUE_NAME for a60
select user_concurrent_queue_name, max(max_processes) max_processes,
sum(actual_processes) actual_processes ,
SLEEP_SECONDS
from (SELECT user_concurrent_queue_name, max_processes,
count(*) actual_processes ,
SLEEP_SECONDS
FROM apps.fnd_concurrent_processes proc,
apps.fnd_concurrent_queues_vl concq,
v$process vproc,
v$session vsess
WHERE proc.process_status_code = ‘A’
AND proc.queue_application_id = concq.application_id
AND proc.concurrent_queue_id = concq.concurrent_queue_id
AND proc.oracle_process_id = vproc.pid(+)
AND vproc.addr = vsess.paddr(+)
GROUP BY user_concurrent_queue_name, max_processes ,SLEEP_SECONDS
UNION ALL
SELECT distinct user_concurrent_queue_name, max_processes,
0, SLEEP_SECONDS
FROM apps.fnd_concurrent_processes proc,
apps.fnd_concurrent_queues_vl concq,
v$process vproc,
v$session vsess
WHERE proc.process_status_code != ‘A’
AND proc.queue_application_id = concq.application_id
AND proc.concurrent_queue_id = concq.concurrent_queue_id
AND proc.oracle_process_id = vproc.pid(+)
AND vproc.addr = vsess.paddr(+)
GROUP BY user_concurrent_queue_name, max_processes, SLEEP_SECONDS)
group by user_concurrent_queue_name, SLEEP_SECONDS
order by 2,1 ASC;

To check the wait Events

select sid, event, wait_time, seconds_in_wait, p1
from v$session_wait
where sid = &1;

To Check the locks

col BLOCKING_STATUS format a100
col module format a20
col program format a30
col username format a8
select distinct s1.username || ‘@’ || s1.machine || ‘ ( INST=’ || s1.inst_id || ‘ SID=’ || s1.sid || ‘ ) is blocking ‘
|| s2.username || ‘@’ || s2.machine || ‘ ( INST=’ || s1.inst_id || ‘ SID=’ || s2.sid || ‘ ) ‘ AS blocking_status,s1.username,s1.osuser,s1.module,s1.program,
s1.status,floor(s1.last_call_et / 60) “Minutes” from gv$lock l1, gv$session s1, gv$lock l2, gv$session s2
where s1.sid=l1.sid and s2.sid=l2.sid and l1.BLOCK=1 and l2.request > 0
and l1.id1 = l2.id1 and l2.id2 = l2.id2 and l1.inst_id = s1.inst_id;

To Check the Praticular program status

SELECT to_char(a.request_id) ||’~’||
decode(to_char(parent_request_id),’-1′,null,to_char(parent_request_id)) ||’~’||
a.user_concurrent_program_name ||’~’||
to_char(a.requested_start_date,’DD-MON-RR HH24:MI:SS’) ||’~’||
to_char(a.actual_start_date,’DD-MON-RR HH24:MI:SS’) ||’~’||
to_char(a.actual_completion_date,’DD-MON-RR HH24:MI:SS’) ||’~’||
round(trunc(((actual_completion_date-actual_start_date)*24*60*60)/60)+(((actual_completion_date-actual_start_date)*24*60*60)-(trunc(((actual_completion_date-actual_start_date)*24*60*60)/60)*60))/100,2) ||’~’||
a.requestor ||’~’||
decode(a.phase_code,’R’,’Running’,’P’,’Inactive’,’C’,’Completed’, a.phase_code) ||’~’||
decode(a.status_code,’E’,’Error’, ‘C’,’Normal’, ‘X’,’Terminated’, ‘Q’,’On Hold’, ‘D’,’Cancelled’, ‘G’,’Warning’, ‘R’,’Normal’, ‘W’, ‘Paused’, a.status_code)
–||’~’|| a.argument_text
FROM apps.fnd_conc_req_summary_v a
WHERE a.user_concurrent_program_name like (‘&1%’)
and trunc(requested_start_date) = trunc(sysdate)
order by a.user_concurrent_program_name,a.actual_start_date;

To Get the SID for the request

select fcr.request_id,S.inst_id,S.SID,S.SERIAL# from gv$session s, apps.fnd_concurrent_requests fcr where s.audsid =fcr.oracle_session_id
and fcr.request_id =&request_id;

CONCURRENT REQUESTS COMPLETED WITH ERRORS

COL name FORMAT a50
COL st_time FORMAT a7
COL requestor FORMAT a18
SET TRIMSPOOL ON
SET FEEDBACK OFF
SET TERM OFF
SET VERIFY OFF
SET PAGES 9000
SET LINES 120
SELECT a.request_id request_id
, SUBSTR(a.user_concurrent_program_name,1,50) name
, TO_CHAR(a.actual_start_date,’Hh34:MI’) st_time
, TO_CHAR(a.actual_completion_date,’Hh34:MI’) end_time
, requestor
, DECODE(a.phase_code, ‘R’
,’Running’, ‘P’
,’Inactive’, ‘C’
,’Completed’, a.phase_code) phase_code
, DECODE(a.status_code, ‘E’
,’Error’, ‘C’
,’Normal’, ‘X’
,’Terminated’, ‘Q’
,’On Hold’, ‘D’
,’Cancelled’, ‘G’
,’Warning’, ‘R’
,’Normal’, ‘W’
,’Paused’, a.status_code) status_code
FROM apps.fnd_conc_req_summary_v a
WHERE TRUNC(actual_completion_date) >= TRUNC(SYSDATE -1)
AND a.status_code IN (‘E’,’X’,’D’)
ORDER BY actual_start_date
/

USAGE REPORT FOR TODAY

SET PAGES 900
SELECT fcr.cnt “Conc Reqs”
, icxs.self_serv_user_COUNT “SelfServ Users”
, icxs.self_serv_session_COUNT “SelfServ Sessions”
, fl.forms_user_COUNT “Forms Users”
, fl.forms_session_COUNT “Forms Sessions”
FROM (SELECT COUNT(distinct user_id) self_serv_user_COUNT
, COUNT(*) self_serv_session_COUNT
FROM icx.icx_sessions
WHERE TRUNC(creation_date) = TRUNC(SYSDATE-1)) icxs,
(SELECT COUNT(distinct user_id) forms_user_COUNT
, COUNT(*) forms_session_COUNT
FROM applsys.fnd_logins
WHERE TRUNC(start_time) = TRUNC(SYSDATE-1)) fl,
(SELECT COUNT(*) cnt
FROM apps.fnd_concurrent_requests
WHERE TRUNC(actual_start_date) = TRUNC(SYSDATE-1) ) fcr
/

CONCURRENT REQUESTS WHICH HAS MORE THAN 30 MINUTES OF EXECUTION TIME

SELECT a.request_id
, SUBSTR(user_concurrent_program_name,1,50) name
, TO_CHAR(actual_start_date,’DD-MON-YY Hh34:MI’) st_dt
, TO_CHAR(actual_completion_date,’Hh34:MI’) end_tm
, TRUNC(((actual_completion_date-actual_start_date)*24*60*60)/60)+(((actual_completion_date-actual_start_date)*24*60*60)-(TRUNC(((actual_completion_date-actual_start_date)*24*60*60)/60)*60))/100 exe_time
, requestor
, DECODE(a.status_code, ‘E’
,’Error’, ‘X’
,’Terminated’, ‘Normal’) status_code
FROM apps.fnd_conc_req_summary_v a
WHERE actual_start_date >= DECODE(TO_CHAR(SYSDATE,’DAY’), ‘MONDAY’
,TRUNC(SYSDATE)-3, ‘SUNDAY’
,TRUNC(SYSDATE)-2, TRUNC(SYSDATE-1))
AND NVL(actual_completion_date,SYSDATE) – actual_start_date >= 30/24/60
ORDER BY actual_start_date, name
/

PROGRAMS RAN MORE 200 TIMES IN A DAY

SET LINES 120
SET PAGES 900
COL program FORMAT a70
COL cnt FORMAT 999999 HEADING “Number of Runs”
ttitle ‘Programs that ran for more than 200 times ‘ skip 2
SELECT SUBSTR(user_concurrent_program_name,1,70) program
, COUNT(*) cnt
FROM apps.fnd_conc_req_summary_v
WHERE TRUNC(actual_start_date) = TRUNC(SYSDATE) -1
GROUP BY SUBSTR(user_concurrent_program_name,1,70)
HAVING COUNT(*) > 200
ORDER BY 2
/

NUMBER OF CONCURRENT REQUESTS IN A DAY

SET LINES 120
SET PAGES 0
COL cnt FORMAT 999999 HEADING “Total No of Requests”
SELECT ‘ Number of Concurrent Requests for ‘, SYSDATE – 1 FROM dual ;

SET PAGES 900
SELECT COUNT(*) cnt
FROM apps.fnd_concurrent_requests
WHERE TRUNC(actual_start_date) = TRUNC(SYSDATE) – 1
/

SCHEDULED REQUESTS

SET LINE 130 PAGESIZE 1000
COLUMN request_id FORMAT 999999999
COLUMN conc_prog_name FORMAT A47
COLUMN requestor FORMAT A18
COLUMN phase_code FORMAT A10 head ‘Phase Code’
COLUMN status_code FORMAT A10 head ‘Status Code’
COLUMN req_start_dt FORMAT A20 head ‘Requested Start Date’
SELECT fcr.request_id
, SUBSTR(DECODE(fcp.user_concurrent_program_name, ‘Report Set’
,fcp.user_concurrent_program_name || ‘ ‘ || fcr.description, fcp.user_concurrent_program_name),1,47) conc_prog_name
, fu.user_name requestor
, DECODE(fcr.phase_code, ‘R’
,’Running’, ‘P’
,DECODE(fcr.hold_flag, ‘Y’
,’Inactive’, ‘Pending’), ‘C’
,’Completed’, fcr.phase_code) phase_code
, DECODE(fcr.status_code, ‘E’
,’Error’, ‘C’
,’Normal’, ‘X’
,’Terminated’, ‘Q’
,DECODE(fcr.hold_flag, ‘Y’
,’On Hold’, DECODE(SIGN(fcr.requested_start_date-SYSDATE),1
,’Scheduled’,’Standby’)), ‘D’
,’Cancelled’, ‘G’
,’Warning’, ‘R’
,’Normal’, ‘W’
,’Paused’, ‘T’
,’Terminating’, ‘R’
,’Normal’, ‘W’
,’Paused’, ‘T’
,’Terminating’, ‘I’
,’Scheduled’, fcr.status_code) status_code
, TO_CHAR(fcr.requested_start_date,’DD-MON-YYYY Hh24:MI:SS’) req_start_dt
FROM apps.fnd_user fu
, apps.fnd_concurrent_programs_vl fcp
, apps.fnd_concurrent_requests fcr
WHERE fcp.concurrent_program_id = fcr.concurrent_program_id
AND fcr.status_code IN (‘Q’, ‘I’)
AND fcr.phase_code = ‘P’
AND fcr.requested_by = fu.user_id
ORDER BY 1
/

TO CHECK THE MANAGERS RUNNING OR NOT SHOULD BE ACTIVE

set lines 180
set pages 300
col OSID for a30;
Select distinct Concurrent_Process_Id CpId, PID Opid,
Os_Process_ID Osid,
Q.Concurrent_Queue_Name Manager,
P.NODE_NAME node,
P.process_status_code Status,
To_Char(P.Process_Start_Date, ‘MM-DD-YYYY HH:MI:SSAM’) Started_At
from Fnd_Concurrent_Processes P, Fnd_Concurrent_Queues Q, FND_V$Process
where Q.Application_Id = Queue_Application_ID
And (Q.Concurrent_Queue_ID = P.Concurrent_Queue_ID)
And ( Spid = Os_Process_ID )
And Process_Status_Code not in (‘K’,’S’)
Order by Concurrent_Process_ID, Os_Process_Id, Q.Concurrent_Queue_Name;

PRESENTLY RUNNING REQUST

select
/*+ choose */
U.USER_NAME User_name,
fcr.request_id request_id,
to_char(round((nvl(fcr.actual_completion_date,sysdate)-fcr.actual_start_date)*1440)) Time,
c.concurrent_program_name||’ – ‘ ||
substr(fcrv.program,1,55) PROGRAM,
fcr.CONCURRENT_PROGRAM_ID Program_id,
fcr.PARENT_REQUEST_ID Parent_id
from
fnd_concurrent_requests fcr,
fnd_concurrent_programs c,
fnd_conc_req_summary_v fcrv,
fnd_user U
where
fcr.concurrent_program_id = c.concurrent_program_id
and fcr.program_application_id = c.application_id
and fcr.CONCURRENT_PROGRAM_ID = fcrv.CONCURRENT_PROGRAM_ID
and fcr.REQUEST_ID = fcrv.REQUEST_ID
and fcr.phase_code in (‘R’,’T’)
and fcr.requested_by = U.user_id
order by request_id asc
/

TO CHECK PARTICULAR REQUEST STATUS

set lines 180
set pages 300
col name format a20
col QUEUE for a20
col U_NAME for a20
select fcr.request_id req_id,
substr(fcq.concurrent_queue_name, 1, 20) queue,
to_char(fcr.actual_start_date,’hh24:mi’) s_time,
substr(fcr.user_concurrent_program_name, 1, 60) name,
substr(fcr.requestor, 1, 9 ) u_name,
round((sysdate -actual_start_date) *24, 2) elap,
decode(fcr.phase_code,’R’,’Running’,’P’,’Inactive’,’C’,’Completed’, fcr.phase_code) Phase,
substr(decode( fcr.status_code, ‘A’, ‘WAITING’, ‘B’, ‘RESUMING’,
‘C’, ‘NORMAL’, ‘D’, ‘CANCELLED’, ‘E’, ‘ERROR’, ‘F’, ‘SCHEDULED’,
‘G’, ‘WARNING’, ‘H’, ‘ON HOLD’, ‘I’, ‘NORMAL’, ‘M’, ‘NO MANAGER’,
‘Q’, ‘STANDBY’, ‘R’, ‘NORMAL’, ‘S’, ‘SUSPENDED’, ‘T’, ‘TERMINATED’,
‘U’, ‘DISABLED’, ‘W’, ‘PAUSED’, ‘X’, ‘TERMINATED’, ‘Z’, ‘WAITING’,
‘UNKNOWN’), 1, 10)
from
apps.fnd_concurrent_queues fcq,
apps.fnd_concurrent_processes fcp,
apps.fnd_conc_req_summary_v fcr
where fcp.concurrent_queue_id = fcq.concurrent_queue_id
and fcp.queue_application_id = fcq.application_id
and fcr.controlling_manager = fcp.concurrent_process_id
and fcr.request_id = ‘&RequstID’
order by request_id ;

TO CHECK PARTICULAR PROGRAM History

SELECT to_char(a.request_id) ||’~’||
decode(to_char(parent_request_id),’-1′,null,to_char(parent_request_id)) ||’~’||
a.user_concurrent_program_name ||’~’||
to_char(a.requested_start_date,’DD-MON-RR HH24:MI:SS’) ||’~’||
to_char(a.actual_start_date,’DD-MON-RR HH24:MI:SS’) ||’~’||
to_char(a.actual_completion_date,’DD-MON-RR HH24:MI:SS’) ||’~’||
round(trunc(((actual_completion_date-actual_start_date)*24*60*60)/60)+(((actual_completion_date-actual_start_date)*24*60*60)-(trunc(((actual_completion_date-actual_start_date)*24*60*60)/60)*60))/100,2) ||’~’||
a.requestor ||’~’||
decode(a.phase_code,’R’,’Running’,’P’,’Inactive’,’C’,’Completed’, a.phase_code) ||’~’||
decode(a.status_code,’E’,’Error’, ‘C’,’Normal’, ‘X’,’Terminated’, ‘Q’,’On Hold’, ‘D’,’Cancelled’, ‘G’,’Warning’, ‘R’,’Normal’, ‘W’, ‘Paused’, status_code)
–||’~’|| a.argument_text
FROM apps.fnd_conc_req_summary_v a
WHERE a.user_concurrent_program_name like (‘&1%’)
order by a.user_concurrent_program_name,a.actual_start_date,a.phase_code;

MV refresh

SELECT (process_end_time-process_start_time)*86400, cycle_start_time
FROM MARS.mars_batch_process_log
WHERE process_name=’REFRESH MARS_BALANCES_GL_MV VIEW’
and trunc(cycle_start_time) >= trunc(sysdate-1)
ORDER BY log_seq DESC;

TO FINDOUT PAST ONE MONTH HISTORY

set pause off
set pagesize 2000
set linesize 120
set wrap off
column user_concurrent_program_name format a45 noprint
column argument_text format a45 print
column user_name format a15
column start_time format a15
column end_time format a15
column comp_time format 9999.99
select request_id,
user_concurrent_program_name,
to_char(actual_start_date,’DD/MON HH24:MI:SS’) START_TIME,
to_char(ACTUAL_COMPLETION_DATE,’DD/MON HH24:MI:SS’) END_TIME,
(actual_completion_date-actual_start_date)*24*60 comp_time, argument_text,user_name, status_code, phase_code
from apps.fnd_concurrent_requests, apps.fnd_concurrent_programs_tl,apps.fnd_user
where fnd_concurrent_requests.concurrent_program_id = fnd_concurrent_programs_tl.concurrent_program_id
and user_concurrent_program_name like ‘%Gather Schema%’
and fnd_concurrent_programs_tl.language=’US’
and requested_by=user_id
order by actual_start_date desc,ACTUAL_COMPLETION_DATE desc;

TO CHECK WHICH MANAGER IS RUNNING ON WHICH NODE AND MANAGER STATUS

set verify off
set lines 256
set trims ON
set pages 60
col concurrent_queue_id format 99999 heading “QUEUE Id”
col concurrent_queue_name format a20 trunc heading “QUEUE Code”
col user_concurrent_queue_name format a30 trunc heading “Concurrent Queue Name”
col max_processes format 999 heading “Max”
col running_processes format 999 heading “Act”
col running format 999 heading “Run”
col target_node format a15 heading “Node”
col status format a12 trunc heading “Status”
col run format 9999 heading ‘Run’
col pend format 9999 heading ‘Pending’
col cmgr_program FOR a65;
SELECT ‘Instance : ‘
||NAME instance_name
FROM v$database;
Prompt ===========================
Prompt concurrent manager status
Prompt ===========================
SELECT q.concurrent_queue_id,
q.concurrent_queue_name,
q.user_concurrent_queue_name,
q.target_node,
q.max_processes,
q.running_processes,
running.run running,
pending.pend,
Decode(q.control_code, ‘D’, ‘Deactivating’,
‘E’, ‘Deactivated’,
‘N’, ‘Node unavai’,
‘A’, ‘Activating’,
‘X’, ‘Terminated’,
‘T’, ‘Terminating’,
‘V’, ‘Verifying’,
‘O’, ‘Suspending’,
‘P’, ‘Suspended’,
‘Q’, ‘Resuming’,
‘R’, ‘Restarting’) status
FROM (SELECT concurrent_queue_name,
COUNT(phase_code) run
FROM fnd_concurrent_worker_requests
WHERE phase_code = ‘R’
AND hold_flag != ‘Y’
AND requested_start_date <= SYSDATE GROUP BY concurrent_queue_name) running, (SELECT concurrent_queue_name, COUNT(phase_code) pend FROM fnd_concurrent_worker_requests WHERE phase_code = 'P' AND hold_flag != 'Y' AND requested_start_date <= SYSDATE GROUP BY concurrent_queue_name) pending, apps.fnd_concurrent_queues_vl q WHERE q.concurrent_queue_name = running.concurrent_queue_name(+) AND q.concurrent_queue_name = pending.concurrent_queue_name(+) AND q.enabled_flag = 'Y' ORDER BY Decode(q.application_id, 0, Decode(q.concurrent_queue_id, 1, 1,4, 2)), Sign(q.max_processes) DESC, q.concurrent_queue_name, q.application_id;

TO FINDOUT THE REQUEST LOGFILE NAME AND LOCATION

SELECT REQUEST_ID,logfile_name, outfile_name, outfile_node_name, last_update_date FROM apps.FND_CONCURRENT_REQUESTS WHERE REQUEST_ID =&Req_ID;

TO FINDOUT THE ICM CURRENT LOGFILE NAME AND LOCATION

SELECT ‘LOG=’ || fcp.logfile_name LogFile
FROM fnd_concurrent_processes fcp, fnd_concurrent_queues fcq
WHERE fcp.concurrent_queue_id = fcq.concurrent_queue_id
AND fcp.queue_application_id = fcq.application_id
AND fcq.manager_type = ‘0’AND fcp.process_status_code = ‘A’;

TO FINDOUT WHICH MANAGER RAN THE REQUEST

select b.USER_CONCURRENT_QUEUE_NAME from fnd_concurrent_processes a,
fnd_concurrent_queues_vl b, fnd_concurrent_requests c
where a.CONCURRENT_QUEUE_ID = b.CONCURRENT_QUEUE_ID
and a.CONCURRENT_PROCESS_ID = c.controlling_manager
and c.request_id = ‘&requistno’;

CONCURRENT REQUESTS PERFORMANCE HISTORY (PER DAY)

SELECT TO_CHAR(TRUNC(ACTUAL_START_DATE),’DD-MON-YY DY’) STARTDATE,
COUNT(*) COUNT, ROUND(SUM(ACTUAL_COMPLETION_DATE – ACTUAL_START_DATE) * 24, 2) RUNNING_HOURS,
ROUND(AVG(ACTUAL_COMPLETION_DATE – ACTUAL_START_DATE) * 24, 2) AVG_RUNNING_HOURS,
ROUND(SUM(ACTUAL_START_DATE – REQUESTED_START_DATE) * 24, 2) PENDING_HOURS,
ROUND(AVG(ACTUAL_START_DATE – REQUESTED_START_DATE) * 24, 2) AVG_PENDING_HOURS
FROM APPLSYS.FND_CONCURRENT_PROGRAMS P,APPLSYS.FND_CONCURRENT_REQUESTS R
WHERE R.PROGRAM_APPLICATION_ID = P.APPLICATION_ID
AND R.CONCURRENT_PROGRAM_ID = P.CONCURRENT_PROGRAM_ID
AND R.STATUS_CODE IN (‘C’,’G’)
AND TRUNC(ACTUAL_COMPLETION_DATE) > TRUNC(SYSDATE-6)
AND TO_CHAR(TRUNC(ACTUAL_START_DATE),’DD-MON-YY DY’) IS NOT NULL
GROUP BY TRUNC(ACTUAL_START_DATE)
ORDER BY TRUNC(ACTUAL_START_DATE) ASC;

TO KNOW THE REQUEST SINCE HOW LONG ITS RUNNING

select user_concurrent_program_name,request_id,status_code,phase_code,to_char(actual_start_date,’DD-MON-YY HH24:MI:SS’),to_char(actual_completion_date,’DD-MON-YY HH24:MI:SS’) from apps.fnd_conc_req_summary_v where request_id=’&Requstno’;

TO FINDOUT THE TRACEFILE OF A PARTICULAR REQUEST

column traceid format a8
column tracename format a80
column user_concurrent_program_name format a40
column execname format a15
column enable_trace format a12
set lines 80
set pages 22
set head off
SELECT ‘Request id: ‘||request_id ,
‘Trace id: ‘||oracle_Process_id,
‘Trace Flag: ‘||req.enable_trace,
‘Trace Name:
‘||dest.value||’/’||lower(dbnm.value)||’_ora_’||oracle_process_id||’.trc’,
‘Prog. Name: ‘||prog.user_concurrent_program_name,
‘File Name: ‘||execname.execution_file_name|| execname.subroutine_name ,
‘Status : ‘||decode(phase_code,’R’,’Running’)
||’-‘||decode(status_code,’R’,’Normal’),
‘SID Serial: ‘||ses.sid||’,’|| ses.serial#,
‘Module : ‘||ses.module
from apps.fnd_concurrent_requests req, v$session ses, v$process proc,
v$parameter dest, v$parameter dbnm, apps.fnd_concurrent_programs_vl prog,
apps.fnd_executables execname
where req.request_id = ‘&request’
and req.oracle_process_id=proc.spid(+)
and proc.addr = ses.paddr(+)
and dest.name=’user_dump_dest’
and dbnm.name=’db_name’
and req.concurrent_program_id = prog.concurrent_program_id
and req.program_application_id = prog.application_id
and prog.application_id = execname.application_id
and prog.executable_id=execname.executable_id;

LIST ALL THE REGISTERED CONCURRENT PROGRAMS BY MODULE

set lines 180
set pages 300
col SHORT_NAME for a10
col APPLICATION_NAME for a30
SELECT SUBSTR(a.application_name,1,60) Application_NAME
, b.application_short_name SHORT_NAME
, DECODE(SUBSTR(cp.user_concurrent_program_name,4,1),’:’
, ‘Concurrent Manager Executable’
, ‘Subprogram or Function’) TYPE
, SUBSTR(d.concurrent_program_name,1,16) PROGRAM
, SUBSTR(cp.user_concurrent_program_name,1,55) USER_PROGRAM_NAME
FROM applsys.FND_CONCURRENT_PROGRAMS_TL cp, applsys.FND_CONCURRENT_PROGRAMS d, applsys.FND_APPLICATION_TL a, applsys.fnd_application b
WHERE cp.application_id = a.application_id
AND d.CONCURRENT_PROGRAM_ID = cp.CONCURRENT_PROGRAM_ID
AND a.APPLICATION_ID = b.APPLICATION_ID
AND b.application_short_name LIKE UPPER(‘PA’)
UNION ALL
SELECT SUBSTR(a.application_name,1,60) c1
, b.application_short_name c2 , ‘Form Executable’ c3
, SUBSTR(f.form_name,1,16) c4 ,
SUBSTR(d.user_form_name,1,55) c5
FROM applsys.fnd_form f , applsys.FND_APPLICATION_TL a, applsys.fnd_application b, applsys.FND_FORM_TL d
WHERE f.application_id = a.application_id
AND d.FORM_ID = f.FORM_ID
AND a.APPLICATION_ID = b.APPLICATION_ID
AND b.application_short_name LIKE UPPER(‘PA’) ORDER BY 1,2,3,4;

Apache Installation for web portal


Download Apache software from below URL.
http://httpd.apache.org/download.cgi#apache22
I could see httpd-2.4.4.tar.gz the latest verson and downloaded
go to you directory where you want to install
[kittu@kasarla ~]$ cd /home/kittu
[kittu@kasarla ~]$ mkdir Apache
[kittu@kasarla ~]$ mkdir build

[kittu@kasarla ~]$ ls -ltr
-rwxrwxrwx 1 kittu kittu 6451189 Mar 25 00:00 httpd-2.4.4.tar.gz
drwxrwxr-x 2 kittu kittu 4096 Mar 25 00:01 Apache
drwxrwxr-x 3 kittu kittu 4096 Mar 25 00:02 build


[kittu@kasarla ~]$ gunzip httpd-2.4.4.tar.gz
[kittu@kasarla ~]$ ls -ltr
-rwxrwxrwx 1 kittu kittu 31809536 Mar 22 02:24 httpd-2.4.4.tar
[kittu@kasarla ~]$ cd build
[kittu@kasarla build]$ tar -xvf ../httpd-2.4.4.tar

.
.
.
.
.


[kittu@kasarla httpd-2.4.4]$ which make
/usr/bin/make
[kittu@kasarla httpd-2.4.4]$ which gcc
/usr/bin/gcc
[kittu@kasarla httpd-2.4.4]$ ./configure -prefix=/home/kittu/Apache

checking for chosen layout… Apache
checking for working mkdir -p… yes
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
configure:
configure: Configuring Apache Portable Runtime library…
configure:


checking for APR… no
configure: error: APR not found. Please read the documentation.

[kittu@kasarla httpd-2.4.4]$

fix for the issue
Now download the latest APR and APR util from http://apr.apache.org/download.cgi
I Could see the latest version as follows
APR 1.4.6 is the best available version
APR-util 1.5.1 is the best available version


[kittu@kasarla ~]$ cd /home/kittu/build/httpd-2.4.4/srclib
[kittu@kasarla srclib]$ ls
Makefile.in
[kittu@kasarla srclib]$ gunzip /home/kittu/apr-1.4.6.tar.gz
[kittu@kasarla srclib]$ gunzip /home/kittu/apr-util-1.5.1.tar.gz
[kittu@kasarla srclib]$ tar -xvf /home/kittu/apr-1.4.6.tar

.
.
.
.
[kittu@kasarla srclib]$ tar -xvf /home/kittu/apr-util-1.5.1.tar
.
.
.
.
.
[kittu@kasarla srclib]$ pwd
/home/kittu/build/httpd-2.4.4/srclib
[kittu@kasarla srclib]$ ls
apr-1.4.6 apr-util-1.5.1 Makefile.in
[kittu@kasarla srclib]$ mv -i apr-1.4.6 apr
[kittu@kasarla srclib]$ mv -i apr-util-1.5.1 apr-util

Install Apache again


[kittu@kasarla srclib]$ cd /home/kittu/build/httpd-2.4.4
[kittu@kasarla httpd-2.4.4]$ ./configure -prefix=/home/kittu/Apache

.
.
.
.


configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

[kittu@kasarla httpd-2.4.4]$

Fix for the above error
Now download PCRE from http://pcre.org/ it will redirect to
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
Download pcre-8.21.zip


[kittu@kasarla ~]$ cd /home/kittu
[kittu@kasarla ~]$ unzip pcre-8.21.zip
[kittu@kasarla ~]$ mkdir pcre
[kittu@kasarla ~]$ cd pcre-8.21
[kittu@kasarla pcre-8.21]$ ./configure -prefix=/home/kittu/pcre

.
.
.
.
[kittu@kasarla pcre-8.21]$
[kittu@kasarla pcre-8.21]$ make
[kittu@kasarla pcre-8.21]$ make install
Reinstall the Apache now


[kittu@kasarla httpd-2.4.4]$ cd /home/kittu/build/httpd-2.4.4
[kittu@kasarla httpd-2.4.4]$ ./configure -prefix=/home/kittu/Apache -with-pcre=/home/kittu/pcre

.
.
.
.
[kittu@kasarla httpd-2.4.4]$ make
[kittu@kasarla httpd-2.4.4]$ make install

[kittu@kasarla bin]cd /home/kittu/Apache/conf


Change the vaule for Listen to 8099 and ServerName to kasarla.krishnareddy.com:8099

[kittu@kasarla conf]$ grep -i Listen httpd.conf
# Listen: Allows you to bind Apache to specific IP addresses and/or
# Change this to Listen on specific IP addresses as shown below to
#Listen 12.34.56.78:80
Listen 8099
[kittu@kasarla conf]$ grep -i ServerName httpd.conf
# ServerName gives the name and port that the server uses to identify itself.
#ServerName http://www.example.com:80
ServerName kasarla.krishnareddy.com:8099
[kittu@kasarla conf]$


[kittu@kasarla bin]$ cd /home/kittu/Apache/bin
[kittu@kasarla bin]$ ./apachectl start

[kittu@kasarla bin]$ ps -ef|grep kittu
kittu 14161 1 0 02:28 ? 00:00:00 /home/kittu/Apache/bin/httpd -k start
kittu 14162 14161 0 02:28 ? 00:00:00 /home/kittu/Apache/bin/httpd -k start
kittu 14164 14161 0 02:28 ? 00:00:00 /home/kittu/Apache/bin/httpd -k start
kittu 14175 14161 0 02:28 ? 00:00:00 /home/kittu/Apache/bin/httpd -k start
kittu 14248 10263 0 02:29 pts/0 00:00:00 ps -ef
[kittu@kasarla bin]$

Login to http://kasarla.krishnareddy.com:8099/
you will see the page “It works!”
if you dont want to show your server info you need to update this entry in DNS

[kittu@kasarla bin]$ ./apachectl stop

Prepare your own html page and past the page in direcoty /home/kittu/Apache/htdocs

if you want change the homepage update in http.conf file with
DirectoryIndex index.html to kittu.html


Known issues
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using 1.2.3.4. Set the ‘ServerName’ directive globally to suppress this message

Soluton :
Check the serverAdmin and ServerName parameters
ServerAdmin to server IP address
ServerName to kasarla.krishnareddy.com:8099

RAC Commands

Check status of OHAS and CRS stack
crsctl check crs
crsctl check cluster
crsctl check cluster -all
crsctl check ctss
crsctl check css
crsctl check evm
Check the status of votingdisks
crsctl query css votedisk
Check the status of OCR files status
ocrcheck
ocrconfig -showbackup
Check the list of disks
/usr/sbin/oracleasm listdisks
Check the nodes
olsnodes -n -i
Check status of resources
crsctl status resource -t -init
crsctl status resource ora.crf -init
Check the versions
crsctl query crs activeversion
crsctl query crs releaseversion
crsctl query crs softwareversion
STATUS
srvctl status database -d [-f] [-v]
srvctl status instance -d {-n | -i } [-f] [-v]
srvctl status service -d [-s “”] [-f] [-v]
srvctl status nodeapps
srvctl status vip { -n | -i } [-v]
srvctl status listener [-l ] [-n ] [-v]
srvctl status asm [-n ] [-a] [-v]
srvctl status scan [-i ] [-v]
srvctl status scan_listener [-i ] [-v]
srvctl status srvpool [-g ] [-a]
srvctl status server -n “” [-a]
srvctl status oc4j [-n ] [-v]
srvctl status home -o -s -n
srvctl status filesystem -d [-v]
srvctl status diskgroup -g [-n “”] [-a] [-v]
srvctl status cvu [-n ]
srvctl status gns [-n ] [-v]
START
srvctl start database -d [-o ] [-n ]
srvctl start instance -d {-n [-i ] | -i } [-o ]
srvctl start service -d [-s “” [-n | -i ] ] [-o ]
srvctl start nodeapps [-n ] [-g] [-v]
srvctl start vip { -n | -i } [-v]
srvctl start asm [-n ] [-o ]
srvctl start listener [-l ] [-n ]
srvctl start scan [-i ] [-n ]
srvctl start scan_listener [-n ] [-i ]
srvctl start oc4j [-v]
srvctl start home -o -s -n
srvctl start filesystem -d [-n ]
srvctl start diskgroup -g [-n “”]
srvctl start gns [-l ] [-n ] [-v]
srvctl start cvu [-n ]
STOP 
srvctl stop database -d [-o ] [-f]
srvctl stop instance -d {-n | -i }  [-o ] [-f]
srvctl stop service -d [-s “” [-n | -i ] ] [-f]
srvctl stop nodeapps [-n ] [-g] [-f] [-r] [-v]
srvctl stop vip { -n   | -i } [-f] [-r] [-v]
srvctl stop asm [-n ] [-o ] [-f]
srvctl stop listener [-l ] [-n ] [-f]
srvctl stop scan [-i ] [-f]
srvctl stop scan_listener [-i ] [-f]
srvctl stop oc4j [-f] [-v]
srvctl stop home -o -s -n [-t ] [-f]
srvctl stop filesystem -d [-n ] [-f]
srvctl stop diskgroup -g [-n “”] [-f]
srvctl stop gns [-n ] [-f] [-v]
srvctl stop cvu [-f]
Check the mount point space in the Diskgroup
for  i in `asmcmd ls KITTU_VG/kittu/`
do
echo $i
asmcmd du KITTU_VG/kittu/${i}
done

Setup PCP


Setup Parallel Concurrent Processing

1. Source the application environment.
2. Check the tnsnames.ora and listener.ora configuration files, located in $INST_TOP/ora/10.1.2/network/admin. Ensure that the required FNDSM and FNDFS entries are present for all other concurrent nodes.
3. Restart the Applications listener processes on each application tier node
4. Log on to Oracle E-Business Suite Release 12 using the SYSADMIN account, and choose the System Administrator Responsibility. Navigate to Install > Nodes screen, and ensure that each node in the cluster is registered.
5. Verify that the Internal Monitor for each node is defined properly, with correct primary and secondary node specification, and work shift details. For example, Internal Monitor: Host2 must have primary node as host2 and secondary node as host3. Also ensure that the Internal Monitor manager is activated: this can be done from Concurrent > Manager > Administrator.
6. Set the $APPLCSF environment variable on all the Concurrent Processing nodes to point to a log directory on a shared file system.
7. Set the $APPLPTMP environment variable on all the CP nodes to the value of the UTL_FILE_DIR entry in init.ora on the database nodes. (This value should be pointing to a directory on a shared file system.).
8. Set profile option ‘Concurrent: PCP Instance Check’ to ‘ON’. Concurrent managers will fail over to a secondary application tier node if the database instance to which it is connected goes down


Setup Transaction Managers

1. Shut down application tier services on all nodes.

2. Edit $ORACLE_HOME/dbs/context_name_ifile.ora and add these parameters:
_lm_global_posts=TRUE
_immediate_commit_propagation=TRUE

ALTER SYSTEM SET “_lm_global_posts”=TRUE SCOPE=SPFILE sid=’*’;
ALTER SYSTEM SET “_immediate_commit_propagation”=TRUE SCOPE=SPFILE sid=’*’;

Research how to handle param ifile for EBS

3. Shutdown database
srvctl stop database -d kittu
4. Start the instance on each database node, one-by-one.
srvctl start instance -d kittu -i ccld1
srvctl start instance -d kittu -i ccld2
5. Start the Application tier services on all nodes.
6. Log on to Oracle E-Business Suite Release 12 using the SYSADMIN account, and choose the System Administrator responsibility. Navigate to Profile > System, change the profile option ‘Concurrent:TM Transport Type’ to ‘QUEUE’, and verify that the transaction manager works across the Oracle RAC instance.
7. Navigate to Concurrent > Manager > Define screen, and set up the primary and secondary node names for transaction managers. Also Enable it.
8. Restart the concurrent managers.
9. If any of the transaction managers are in deactivated status, activate them from Concurrent > Manager > Administrator


Setup Load Balancing of Concurrent Processing Tiers

1. Edit the applications context file through the Oracle Applications Manager interface, and set the value of Concurrent Manager TWO_TASK (s_cp_twotask) to the load balancing alias (service_name_balance>).
2. Execute AutoConfig by running $INST_TOP/admin/scripts/adautocfg.sh on all concurrent nodes.
perl $AD_TOP/bin/adconfig.pl contextfile=$CONTEXT_FILE -parallel

3. Restart all Application services.

Query to check the Concurrent manager load distribution

select inst_id, count(*) from gv$session where process in (select os_process_id from fnd_concurrent_processes where process_status_code = ‘A’) group by inst_id;

Shared APPL_TOP and Shared Filesystem


Configure Share APPL_TOP in 11i Environment
— R12.1.3 Shared Application filesystem adding node you can see in my cloning document
— R12.2 Shared Application filesystem you can see in R12.2 adding new node document

On Primary Server
On kasarla01 as applmgr:


$ $COMMON_TOP/admin/scripts/$CONTEXT_NAME/adstpall.sh apps/”APPS password”
$ cd $FND_TOP/patch/115/bin
$ perl -I $AU_TOP/perl txkSOHM.pl

Absolute path of Application’s Context XML file: /u01/kittu/applmgr/appl/admin/kittu_kasarla01.xml
Type of Instance [primary/secondary]: primary
Absolute path of 8.0.6 Shared Oracle Home: /u01/kittu/applmgr/product/8.0.6
Absolute path of iAS Shared Oracle Home: /u01/kittu/applmgr/product/iAS
Absolute path of config top: /u01/kittu/applmgr/common/conf/kittu_kasarla01
Oracle Application apps schema password: “Apps passwd”

On Secondary Server
On kasarla02 as applmgr:


$ cd /u01/kittu/applmgr/appl/ad/11.5.0/bin
$ perl adclonectx.pl sharedappltop contextfile=/u01/kittu/applmgr/appl/admin/kittu_kasarla01.xml

Provide the values required for creation of the new APPL_TOP Context file.
Do you want to use a virtual hostname for the target node (y/n) [n] ?:
Do you want to add Forms Server node (y/n) [y] ?:
Do you want to add Web Server node (y/n) [y] ?:
Target system 8.0.6 ORACLE_HOME directory [/u01/kittu/applmgr/product/8.0.6]:
Target system iAS ORACLE_HOME directory [/u01/kittu/applmgr/product/iAS]:
Do you want to preserve the Display set to kasarla01:1.0 (y/n) [y] ?:n
Target system Display [kasarla02:0.0]:kasarlad02:1.0
Do you want the middle-tier services on the target system to have the same port values as the source system (y/n) [y] ?:n
Enter the port pool to be used for the target system middle-tier services [0-99]:11
Choose a value which will be set as APPLPTMP value on the target node [1]:1


$ cd /u01/kittu/applmgr/appl/fnd/11.5.0/patch/115/bin
$ perl -I /u01/kittu/applmgr/appl/au/11.5.0/perl txkSOHM.pl

Absolute path of Application’s Context XML file: /u01/kittu/applmgr/appl/admin/kittu_kasarla02.xml
Type of Instance [primary/secondary]: secondary
Absolute path of 8.0.6 Shared Oracle Home: /u01/kittu/applmgr/product/8.0.6
Absolute path of iAS Shared Oracle Home: /u01/kittu/applmgr/product/iAS
Absolute path of config top: /u01/kittu/applmgr/common/conf/kittu_kasarla02
Oracle Application apps schema password: “Apps passwd”
On Third Server
On kasarla03 as applmgr:


$ cd /u01/kittu/applmgr/appl/ad/11.5.0/bin
$ perl adclonectx.pl sharedappltop contextfile=/u01/kittu/applmgr/appl/admin/kittu_kasarla01.xml

Provide the values required for creation of the new APPL_TOP Context file.
Do you want to use a virtual hostname for the target node (y/n) [n] ?:
Do you want to add Forms Server node (y/n) [y] ?:
Do you want to add Web Server node (y/n) [y] ?:
Target system 8.0.6 ORACLE_HOME directory [/u01/kittu/applmgr/product/8.0.6]:
Target system iAS ORACLE_HOME directory [/u01/kittu/applmgr/product/iAS]:
Do you want to preserve the Display set to kasarla01:1.0 (y/n) [y] ?:n
Target system Display [kasarla03:0.0]:kasarlad03:1.0
Do you want the middle-tier services on the target system to have the same port values as the source system (y/n) [y] ?:n
Enter the port pool to be used for the target system middle-tier services [0-99]:11
Choose a value which will be set as APPLPTMP value on the target node [1]:1


$ cd /u01/kittu/applmgr/appl/fnd/11.5.0/patch/115/bin
$ perl -I /u01/kittu/applmgr/appl/au/11.5.0/perl txkSOHM.pl

Absolute path of Application’s Context XML file: /u01/kittu/applmgr/appl/admin/kittu_kasarla03.xml
Type of Instance [primary/secondary]: secondary
Absolute path of 8.0.6 Shared Oracle Home: /u01/kittu/applmgr/product/8.0.6
Absolute path of iAS Shared Oracle Home: /u01/kittu/applmgr/product/iAS
Absolute path of config top: /u01/kittu/applmgr/common/conf/kittu_kasarla03
Oracle Application apps schema password: “Apps passwd”
Re-run AutoConfig – 2nd and 3th Admin/App node
Sign out / sign back in to ensure env is reset
Update the Context File for Nodes 2 and 3 as Node 1
$COMMON_TOP/admin/scripts/$CONTEXT_NAME/adautocfg.sh appspass=


Query to check the how many nodes Appl_top is shared

select NODE_NAME,HOST, appltop_id from fnd_nodes where node_name not in (‘AUTHENTICATION’);

Load Balancing


load balancing for the Applications database connections:

kasarla[applmgr]_kittu> grep -i s_tools_twotask $CONTEXT_FILE
TWO_TASK oa_var=”s_tools_twotask” osd=”unix”>kittu_BALANCE/TWO_TASK
kasarla[applmgr]_kittu> grep -i s_weboh_twotask $CONTEXT_FILE
TWO_TASK oa_var=”s_weboh_twotask” osd=”unix”>kittu_BALANCE/TWO_TASK
kasarla[applmgr]_kittu> grep -i s_cp_twotask $CONTEXT_FILE
cp_twotask oa_var=”s_cp_twotask”kittu_BALANCE/CP_TWOTASK
kasarla[applmgr]_kittu> grep -i s_apps_jdbc_connect_alias $CONTEXT_FILE
jdbc_connect_alias oa_var=”s_apps_jdbc_connect_alias”>kittu_BALANCE/jdbc_connect_alias
kasarla[applmgr]_kittu>


Execute AutoConfig by running the command:

perl $AD_TOP/bin/adconfig.pl contextfile=$CONTEXT_FILE -parallel


Restart the Oracle Applications processes using the new scripts generated by AutoConfig.
Ensure that the value of profile option “Applications Database ID” is set to dbc file name generated in $FND_SECURE.

BIG IP Configuration

–Network Team should provide new BigIP naming and configuration
–Functional project leader should provide the status file and he is responsible for all arrangement about rule settings.


Apply the following patches

5478710 HTTP load-balancer Patch.Required templates for multi node configuration.
3077386 Framework patch for session consistency.
3209878 ORACLE CONFIGURATOR RUNTIME PATCH


Assumptions

• BigIP Service is up and running.
• New DNS service name is working.
• Kernel parameters are set for ORACLE and the servers were bounced.
• Required RMPs for oracle are installed
• Linux OS patches and parameters meet oracle requirements.
• Linux group “dba” has been created in all environments.
• Oracle user id is created with dba as primary group and member of superuser group in all environments.


Load Balancers with Single Web Entry Point

kasarla[applmgr]_kittu> grep -i s_webentryhost $CONTEXT_FILE
webentryhost oa_var=”s_webentryhost”>stage/webentryhost
kasarla[applmgr]_kittu> grep -i s_active_webport $CONTEXT_FILE
activewebport oa_var=”s_active_webport” oa_type=”DUP_PORT” base=”8000″ step=”1″ range=”-1″ label=”Active Web Port”>8023/activewebport
kasarla[applmgr]_kittu> grep -i s_login_page $CONTEXT_FILE
login_page oa_var=”s_login_page”>http://stage.krishnareddy.com:8023/OA_HTML/AppsLogin/login_page
kasarla[applmgr]_kittu> grep -i s_external_url $CONTEXT_FILE
externURL oa_var=”s_external_url”>http://stage.krishnareddy.com:8023/externURL
kasarla[applmgr]_kittu> grep -i s_webentryurlprotocol $CONTEXT_FILE
webentryurlprotocol oa_var=”s_webentryurlprotocol”>http/webentryurlprotocol
kasarla[applmgr]_kittu> grep -i s_webentrydomain $CONTEXT_FILE
webentrydomain oa_var=”s_webentrydomain”>krishnareddy.com/webentrydomain
kasarla[applmgr]_kittu> grep -i s_webentryhost $CONTEXT_FILE
webentryhost oa_var=”s_webentryhost”>stage/webentryhost


Configure status flag on all nodes.

The status flag provided by BigIp team should be configured on all the web nodes.

kasarla[applmgr]_kittu> mkdir $IAS_ORACLE_HOME/Apache/Apache/htdocs/status
kasarla[applmgr]_kittu> cp –p status.html $ORACLE_HOME/Apache/Apache/htdocs/status


Test the new environment.

Test the access to s_login_page URL configured previously.

Printer Installation


as root, perform steps 1-6 for all concurrent nodes

system-config-printer


1. Add printer to host file (/etc/hosts)

# Printers for CCL
1.2.3.4 PRINT1
1.2.3.5 PRINT2
for testing:
ping PRINT1
ping PRINT2
Other way to test:
telnet PRINT1 9100
telnet PRINT2 9100


2. Add a new printer to server

/usr/sbin/lpadmin -p PRINT1 -E -v socket://1.2.3.4
/usr/sbin/lpadmin -p PRINT2 -E -v socket://1.2.3.5

more /etc/cups/printers.conf

lpq PRINT1
lpq PRINT2


3. Bounce printer service

service cups restart


4. Check the printer queue

lpq -P PRINT1
lpq -P PRINT2


5. Enable and accept on

/usr/bin/cupsenable PRINT1
/usr/bin/cupsenable PRINT2

/usr/sbin/cupsaccept PRINT1
/usr/sbin/cupsaccept PRINT2


6. Send a test document to print

echo “test printing” | lp -d PRINT1
echo “test printing” | lp -d PRINT2


7. Start setup printer in EBS

System Administrator -> Install: Printer -> Register


8. Add a new printer for the applications

Click on Add icon
Printer: PRINT1
Type : –PASTA Universal Printer Type
Description : Xerox WorkCentre 4150 PS located at COE – Department 2.30 Printer Corner
Click on Save icon

Click on Add icon
Printer: PRINT2
Type : –PASTA Universal Printer Type
Description : Xerox WorkCentre 4150 PS located at COE – Department 2.21 Near Patch Room
Click on Save icon


9. Send the “Active Users” as test print

########################################

Note:297522.1 – How to investigate printing issues and work towards its resolution

########################################

lpadmin -p Finance_APrintRm_WCP35 -s 1.2.3.6

lpinfo -v shows

http://linux.web.psi.ch/dist/scientific/42/update/20060419/

printconf_conf

cd /etc/cups/interfaces/
more cups/printers.conf

linux commands


VNC COMMANDS

vncserver
vncpasswd
vncserver :7
export DISPLAY=kasarla.krishnareddy.com:7
nohup xterm &
nohup mwm &
xterm &

ISSUE : CUT AND PASTE CANNOT DONE FROM PC TO VNC AND VICEVERSA
example : VNC running on port 2 <- VNC running port
Fix1 : run in VNC window
vncconfig -nowin -display :2 &
Fix2 : run in VNC window
vncconfig -iconic :2 &
Fix3 : run in VNC window
vncconfig &

ps -ef|grep vnc
vncserver -kill :2
vncserver -kill :6
cd /tmp/.X11-unix/X1
rm /tmp/.X11-unix/X1


TO CREATE A ZIP FILE

cd /kittu/oracle/kittudb/ tar -cf – 11.2.0.3 |gzip > /u01/backup/sw/upgrade_11203/kittu_OH.gz
This will create a zip file in /u01/backup/sw/upgrade_11203 directory with name kittu_OH.gz


TO UNZIP THE FILE

cd /your directory location where you want to unzip
cat /u01/backup/sw/upgrade_11203/kittu_OH.gz|gunzip -c |tar xvf –


Ziping the files at single step

zip -r /tmp/`uname -n`_`date +%m%d%y.%H%M`_Scripts.zip $KITTU_HOME/admin/*sh* $KITTU_HOME/admin/*sql*
— to add a file to existing zip file
zip -r /tmp/Scripts.zip . -i \krishna.sh
zip -r /tmp/Scripts.zip . -i \*


To check the Rps’s

rpm -qa –queryformat “%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n”| grep oracleasm | sort


USER ADDING AND DELETING AND MODIFYING

groupadd -g 1801 applmgr
groupadd -g 1757 oinstall
useradd oracle -o -u 1793 -g 1757 -c ” -d /home/oracle -s /bin/bash
useradd applmgr -o -u 1804 -g 1801 -c ‘Ebusiness Admin User for APPS’ -d /home/applmgr -s /bin/bash
useradd kasarlak -o -u 55035 -g 9999 -c ‘DBA DBA_Kasarla Krishna’ -d /home/kasarlak -s /bin/bash
grep applmgr /etc/passwd
usermod -a -G 1851 applmgr
groupmod -g 1755 dba
groupadd -g 1757 oinstall
echo “We1c0mee” | passwd -f applmgr –stdin
passwd kasarlak
passwd -x -1 kasarlak

/usr/sbin/userdel applmgr


Report on HTML page

set ver off
set term off
set page 0
set markup html on spool on
spool scheduler.html
select ACTUAL_START_DATE, OWNER,JOB_NAME, STATUS,ERROR# from DBA_SCHEDULER_JOB_RUN_DETAILS
where JOB_NAME in (‘MARSCHECKIN_JOB’) and ACTUAL_START_DATE like ‘%26%OCT-12%’;
spool off
set markup html off spool off


seding mail from server

uuencode “scheduler.html” “scheduler.html” | mailx -s “scheduler.html” krishna@gmail.com


vi commands

step-by-step changing database name using NID

rac1[dev]_oracle> nid target=sys dbname=stage

DBNEWID: Release 11.2.0.1.0 – Production on Wed Aug 22 00:39:27 2012

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

Password:
Connected to database DEV (DBID=3870283202)

Connected to server version 11.2.0

Control Files in database:
/u01/dev/control/control1.ctl
/u01/dev/control/control2.ctl

Change database ID and database name DEV to STAGE? (Y/[N]) => y

Proceeding with operation
Changing database ID from 3870283202 to 873413763
Changing database name from DEV to STAGE
Control File /u01/dev/control/control1.ctl – modified
Control File /u01/dev/control/control2.ctl – modified
Datafile /u01/dev/data/system01.db – dbid changed, wrote new name
Datafile /u01/dev/data/sysaux01.db – dbid changed, wrote new name
Datafile /u01/dev/data/undotbs01.db – dbid changed, wrote new name
Datafile /u01/dev/data/users01.db – dbid changed, wrote new name
Datafile /u01/dev/data/temp01.db – dbid changed, wrote new name
Datafile /u01/dev/data/temp02.db – dbid changed, wrote new name
Control File /u01/dev/control/control1.ctl – dbid changed, wrote new name
Control File /u01/dev/control/control2.ctl – dbid changed, wrote new name
Instance shut down

Database name changed to STAGE.
Modify parameter file and generate a new password file before restarting.
Database ID for database STAGE changed to 873413763.
All previous backups and archived redo logs for this database are unusable.
Database is not aware of previous backups and archived logs in Recovery Area.
Database has been shutdown, open database with RESETLOGS option.
Succesfully changed database name and ID.
DBNEWID – Completed succesfully.
rac1[dev]_oracle>

rac1[dev]_oracle> vi initdev.ora

CHANGE THE DB_NAME TO STAGE COPY/CREATE A PASSWORD FILE

rac1[dev]_oracle> cp orapwdev orapwstage
orapwd file=orapwstage password=passwd entries=5
rac1[dev]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 22 00:45:23 2012

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

Connected to an idle instance.

SQL> startup pfile=’$ORACLE_HOME/dbs/initdev.ora’;

ORACLE instance started.
Total System Global Area 393375744 bytes
Fixed Size 1336764 bytes
Variable Size 125831748 bytes
Database Buffers 260046848 bytes
Redo Buffers 6160384 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open

SQL> alter database open resetlogs;

Database altered.
SQL>

SQL> select instance_name,status from v$instance;

INSTANCE_NAME STATUS
—————- ————
dev OPEN

SQL> select name,open_mode from v$database;

NAME OPEN_MODE
——— ——————–
STAGE READ WRITE

SQL>

SQL> shut immediate

Database closed.
Database dismounted.
ORACLE instance shut down.

SQL> startup

ORACLE instance started.
Total System Global Area 393375744 bytes
Fixed Size 1336764 bytes
Variable Size 130026052 bytes
Database Buffers 255852544 bytes
Redo Buffers 6160384 bytes
ORA-01103: database name ‘STAGE’ in control file is not ‘DEV’

BECAUSE IT TAKING OLD DATABASE SPFILE SO START USING PFILE AND CREATE SPFILE

SQL> shut immediate;

ORA-01507: database not mounted
ORACLE instance shut down.

SQL> startup pfile=’$ORACLE_HOME/dbs/initstage.ora’;

ORACLE instance started.

Total System Global Area 393375744 bytes
Fixed Size 1336764 bytes
Variable Size 125831748 bytes
Database Buffers 260046848 bytes
Redo Buffers 6160384 bytes
Database mounted.
Database opened.
SQL>

SQL> select name,open_mode from v$database;

NAME OPEN_MODE
——— ——————–
STAGE READ WRITE

SQL> select instance_name,status from v$instance;

INSTANCE_NAME STATUS
—————- ————
dev OPEN

SQL>

wls patching

cd /kittu/applmgr/fs1/FMW_Home/utils/bsu

mv cache_dir cache_dir_backup

mkdir cache_dir

cp /patch_top/cpu_April_2015/* to /kittu/applmgr/fs1/FMW_Home/utils/bsu/cache_dir

unzip the patch

adop -status   

adop phase=prepare           

Make sure you sourced the patch file system

. /kittu/applmgr/EBSapps.env patch

Set the WLS ORACLE_HOME

sh $FMW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh

apply the weblogic patch

cd $FMW_HOME/utils/bsu

./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=YUIS -prod_dir=$FMW_HOME/wlserver_10.3 -log=PSU_YUIS.log

******* NOTE *******

if encountered the below issues please follow the specified workarounds and resolve them

[a] :  If you get conflict error

==============

Conflict(s) detected - resolve conflict condition and execute patch installation again

Conflict condition details follow:

Patch YUIS is mutually exclusive and cannot coexist with patch(es): D33T,VFS8,LL4G

===============

 Please remove the conflicts with the below command and try re applying the patch

./bsu.sh -remove -patchlist=D33T -prod_dir=$FMW_HOME/wlserver_10.3 -log=remove_D33T.log

./bsu.sh -remove -patchlist=VFS8 -prod_dir=$FMW_HOME/wlserver_10.3 -log=remove_VFS8.log

./bsu.sh -remove -patchlist=LL4G -prod_dir=$FMW_HOME/wlserver_10.3 -log=remove_LL4G.log

apply the requested patch

 

[b] While applying patch you may get the OutOfMemoryError error

==================

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded

at java.lang.Class.getInterfaces(Native Method)

at java.lang.Class.getMethod0(Class.java:2779)

==================

please perform below:

1. cp $FMW_HOME/utils/bsu/bsu.sh $FMW_HOME/utils/bsu/bsu.sh_original

2. vi $FMW_HOME/utils/bsu/bsu.sh  

 modify the line from

 

 MEM_ARGS="-Xms256m -Xmx512m"

 to

 MEM_ARGS="-Xms1024m -Xmx1024m"

3 apply the requested patch

4. Revert bsu.sh value from backup

cp $FMW_HOME/utils/bsu/bsu.sh_original $FMW_HOME/utils/bsu/bsu.sh

- adop phase=finalize    

check the logfile for any errors using the following command

- adopscanlog -latest=yes

 

Grid upgrade issues (11.2.0.3 to 11.2.0.4)

Grid upgrade issues (11.2.0.3 to 11.2.0.4)

root.sh faild during upgrading the GRID home from 11.2.0.3 to 11.2.0.4 (Doc ID 428681.1)

[root@kasarla02 11204]# ./root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME= /oracrs/oracle/product/11204

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /oracrs/oracle/product/11204/crs/install/crsconfig_params

Creating trace directory

User ignored Prerequisites during installation

Installing Trace File Analyzer

OLR initialization - successful

root wallet

root wallet cert

root cert export

peer wallet

profile reader wallet

pa wallet

peer wallet keys

pa wallet keys

peer cert request

pa cert request

peer cert

pa cert

peer root cert TP

profile reader root cert TP

pa root cert TP

peer pa cert TP

pa peer cert TP

profile reader pa cert TP

profile reader peer cert TP

peer user cert

pa user cert

Adding Clusterware entries to /etc/inittab

CRS-2672: Attempting to start 'ora.mdnsd' on 'kasarla02'

CRS-2676: Start of 'ora.mdnsd' on 'kasarla02' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'kasarla02'

CRS-2676: Start of 'ora.gpnpd' on 'kasarla02' succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'kasarla02'

CRS-2672: Attempting to start 'ora.gipcd' on 'kasarla02'

CRS-2676: Start of 'ora.cssdmonitor' on 'kasarla02' succeeded

CRS-2676: Start of 'ora.gipcd' on 'kasarla02' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'kasarla02'

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

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

CRS-2676: Start of 'ora.cssd' on 'kasarla02' succeeded

PROT-1: Failed to initialize ocrconfig

PROC-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]

Failed to create Oracle Cluster Registry configuration, rc 255

Oracle Grid Infrastructure Repository configuration failed at /oracrs/oracle/product/11204/crs/install/crsconfig_lib.pm line 6910.

/oracrs/oracle/product/11204/perl/bin/perl -I/oracrs/oracle/product/11204/perl/lib -I/oracrs/oracle/product/11204/crs/install /oracrs/oracle/product/11204/crs/install/rootcrs.pl execution failed

[root@kasarla02 11204]#

fix : check the ocr and voting disks

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

ocr files not created during upgrade from 11.2.0.3 to 11.2.0.4

[root@kasarla01 bin]# ./ocrcheck

PROT-602: Failed to retrieve data from the cluster registry

PROC-26: Error while accessing the physical storage Operating System error [No such file or

directory] [2]

fix :

[root@kasarla01 bin]# cat /etc/oracle/ocr.loc

ocrconfig_loc=/oracrs/oradata/storage

local_only=FALSE

Changed /etc/oracle/ocr.loc from

ocrconfig_loc=/oracrs/oradata/storage

local_only=FALSE

To

ocrconfig_loc=/oracrs/oradata/storage/ocr

local_only=FALSE

voting disks are not creating during upgrade from 11.2.0.3 to 11.2.0.4

grid@kasarla01 >crsctl query css votedisk

Located 0 voting disk(s).

grid@kasarla01 >

grid@kasarla01 >cd /oracrs/oradata/storage

[root@kasarla01 storage]# ls -ltr

total 23696

-rw-r----- 1 root oracrs 272756736 Jun 30 08:42 ocr

[root@kasarla01 storage]#

[root@kasarla01 storage]# touch vdsk1

[root@kasarla01 storage]# chmod grid:oracrs

[root@kasarla01 storage]# chmod 640 vdsk1

[root@kasarla01 storage]# crsctl query css votedisk

## STATE File Universal Id File Name Disk group

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

1. ONLINE 5a135ddc54b44f59bf4a34b20f20ad92 (/oracrs/oradata/storage/vdsk1) []

Located 1 voting disk(s).

[root@kasarla01 storage]# touch vdsk2

[root@kasarla01 storage]# touch vdsk3

[root@kasarla01 storage]# chmod grid:oracrs vdsk2 vdsk3

[root@kasarla01 storage]# chmod 640 vdsk2 vdsk3

[root@kasarla01 storage]#

[root@kasarla01 storage]# ocrcheck

Status of Oracle Cluster Registry is as follows :

Version : 3

Total space (kbytes) : 262120

Used space (kbytes) : 2588

Available space (kbytes) : 259532

ID : 2020827252

Device/File Name : /oracrs/oradata/storage/ocr

Device/File integrity check succeeded

Device/File Name : /oracrs/oradata/storage/vdsk2

Device/File integrity check succeeded

Device/File Name : /oracrs/oradata/storage/vdsk3

Device/File integrity check succeeded

Device/File not configured

Device/File not configured

Cluster registry integrity check succeeded

Logical corruption check succeeded

[root@kasarla01 storage]#

[root@kasarla01 storage]# crsctl add css votedisk /oracrs/oradata/storage/vdsk2

Now formatting voting disk: /oracrs/oradata/storage/vdsk2.

clsscfgVFFormatted: corrupt volume info block(3)

CRS-4603: Successful addition of voting disk /oracrs/oradata/storage/vdsk2.

[root@kasarla01 storage]# crsctl add css votedisk /oracrs/oradata/storage/vdsk3

Now formatting voting disk: /oracrs/oradata/storage/vdsk3.

clsscfgVFFormatted: corrupt volume info block(3)

CRS-4603: Successful addition of voting disk /oracrs/oradata/storage/vdsk3.

[root@kasarla01 storage]# crsctl query css votedisk

## STATE File Universal Id File Name Disk group

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

1. ONLINE 5a135ddc54b44f59bf4a34b20f20ad92 (/oracrs/oradata/storage/vdsk1) []

2. ONLINE 1b51a5e9c5634f69bfbe968af1b541ba (/oracrs/oradata/storage/vdsk2) []

3. ONLINE 3d116b1530384ff2bf4b79d722eb1f50 (/oracrs/oradata/storage/vdsk3) []

Located 3 voting disk(s).

[root@kasarla01 storage]# cd $GI_HOME/

[root@kasarla01 11204]# ls

assistants cfgtoollogs css deinstall gipc install jdk log nls opmn oui precomp relnotes sqlplus usm

auth clone ctss demo gnsd instantclient jlib md oc4j oracore owm psu root.sh srvm utl

bin crf cv diagnostics gpnp inventory JRE mdns ohasd oraInst.loc patch racg rootupgrade.sh suptools wwg

ccr crs dbs eons has javavm ldap mesg ologgerd ord perl rda scheduler sysman xdk

cdata csmig dc_ocm evm hs jdbc lib network OPatch osysmond plsql rdbms slax tfa

[root@kasarla01 11204]# ./root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME= /oracrs/oracle/product/11204

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /oracrs/oracle/product/11204/crs/install/crsconfig_params

User ignored Prerequisites during installation

Installing Trace File Analyzer

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

[root@kasarla01 11204]#

EBS 12.2 installation on linux

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf


ISSUE-1 - system check status failed (file system)

Could not find disk.label under EBSInstallMedia/Apps/Disk1
creating using command: su applmgr -c "mkdir -p /R12.2/r12vis/oraInventory"
RW-00022: Error: - Unable to create directory with proper privileges:
Apps ORACLE_HOME OraInventory File Directory
Mount Point = /R12.2/r12vis/oraInventoryFailed to change the permission of /R12.2/r12vis/oraInventory
Give the full permissions to /R12.2/r12vis/oraInventory
R12.2 will not recongnise the dot in mount point name
Example /R12.2 will not be acceptable
this should be /R12_2

ISSUE-2 - system check status failed (stage area check)
ISSUE-3 - system check status failed (Database pre-install check)
Before installing we should unzip the all media files using following command until you get all valid outputs
cd startCD/Disk1/rapidwiz/bin/
./buildStage.sh


Verifying stage area...

Directory /stage/12.2/TechInstallMedia is valid
Directory /stage/12.2/TechPatches/DB is valid
Directory /stage/12.2/TechPatches/MiddleTier is valid
Directory /stage/12.2/EBSInstallMedia/AppDB is valid
Directory /stage/12.2/EBSInstallMedia/Apps is valid
Directory /stage/12.2/EBSInstallMedia/AS10.1.2 is valid
Directory /stage/12.2/TechInstallMedia/database is valid
Directory /stage/12.2/TechInstallMedia/ohs11116 is valid
Directory /stage/12.2/TechInstallMedia/wls1036_generic is valid

Stage area verified.



ISSUE-4

RW-50010: Error: - script has returned an error: 1
RW-50004: Error code received when running external process. Check log file for details.
Running Database Install Driver for r12vis instance
Fatal Error: TXK Install Service

oracle.apps.fnd.txk.config.ProcessStateException: OUI process failed : Exit=253 See log for details. CMD= /stage/R12.2/TechInstallMedia/database/database/runInstaller -waitForCompletion -ignoreSysPrereqs -force -silent -responseFile /R12_2/r12vis/db/11.2.0/temp
Executing command: /stage/R12.2/startCD/Disk1/rapidwiz/jre/Linux_x64/1.6.0//bin/java/bin/java -cp /R12_2/r12vis/db/11.2.0/temp/r12vis_kasarla/DBInstallHome/fnd/../j11067593_fnd.zip:/R12_2/r12vis/db/11.2.0/temp/r12vis_kasarla/DBInstallHome/fnd/java/3rdparty/stdalone/xmlparserv2.zip -Doracle.apps.fnd.txk.env_home=/R12_2/r12vis/db/11.2.0/temp/r12vis_kasarla/ -Doracle.apps.fnd.txk.runtime.config=/R12_2/r12vis/db/11.2.0/temp/r12vis_kasarla/xmldocs/instDB.xml oracle.apps.fnd.txk.config.InstallService

Check the logfile /R12_2/r12vis/oraInventory/logs/installActions2013-12-05_02-35-26PM.log
CAUSE: Some of the mandatory prerequisites are not met. See logs for details. /R12_2/r12vis/oraInventory/logs/installActions2013-12-05_04-53-23PM.log
ACTION: Identify the list of failed prerequisite checks from the log: /R12_2/r12vis/oraInventory/logs/installActions2013-12-05_04-53-23PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.

grep -i missing /R12_2/r12vis/oraInventory/logs/installActions2013-12-05_02-35-26PM.log
Package "make" is missing on node "kasarla"
Package "binutils" is missing on node "kasarla"
Package "gcc(x86_64)" is missing on node "kasarla"
Package "libaio(x86_64)" is missing on node "kasarla"
Package "libaio-devel(x86_64)" is missing on node "kasarla"
Package "glibc(x86_64)" is missing on node "kasarla"
Package "compat-libstdc++-33(x86_64)" is missing on node "kasarla"
Package "elfutils-libelf(x86_64)" is missing on node "kasarla"
Package "elfutils-libelf-devel" is missing on node "kasarla"
Package "glibc-common" is missing on node "kasarla"
Package "glibc-devel(x86_64)" is missing on node "kasarla"
Package "glibc-headers" is missing on node "kasarla"
Package "gcc-c++(x86_64)" is missing on node "kasarla"
Package "libgcc(x86_64)" is missing on node "kasarla"
Package "libstdc++(x86_64)" is missing on node "kasarla"
Package "libstdc++-devel(x86_64)" is missing on node "kasarla"
Package "sysstat" is missing on node "kasarla"
Package "pdksh" is missing on node "kasarla"
Package "expat(x86_64)" is missing on node "kasarla"
Install all the above packages

In my case all the rpm's are latest versions but rapidwiz is not recongnising the latest versions
So asked unix team to degrade to the below versions
please check one importent thing we installed Oralce Enterprise Linux 6 but unix team guys applied all redhat rpms insted or oracle rpm's
that is the reason rapidwiz is not recongnizing


binutils-2.15.92.0.2
gcc-3.4.6
libaio-0.3.105
libaio-devel-0.3.105
glibc-2.3.4-2.41
compat-libstdc++-33-3.2.3
elfutils-libelf-0.97
elfutils-libelf-devel-0.97
glibc-common-2.3.4
glibc-devel-2.3.4
glibc-headers-2.3.4
gcc-c++-3.4.6
libgcc-3.4.6
libstdc++-3.4.6
libstdc++-devel-3.4.6
sysstat-5.0.5
pdksh-5.2.14
expat-1.95.7


ISSUE-5

FRM-92101:There was a failure in the Forms Server during startup.This could happen due to invalid configuration.
Please look into the web-server log file for details

in forms logfile
runtime process failed during startup with errors frmweb: error while loading shared libraries: libXt.so.6: cannot open shared object file: No such file or directory

Forms session 1 exception stack trace:
oracle.forms.engine.RunformException: Forms session 1 failed during startup: no response from runtime process
at oracle.forms.servlet.RunformProcess.connect(Unknown Source)
at oracle.forms.servlet.RunformProcess.dataToRunform(Unknown Source)
at oracle.forms.servlet.RunformSession.dataToRunform(Unknown Source)
at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)


WORKING ON SOLUTION
expecting openmotif rpm is higher version . working with oracle

EBS 11i to R12.2 upgrade on linux


Download Patch 7705743: TUMS for R12: TO DELIVER TUMS UTILITY FOR UPGRADES FROM 11I TO R12

On kittuapps01 as applmgr:
sqlplus -s apps/APPS_PASSWORD@kittu_BALANCE @$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE
adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt \
logfile=u7705743.log \
patchtop=$PATCH_HOME/7705743 \
driver=u7705743.drv \
workers=48 interactive=yes


Generate the Report

On kittuapps01 as applmgr:
cd $AD_TOP/patch/115/sql
sqlplus apps/APPS password @adtums.sql /u01/kittu/tmp
A report file called tumsr12.html will be created in the directory.


On kittuapps01 as applmgr:

sqlplus -s apps/APPS_PASSWORD@kittu_BALANCE @$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE


Download Patch 7429271: PATCH FOR 11I.AD.I.7

On kittudb01 as oracle:
unzip p7429271_11i_LINUX.zip
pimsu chown -R applmgr:appskittu 7429271
mkdir -p $ORACLE_HOME/appsutil/admin
cp /stage/7429271/admin/adgrants.sql $ORACLE_HOME/appsutil/admin


Stop 11i Applications

$COMMON_TOP/admin/scripts/$CONTEXT_NAME/adstpall.sh apps/APPS_PASSWORD


Apply Patch 7429271: PATCH FOR 11I.AD.I.7

sqlplus -s apps/APPS_PASSWORD@kittu_BALANCE @$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE
adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt \
logfile=u7429271.log \
patchtop=$PATCH_HOME/7429271 \
driver=u7429271.drv \
workers=48 interactive=yes


run adgrants on db node

On kittudb01 as oracle:
sqlplus ‘/ as sysdba’
SQL> spool adgrants.log
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql APPS


run autoconfig

On kittudb01 and kittudb02 as oracle:
. ~/bin/kittu
$ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/adautocfg.sh appspass=APPS_PASSWORD
On kittuapps01 and cincisapd62 as applmgr:
$COMMON_TOP/admin/scripts/$CONTEXT_NAME/adautocfg.sh appspass=


run tums report again

On kittuapps01 as applmgr:
cd $AD_TOP/patch/115/sql
sqlplus apps/APPS_password @adtums.sql /u01/kittu/tmp
A report file called tumsr12.html will be created in the directory.


Configure SSO

sqlplus -s apps/APPS_PASSWORD@kittu_BALANCE @$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE
On kittudb01 as oracle:
SQL> DROP USER SSOSDK CASCADE;
Execute SSO Script
On kittuapps01 as applmgr:
$ cd /u01/kittu/bin
./ssoreg_11i_linux kittu STAGE APPS_PASSWORD SYSTEM_PASSWORD SSOSDK
At the same time do the following until the SSO script finished:
sqlplus / as sysdba
SQL> GRANT CREATE PROCEDURE TO SSOSDK;
Verify the SSO registration was success:
SQL> SELECT ls_login_url FROM ssosdk.wwsec_enabler_config_info$;


Remove the Oct PSU Patch

srvctl stop database -d kittu
srvctl stop listener -l LSTNMARD2
opatch rollback -id 13004894
opatch rollback -id 14275605
SQL> @$ORACLE_HOME/rdbms/admin/catbundle_PSU_database_SID_ROLLBACK.sql


Apply the additional patches

opatch apply -oh $ORACLE_HOME -local $PATCH_HOME/14153501 -silent
opatch apply -oh $ORACLE_HOME -local $PATCH_HOME/14574453 -silent
opatch apply -oh $ORACLE_HOME -local $PATCH_HOME/14598522 -silent
opatch apply -oh $ORACLE_HOME -local $PATCH_HOME/14649883 -silent
opatch apply -oh $ORACLE_HOME -local $PATCH_HOME/14751895 -silent
srvctl start database -d kittu


Download JRE patch for Database Tiers

p16249133_160390_Linux-x86-64.zip
unzip p16249133_160390_Linux-x86-64.zip


Convert to Multiple Organizations architecture

On kittuapps01 as applmgr:
adadmin –> Maintain Applications Database Entities menu (option 4) –> Convert to Multi-Org (option 6)


Time is: Tue May 28 2013 05:53:59
(Deferment number 1 for this job)
FAILED: file adorgcnv.pls on worker 24 for product ad username APPLSYS.

Time is: Tue May 28 2013 05:53:59

AD Administration error:
The following ORACLE error:

ORA-00001: unique constraint (APPLSYS.AD_DEFERRED_JOBS_U1) violated

sqlplus -s APPS/***** @/u01/kittu/applmgr/appl/ad/11.5.0/admin/sql/adorgcnvv
.pls ‘CONVERT’ ‘FV_INVOICE_FINANCE_CHRGS_ALL’ ‘1000’ ‘1’ ‘1’
declare
*
ERROR at line 1:
ORA-20000: ORA-20001: Cannot read site level profile value for profile ‘ORG_ID’
Cursor SQL statement:
SQL statement:
ORA-06512: at line 463

Solution
========
SQL> Select ORGANIZATION_ID, NAME from HR_ALL_ORGANIZATION_UNITS;

ORGANIZATION_ID
—————
NAME
——————————————————————————–
0
Setup Business Group

SQL> SELECT o.profile_option_name, v.level_id FROM FND_PROFILE_OPTION_VALUES V, FND_PROFILE_OPTIONS O
WHERE O.application_id= v.application_id and o.profile_option_id= v.profile_option_id
AND o.application_id=0 and o.profile_option_id=1991 and v.level_id=10001;

no rows selected

SQL> SET serveroutput ON
SQL> DECLARE out1 boolean;
2 BEGIN
3 dbms_output.enable(20000);
4 out1 := FND_PROFILE.SAVE(‘ORG_ID’, 0, ‘SITE’);
5 IF out1 THEN dbms_output.put_line( ‘Profile has been updated’ );
6 ELSE dbms_output.put_line( ‘Profile has not been updated’ );
7 END IF;
8 COMMIT;
9 END;
10 /
Profile has been updated

PL/SQL procedure successfully completed.

SQL> SELECT o.profile_option_name, v.level_id FROM FND_PROFILE_OPTION_VALUES V, FND_PROFILE_OPTIONS O
WHERE O.application_id= v.application_id and o.profile_option_id= v.profile_option_id
and o.application_id=0 and o.profile_option_id=1991 and v.level_id=10001;
PROFILE_OPTION_NAME
————————–
LEVEL_ID
———-
ORG_ID
10001

After this ran adadmin which completed normal.

SQL> SELECT multi_org_flag FROM fnd_product_groups WHERE product_group_id = 1;
M

Y


Gather schema statistics

exec FND_STATS.GATHER_SCHEMA_STATISTICS(‘ALL’, 10, :parallel_degree, ‘NOBACKUP’, NULL, ‘LASTRUN’, ‘GATHER AUTO’, 10, ‘N’);


Run Rapid Install

On kittuapps01 as root:
Verify the oracle Inventory file /etc/oraInst.loc that is usung the kittu inventory:
inst_group=appskittu
inventory_loc=/u01/kittu/R12_2/oraInventory

Start the Rapid Installation using the Upgrade option:
cd /stage/startCD/Disk1/rapidwiz
./rapidwiz

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf


upgrade start

On kittuapps01 as applmgr:
cd /u01/kittu/R12_2/fs1/EBSapps/appl
. APPSkittu_kittuapps01.env

touch $TNS_ADMIN/kittu_kittuapps01_ifile.ora
touch /u01/kittu/R12_2/fs2/inst/apps/kittu_kittuapps01/ora/10.1.2/network/admin/kittu_kittuapps01_ifile.ora

– Test it:
sqlplus apps/APPS_PASSWORD@kittu

Modify $CONTEXT_FILE files:
vi $CONTEXT_FILE
vi /u01/kittu/R12_2/fs2/inst/apps/kittu_kittuapps01/appl/admin/kittu_kittuapps01.xml
s_apps_jdbc_connect_descriptor = (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb01.krishnareddy.com)(PORT=1533))(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb02.krishnareddy.com)(PORT=1533)))(CONNECT_DATA=(SERVICE_NAME=kittu)))
export AD_APPS_JDBC_URL=””(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb01.krishnareddy.com)(PORT=1533))(CONNECT_DATA=(SERVICE_NAME=kittu)))”””


Enable maintanence mode

On kittuapps01 as applmgr:
sqlplus -s apps/APPS_PASSWORD@kittu @$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE


Grant privileges and create PL/SQL profiler objects

On kittudb01 as oracle:
sqlplus / as sysdba
SQL> spool adgrants_R12.log
SQL> @/u01/kittu/R12_2/fs1/EBSapps/appl/admin/adgrants.sql APPS
SQL> spool off
SQL> alter profile default LIMIT PASSWORD_VERIFY_FUNCTION null;


Apply Patch 10117518

On kittuapps01 as applmgr:
cd /u01/kittu/R12_2/fs1/EBSapps/appl
. APPSkittu_kittuapps01.env
export PATCH_HOME=/stage

adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt \
logfile=u10117518.log \
patchtop=$PATCH_HOME/10117518 \
driver=u10117518.drv \
workers=41 interactive=yes


Modify the parameter java_jit_enabled

On kittudb01 as oracle:
sqlplus / as sysdba
SQL> alter system set java_jit_enabled = FALSE;


Compile APPS schema

On kittuapps01 as applmgr:
adadmin -> Compile/Reload Applications Database Entities menu -> Compile APPS schema
Type “”No”” when prompt for Run Invoker Rights processing in incremental mode [No] ?


Apply all Cumulative Upgrade Patches (CUPs)

Consolidated Upgrade Patch 15971549
cd /stage/15971549
adpatch preinstall=y


Run the American English upgrade patch driver

On kittuapps01 as applmgr:
cd $AU_TOP/patch/115/driver
admrgpch -d . -preinstall -master u10124646.drv
– The above will generate a new merged driver as u_merged.drv using this driver run
adpatch options=nocopyportion,nogenerateportion


Disable Maintenance Mode

sqlplus -s apps/APPS_PASSWORD@kittu @$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE


Fix Synonyms for Trade Management

This step runs AD Administration option and executes the Recreate Grants and
Synonyms option. It then runs a necessary script (ozftmsyn.sql) to fix additional
synonyms for the Trade Management application. If you run the AD
Administration option Recreate Grants and Synonyms, run the following script
after the grants and synonyms have been recreated to ensure that the synonyms are
correct:
FNDMDGEN Oracle ID/password 0 Y LANG_CODE ICX


Finish the Upgrade
Configure Release 12.2 E-Business Suite instance

On as applmgr:
perl $AD_TOP/bin/admkappsutil.pl

On as oracle:
cd $ORACLE_HOME
mv appsutil appsutil.before122
cp /u01/kittu/R12_2/fs1/inst/apps/kittu_kittuapps01/admin/out/appsutil.zip .
unzip appsutil.zip
rm -f appsutil.zip

Install JRE on the Database tier
cd $ORACLE_HOME/appsutil
/orasoft/rdbms/OEL5_64/11.2.0.3/ugdR122/stage/jre-6u39-linux-x64.bin
mv jre1.6.0_39 jre
mkdir clone
cp -r jre clone/jre

– Generate a new database context
cd $ORACLE_HOME/appsutil/bin
perl adbldxml.pl appsuser=apps appspasswd=APPS_PASSWORD

– Run AutoConfig on the database tier nodes (be sure that $CONTEXT_FILE is the same created in the last step
$ORACLE_HOME/appsutil/bin/adconfig.sh contextfile=$CONTEXT_FILE appspass=APPS_PASSWORD


Run AutoConfig on the Apps Tier

Prior to running AutoConfig check if table – ADX_PRE_AUTOCONFIG is existing in APPS schema:
select object_name, object_type, owner, status from dba_objects where upper(object_name)=’ADX_PRE_AUTOCONFIG’ and object_type=’TABLE’
and upper(owner)=’APPS’;
To drop table ADX_PRE_AUTOCONFIG from APPS schema and recreate in APPLSYS schema, execute the following commands:
cd $AD_TOP/patch/115/sql
sqlplus APPS/APPS_PASSWORD@txkDropAdxPreAutoConfig.sql

$ADMIN_SCRIPTS_HOME/adautocfg.sh appspass=APPS_PASSWORD


Run Rapid Install to configure Release 12.2 E-Business Suite instance

On kittuapps01 as root:
Verify the oracle Inventory file /etc/oraInst.loc that is usung the kittu inventory:
inst_group=appskittu
inventory_loc=/u01/kittu/R12_2/oraInventory

Start the Rapid Installation using the Upgrade option:
cd /stage/startCD/Disk1/rapidwiz
./rapidwiz

https://static.googleusercontent.com/external_content/picasaweb.googleusercontent.com/slideshow.swf


The script prepares “Online Patching Enablement: Readiness Report”

On kittuapps01 as applmgr:
mkdir $LOG_HOME/appl/op
cd $LOG_HOME/appl/op
sqlplus system @$AD_TOP/sql/ADZDPSUM.sql
exec fnd_oracle_user_pkg.load_row(‘200012038’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
exec fnd_oracle_user_pkg.load_row(‘213005428’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
exec fnd_oracle_user_pkg.load_row(‘MARS’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
exec fnd_oracle_user_pkg.load_row(‘U200005083’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
exec fnd_oracle_user_pkg.load_row(‘U210007313’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
exec fnd_oracle_user_pkg.load_row(‘U213005146’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
exec fnd_oracle_user_pkg.load_row(‘U501254284’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
exec fnd_oracle_user_pkg.load_row(‘WB_USER’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);

On kittuapps01 as applmgr:
sqlplus system @$AD_TOP/sql/ADZDPMAN.sql

On kittuapps01 as applmgr:
sqlplus system @$AD_TOP/sql/ADZDPAUT.sql
mv adzdpaut.txt adzdpaut_pre_dbprep.txt
“The above report is provided for information purposes and no action should be taken from this report.

perl $AD_TOP/bin/adzdreport.pl apps
-Select “”Other generic reports”” option 3 on “”Online Patching Diagnostic Reports Main Menu””
– Then “”Free space in important tablespaces”” option 3 on “”Other Generic Reports Sub Menu””

cd $LOG_HOME/appl/op
sqlplus apps/APPS_PASSWORD @$AD_TOP/sql/ADZDEXRPT.sql
mv adzdexrpt.txt adzdexrpt_pre_dbprep.txt

SQL> select owner,object_name,status from dba_objects where object_name like ‘%AD_ZD%’ and status =’VALID’;


Enable Maintenance Mode

sqlplus -s apps/APPS_PASSWORD@kittu @$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE

SQL> exec DBMS_SERVICE.STOP_SERVICE(‘EBS_PATCH’);
Execute the above in all DB RAC nodes if in RAC or in the stand alone database node. And then execute the below from any one node.
SQL> exec DBMS_SERVICE.DELETE_SERVICE(‘EBS_PATCH’);

cd /stage/13543062
adpatch


Disable Maintenance Mode

sqlplus -s apps/APPS_PASSWORD@kittu @$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE

On kittudb01 as oracle:
sqlplus / as sysdba
exec sys.utl_recomp.recomp_parallel;

cd $LOG_HOME/appl/op
sqlplus apps/APPS_PASSWORD @$AD_TOP/sql/ADZDEXRPT.sql
mv adzdexrpt.txt adzdexrpt_post_dbprep.txt

sqlplus system @$AD_TOP/sql/ADZDPSUM.sql
mv adzdpsum.txt adzdpsum_post_dbprep.txt

sqlplus apps/APPS_PASSWORD
exec fnd_oracle_user_pkg.load_row(‘U200008672’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);

sqlplus system @$AD_TOP/sql/ADZDPMAN.sql
mv adzdpman.txt adzdpman_post_dbprep.txt

SQL> DROP SYNONYM sys.MARS_CTA_ME_LE_CURR;
SQL> DROP SYNONYM SYSTEM.MARS_INTERCO_ACCOUNTS_V;

sqlplus system @$AD_TOP/sql/ADZDPAUT.sql
mv adzdpaut.txt adzdpaut_post_dbprep.txt

sqlplus apps/APPS_PASSWORD @$AD_TOP/sql/ADZDDBCC.sql


Modifications to CONTEXT_FILE in DB Nodes

On Database Nodes as oracle:
sqlplus apps/APPS_PASSWORD@kittu
SQL> exec fnd_net_services.remove_system(‘kittu’);
SQL> commit;
SQL> exec fnd_conc_clone.setup_clean;
SQL> commit;
SQL> SELECT node_name “”Node Name””, node_mode “”Mode””, support_cp “”C””,
support_web “”W””, support_admin “”A””, support_forms “”F””
FROM APPS.FND_NODES;

– Modify the following paramter in $CONTEXT_FILE
s_virtual_hostname
s_display

– Run AutoConfig on second node(s):
$ORACLE_HOME/appsutil/bin/adconfig.sh contextfile=$CONTEXT_FILE appspass=APPS_PASSWORD
Now Run AutoConfig on all nodes.


Modifications to CONTEXT_FILE in APPS Nodes

On Application Nodes as applmgr:
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_apps_jdbc_connect_descriptor “”jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb01-vip.krishnareddy.com)(PORT=1533))(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb02-vip.krishnareddy.com)(PORT=1533)))(CONNECT_DATA=(SERVICE_NAME=kittu)))””
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_apps_jdbc_patch_connect_descriptor “”jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb01-vip.krishnareddy.com)(PORT=1533))(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb02-vip.krishnareddy.com)(PORT=1533)))(CONNECT_DATA=(SERVICE_NAME=kittu)))””

– Same for File:
/u01/kittu/R12_2/fs2/inst/apps/kittu_kittuapps01/appl/admin/kittu_kittuapps01.xml
java oracle.apps.ad.context.UpdateContext /u01/kittu/R12_2/fs2/inst/apps/kittu_kittuapps01/appl/admin/kittu_kittuapps01.xml s_apps_jdbc_connect_descriptor “”jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb01-vip.krishnareddy.com)(PORT=1533))(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb02-vip.krishnareddy.com)(PORT=1533)))(CONNECT_DATA=(SERVICE_NAME=kittu)))””
java oracle.apps.ad.context.UpdateContext /u01/kittu/R12_2/fs2/inst/apps/kittu_kittuapps01/appl/admin/kittu_kittuapps01.xml s_apps_jdbc_patch_connect_descriptor “”jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb01-vip.krishnareddy.com)(PORT=1533))(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb02-vip.krishnareddy.com)(PORT=1533)))(CONNECT_DATA=(SERVICE_NAME=kittu)))””

export AD_APPS_JDBC_URL=””(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb01-vip.krishnareddy.com)(PORT=1533))(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb02-vip.krishnareddy.com)(PORT=1533)))(CONNECT_DATA=(SERVICE_NAME=kittu)))””

Run AutoConfig on second node:
$ADMIN_SCRIPTS_HOME/adautocfg.sh appspass=APPS_PASSWORD


Start Services

$INST_TOP/admin/scripts/adstrtal.sh apps/APPS_PASSWORD
adop phase=fs_clone

EBS 11i to R12.1.3 upgrade on linux


***********************************************************************************************
Pre-upgrade work
***********************************************************************************************
Convert to Multiple Organizations architecture

‘On application node:
adadmin –> Maintain Applications Database Entities menu (option 4) –> Convert to Multi-Org (option 6)


Verify Guest User Password and run autoconfig

On application node:
Update s_guest_user to GUEST and s_guest_pass to ORACLE in the context files.

Run autoconfig on both app. nodes if you change it. Then run the following sql as APPS to verify it.

SQL> select fnd_web_sec.validate_login(‘GUEST’,’ORACLE’) from dual;

FND_WEB_SEC.VALIDATE_LOGIN(‘GUEST’,’ORACLE’)
——————————————————————————–
Y

Start application services on both nodes


Add more space to tablespaces

On database node as oracle:
Run the following query in the target DB and add more space based on the value in Action column:
SELECT tablespace_name,
CASE
WHEN tablespace_name = ‘APPS_TS_TX_DATA’
AND freespace < 16384 THEN 'Add ' || TO_NUMBER (16384 – freespace) || ' MB' WHEN tablespace_name = 'APPS_TS_TX_IDX' AND freespace < 16384 THEN 'Add ' || TO_NUMBER (16384 – freespace) || ' MB' WHEN tablespace_name = 'APPS_TS_SEED' AND freespace < 4096 THEN 'Add ' || TO_NUMBER (4096 – freespace) || ' MB' WHEN tablespace_name = 'APPS_TS_SUMMARY' AND freespace < 6144 THEN 'Add ' || TO_NUMBER (6144 – freespace) || ' MB' WHEN tablespace_name = 'APPS_TS_MEDIA' AND freespace < 6144 THEN 'Add ' || TO_NUMBER (6144 – freespace) || ' MB' WHEN tablespace_name = 'SYSTEM' AND freespace < 4096 THEN 'Add ' || TO_NUMBER (4096 – freespace) || ' MB' ELSE 'We have enough space' END action FROM (SELECT tablespace_name, ROUND (SUM (BYTES) / 1024 / 1024, 2) freespace FROM dba_free_space WHERE tablespace_name IN ('APPS_TS_TX_DATA', 'APPS_TS_TX_IDX', 'APPS_TS_SEED', 'APPS_TS_SUMMARY', 'APPS_TS_MEDIA', 'SYSTEM') GROUP BY tablespace_name);


Unlock stats

On database node as oracle:
Run the following query to find tables with locked stats:
SELECT COUNT (1) FROM dba_tab_statistics WHERE stattype_locked = ‘ALL’;

If the above query returns any rows, then run the following query to get the commands to unlock stats:
cd $KITTU_HOME/R121
sqlplus / as sysdba
SET LINESIZE 135
SET PAGESIZE 9999
SET VERIFY OFF
spool unlockStats.sql
select ‘exec dbms_stats.unlock_table_stats(”’||owner||”’,”’||table_name||”’);’ FROM dba_tab_statistics where stattype_locked=’ALL’;
– Remove the garbage
@unlockStats.sql
Unlock the stats using the commands generated by the above sql.


Gather stats on sys and system objects

On database node:
sqlplus / as sysdba
BEGIN
dbms_stats.gather_schema_stats(‘SYS’,options=>’GATHER’, degree=>48,estimate_percent => NULL, method_opt => ‘FOR ALL COLUMNS SIZE AUTO’, cascade => TRUE);
dbms_stats.gather_schema_stats(‘SYSTEM’,options=>’GATHER’, degree=>48,estimate_percent => NULL, method_opt => ‘FOR ALL COLUMNS SIZE AUTO’, cascade => TRUE);
END;
/


Gather Stats on all schemas

On application node:
Run Gather Schema Statistics concurrent request (for ALL schemas)


Confirm TEMP tablespace is LOCALLY managed

On database node as oracle:
select CONTENTS,EXTENT_MANAGEMENT,ALLOCATION_TYPE from dba_tablespaces where tablespace_name=’TEMP’;
Extent_management should be local. IT IS LOCAL IN PRODUCTION.


Ensure ORA_NLS10 is set on the DB tier

“On database node as oracle:
It is set to /${ORACLE_UNQNAME}/oracle/${ORACLE_UNQNAME}db/11.2.0.3/nls/data/9idata in production.”


Update utlrp.sql

“On all database nodes as oracle:
Update $ORACLE_HOME/rdbms/admin/utlrp.sql to “”@@utlprp.sql 48″” where N is the number of CPUs on the DB server. Set N to 48.


Execution of bde_chk_cbo.sql:

On database node as oracle:
You will find a copy of the sql in $KITTU_HOME/upgrade/R12 dir of any other R12 instance or we can download from Metalink.

Connect as APPS user and below is the syntax for the execution:
sqlplus apps/`tellme apps`
SQL> START bde_chk_cbo.sql;

The logfile is generated in the location from where we have connected to the sqlplus session.


Update the init.ora with the upgrade parameters:

‘On database node as oracle:
– Take a backup of the existing spfile and spfile under $KITTU_HOME.
slqplus / as sysdba
SQL> CREATE PFILE=’$KITTU_HOME/pfile/spfilemard4.ora_11i’ FROM SPFILE;

– Ensure we provide parallel_max_servers and job_queue_processes values as per the instance we are upgrading:

parallel_max_servers – 48
job_queue_processes – 24 for Dev / 32 for Stage/Prod instances

show parameter parallel_max_servers;
alter system set parallel_max_servers=32 scope=spfile; –> DEV
alter system set parallel_max_servers=48 scope=spfile; –> Stage/Prod

show parameter job_queue_processes;
alter system set job_queue_processes=24 scope=spfile; –>Dev
alter system set job_queue_processes=32 scope=spfile; –>Stage/Prod

Also ensure the SGA is set to 6G in the pfile. Consider the parameters below:

sga_target=6G –>Dev Instance
sga_target=12G –>Stage Instance

SET 6G FOR DEV INSTANCES and 12G for STAGE INSTANCES.


***********************************************************************************************
R12.1.1
***********************************************************************************************

Stop Application Tier

On all application nodes:
$COMMON_TOP/admin/scripts/$CONTEXT_NAME/adstpall.sh apps/password
ps -ef | grep app${ORACLE_UNQNAME}
If after 5 minutes there are applmgr processes, use the command below in order to kill it:
pkill -u app${ORACLE_UNQNAME}


Chenage DEFAUL Profile

On database node as oracle:
sqlplus / as sysdba
SQL> alter profile default LIMIT PASSWORD_VERIFY_FUNCTION NULL ;


Backup Some FND Tables

On database node as oracle:
cd $SID_HOME/R121
sqlplus / as sysdba
spool backupFNDTables.log
create table kittu.fnd_profile_options_PreR12 as select * from apps.fnd_profile_options;
create table kittu.fnd_profile_values_PreR12 as select * from apps.fnd_profile_option_values;
create table kittu.fnd_user_PreR12 as select * from apps.fnd_user;


Get the list of invalids

On database node as oracle:
sqlplus / as sysdba
SQL> create table kittu.invalids_preR12 as select * from dba_objects where status=’INVALID’;


Backup Database, Application and Customizations


***********************************************************************************************
Database Patches
***********************************************************************************************

On all database nodes as oracle:
– Shutdown database and listener
srvctl stop database -d ${ORACLE_UNQNAME} -o immediate
srvctl stop listener -l LSTN${ORACLE_UNQNAME}
opatch apply -oh $ORACLE_HOME -local $PATCH_TOP/12960302 -silent
opatch apply -oh $ORACLE_HOME -local $PATCH_TOP/4247037 -silent


***********************************************************************************************
Prepare for the Upgrade
***********************************************************************************************


Run AD preparation scripts

On database node:
cd /orasoft/oraApps/OEL5_64/cfs/11i/pre-upgrade/7197489
Run adgncons.sql:
sqlplus apps/password @adgncons.sql apps password

Run adcrtbsp.sql, which is generated by adgncons.sql. Modify adcrtbsp.sql to reflect your current tablespace information, if required:
sqlplus SYSTEM/`tellme system` @adcrtbsp.sql

Run the adgrants.sql script as SYSDBA:
Create $ORACLE_HOME/appsutil/admin on the database server, if not exists
Copy adgrants.sql from this patch directory to $ORACLE_HOME/appsutil/admin
Set the environment to point to ORACLE_HOME on the database server
sqlplus / as sysdba
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql APPLSYS


Disable AOL audit trail

$COMMON_TOP/admin/scripts/$CONTEXT_NAME/adstrtal.sh apps/password

From the System Administrator responsibility under the 11i APPL_TOP, navigate to Security > Audit Trail > Groups.
In the Audit Groups window, set the Group State field to Disable – Purge Table for each audit group defined.
Run the AuditTrail Update Tables concurrent request from the Submit Requests window (Requests > Run).

Audit Setup Group
Batch Information Group
Recipe Information Group
Reference Data Group

– Stop
$COMMON_TOP/admin/scripts/$CONTEXT_NAME/adstpall.sh apps/password


Update init.ora with upgrade parameters

On database node as oracle:
Set utl_file_dir to new APPLTMP directory (/u01/${ORACLE_UNQNAME}/tmp)
It should be the 1st entry in util_file_dir list.
Check DB Parameters worksheet for more details.


Disable custom triggers

On database node as oracle:
create table kittu.ge_custom_trigs as (select owner,TRIGGER_NAME,TABLE_OWNER,TABLE_NAME,STATUS from dba_triggers where trigger_name like ‘GE_%’ and status=’ENABLED’ union select owner,TRIGGER_NAME,TABLE_OWNER,TABLE_NAME,STATUS from dba_triggers where OWNER=’kittu’ and status=’ENABLED’) ;

Run the following script to disable custom triggers:
Set lines 140
Set pages 500
Set trimspool on
spool disable_custom_triggers.sql
select ‘alter trigger ‘||owner||’.’||trigger_name ||’ disable ;’ from gehr.ge_custom_trigs;
spool off
@disable_custom_triggers.sql


Disable DB Archivelog mode

‘On database node as oracle:
— shutdown immediate all database instances
srvctl stop database -d ${ORACLE_UNQNAME} -o immediate
— startup database in mount mode
srvctl start database -d ${ORACLE_UNQNAME} -o mount
— enable archvive logging
sqlplus / as sysdba
sql> alter database noarchivelog;
— stop database
srvctl stop database -d ${ORACLE_UNQNAME} -o immediate
— restart all database instances
srvctl start database -d ${ORACLE_UNQNAME}
— verify archiving is enabled by means of:
sqlplus / as sysdba
SQL> archive log list;


Check init parameters

On database node:
Check whether you see the new values for the parameters updated earlie by running the following query:
Select name,value from v$parameter where name in (‘job_queue_processes’,’parallel_max_servers’,’utl_file_dir’);

Run the following as APPS to see whether apps can write to the new APPLTMP directory.
exec FND_FILE.PUT(FND_FILE.LOG, ‘TESTING’);


Enable Maintenance Mode

On application node:
sqlplus -s apps/password@${ORACLE_UNQNAME} @$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE


Create upgrade1213.txt file

‘On application node:
adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/upgrade1213.txt


Make sure that oraInst is pointing to the global inventory or the correct inventory

On both application nodes, add the following in /etc/oraInst.loc and comment other entries: inventory_loc=/u01/kittu/applmgr/oraInventory
inst_group=appskittu


apply the patches

adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/upgrade1213.txt logfile=u7705743.log patchtop=$PATCH_TOP/7705743 driver=u7705743.drv workers=48 interactive=yes
adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/upgrade1213.txt logfile=u7429271.log patchtop=$PATCH_TOP/7429271 driver=u7429271.drv workers=48 interactive=yes
adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/upgrade1213.txt logfile=u9716146.log patchtop=$PATCH_TOP/9716146 driver=u9716146.drv workers=48 interactive=yes


Grant privileges and create PL/SQL profiler objects

On database node as oracle:
. ~/bin/kittu
cd $SID_HOME/R121
sqlplus ‘/ as sysdba’
SQL> spool adgrants.log
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql APPS


Generate the Report

On application node:
cd $AD_TOP/patch/115/sql
sqlplus apps/password @adtums.sql /u01/${ORACLE_UNQNAME}/tmp

A report file called tumsr12.html will be created in the directory.


Rename Existing Application Dirs

On application node:
cd /u01/kittu/applmgr
mv appl appl_11i
mv common common_11i
mv oraInventory oraInventory_11i
mv product product_11i


***********************************************************************************************
Rapid Install
***********************************************************************************************

Run Rapidinstall APP NODE 1

On kittuapps01 as root:
cd /stage/121/startCD/Disk1/rapidwiz
./rapidwiz

[root@kittuapps01 rapidwiz]#

Configuration file written to: /u01/kittu/applmgr/inst/apps/kittu_kittuapps01/conf_kittu.txt
Appltop logfile – /u01/kittu/applmgr/inst/apps/kittu_kittuapps01/logs/04231259.log

Ignore the following errors in autoconfig.log:

[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:

[SETUP PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /u01/kittu/applmgr/inst/apps/kittu_kittuapps01/admin/install
adgendbc.sh INSTE8_SETUP 1
afcpnode.sh INSTE8_SETUP 1
afgcsreg.sh INSTE8_SETUP 1
txkWfClone.sh INSTALL_SETUP 1

AutoConfig is exiting with status 4


Run Rapidinstall APP NODE 2

On kittuapps02 as root:
cd /stage/121/startCD/Disk1/rapidwiz
./rapidwiz -config /u01/kittu/applmgr/inst/apps/kittu_kittuapps01/conf_kittu.txt

Configuration file written to: /u01/kittu/applmgr/inst/apps/kittu_kittuapps02/conf_kittu.txt
Appltop logfile – /u01/kittu/applmgr/inst/apps/kittu_kittuapps02/logs/04241041.log

[CVM Error Report]
The following report lists errors encountered during CVM Phase

/u01/kittu/applmgr/appl/ad/12.0.0/bin/adgentns.pl 2

No of scripts failed in CVM phase: 1

[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:

[SETUP PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /u01/kittu/applmgr/inst/apps/kittu_kittuapps02/admin/install
adgendbc.sh INSTE8_SETUP 1
afcpnode.sh INSTE8_SETUP 1
afgcsreg.sh INSTE8_SETUP 1

[PROFILE PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /u01/kittu/applmgr/inst/apps/kittu_kittuapps02/admin/install
adadmprf.sh INSTE8_PRF 1
afadmprf.sh INSTE8_PRF 1
afcpctx.sh INSTE8_PRF 1
afcpgsm.sh INSTE8_PRF 1
igccmprf.sh INSTE8_PRF 1
jtfictx.sh INSTE8_PRF 1
okladmprf.sh INSTE8_PRF 1
txkJavaMailerCfg.sh INSTE8_PRF 1
txkWebServicescfg.sh INSTE8_PRF 1

Directory: /u01/kittu/applmgr/tech/10.1.3/perl/bin/perl -I /u01/kittu/applmgr/tech/10.1.3/perl/lib/5.8.3 -I /u01/kittu/applmgr/tech/10.1.3/perl/lib/site_perl/5.8.3 -I /u01/kittu/applmgr/appl/au/12.0.0/perl -I /u01/kittu/applmgr/tech/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi /u01/kittu/applmgr/inst/apps/kittu_kittuapps02/admin/scripts/adexecsql.pl sqlfile=/u01/kittu/applmgr/inst/apps/kittu_kittuapps02/admin/install
afwebprf.sql INSTE8_PRF 1
amscmprf.sql INSTE8_PRF 1
amswebprf.sql INSTE8_PRF 1
bisadmprf.sql INSTE8_PRF 1
bisdblrp.sql INSTE8_PRF 1
clnadmprf.sql INSTE8_PRF 1
cncmprf.sql INSTE8_PRF 1
cseadmprf.sql INSTE8_PRF 1
csfadmprf.sql INSTE8_PRF 1
csiadmprf.sql INSTE8_PRF 1
eamadmprf.sql INSTE8_PRF 1
fteadmprf.sql INSTE8_PRF 1
ibywebprf.sql INSTE8_PRF 1
icxwebprf.sql INSTE8_PRF 1
oksfrmprf.sql INSTE8_PRF 1
wshadmprf.sql INSTE8_PRF 1

[APPLY PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /u01/kittu/applmgr/tech/10.1.3/perl/bin/perl -I /u01/kittu/applmgr/tech/10.1.3/perl/lib/5.8.3 -I /u01/kittu/applmgr/tech/10.1.3/perl/lib/site_perl/5.8.3 -I /u01/kittu/applmgr/appl/au/12.0.0/perl -I /u01/kittu/applmgr/tech/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi /u01/kittu/applmgr/inst/apps/kittu_kittuapps02/admin/install
adadmat.pl INSTE8_APPLY 1

AutoConfig is exiting with status 29


Check Inventory

Run the following on both app nodes as applmgr user to make sure that inventory is updated correctly:
[applmgr@kittuapps01 ~]$ . /u01/kittu/applmgr/appl/kittu_kittuapps01.env
[applmgr@kittuapps02 ~]$ . /u01/kittu/applmgr/appl/kittu_kittuapps02.env

export ORACLE_HOME=$IAS_ORACLE_HOME
$ORACLE_HOME/OPatch/opatch lsinventory -detail


Update context files on both apps nodes

Export the followin variables:
export AD_APPS_JDBC_URL=”(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb02.krishnareddy.com)(PORT=1535))(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb01.krishnareddy.com)(PORT=1535)))(CONNECT_DATA=(SERVICE_NAME=kittu)))”
export APPS_JDBC_URL=”jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb01.krishnareddy.com)(PORT=1535))(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb02.krishnareddy.com)(PORT=1535)))(CONNECT_DATA=(SERVICE_NAME=kittu)))”

Create/Add the below TNS Entry below:
/u01/kittu/applmgr/inst/apps/kittu_kittuapps01/ora/10.1.2/network/admin/kittu_kittuapps01_ifile.ora
/u01/kittu/applmgr/inst/apps/kittu_kittuapps01/ora/10.1.3/network/admin/kittu_kittuapps01_ifile.ora

/u01/kittu/applmgr/inst/apps/kittu_kittuapps02/ora/10.1.2/network/admin/kittu_kittuapps02_ifile.ora
/u01/kittu/applmgr/inst/apps/kittu_kittuapps02/ora/10.1.3/network/admin/kittu_kittuapps02_ifile.ora

kittu,kittu_806_BALANCE,kittu_BALANCE=
(DESCRIPTION=
(LOAD_BALANCE=YES)(FAILOVER=YES)
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=1.2.3.44)(PORT=1525))
(ADDRESS=(PROTOCOL=tcp)(HOST=1.2.3.45)(PORT=1525))
(ADDRESS=(PROTOCOL=tcp)(HOST=1.2.3.46)(PORT=1525))
)
(CONNECT_DATA=(SERVICE_NAME=kittu))
(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))
)

Take a backup of existing $CONTEXT_FILE under $INST_TOP/appl/admin on both app nodes.
On both application nodes:
cd $INST_TOP/appl/admin
cp $CONTEXT_FILE $CONTEXT_FILE.original

Here are the changes made:
Add the following Under section:
7014 —7014 is used for kittu as port pool is 14.

Run the following script for update the CONTEXT_FILE:
/u01/kittu/bin/Clone-Refresh/updateCFforWF.sh
/u01/kittu/bin/Clone-Refresh/upgrade121.sh

======================above scripts=============================

kittudb01[kittu1]_oracle> cat updateCFforWF.sh
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_smtphost “smtphost”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_smtpdomainname “smtpdomain.com”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_javamailer_imaphost “mail”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_javamailer_imapdomainname “krishnareddy.com”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_javamailer_reply_to “user_wf@krishnareddy.com”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_javamailer_imap_user “user_wf”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_wf_admin_role “FNDWF_ADMIN”
kittudb01[kittu1]_oracle> cat upgrade121.sh
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_adjreopts “-ms128m -mx512m”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_fnd_jdbc_stmt_cache_size “200”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_apps_jdbc_connect_descriptor “jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb01.krishnareddy.com)(PORT=1536))(ADDRESS=(PROTOCOL=tcp)(HOST=kittudb02.krishnareddy.com)(PORT=1536)))(CONNECT_DATA=(SERVICE_NAME=kittu)))”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_atName “kittu”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_appldcp “ON”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_oacore_nprocs “4”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_ohs_serveradmin “http://helpdesk.kittu.com&#8221;
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_sysadmin_mail “k.kittureddy@gmail.com”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_sesstimeout “3600000”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_appltmp “/u01/kittu/tmp”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_applptmp “/u01/kittu/tmp”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_applcsf “/u01/kittu/applmgr/inst/apps/kittu/logs/appl/conc”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_fndreviverpiddir “/u01/kittu/applmgr/inst/apps/kittu/pids/appl”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_appllog “kittu_common/log”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_applout “kittu_common/out”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_dbuser “oracle”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_apps_jdbc_connect_alias “kittu_BALANCE”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_tools_twotask “kittu_806_BALANCE”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_tools_db_twotask “kittu_806_BALANCE”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_cp_twotask “kittu_806_BALANCE”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_weboh_twotask “kittu_BALANCE”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_weboh_db_twotask “kittu_806_BALANCE”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_applfstt “kittu2;kittu2_FO;kittu1;kittu1_FO;kittu_806_BALANCE;kittu_BALANCE;kittu_FO;kittu”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_jtffstart “/u01/kittu/applmgr/tech/10.1.3/appsutil/jdk/jre/bin/java -ms128m -mx512m -classpath .:/u01/kittu/applmgr/comn/java/lib/jdbc14.zip:/u01/kittu/applmgr/comn/java/lib/nls_charset12.zip:/u01/kittu/applmgr/tech/10.1.3/lib/xmlparserv2.jar:/u01/kittu/applmgr/comn/java/classes:/u01/kittu/applmgr/comn/java/classes/3rdparty/RFJavaInt.zip::/u01/kittu/applmgr/comn/java/lib/appsborg2.zip -Dengine.LogPath=/u01/kittu/applmgr/inst/apps/kittu_`hostname`/logs/appl/admin/log -Dengine.TempDir=/u01/kittu/applmgr/temp -Dengine.CommandPromptEnabled=false -Dengine.CommandPort=9314 -Dengine.AOLJ.config=/u01/kittu/applmgr/inst/apps/kittu_`hostname`/appl/fnd/12.0.0/secure/kittu.dbc -Dengine.ServerID=5000 -Ddebug=off -Dengine.LogLevel=1 -Dlog.ShowWarnings=false -Dengine.FaxEnabler=oracle.apps.jtf.fm.engine.rightfax.RfFaxEnablerImpl -Dengine.PrintEnabler=oracle.apps.jtf.fm.engine.rightfax.RfPrintEnablerImpl -Dfax.TempDir=/u01/kittu/applmgr/inst/apps/kittu_`hostname`/logs/appl/admin/log -Dprint.TempDir=/u01/kittu/applmgr/inst/apps/kittu_`hostname`/logs/appl/admin/log -Dengine.ServerInstanceID=5000 -DTurnOffLowPriorityMonitor=no -Dengine.MaxBatchThreads=12 oracle.apps.jtf.fm.FulfillmentServer >> /u01/kittu/applmgr/inst/apps/kittu_`hostname`/logs/appl/admin/log/jtffmctl.txt”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_adovar_classpath “/u01/kittu/R12_1/tech/10.1.3/appsutil/jdk/lib/dt.jar:/u01/kittu/R12_1/tech/10.1.3/appsutil/jdk/lib/tools.jar:/u01/kittu/R12_1/tech/10.1.3/appsutil/jdk/jre/lib/rt.jar:/u01/kittu/R12_1/comn/java/lib/appsborg.zip:/u01/kittu/R12_1/tech/10.1.2/forms/java:/u01/kittu/R12_1/tech/10.1.2/forms/java/frmall.jar:/u01/kittu/R12_1/tech/10.1.2/jlib/ewt3.jar:/u01/kittu/R12_1/tech/10.1.2/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar:/u01/kittu/R12_1/comn/java/classes:/u01/kittu/R12_1/appl/kittu/12.1.3/java:/u01/kittu/R12_1/appl/kittu/12.1.3/java/jarfiles:/u01/kittu/R12_1/appl/kittu/12.1.3/java/jarfiles/LibAPIClient.jar:/u01/kittu/R12_1/appl/kittu/12.1.3/java/jarfiles/log4j.jar:/u01/kittu/R12_1/tech/10.1.2/forms/java/UploadServer.jar:/u01/kittu/R12_1/tech/10.1.3/jlib/ewt-3_3_6.jar”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_adovar_afclasspath “/u01/kittu/R12_1/tech/10.1.3/appsutil/jdk/lib/dt.jar:/u01/kittu/R12_1/tech/10.1.3/appsutil/jdk/lib/tools.jar:/u01/kittu/R12_1/tech/10.1.3/appsutil/jdk/jre/lib/rt.jar:/u01/kittu/R12_1/comn/java/lib/appsborg2.zip:/u01/kittu/R12_1/comn/java/classes:/u01/kittu/R12_1/tech/10.1.2/forms/java/UploadServer.jar:/u01/kittu/R12_1/tech/10.1.3/jlib/ewt-3_3_6.jar”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_adovar_ldlib “/u01/kittu/R12_1/tech/10.1.2/jdk/jre/lib/i386:/u01/kittu/R12_1/tech/10.1.2/jdk/jre/lib/i386/server:/u01/kittu/R12_1/tech/10.1.2/jdk/jre/lib/i386/native_threads:/u01/kittu/R12_1/appl/cz/12.0.0/bin:${LD_LIBRARY_PATH:=}”
java oracle.apps.ad.context.UpdateContext $CONTEXT_FILE s_forms_path “/u01/kittu/R12_1/appl/au/12.0.0/resource:/u01/kittu/R12_1/appl/au/12.0.0/resource/stub:/u01/kittu/R12_1/appl/au/12.0.0/forms/US:/u01/kittu/R12_1/appl/kittu/12.1.3/forms/US”
===========================================================================================
Run autoconfig on both app. nodes:
perl $AD_TOP/bin/adconfig.pl contextfile=$CONTEXT_FILE -parallel

Ignore the following errors:
[CVM Error Report]
The following report lists errors encountered during CVM Phase

/u01/kittu/applmgr/appl/ad/12.0.0/bin/adgentns.pl 2

No of scripts failed in CVM phase: 1

[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:

[PROFILE PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /u01/kittu/applmgr/tech/10.1.3/perl/bin/perl -I /u01/kittu/applmgr/tech/10.1.3/perl/lib/5.8.3 -I /u01/kittu/applmgr/tech/10.1.3/perl/lib/site_perl/5.8.3 -I /u01/kittu/applmgr/appl/au/12.0.0/perl -I /u01/kittu/applmgr/tech/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/i686-linux-thread-multi /u01/kittu/applmgr/inst/apps/kittu_kittuapps01/admin/scripts/adexecsql.pl sqlfile=/u01/kittu/applmgr/inst/apps/kittu_kittuapps01/admin/install
afwebprf.sql INSTE8_PRF 1

AutoConfig is exiting with status 1


Check whether APPS user can write to $APPLTMP

Run the following as APPS user to check whether oracle can write to the new $APPLTMP:
sqlplus apps/password
exec FND_FILE.PUT(FND_FILE.LOG, ‘TESTING’);


Run fixes to avoid errors

Execute the folllowing statements to avoid known issues at the time of running US driver:
sqlplus / as sysdba
GRANT select on APPLSYS.WF_ERROR to APPS with grant option;
GRANT ALTER SYSTEM to apps;
drop trigger apps.PER_ASSIGNMENT_INFO_TYPES_WHO;
grant execute on OLAPSYS.CWM2_OLAP_METADATA_REFRESH to apps;
grant execute on OLAPSYS.CWM2_OLAP_CATALOG to apps;
grant execute on OLAPSYS.CWM2_OLAP_DIMENSION to apps;
grant execute on OLAPSYS.CWM2_OLAP_CUBE to apps;
ALTER USER OLAPSYS IDENTIFIED BY “newpassword” ACCOUNT UNLOCK;

sqlplus apps/password
begin
dbms_aw.execute(‘aw create odpcode’);
end;
Bounce the database

Change permission on $APPLPTMP to 775 to avoid errors at the time of running US driver


***********************************************************************************************
Upgrade Application from 11.5.10.2 to 12.1.1
***********************************************************************************************

AD 12.1.1

‘- Create $ORACLE_HOME/appsutil/admin on the database server, if not exists.
cp /stage/121/12.1.1/7461070/admin/adgrants.sql $ORACLE_HOME/appsutil/admin
– Set the environment to point to ORACLE_HOME on the database server.
– Use SQL*Plus to run the script:
sqlplus / as sysdba
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql APPLSYS

export PATCH_TOP=/stage/121/12.1.1
time adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/upgrade1213.txt \
logfile=u7461070.log \
patchtop=$PATCH_TOP/7461070 \
driver=u7461070.drv \
workers=48 localworkers=24 interactive=yes

On secondary node: adctrl distributed=y (workers from 25-48)

Run “Re-Create grants and Synonyms” from adadmin.
Usage:-
– Run adadmin -> Maintain Applications Database Entities menu ->Re-create grants and synonyms for APPS schema
Option 4 then 2


Apply patch fixes

Delete and recreate the AW’s.
1. Delete the existing, unusable, aw’s by executing the following commands in SQL Plus:
set serveroutput on
exec dbms_aw.execute(‘aw delete zpb.zpbcode’);
exec dbms_aw.execute(‘aw delete zpb.zpbdata’);
exec dbms_aw.execute(‘aw delete zpb.zpbannot’);
2. Run the SQL script, zpbmakeaws.sql, to create the aw’s.
This script is located in $APPL_TOP/zpb/11.5.0/patch/115/sql directory.
SQL> @/u01/mard/appmard/appl/zpb/11.5.0/patch/115/sql/zpbmakeaws.sql


Apply patches by merging the below

p10163753_R12.BIV.B_R12_GENERIC.zip
p10406817_R12.FEM.B_R12_GENERIC.zip
p8764069_R12.FND.B_R12_GENERIC.zip


***********************************************************************************************
US driver
***********************************************************************************************

cd $AU_TOP/patch/115/driver/
On primary node:
time adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/upgrade1213.txt options=nocopyportion,nogenerateportion workers=48 localworkers=24 logfile=u6678700.log patchtop=/u01/kittu/applmgr/appl/au/12.0.0/patch/115/driver/ driver=u6678700.drv

On secondary node: adctrl distributed=y (workers from 25-48)
Note : Compile invalid objects during patch run ( @?/rdbms/admin/utlrp.sql ) parallely.

Run stats in parallel (Start at A175):
begin
for schema_owner in (select distinct a.owner
from dba_tab_statistics a, apps.fnd_oracle_userid b
where a.owner = b.oracle_username
and a.stattype_locked is not null)
loop
begin
dbms_output.put_line(‘Unlocking Schema Stats For ‘||schema_owner.owner||’…’);
dbms_stats.unlock_schema_stats(schema_owner.owner);
end;
end loop;
end;

FND_STATS.GATHER_SCHEMA_STATISTICS(‘ALL’, 10, 48, ‘NOBACKUP’, NULL, ‘LASTRUN’, ‘GATHER AUTO’, 10, ‘N’);

Run Compile invalid objects (@?/rdbms/admin/utlrp.sql) (Start at A200)


Create $INST_TOP/portal/custom directory on both app. nodes and copy the status page to these 2 directories

Create custom/status under $INST_TOP/portal on both 61 and 62 and copy the status file from $COMMON_TOP/portal/$CONTEXT_NAME/custom from one of the 11i instances.

Can be done when US/NLS patches are running


apply patches

Apply 8919489 (Techstack R12.TXK.B.delta.3)
Apply Patch 9794897:ISSUES IN PATCH HISTORY EXPORT AND IMPORT IN STAGED APPLTOP
Apply patch 10296903 (1OFF:12.1.1:EXPORT OF PATCH HISTORY TAKES 4+ DAYS)
Apply 9171651:R12.OAM.B (12.1 RAPIDCLONE CONSOLIDATED FIXES JUL/2010)
Apply 9833058:R12.OAM.B(HOT CLONE FAILS WITH ORA-00201 DURING RECOVERY MANAGER)
Apply patch 12404574: ORACLE_HOME REGISTRATION DOES NOT HAPPEN WITH CENTRAL INVENTORY ON LOZ
Apply patch 12598630: R12.1 ONE-OFF FOR S_DB_LISTENER BUG 12362010
Generate Messages
Generate jars
compile menus
Generate forms
Compile the jsp’s
Recreate grants and Synonyms
Compile invalid db objects/compile APPS schema using addamin
Generate Reports
Disable Maintenance Mode


Update FILE_FORMAT in FND_LOBS

create table kittu.fnd_lobs_bkp as select file_id,file_name,file_content_type,program_name,file_format,language from apps.fnd_lobs;
update apps.fnd_lobs set FILE_FORMAT = ‘IGNORE’ where NVL(PROGRAM_NAME,’NULL’) != ‘FND_HELP’ ;

1640 rows updated.

update apps.fnd_lobs set file_format=’IGNORE’ where FILE_CONTENT_TYPE=’image/gif’ and program_name=’FND_HELP’;
4097 rows updated.
commit;
This is to avoid issues with “Rebuild Help Search Index” concurrent request.


Configure and Start server processes

Run Rapidwiz on the application nodes and configure the env using current xml files.

kittuapps01:
cd /stage/121/startCD/Disk1/rapidwiz
./rapidwiz
Select Upgrade to Oracle Applications Release 12.1.1
Select Configure Upgraded Release 12.1.1 Instance
Select the context file on the App. node 1 under $INST_TOP/appl/admin/$CONTEXT_NAME

kittuapps02:
cd /stage/121/startCD/Disk1/rapidwiz
./rapidwiz
Select Upgrade to Oracle Applications Release 12.1.1
Select Configure Upgraded Release 12.1.1 Instance
Select the context file on the App. node 2 under $INST_TOP/appl/admin/$CONTEXT_NAME


create appsutil.zip. copy it to DB node and run autoconfig

On database nodes:
1. Update the RDBMS ORACLE_HOME file system with the AutoConfig files by performing the following steps:
1.1. On the Application Tier (as the APPLMGR user):
1.1.1. Source the environment file.
1.1.2. Create the appsutil.zip file by executing:
$ADPERLPRG $AD_TOP/bin/admkappsutil.pl
This will create appsutil.zip under $INST_TOP/admin/out
1.2. On the Database Tier (as the ORACLE user):
1.2.1. Copy the appsutil.zip file to the
1.2.2. cd
1.2.3. unzip -o appsutil.zip


Update TNS_ADMIN

/*Create a directory under
$ORACLE_HOME/network/admin, where CONTEXT_NAME is
_. Copy listener.ora and tnsnames.ora from the
$ORACLE_HOME/network/admin directory to the
$ORACLE_HOME/network/admin/ directory.

Set and export the following environment variables:
• ORACLE_HOME=
• LD_LIBRARY_PATH = $ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
• ORACLE_SID =
• PATH = $PATH:$ORACLE_HOME/bin
• TNS_ADMIN = $ORACLE_HOME/network/admin/*/


Generate a new Database context file and run autoconfig on DB tier

On the database nodes:
cd $ORACLE_HOME/appsutil/bin
unset APPL_TOP
perl adbldxml.pl appspass=password
Enter the value for Display Variable: :1.0
Update s_global_database_name, s_dbhost, s_cmanhost to make sure that it is in lower case.
Update s_db_util_filedir – Remove all except APPLTMP and /usr/tmp directories
Update s_db_listener to “LSTN”

Run autoconfig:
$ORACLE_HOME/appsutil/bin/adconfig.sh contextfile=$CONTEXT_FILE appspass=password


Run adpreclone on all nodes

Re-run adpreclone.pl on the database tier and the application tier.

On DB node:
cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
perl adpreclone.pl dbTier

On one of the app node:
cd $ADMIN_SCRIPTS_HOME
perl adpreclone.pl appsTier

EBS R12.1.3 to R12.2 upgrade on linux


–Upgrade Database to 11.2.0.3
— check my upgrade document posted in the blog

Apply the following patches to Database Homes

6880880 (OPatch)
8547978
11071989
12955701
13819954 (Bundle Patch)
13388104
13602312
13808632
13040331
14005749
14013094
14153501
14237793
14296972
14574453
14598522
14649883
14751895
14832335


Run post-install steps for Database Patches

13602312


Execute the following Script
perl $OH/nls/data/old/cr9idata.pl
set the _pga_max_size initialization parameter to a larger value as follows:

_pga_max_size=104857600


Update the parameter file

alter system set service_names=’kittu,EBS_PATCH’ scope=spfile sid=’*’;
alter system set compatible=’11.2.0.3′ scope=spfile sid=’*’;


Restart your database. And applications
Run gather schema stats for default estimate percent of 10.
Download the latest JRE 6.0 Update and upgrade JRE in ORACLE_HOME
Make the changes to inventory
#inventory_loc=/u01/mard2/appmard2/oraInventory
inventory_loc=/u01/kittu/R12_2/oraInventory

mkdir /u01/kittu/R12_2/oraInventory
chmod 777 -R u01/kittu/R12_2/oraInventory


Check All the DVD are downloaded

$ ls -lrt
-rw-r–r– 1 applmgr oinstall 733536645 Dec 13 17:14 AS10.1.2_DVD1.zip
-rw-r–r– 1 applmgr oinstall 836818629 Dec 13 17:19 AppDB_PROD_DVD1_1of3.zip
-rw-r–r– 1 applmgr oinstall 1503950229 Dec 13 17:26 AppDB_PROD_DVD1_2of3.zip
-rw-r–r– 1 applmgr oinstall 1455165683 Dec 13 17:34 AppDB_PROD_DVD1_3of3.zip
-rw-r–r– 1 applmgr oinstall 1427367320 Dec 13 17:41 AppDB_PROD_DVD2_1of2.zip
-rw-r–r– 1 applmgr oinstall 1050901252 Dec 13 17:46 AppDB_PROD_DVD1_2of2.zip
-rw-r–r– 1 applmgr oinstall 1480071005 Dec 13 19:55 Apps_DVD1_1of3.zip
-rw-r–r– 1 applmgr oinstall 1439721506 Dec 13 20:03 Apps_DVD1_2of3.zip
-rw-r–r– 1 applmgr oinstall 1307303068 Dec 13 20:10 Apps_DVD1_3of3.zip
-rw-r–r– 1 applmgr oinstall 1308826232 Dec 13 20:17 Apps_DVD2_2of2.zip
-rw-r–r– 1 applmgr oinstall 1308826232 Dec 13 20:17 Apps_DVD2_1of2.zip
-rw-r–r– 1 applmgr oinstall 547555181 Dec 13 21:40 TechPatches.zip
-rw-r–r– 1 applmgr oinstall 1602028844 Dec 17 18:27 V29676-01.zip
-rw-r–r– 1 applmgr oinstall 868305864 Dec 17 18:35 V29851-01.zip
-rw-r–r– 1 applmgr oinstall 745115243 Feb 10 21:59 p9942140_R12_GENERIC.zip


Unzip the patches

[applmgr@kasarlaapps R1232bit]$ unzip p9942140_R12_GENERIC.zip
Archive: p9942140_R12_GENERIC.zip
creating: startCD/
extracting: startCD/component.label
……
inflating: startCD/welcome.html


Creating Stage Area

$ cd /soft/oraApps/OEL5_64/BETAPACK3/R1232bit/startCD/Disk1/bin
$ sh buildStage.sh
Please enter the directory containing the zipped installation media:
/soft/oraApps/OEL5_32/Beta3
Unzipping AppDB_PROD_DVD1_1of3.zip
Unzipping AppDB_PROD_DVD1_2of2.zip
Unzipping AppDB_PROD_DVD1_2of3.zip
Unzipping AppDB_PROD_DVD1_3of3.zip
Unzipping AppDB_PROD_DVD2_1of2.zip
Unzipping Apps_DVD1_1of3.zip
Unzipping Apps_DVD1_2of3.zip
Unzipping Apps_DVD1_3of3.zip
Unzipping Apps_DVD2_1of2.zip
Unzipping Apps_DVD2_2of2.zip
Unzipping AS10.1.2_DVD1.zip
Unzipping p9942140_R12_GENERIC.zip
Unzipping TechPatches.zip
Unzipping V29676-01.zip
Unzipping V29851-01.zip
Applying one-off patches
All files have been unzipped.
However, the stage area does not appear to be complete.
Please ensure all zipped EBS installation media is present.


——————Installing Binaries for R12.2 Beta 3——————–


Source the env

cd /u01/kittu/R12_2/fs1/EBSapps/appl
. APPSkittu_kasarlaapps.env


Enable Maintenance mode
Create a directoy
kasarladb01[kittu1]_oracle> mkdir -p $ORACLE_HOME/appsutil/admin
copy adgrants.sql and execute
from apps node $APPL_TOP/admin/ adgrants.sql to DB $ORACLE_HOME/appsutil/admin

kasarladb01[kittu1]_oracle> cd $ORACLE_HOME/appsutil/admin
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql -APPS schema name-


SQL> alter profile default LIMIT PASSWORD_VERIFY_FUNCTION null;

Profile altered.

SQL>


Apply patch
Apply 10117518

Run post install steps –
adadmin -> Compile/Reload Applications Database Entities menu -> Compile APPS schema
Consolidated Upgrade Patch 15971549
Cd /soft/oraApps/OEL5_32/Beta3/15971549
adpatch preinstall=y


Merge the patches
cd $AU_TOP/patch/115/driver

admrgpch -d . -preinstall -master u10124646.drv
The above will generate a new merged driver as u_merged.drv using this driver run
adpatch options=nocopyportion,nogenerateportion


Disable Maintenance Mode
On the application tier
Create appsutilzip file
[applmgr@ kasarlaapps scripts]$ cd $AD_TOP/bin
[applmgr@ kasarlaapps bin]$ perl admkappsutil.pl

Copy the appsutil.zip file to Database ORACLE_HOMES
Unzip the appsutil.zip file in RDBMS Oracle Homes (Both Nodes)


kasarladb01[kittu1]_oracle> cd $ORACLE_HOME
kasarladb01[kittu1]_oracle> mv appsutil appsutil.original
kasarladb01[kittu1]_oracle> cd /tmp
kasarladb01[kittu1]_oracle> cp appsutil.zip /kittu/oracle/kittudb/11.2.0.3
kasarladb01[kittu1]_oracle> cd /kittu/oracle/kittudb/11.2.0.3
kasarladb01[kittu1]_oracle> unzip -o appsutil.zip

Archive: appsutil.zip
creating: appsutil/
creating: appsutil/template/
inflating: appsutil/template/addbtmpl.drv
inflating: appsutil/template/addbactmpl.drv
inflating: appsutil/template/addbcltmpl.drv
inflating: appsutil/template/txkEBSWrapper.pl
inflating: appsutil/template/ad8idbnt.env


Create xml file in database node1 and run autoconfig (Both Nodes)

kasarladb01[kittu1]_oracle> cd $ORACLE_HOME/appsutil/bin
[oracle@kasarladb01 ~]> perl adbldxml.pl

Starting context file generation for db tier..
Using JVM from /kittu/oracle/kittudb/11.2.0.3/appsutil/jre/bin/java to execute java programs..
APPS Password:

The log file for this adbldxml session is located at:
/kittu/oracle/kittudb/11.2.0.3/appsutil/log/adbldxml_02131131.log

Enter Database Service Name: kittu
Do you want to enable SCAN addresses[N]:

Enter the value for Display Variable: 2

Context File /kittu/oracle/kittudb/11.2.0.3/appsutil/kittu1_kasarladb01.xml
already exists.

Overwriting Context File may cause loss of existing settings, hence
backing it up as: /kittu/oracle/kittudb/11.2.0.3/appsutil/kittu1_kasarladb01.xml.bak

The context file has been created at:
/kittu/oracle/kittudb/11.2.0.3/appsutil/kittu1_kasarladb01.xml


Run autoconfig on both DB nodes
kasarladb01[kittu1]_oracle> perl adconfig.sh contextfile=/kittu/oracle/kittudb/11.2.0.3/appsutil/kittu1_kasarladb01.xml

Enter the APPS user password:
The log file for this session is located at: /kittu/oracle/kittudb/11.2.0.3/appsutil/log/kittu1_kasarladb01/02131132/adconfig.log

AutoConfig is configuring the Database environment…

AutoConfig will consider the custom templates if present.
Using ORACLE_HOME location : /kittu/oracle/kittudb/11.2.0.3
Classpath : :/kittu/oracle/kittudb/11.2.0.3/jdbc/lib/ojdbc6.jar:/kittu/oracle/kittudb/11.2.0.3/appsutil/java/xmlparserv2.jar:/kittu/oracle/kittudb/11.2.0.3/appsutil/java:/kittu/oracle/kittudb/11.2.0.3/jlib/netcfg.jar:/kittu/oracle/kittudb/11.2.0.3/jlib/ldapjclnt11.jar

Using Context file : /kittu/oracle/kittudb/11.2.0.3/appsutil/kittu1_kasarladb01.xml

Context Value Management will now update the Context file

Updating Context file…COMPLETED

Attempting upload of Context file and templates to database…COMPLETED

Updating rdbms version in Context file to db112
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME …

AutoConfig completed successfully.

[oracle@kasarladb02 ~]>


In APPS Tier
SQL> select object_name, object_type, owner, status from dba_objects where
upper(object_name)=’ADX_PRE_AUTOCONFIG’ and object_type=’TABLE’
and upper(owner)=’APPS’; 2 3

OBJECT_NAME OBJECT_TYPE OWNER STATUS
—————————— ——————- ———- ——-
ADX_PRE_AUTOCONFIG TABLE APPS VALID

1 row selected.


cd $AD_TOP/patch/115/sql
SQL> @txkDropAdxPreAutoConfig.sql

Table ADX_PRE_AUTOCONFIG dropped
Synonym ADX_PRE_AUTOCONFIG does not exist

PL/SQL procedure successfully completed.

Commit complete.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


SQL> select object_name, object_type, owner, status from dba_objects where
upper(object_name)=’ADX_PRE_AUTOCONFIG’ and object_type=’TABLE’
and upper(owner)=’APPS’;

no rows selected

[applmgr@kasarlaapps sql]$


Update the Application context file

/usr/tmp

to

/u01/kittu/tmp


Run autoconfig on
[applmgr@kasarlaapps admin]$ $ADMIN_SCRIPTS_HOME/adautocfg.sh
Enter the APPS user password:

The log file for this session is located at: /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarlaapps/admin/log/02131144/adconfig.log

AutoConfig is configuring the Applications environment…

AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarlaapps
Classpath : /u01/kittu/R12_2/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/kittu/R12_2/fs1/EBSapps/comn/java/classes

Using Context file : /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarlaapps/appl/admin/kittu_kasarlaapps.xml

Context Value Management will now update the Context file

Updating Context file…COMPLETED

Attempting upload of Context file and templates to database…COMPLETED

Configuring templates from all of the product tops…
Configuring AD_TOP……..COMPLETED
Configuring FND_TOP…….COMPLETED
Configuring ICX_TOP…….COMPLETED
Configuring MSC_TOP…….COMPLETED
Configuring IEO_TOP…….COMPLETED
Configuring BIS_TOP…….COMPLETED
Configuring CZ_TOP……..COMPLETED
Configuring AMS_TOP…….COMPLETED
Configuring CCT_TOP…….COMPLETED
Configuring WSH_TOP…….COMPLETED
Configuring CLN_TOP…….COMPLETED
Configuring OKE_TOP…….COMPLETED
Configuring OKL_TOP…….COMPLETED
Configuring OKS_TOP…….COMPLETED
Configuring CSF_TOP…….COMPLETED
Configuring IBY_TOP…….COMPLETED
Configuring JTF_TOP…….COMPLETED
Configuring MWA_TOP…….COMPLETED
Configuring CN_TOP……..COMPLETED
Configuring CSI_TOP…….COMPLETED
Configuring WIP_TOP…….COMPLETED
Configuring CSE_TOP…….COMPLETED
Configuring EAM_TOP…….COMPLETED
Configuring FTE_TOP…….COMPLETED
Configuring ONT_TOP…….COMPLETED
Configuring AR_TOP……..COMPLETED
Configuring AHL_TOP…….COMPLETED
Configuring IES_TOP…….COMPLETED
Configuring OZF_TOP…….COMPLETED
Configuring CSD_TOP…….COMPLETED
Configuring IGC_TOP…….COMPLETED

AutoConfig completed successfully.
[applmgr@kasarlaapps admin]$

https://picasaweb.google.com/s/c/bin/slideshow.swf


[applmgr@kasarlaapps scripts]$ mkdir $LOG_HOME/appl/op
[applmgr@kasarlaapps scripts]$ cd $LOG_HOME/appl/op
[applmgr@kasarlaapps op]$ sqlplus system @$AD_TOP/sql/ADZDPSUM.sql

SQL*Plus: Release 10.1.0.5.0 – Production on Wed Feb 13 22:20:09 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
PL/SQL procedure successfully completed.
Table created.
………
………
PL/SQL procedure successfully completed.
Commit complete.
Commit complete.


[applmgr@kasarlaapps op]$ mv adzdpsum.txt adzdpsum_pre_dbprep.txt

Reviewing the report adzdpsum_pre_dbprep.txt

DOC> Oracle recommends you perform the chosen fix by customizing template file
DOC> $AD_TOP/sql/ADZDPCUST.sql
DOC>
DOC>#

Schema Object Type Number of Objects
——————– ——————– —————–
501729051 SYNONYM 17526

CCLRDC SYNONYM 768

IDMCCL SYNONYM 17539

3 rows selected.

Action taken Execute the following scripts with the APPS account in order to register
the custom schemas identified in the previous section:

exec fnd_oracle_user_pkg.load_row(‘IDMCCL’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
exec fnd_oracle_user_pkg.load_row(‘CCLRDC’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);
exec fnd_oracle_user_pkg.load_row(‘501729051’, ‘CUSTOM’, ‘INVALID’, NULL,’N’,’B’);


[applmgr@kasarlaapps op]$ sqlplus apps/passwprd
SQL> exec fnd_oracle_user_pkg.load_row(‘IDMCCL’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);

PL/SQL procedure successfully completed.


SQL> exec fnd_oracle_user_pkg.load_row(‘CCLRDC’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);

PL/SQL procedure successfully completed.


SQL> exec fnd_oracle_user_pkg.load_row(‘501729051’, ‘CUSTOM’, ‘INVALID’, NULL, ‘N’, ‘B’);

PL/SQL procedure successfully completed.


SQL> commit;

Commit complete.


[applmgr@kasarlaapps op]$ sqlplus system @$AD_TOP/sql/ADZDPMAN.sql

SQL*Plus: Release 10.1.0.5.0 – Production on Wed Feb 13 22:36:13 2013

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

Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

PL/SQL procedure successfully completed.

Table created.

……………
…………..
PL/SQL procedure successfully completed.

Commit complete.

Commit complete.


[applmgr@kasarlaapps op]$ mv adzdpman.txt adzdpman_pre_dbprep.txt

Reviewing the report.
[applmgr@kasarlaapps op]$ vi adzdpman_pre_dbprep.txt

No action taken.


[applmgr@kasarlaapps op]$ sqlplus system @$AD_TOP/sql/ADZDPAUT.sql

SQL*Plus: Release 10.1.0.5.0 – Production on Wed Feb 13 22:43:35 2013

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

Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

PL/SQL procedure successfully completed.

Table created.

………….
…………

PL/SQL procedure successfully completed.

Commit complete.

Commit complete.


The above report is provided for information purposes and no action should be taken
from this report.

Ensure 25gb free space in system and 5gb free space in apps_ts_seed


[applmgr@kasarlaapps op]$ perl $AD_TOP/bin/adzdreport.pl apps
Enter the APPS Password:

Online Patching Diagnostic Reports Main Menu
——————————————–

1. Run edition reports
2. Patch edition reports
3. Other generic reports
4. Exit

Enter your choice [4]: 3

Other Generic Reports Sub Menu
——————————

1. Editions summary
2. Editioned objects summary
3. Free space in important tablespaces
4. Status of critical AD_ZD objects
5. Actual objects in current edition
6. Objects dependencies
7. Objects dependency tree
8. Editioning views column mappings
9. Index details for a table
10. Inherited objects in the current edition
11. All log messages
12. Materialized view details
13. Database sessions by edition
14. Table details (Synonyms, EV, etc.)
15. Count and status of DDL execution by phase
16. Back to main menu

Enter your choice [16]: 3

===============================================================================
=========================================================================
= Important Tablespace Status
=========================================================================

TABLESPACE_NAME TOTAL_SPACE(GB) USED_SPACE(GB) FREE_SPACE(GB) PCT_USED
—————————— ————— ————– ————– ——–
APPS_TS_SEED 11.95 4.61 7.34 38.60
APPS_TS_TX_DATA ###### ###### 30.52 77.22
APPS_TS_TX_IDX 52.00 39.34 12.66 75.66
SYSTEM 40.70 11.92 28.78 29.28

Above report is captured in file : /u01/kittu/R12_2/fs1/EBSapps/appl/admin/kittu/out/adzdshowts.out.
===============================================================================

Please review the above messages and press <return to go back to menu:


Run the Online Patching Enablement – Status Report

[applmgr@kasarlaapps op]$ cd $LOG_HOME/appl/op
[applmgr@kasarlaapps op]$ sqlplus apps @$AD_TOP/sql/ADZDEXRPT.sql

SQL*Plus: Release 10.1.0.5.0 – Production on Wed Feb 13 22:56:01 2013

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

Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

DOC>
DOC> Online Patch Enablement – Execution Status Report of SQL jobs
DOC>
DOC> Report Script: $AD_TOP/sql/ADZDEXRPT.sql
DOC> Result Spooled Into: adzdexrpt.txt
DOC>
DOC> Currently running Workers (database sessions) for SQL jobs execution.
DOC>
DOC>#

no rows selected

DOC>
DOC> *************************************************************
DOC> SECTION 1

…………..
………….
DOC>
DOC>#

Phase ROW_COUNT START_TIME END_TIME ELAPSED_TIME_MIN
——————– ————- —————————– —————————– —————-
UPGRADE_SEED 2552
COLLECT_STATS 2552

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


[applmgr@kasarlaapps op]$ mv adzdexrpt.txt adzdexrpt_pre_dbprep.txt

Take special note to ensure that all online patching
objects (objects that match the pattern ‘AD_ZD%’) are valid:

SQL> select owner,object_name,status from dba_objects where object_name like ‘%AD_ZD%’ and status =’INVALID’;

no rows selected

SQL> select owner,object_name,status from dba_objects where object_name like ‘AD_ZD%’ and status =’INVALID’;

no rows selected


all are valid objects

SQL> select owner,object_name,status from dba_objects where object_name like ‘%AD_ZD%’ and status =’VALID’;

OWNER OBJECT_NAME STATUS
———- —————————— ——-
SYS AD_ZD_SYS VALID
SYS AD_ZD_SYS VALID
APPLSYS AD_ZD_CLOB VALID
APPLSYS AD_ZD_LOGS_S VALID
APPLSYS AD_ZD_DDL_HANDLER_U1 VALID
APPLSYS AD_ZD_DDL_HANDLER_N1 VALID
APPLSYS AD_ZD_DDL_HANDLER VALID
APPLSYS AD_ZD_LOGS_U1 VALID
APPLSYS AD_ZD_LOGS VALID
APPLSYS AD_ZD_DDL_HANDLER_DDL_S VALID
APPS PER_AD_ZD_SEED_WRAPPER VALID
APPS PER_AD_ZD_SEED_WRAPPER VALID
APPS AD_ZD_PREP VALID
APPS AD_ZD_PREP VALID
APPS AD_ZD_CLOB VALID
APPS AD_ZD_MVIEW VALID
APPS AD_ZD VALID
APPS AD_ZD_TABLE VALID
APPS AD_ZD_PARALLEL_EXEC VALID
APPS AD_ZD_LOG VALID
APPS AD_ZD_SEED VALID
APPS AD_ZD_ADOP VALID
APPS AD_ZD_LOG VALID
APPS AD_ZD_SEED VALID
APPS AD_ZD_PARALLEL_EXEC VALID
APPS AD_ZD VALID
APPS AD_ZD_TABLE VALID
APPS AD_ZD_MVIEW VALID
APPS AD_ZD_ADOP VALID
APPS AD_ZD_LOGS_S VALID
APPS AD_ZD_DDL_HANDLER VALID
APPS AD_ZD_LOGS VALID
APPS AD_ZD_DDL_HANDLER_DDL_S VALID

33 rows selected.


Stop the services
Enable Maintaenance mode

Apply patch 13543062

Cd /soft/oraApps/OEL5_32/Beta3/13543062
Adpatch


Disabling Maintaenance Mode
[applmgr@kasarlaapps appl]$ sqlplus apps/xxxx @/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/adsetmmd.sql DISABLE


SQL> exec sys.utl_recomp.recomp_parallel;

PL/SQL procedure successfully completed.


[applmgr@kasarlaapps appl]$ cd $LOG_HOME/appl/op
[applmgr@kasarlaapps op]$ sqlplus apps @$AD_TOP/sql/ADZDEXRPT.sql

SQL*Plus: Release 10.1.0.5.0 – Production on Thu Feb 14 03:12:07 2013

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

Enter password:

Connected to:
………
………
UPGRADE_SEED 2552 2013-FEB-14 00:35:16 2013-FEB-14 00:49:06 13
COLLECT_STATS 2552 2013-FEB-14 00:49:15 2013-FEB-14 00:50:31 1
UPGRADE_MVIEW 120 2013-FEB-14 00:50:50 2013-FEB-14 01:13:56 23

14 rows selected.


[applmgr@kasarlaapps op]$ mv adzdexrpt.txt adzdexrpt_post_dbprep.txt
[applmgr@kasarlaapps op]$ sqlplus system @$AD_TOP/sql/ADZDPSUM.sql

SQL*Plus: Release 10.1.0.5.0 – Production on Thu Feb 14 03:13:17 2013

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

Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

PL/SQL procedure successfully completed.

Table created.


[applmgr@kasarlaapps op]$ mv adzdpsum.txt adzdpsum_post_dbprep.txt

[applmgr@kasarlaapps op]$ sqlplus system @$AD_TOP/sql/ADZDPMAN.sql

SQL*Plus: Release 10.1.0.5.0 – Production on Thu Feb 14 03:17:51 2013

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

Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

PL/SQL procedure successfully completed.

Table created.

……….
……….
no rows selected

DOC> ********************************* End ******************************
DOC>#

PL/SQL procedure successfully completed.

Commit complete.

Commit complete.

[applmgr@kasarlaapps op]$ mv adzdpman.txt adzdpman_post_dbprep.txt

PL/SQL procedure successfully completed.

Commit complete.

Commit complete.


[applmgr@kasarlaapps op]$ mv adzdpaut.txt adzdpaut_post_dbprep.txt

[applmgr@kasarlaapps op]$ sqlplus apps @$AD_TOP/sql/ADZDDBCC.sql

SQL*Plus: Release 10.1.0.5.0 – Production on Thu Feb 14 03:27:47 2013

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

Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

DOC> **********************************************************************
DOC> EBS Online Patching Database Compliance Checker (12.2.0 rev 22)
DOC> **********************************************************************
DOC>#

INSTANCE_NAME VERSION SYSDATE
—————- —————– ——————
kittu1 11.2.0.3.0 14-FEB-13

2 rows selected.

Elapsed: 00:00:01.21
DOC> ********************************* End ******************************
DOC>#


Start the services and do the health check by login to frontend url

———————————————————-


Issues 1
sqlplus -s APPS/***** @/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/adzd_drop_synonyms.sql ‘
Connected.

PL/SQL procedure successfully completed.

declare
*
ERROR at line 1:
ORA-00995: missing or invalid synonym identifier
ORA-06512: at line 33

Solution
opened that drop_synonyms and changed
select ‘drop ‘||decode(syn.owner, ‘PUBLIC’, ‘PUBLIC’, ”)||’ SYNONYM ‘||
decode(syn.owner, ‘PUBLIC’, ”, syn.owner||’.’)||'”‘||syn.synonym_name||'” ‘||
‘/* ‘||syn.table_owner||’.’||syn.table_name||’ */ ‘ as drop_stmt
To
select ‘drop ‘||decode(syn.owner, ‘PUBLIC’, ‘PUBLIC’, ”)||’ SYNONYM ‘||
decode(syn.owner, ‘PUBLIC’, ”,'”‘||syn.owner||'”‘||’.’)||'”‘||syn.synonym_name||'” ‘||
‘/* ‘||syn.table_owner||’.’||syn.table_name||’ */ ‘ as drop_stmt
and restarted the worked..
this i changed
“‘||syn.owner||'”‘||’.’)||'”‘||syn.synonym_name||'” ‘||

———————————————————-


Issue 2
FAILED: file ADZDPREP.sql on worker 1.

ERROR at line 1:
ORA-44305: service ebs_patch is running
ORA-06512: at “SYS.DBMS_SYS_ERROR”, line 86
ORA-06512: at “SYS.DBMS_SERVICE”, line 454
ORA-06512: at “SYS.DBMS_SERVICE”, line 375
ORA-06512: at “APPS.AD_ZD_PREP”, line 307
ORA-06512: at line 3

Solution
On both DB nodes execute it
SQL> exec DBMS_SERVICE.STOP_SERVICE(‘EBS_PATCH’);

PL/SQL procedure successfully completed.
SQL> exec DBMS_SERVICE.DELETE_SERVICE(‘EBS_PATCH’);

PL/SQL procedure successfully completed.

SQL> commit;

———————————————————-


Issue 3
@/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/ADZDWRKR.sql &un_apps &systempwd UPGRADE_TABLE 1 1 1’
Connected.

PL/SQL procedure successfully completed.

Connected.

Session altered.

declare
*
ERROR at line 1:
ORA-20001: [UPGRADE_TABLE 1:1 ddl_id=19095] Fatal Error, exiting. ORA-00600:
internal error code, arguments: [ktsircinfo_num1], [0], [0], [0], [], [], [],
[], [], [], [], [] SQL: begin ad_zd_table.upgrade(‘HR’, ‘PER_ADDRESSES’); end;
ORA-06512: at “APPS.AD_ZD_PARALLEL_EXEC”, line 515
ORA-06512: at line 34

Solution
Skipped the worker

———————————————————-


Issue 4
Executing command: /soft/oraApps/OEL5_32/Beta3/startCD/Disk1/rapidwiz/jre/Linux/1.6.0/bin/java -cp /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarlaapps/temp/ASInstallHome/fnd/../j11067592_fnd.zip:/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarlaapps/temp/ASInstallHome/fnd/java/3rdparty/stdalone/xmlparserv2.zip -Doracle.apps.fnd.txk.env_home=/u01/kittu/R12_2/fs2/EBSapps/appl/admin/kittu_kasarlaapps/ -Doracle.apps.fnd.txk.runtime.config=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarlaapps/temp/xmldocs/instWeb.xml oracle.apps.fnd.txk.config.InstallService

Fatal Error: TXK Install Service

oracle.apps.fnd.txk.config.ProcessStateException: OUI process failed : Exit=255 See log for details. CMD= /soft/oraApps/OEL5_32/Beta3/TechInstallMedia/ohs11116/Disk1/runInstaller -waitForCompletion -ignoreSysPrereqs -force -silent -responseFile /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarlaapps/temp/cfgHome/response/APPS_OHS_HOME/txkOHS_11116.rsp

at oracle.apps.fnd.txk.config.OUIPatchActionNode.processState(OUIPatchActionNode.java:159)

at oracle.apps.fnd.txk.config.PatchActionNode.processState(PatchActionNode.java:187)
at oracle.apps.fnd.txk.config.PatchNode.processState(PatchNode.java:338)
at oracle.apps.fnd.txk.config.PatchesNode.processState(PatchesNode.java:79)
at oracle.apps.fnd.txk.config.InstallNode.processState(InstallNode.java:68)
at oracle.apps.fnd.txk.config.TXKTopology.traverse(TXKTopology.java:594)
at oracle.apps.fnd.txk.config.InstallService.doInvoke(InstallService.java:224)
at oracle.apps.fnd.txk.config.InstallService.invoke(InstallService.java:237)
at oracle.apps.fnd.txk.config.InstallService.main(InstallService.java:291)Solution

Solution
following changes done to oraInst.loc
#inventory_loc=/u01/mard2/appmard2/oraInventory
inventory_loc=/u01/kittu/R12_2/oraInventory

mkdir /u01/kittu/R12_2/oraInventory
chmod 777 -R u01/kittu/R12_2/oraInventory

Suggested cleaning out install directory
and
/tmp
———————————————————-


Issue 5
Check Description:This is a prerequisite condition to test whether the minimum required kernel parameters are configured.
Checking for VERSION=2.6.18; found VERSION=2.6.18-194.32.1.0.1.el5PAE. Passed
Checking for hardnofiles=4096; hardnofiles=1024. Failed
Checking for softnofiles=4096; softnofiles=1024. Failed
Check complete. The overall result of this check is: Failed

Solution
In /etc/security/limits.conf
below were added
* soft nproc 2047
* hard nproc 16384
* soft nofile 4096
* hard nofile 65535
11:36 AM
to resolve that issue

———————————————————-

issue 6

ORA-00600: internal error code, arguments: [ktsircinfo_num1], [381], [402], [150027], [], [], [], [], [], [], [], []

Solution

“hcheck.sql” script to check for known problems in Oracle8i, Oracle9i, Oracle10g and Oracle 11g [ID 136697.1]

SQL> @hout.sql

Package created.

No errors.

Package body created.

SQL> @hcheck3.sql

Package created.

Package body created.

PL/SQL procedure successfully completed.

ORPHAN IND$: OBJ=1357661 DOBJ=1357661 TS=381 RFILE/BLOCK=402 150027 BO#=43714

SQL> select ts#, file#, block# from sys.ind$ where obj#=1357661;

TS# FILE# BLOCK#
———- ———- ———-
381 402 150027

SQL> select object_type,object_name,owner from dba_objects where object_id=1357661;

OBJECT_TYPE OBJECT_NAME OWNER
——————- —————————— ———-
INDEX SYS_IL0000043714C00070$$ HR

1 row selected.

SQL> set pages 0
SQL> set long 20000000

SQL> update ind$ set ts#=0, file#=0, block#=0, flags=flags+4096 where obj#=1357661;

1 row updated.

SQL> commit;

Commit complete.

Restarted the database.
Restarted the patch and restarted the failed worker which ran fine and patch completed well.

RAC database cloning using (duplicate)


I have copied the production backup pieces to development server (archives and contrilfile)
Tabke the backup of db links

spool /tmp/db_links.sh
select ‘create database link ‘||db_link||’ connect to ‘||username||’ identified by using ”’||host||”’;’ from dba_db_links;
spool off


Tabke the backup of schema passwords

spool /tmp/custom_passwors.sql
select ‘alter user ‘ || name||’ identified by values ‘||””|| password ||””||’;’ from SYS.USER$ WHERE password is not null;
spool off


Tabke the backup of directory and their privs

spool /tmp/dba_directories.sh
set lines 180
set pages 300
col DIRECTORY_PATH for a80;
SELECT ‘create or replace directory ‘||DIRECTORY_NAME|| ‘ as ”’|| DIRECTORY_PATH ||”’;’ FROM dba_directories;
Spool off


update production and develpment tns details

kittup=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=kittuprod01-vip.krishnareddy.com)(PORT=1532))
(CONNECT_DATA=
(SERVICE_NAME=kittup)
(INSTANCE_NAME=kittup1)
)
)


check the connections

kittudev01[kittud1]_oracle> rman

Recovery Manager: Release 11.2.0.3.0 – Production on Mon May 27 04:15:58 2013

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

RMAN> connect TARGET sys/87654321@kittup

connected to target database: kittup (DBID=1059191803)

RMAN> connect AUXILIARY sys/12345678@kittud

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-01031: insufficient privileges

RMAN> exit

Recovery Manager complete.
kittudev01[kittud1]_oracle> sqlplus system/12345678

SQL*Plus: Release 11.2.0.3.0 Production on Mon May 27 04:17:17 2013

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
kittudev01[kittud1]_oracle> cd $ORACLE_HOME/dbs
kittudev01[kittud1]_oracle> ls -ltr
total 44
-rw-r–r– 1 oracle oinstall 19262 Feb 1 10:59 kittud1_APPS_BASE.ora
-rw-r–r– 1 oracle oinstall 2851 Feb 1 10:59 init.ora
-rw-r–r– 1 oracle oinstall 118 Feb 1 10:59 initkittud1.ora
-rw-r—– 1 oracle oinstall 2048 May 14 00:42 orapwkittud1_bck
-rw-r—– 1 oracle oinstall 1536 May 14 00:45 orapwkittud1.ora
-rw-r—– 1 oracle oinstall 1544 May 21 05:40 hc_kittud1.dat
-rw-r–r– 1 oracle oinstall 0 May 21 06:34 kittud1_kittudev01_ifile.ora
-rw-r–r– 1 oracle oinstall 164 May 21 06:34 initkittud1_noaq.ora
kittudev01[kittud1]_oracle> mv orapwkittud1.ora orapwkittud1.ora_backup
kittudev01[kittud1]_oracle> orapwd file=orapw$ORACLE_SID password=12345678 entries=5 force=y
kittudev01[kittud1]_oracle> ls -ltr
total 48
-rw-r–r– 1 oracle oinstall 19262 Feb 1 10:59 kittud1_APPS_BASE.ora
-rw-r–r– 1 oracle oinstall 2851 Feb 1 10:59 init.ora
-rw-r–r– 1 oracle oinstall 118 Feb 1 10:59 initkittud1.ora
-rw-r—– 1 oracle oinstall 2048 May 14 00:42 orapwkittud1_bck
-rw-r—– 1 oracle oinstall 1536 May 14 00:45 orapwkittud1.ora_backup
-rw-r—– 1 oracle oinstall 1544 May 21 05:40 hc_kittud1.dat
-rw-r–r– 1 oracle oinstall 0 May 21 06:34 kittud1_kittudev01_ifile.ora
-rw-r–r– 1 oracle oinstall 164 May 21 06:34 initkittud1_noaq.ora
-rw-r—– 1 oracle oinstall 2048 May 27 04:18 orapwkittud1
kittudev01[kittud1]_oracle> rman

Recovery Manager: Release 11.2.0.3.0 – Production on Mon May 27 04:18:40 2013

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

RMAN> connect TARGET sys/87654321@kittup

connected to target database: kittup (DBID=1059191803)

RMAN> connect AUXILIARY sys/12345678@kittud

connected to auxiliary database: kittud (DBID=2183502522)

RMAN> exit

Recovery Manager complete.


take the pfile backup of pfile and update the convert parameters as follows

SQL>create pfile=’/tmp/initKITTU.ora’ from spfile;


get the locations of all these files and production and development

SQL> select name from v$controlfile;
SQL> select name from v$datafile;
SQL> select FILE_NAME from dba_temp_files;
SQL> select member from v$logfile;

cluster_database=false
db_file_name_convert= (‘+PRODDB_VG/kittup/datafile/’,’+DEVDB_VG/kittud/datafile/’,’+PRODDB_VG/kittup/tempfile/’,’+DEVDB_VG/kittud/TEMPFILE/’)
log_file_name_convert= (‘+PROD_REDOA_VG/kittup/redo/’,’+DEV_REDOA_VG/kittud/redo/’,’+PROD_REDOB_VG/kittup/redo/’,’+DEV_REDOB_VG/kittud/redo/’)


Drop the development database

kittudev01[kittud1]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Mon May 27 04:23:22 2013

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
Data Mining and Real Application Testing options

SQL> alter system set cluster_database=false scope=spfile sid=’*’;

System altered.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64
With the Partitioning, Real Application Clusters, Automatic Storage Management,
Data Mining and Real Application Testing options
kittudev01[kittud1]_oracle> srvctl stop database -d kittud
kittudev01[kittud1]_oracle> srvctl status database -d kittud
Instance kittud1 is not running on node kittudev01
Instance kittud2 is not running on node kittudev02
kittudev01[kittud1]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Mon May 27 04:24:47 2013

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

Connected to an idle instance.

SQL> startup mount restrict;

ORACLE instance started.

Total System Global Area 4275781632 bytes
Fixed Size 2235208 bytes
Variable Size 2181039288 bytes
Database Buffers 2063597568 bytes
Redo Buffers 28909568 bytes
Database mounted.
SQL> alter system enable restricted session;

System altered.

SQL> drop database;

Database dropped.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL>


start the duplicate using above updated pfile

kittudev01[kittud1]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Mon May 27 04:26:42 2013

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

Connected to an idle instance.

SQL> startup nomount pfile=’/tmp/kittu/kittud.ora’;
ORACLE instance started.

Total System Global Area 4275781632 bytes
Fixed Size 2235208 bytes
Variable Size 2181039288 bytes
Database Buffers 2063597568 bytes
Redo Buffers 28909568 bytes
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
kittudev01[kittud1]_oracle> pwd
/tmp/kittu
kittudev01[kittud1]_oracle> vi restore.rvc
connect AUXILIARY /
run
{
set until time “to_date(’19-05-2013 20:30:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel DUP1 type disk;
allocate auxiliary channel DUP2 type disk;
allocate auxiliary channel DUP3 type disk;
allocate auxiliary channel DUP4 type disk;
allocate auxiliary channel DUP5 type disk;
allocate auxiliary channel DUP6 type disk;
DUPLICATE TARGET DATABASE TO ‘kittud’ BACKUP LOCATION ‘/backup/oracle/kittud/oracle/kittud1/full’;
}
kittudev01[kittud1]_oracle>
kittudev01[kittud1]_oracle> nohup rman cmdfile=restore.rvc log=restore.log &
kittudev01[kittud1]_oracle> tail -f log=restore.log

connected to auxiliary database: kittud (not mounted)

executing command: SET until clause

allocated channel: DUP1
channel DUP1: SID=605 device type=DISK

allocated channel: DUP2
channel DUP2: SID=672 device type=DISK

allocated channel: DUP3
channel DUP3: SID=739 device type=DISK

allocated channel: DUP4
channel DUP4: SID=806 device type=DISK

allocated channel: DUP5
channel DUP5: SID=873 device type=DISK

allocated channel: DUP6
channel DUP6: SID=940 device type=DISK

Starting Duplicate Db at 27-MAY-13

contents of Memory Script:
{
sql clone “create spfile from memory”;
}
executing Memory Script

sql statement: create spfile from memory

contents of Memory Script:
{
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area 4275781632 bytes

Fixed Size 2235208 bytes
Variable Size 2181039288 bytes
Database Buffers 2063597568 bytes
Redo Buffers 28909568 bytes
allocated channel: DUP1
channel DUP1: SID=605 device type=DISK
allocated channel: DUP2
channel DUP2: SID=672 device type=DISK
allocated channel: DUP3
channel DUP3: SID=739 device type=DISK
allocated channel: DUP4
channel DUP4: SID=806 device type=DISK
allocated channel: DUP5
channel DUP5: SID=873 device type=DISK
allocated channel: DUP6
channel DUP6: SID=1007 device type=DISK

contents of Memory Script:
{
sql clone “alter system set db_name =
”kittup” comment=
”Modified by RMAN duplicate” scope=spfile”;
sql clone “alter system set db_unique_name =
”kittud” comment=
”Modified by RMAN duplicate” scope=spfile”;
shutdown clone immediate;
startup clone force nomount
restore clone primary controlfile from ‘/backup/oracle/kittud/oracle/kittud1/full/kittup_05_19_2013_815862067.ctl’;
alter clone database mount;
}
executing Memory Script

sql statement: alter system set db_name = ”kittup” comment= ”Modified by RMAN duplicate” scope=spfile

sql statement: alter system set db_unique_name = ”kittud” comment= ”Modified by RMAN duplicate” scope=spfile

Oracle instance shut down

Oracle instance started

Total System Global Area 4275781632 bytes

Fixed Size 2235208 bytes
Variable Size 2181039288 bytes
Database Buffers 2063597568 bytes
Redo Buffers 28909568 bytes
allocated channel: DUP1
channel DUP1: SID=605 device type=DISK
allocated channel: DUP2
channel DUP2: SID=672 device type=DISK
allocated channel: DUP3
channel DUP3: SID=739 device type=DISK
allocated channel: DUP4
channel DUP4: SID=806 device type=DISK
allocated channel: DUP5
channel DUP5: SID=940 device type=DISK
allocated channel: DUP6
channel DUP6: SID=1007 device type=DISK

Starting restore at 27-MAY-13

channel DUP2: skipped, AUTOBACKUP already found
channel DUP3: skipped, AUTOBACKUP already found
channel DUP4: skipped, AUTOBACKUP already found
channel DUP5: skipped, AUTOBACKUP already found
channel DUP6: skipped, AUTOBACKUP already found
channel DUP1: restoring control file
channel DUP1: restore complete, elapsed time: 00:00:12
output file name=+DEV_REDOA_VG/kittud/control/cntrl01.ctl
output file name=+DEV_REDOB_VG/kittud/control/cntrl02.ctl
Finished restore at 27-MAY-13

database mounted

contents of Memory Script:
{
set until scn 12926553285186;
set newname for datafile 1 to “+DEVDB_VG/kittud/datafile/system01.dbf”;
set newname for datafile 2 to “+DEVDB_VG/kittud/datafile/system02.dbf”;
set newname for datafile 3 to “+DEVDB_VG/kittud/datafile/system03.dbf”;
set newname for datafile 4 to “+DEVDB_VG/kittud/datafile/system04.dbf”;
set newname for datafile 5 to “+DEVDB_VG/kittud/datafile/system05.dbf”;
set newname for datafile 6 to “+DEVDB_VG/kittud/datafile/ctxd01.dbf”;
set newname for datafile 7 to “+DEVDB_VG/kittud/datafile/owad01.dbf”;
set newname for datafile 8 to “+DEVDB_VG/kittud/datafile/a_queue02.dbf”;
set newname for datafile 9 to “+DEVDB_VG/kittud/datafile/odm.dbf”;
set newname for datafile 10 to “+DEVDB_VG/kittud/datafile/olap.dbf”;
set newname for datafile 11 to “+DEVDB_VG/kittud/datafile/users01.dbf”;
set newname for datafile 12 to “+DEVDB_VG/kittud/datafile/usersx01.dbf”;
set newname for datafile 13 to “+DEVDB_VG/kittud/datafile/discoverer01.dbf”;
set newname for datafile 14 to “+DEVDB_VG/kittud/datafile/sysaux01.dbf”;
set newname for datafile 15 to “+DEVDB_VG/kittud/datafile/tools01.dbf”;
set newname for datafile 16 to “+DEVDB_VG/kittud/datafile/a_tools01.dbf”;
set newname for datafile 17 to “+DEVDB_VG/kittud/datafile/undo02.dbf”;
set newname for datafile 18 to “+DEVDB_VG/kittud/datafile/a_txn_data04.dbf”;
set newname for datafile 19 to “+DEVDB_VG/kittud/datafile/undo03.dbf”;
set newname for datafile 20 to “+DEVDB_VG/kittud/datafile/undo04.dbf”;
set newname for datafile 21 to “+DEVDB_VG/kittud/datafile/users02.dbf”;
set newname for datafile 22 to “+DEVDB_VG/kittud/datafile/a_txn_data05.dbf”;
set newname for datafile 23 to “+DEVDB_VG/kittud/datafile/usersx02.dbf”;
set newname for datafile 24 to “+DEVDB_VG/kittud/datafile/users03.dbf”;
set newname for datafile 25 to “+DEVDB_VG/kittud/datafile/users04.dbf”;
set newname for datafile 26 to “+DEVDB_VG/kittud/datafile/users05.dbf”;
set newname for datafile 27 to “+DEVDB_VG/kittud/datafile/users06.dbf”;
set newname for datafile 28 to “+DEVDB_VG/kittud/datafile/users07.dbf”;
set newname for datafile 29 to “+DEVDB_VG/kittud/datafile/users08.dbf”;
set newname for datafile 30 to “+DEVDB_VG/kittud/datafile/users09.dbf”;
set newname for datafile 31 to “+DEVDB_VG/kittud/datafile/users10.dbf”;
set newname for datafile 32 to “+DEVDB_VG/kittud/datafile/users11.dbf”;
set newname for datafile 33 to “+DEVDB_VG/kittud/datafile/a_txn_data06.dbf”;
set newname for datafile 34 to “+DEVDB_VG/kittud/datafile/a_txn_ind06.dbf”;
set newname for datafile 35 to “+DEVDB_VG/kittud/datafile/a_txn_data07.dbf”;
set newname for datafile 36 to “+DEVDB_VG/kittud/datafile/a_int02.dbf”;
set newname for datafile 37 to “+DEVDB_VG/kittud/datafile/usersx03.dbf”;
set newname for datafile 38 to “+DEVDB_VG/kittud/datafile/users12.dbf”;
set newname for datafile 39 to “+DEVDB_VG/kittud/datafile/a_txn_data08.dbf”;
set newname for datafile 40 to “+DEVDB_VG/kittud/datafile/a_txn_data09.dbf”;
set newname for datafile 41 to “+DEVDB_VG/kittud/datafile/a_txn_ind07.dbf”;
set newname for datafile 42 to “+DEVDB_VG/kittud/datafile/a_txn_data10.dbf”;
set newname for datafile 43 to “+DEVDB_VG/kittud/datafile/users13.dbf”;
set newname for datafile 44 to “+DEVDB_VG/kittud/datafile/a_txn_ind08.dbf”;
set newname for datafile 45 to “+DEVDB_VG/kittud/datafile/a_txn_data11.dbf”;
set newname for datafile 46 to “+DEVDB_VG/kittud/datafile/users14.dbf”;
set newname for datafile 47 to “+DEVDB_VG/kittud/datafile/usersx04.dbf”;
set newname for datafile 48 to “+DEVDB_VG/kittud/datafile/a_txn_ind09.dbf”;
set newname for datafile 49 to “+DEVDB_VG/kittud/datafile/users15.dbf”;
set newname for datafile 50 to “+DEVDB_VG/kittud/datafile/usersx05.dbf”;
set newname for datafile 51 to “+DEVDB_VG/kittud/datafile/a_txn_data12.dbf”;
set newname for datafile 52 to “+DEVDB_VG/kittud/datafile/a_txn_data13.dbf”;
set newname for datafile 53 to “+DEVDB_VG/kittud/datafile/undo05.dbf”;
set newname for datafile 54 to “+DEVDB_VG/kittud/datafile/undo06.dbf”;
set newname for datafile 55 to “+DEVDB_VG/kittud/datafile/undo07.dbf”;
set newname for datafile 56 to “+DEVDB_VG/kittud/datafile/undo08.dbf”;
set newname for datafile 57 to “+DEVDB_VG/kittud/datafile/usersx06.dbf”;
set newname for datafile 58 to “+DEVDB_VG/kittud/datafile/sysaux02.dbf”;
set newname for datafile 59 to “+DEVDB_VG/kittud/datafile/a_txn_data14.dbf”;
set newname for datafile 60 to “+DEVDB_VG/kittud/datafile/usersx07.dbf”;
set newname for datafile 61 to “+DEVDB_VG/kittud/datafile/usersx08.dbf”;
set newname for datafile 62 to “+DEVDB_VG/kittud/datafile/a_txn_ind10.dbf”;
set newname for datafile 63 to “+DEVDB_VG/kittud/datafile/a_txn_ind11.dbf”;
set newname for datafile 64 to “+DEVDB_VG/kittud/datafile/a_txn_data15.dbf”;
set newname for datafile 65 to “+DEVDB_VG/kittud/datafile/a_txn_data16.dbf”;
set newname for datafile 66 to “+DEVDB_VG/kittud/datafile/undo09.dbf”;
set newname for datafile 288 to “+DEVDB_VG/kittud/datafile/system10.dbf”;
set newname for datafile 295 to “+DEVDB_VG/kittud/datafile/system06.dbf”;
set newname for datafile 314 to “+DEVDB_VG/kittud/datafile/portal01.dbf”;
set newname for datafile 351 to “+DEVDB_VG/kittud/datafile/system07.dbf”;
set newname for datafile 352 to “+DEVDB_VG/kittud/datafile/system09.dbf”;
set newname for datafile 353 to “+DEVDB_VG/kittud/datafile/system08.dbf”;
set newname for datafile 354 to “+DEVDB_VG/kittud/datafile/system11.dbf”;
set newname for datafile 379 to “+DEVDB_VG/kittud/datafile/undo01.dbf”;
set newname for datafile 392 to “+DEVDB_VG/kittud/datafile/a_txn_data01.dbf”;
set newname for datafile 393 to “+DEVDB_VG/kittud/datafile/a_txn_ind01.dbf”;
set newname for datafile 394 to “+DEVDB_VG/kittud/datafile/a_ref01.dbf”;
set newname for datafile 395 to “+DEVDB_VG/kittud/datafile/a_int01.dbf”;
set newname for datafile 396 to “+DEVDB_VG/kittud/datafile/a_summ01.dbf”;
set newname for datafile 397 to “+DEVDB_VG/kittud/datafile/a_nolog01.dbf”;
set newname for datafile 398 to “+DEVDB_VG/kittud/datafile/a_archive01.dbf”;
set newname for datafile 399 to “+DEVDB_VG/kittud/datafile/a_queue01.dbf”;
set newname for datafile 400 to “+DEVDB_VG/kittud/datafile/a_media01.dbf”;
set newname for datafile 401 to “+DEVDB_VG/kittud/datafile/a_txn_data02.dbf”;
set newname for datafile 402 to “+DEVDB_VG/kittud/datafile/a_txn_data03.dbf”;
set newname for datafile 403 to “+DEVDB_VG/kittud/datafile/a_txn_ind02.dbf”;
set newname for datafile 404 to “+DEVDB_VG/kittud/datafile/a_txn_ind03.dbf”;
set newname for datafile 405 to “+DEVDB_VG/kittud/datafile/a_txn_ind04.dbf”;
set newname for datafile 406 to “+DEVDB_VG/kittud/datafile/a_txn_ind05.dbf”;
set newname for datafile 407 to “+DEVDB_VG/kittud/datafile/a_ref02.dbf”;
restore
clone database
;
}
executing Memory Script

executing command: SET until clause

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting restore at 27-MAY-13

channel DUP1: starting datafile backup set restore
channel DUP1: specifying datafile(s) to restore from backup set
channel DUP1: restoring datafile 00053 to +DEVDB_VG/kittud/datafile/undo05.dbf
channel DUP1: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29264
channel DUP2: starting datafile backup set restore
channel DUP2: specifying datafile(s) to restore from backup set
channel DUP2: restoring datafile 00054 to +DEVDB_VG/kittud/datafile/undo06.dbf
channel DUP2: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29265
channel DUP3: starting datafile backup set restore
channel DUP3: specifying datafile(s) to restore from backup set
channel DUP3: restoring datafile 00002 to +DEVDB_VG/kittud/datafile/system02.dbf
channel DUP3: restoring datafile 00055 to +DEVDB_VG/kittud/datafile/undo07.dbf
channel DUP3: restoring datafile 00057 to +DEVDB_VG/kittud/datafile/usersx06.dbf
channel DUP3: restoring datafile 00354 to +DEVDB_VG/kittud/datafile/system11.dbf
channel DUP3: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29266
channel DUP4: starting datafile backup set restore
channel DUP4: specifying datafile(s) to restore from backup set
channel DUP4: restoring datafile 00003 to +DEVDB_VG/kittud/datafile/system03.dbf
channel DUP4: restoring datafile 00056 to +DEVDB_VG/kittud/datafile/undo08.dbf
channel DUP4: restoring datafile 00392 to +DEVDB_VG/kittud/datafile/a_txn_data01.dbf
channel DUP4: restoring datafile 00396 to +DEVDB_VG/kittud/datafile/a_summ01.dbf
channel DUP4: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29267
channel DUP5: starting datafile backup set restore
channel DUP5: specifying datafile(s) to restore from backup set
channel DUP5: restoring datafile 00011 to +DEVDB_VG/kittud/datafile/users01.dbf
channel DUP5: restoring datafile 00018 to +DEVDB_VG/kittud/datafile/a_txn_data04.dbf
channel DUP5: restoring datafile 00032 to +DEVDB_VG/kittud/datafile/users11.dbf
channel DUP5: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29268
channel DUP6: starting datafile backup set restore
channel DUP6: specifying datafile(s) to restore from backup set
channel DUP6: restoring datafile 00014 to +DEVDB_VG/kittud/datafile/sysaux01.dbf
channel DUP6: restoring datafile 00022 to +DEVDB_VG/kittud/datafile/a_txn_data05.dbf
channel DUP6: restoring datafile 00033 to +DEVDB_VG/kittud/datafile/a_txn_data06.dbf
channel DUP6: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29269
channel DUP1: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29264 tag=kittup1_HOTINCR_0519_2000
channel DUP1: restored backup piece 1
channel DUP1: restore complete, elapsed time: 00:01:28
channel DUP1: starting datafile backup set restore
channel DUP1: specifying datafile(s) to restore from backup set
channel DUP1: restoring datafile 00017 to +DEVDB_VG/kittud/datafile/undo02.dbf
channel DUP1: restoring datafile 00021 to +DEVDB_VG/kittud/datafile/users02.dbf
channel DUP1: restoring datafile 00035 to +DEVDB_VG/kittud/datafile/a_txn_data07.dbf
channel DUP1: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29270
channel DUP2: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29265 tag=kittup1_HOTINCR_0519_2000
channel DUP2: restored backup piece 1
channel DUP2: restore complete, elapsed time: 00:01:28
channel DUP2: starting datafile backup set restore
channel DUP2: specifying datafile(s) to restore from backup set
channel DUP2: restoring datafile 00019 to +DEVDB_VG/kittud/datafile/undo03.dbf
channel DUP2: restoring datafile 00024 to +DEVDB_VG/kittud/datafile/users03.dbf
channel DUP2: restoring datafile 00038 to +DEVDB_VG/kittud/datafile/users12.dbf
channel DUP2: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29271
channel DUP3: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29266 tag=kittup1_HOTINCR_0519_2000
channel DUP3: restored backup piece 1
channel DUP3: restore complete, elapsed time: 00:05:44
channel DUP3: starting datafile backup set restore
channel DUP3: specifying datafile(s) to restore from backup set
channel DUP3: restoring datafile 00020 to +DEVDB_VG/kittud/datafile/undo04.dbf
channel DUP3: restoring datafile 00025 to +DEVDB_VG/kittud/datafile/users04.dbf
channel DUP3: restoring datafile 00039 to +DEVDB_VG/kittud/datafile/a_txn_data08.dbf
channel DUP3: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29272
channel DUP4: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29267 tag=kittup1_HOTINCR_0519_2000
channel DUP4: restored backup piece 1
channel DUP4: restore complete, elapsed time: 00:06:19
channel DUP4: starting datafile backup set restore
channel DUP4: specifying datafile(s) to restore from backup set
channel DUP4: restoring datafile 00026 to +DEVDB_VG/kittud/datafile/users05.dbf
channel DUP4: restoring datafile 00040 to +DEVDB_VG/kittud/datafile/a_txn_data09.dbf
channel DUP4: restoring datafile 00048 to +DEVDB_VG/kittud/datafile/a_txn_ind09.dbf
channel DUP4: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29273
channel DUP2: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29271 tag=kittup1_HOTINCR_0519_2000
channel DUP2: restored backup piece 1
channel DUP2: restore complete, elapsed time: 00:05:26
channel DUP2: starting datafile backup set restore
channel DUP2: specifying datafile(s) to restore from backup set
channel DUP2: restoring datafile 00027 to +DEVDB_VG/kittud/datafile/users06.dbf
channel DUP2: restoring datafile 00041 to +DEVDB_VG/kittud/datafile/a_txn_ind07.dbf
channel DUP2: restoring datafile 00379 to +DEVDB_VG/kittud/datafile/undo01.dbf
channel DUP2: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29274
channel DUP1: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29270 tag=kittup1_HOTINCR_0519_2000
channel DUP1: restored backup piece 1
channel DUP1: restore complete, elapsed time: 00:05:53
channel DUP1: starting datafile backup set restore
channel DUP1: specifying datafile(s) to restore from backup set
channel DUP1: restoring datafile 00012 to +DEVDB_VG/kittud/datafile/usersx01.dbf
channel DUP1: restoring datafile 00046 to +DEVDB_VG/kittud/datafile/users14.dbf
channel DUP1: restoring datafile 00395 to +DEVDB_VG/kittud/datafile/a_int01.dbf
channel DUP1: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29276
channel DUP6: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29269 tag=kittup1_HOTINCR_0519_2000
channel DUP6: restored backup piece 1
channel DUP6: restore complete, elapsed time: 00:07:34
channel DUP6: starting datafile backup set restore
channel DUP6: specifying datafile(s) to restore from backup set
channel DUP6: restoring datafile 00028 to +DEVDB_VG/kittud/datafile/users07.dbf
channel DUP6: restoring datafile 00042 to +DEVDB_VG/kittud/datafile/a_txn_data10.dbf
channel DUP6: restoring datafile 00402 to +DEVDB_VG/kittud/datafile/a_txn_data03.dbf
channel DUP6: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29275
channel DUP5: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29268 tag=kittup1_HOTINCR_0519_2000
channel DUP5: restored backup piece 1
channel DUP5: restore complete, elapsed time: 00:07:43
channel DUP5: starting datafile backup set restore
channel DUP5: specifying datafile(s) to restore from backup set
channel DUP5: restoring datafile 00023 to +DEVDB_VG/kittud/datafile/usersx02.dbf
channel DUP5: restoring datafile 00049 to +DEVDB_VG/kittud/datafile/users15.dbf
channel DUP5: restoring datafile 00400 to +DEVDB_VG/kittud/datafile/a_media01.dbf
channel DUP5: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29277
channel DUP3: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29272 tag=kittup1_HOTINCR_0519_2000
channel DUP3: restored backup piece 1
channel DUP3: restore complete, elapsed time: 00:05:46
channel DUP3: starting datafile backup set restore
channel DUP3: specifying datafile(s) to restore from backup set
channel DUP3: restoring datafile 00034 to +DEVDB_VG/kittud/datafile/a_txn_ind06.dbf
channel DUP3: restoring datafile 00050 to +DEVDB_VG/kittud/datafile/usersx05.dbf
channel DUP3: restoring datafile 00407 to +DEVDB_VG/kittud/datafile/a_ref02.dbf
channel DUP3: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29278
channel DUP2: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29274 tag=kittup1_HOTINCR_0519_2000
channel DUP2: restored backup piece 1
channel DUP2: restore complete, elapsed time: 00:05:01
channel DUP2: starting datafile backup set restore
channel DUP2: specifying datafile(s) to restore from backup set
channel DUP2: restoring datafile 00004 to +DEVDB_VG/kittud/datafile/system04.dbf
channel DUP2: restoring datafile 00008 to +DEVDB_VG/kittud/datafile/a_queue02.dbf
channel DUP2: restoring datafile 00059 to +DEVDB_VG/kittud/datafile/a_txn_data14.dbf
channel DUP2: restoring datafile 00393 to +DEVDB_VG/kittud/datafile/a_txn_ind01.dbf
channel DUP2: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29279
channel DUP1: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29276 tag=kittup1_HOTINCR_0519_2000
channel DUP1: restored backup piece 1
channel DUP1: restore complete, elapsed time: 00:06:31
channel DUP1: starting datafile backup set restore
channel DUP1: specifying datafile(s) to restore from backup set
channel DUP1: restoring datafile 00005 to +DEVDB_VG/kittud/datafile/system05.dbf
channel DUP1: restoring datafile 00016 to +DEVDB_VG/kittud/datafile/a_tools01.dbf
channel DUP1: restoring datafile 00060 to +DEVDB_VG/kittud/datafile/usersx07.dbf
channel DUP1: restoring datafile 00401 to +DEVDB_VG/kittud/datafile/a_txn_data02.dbf
channel DUP1: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29280
channel DUP4: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29273 tag=kittup1_HOTINCR_0519_2000
channel DUP4: restored backup piece 1
channel DUP4: restore complete, elapsed time: 00:07:33
channel DUP4: starting datafile backup set restore
channel DUP4: specifying datafile(s) to restore from backup set
channel DUP4: restoring datafile 00031 to +DEVDB_VG/kittud/datafile/users10.dbf
channel DUP4: restoring datafile 00045 to +DEVDB_VG/kittud/datafile/a_txn_data11.dbf
channel DUP4: restoring datafile 00394 to +DEVDB_VG/kittud/datafile/a_ref01.dbf
channel DUP4: restoring datafile 00398 to +DEVDB_VG/kittud/datafile/a_archive01.dbf
channel DUP4: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29282
channel DUP5: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29277 tag=kittup1_HOTINCR_0519_2000
channel DUP5: restored backup piece 1
channel DUP5: restore complete, elapsed time: 00:06:10
channel DUP5: starting datafile backup set restore
channel DUP5: specifying datafile(s) to restore from backup set
channel DUP5: restoring datafile 00036 to +DEVDB_VG/kittud/datafile/a_int02.dbf
channel DUP5: restoring datafile 00061 to +DEVDB_VG/kittud/datafile/usersx08.dbf
channel DUP5: restoring datafile 00399 to +DEVDB_VG/kittud/datafile/a_queue01.dbf
channel DUP5: restoring datafile 00404 to +DEVDB_VG/kittud/datafile/a_txn_ind03.dbf
channel DUP5: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29281
channel DUP6: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29275 tag=kittup1_HOTINCR_0519_2000
channel DUP6: restored backup piece 1
channel DUP6: restore complete, elapsed time: 00:07:24
channel DUP6: starting datafile backup set restore
channel DUP6: specifying datafile(s) to restore from backup set
channel DUP6: restoring datafile 00009 to +DEVDB_VG/kittud/datafile/odm.dbf
channel DUP6: restoring datafile 00062 to +DEVDB_VG/kittud/datafile/a_txn_ind10.dbf
channel DUP6: restoring datafile 00288 to +DEVDB_VG/kittud/datafile/system10.dbf
channel DUP6: restoring datafile 00405 to +DEVDB_VG/kittud/datafile/a_txn_ind04.dbf
channel DUP6: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29284
channel DUP3: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29278 tag=kittup1_HOTINCR_0519_2000
channel DUP3: restored backup piece 1
channel DUP3: restore complete, elapsed time: 00:06:06
channel DUP3: starting datafile backup set restore
channel DUP3: specifying datafile(s) to restore from backup set
channel DUP3: restoring datafile 00015 to +DEVDB_VG/kittud/datafile/tools01.dbf
channel DUP3: restoring datafile 00037 to +DEVDB_VG/kittud/datafile/usersx03.dbf
channel DUP3: restoring datafile 00051 to +DEVDB_VG/kittud/datafile/a_txn_data12.dbf
channel DUP3: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29283
channel DUP2: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29279 tag=kittup1_HOTINCR_0519_2000
channel DUP2: restored backup piece 1
channel DUP2: restore complete, elapsed time: 00:07:46
channel DUP2: starting datafile backup set restore
channel DUP2: specifying datafile(s) to restore from backup set
channel DUP2: restoring datafile 00010 to +DEVDB_VG/kittud/datafile/olap.dbf
channel DUP2: restoring datafile 00063 to +DEVDB_VG/kittud/datafile/a_txn_ind11.dbf
channel DUP2: restoring datafile 00295 to +DEVDB_VG/kittud/datafile/system06.dbf
channel DUP2: restoring datafile 00406 to +DEVDB_VG/kittud/datafile/a_txn_ind05.dbf
channel DUP2: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29285
channel DUP5: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29281 tag=kittup1_HOTINCR_0519_2000
channel DUP5: restored backup piece 1
channel DUP5: restore complete, elapsed time: 00:06:34
channel DUP5: starting datafile backup set restore
channel DUP5: specifying datafile(s) to restore from backup set
channel DUP5: restoring datafile 00001 to +DEVDB_VG/kittud/datafile/system01.dbf
channel DUP5: restoring datafile 00029 to +DEVDB_VG/kittud/datafile/users08.dbf
channel DUP5: restoring datafile 00043 to +DEVDB_VG/kittud/datafile/users13.dbf
channel DUP5: restoring datafile 00314 to +DEVDB_VG/kittud/datafile/portal01.dbf
channel DUP5: restoring datafile 00351 to +DEVDB_VG/kittud/datafile/system07.dbf
channel DUP5: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29286
channel DUP6: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29284 tag=kittup1_HOTINCR_0519_2000
channel DUP6: restored backup piece 1
channel DUP6: restore complete, elapsed time: 00:06:14
channel DUP6: starting datafile backup set restore
channel DUP6: specifying datafile(s) to restore from backup set
channel DUP6: restoring datafile 00030 to +DEVDB_VG/kittud/datafile/users09.dbf
channel DUP6: restoring datafile 00044 to +DEVDB_VG/kittud/datafile/a_txn_ind08.dbf
channel DUP6: restoring datafile 00058 to +DEVDB_VG/kittud/datafile/sysaux02.dbf
channel DUP6: restoring datafile 00352 to +DEVDB_VG/kittud/datafile/system09.dbf
channel DUP6: restoring datafile 00397 to +DEVDB_VG/kittud/datafile/a_nolog01.dbf
channel DUP6: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29287
channel DUP1: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29280 tag=kittup1_HOTINCR_0519_2000
channel DUP1: restored backup piece 1
channel DUP1: restore complete, elapsed time: 00:07:58
channel DUP1: starting datafile backup set restore
channel DUP1: specifying datafile(s) to restore from backup set
channel DUP1: restoring datafile 00006 to +DEVDB_VG/kittud/datafile/ctxd01.dbf
channel DUP1: restoring datafile 00013 to +DEVDB_VG/kittud/datafile/discoverer01.dbf
channel DUP1: restoring datafile 00047 to +DEVDB_VG/kittud/datafile/usersx04.dbf
channel DUP1: restoring datafile 00052 to +DEVDB_VG/kittud/datafile/a_txn_data13.dbf
channel DUP1: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29288
channel DUP4: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29282 tag=kittup1_HOTINCR_0519_2000
channel DUP4: restored backup piece 1
channel DUP4: restore complete, elapsed time: 00:08:33
channel DUP4: starting datafile backup set restore
channel DUP4: specifying datafile(s) to restore from backup set
channel DUP4: restoring datafile 00007 to +DEVDB_VG/kittud/datafile/owad01.dbf
channel DUP4: restoring datafile 00064 to +DEVDB_VG/kittud/datafile/a_txn_data15.dbf
channel DUP4: restoring datafile 00353 to +DEVDB_VG/kittud/datafile/system08.dbf
channel DUP4: restoring datafile 00403 to +DEVDB_VG/kittud/datafile/a_txn_ind02.dbf
channel DUP4: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29289
channel DUP3: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29283 tag=kittup1_HOTINCR_0519_2000
channel DUP3: restored backup piece 1
channel DUP3: restore complete, elapsed time: 00:06:05
channel DUP3: starting datafile backup set restore
channel DUP3: specifying datafile(s) to restore from backup set
channel DUP3: restoring datafile 00065 to +DEVDB_VG/kittud/datafile/a_txn_data16.dbf
channel DUP3: restoring datafile 00066 to +DEVDB_VG/kittud/datafile/undo09.dbf
channel DUP3: reading from backup piece /backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29290
channel DUP3: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29290 tag=kittup1_HOTINCR_0519_2000
channel DUP3: restored backup piece 1
channel DUP3: restore complete, elapsed time: 00:01:36
channel DUP2: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29285 tag=kittup1_HOTINCR_0519_2000
channel DUP2: restored backup piece 1
channel DUP2: restore complete, elapsed time: 00:07:46
channel DUP1: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29288 tag=kittup1_HOTINCR_0519_2000
channel DUP1: restored backup piece 1
channel DUP1: restore complete, elapsed time: 00:06:48
channel DUP5: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29286 tag=kittup1_HOTINCR_0519_2000
channel DUP5: restored backup piece 1
channel DUP5: restore complete, elapsed time: 00:08:40
channel DUP6: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29287 tag=kittup1_HOTINCR_0519_2000
channel DUP6: restored backup piece 1
channel DUP6: restore complete, elapsed time: 00:08:03
channel DUP4: piece handle=/backup/oracle/kittud/oracle/kittud1/full/kittup_HOT_05192013_1_29289 tag=kittup1_HOTINCR_0519_2000
channel DUP4: restored backup piece 1
channel DUP4: restore complete, elapsed time: 00:07:42
Finished restore at 27-MAY-13

contents of Memory Script:
{
switch clone datafile all;
}
executing Memory Script

datafile 1 switched to datafile copy input datafile copy RECID=91 STAMP=816502961 file name=+DEVDB_VG/kittud/datafile/system01.dbf
datafile 2 switched to datafile copy input datafile copy RECID=92 STAMP=816502962 file name=+DEVDB_VG/kittud/datafile/system02.dbf
datafile 3 switched to datafile copy input datafile copy RECID=93 STAMP=816502962 file name=+DEVDB_VG/kittud/datafile/system03.dbf
datafile 4 switched to datafile copy input datafile copy RECID=94 STAMP=816502962 file name=+DEVDB_VG/kittud/datafile/system04.dbf
datafile 5 switched to datafile copy input datafile copy RECID=95 STAMP=816502962 file name=+DEVDB_VG/kittud/datafile/system05.dbf
datafile 6 switched to datafile copy input datafile copy RECID=96 STAMP=816502962 file name=+DEVDB_VG/kittud/datafile/ctxd01.dbf
datafile 7 switched to datafile copy input datafile copy RECID=97 STAMP=816502962 file name=+DEVDB_VG/kittud/datafile/owad01.dbf
datafile 8 switched to datafile copy input datafile copy RECID=98 STAMP=816502963 file name=+DEVDB_VG/kittud/datafile/a_queue02.dbf
datafile 9 switched to datafile copy input datafile copy RECID=99 STAMP=816502963 file name=+DEVDB_VG/kittud/datafile/odm.dbf
datafile 10 switched to datafile copy input datafile copy RECID=100 STAMP=16502963 file name=+DEVDB_VG/kittud/datafile/olap.dbf
datafile 11 switched to datafile copy input datafile copy RECID=101 STAMP=816502963 file name=+DEVDB_VG/kittud/datafile/users01.dbf
datafile 12 switched to datafile copy input datafile copy RECID=102 STAMP=816502963 file name=+DEVDB_VG/kittud/datafile/usersx01.dbf
datafile 13 switched to datafile copy input datafile copy RECID=103 STAMP=816502963 file name=+DEVDB_VG/kittud/datafile/discoverer01.dbf
datafile 14 switched to datafile copy input datafile copy RECID=104 STAMP=816502964 file name=+DEVDB_VG/kittud/datafile/sysaux01.dbf
datafile 15 switched to datafile copy input datafile copy RECID=105 STAMP=816502964 file name=+DEVDB_VG/kittud/datafile/tools01.dbf
datafile 16 switched to datafile copy input datafile copy RECID=106 STAMP=816502964 file name=+DEVDB_VG/kittud/datafile/a_tools01.dbf
datafile 17 switched to datafile copy input datafile copy RECID=107 STAMP=816502964 file name=+DEVDB_VG/kittud/datafile/undo02.dbf
datafile 18 switched to datafile copy input datafile copy RECID=108 STAMP=816502964 file name=+DEVDB_VG/kittud/datafile/a_txn_data04.dbf
datafile 19 switched to datafile copy input datafile copy RECID=109 STAMP=816502964 file name=+DEVDB_VG/kittud/datafile/undo03.dbf
datafile 20 switched to datafile copy input datafile copy RECID=110 STAMP=816502965 file name=+DEVDB_VG/kittud/datafile/undo04.dbf
datafile 21 switched to datafile copy input datafile copy RECID=111 STAMP=816502965 file name=+DEVDB_VG/kittud/datafile/users02.dbf
datafile 22 switched to datafile copy input datafile copy RECID=112 STAMP=816502965 file name=+DEVDB_VG/kittud/datafile/a_txn_data05.dbf
datafile 23 switched to datafile copy input datafile copy RECID=113 STAMP=816502965 file name=+DEVDB_VG/kittud/datafile/usersx02.dbf
datafile 24 switched to datafile copy input datafile copy RECID=114 STAMP=816502965 file name=+DEVDB_VG/kittud/datafile/users03.dbf
datafile 25 switched to datafile copy input datafile copy RECID=115 STAMP=816502965 file name=+DEVDB_VG/kittud/datafile/users04.dbf
datafile 26 switched to datafile copy input datafile copy RECID=116 STAMP=816502966 file name=+DEVDB_VG/kittud/datafile/users05.dbf
datafile 27 switched to datafile copy input datafile copy RECID=117 STAMP=816502966 file name=+DEVDB_VG/kittud/datafile/users06.dbf
datafile 28 switched to datafile copy input datafile copy RECID=118 STAMP=816502966 file name=+DEVDB_VG/kittud/datafile/users07.dbf
datafile 29 switched to datafile copy input datafile copy RECID=119 STAMP=816502966 file name=+DEVDB_VG/kittud/datafile/users08.dbf
datafile 30 switched to datafile copy input datafile copy RECID=120 STAMP=816502966 file name=+DEVDB_VG/kittud/datafile/users09.dbf
datafile 31 switched to datafile copy input datafile copy RECID=121 STAMP=816502966 file name=+DEVDB_VG/kittud/datafile/users10.dbf
datafile 32 switched to datafile copy input datafile copy RECID=122 STAMP=816502967 file name=+DEVDB_VG/kittud/datafile/users11.dbf
datafile 33 switched to datafile copy input datafile copy RECID=123 STAMP=816502967 file name=+DEVDB_VG/kittud/datafile/a_txn_data06.dbf
datafile 34 switched to datafile copy input datafile copy RECID=124 STAMP=816502967 file name=+DEVDB_VG/kittud/datafile/a_txn_ind06.dbf
datafile 35 switched to datafile copy input datafile copy RECID=125 STAMP=816502967 file name=+DEVDB_VG/kittud/datafile/a_txn_data07.dbf
datafile 36 switched to datafile copy input datafile copy RECID=126 STAMP=816502967 file name=+DEVDB_VG/kittud/datafile/a_int02.dbf
datafile 37 switched to datafile copy input datafile copy RECID=127 STAMP=816502968 file name=+DEVDB_VG/kittud/datafile/usersx03.dbf
datafile 38 switched to datafile copy input datafile copy RECID=128 STAMP=816502968 file name=+DEVDB_VG/kittud/datafile/users12.dbf
datafile 39 switched to datafile copy input datafile copy RECID=129 STAMP=816502968 file name=+DEVDB_VG/kittud/datafile/a_txn_data08.dbf
datafile 40 switched to datafile copy input datafile copy RECID=130 STAMP=816502968 file name=+DEVDB_VG/kittud/datafile/a_txn_data09.dbf
datafile 41 switched to datafile copy input datafile copy RECID=131 STAMP=816502968 file name=+DEVDB_VG/kittud/datafile/a_txn_ind07.dbf
datafile 42 switched to datafile copy input datafile copy RECID=132 STAMP=816502969 file name=+DEVDB_VG/kittud/datafile/a_txn_data10.dbf
datafile 43 switched to datafile copy input datafile copy RECID=133 STAMP=816502969 file name=+DEVDB_VG/kittud/datafile/users13.dbf
datafile 44 switched to datafile copy input datafile copy RECID=134 STAMP=816502969 file name=+DEVDB_VG/kittud/datafile/a_txn_ind08.dbf
datafile 45 switched to datafile copy input datafile copy RECID=135 STAMP=816502969 file name=+DEVDB_VG/kittud/datafile/a_txn_data11.dbf
datafile 46 switched to datafile copy input datafile copy RECID=136 STAMP=816502969 file name=+DEVDB_VG/kittud/datafile/users14.dbf
datafile 47 switched to datafile copy input datafile copy RECID=137 STAMP=816502969 file name=+DEVDB_VG/kittud/datafile/usersx04.dbf
datafile 48 switched to datafile copy input datafile copy RECID=138 STAMP=816502970 file name=+DEVDB_VG/kittud/datafile/a_txn_ind09.dbf
datafile 49 switched to datafile copy input datafile copy RECID=139 STAMP=816502970 file name=+DEVDB_VG/kittud/datafile/users15.dbf
datafile 50 switched to datafile copy input datafile copy RECID=140 STAMP=816502970 file name=+DEVDB_VG/kittud/datafile/usersx05.dbf
datafile 51 switched to datafile copy input datafile copy RECID=141 STAMP=816502970 file name=+DEVDB_VG/kittud/datafile/a_txn_data12.dbf
datafile 52 switched to datafile copy input datafile copy RECID=142 STAMP=816502970 file name=+DEVDB_VG/kittud/datafile/a_txn_data13.dbf
datafile 53 switched to datafile copy input datafile copy RECID=143 STAMP=816502970 file name=+DEVDB_VG/kittud/datafile/undo05.dbf
datafile 54 switched to datafile copy input datafile copy RECID=144 STAMP=816502971 file name=+DEVDB_VG/kittud/datafile/undo06.dbf
datafile 55 switched to datafile copy input datafile copy RECID=145 STAMP=816502971 file name=+DEVDB_VG/kittud/datafile/undo07.dbf
datafile 56 switched to datafile copy input datafile copy RECID=146 STAMP=816502971 file name=+DEVDB_VG/kittud/datafile/undo08.dbf
datafile 57 switched to datafile copy input datafile copy RECID=147 STAMP=816502971 file name=+DEVDB_VG/kittud/datafile/usersx06.dbf
datafile 58 switched to datafile copy input datafile copy RECID=148 STAMP=816502971 file name=+DEVDB_VG/kittud/datafile/sysaux02.dbf
datafile 59 switched to datafile copy input datafile copy RECID=149 STAMP=816502972 file name=+DEVDB_VG/kittud/datafile/a_txn_data14.dbf
datafile 60 switched to datafile copy input datafile copy RECID=150 STAMP=816502972 file name=+DEVDB_VG/kittud/datafile/usersx07.dbf
datafile 61 switched to datafile copy input datafile copy RECID=151 STAMP=816502972 file name=+DEVDB_VG/kittud/datafile/usersx08.dbf
datafile 62 switched to datafile copy input datafile copy RECID=152 STAMP=816502972 file name=+DEVDB_VG/kittud/datafile/a_txn_ind10.dbf
datafile 63 switched to datafile copy input datafile copy RECID=153 STAMP=816502972 file name=+DEVDB_VG/kittud/datafile/a_txn_ind11.dbf
datafile 64 switched to datafile copy input datafile copy RECID=154 STAMP=816502972 file name=+DEVDB_VG/kittud/datafile/a_txn_data15.dbf
datafile 65 switched to datafile copy input datafile copy RECID=155 STAMP=816502973 file name=+DEVDB_VG/kittud/datafile/a_txn_data16.dbf
datafile 66 switched to datafile copy input datafile copy RECID=156 STAMP=816502973 file name=+DEVDB_VG/kittud/datafile/undo09.dbf
datafile 288 switched to datafile copy input datafile copy RECID=157 STAMP=816502973 file name=+DEVDB_VG/kittud/datafile/system10.dbf
datafile 295 switched to datafile copy input datafile copy RECID=158 STAMP=816502973 file name=+DEVDB_VG/kittud/datafile/system06.dbf
datafile 314 switched to datafile copy input datafile copy RECID=159 STAMP=816502973 file name=+DEVDB_VG/kittud/datafile/portal01.dbf
datafile 351 switched to datafile copy input datafile copy RECID=160 STAMP=816502974 file name=+DEVDB_VG/kittud/datafile/system07.dbf
datafile 352 switched to datafile copy input datafile copy RECID=161 STAMP=816502974 file name=+DEVDB_VG/kittud/datafile/system09.dbf
datafile 353 switched to datafile copy input datafile copy RECID=162 STAMP=816502974 file name=+DEVDB_VG/kittud/datafile/system08.dbf
datafile 354 switched to datafile copy input datafile copy RECID=163 STAMP=816502974 file name=+DEVDB_VG/kittud/datafile/system11.dbf
datafile 379 switched to datafile copy input datafile copy RECID=164 STAMP=816502974 file name=+DEVDB_VG/kittud/datafile/undo01.dbf
datafile 392 switched to datafile copy input datafile copy RECID=165 STAMP=816502975 file name=+DEVDB_VG/kittud/datafile/a_txn_data01.dbf
datafile 393 switched to datafile copy input datafile copy RECID=166 STAMP=816502975 file name=+DEVDB_VG/kittud/datafile/a_txn_ind01.dbf
datafile 394 switched to datafile copy input datafile copy RECID=167 STAMP=816502975 file name=+DEVDB_VG/kittud/datafile/a_ref01.dbf
datafile 395 switched to datafile copy input datafile copy RECID=168 STAMP=816502975 file name=+DEVDB_VG/kittud/datafile/a_int01.dbf
datafile 396 switched to datafile copy input datafile copy RECID=169 STAMP=816502975 file name=+DEVDB_VG/kittud/datafile/a_summ01.dbf
datafile 397 switched to datafile copy input datafile copy RECID=170 STAMP=816502976 file name=+DEVDB_VG/kittud/datafile/a_nolog01.dbf
datafile 398 switched to datafile copy input datafile copy RECID=171 STAMP=816502976 file name=+DEVDB_VG/kittud/datafile/a_archive01.dbf
datafile 399 switched to datafile copy input datafile copy RECID=172 STAMP=816502976 file name=+DEVDB_VG/kittud/datafile/a_queue01.dbf
datafile 400 switched to datafile copy input datafile copy RECID=173 STAMP=816502976 file name=+DEVDB_VG/kittud/datafile/a_media01.dbf
datafile 401 switched to datafile copy input datafile copy RECID=174 STAMP=816502976 file name=+DEVDB_VG/kittud/datafile/a_txn_data02.dbf
datafile 402 switched to datafile copy input datafile copy RECID=175 STAMP=816502976 file name=+DEVDB_VG/kittud/datafile/a_txn_data03.dbf
datafile 403 switched to datafile copy input datafile copy RECID=176 STAMP=816502977 file name=+DEVDB_VG/kittud/datafile/a_txn_ind02.dbf
datafile 404 switched to datafile copy input datafile copy RECID=177 STAMP=816502977 file name=+DEVDB_VG/kittud/datafile/a_txn_ind03.dbf
datafile 405 switched to datafile copy input datafile copy RECID=178 STAMP=816502977 file name=+DEVDB_VG/kittud/datafile/a_txn_ind04.dbf
datafile 406 switched to datafile copy input datafile copy RECID=179 STAMP=816502977 file name=+DEVDB_VG/kittud/datafile/a_txn_ind05.dbf
datafile 407 switched to datafile copy input datafile copy RECID=180 STAMP=816502977 file name=+DEVDB_VG/kittud/datafile/a_ref02.dbf
contents of Memory Script:

set until time “to_date(‘MAY 19 2013 20:30:00’, ‘MON DD YYYY HH24:MI:SS’)”;
recover
clone database
delete archivelog
;
}
executing Memory Script

executing command: SET until clause

Starting recover at 27-MAY-13

starting media recovery

archived log for thread 1 with sequence 36904 is already on disk as file /backup/oracle/kittud/oracle/kittud1/full/log_36904_1_776114253.arc
archived log for thread 1 with sequence 36905 is already on disk as file /backup/oracle/kittud/oracle/kittud1/full/log_36905_1_776114253.arc
archived log for thread 1 with sequence 36906 is already on disk as file /backup/oracle/kittud/oracle/kittud1/full/log_36906_1_776114253.arc
archived log for thread 2 with sequence 34858 is already on disk as file /backup/oracle/kittud/oracle/kittud1/full/log_34858_2_776114253.arc
archived log for thread 2 with sequence 34859 is already on disk as file /backup/oracle/kittud/oracle/kittud1/full/log_34859_2_776114253.arc
archived log for thread 2 with sequence 34860 is already on disk as file /backup/oracle/kittud/oracle/kittud1/full/log_34860_2_776114253.arc
archived log for thread 3 with sequence 34521 is already on disk as file /backup/oracle/kittud/oracle/kittud1/full/log_34521_3_776114253.arc
archived log for thread 3 with sequence 34522 is already on disk as file /backup/oracle/kittud/oracle/kittud1/full/log_34522_3_776114253.arc
archived log for thread 3 with sequence 34523 is already on disk as file /backup/oracle/kittud/oracle/kittud1/full/log_34523_3_776114253.arc
archived log file name=/backup/oracle/kittud/oracle/kittud1/full/log_36904_1_776114253.arc thread=1 sequence=36904
archived log file name=/backup/oracle/kittud/oracle/kittud1/full/log_34858_2_776114253.arc thread=2 sequence=34858
archived log file name=/backup/oracle/kittud/oracle/kittud1/full/log_34521_3_776114253.arc thread=3 sequence=34521
archived log file name=/backup/oracle/kittud/oracle/kittud1/full/log_34859_2_776114253.arc thread=2 sequence=34859
archived log file name=/backup/oracle/kittud/oracle/kittud1/full/log_34522_3_776114253.arc thread=3 sequence=34522
archived log file name=/backup/oracle/kittud/oracle/kittud1/full/log_36905_1_776114253.arc thread=1 sequence=36905
archived log file name=/backup/oracle/kittud/oracle/kittud1/full/log_36906_1_776114253.arc thread=1 sequence=36906
archived log file name=/backup/oracle/kittud/oracle/kittud1/full/log_34860_2_776114253.arc thread=2 sequence=34860
archived log file name=/backup/oracle/kittud/oracle/kittud1/full/log_34523_3_776114253.arc thread=3 sequence=34523
media recovery complete, elapsed time: 00:00:08
Finished recover at 27-MAY-13
Oracle instance started

Total System Global Area 4275781632 bytes

Fixed Size 2235208 bytes
Variable Size 2181039288 bytes
Database Buffers 2063597568 bytes
Redo Buffers 28909568 bytes

contents of Memory Script:
{
sql clone “alter system set db_name =
”kittud” comment=
”Reset to original value by RMAN” scope=spfile”;
sql clone “alter system reset db_unique_name scope=spfile”;
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script

sql statement: alter system set db_name = ”kittud” comment= ”Reset to original value by RMAN” scope=spfile

sql statement: alter system reset db_unique_name scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area 4275781632 bytes

Fixed Size 2235208 bytes
Variable Size 2181039288 bytes
Database Buffers 2063597568 bytes
Redo Buffers 28909568 bytes
allocated channel: DUP1
channel DUP1: SID=605 device type=DISK
allocated channel: DUP2
channel DUP2: SID=672 device type=DISK
allocated channel: DUP3
channel DUP3: SID=739 device type=DISK
allocated channel: DUP4
channel DUP4: SID=873 device type=DISK
allocated channel: DUP5
channel DUP5: SID=940 device type=DISK
allocated channel: DUP6
channel DUP6: SID=1007 device type=DISK
sql statement: CREATE CONTROLFILE REUSE SET DATABASE “kittud” RESETLOGS ARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 5
MAXDATAFILES 512
MAXINSTANCES 8
MAXLOGHISTORY 16360
LOGFILE
GROUP 1 ( ‘+DEV_REDOA_VG/kittud/redog1t1a.log’, ‘+DEV_REDOB_VG/kittud/redog1t1b.log’ ) SIZE 300 M REUSE,
GROUP 2 ( ‘+DEV_REDOB_VG/kittud/redog2t1b.log’, ‘+DEV_REDOA_VG/kittud/redog2t1a.log’ ) SIZE 300 M REUSE,
GROUP 3 ( ‘+DEV_REDOA_VG/kittud/redog3t1a.log’, ‘+DEV_REDOB_VG/kittud/redog3t1b.log’ ) SIZE 300 M REUSE,
GROUP 4 ( ‘+DEV_REDOB_VG/kittud/redog4t1b.log’, ‘+DEV_REDOA_VG/kittud/redog4t1a.log’ ) SIZE 300 M REUSE,
GROUP 5 ( ‘+DEV_REDOB_VG/kittud/redog5t1b.log’, ‘+DEV_REDOA_VG/kittud/redog5t1a.log’ ) SIZE 300 M REUSE
DATAFILE
‘+DEVDB_VG/kittud/datafile/system01.dbf’
CHARACTER SET WE8ISO8859P1

sql statement: ALTER DATABASE ADD LOGFILE

INSTANCE ‘i2’
GROUP 6 ( ‘+DEV_REDOB_VG/kittud/redog6t2b.log’, ‘+DEV_REDOA_VG/kittud/redog6t2a.log’ ) SIZE 300 M REUSE,
GROUP 7 ( ‘+DEV_REDOA_VG/kittud/redog7t2a.log’, ‘+DEV_REDOB_VG/kittud/redog7t2b.log’ ) SIZE 300 M REUSE,
GROUP 8 ( ‘+DEV_REDOA_VG/kittud/redog8t2a.log’, ‘+DEV_REDOB_VG/kittud/redog8t2b.log’ ) SIZE 300 M REUSE,
GROUP 9 ( ‘+DEV_REDOB_VG/kittud/redog9t2b.log’, ‘+DEV_REDOA_VG/kittud/redog9t2a.log’ ) SIZE 300 M REUSE,
GROUP 10 ( ‘+DEV_REDOA_VG/kittud/redog10t2a.log’, ‘+DEV_REDOB_VG/kittud/redog10t2b.log’ ) SIZE 300 M REUSE
sql statement: ALTER DATABASE ADD LOGFILE

INSTANCE ‘i3’
GROUP 11 ( ‘+DEV_REDOA_VG/kittud/redog11t3a.log’, ‘+DEV_REDOB_VG/kittud/redog11t3b.log’ ) SIZE 300 M REUSE,
GROUP 12 ( ‘+DEV_REDOA_VG/kittud/redog12t3a.log’, ‘+DEV_REDOB_VG/kittud/redog12t3b.log’ ) SIZE 300 M REUSE,
GROUP 13 ( ‘+DEV_REDOB_VG/kittud/redog13t3b.log’, ‘+DEV_REDOA_VG/kittud/redog13t3a.log’ ) SIZE 300 M REUSE,
GROUP 14 ( ‘+DEV_REDOB_VG/kittud/redog14t3b.log’, ‘+DEV_REDOA_VG/kittud/redog14t3a.log’ ) SIZE 300 M REUSE,
GROUP 15 ( ‘+DEV_REDOB_VG/kittud/redog15t3b.log’, ‘+DEV_REDOA_VG/kittud/redog15t3a.log’ ) SIZE 300 M REUSE

contents of Memory Script:
{
set newname for tempfile 1 to
“+DEVDB_VG/kittud/tempfiletemp04.dbf”;
set newname for tempfile 2 to
“+DEVDB_VG/kittud/tempfiletemp03.dbf”;
set newname for tempfile 3 to
“+DEVDB_VG/kittud/tempfiletemp02.dbf”;
set newname for tempfile 4 to
“+DEVDB_VG/kittud/tempfiletemp01.dbf”;
switch clone tempfile all;
catalog clone datafilecopy “+DEVDB_VG/kittud/datafile/system02.dbf”,
“+DEVDB_VG/kittud/datafile/system03.dbf”,
“+DEVDB_VG/kittud/datafile/system04.dbf”,
“+DEVDB_VG/kittud/datafile/system05.dbf”,
“+DEVDB_VG/kittud/datafile/ctxd01.dbf”,
“+DEVDB_VG/kittud/datafile/owad01.dbf”,
“+DEVDB_VG/kittud/datafile/a_queue02.dbf”,
“+DEVDB_VG/kittud/datafile/odm.dbf”,
“+DEVDB_VG/kittud/datafile/olap.dbf”,
“+DEVDB_VG/kittud/datafile/users01.dbf”,
“+DEVDB_VG/kittud/datafile/usersx01.dbf”,
“+DEVDB_VG/kittud/datafile/discoverer01.dbf”,
“+DEVDB_VG/kittud/datafile/sysaux01.dbf”,
“+DEVDB_VG/kittud/datafile/tools01.dbf”,
“+DEVDB_VG/kittud/datafile/a_tools01.dbf”,
“+DEVDB_VG/kittud/datafile/undo02.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data04.dbf”,
“+DEVDB_VG/kittud/datafile/undo03.dbf”,
“+DEVDB_VG/kittud/datafile/undo04.dbf”,
“+DEVDB_VG/kittud/datafile/users02.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data05.dbf”,
“+DEVDB_VG/kittud/datafile/usersx02.dbf”,
“+DEVDB_VG/kittud/datafile/users03.dbf”,
“+DEVDB_VG/kittud/datafile/users04.dbf”,
“+DEVDB_VG/kittud/datafile/users05.dbf”,
“+DEVDB_VG/kittud/datafile/users06.dbf”,
“+DEVDB_VG/kittud/datafile/users07.dbf”,
“+DEVDB_VG/kittud/datafile/users08.dbf”,
“+DEVDB_VG/kittud/datafile/users09.dbf”,
“+DEVDB_VG/kittud/datafile/users10.dbf”,
“+DEVDB_VG/kittud/datafile/users11.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data06.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_ind06.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data07.dbf”,
“+DEVDB_VG/kittud/datafile/a_int02.dbf”,
“+DEVDB_VG/kittud/datafile/usersx03.dbf”,
“+DEVDB_VG/kittud/datafile/users12.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data08.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data09.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_ind07.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data10.dbf”,
“+DEVDB_VG/kittud/datafile/users13.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_ind08.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data11.dbf”,
“+DEVDB_VG/kittud/datafile/users14.dbf”,
“+DEVDB_VG/kittud/datafile/usersx04.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_ind09.dbf”,
“+DEVDB_VG/kittud/datafile/users15.dbf”,
“+DEVDB_VG/kittud/datafile/usersx05.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data12.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data13.dbf”,
“+DEVDB_VG/kittud/datafile/undo05.dbf”,
“+DEVDB_VG/kittud/datafile/undo06.dbf”,
“+DEVDB_VG/kittud/datafile/undo07.dbf”,
“+DEVDB_VG/kittud/datafile/undo08.dbf”,
“+DEVDB_VG/kittud/datafile/usersx06.dbf”,
“+DEVDB_VG/kittud/datafile/sysaux02.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data14.dbf”,
“+DEVDB_VG/kittud/datafile/usersx07.dbf”,
“+DEVDB_VG/kittud/datafile/usersx08.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_ind10.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_ind11.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data15.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data16.dbf”,
“+DEVDB_VG/kittud/datafile/undo09.dbf”,
“+DEVDB_VG/kittud/datafile/system10.dbf”,
“+DEVDB_VG/kittud/datafile/system06.dbf”,
“+DEVDB_VG/kittud/datafile/portal01.dbf”,
“+DEVDB_VG/kittud/datafile/system07.dbf”,
“+DEVDB_VG/kittud/datafile/system09.dbf”,
“+DEVDB_VG/kittud/datafile/system08.dbf”,
“+DEVDB_VG/kittud/datafile/system11.dbf”,
“+DEVDB_VG/kittud/datafile/undo01.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data01.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_ind01.dbf”,
“+DEVDB_VG/kittud/datafile/a_ref01.dbf”,
“+DEVDB_VG/kittud/datafile/a_int01.dbf”,
“+DEVDB_VG/kittud/datafile/a_summ01.dbf”,
“+DEVDB_VG/kittud/datafile/a_nolog01.dbf”,
“+DEVDB_VG/kittud/datafile/a_archive01.dbf”,
“+DEVDB_VG/kittud/datafile/a_queue01.dbf”,
“+DEVDB_VG/kittud/datafile/a_media01.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data02.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_data03.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_ind02.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_ind03.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_ind04.dbf”,
“+DEVDB_VG/kittud/datafile/a_txn_ind05.dbf”,
“+DEVDB_VG/kittud/datafile/a_ref02.dbf”;
switch clone datafile all;
}
executing Memory Script

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

renamed tempfile 1 to +DEVDB_VG/kittud/tempfiletemp04.dbf in control file
renamed tempfile 2 to +DEVDB_VG/kittud/tempfiletemp03.dbf in control file
renamed tempfile 3 to +DEVDB_VG/kittud/tempfiletemp02.dbf in control file
renamed tempfile 4 to +DEVDB_VG/kittud/tempfiletemp01.dbf in control file

cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/system02.dbf RECID=1 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/system03.dbf RECID=2 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/system04.dbf RECID=3 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/system05.dbf RECID=4 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/ctxd01.dbf RECID=5 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/owad01.dbf RECID=6 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_queue02.dbf RECID=7 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/odm.dbf RECID=8 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/olap.dbf RECID=9 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users01.dbf RECID=10 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/usersx01.dbf RECID=11 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/discoverer01.dbf RECID=12 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/sysaux01.dbf RECID=13 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/tools01.dbf RECID=14 STAMP=816503098
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_tools01.dbf RECID=15 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/undo02.dbf RECID=16 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data04.dbf RECID=17 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/undo03.dbf RECID=18 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/undo04.dbf RECID=19 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users02.dbf RECID=20 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data05.dbf RECID=21 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/usersx02.dbf RECID=22 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users03.dbf RECID=23 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users04.dbf RECID=24 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users05.dbf RECID=25 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users06.dbf RECID=26 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users07.dbf RECID=27 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users08.dbf RECID=28 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users09.dbf RECID=29 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users10.dbf RECID=30 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users11.dbf RECID=31 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data06.dbf RECID=32 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_ind06.dbf RECID=33 STAMP=816503099
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data07.dbf RECID=34 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_int02.dbf RECID=35 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/usersx03.dbf RECID=36 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users12.dbf RECID=37 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data08.dbf RECID=38 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data09.dbf RECID=39 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_ind07.dbf RECID=40 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data10.dbf RECID=41 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users13.dbf RECID=42 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_ind08.dbf RECID=43 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data11.dbf RECID=44 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users14.dbf RECID=45 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/usersx04.dbf RECID=46 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_ind09.dbf RECID=47 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/users15.dbf RECID=48 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/usersx05.dbf RECID=49 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data12.dbf RECID=50 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data13.dbf RECID=51 STAMP=816503100
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/undo05.dbf RECID=52 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/undo06.dbf RECID=53 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/undo07.dbf RECID=54 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/undo08.dbf RECID=55 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/usersx06.dbf RECID=56 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/sysaux02.dbf RECID=57 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data14.dbf RECID=58 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/usersx07.dbf RECID=59 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/usersx08.dbf RECID=60 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_ind10.dbf RECID=61 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_ind11.dbf RECID=62 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data15.dbf RECID=63 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data16.dbf RECID=64 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/undo09.dbf RECID=65 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/system10.dbf RECID=66 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/system06.dbf RECID=67 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/portal01.dbf RECID=68 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/system07.dbf RECID=69 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/system09.dbf RECID=70 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/system08.dbf RECID=71 STAMP=816503101
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/system11.dbf RECID=72 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/undo01.dbf RECID=73 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data01.dbf RECID=74 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_ind01.dbf RECID=75 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_ref01.dbf RECID=76 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_int01.dbf RECID=77 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_summ01.dbf RECID=78 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_nolog01.dbf RECID=79 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_archive01.dbf RECID=80 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_queue01.dbf RECID=81 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_media01.dbf RECID=82 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data02.dbf RECID=83 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_data03.dbf RECID=84 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_ind02.dbf RECID=85 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_ind03.dbf RECID=86 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_ind04.dbf RECID=87 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_txn_ind05.dbf RECID=88 STAMP=816503102
cataloged datafile copy datafile copy file name=+DEVDB_VG/kittud/datafile/a_ref02.dbf RECID=89 STAMP=816503103
datafile 2 switched to datafile copy input datafile copy RECID=1 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/system02.dbf
datafile 3 switched to datafile copy input datafile copy RECID=2 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/system03.dbf
datafile 4 switched to datafile copy input datafile copy RECID=3 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/system04.dbf
datafile 5 switched to datafile copy input datafile copy RECID=4 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/system05.dbf
datafile 6 switched to datafile copy input datafile copy RECID=5 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/ctxd01.dbf
datafile 7 switched to datafile copy input datafile copy RECID=6 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/owad01.dbf
datafile 8 switched to datafile copy input datafile copy RECID=7 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/a_queue02.dbf
datafile 9 switched to datafile copy input datafile copy RECID=8 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/odm.dbf
datafile 10 switched to datafile copy input datafile copy RECID=9 STAMP=81503098 file name=+DEVDB_VG/kittud/datafile/olap.dbf
datafile 11 switched to datafile copy input datafile copy RECID=10 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/users01.dbf
datafile 12 switched to datafile copy input datafile copy RECID=11 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/usersx01.dbf
datafile 13 switched to datafile copy input datafile copy RECID=12 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/discoverer01.dbf
datafile 14 switched to datafile copy input datafile copy RECID=13 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/sysaux01.dbf
datafile 15 switched to datafile copy input datafile copy RECID=14 STAMP=816503098 file name=+DEVDB_VG/kittud/datafile/tools01.dbf
datafile 16 switched to datafile copy input datafile copy RECID=15 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/a_tools01.dbf
datafile 17 switched to datafile copy input datafile copy RECID=16 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/undo02.dbf
datafile 18 switched to datafile copy input datafile copy RECID=17 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/a_txn_data04.dbf
datafile 19 switched to datafile copy input datafile copy RECID=18 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/undo03.dbf
datafile 20 switched to datafile copy input datafile copy RECID=19 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/undo04.dbf
datafile 21 switched to datafile copy input datafile copy RECID=20 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/users02.dbf
datafile 22 switched to datafile copy input datafile copy RECID=21 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/a_txn_data05.dbf
datafile 23 switched to datafile copy input datafile copy RECID=22 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/usersx02.dbf
datafile 24 switched to datafile copy input datafile copy RECID=23 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/users03.dbf
datafile 25 switched to datafile copy input datafile copy RECID=24 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/users04.dbf
datafile 26 switched to datafile copy input datafile copy RECID=25 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/users05.dbf
datafile 27 switched to datafile copy input datafile copy RECID=26 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/users06.dbf
datafile 28 switched to datafile copy input datafile copy RECID=27 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/users07.dbf
datafile 29 switched to datafile copy input datafile copy RECID=28 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/users08.dbf
datafile 30 switched to datafile copy input datafile copy RECID=29 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/users09.dbf
datafile 31 switched to datafile copy input datafile copy RECID=30 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/users10.dbf
datafile 32 switched to datafile copy input datafile copy RECID=31 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/users11.dbf
datafile 33 switched to datafile copy input datafile copy RECID=32 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/a_txn_data06.dbf
datafile 34 switched to datafile copy input datafile copy RECID=33 STAMP=816503099 file name=+DEVDB_VG/kittud/datafile/a_txn_ind06.dbf
datafile 35 switched to datafile copy input datafile copy RECID=34 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/a_txn_data07.dbf
datafile 36 switched to datafile copy input datafile copy RECID=35 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/a_int02.dbf
datafile 37 switched to datafile copy input datafile copy RECID=36 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/usersx03.dbf
datafile 38 switched to datafile copy input datafile copy RECID=37 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/users12.dbf
datafile 39 switched to datafile copy input datafile copy RECID=38 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/a_txn_data08.dbf
datafile 40 switched to datafile copy input datafile copy RECID=39 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/a_txn_data09.dbf
datafile 41 switched to datafile copy input datafile copy RECID=40 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/a_txn_ind07.dbf
datafile 42 switched to datafile copy input datafile copy RECID=41 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/a_txn_data10.dbf
datafile 43 switched to datafile copy input datafile copy RECID=42 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/users13.dbf
datafile 44 switched to datafile copy input datafile copy RECID=43 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/a_txn_ind08.dbf
datafile 45 switched to datafile copy input datafile copy RECID=44 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/a_txn_data11.dbf
datafile 46 switched to datafile copy input datafile copy RECID=45 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/users14.dbf
datafile 47 switched to datafile copy input datafile copy RECID=46 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/usersx04.dbf
datafile 48 switched to datafile copy input datafile copy RECID=47 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/a_txn_ind09.dbf
datafile 49 switched to datafile copy input datafile copy RECID=48 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/users15.dbf
datafile 50 switched to datafile copy input datafile copy RECID=49 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/usersx05.dbf
datafile 51 switched to datafile copy input datafile copy RECID=50 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/a_txn_data12.dbf
datafile 52 switched to datafile copy input datafile copy RECID=51 STAMP=816503100 file name=+DEVDB_VG/kittud/datafile/a_txn_data13.dbf
datafile 53 switched to datafile copy input datafile copy RECID=52 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/undo05.dbf
datafile 54 switched to datafile copy input datafile copy RECID=53 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/undo06.dbf
datafile 55 switched to datafile copy input datafile copy RECID=54 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/undo07.dbf
datafile 56 switched to datafile copy input datafile copy RECID=55 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/undo08.dbf
datafile 57 switched to datafile copy input datafile copy RECID=56 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/usersx06.dbf
datafile 58 switched to datafile copy input datafile copy RECID=57 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/sysaux02.dbf
datafile 59 switched to datafile copy input datafile copy RECID=58 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/a_txn_data14.dbf
datafile 60 switched to datafile copy input datafile copy RECID=59 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/usersx07.dbf
datafile 61 switched to datafile copy input datafile copy RECID=60 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/usersx08.dbf
datafile 62 switched to datafile copy input datafile copy RECID=61 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/a_txn_ind10.dbf
datafile 63 switched to datafile copy input datafile copy RECID=62 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/a_txn_ind11.dbf
datafile 64 switched to datafile copy input datafile copy RECID=63 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/a_txn_data15.dbf
datafile 65 switched to datafile copy input datafile copy RECID=64 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/a_txn_data16.dbf
datafile 66 switched to datafile copy input datafile copy RECID=65 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/undo09.dbf
datafile 288 switched to datafile copy input datafile copy RECID=66 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/system10.dbf
datafile 295 switched to datafile copy input datafile copy RECID=67 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/system06.dbf
datafile 314 switched to datafile copy input datafile copy RECID=68 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/portal01.dbf
datafile 351 switched to datafile copy input datafile copy RECID=69 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/system07.dbf
datafile 352 switched to datafile copy input datafile copy RECID=70 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/system09.dbf
datafile 353 switched to datafile copy input datafile copy RECID=71 STAMP=816503101 file name=+DEVDB_VG/kittud/datafile/system08.dbf
datafile 354 switched to datafile copy input datafile copy RECID=72 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/system11.dbf
datafile 379 switched to datafile copy input datafile copy RECID=73 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/undo01.dbf
datafile 392 switched to datafile copy input datafile copy RECID=74 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_txn_data01.dbf
datafile 393 switched to datafile copy input datafile copy RECID=75 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_txn_ind01.dbf
datafile 394 switched to datafile copy input datafile copy RECID=76 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_ref01.dbf
datafile 395 switched to datafile copy input datafile copy RECID=77 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_int01.dbf
datafile 396 switched to datafile copy input datafile copy RECID=78 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_summ01.dbf
datafile 397 switched to datafile copy input datafile copy RECID=79 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_nolog01.dbf
datafile 398 switched to datafile copy input datafile copy RECID=80 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_archive01.dbf
datafile 399 switched to datafile copy input datafile copy RECID=81 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_queue01.dbf
datafile 400 switched to datafile copy input datafile copy RECID=82 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_media01.dbf
datafile 401 switched to datafile copy input datafile copy RECID=83 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_txn_data02.dbf
datafile 402 switched to datafile copy input datafile copy RECID=84 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_txn_data03.dbf
datafile 403 switched to datafile copy input datafile copy RECID=85 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_txn_ind02.dbf
datafile 404 switched to datafile copy input datafile copy RECID=86 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_txn_ind03.dbf
datafile 405 switched to datafile copy input datafile copy RECID=87 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_txn_ind04.dbf
datafile 406 switched to datafile copy input datafile copy RECID=88 STAMP=816503102 file name=+DEVDB_VG/kittud/datafile/a_txn_ind05.dbf
datafile 407 switched to datafile copy input datafile copy RECID=89 STAMP=816503103 file name=+DEVDB_VG/kittud/datafile/a_ref02.dbf
Reenabling controlfile options for auxiliary database
Executing: alter database force logging

contents of Memory Script:
{
Alter clone database open resetlogs;
}
executing Memory Script

database opened
Finished Duplicate Db at 27-MAY-13
released channel: DUP1
released channel: DUP2
released channel: DUP3
released channel: DUP4
released channel: DUP5
released channel: DUP6

Recovery Manager complete.
kittudev01[kittud1]_oracle>


verify the database and locations

kittudev01[kittud1]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Mon May 27 06:26:54 2013

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> set lines 180
SQL> set pages 300
SQL> col FILE_NAME for a70

SQL> select NAME,LOG_MODE,CREATED,OPEN_MODE from v$database;

NAME LOG_MODE CREATED OPEN_MODE
——— ———— ——— ——————–
kittud ARCHIVELOG 27-MAY-13 READ WRITE

SQL> select INSTANCE_NAME,STATUS,STARTUP_TIME fr ,LOGINS from v$instance;

INSTANCE_NAME STATUS FR LOGINS
—————- ———— ——— ———-
kittud1 OPEN 27-MAY-13 ALLOWED

SQL>

SQL> select name from v$controlfile;

NAME
——————————————————————————–
+DEV_REDOA_VG/kittud/control/cntrl01.ctl
+DEV_REDOB_VG/kittud/control/cntrl02.ctl

SQL> select name from v$datafile;

NAME
——————————————————————————–
+DEVDB_VG/kittud/datafile/system01.dbf
+DEVDB_VG/kittud/datafile/system02.dbf
+DEVDB_VG/kittud/datafile/system03.dbf
+DEVDB_VG/kittud/datafile/system04.dbf
+DEVDB_VG/kittud/datafile/system05.dbf
+DEVDB_VG/kittud/datafile/ctxd01.dbf
+DEVDB_VG/kittud/datafile/owad01.dbf
+DEVDB_VG/kittud/datafile/a_queue02.dbf
+DEVDB_VG/kittud/datafile/odm.dbf
+DEVDB_VG/kittud/datafile/olap.dbf
+DEVDB_VG/kittud/datafile/users01.dbf
+DEVDB_VG/kittud/datafile/usersx01.dbf
+DEVDB_VG/kittud/datafile/discoverer01.dbf
+DEVDB_VG/kittud/datafile/sysaux01.dbf
+DEVDB_VG/kittud/datafile/tools01.dbf
+DEVDB_VG/kittud/datafile/a_tools01.dbf
+DEVDB_VG/kittud/datafile/undo02.dbf
+DEVDB_VG/kittud/datafile/a_txn_data04.dbf
+DEVDB_VG/kittud/datafile/undo03.dbf
+DEVDB_VG/kittud/datafile/undo04.dbf
+DEVDB_VG/kittud/datafile/users02.dbf
+DEVDB_VG/kittud/datafile/a_txn_data05.dbf
+DEVDB_VG/kittud/datafile/usersx02.dbf
+DEVDB_VG/kittud/datafile/users03.dbf
+DEVDB_VG/kittud/datafile/users04.dbf
+DEVDB_VG/kittud/datafile/users05.dbf
+DEVDB_VG/kittud/datafile/users06.dbf
+DEVDB_VG/kittud/datafile/users07.dbf
+DEVDB_VG/kittud/datafile/users08.dbf
+DEVDB_VG/kittud/datafile/users09.dbf
+DEVDB_VG/kittud/datafile/users10.dbf
+DEVDB_VG/kittud/datafile/users11.dbf
+DEVDB_VG/kittud/datafile/a_txn_data06.dbf
+DEVDB_VG/kittud/datafile/a_txn_ind06.dbf
+DEVDB_VG/kittud/datafile/a_txn_data07.dbf
+DEVDB_VG/kittud/datafile/a_int02.dbf
+DEVDB_VG/kittud/datafile/usersx03.dbf
+DEVDB_VG/kittud/datafile/users12.dbf
+DEVDB_VG/kittud/datafile/a_txn_data08.dbf
+DEVDB_VG/kittud/datafile/a_txn_data09.dbf
+DEVDB_VG/kittud/datafile/a_txn_ind07.dbf
+DEVDB_VG/kittud/datafile/a_txn_data10.dbf
+DEVDB_VG/kittud/datafile/users13.dbf
+DEVDB_VG/kittud/datafile/a_txn_ind08.dbf
+DEVDB_VG/kittud/datafile/a_txn_data11.dbf
+DEVDB_VG/kittud/datafile/users14.dbf
+DEVDB_VG/kittud/datafile/usersx04.dbf
+DEVDB_VG/kittud/datafile/a_txn_ind09.dbf
+DEVDB_VG/kittud/datafile/users15.dbf
+DEVDB_VG/kittud/datafile/usersx05.dbf
+DEVDB_VG/kittud/datafile/a_txn_data12.dbf
+DEVDB_VG/kittud/datafile/a_txn_data13.dbf
+DEVDB_VG/kittud/datafile/undo05.dbf
+DEVDB_VG/kittud/datafile/undo06.dbf
+DEVDB_VG/kittud/datafile/undo07.dbf
+DEVDB_VG/kittud/datafile/undo08.dbf
+DEVDB_VG/kittud/datafile/usersx06.dbf
+DEVDB_VG/kittud/datafile/sysaux02.dbf
+DEVDB_VG/kittud/datafile/a_txn_data14.dbf
+DEVDB_VG/kittud/datafile/usersx07.dbf
+DEVDB_VG/kittud/datafile/usersx08.dbf
+DEVDB_VG/kittud/datafile/a_txn_ind10.dbf
+DEVDB_VG/kittud/datafile/a_txn_ind11.dbf
+DEVDB_VG/kittud/datafile/a_txn_data15.dbf
+DEVDB_VG/kittud/datafile/a_txn_data16.dbf
+DEVDB_VG/kittud/datafile/undo09.dbf
+DEVDB_VG/kittud/datafile/system10.dbf
+DEVDB_VG/kittud/datafile/system06.dbf
+DEVDB_VG/kittud/datafile/portal01.dbf
+DEVDB_VG/kittud/datafile/system07.dbf
+DEVDB_VG/kittud/datafile/system09.dbf
+DEVDB_VG/kittud/datafile/system08.dbf
+DEVDB_VG/kittud/datafile/system11.dbf
+DEVDB_VG/kittud/datafile/undo01.dbf
+DEVDB_VG/kittud/datafile/a_txn_data01.dbf
+DEVDB_VG/kittud/datafile/a_txn_ind01.dbf
+DEVDB_VG/kittud/datafile/a_ref01.dbf
+DEVDB_VG/kittud/datafile/a_int01.dbf
+DEVDB_VG/kittud/datafile/a_summ01.dbf
+DEVDB_VG/kittud/datafile/a_nolog01.dbf
+DEVDB_VG/kittud/datafile/a_archive01.dbf
+DEVDB_VG/kittud/datafile/a_queue01.dbf
+DEVDB_VG/kittud/datafile/a_media01.dbf
+DEVDB_VG/kittud/datafile/a_txn_data02.dbf
+DEVDB_VG/kittud/datafile/a_txn_data03.dbf
+DEVDB_VG/kittud/datafile/a_txn_ind02.dbf
+DEVDB_VG/kittud/datafile/a_txn_ind03.dbf
+DEVDB_VG/kittud/datafile/a_txn_ind04.dbf
+DEVDB_VG/kittud/datafile/a_txn_ind05.dbf
+DEVDB_VG/kittud/datafile/a_ref02.dbf

90 rows selected.

SQL> select member from v$logfile;

MEMBER
——————————————————————————–
+DEV_REDOB_VG/kittud/redog5t1b.log
+DEV_REDOA_VG/kittud/redog5t1a.log
+DEV_REDOB_VG/kittud/redog4t1b.log
+DEV_REDOA_VG/kittud/redog4t1a.log
+DEV_REDOA_VG/kittud/redog3t1a.log
+DEV_REDOB_VG/kittud/redog3t1b.log
+DEV_REDOB_VG/kittud/redog2t1b.log
+DEV_REDOA_VG/kittud/redog2t1a.log
+DEV_REDOA_VG/kittud/redog1t1a.log
+DEV_REDOB_VG/kittud/redog1t1b.log
+DEV_REDOB_VG/kittud/redog6t2b.log
+DEV_REDOA_VG/kittud/redog6t2a.log
+DEV_REDOA_VG/kittud/redog7t2a.log
+DEV_REDOB_VG/kittud/redog7t2b.log
+DEV_REDOA_VG/kittud/redog8t2a.log
+DEV_REDOB_VG/kittud/redog8t2b.log
+DEV_REDOB_VG/kittud/redog9t2b.log
+DEV_REDOA_VG/kittud/redog9t2a.log
+DEV_REDOA_VG/kittud/redog10t2a.log
+DEV_REDOB_VG/kittud/redog10t2b.log
+DEV_REDOA_VG/kittud/redog11t3a.log
+DEV_REDOB_VG/kittud/redog11t3b.log
+DEV_REDOA_VG/kittud/redog12t3a.log
+DEV_REDOB_VG/kittud/redog12t3b.log
+DEV_REDOB_VG/kittud/redog13t3b.log
+DEV_REDOA_VG/kittud/redog13t3a.log
+DEV_REDOB_VG/kittud/redog14t3b.log
+DEV_REDOA_VG/kittud/redog14t3a.log
+DEV_REDOB_VG/kittud/redog15t3b.log
+DEV_REDOA_VG/kittud/redog15t3a.log

30 rows selected.

SQL> select FILE_NAME from dba_temp_files;

FILE_NAME
——————————————————————————–
+DEVDB_VG/kittud/tempfiletemp04.dbf
+DEVDB_VG/kittud/tempfiletemp03.dbf
+DEVDB_VG/kittud/tempfiletemp02.dbf
+DEVDB_VG/kittud/tempfiletemp01.dbf

SQL>


tempfile locations are not correct so drop and recreate it

SQL> set lines 180
SQL> set pages 300
SQL> col FILE_NAME for a70
SQL> select TABLESPACE_NAME,FILE_NAME,BYTES/1024/1024/1024 from dba_temp_files;

TABLESPACE_NAME FILE_NAME BYTES/1024/1024/1024
—————————— ———————————————————————- ——————–
TEMP +DEVDB_VG/kittud/tempfiletemp04.dbf 4
TEMP +DEVDB_VG/kittud/tempfiletemp03.dbf 4
TEMP +DEVDB_VG/kittud/tempfiletemp02.dbf 4
TEMP +DEVDB_VG/kittud/tempfiletemp01.dbf 4

SQL> ALTER TABLESPACE TEMP DROP TEMPFILE ‘+DEVDB_VG/kittud/tempfiletemp01.dbf’;

Tablespace altered.

SQL> ALTER TABLESPACE TEMP DROP TEMPFILE ‘+DEVDB_VG/kittud/tempfiletemp02.dbf’;

Tablespace altered.

SQL> ALTER TABLESPACE TEMP ADD TEMPFILE ‘+DEVDB_VG/kittud/tempfile/temp01.dbf’ SIZE 4G;

Tablespace altered.

SQL> ALTER TABLESPACE TEMP ADD TEMPFILE ‘+DEVDB_VG/kittud/tempfile/temp02.dbf’ SIZE 4G;

Tablespace altered.

SQL> ALTER TABLESPACE TEMP DROP TEMPFILE ‘+DEVDB_VG/kittud/tempfiletemp03.dbf’;

Tablespace altered.

SQL> ALTER TABLESPACE TEMP DROP TEMPFILE ‘+DEVDB_VG/kittud/tempfiletemp04.dbf’;

Tablespace altered.

SQL> ALTER TABLESPACE TEMP ADD TEMPFILE ‘+DEVDB_VG/kittud/tempfile/temp03.dbf’ SIZE 4G;

Tablespace altered.

SQL> ALTER TABLESPACE TEMP ADD TEMPFILE ‘+DEVDB_VG/kittud/tempfile/temp04.dbf’ SIZE 4G;

Tablespace altered.

SQL> select TABLESPACE_NAME,FILE_NAME,BYTES/1024/1024/1024 from dba_temp_files;

TABLESPACE_NAME FILE_NAME BYTES/1024/1024/1024
—————————— ———————————————————————- ——————–
TEMP +DEVDB_VG/kittud/tempfile/temp03.dbf 4
TEMP +DEVDB_VG/kittud/tempfile/temp04.dbf 4
TEMP +DEVDB_VG/kittud/tempfile/temp01.dbf 4
TEMP +DEVDB_VG/kittud/tempfile/temp02.dbf 4

SQL> alter system set cluster_database=TRUE scope=spfile sid=’*’;

System altered.

SQL> shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
kittudev01[kittud1]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Mon May 27 07:19:32 2013

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

Connected to an idle instance.

SQL> startup pfile=’/tmp/kittu/kittud.ora’;
ORACLE instance started.

Total System Global Area 4275781632 bytes
Fixed Size 2235208 bytes
Variable Size 2181039288 bytes
Database Buffers 2063597568 bytes
Redo Buffers 28909568 bytes
Database mounted.
Database opened.

SQL> create SPFILE=’+DEVDB_VG/kittud/spfile/spfilekittud.ora’ from pfile=’/tmp/kittu/kittud.ora’;

File created.

SQL> shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


start the rac database

kittudev01[kittud1]_oracle> srvctl start database -d kittud
kittudev01[kittud1]_oracle> srvctl status database -d kittud
Instance kittud1 is running on node kittudev01
Instance kittud2 is running on node kittudev02
kittudev01[kittud1]_oracle>


run the following scripts to restore passwords ,dblinks and directories

/tmp/custom_passwors.sql
/tmp/db_links.sh
/tmp/dba_directories.sh


common issues while duplicating database


ISSUE 1

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-12528: TNS:listener: all approprii
ate instances are blocking new connections

Recovery Manager complete.

FIX :

RMAN> connect AUXILIARY sys/12345678@kittud

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-12528: TNS:listener: all appropriate instances are blocking new connections

RMAN>

So issue is with AUXILIARY database remote listener so insted of using
use the following to connect via local listener

kittudev01[kittud1]_oracle> cat restore.rvc
connect TARGET sys/87654321@kittup
connect AUXILIARY sys/12345678@kittud
run
{
set until time “to_date(’19-05-2013 20:00:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel DUP1 type disk;
allocate auxiliary channel DUP2 type disk;
allocate auxiliary channel DUP3 type disk;
allocate auxiliary channel DUP4 type disk;
allocate auxiliary channel DUP5 type disk;
allocate auxiliary channel DUP6 type disk;
DUPLICATE TARGET DATABASE TO ‘kittud’ BACKUP LOCATION ‘/backup/oracle/kittud/oracle/kittud1/full’;
}

kittudev01[kittud1]_oracle> cat restore.rvc
connect TARGET sys/87654321@kittup
connect AUXILIARY /
run
{
set until time “to_date(’19-05-2013 20:00:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel DUP1 type disk;
allocate auxiliary channel DUP2 type disk;
allocate auxiliary channel DUP3 type disk;
allocate auxiliary channel DUP4 type disk;
allocate auxiliary channel DUP5 type disk;
allocate auxiliary channel DUP6 type disk;
DUPLICATE TARGET DATABASE TO ‘kittud’ BACKUP LOCATION ‘/backup/oracle/kittud/oracle/kittud1/full’;
}


ISSUE 2

channel DUP1: restoring control file
ORA-19625: error identifying file +PRODDB_VG/kittup/snapshot/snapcf_kittup.f
ORA-17503: ksfdopn:2 Failed to open file +PRODDB_VG/kittup/snapshot/snapcf_kittup.f
ORA-15001: diskgroup “KITTUDB_VG” does not exist or is not mounted
ORA-15001: diskgroup “KITTUDB_VG” does not exist or is not mounted
ORA-19600: input file is control file (+PRODDB_VG/kittup/snapshot/snapcf_kittup.f)
ORA-19601: output file is control file (+DEV_REDOA_VG/kittud/control/cntrl01.ctl
failover to previous backup

released channel: DUP1
released channel: DUP2
released channel: DUP3
released channel: DUP4
released channel: DUP5
released channel: DUP6
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/27/2013 04:56:42
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found – aborting restore
RMAN-06101: no channel to restore a backup or copy of the control file

Recovery Manager complete.

FIX

DONT connect to source database because already producation backup pices are copied to development server
SO if you dont connect to the source database it will not serching for snapshot control file

kittudev01[kittud1]_oracle> cat restore.rvc
connect TARGET sys/87654321@kittup
connect AUXILIARY /
run
{
set until time “to_date(’19-05-2013 20:00:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel DUP1 type disk;
allocate auxiliary channel DUP2 type disk;
allocate auxiliary channel DUP3 type disk;
allocate auxiliary channel DUP4 type disk;
allocate auxiliary channel DUP5 type disk;
allocate auxiliary channel DUP6 type disk;
DUPLICATE TARGET DATABASE TO ‘kittud’ BACKUP LOCATION ‘/backup/oracle/kittud/oracle/kittud1/full’;
}

kittudev01[kittud1]_oracle> cat restore.rvc
connect AUXILIARY /
run
{
set until time “to_date(’19-05-2013 20:00:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel DUP1 type disk;
allocate auxiliary channel DUP2 type disk;
allocate auxiliary channel DUP3 type disk;
allocate auxiliary channel DUP4 type disk;
allocate auxiliary channel DUP5 type disk;
allocate auxiliary channel DUP6 type disk;
DUPLICATE TARGET DATABASE TO ‘kittud’ BACKUP LOCATION ‘/backup/oracle/kittud/oracle/kittud1/full’;
}


ISSUE 3

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/27/2013 05:14:08
RMAN-05501: aborting duplication of target database
RMAN-05575: CONTROLFILE backup created before to_date(’19-05-2013 20:00:00′,’dd-mm-yyyy hh24:mi:ss’) not found in /backup/oracle/kittud/oracle/kittud1/full

fix

Contril file creation time is not matching

19-05-2013 20:00:00 -> 19-05-2013 20:30:00

set until time “to_date(’19-05-2013 20:30:00′,’dd-mm-yyyy hh24:mi:ss’)”;


ISSUE 4

Errors in memory script
RMAN-03015: error occurred in stored script Memory Script
RMAN-06136: ORACLE error from auxiliary database: ORA-01507: database not mounted
ORA-06512: at “SYS.X$DBMS_RCVMAN”, line 13466
ORA-06512: at line 1
RMAN-05501: aborting duplication of target database
RMAN-05517: tempfile +PRODDB_VG/kittup/tempfile/temp01.dbf conflicts with file used by target database
RMAN-05517: tempfile +PRODDB_VG/kittup/tempfile/temp02.dbf conflicts with file used by target database
RMAN-05517: tempfile +PRODDB_VG/kittup/tempfile/temp03.dbf conflicts with file used by target database
RMAN-05517: tempfile +PRODDB_VG/kittup/tempfile/temp04.dbf conflicts with file used by target database
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/27/2013 05:22:11
RMAN-00567: Recovery Manager could not print some error messages

Recovery Manager complete.

fix
temp files location is not mentened in the pfile so added the entry

db_file_name_convert= (‘+PRODDB_VG/kittup/datafile/’,’+DEVDB_VG/kittud/datafile/’,’+PRODDB_VG/kittup/tempfile/’,’+DEVDB_VG/kittud/TEMPFILE/’)

removed all the datafiles and contril files from asm and restared

RAC Database cloning (manual)


Tabke the backup of db links

spool /tmp/db_links.sh
select ‘create database link ‘||db_link||’ connect to ‘||username||’ identified by using ”’||host||”’;’ from dba_db_links;
spool off


Tabke the backup of schema passwords

spool /tmp/custom_passwors.sql
select ‘alter user ‘ || name||’ identified by values ‘||””|| password ||””||’;’ from SYS.USER$ WHERE password is not null;
spool off


Tabke the backup of directory and their privs

spool /tmp/dba_directories.sh
set lines 180
set pages 300
col DIRECTORY_PATH for a70;
select * from dba_directories;
SELECT ‘create or replace directory ‘||DIRECTORY_NAME|| ‘ as ”’|| DIRECTORY_PATH ||”’;’ FROM dba_directories;
Spool off


get the locations of all these files

SQL> select name from v$controlfile;
SQL> select name from v$datafile;
SQL> select FILE_NAME from dba_temp_files;
SQL> select member from v$logfile;


take the pfile backup update pfile with the following parameters

create pfile=’/tmp/initKITTU.ora’ from spfile;

db_name kittu (production backup so db_name should be prod)
db_unique_name KITTU (db_unique_name shuld be development database name)


drop the develpment database

SQL> alter system set cluster_database=false scope=spfile sid=’*’;

System altered.


Stop the rac database

kasarla01[kittu1]_oracle> srvctl stop database -d kittu
kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is not running on node kasarla01
Instance kittu2 is not running on node kasarla02
kasarla01[kittu1]_oracle>

SQL> startup mount restrict;

ORACLE instance started.

Total System Global Area 1.7103E+10 bytes
Fixed Size 2245480 bytes
Variable Size 7952403608 bytes
Database Buffers 9126805504 bytes
Redo Buffers 21708800 bytes
Database mounted.

SQL> startup mount restrict;

ORACLE instance started.

Total System Global Area 1.7103E+10 bytes
Fixed Size 2245480 bytes
Variable Size 7952403608 bytes
Database Buffers 9126805504 bytes
Redo Buffers 21708800 bytes
Database mounted.

SQL> alter system enable restricted session;

System altered.

SQL> drop database;

Database dropped.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


Start the restore

SQL> startup nomount pfile=’/tmp/kittu_before_resotre.ora’;

RMAN> RESTORE CONTROLFILE from ‘/backup/oracle/kittu/oracle/kittu1/control/kittu_02_05_2013_806591096.ctl’;

Starting restore at 27-FEB-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=538 device type=DISK

channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:09
output file name=+KITTU_REDOA_VG/kittu/control/control01.ctl
output file name=+KITTU_REDOB_VG/kittu/control/control02.ctl
Finished restore at 27-FEB-13

RMAN> alter database mount;

database mounted

RMAN> catalog start with ‘/backup/oracle/kittu/oracle/kittu1/full’;


prepare the script for refresh (check the location carefully)

select ‘set newname for datafile ‘||file#||’ to ‘||””||’+KITTUDB_VG/KITTU/datafile/’||SUBSTR(name, INSTR(name, ‘/’, -1) + 1)||””||’;’ from v$datafile;

connect target /
run
{
allocate channel C1 device type disk;
allocate channel C2 device type disk;
allocate channel C3 device type disk;
allocate channel C4 device type disk;
allocate channel C5 device type disk;
allocate channel C6 device type disk;
allocate channel C7 device type disk;
allocate channel C8 device type disk;
set newname for datafile 1 to ‘+KITTUDB_VG/KITTU/datafile/system01.dbf’;
set newname for datafile 2 to ‘+KITTUDB_VG/KITTU/datafile/system02.dbf’;
set newname for datafile 3 to ‘+KITTUDB_VG/KITTU/datafile/system03.dbf’;
set newname for datafile 4 to ‘+KITTUDB_VG/KITTU/datafile/system04.dbf’;
set newname for datafile 5 to ‘+KITTUDB_VG/KITTU/datafile/system05.dbf’;
set newname for datafile 6 to ‘+KITTUDB_VG/KITTU/datafile/ctxd01.dbf’;
set newname for datafile 7 to ‘+KITTUDB_VG/KITTU/datafile/owad01.dbf’;
set newname for datafile 8 to ‘+KITTUDB_VG/KITTU/datafile/a_queue02.dbf’;
set newname for datafile 9 to ‘+KITTUDB_VG/KITTU/datafile/odm.dbf’;
set newname for datafile 10 to ‘+KITTUDB_VG/KITTU/datafile/olap.dbf’;
set newname for datafile 11 to ‘+KITTUDB_VG/KITTU/datafile/users01.dbf’;
set newname for datafile 12 to ‘+KITTUDB_VG/KITTU/datafile/usersx01.dbf’;
set newname for datafile 13 to ‘+KITTUDB_VG/KITTU/datafile/discoverer01.dbf’;
set newname for datafile 14 to ‘+KITTUDB_VG/KITTU/datafile/sysaux01.dbf’;
set newname for datafile 15 to ‘+KITTUDB_VG/KITTU/datafile/tools01.dbf’;
set newname for datafile 16 to ‘+KITTUDB_VG/KITTU/datafile/a_tools01.dbf’;
set newname for datafile 17 to ‘+KITTUDB_VG/KITTU/datafile/undo02.dbf’;
set newname for datafile 18 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data04.dbf’;
set newname for datafile 19 to ‘+KITTUDB_VG/KITTU/datafile/undo03.dbf’;
set newname for datafile 20 to ‘+KITTUDB_VG/KITTU/datafile/undo04.dbf’;
set newname for datafile 21 to ‘+KITTUDB_VG/KITTU/datafile/users02.dbf’;
set newname for datafile 22 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data05.dbf’;
set newname for datafile 23 to ‘+KITTUDB_VG/KITTU/datafile/usersx02.dbf’;
set newname for datafile 24 to ‘+KITTUDB_VG/KITTU/datafile/users03.dbf’;
set newname for datafile 25 to ‘+KITTUDB_VG/KITTU/datafile/users04.dbf’;
set newname for datafile 26 to ‘+KITTUDB_VG/KITTU/datafile/users05.dbf’;
set newname for datafile 27 to ‘+KITTUDB_VG/KITTU/datafile/users06.dbf’;
set newname for datafile 28 to ‘+KITTUDB_VG/KITTU/datafile/users07.dbf’;
set newname for datafile 29 to ‘+KITTUDB_VG/KITTU/datafile/users08.dbf’;
set newname for datafile 30 to ‘+KITTUDB_VG/KITTU/datafile/users09.dbf’;
set newname for datafile 31 to ‘+KITTUDB_VG/KITTU/datafile/users10.dbf’;
set newname for datafile 32 to ‘+KITTUDB_VG/KITTU/datafile/users11.dbf’;
set newname for datafile 33 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data06.dbf’;
set newname for datafile 34 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_ind06.dbf’;
set newname for datafile 35 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data07.dbf’;
set newname for datafile 36 to ‘+KITTUDB_VG/KITTU/datafile/a_int02.dbf’;
set newname for datafile 37 to ‘+KITTUDB_VG/KITTU/datafile/usersx03.dbf’;
set newname for datafile 38 to ‘+KITTUDB_VG/KITTU/datafile/users12.dbf’;
set newname for datafile 39 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data08.dbf’;
set newname for datafile 40 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data09.dbf’;
set newname for datafile 41 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_ind07.dbf’;
set newname for datafile 42 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data10.dbf’;
set newname for datafile 43 to ‘+KITTUDB_VG/KITTU/datafile/users13.dbf’;
set newname for datafile 44 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_ind08.dbf’;
set newname for datafile 45 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data11.dbf’;
set newname for datafile 46 to ‘+KITTUDB_VG/KITTU/datafile/users14.dbf’;
set newname for datafile 47 to ‘+KITTUDB_VG/KITTU/datafile/usersx04.dbf’;
set newname for datafile 48 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_ind09.dbf’;
set newname for datafile 49 to ‘+KITTUDB_VG/KITTU/datafile/users15.dbf’;
set newname for datafile 50 to ‘+KITTUDB_VG/KITTU/datafile/usersx05.dbf’;
set newname for datafile 51 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data12.dbf’;
set newname for datafile 52 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data13.dbf’;
set newname for datafile 53 to ‘+KITTUDB_VG/KITTU/datafile/undo05.dbf’;
set newname for datafile 54 to ‘+KITTUDB_VG/KITTU/datafile/undo06.dbf’;
set newname for datafile 55 to ‘+KITTUDB_VG/KITTU/datafile/undo07.dbf’;
set newname for datafile 56 to ‘+KITTUDB_VG/KITTU/datafile/undo08.dbf’;
set newname for datafile 57 to ‘+KITTUDB_VG/KITTU/datafile/usersx06.dbf’;
set newname for datafile 58 to ‘+KITTUDB_VG/KITTU/datafile/sysaux02.dbf’;
set newname for datafile 59 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data14.dbf’;
set newname for datafile 60 to ‘+KITTUDB_VG/KITTU/datafile/usersx07.dbf’;
set newname for datafile 61 to ‘+KITTUDB_VG/KITTU/datafile/usersx08.dbf’;
set newname for datafile 62 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_ind10.dbf’;
set newname for datafile 63 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_ind11.dbf’;
set newname for datafile 64 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data15.dbf’;
set newname for datafile 65 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data16.dbf’;
set newname for datafile 66 to ‘+KITTUDB_VG/KITTU/datafile/undo09.dbf’;
set newname for datafile 288 to ‘+KITTUDB_VG/KITTU/datafile/system10.dbf’;
set newname for datafile 295 to ‘+KITTUDB_VG/KITTU/datafile/system06.dbf’;
set newname for datafile 314 to ‘+KITTUDB_VG/KITTU/datafile/portal01.dbf’;
set newname for datafile 351 to ‘+KITTUDB_VG/KITTU/datafile/system07.dbf’;
set newname for datafile 352 to ‘+KITTUDB_VG/KITTU/datafile/system09.dbf’;
set newname for datafile 353 to ‘+KITTUDB_VG/KITTU/datafile/system08.dbf’;
set newname for datafile 354 to ‘+KITTUDB_VG/KITTU/datafile/system11.dbf’;
set newname for datafile 379 to ‘+KITTUDB_VG/KITTU/datafile/undo01.dbf’;
set newname for datafile 392 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data01.dbf’;
set newname for datafile 393 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_ind01.dbf’;
set newname for datafile 394 to ‘+KITTUDB_VG/KITTU/datafile/a_ref01.dbf’;
set newname for datafile 395 to ‘+KITTUDB_VG/KITTU/datafile/a_int01.dbf’;
set newname for datafile 396 to ‘+KITTUDB_VG/KITTU/datafile/a_summ01.dbf’;
set newname for datafile 397 to ‘+KITTUDB_VG/KITTU/datafile/a_nolog01.dbf’;
set newname for datafile 398 to ‘+KITTUDB_VG/KITTU/datafile/a_archive01.dbf’;
set newname for datafile 399 to ‘+KITTUDB_VG/KITTU/datafile/a_queue01.dbf’;
set newname for datafile 400 to ‘+KITTUDB_VG/KITTU/datafile/a_media01.dbf’;
set newname for datafile 401 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data02.dbf’;
set newname for datafile 402 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_data03.dbf’;
set newname for datafile 403 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_ind02.dbf’;
set newname for datafile 404 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_ind03.dbf’;
set newname for datafile 405 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_ind04.dbf’;
set newname for datafile 406 to ‘+KITTUDB_VG/KITTU/datafile/a_txn_ind05.dbf’;
set newname for datafile 407 to ‘+KITTUDB_VG/KITTU/datafile/a_ref02.dbf’;
restore database;
switch datafile all;
recover database;
}


restore missing archives using below command

run
{
set archivelog destination to ‘/backup/oracle/kittu/oracle/kittu1/arch’;
ALLOCATE CHANNEL CH1 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH2 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH3 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH4 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH5 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH6 DEVICE TYPE DISK;
RESTORE ARCHIVELOG FROM SEQUENCE 36377 UNTIL SEQUENCE 36382 thread=1;
}


scp to target backup location

connect to rman

RMAN> catalog archivelog ‘+KITTU5_VG/kittu5/archive/log_47_2_792265862.arc’;

or

RMAN> catalog start with ‘/DEVpshr/backup/oracle/kittu/oracle/kittu1/arch’;

SQL> select NAME,OPEN_MODE from v$database;

NAME OPEN_MODE
——— ——————–
kittu MOUNTED

SQL> select GROUP#,THREAD#,MEMBERS,STATUS from gv$log;

GROUP# THREAD# MEMBERS STATUS
———- ———- ———- —————-
2 1 2 CLEARING
1 1 2 CLEARING
3 1 2 CLEARING_CURRENT
4 1 2 CLEARING
5 1 2 CLEARING
7 2 2 CLEARING
6 2 2 CLEARING
8 2 2 CLEARING
10 2 2 CLEARING_CURRENT
9 2 2 CLEARING
11 3 2 CLEARING

GROUP# THREAD# MEMBERS STATUS
———- ———- ———- —————-
12 3 2 CLEARING
14 3 2 CLEARING
13 3 2 CLEARING
15 3 2 CLEARING_CURRENT

15 rows selected.

SQL>


change the redo log location (check the location carefully)

select ‘alter database rename file ‘||””||member||””||’ to ‘||””||’REDOB_VG/KITTU/redo/’||substr(member,instr(member,’/’,-1)+1)||””||’;’ from v$logfile ;

SQL> select member from v$logfile;

SQL> select GROUP#,THREAD#,MEMBERS,STATUS from gv$log;

GROUP# THREAD# MEMBERS STATUS
———- ———- ———- —————-
1 1 2 INACTIVE
2 1 2 CURRENT
3 1 2 UNUSED
4 1 2 UNUSED
5 1 2 UNUSED
6 2 2 UNUSED
7 2 2 UNUSED
8 2 2 UNUSED
9 2 2 UNUSED
10 2 2 UNUSED
11 3 2 UNUSED

GROUP# THREAD# MEMBERS STATUS
———- ———- ———- —————-
12 3 2 UNUSED
13 3 2 UNUSED
14 3 2 UNUSED
15 3 2 UNUSED

15 rows selected.

SQL>


change the temp file location (check the location carefully)

SQL> select FILE_NAME from dba_temp_files;

select ‘alter database rename file ‘||””||NAME||””||’ to ‘||””||’+KITTUDB_VG/KITTU/tempfile/’||substr(NAME,instr(NAME,’/’,-1)+1)||””||’;’ from v$tempfile ;

SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-00392: log 3 of thread 1 is being cleared, operation not allowed
ORA-00312: online log 3 thread 1: ‘+DEVERPD_REDOA_VG/KITTU/redo/redog3t1a.log’
ORA-00312: online log 3 thread 1: ‘+DEVERPD_REDOB_VG/KITTU/redo/redog3t1b.log’

SQL> shut immediate;
ORA-01109: database not open

Database dismounted.
ORACLE instance shut down.
SQL>

SQL> startup nomount pfile=’/tmp/kittu/initKITTU.ora’;
ORACLE instance started.

Total System Global Area 4275781632 bytes
Fixed Size 2235208 bytes
Variable Size 2248148152 bytes
Database Buffers 1996488704 bytes
Redo Buffers 28909568 bytes
SQL> alter database mount;

Database altered.

SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-00392: log 3 of thread 1 is being cleared, operation not allowed
ORA-00312: online log 3 thread 1: ‘+DEVERPD_REDOA_VG/KITTU/redo/redog3t1a.log’
ORA-00312: online log 3 thread 1: ‘+DEVERPD_REDOB_VG/KITTU/redo/redog3t1b.log’

SQL> alter database clear unarchived logfile group 3;

Database altered.

SQL>

SQL> alter database open resetlogs;

Database altered.

SQL>

Create password file

orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID.ora password=12345678 force=Y

SQL> startup nomount pfile=’/tmp/kittu/initKITTU.ora’;
ORACLE instance started.

Total System Global Area 4275781632 bytes
Fixed Size 2235208 bytes
Variable Size 2248148152 bytes
Database Buffers 1996488704 bytes
Redo Buffers 28909568 bytes
SQL> alter database mount;

Database altered.

SQL>


Change the db name

kasarladev01[KITTU1]_oracle>nid TARGET=SYS/12345678 DBNAME=KITTU SETNAME=YES

DBNEWID: Release 11.2.0.3.0 – Production on Tue May 14 00:45:55 2013

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

Connected to database kittu (DBID=1059191803)

Connected to server version 11.2.0

Control Files in database:
+DEVERPD_REDOA_VG/KITTU/control/cntrl01.ctl
+DEVERPD_REDOB_VG/KITTU/control/cntrl02.ctl

Change database name of database kittu to KITTU? (Y/[N]) => Y

Proceeding with operation
Changing database name from kittu to KITTU
Control File +DEVERPD_REDOA_VG/KITTU/control/cntrl01.ctl – modified
Control File +DEVERPD_REDOB_VG/KITTU/control/cntrl02.ctl – modified
Datafile +KITTUDB_VG/KITTU/datafile/system01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/system02.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/system03.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/system04.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/system05.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/ctxd01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/owad01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_queue02.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/odm.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/olap.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/usersx01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/discoverer01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/sysaux01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/tools01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_tools01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/undo02.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data04.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/undo03.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/undo04.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users02.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data05.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/usersx02.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users03.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users04.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users05.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users06.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users07.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users08.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users09.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users10.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users11.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data06.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind06.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data07.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_int02.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/usersx03.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users12.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data08.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data09.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind07.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data10.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users13.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind08.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data11.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users14.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/usersx04.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind09.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/users15.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/usersx05.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data12.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data13.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/undo05.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/undo06.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/undo07.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/undo08.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/usersx06.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/sysaux02.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data14.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/usersx07.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/usersx08.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind10.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind11.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data15.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data16.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/undo09.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/system10.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/system06.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/portal01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/system07.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/system09.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/system08.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/system11.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/undo01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_ref01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_int01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_summ01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_nolog01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_archive01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_queue01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_media01.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data02.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data03.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind02.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind03.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind04.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind05.db – wrote new name
Datafile +KITTUDB_VG/KITTU/datafile/a_ref02.db – wrote new name
Datafile +KITTUDB_VG/KITTU/tempfile/temp04.db – wrote new name
Datafile +KITTUDB_VG/KITTU/tempfile/temp03.db – wrote new name
Datafile +KITTUDB_VG/KITTU/tempfile/temp02.db – wrote new name
Datafile +KITTUDB_VG/KITTU/tempfile/temp01.db – wrote new name
Control File +DEVERPD_REDOA_VG/KITTU/control/cntrl01.ctl – wrote new name
Control File +DEVERPD_REDOB_VG/KITTU/control/cntrl02.ctl – wrote new name
Instance shut down

Database name changed to KITTU.
Modify parameter file and generate a new password file before restarting.
Succesfully changed database name.
DBNEWID – Completed succesfully.

kasarladev01[KITTU1]_oracle>


go to pfile and remove db_uniq_name parameter and change the db_name to new dbname
now change the dbid

SQL> startup nomount pfile=’/tmp/kittu/initKITTU.ora’;
ORACLE instance started.

Total System Global Area 4275781632 bytes
Fixed Size 2235208 bytes
Variable Size 2248148152 bytes
Database Buffers 1996488704 bytes
Redo Buffers 28909568 bytes
SQL> alter database mount;

Database altered.

SQL>

kasarladev01[KITTU1]_oracle> nid TARGET=SYS/12345678

DBNEWID: Release 11.2.0.3.0 – Production on Tue May 14 01:14:23 2013

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

Connected to database KITTU (DBID=1059191803)

Connected to server version 11.2.0

Control Files in database:
+DEVERPD_REDOA_VG/KITTU/control/cntrl01.ctl
+DEVERPD_REDOB_VG/KITTU/control/cntrl02.ctl

Change database ID of database KITTU? (Y/[N]) => Y

Proceeding with operation
Changing database ID from 1059191803 to 2182908274
Control File +DEVERPD_REDOA_VG/KITTU/control/cntrl01.ctl – modified
Control File +DEVERPD_REDOB_VG/KITTU/control/cntrl02.ctl – modified
Datafile +KITTUDB_VG/KITTU/datafile/system01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/system02.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/system03.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/system04.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/system05.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/ctxd01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/owad01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_queue02.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/odm.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/olap.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/usersx01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/discoverer01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/sysaux01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/tools01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_tools01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/undo02.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data04.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/undo03.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/undo04.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users02.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data05.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/usersx02.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users03.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users04.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users05.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users06.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users07.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users08.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users09.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users10.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users11.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data06.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind06.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data07.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_int02.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/usersx03.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users12.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data08.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data09.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind07.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data10.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users13.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind08.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data11.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users14.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/usersx04.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind09.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/users15.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/usersx05.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data12.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data13.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/undo05.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/undo06.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/undo07.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/undo08.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/usersx06.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/sysaux02.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data14.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/usersx07.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/usersx08.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind10.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind11.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data15.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data16.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/undo09.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/system10.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/system06.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/portal01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/system07.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/system09.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/system08.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/system11.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/undo01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_ref01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_int01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_summ01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_nolog01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_archive01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_queue01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_media01.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data02.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_data03.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind02.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind03.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind04.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_txn_ind05.db – dbid changed
Datafile +KITTUDB_VG/KITTU/datafile/a_ref02.db – dbid changed
Datafile +KITTUDB_VG/KITTU/tempfile/temp04.db – dbid changed
Datafile +KITTUDB_VG/KITTU/tempfile/temp03.db – dbid changed
Datafile +KITTUDB_VG/KITTU/tempfile/temp02.db – dbid changed
Datafile +KITTUDB_VG/KITTU/tempfile/temp01.db – dbid changed
Control File +DEVERPD_REDOA_VG/KITTU/control/cntrl01.ctl – dbid changed
Control File +DEVERPD_REDOB_VG/KITTU/control/cntrl02.ctl – dbid changed
Instance shut down

Database ID for database KITTU changed to 2182908274.
All previous backups and archived redo logs for this database are unusable.
Database has been shutdown, open database with RESETLOGS option.
Succesfully changed database ID.
DBNEWID – Completed succesfully.

kasarladev01[KITTU1]_oracle>
kasarladev01[KITTU1]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Tue May 14 01:14:51 2013

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

Connected to an idle instance.

SQL> startup nomount pfile=’/tmp/kittu/initKITTU.ora’;
ORACLE instance started.

Total System Global Area 4275781632 bytes
Fixed Size 2235208 bytes
Variable Size 2248148152 bytes
Database Buffers 1996488704 bytes
Redo Buffers 28909568 bytes
SQL> alter database mount;

Database altered.

SQL> alter database open resetlogs;

Database altered.

SQL> select DBID from v$database;

DBID
———-
2182908274

SQL>


create a spfile in ASM

SQL> create SPFILE=’+KITTUDB_VG/KITTU/spfile/spfileKITTU.ora’ from pfile=’/tmp/initKITTU.ora_original’;

File created.

SQL> shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
kasarladev01[KITTU1]_oracle>


start the rac db

kasarladev01[KITTU1]_oracle> srvctl start database -d KITTU
kasarladev01[KITTU1]_oracle> srvctl status database -d KITTU
Instance KITTU1 is running on node kasarladev01
Instance KITTU2 is running on node kasarladev02
kasarladev01[KITTU1]_oracle>


==============================================================================================
the below steps may not be required for you because i am cloning from 3 node db to 2 node db
so i don’t required thread 3 so droping thread 3
===============================================================================================

SQL> SELECT GROUP#, THREAD# FROM v$log;

GROUP# THREAD#
———- ———-
1 1
2 1
3 1
4 1
5 1
6 2
7 2
8 2
9 2
10 2
11 3
12 3
13 3
14 3
15 3

15 rows selected.

SQL>

SQL> alter database disable thread 3;

Database altered.

SQL>

SQL> select lf.MEMBER from V$LOGFILE lf where exists ( Select ‘x’ from V$LOG l where lf.GROUP# = l.GROUP# and THREAD# = 3 );

MEMBER
——————————————————————————–
+DEVERPD_REDOA_VG/KITTU/redo/redog11t3a.log
+DEVERPD_REDOB_VG/KITTU/redo/redog11t3b.log
+DEVERPD_REDOA_VG/KITTU/redo/redog12t3a.log
+DEVERPD_REDOB_VG/KITTU/redo/redog12t3b.log
+DEVERPD_REDOA_VG/KITTU/redo/redog13t3a.log
+DEVERPD_REDOB_VG/KITTU/redo/redog13t3b.log
+DEVERPD_REDOA_VG/KITTU/redo/redog14t3a.log
+DEVERPD_REDOB_VG/KITTU/redo/redog14t3b.log
+DEVERPD_REDOA_VG/KITTU/redo/redog15t3a.log
+DEVERPD_REDOB_VG/KITTU/redo/redog15t3b.log

10 rows selected.

SQL> select ‘alter database drop logfile group ‘ || GROUP# || ‘;’ from V$LOG where THREAD# = 3;

alter database drop logfile group 11;
alter database drop logfile group 12;
alter database drop logfile group 13;
alter database drop logfile group 14;
alter database drop logfile group 15;

SQL> SELECT GROUP#, THREAD# FROM v$log;

GROUP# THREAD#
———- ———-
1 1
2 1
3 1
4 1
5 1
6 2
7 2
8 2
9 2
10 2

10 rows selected.

SQL>

Go to asm drop the files using following command
================================================
ALTER DISKGROUP DEVERPD_REDOA_VG DROP FILE ‘+DEVERPD_REDOA_VG/KITTU/redo/redog11t3a.log’;

single to RAC DB conversion (3 nodes)


Create directories

pimsu mkdir -p $ORACLE_HOME
pimsu mkdir -p $ORACLE_BASE
pimsu mkdir -p $ORACLE_BASE/admin/kittu/adump


Copy existing oracle home to new nodes and change permissions

pimsu cp -r /prod/oracle/proddb/11.2.0.3 /kittu/oracle/kittudb

cd /kittu
pimsu chown -R oracle:oinstall oracle
chmod 755 -R oracle
as a root
cd $ORACLE_HOME/bin
chown oracle:asmadmin oracle
chmod 6751 oracle


Relink the binaries using the following command

cd $ORACLE_HOME/clone/bin
perl clone.pl ORACLE_HOME=”$ORACLE_HOME” ORACLE_HOME_NAME=”OraDb11203_${ORACLE_SID}” ORACLE_BASE=”$ORACLE_BASE” OSDBA_GROUP=oinstall OSOPER_GROUP=oinstall


Create database if there is no existing database using dbca (follow my db creation tab in my blog)
I am using following directories for creating the database

DISKGROUP +KITTUDB_VG
Data file +KITTUDB_VG/kittu/datafile
Change Tracking File +KITTUDB_VG/kittu/ctf
Redo log A +REDOA_VG/kittu/redo
Redo log B +REDOB_VG/kittu/redo
Control file A +REDOA_VG/kittu/control
Control file B +REDOB_VG/kittu/control
Archive log +ARCH_VG/kittu

+REDOA_VG
+REDOB_VG
{DB_UNIQUE_NAME}/control/control01.ctl
{DB_UNIQUE_NAME}/control/control02.ctl

+KITTUDB_VG
{DB_UNIQUE_NAME}/DATAFILE/sysaux01.dbf
{DB_UNIQUE_NAME}/DATAFILE/system01.dbf
{DB_UNIQUE_NAME}/DATAFILE/temp01.dbf
{DB_UNIQUE_NAME}/DATAFILE/undotbs01.dbf
{DB_UNIQUE_NAME}/DATAFILE/user01.dbf

+REDOA_VG
{DB_UNIQUE_NAME}/redo/redog1t1a.log
{DB_UNIQUE_NAME}/redo/redog2t1a.log
{DB_UNIQUE_NAME}/redo/redog3t1a.log


Now database is ready so convert single node to 3 node rac so get the details of the locations

select name from v$controlfile;
select name from v$datafile;
select member from v$logfile;


set the instance names

ALTER SYSTEM SET INSTANCE_NUMBER=1 SCOPE=SPFILE SID=’kittu1′;
ALTER SYSTEM SET INSTANCE_NUMBER=2 SCOPE=SPFILE SID=’kittu2′;
ALTER SYSTEM SET INSTANCE_NUMBER=3 SCOPE=SPFILE SID=’kittu3′;


create undo tablespace for 2nd and 3 nodes

create UNDO tablespace UNDOTBS2 datafile ‘+KITTU_VG/kittu/datafile/undotbs02.dbf’ size 1024m;
create UNDO tablespace UNDOTBS3 datafile ‘+KITTU_VG/kittu/datafile/undotbs03.dbf’ size 1024m;


Assign the undo tablespace to each instance in the rac

ALTER SYSTEM SET UNDO_TABLESPACE=UNDOTBS1 SCOPE=SPFILE SID=’kittu1′;
ALTER SYSTEM SET UNDO_TABLESPACE=UNDOTBS2 SCOPE=SPFILE SID=’kittu2′;
ALTER SYSTEM SET UNDO_TABLESPACE=UNDOTBS3 SCOPE=SPFILE SID=’kittu3′;


Create redo log to the 2nd and 3rd nodes

ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 4 (‘REDOA_VG/kittu/redo/redog4t2a.log’,’+REDOB_VG/kittu/redo/redog4t2b.log’) size 300M;
ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 5 (‘REDOA_VG/kittu/redo/redog5t2a.log’,’+REDOB_VG/kittu/redo/redog5t2b.log’) size 300M;
ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 6 (‘REDOA_VG/kittu/redo/redog6t2a.log’,’+REDOB_VG/kittu/redo/redog6t2b.log’) size 300M;

ALTER DATABASE ADD LOGFILE THREAD 3 GROUP 7 (‘REDOA_VG/kittu/redo/redog7t3a.log’,’+REDOB_VG/kittu/redo/redog7t3b.log’) size 300M;
ALTER DATABASE ADD LOGFILE THREAD 3 GROUP 8 (‘REDOA_VG/kittu/redo/redog8t3a.log’,’+REDOB_VG/kittu/redo/redog8t3b.log’) size 300M;
ALTER DATABASE ADD LOGFILE THREAD 3 GROUP 9 (‘REDOA_VG/kittu/redo/redog9t3a.log’,’+REDOB_VG/kittu/redo/redog9t3b.log’) size 300M;


set the redo logs to all the instances

ALTER SYSTEM SET THREAD=1 SCOPE=SPFILE SID=’kittu1′;
ALTER SYSTEM SET THREAD=2 SCOPE=SPFILE SID=’kittu2′;
ALTER SYSTEM SET THREAD=3 SCOPE=SPFILE SID=’kittu3′;


enable the threads

ALTER DATABASE ENABLE THREAD 2;
ALTER DATABASE ENABLE THREAD 3;


set the required parameters

alter system set diagnostic_dest=’/kittu/oracle/oracle_base’ scope=both sid=’kittu1′;
alter system set diagnostic_dest=’/kittu/oracle/oracle_base’ scope=both sid=’kittu2′;
alter system set diagnostic_dest=’/kittu/oracle/oracle_base’ scope=both sid=’kittu3′;
alter system set cluster_database=TRUE scope=spfile sid=’*’;
alter system set cluster_database_instances=3 scope=spfile sid=’*’;
alter system set sga_max_size=5G scope=spfile sid=’*’;
alter system set sga_target=3G scope=spfile sid=’*’;
alter system set audit_trail=’OS’ scope=spfile sid=’*’;


run the cluster enable sql

@$ORACLE_HOME/rdbms/admin/catclust.sql


Create listeners from grid home

export DISPLAY=kasarla1.krishnareddy.com:2.0
xhost +
netca


Check the scan host and port using the following commands

kasarla1[kittu1]_oracle> srvctl config scan
SCAN name: cfsp-scan.krishnareddy.com, Network: 1/3.4.14.0/255.255.255.0/bond0
SCAN VIP name: scan1, IP: /prod-scan.krishnareddy.com/3.4.14.9
SCAN VIP name: scan2, IP: /prod-scan.krishnareddy.com/3.4.14.11
SCAN VIP name: scan3, IP: /prod-scan.krishnareddy.com/3.4.14.10
kasarla1[kittu1]_oracle> srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1525
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1525
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1525
kasarla1[kittu1]_oracle>


set the local and remote listeners

alter system set remote_listener=”prod-scan.krishnareddy.com:1525″ scope=both sid=’*’;
alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=kasarla1-vip.krishnareddy.com)(PORT=1540))))’ scope=both sid=’kittu1′;
alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=kasarla2-vip.krishnareddy.com)(PORT=1540))))’ scope=both sid=’kittu2′;
alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=kasarla3-vip.krishnareddy.com)(PORT=1540))))’ scope=both sid=’kittu3′;


Create TNS directoriy

mkdir -p $TNS_ADMIN
kittu,kittu1,kittu2,kittu3 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = prod-scan.krishnareddy.com)(PORT = 1525))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = kittu)
)
)


Create password file

cd $ORACLE_HOME/dbs
orapwd file=orapw$ORACLE_SID password=welcome entries=10


stop the datbase and start it


add the database to rac and start the database

srvctl add database -d kittu -o /kittu/oracle/kittudb/11.2.0.3 -a “KITTU_VG”
srvctl add instance -d kittu -i kittu1 -n kasarla1
srvctl add instance -d kittu -i kittu2 -n kasarla2
srvctl add instance -d kittu -i kittu3 -n kasarla3
srvctl modify database -d kittu -p “+KITTU_VG/kittu/spfilekittu.ora”


check the status

kasarla1[kittu1]_oracle> srvctl status database -d kittu -v
Instance kittu1 is running on node kasarla1. Instance status: Open.
Instance kittu2 is running on node kasarla2. Instance status: Open.
Instance kittu3 is running on node kasarla3. Instance status: Open.
kasarla1[kittu1]_oracle> srvctl status listener -l LSTNkittu
Listener LSTNkittu is enabled
Listener LSTNkittu is running on node(s): kasarla2,kasarla3,kasarla1
kasarla1[kittu1]_oracle>


dorp and recreate the reso if you want else leave this step

SQL> select GROUP#,THREAD#,MEMBERS,STATUS from gv$log;

GROUP# THREAD# MEMBERS STATUS
———- ———- ———- —————-
1 1 1 INACTIVE
2 1 1 INACTIVE
3 1 1 CURRENT

SQL> ALTER SYSTEM SET THREAD=2 SCOPE=SPFILE SID=’kittu1′;

Database altered.

SQL> ALTER DATABASE ENABLE THREAD 2;

Database altered.

SQL> alter system switch logfile;

Database altered.

SQL> alter database disable thread 1;

Database altered.

SQL> select lf.MEMBER from V$LOGFILE lf where exists ( Select ‘x’ from V$LOG l where lf.GROUP# = l.GROUP# and THREAD# = 1 );

MEMBER
——————————————————————————————————————-
+CFSQ_REDOA_VG/kittu/redo/redog1t1a.log
+CFSQ_REDOA_VG/kittu/redo02.log
+CFSQ_REDOA_VG/kittu/redo/redog3t1a.log

SQL> select ‘alter database drop logfile group ‘ || GROUP# || ‘;’ from V$LOG where THREAD# = 1;

‘ALTERDATABASEDROPLOGFILEGROUP’||GROUP#||’;’
—————————————————————————
alter database drop logfile group 1;
alter database drop logfile group 2;
alter database drop logfile group 3;

SQL> alter database drop logfile group 1;

Database altered.

SQL>alter database drop logfile group 2;

Database altered.

SQL>alter database drop logfile group 3;

Database altered.

SQL>

Now go to ASM drop the files
SQL>ALTER DISKGROUP CFSP_REDOA_VG DROP FILE ‘REDOA_VG/kittu/redo/redog1t1a.log’;

Diskgroup altered.

SQL>ALTER DISKGROUP CFSP_REDOA_VG DROP FILE ‘REDOA_VG/kittu/redo02.log’;

Diskgroup altered.

SQL>ALTER DISKGROUP CFSP_REDOA_VG DROP FILE ‘REDOA_VG/kittu/redo/redog3t1a.log’;

Diskgroup altered.

SQL>

Create redo log for thread 1

ALTER DATABASE ADD LOGFILE THREAD 1 GROUP 1 (‘REDOA_VG/kittu/redo/redog1t1a.log’,’+REDOB_VG/kittu/redo/redog1t1b.log’) size 300M;
ALTER DATABASE ADD LOGFILE THREAD 1 GROUP 2 (‘REDOA_VG/kittu/redo/redog2t1a.log’,’+REDOB_VG/kittu/redo/redog2t1b.log’) size 300M;
ALTER DATABASE ADD LOGFILE THREAD 1 GROUP 3 (‘REDOA_VG/kittu/redo/redog3t1a.log’,’+REDOB_VG/kittu/redo/redog3t1b.log’) size 300M;

SQL> ALTER SYSTEM SET THREAD=1 SCOPE=SPFILE SID=’kittu1′;

System altered.

SQL> ALTER DATABASE ENABLE THREAD 1;

Database altered.

SQL>

Adding new node on EBS R12.2


set the environment to run filesystem
[applmgr@kasarla01 ~]$ cd /u01/kittu/R12_2/fs1/EBSapps/appl
[applmgr@kasarla01 appl]$ ls
ad amv asn bic chv csf cz ec flm ghg gml ia iec imc ja mfg oe ota pn psa rg wps xnp
adctrl.log ap aso bim cln csi ddr ecx fnd ghr gmo ibc iem inl je mrp okc ozf po psp rlm wsh xtr
admin APPSkittu_kasarla01.env asp bis cn csl dna edr fpa gl gmp ibe ieo inv jg msc oke pa pom pv rrs wsm zx
ahl ar ast bne crp csm dom ego frm gma gms ibu ies ipa jl msd okl pay pon qa sht xdo
ak as au bom cs csp dpp eng fte gmd gr ibw ieu ipm jmf mso oks per pos qot ssp xdp
alr asf ax kittu_kasarla01.env csc csr dt eni fun gme hri iby iex irc jtf msr okx pji pqh qp vea xla
ame asg az cct csd cua eam fa fv gmf hxc icx igc itg jtm mth ont pjm pqp qpr wip xle
ams asl ben ce cse cug ebi ff gecl gmi hxt ieb igi izu lns mwa opi pmi prp qrm wms xnb
[applmgr@kasarla01 appl]$ . APPSkittu_kasarla01.env
[applmgr@kasarla01 appl]$ echo $FILE_EDITION
run
[applmgr@kasarla01 appl]$


update the context file value s_shared_file_system from false to true
[applmgr@kasarla01 appl]$ cat $CONTEXT_FILE|grep s_shared_file_system
shared_file_system oa_var="s_shared_file_system"false/shared_file_system
[applmgr@kasarla01 appl]$


[applmgr@kasarla01 admin]$ cat $CONTEXT_FILE|grep s_shared_file_system
shared_file_system oa_var="s_shared_file_system"true/shared_file_system
[applmgr@kasarla01 admin]$



Run autoconfig on run filesystem
[applmgr@kasarla01 admin]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@kasarla01 scripts]$ adautocfg.sh
Enter the APPS user password:

The log file for this session is located at: /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/log/03140134/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01
Classpath : /u01/kittu/R12_2/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/kittu/R12_2/fs1/EBSapps/comn/java/classes

Using Context file : /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...
Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring CZ_TOP........COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED

AutoConfig completed successfully.
[applmgr@kasarla01 scripts]$

Set the patch environment
[applmgr@kasarla01 appl]$ . APPSkittu_kasarla01.env
[applmgr@kasarla01 appl]$ echo $FILE_EDITION
patch
[applmgr@kasarla01 appl]$

update the context file value s_shared_file_system from false to true
[applmgr@kasarla01 admin]$ cp kittu_kasarla01.xml kittu_kasarla01.xml_original
[applmgr@kasarla01 admin]$ cat $CONTEXT_FILE|grep s_shared_file_system
shared_file_system oa_var="s_shared_file_system"false/shared_file_system
[applmgr@kasarla01 admin]$ vi kittu_kasarla01.xml
[applmgr@kasarla01 admin]$ cat $CONTEXT_FILE|grep s_shared_file_system
shared_file_system oa_var="s_shared_file_system"true/shared_file_system


Run autoconfig on patch filesystem
[applmgr@kasarla01 admin]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@kasarla01 scripts]$ adautocfg.sh
Enter the APPS user password:

The log file for this session is located at: /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/admin/log/03140149/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01
Classpath : /u01/kittu/R12_2/fs2/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/kittu/R12_2/fs2/EBSapps/comn/java/classes

Using Context file : /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...
Configuring AD_TOP........COMPLETED
Configuring FND_TOP.......COMPLETED
Configuring ICX_TOP.......COMPLETED
Configuring MSC_TOP.......COMPLETED
Configuring IEO_TOP.......COMPLETED
Configuring BIS_TOP.......COMPLETED
Configuring CZ_TOP........COMPLETED
Configuring AMS_TOP.......COMPLETED
Configuring CCT_TOP.......COMPLETED
Configuring WSH_TOP.......COMPLETED
Configuring CLN_TOP.......COMPLETED
Configuring OKE_TOP.......COMPLETED
Configuring OKL_TOP.......COMPLETED
Configuring OKS_TOP.......COMPLETED
Configuring CSF_TOP.......COMPLETED
Configuring IBY_TOP.......COMPLETED
Configuring JTF_TOP.......COMPLETED
Configuring MWA_TOP.......COMPLETED
Configuring CN_TOP........COMPLETED
Configuring CSI_TOP.......COMPLETED
Configuring WIP_TOP.......COMPLETED
Configuring CSE_TOP.......COMPLETED
Configuring EAM_TOP.......COMPLETED
Configuring FTE_TOP.......COMPLETED
Configuring ONT_TOP.......COMPLETED
Configuring AR_TOP........COMPLETED
Configuring AHL_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring OZF_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED

AutoConfig completed with errors.


--- This is because of inventory pointing to other env . currently other environment upgrade is going on so i can not chagne right now
so i am ignoring this error
[applmgr@kasarla01 scripts]$


Go back to run filesystem and run preclone
[applmgr@kasarla01 appl]$ . APPSkittu_kasarla01.env
[applmgr@kasarla01 appl]$ echo $FILE_EDITION
run
[applmgr@kasarla01 appl]$
[applmgr@kasarla01 bin]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@kasarla01 scripts]$ ls
adadminsrvctl.sh adapcctl.sh adcmctl.sh adformsrvctl.sh adnodemgrctl.sh adpreclone.pl adstrtal.sh gsmstart.sh java.sh msc mwactlwrpr.sh
adalnctl.sh adautocfg.sh adexecsql.pl admanagedsrvctl.sh adopmnctl.sh adstpall.sh cz64bitengine.pl ieo jtffmctl.sh mwactl.sh
[applmgr@kasarla01 scripts]$ pwd
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts
[applmgr@kasarla01 scripts]$ ./adpreclone.pl appsTier

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

Oracle E-Business Suite Rapid Clone

Version 12.2

adpreclone Version 120.31.12020000.3

Enter the Weblogic AdminServer password :

Checking the status of the Oracle WebLogic Administration Server....

Running perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -servername=AdminServer -promptmsg=hide

The Oracle WebLogic Administration Server is up.

Running:
perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10 mode=stage stage=/u01/kittu/R12_2/fs1/EBSapps/comn/clone component=appsTier method= appctx=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml showProgress



Beginning application tier Stage - Thu Mar 14 02:35:18 2013

/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /u01/kittu/R12_2/fs1/FMW_Home/webtier/lib/xmlparserv2.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/jdbc/lib/ojdbc6.jar:/u01/kittu/R12_2/fs1/EBSapps/comn/java/classes:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/OraInstaller.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/ewt3.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/share.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/srvm.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/jlib/ojmisc.jar:/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/kittu/R12_2/fs1/FMW_Home/oracle_common/jlib/obfuscatepassword.jar oracle.apps.ad.clone.StageAppsTier -e /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -stage /u01/kittu/R12_2/fs1/EBSapps/comn/clone -tmp /tmp -method CUSTOM -showProgress -nopromptmsg

Log file located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/log/StageAppsTier_03140235.log

\ 20% completed

ERROR while running Stage...
Thu Mar 14 02:43:19 2013

ERROR while running perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10 mode=stage stage=/u01/kittu/R12_2/fs1/EBSapps/comn/clone component=appsTier method= appctx=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml showProgress ...
Thu Mar 14 02:43:19 2013

[applmgr@kasarla01 scripts]$

--- changed the inventory point to current environment

[applmgr@kasarla01 logs]$ pwd
/u01/kittu/R12_2/fs1/EBSapps/comn/clone/FMW/logs
[applmgr@kasarla01 logs]$ cat CLONE2013-03-14_02-43-18AM.error
WARNING : Mar 14, 2013 2:43:19 AM - ERROR - CLONE-20263 Invalid Oracle Inventory.
WARNING : Mar 14, 2013 2:43:19 AM - CAUSE - CLONE-20263 There are two possible causes for an invalid OraInventory "/cfsdshr/mard2/R12_2/oraInventory".
1. Inventory was empty.
2. It did not have valid inventory.xml file.
WARNING : Mar 14, 2013 2:43:19 AM - ACTION - CLONE-20263 Provide a valid Oracle Inventory.
12:37 PM
in /etc/oraInst.loc the inventory location for kittu was commented as mard2 was enabled during installation 12:37 PM
so i commented mard2 and uncommented kittu
*******************************************************************************************************
[applmgr@kasarla01 scripts]$ ./adpreclone.pl appsTier

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

Oracle E-Business Suite Rapid Clone

Version 12.2

adpreclone Version 120.31.12020000.3

Enter the Weblogic AdminServer password :

Checking the status of the Oracle WebLogic Administration Server....

Running perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -servername=AdminServer -promptmsg=hide

The Oracle WebLogic Administration Server is up.

Running:
perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10 mode=stage stage=/u01/kittu/R12_2/fs1/EBSapps/comn/clone component=appsTier method= appctx=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml showProgress



Beginning application tier Stage - Thu Mar 14 03:06:34 2013

/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /u01/kittu/R12_2/fs1/FMW_Home/webtier/lib/xmlparserv2.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/jdbc/lib/ojdbc6.jar:/u01/kittu/R12_2/fs1/EBSapps/comn/java/classes:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/OraInstaller.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/ewt3.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/share.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/oui/jlib/srvm.jar:/u01/kittu/R12_2/fs1/FMW_Home/webtier/jlib/ojmisc.jar:/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/kittu/R12_2/fs1/FMW_Home/oracle_common/jlib/obfuscatepassword.jar oracle.apps.ad.clone.StageAppsTier -e /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -stage /u01/kittu/R12_2/fs1/EBSapps/comn/clone -tmp /tmp -method CUSTOM -showProgress -nopromptmsg

Log file located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/log/StageAppsTier_03140306.log

/ 20% completed

- 20% completed

Completed Stage...
Thu Mar 14 03:54:22 2013
[applmgr@kasarla01 scripts]$


Stop the application on run filesystem
[applmgr@kasarla01 scripts]$ adstpall.sh

You are running adstpall.sh version 120.22.12020000.5


Enter the APPS username: apps

Enter the APPS password:
Enter the WebLogic Server password:

The logfile for this session is located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstpall.log
Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adcmctl.sh stop
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adcmctl.sh version 120.19.12020000.3

Shutting down concurrent managers for kittu ...
ORACLE Password:
Submitted request 1786499 for CONCURRENT FND SHUTDOWN


adcmctl.sh: exiting with status 0


adcmctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt for more information ...


.end std out.

.end err out.

****************************************************




Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/jtffmctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running jtffmctl.sh version 120.3.12020000.4

Shutting down Fulfillment Server for kittu on port 9327 ...

jtffmctl.sh: exiting with status 0


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adapcctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adapcctl.sh version 120.0.12020000.2

Stopping OPMN managed Oracle HTTP Server (OHS) instance ...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adapcctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adopmnctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adopmnctl.sh version 120.0.12020000.2

Stopping Oracle Process Manager (OPMN) and the managed processes ...

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adopmnctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort forms-c4ws_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Stopping forms-c4ws_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort forms_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Stopping forms_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adformsctl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adformsctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort oafm_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Stopping oafm_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoafmctl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoafmctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort oacore_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Stopping oacore_server1...
...Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoacorectl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoacorectl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adalnctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

adalnctl.sh version 120.3.12020000.2

Shutting down listener process APPS_kittu.

adalnctl.sh: exiting with status 0


adalnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adalnctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adadminsrvctl.sh stop -nopromptmsg
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adadminsrvctl.sh version 120.10.12020000.2

Stopping WLS Admin Server...
Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adnodemgrctl.sh stop -nopromptmsg
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adnodemgrctl.sh version 120.11.12020000.4


adnodemgrctl.sh: exiting with status 0

adnodemgrctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adnodemgrctl.txt for more information ...


.end std out.

.end err out.

****************************************************



All enabled services on this node are stopped.

adstpall.sh:Exiting with status 0

adstpall.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstpall.log for more information ...

[applmgr@kasarla01 scripts]$

start the adminsrvctl on patch filesystem

[applmgr@kasarla01 scripts]$ ./adadminsrvctl.sh start

You are running adadminsrvctl.sh version 120.10.12020000.2


ERROR: Services should normally be started from the Run environment, not the Patch environment
To start services from the Patch environment, you must specify the 'forcepatchfs' option.

adadminsrvctl.sh: Exiting with status 1
[applmgr@kasarla01 scripts]$ ./adadminsrvctl.sh start forcepatchfs

You are running adadminsrvctl.sh version 120.10.12020000.2

Enter the WebLogic Admin password:
Enter the APPS Schema password:

Starting WLS Admin Server...
NMProcess: Mar 14, 2013 4:12:31 AM INFO Loading domains file: /u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: Mar 14, 2013 4:12:31 AM weblogic.nodemanager.server.NMServerConfig initDomainsMap
NMProcess: INFO: Loading domains file: /u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: Mar 14, 2013 4:12:31 AM INFO Loaded node manager configuration properties from '/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.properties'
NMProcess: Mar 14, 2013 4:12:31 AM weblogic.nodemanager.server.NMServer init
NMProcess: INFO: Loaded node manager configuration properties from '/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.properties'
NMProcess: Node manager v10.3
NMProcess:
NMProcess: Configuration settings:
NMProcess:
NMProcess: NodeManagerHome=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1
NMProcess: ListenAddress=kasarla01.corporate.ge.com
NMProcess: ListenPort=5584
NMProcess: ListenBacklog=50
NMProcess: SecureListener=false
NMProcess: AuthenticationEnabled=true
NMProcess: NativeVersionEnabled=true
NMProcess: CrashRecoveryEnabled=false
NMProcess: JavaHome=/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10
NMProcess: StartScriptEnabled=false
NMProcess: StopScriptEnabled=false
NMProcess: StartScriptName=startWebLogic.sh
NMProcess: StopScriptName=
NMProcess: LogFile=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.log
NMProcess: LogLevel=INFO
NMProcess: LogLimit=0
NMProcess: LogCount=1
NMProcess: LogAppend=true
NMProcess: LogToStderr=true
NMProcess: LogFormatter=weblogic.nodemanager.server.LogFormatter
NMProcess: DomainsFile=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: DomainsFileEnabled=true
NMProcess: StateCheckInterval=500
NMProcess: QuitEnabled=true
NMProcess: UseMACBroadcast=false
NMProcess: DomainRegistrationEnabled=false
NMProcess: DomainsDirRemoteSharingEnabled=false
NMProcess:
NMProcess: Domain name mappings:
NMProcess:
NMProcess: EBS_domain_kittu - /u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu
NMProcess:
NMProcess: Mar 14, 2013 4:12:33 AM INFO EBS_domain_kittu AdminServer Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM INFO EBS_domain_kittu oacore_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM INFO EBS_domain_kittu forms_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM INFO EBS_domain_kittu oafm_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM INFO EBS_domain_kittu forms-c4ws_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:33 AM INFO Plain socket listener started on port 5584, host kasarla01.corporate.ge.com
NMProcess: Mar 14, 2013 4:12:33 AM weblogic.nodemanager.server.Listener run
NMProcess: INFO: Plain socket listener started on port 5584, host kasarla01.corporate.ge.com
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Startup configuration properties saved to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties saved to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Rotated server output log to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out00010"
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.LogFileRotationUtil log
NMProcess: INFO: Rotated server output log to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out00010"
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Server error log also redirected to server log
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.LogFileRotationUtil log
NMProcess: INFO: Server error log also redirected to server log
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Starting WebLogic server with command line: /u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/bin/java -Dweblogic.Name=AdminServer -Djava.security.policy=null -Djava.library.path=/usr/java/packages/lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i386/jrockit:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/../lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/native:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/server:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/native_threads:/u01/kittu/R12_2/fs2/EBSapps/appl/cz/12.0.0/bin:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/lib32:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/server:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/native_threads:/u01/kittu/R12_2/fs2/EBSapps/appl/sht/12.0.0/lib:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/native/linux/i686:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/native/linux/i686/oci920_8 -Djava.class.path=/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/rt.jar:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i18n.jar:/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/lib/tools.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/features/weblogic.server.modules_10.3.6.0.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/webservices.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/webcenter/modules/oracle.portlet.server_11.1.1/oracle-portlet-api.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jrf_11.1.1/jrf.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/kittu/R12_2/fs2/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/kittu/R12_2/fs2/EBSapps/comn/java/classes/oracle/apps/fnd/jar/adall.jar -Dweblogic.system.BootIdentityFile=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/security/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Xms512m -Xmx512m -Djava.security.policy=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.policy -Djava.security.egd=file:/dev/./urandom -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3 -Dwls.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server -Dweblogic.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server -Dcommon.components.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu -Djrockit.optfile=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jrf_11.1.1/jrocket_optfile.txt -Doracle.server.config.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/servers/AdminServer -Doracle.domain.config.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig -Digf.arisidbeans.carmlloc=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/carml -Digf.arisidstack.home=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/arisidprovider -Doracle.security.jps.config=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/jps-config.xml -Doracle.deployed.app.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/tmp/_WL_user -Doracle.deployed.app.ext=/- -Dweblogic.alternateTypesDirectory=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.ossoiap_11.1.1,/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dportlet.oracle.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Dem.oracle.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/sysext_manifest_classpath weblogic.Server
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Starting WebLogic server with command line: /u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/bin/java -Dweblogic.Name=AdminServer -Djava.security.policy=null -Djava.library.path=/usr/java/packages/lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i386/jrockit:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/../lib/i386:/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/native:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/server:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/native_threads:/u01/kittu/R12_2/fs2/EBSapps/appl/cz/12.0.0/bin:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/lib32:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/server:/u01/kittu/R12_2/fs2/EBSapps/10.1.2/jdk/jre/lib/i386/native_threads:/u01/kittu/R12_2/fs2/EBSapps/appl/sht/12.0.0/lib:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/native/linux/i686:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/native/linux/i686/oci920_8 -Djava.class.path=/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/rt.jar:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre/lib/i18n.jar:/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/lib/tools.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/features/weblogic.server.modules_10.3.6.0.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/webservices.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/kittu/R12_2/fs2/FMW_Home/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/webcenter/modules/oracle.portlet.server_11.1.1/oracle-portlet-api.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jrf_11.1.1/jrf.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/kittu/R12_2/fs2/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/kittu/R12_2/fs2/EBSapps/comn/java/classes/oracle/apps/fnd/jar/adall.jar -Dweblogic.system.BootIdentityFile=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/security/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Xms512m -Xmx512m -Djava.security.policy=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.policy -Djava.security.egd=file:/dev/./urandom -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3 -Dwls.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server -Dweblogic.home=/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server -Dcommon.components.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu -Djrockit.optfile=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.jrf_11.1.1/jrocket_optfile.txt -Doracle.server.config.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/servers/AdminServer -Doracle.domain.config.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig -Digf.arisidbeans.carmlloc=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/carml -Digf.arisidstack.home=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/arisidprovider -Doracle.security.jps.config=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/config/fmwconfig/jps-config.xml -Doracle.deployed.app.dir=/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/tmp/_WL_user -Doracle.deployed.app.ext=/- -Dweblogic.alternateTypesDirectory=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.ossoiap_11.1.1,/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/modules/oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dportlet.oracle.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Dem.oracle.home=/u01/kittu/R12_2/fs2/FMW_Home/oracle_common -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/u01/kittu/R12_2/fs2/FMW_Home/patch_wls1036/profiles/default/sysext_manifest_classpath weblogic.Server
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Working directory is '/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu'
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Working directory is '/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu'
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Rotated server output log to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out00011"
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.LogFileRotationUtil log
NMProcess: INFO: Rotated server output log to "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out00011"
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Server error log also redirected to server log
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.LogFileRotationUtil log
NMProcess: INFO: Server error log also redirected to server log
NMProcess: Mar 14, 2013 4:12:50 AM INFO EBS_domain_kittu AdminServer Server output log file is '/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out'
NMProcess: Mar 14, 2013 4:12:50 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Server output log file is '/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/logs/AdminServer.out'
Refer /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...

[applmgr@kasarla01 scripts]$

Now run the preclone on patch filesystem
[applmgr@kasarla01 scripts]$ ./adpreclone.pl appsTier

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

Oracle E-Business Suite Rapid Clone

Version 12.2

adpreclone Version 120.31.12020000.3

Enter the Weblogic AdminServer password :

Checking the status of the Oracle WebLogic Administration Server....

Running perl /u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -servername=AdminServer -promptmsg=hide

The Oracle WebLogic Administration Server is up.

Running:
perl /u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10 mode=stage stage=/u01/kittu/R12_2/fs2/EBSapps/comn/clone component=appsTier method= appctx=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml showProgress



Beginning application tier Stage - Thu Mar 14 04:23:00 2013

/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /u01/kittu/R12_2/fs2/FMW_Home/webtier/lib/xmlparserv2.jar:/u01/kittu/R12_2/fs2/FMW_Home/webtier/jdbc/lib/ojdbc6.jar:/u01/kittu/R12_2/fs2/EBSapps/comn/java/classes:/u01/kittu/R12_2/fs2/FMW_Home/webtier/oui/jlib/OraInstaller.jar:/u01/kittu/R12_2/fs2/FMW_Home/webtier/oui/jlib/ewt3.jar:/u01/kittu/R12_2/fs2/FMW_Home/webtier/oui/jlib/share.jar:/u01/kittu/R12_2/fs2/FMW_Home/webtier/oui/jlib/srvm.jar:/u01/kittu/R12_2/fs2/FMW_Home/webtier/jlib/ojmisc.jar:/u01/kittu/R12_2/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/kittu/R12_2/fs2/FMW_Home/oracle_common/jlib/obfuscatepassword.jar oracle.apps.ad.clone.StageAppsTier -e /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -stage /u01/kittu/R12_2/fs2/EBSapps/comn/clone -tmp /tmp -method CUSTOM -showProgress -nopromptmsg

Log file located at /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/admin/log/StageAppsTier_03140423.log

\ 80% completed
\ 20% completed
\ 20% completed

Completed Stage...
Thu Mar 14 05:00:20 2013
[applmgr@kasarla01 scripts]$


Stop the adminsrvctl on patch filesystem
[applmgr@kasarla01 scripts]$ adadminsrvctl.sh stop

You are running adadminsrvctl.sh version 120.10.12020000.2

Enter the WebLogic Admin password:
Enter the APPS Schema password:

Stopping WLS Admin Server...
Refer /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...

[applmgr@kasarla01 scripts]$


go to run filesystem and start the services
[applmgr@kasarla01 appl]$ . APPSkittu_kasarla01.env
[applmgr@kasarla01 appl]$ echo $FILE_EDITION
run
[applmgr@kasarla01 appl]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@kasarla01 scripts]$ adstrtal.sh

You are running adstrtal.sh version 120.24.12020000.6


Enter the APPS username: apps

Enter the APPS password:
Enter the WebLogic Server password:

The logfile for this session is located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstrtal.log

Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/jtffmctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running jtffmctl.sh version 120.3.12020000.4

Validating Fulfillment patch level via /u01/kittu/R12_2/fs1/EBSapps/comn/java/classes
Fulfillment patch level validated.
Starting Fulfillment Server for kittu on port 9327 ...

jtffmctl.sh: exiting with status 0


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adopmnctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adopmnctl.sh version 120.0.12020000.2

Starting Oracle Process Manager (OPMN) ...

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adopmnctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adapcctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adapcctl.sh version 120.0.12020000.2

Starting OPMN managed Oracle HTTP Server (OHS) instance ...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adapcctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adnodemgrctl.sh start -nopromptmsg
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adnodemgrctl.sh version 120.11.12020000.4


Calling txkChkEBSDependecies.pl to perform dependency checks for oacore
Perl script txkChkEBSDependecies.pl got executed successfully


Starting the Node Manager...
NMProcess: Mar 14, 2013 5:17:30 AM INFO Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: Mar 14, 2013 5:17:30 AM weblogic.nodemanager.server.NMServerConfig initDomainsMap
NMProcess: INFO: Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: Mar 14, 2013 5:17:30 AM INFO Loaded node manager configuration properties from '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.properties'
NMProcess: Mar 14, 2013 5:17:30 AM weblogic.nodemanager.server.NMServer init
NMProcess: INFO: Loaded node manager configuration properties from '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.properties'
NMProcess: Node manager v10.3
NMProcess:
NMProcess: Configuration settings:
NMProcess:
NMProcess: NodeManagerHome=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1
NMProcess: ListenAddress=kasarla01.corporate.ge.com
NMProcess: ListenPort=5583
NMProcess: ListenBacklog=50
NMProcess: SecureListener=false
NMProcess: AuthenticationEnabled=true
NMProcess: NativeVersionEnabled=true
NMProcess: CrashRecoveryEnabled=false
NMProcess: JavaHome=/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10
NMProcess: StartScriptEnabled=false
NMProcess: StopScriptEnabled=false
NMProcess: StartScriptName=startWebLogic.sh
NMProcess: StopScriptName=
NMProcess: LogFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.log
NMProcess: LogLevel=INFO
NMProcess: LogLimit=0
NMProcess: LogCount=1
NMProcess: LogAppend=true
NMProcess: LogToStderr=true
NMProcess: LogFormatter=weblogic.nodemanager.server.LogFormatter
NMProcess: DomainsFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1/nodemanager.domains
NMProcess: DomainsFileEnabled=true
NMProcess: StateCheckInterval=500
NMProcess: QuitEnabled=true
NMProcess: UseMACBroadcast=false
NMProcess: DomainRegistrationEnabled=true
NMProcess: DomainsDirRemoteSharingEnabled=false
NMProcess:
NMProcess: Domain name mappings:
NMProcess:
NMProcess: EBS_domain_kittu - /u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu
NMProcess:
NMProcess: Mar 14, 2013 5:17:32 AM INFO EBS_domain_kittu AdminServer Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM INFO EBS_domain_kittu forms_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM INFO EBS_domain_kittu oacore_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM INFO EBS_domain_kittu forms-c4ws_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM INFO EBS_domain_kittu oafm_server1 Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:32 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: Mar 14, 2013 5:17:33 AM INFO Plain socket listener started on port 5583, host kasarla01.corporate.ge.com
NMProcess: Mar 14, 2013 5:17:33 AM weblogic.nodemanager.server.Listener run
NMProcess: INFO: Plain socket listener started on port 5583, host kasarla01.corporate.ge.com
Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adnodemgrctl.txt for details

adnodemgrctl.sh: exiting with status 0

adnodemgrctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adnodemgrctl.txt for more information ...


.end std out.
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/rgf/TXK/txkChkEBSDependecies_Thu_Mar_14_05_16_53_2013/txkChkEBSDependecies_Thu_Mar_14_05_16_53_2013.log

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adalnctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

adalnctl.sh version 120.3.12020000.2

Checking for FNDFS executable.
Starting listener process APPS_kittu.

adalnctl.sh: exiting with status 0


adalnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adalnctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adcmctl.sh start
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adcmctl.sh version 120.19.12020000.3

Starting concurrent manager for kittu ...
Starting kittu_0314@kittu Internal Concurrent Manager
Default printer is noprint

adcmctl.sh: exiting with status 0


adcmctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adadminsrvctl.sh start -nopromptmsg
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adadminsrvctl.sh version 120.10.12020000.2

Starting WLS Admin Server...
Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...


.end std out.

.end err out.

****************************************************




Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh start forms_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Starting forms_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adformsctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh start forms-c4ws_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Starting forms-c4ws_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh start oafm_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Starting oafm_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoafmctl.txt for more information ...


.end std out.

.end err out.

****************************************************







Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh start oacore_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Starting oacore_server1...

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoacorectl.txt for more information ...


.end std out.

.end err out.

****************************************************



All enabled services for this node are started.

adstrtal.sh: Exiting with status 0

adstrtal.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstrtal.log for more information ...

You have new mail in /var/spool/mail/applmgr
[applmgr@kasarla01 scripts]$


*******************************************************************************************************
ON NODE 2
*******************************************************************************************************

Set the environment to run edition

[kasarlak@kasarla02 ~]$ pbrun su - applmgr
[applmgr@kasarla02 ~]$ export PATH=/u01/kittu/R12_2/fs1/FMW_Home/webtier/perl/bin:$PATH
[applmgr@kasarla02 ~]$ cd /u01/kittu/R12_2/fs1/EBSapps/comn/clone/bin
[applmgr@kasarla02 bin]$ ls
adaddnode.pl adcfgclone.pl adchkutl.sh adclonectx.pl adclone.pl

[applmgr@kasarla02 bin]$
/u01/kittu/R12_2/fs1/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
addnode contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml \
pairsfile=/u01/kittu/R12_2/pairsfiles/run/myrunpairsfile.txt \
outfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml


************************ ISSUE *************************************************
Perl lib version (v5.8.8) doesn't match executable version (v5.10.0) at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Config.pm line 46.
Compilation failed in require at ./adclonectx.pl line 30.
BEGIN failed--compilation aborted at ./adclonectx.pl line 30.

************************ FIX ***************************************************
PERL5LIB=/u01/kittu/R12_2/fs1/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs1/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs1/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs1/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi

export PERL5LIB

******************************ISSUE ************************************************
ERROR: Could not clone the context file on the new node due to the following exception:
AC-00005: No write permissions for creating the Context file - /appl/admin/temp.xml
Raised by oracle.apps.ad.context.AppsContext
ERROR: An error occurred while cloning the context file. Cannot proceed further.

****************************** FIX ********************************************
[applmgr@kasarla02 R12_2]$ mkdir -p /u01/kittu/R12_2/pairsfiles/run
[applmgr@kasarla02 R12_2]$ cd /u01/kittu/R12_2/pairsfiles/run
[applmgr@kasarla02 run]$ pwd
/u01/kittu/R12_2/pairsfiles/run
[applmgr@kasarla02 run]$ ls
[applmgr@kasarla02 run]$ cp /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01_run.txt myrunpairsfile.txt

Add instance specific entries in myrunpairsfile.txt

s_temp=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/temp
s_contextname=kittu_kasarla02
s_hostname=kasarla02
s_domainname=krishnareddy.com
s_cphost=kasarla02
s_webhost=kasarla02
s_config_home=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02
s_display=kasarla02:0.0
s_forms-c4ws_display=kasarla02:0.0
s_ohs_instance=EBS_web_kittu_OHS1

Re run the add node command
[applmgr@kasarla02 fs1]$ cd /u01/kittu/R12_2/fs1/EBSapps/comn/clone/bin
[applmgr@kasarla02 bin]$ /u01/kittu/R12_2/fs1/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
' addnode contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml \
' pairsfile=/u01/kittu/R12_2/pairsfiles/run/myrunpairsfile.txt \
' outfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA

Oracle E-Business Suite Rapid Clone

Version 12.2

adclonectx Version 120.30.12020000.4


Enter the APPS passwd :

Enter the Weblogic AdminServer password :
Running:
perl /u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-create-node -contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -configfile=/u01/kittu/R12_2/pairsfiles/run/myrunpairsfile.txt -machinelistenaddress=kasarla02.krishnareddy.com -logfile=/u01/kittu/R12_2/fs1/EBSapps/comn/clone/bin/EBSProvision.log
stty: standard input: Invalid argument
Enter the APPS Schema password:
stty: standard input: Invalid argument
stty: standard input: Invalid argument
Enter the WebLogic AdminServer password:
stty: standard input: Invalid argument

Log file located at /u01/kittu/R12_2/fs1/EBSapps/comn/clone/bin/EBSProvision.log

Target System Instance Top set to /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02
Database port is 1548
Report file located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/admin/out/portpool.lst
Complete port information available at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/admin/out/portpool.lst

Creating the new APPL_TOP Context file from :
/u01/kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/admin/template/adxmlctx.tmp

The new APPL_TOP context file has been created :
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml

Log file located at /u01/kittu/R12_2/fs1/EBSapps/comn/clone/bin/EBSProvision.log
contextfile=/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
NMProcess: 'Mar 15, 2013 1:57:29 AM' 'INFO' 'Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.domains'
NMProcess: Mar 15, 2013 1:57:29 AM weblogic.nodemanager.server.NMServerConfig initDomainsMap
NMProcess: INFO: Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.domains
NMProcess: 'Mar 15, 2013 1:57:30 AM' 'WARNING' 'Node manager configuration properties file '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.properties' not found. Using default settings.'
NMProcess: Mar 15, 2013 1:57:30 AM weblogic.nodemanager.server.NMServer 'init'
NMProcess: WARNING: Node manager configuration properties file '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.properties' not found. Using default settings.
NMProcess: 'Mar 15, 2013 1:57:30 AM' 'INFO' 'Saving node manager configuration properties to '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.properties''
NMProcess: Mar 15, 2013 1:57:30 AM weblogic.nodemanager.server.NMServer 'init'
NMProcess: INFO: Saving node manager configuration properties to '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.properties'
NMProcess: Node manager v10.3
NMProcess:
NMProcess: Configuration settings:
NMProcess:
NMProcess: NodeManagerHome=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2
NMProcess: ListenAddress=kasarla02.krishnareddy.com
NMProcess: ListenPort=5583
NMProcess: ListenBacklog=50
NMProcess: SecureListener=false
NMProcess: AuthenticationEnabled=true
NMProcess: NativeVersionEnabled=true
NMProcess: CrashRecoveryEnabled=false
NMProcess: JavaHome=/u01/kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10/jre
NMProcess: StartScriptEnabled=false
NMProcess: StopScriptEnabled=false
NMProcess: StartScriptName=startWebLogic.sh
NMProcess: StopScriptName=
NMProcess: LogFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.log
NMProcess: LogLevel=INFO
NMProcess: LogLimit=0
NMProcess: LogCount=1
NMProcess: LogAppend=true
NMProcess: LogToStderr=true
NMProcess: LogFormatter=weblogic.nodemanager.server.LogFormatter
NMProcess: DomainsFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome2/nodemanager.domains
NMProcess: DomainsFileEnabled=true
NMProcess: StateCheckInterval=500
NMProcess: QuitEnabled=true
NMProcess: UseMACBroadcast=false
NMProcess: DomainRegistrationEnabled=false
NMProcess: DomainsDirRemoteSharingEnabled=false
NMProcess:
NMProcess: Domain name mappings:
NMProcess:
NMProcess: EBS_domain_kittu -' /u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu
NMProcess:
NMProcess: 'Mar 15, 2013 1:58:46 AM' 'INFO' 'EBS_domain_kittu' 'AdminServer' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 1:58:46 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 1:58:47 AM' 'INFO' 'EBS_domain_kittu' 'forms_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 1:58:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 1:58:47 AM' 'INFO' 'EBS_domain_kittu' 'oacore_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 1:58:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 1:58:47 AM' 'INFO' 'EBS_domain_kittu' 'forms-c4ws_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 1:58:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 1:58:47 AM' 'INFO' 'EBS_domain_kittu' 'oafm_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 1:58:47 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs1/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 1:58:47 AM' 'INFO' 'Plain socket listener started on port 5583, host kasarla02.krishnareddy.com'
NMProcess: Mar 15, 2013 1:58:47 AM weblogic.nodemanager.server.Listener run
NMProcess: INFO: Plain socket listener started on port 5583, host kasarla02.krishnareddy.com

Node kasarla02.krishnareddy.com is added successfully
[applmgr@kasarla02 bin]$


logout
login

now source the patch filesystem environment


[applmgr@kasarla02 kittu]$ export PATH=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin:$PATH
[applmgr@kasarla02 kittu]$ PERL5LIB=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs2/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi
[applmgr@kasarla02 kittu]$ export PERL5LIB
[applmgr@kasarla02 kittu]$ echo $PERL5LIB
/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs2/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi
[applmgr@kasarla02 kittu]$ cd /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin
[applmgr@kasarla02 bin]$ /u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
' addnode contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml \
' pairsfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt \
' outfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA

Oracle E-Business Suite Rapid Clone

Version 12.2

adclonectx Version 120.30.12020000.4


Enter the APPS passwd :

Enter the Weblogic AdminServer password :
Running:
perl /u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-create-node -contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -configfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt -machinelistenaddress=kasarla02.krishnareddy.com -logfile=/u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
stty: standard input: Invalid argument
Enter the APPS Schema password:
stty: standard input: Invalid argument
stty: standard input: Invalid argument
Enter the WebLogic AdminServer password:
stty: standard input: Invalid argument

ERROR: add node failed ! !!!
Logfile location /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
[applmgr@kasarla02 bin]$

**************************ISSUE *************************************************
ERROR: add node failed ! !!!
Logfile location /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log


Validated the passed arguments for the option ebs-create-node
AdminServer is currently not running.
ERROR: The AdminServer does not seem to be up. The AdminServer should be started up before addition of node.

************************* FIX ****************************************************
[applmgr@kasarla01 scripts]$ adstpall.sh apps/cc04ld

You are running adstpall.sh version 120.22.12020000.5


Enter the WebLogic Server password:
The logfile for this session is located at /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstpall.log

Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adapcctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adapcctl.sh version 120.0.12020000.2

Stopping OPMN managed Oracle HTTP Server (OHS) instance ...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adapcctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adcmctl.sh stop
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adcmctl.sh version 120.19.12020000.3

Shutting down concurrent managers for kittu ...
ORACLE Password:
Submitted request 1786692 for CONCURRENT FND SHUTDOWN


adcmctl.sh: exiting with status 0


adcmctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/jtffmctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running jtffmctl.sh version 120.3.12020000.4

Shutting down Fulfillment Server for kittu on port 9327 ...

jtffmctl.sh: exiting with status 0


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adopmnctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adopmnctl.sh version 120.0.12020000.2

Stopping Oracle Process Manager (OPMN) and the managed processes ...

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adopmnctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort forms-c4ws_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Stopping forms-c4ws_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adforms-c4wsctl.txt for more information ...


.end std out.
WARNING - Unable to create log file '/u01/kittu/R12_2/fs1/FMW_Home/modules/../logs/wlst_20130315022026.log'.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort forms_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Stopping forms_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adformsctl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adformsctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort oafm_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Stopping oafm_server1...
.Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoafmctl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoafmctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/admanagedsrvctl.sh abort oacore_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.4

Stopping oacore_server1...
...Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoacorectl.txt for details

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adoacorectl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adalnctl.sh stop
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

adalnctl.sh version 120.3.12020000.2

Shutting down listener process APPS_kittu.

adalnctl.sh: exiting with status 0


adalnctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adalnctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adadminsrvctl.sh stop -nopromptmsg
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adadminsrvctl.sh version 120.10.12020000.2

Stopping WLS Admin Server...
Refer /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for details

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information ...


.end std out.

.end err out.

****************************************************



Executing service control script:
/u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adnodemgrctl.sh stop -nopromptmsg
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adnodemgrctl.sh version 120.11.12020000.4


adnodemgrctl.sh: exiting with status 0

adnodemgrctl.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adnodemgrctl.txt for more information ...


.end std out.

.end err out.

****************************************************



All enabled services on this node are stopped.

adstpall.sh:Exiting with status 0

adstpall.sh: check the logfile /u01/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adstpall.log for more information ...

[applmgr@kasarla01 scripts]$


start the adadminsrvctl.sh on fs2 on node 1
[kasarlak@kasarla02 ~]$ pbrun su - applmgr
[applmgr@kasarla02 ~]$ export PATH=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin:$PATH
[applmgr@kasarla02 ~]$ PERL5LIB=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs2/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi
[applmgr@kasarla02 ~]$ export PERL5LIB
[applmgr@kasarla02 ~]$ echo $PERL5LIB
/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs2/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi
[applmgr@kasarla02 ~]$ cd /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin
[applmgr@kasarla02 bin]$ /u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
' addnode contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml \
' pairsfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt \
' outfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA

Oracle E-Business Suite Rapid Clone

Version 12.2

adclonectx Version 120.30.12020000.4


Enter the APPS passwd :

Enter the Weblogic AdminServer password :
Running:
perl /u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-create-node -contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -configfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt -machinelistenaddress=kasarla02.krishnareddy.com -logfile=/u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
stty: standard input: Invalid argument
Enter the APPS Schema password:
stty: standard input: Invalid argument
stty: standard input: Invalid argument
Enter the WebLogic AdminServer password:
stty: standard input: Invalid argument
AC-10006: Exception - java.io.FileNotFoundException: /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml (No such file or directory) thrown while creating OAVars object for file: /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml

ERROR: add node failed ! !!!
Logfile location /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
[applmgr@kasarla02 bin]$

************************ISSUE *****************************************************
[applmgr@kasarla02 bin]$ tail -45 /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
Checking OC4J RMI Port Range for Forms-c4ws on kasarla02: Port Value = 27639
OC4J RMI Port Range for Forms-c4ws available: Port Value = 27639
ERROR: Portpool 27 is not free. Please specify another port pool number.
ERROR: An error occurred while cloning the context file. Cannot proceed further.

---------------------------------------------------------------
ADX Database Utility
---------------------------------------------------------------

getConnectionUsingAppsJDBCConnector() --'
APPS_JDBC_URL='null'
Trying to get connection using SID based connect descriptor
getConnection() --'
sDbHost : null
sDbDomain : null
sDbPort : null
sDbSid : null
sDbUser : null
Trying to connect using SID...
getConnectionUsingSID() --'
JDBC URL: jdbc:oracle:thin:@null:null:null
Exception occurred: java.sql.SQLRecoverableException: IO Error: Invalid number format for port number
Trying to connect using SID as ServiceName
getConnectionUsingServiceName() --'
JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=null)(PORT=null))(CONNECT_DATA=(SERVICE_NAME=null)))
Exception occurred: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
Connection could not be obtained; returning null

-------------------ADX Database Utility Finished---------------

Could not obtain the Database connection due to the following exception:


StackTrace:
java.lang.NullPointerException
at oracle.apps.ad.util.ACUtil.setLogonTrigger(ACUtil.java:492)
at oracle.apps.ad.tools.configuration.EBSProvisioner.ebs_create_node(EBSProvisioner.java:646)
at oracle.apps.ad.tools.configuration.EBSProvisioner.ebs_create_node(EBSProvisioner.java:804)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.apps.ad.tools.configuration.EBSProvisioner.main(EBSProvisioner.java:5031)

Could not enable the EBS_LOGON trigger.
[applmgr@kasarla02 bin]$

*********************************FIX*****************************************************
[applmgr@kasarla02 ~]$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
#. /u01/kittu/applmgr/appl/APPSkittu_kasarla02.env
#. /u01/kittu/applmgr/appl/APPSkittu_kasarla02v.env
. /u01/kittu/applmgr/appl/APPSkittu_kasarla02.env
[applmgr@kasarla02 ~]$


Commented last line
[applmgr@kasarla02 ~]$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
#. /u01/kittu/applmgr/appl/APPSkittu_kasarla02.env
#. /u01/kittu/applmgr/appl/APPSkittu_kasarla02v.env
#. /u01/kittu/applmgr/appl/APPSkittu_kasarla02.env
[applmgr@kasarla02 ~]$


Re run the addnode on node2 patch filesystem


[applmgr@kasarla02 ~]$ export PATH=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin:$PATH
[applmgr@kasarla02 ~]$ PERL5LIB=/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/5.10.0:/u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/lib/site_perl/5.10.0:/u01/kittu/R12_2/fs2/EBSapps/appl/au/12.0.0/perl:/u01/kittu/R12_2/fs2/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/i686-linux-thread-multi
[applmgr@kasarla02 ~]$ export PERL5LIB
[applmgr@kasarla02 ~]$ cd /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin
[applmgr@kasarla02 bin]$ /u01/kittu/R12_2/fs2/FMW_Home/webtier/perl/bin/perl ./adclonectx.pl \
' addnode contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml \
' pairsfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt \
' outfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
Copyright (c) 2011 Oracle Corporation
Redwood Shores, California, USA

Oracle E-Business Suite Rapid Clone

Version 12.2

adclonectx Version 120.30.12020000.4


Enter the APPS passwd :

Enter the Weblogic AdminServer password :
Running:
perl /u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-create-node -contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -configfile=/u01/kittu/R12_2/pairsfiles/patch/myrunpairsfile.txt -machinelistenaddress=kasarla02.krishnareddy.com -logfile=/u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
stty: standard input: Invalid argument
Enter the APPS Schema password:
stty: standard input: Invalid argument
stty: standard input: Invalid argument
Enter the WebLogic AdminServer password:
stty: standard input: Invalid argument

Log file located at /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log

Target System Instance Top set to /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02
Database port is 1548
Report file located at /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/admin/out/portpool.lst
Complete port information available at /u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/admin/out/portpool.lst

Creating the new APPL_TOP Context file from :
/u01/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/admin/template/adxmlctx.tmp

The new APPL_TOP context file has been created :
/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml

Log file located at /u01/kittu/R12_2/fs2/EBSapps/comn/clone/bin/EBSProvision.log
contextfile=/u01/kittu/R12_2/fs2/inst/apps/kittu_kasarla02/appl/admin/kittu_kasarla02.xml
NMProcess: 'Mar 15, 2013 3:19:12 AM' 'INFO' 'Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.domains'
NMProcess: Mar 15, 2013 3:19:12 AM weblogic.nodemanager.server.NMServerConfig initDomainsMap
NMProcess: INFO: Loading domains file: /u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.domains
NMProcess: 'Mar 15, 2013 3:19:12 AM' 'WARNING' 'Node manager configuration properties file '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.properties' not found. Using default settings.'
NMProcess: Mar 15, 2013 3:19:12 AM weblogic.nodemanager.server.NMServer 'init'
NMProcess: WARNING: Node manager configuration properties file '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.properties' not found. Using default settings.
NMProcess: 'Mar 15, 2013 3:19:12 AM' 'INFO' 'Saving node manager configuration properties to '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.properties''
NMProcess: Mar 15, 2013 3:19:12 AM weblogic.nodemanager.server.NMServer 'init'
NMProcess: INFO: Saving node manager configuration properties to '/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.properties'
NMProcess: Node manager v10.3
NMProcess:
NMProcess: Configuration settings:
NMProcess:
NMProcess: NodeManagerHome=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3
NMProcess: ListenAddress=kasarla02.krishnareddy.com
NMProcess: ListenPort=5583
NMProcess: ListenBacklog=50
NMProcess: SecureListener=false
NMProcess: AuthenticationEnabled=true
NMProcess: NativeVersionEnabled=true
NMProcess: CrashRecoveryEnabled=false
NMProcess: JavaHome=/u01/kittu/R12_2/fs2/FMW_Home/jrockit_160_29_D1.2.0-10/jre
NMProcess: StartScriptEnabled=false
NMProcess: StopScriptEnabled=false
NMProcess: StartScriptName=startWebLogic.sh
NMProcess: StopScriptName=
NMProcess: LogFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.log
NMProcess: LogLevel=INFO
NMProcess: LogLimit=0
NMProcess: LogCount=1
NMProcess: LogAppend=true
NMProcess: LogToStderr=true
NMProcess: LogFormatter=weblogic.nodemanager.server.LogFormatter
NMProcess: DomainsFile=/u01/kittu/R12_2/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome3/nodemanager.domains
NMProcess: DomainsFileEnabled=true
NMProcess: StateCheckInterval=500
NMProcess: QuitEnabled=true
NMProcess: UseMACBroadcast=false
NMProcess: DomainRegistrationEnabled=false
NMProcess: DomainsDirRemoteSharingEnabled=false
NMProcess:
NMProcess: Domain name mappings:
NMProcess:
NMProcess: EBS_domain_kittu -' /u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu
NMProcess:
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'EBS_domain_kittu' 'AdminServer' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/AdminServer/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'EBS_domain_kittu' 'oacore_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oacore_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'EBS_domain_kittu' 'forms_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'EBS_domain_kittu' 'oafm_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/oafm_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'EBS_domain_kittu' 'forms-c4ws_server1' 'Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.AbstractServerManager log
NMProcess: INFO: Startup configuration properties loaded from "/u01/kittu/R12_2/fs2/FMW_Home/user_projects/domains/EBS_domain_kittu/servers/forms-c4ws_server1/data/nodemanager/startup.properties"
NMProcess: 'Mar 15, 2013 3:20:24 AM' 'INFO' 'Plain socket listener started on port 5583, host kasarla02.krishnareddy.com'
NMProcess: Mar 15, 2013 3:20:24 AM weblogic.nodemanager.server.Listener run
NMProcess: INFO: Plain socket listener started on port 5583, host kasarla02.krishnareddy.com

Node kasarla02.krishnareddy.com is added successfully
[applmgr@kasarla02 bin]$


Start the services on both the nodes and do the health check

Single to RAC DB conversion (2 nodes)

Single instance database with ASM file system


kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu is running on node kasarla01
kasarla01[kittu1]_oracle>


SQL> select INSTANCE_NAME,VERSION,STATUS from gv$instance;

INSTANCE_NAME VERSION STATUS
—————- —————– ————
kittu1 11.2.0.3.0 OPEN

Check the files of single instance


SQL> select name from v$controlfile;

NAME
————————————————————————————————————-
+ERPD_REDOA_VG/kittu/control/control01.ctl
+ERPD_REDOB_VG/kittu/control/control02.ctl


SQL> select name from v$datafile;

NAME
————————————————————————————————————–
+KITTU_VG/kittu/datafile/system01.dbf
+KITTU_VG/kittu/datafile/sysaux01.dbf
+KITTU_VG/kittu/datafile/undotbs01.dbf
+KITTU_VG/kittu/datafile/user01.dbf


SQL> select member from v$logfile;

MEMBER
—————————————————————————————————————–
+ERPD_REDOA_VG/kittu/redo/redot1gr1a.log
+ERPD_REDOA_VG/kittu/redo/redot1gr2a.log
+ERPD_REDOA_VG/kittu/redo/redot1gr3a.log


SQL> select FILE_NAME from dba_temp_files;

FILE_NAME
——————————————————————————————————————-
+KITTU_VG/kittu/datafile/temp01.dbf


SQL> archive log list;

Database log mode Archive Mode
Automatic archival Enabled
Archive destination +ERPD_ARCH_VG/kittu
Oldest online log sequence 68
Next log sequence to archive 70
Current log sequence 70


SQL> col COMP_NAME for a40
SQL> select COMP_NAME,VERSION,STATUS from dba_registry;

COMP_NAME VERSION STATUS
—————————————- —————————— ——————————————–
OWB 11.2.0.3.0 VALID
Oracle Application Express 3.2.1.00.12 VALID
Oracle Enterprise Manager 11.2.0.3.0 VALID
OLAP Catalog 11.2.0.3.0 VALID
Spatial 11.2.0.3.0 VALID
Oracle Multimedia 11.2.0.3.0 VALID
Oracle XML Database 11.2.0.3.0 VALID
Oracle Text 11.2.0.3.0 VALID
Oracle Expression Filter 11.2.0.3.0 VALID
Oracle Rules Manager 11.2.0.3.0 VALID
Oracle Workspace Manager 11.2.0.3.0 VALID
Oracle Database Catalog Views 11.2.0.3.0 VALID
Oracle Database Packages and Types 11.2.0.3.0 VALID
JServer JAVA Virtual Machine 11.2.0.3.0 VALID
Oracle XDK 11.2.0.3.0 VALID
Oracle Database Java Packages 11.2.0.3.0 VALID
OLAP Analytic Workspace 11.2.0.3.0 VALID
Oracle OLAP API 11.2.0.3.0 VALID

18 rows selected.

SQL>


Remove the single database instance from srvctl

kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is running on node kasarla01
kasarla01[kittu1]_oracle> srvctl stop database -d kittu
kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is not running on node kasarla01
kasarla01[kittu1]_oracle> srvctl remove database -d kittu
Remove the database kittu? (y/[n]) y
kasarla01[kittu1]_oracle> srvctl config database -d kittu
PRCD-1120 : The resource for database kittu could not be found.
PRCR-1001 : Resource ora.kittu.db does not exist


Start the single instance database manually

kasarla01[kittu1]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Wed Mar 6 03:53:27 2013

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

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 5177708544 bytes
Fixed Size 2237368 bytes
Variable Size 2751466568 bytes
Database Buffers 2415919104 bytes
Redo Buffers 8085504 bytes
Database mounted.
Database opened.


Create undo tablespace

SQL> create UNDO tablespace UNDOTBS2 datafile ‘+KITTU_VG/kittu/datafile/undotbs02.dbf’ size 1024m;

Tablespace created.

SQL>


Create redo logfile

SQL> select GROUP#,THREAD#,MEMBERS,STATUS from gv$log;

GROUP# THREAD# MEMBERS STATUS
———- ———- ———- —————-
1 1 1 CURRENT
2 1 1 INACTIVE
3 1 1 INACTIVE

SQL> alter database add logfile thread 2 group 4 (‘+ERPD_REDOB_VG/kittu/redo/redot2gr1b.log’) SIZE 250M;

Database altered.

SQL> alter database add logfile thread 2 group 5 (‘+ERPD_REDOB_VG/kittu/redo/redot2gr2b.log’) SIZE 250M;

Database altered.

SQL> alter database add logfile thread 2 group 6 (‘+ERPD_REDOB_VG/kittu/redo/redot2gr3b.log’) SIZE 250M;

Database altered.

SQL> alter database enable public thread 2;

Database altered.

SQL> select GROUP#,THREAD#,MEMBERS,STATUS from gv$log;

GROUP# THREAD# MEMBERS STATUS
———- ———- ———- —————-
1 1 1 CURRENT
2 1 1 INACTIVE
3 1 1 INACTIVE
4 2 1 UNUSED
5 2 1 UNUSED
6 2 1 UNUSED

6 rows selected.

SQL>


Run the clustar script

SQL> @$ORACLE_HOME/rdbms/admin/catclust.sql

Package created.

Package body created.

PL/SQL procedure successfully completed.

View created.

Synonym created.

Grant succeeded.

View created.

Grant succeeded.

Synonym created.

View created.

Grant succeeded.

Synonym created.

View created.

Grant succeeded.

Synonym created.

View created.

Grant succeeded.

Synonym created.

View created.

Grant succeeded.

Synonym created.

View created.

Grant succeeded.

Synonym created.

View created.

Grant succeeded.

Synonym created.

View created.

Grant succeeded.

View created.

Grant succeeded.

Synonym created.

Synonym created.

Synonym created.

Synonym created.

Synonym created.

Synonym created.

Synonym created.

Synonym created.

Synonym created.

Synonym created.

Synonym created.

Synonym created.

View created.

Grant succeeded.

Synonym created.

View created.

Grant succeeded.

Synonym created.

PL/SQL procedure successfully completed.

SQL>


Create a pfile

SQL> create pfile=’/tmp/kittu.ora’ from spfile;

File created.

SQL>

kittu.__db_cache_size=2432696320
kittu1.__db_cache_size=2432696320
kittu.__java_pool_size=16777216
kittu1.__java_pool_size=16777216
kittu.__large_pool_size=16777216
kittu1.__large_pool_size=16777216
kittu1.__oracle_base=’/kittu/oracle/oracle_base’#ORACLE_BASE set from environment
kittu.__pga_aggregate_target=2080374784
kittu1.__pga_aggregate_target=2080374784
kittu.__sga_target=3120562176
kittu1.__sga_target=3120562176
kittu.__shared_io_pool_size=0
kittu1.__shared_io_pool_size=0
kittu.__shared_pool_size=620756992
kittu1.__shared_pool_size=620756992
kittu.__streams_pool_size=0
kittu1.__streams_pool_size=0
*.audit_file_dest=’/kittu/oracle/oracle_base/admin/kittu/adump’
*.audit_trail=’db’
*.compatible=’11.2.0.0.0′
*.control_files=’+ERPD_REDOA_VG/kittu/control/control01.ctl’,’+ERPD_REDOB_VG/kittu/control/control02.ctl’
*.db_block_size=8192
*.db_domain=’krishnareddy.com’
*.db_name=’kittu’
*.diagnostic_dest=’/kittu/oracle/oracle_base’
*.dispatchers='(PROTOCOL=TCP) (SERVICE=kittuXDB)’
*.log_archive_dest_1=’LOCATION=+ERPD_ARCH_VG/kittu’
*.log_archive_format=’%t_%s_%r.dbf’
*.memory_target=5189402624
*.open_cursors=300
*.processes=500
*.remote_login_passwordfile=’EXCLUSIVE’
*.sessions=555

*.undo_tablespace=’UNDOTBS1′

—————-> remove this entry

##############ADD THE FOLLOWING LINES IN /tmp/kittu.ora file ######################

*.cluster_database = TRUE
*.cluster_database_instances = 2
*.undo_management=AUTO
kittu1.instance_name=kittu1
kittu1.instance_number=1
kittu1.thread=1
kittu1.undo_tablespace=UNDOTBS1
kittu2.instance_name=kittu2
kittu2.instance_number=2
kittu2.thread=2
kittu2.undo_tablespace=UNDOTBS2

#####################################################################################


Create spfile from updated pfile

SQL> create SPFILE=’+KITTU_VG/kittu/spfilekittu.ora’ from pfile=’/tmp/kittu.ora’;

File created.

SQL>


Create a init file in second node

kasarla02[kittu2]_oracle> cat initkittu2.ora
SPFILE=’+KITTU_VG/kittu/spfilekittu.ora’
kasarla02[kittu2]_oracle>


Create the TNS admin direcoty on both nodes

kasarla01[kittu1]_oracle> echo $TNS_ADMIN
/kittu/oracle/kittudb/11.2.0.3/network/admin/kittu1_kasarla01
kasarla01[kittu1]_oracle> mkdir -p /kittu/oracle/kittudb/11.2.0.3/network/admin/kittu1_kasarla01

kasarla02[kittu2]_oracle> echo $TNS_ADMIN
/kittu/oracle/kittudb/11.2.0.3/network/admin/kittu2_kasarla02
kasarla02[kittu2]_oracle> mkdir -p /kittu/oracle/kittudb/11.2.0.3/network/admin/kittu2_kasarla02


Create the audit file directory on 2nd node

kasarla02[kittu2]_oracle> mkdir -p /kittu/oracle/oracle_base/admin/kittu/adump


Check the scan ip and port number

kasarla01[kittu1]_oracle> srvctl config scan
SCAN name: erpd-scan.krishnareddy.com, Network: 1/1.2.3.4/255.255.252.0/bond0
SCAN VIP name: scan1, IP: /erpd-scan.krishnareddy.com/1.2.3.36
SCAN VIP name: scan2, IP: /erpd-scan.krishnareddy.com/1.2.3.35
SCAN VIP name: scan3, IP: /erpd-scan.krishnareddy.com/1.2.3.34
kasarla01[kittu1]_oracle> srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1525
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1525
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1525
kasarla01[kittu1]_oracle>


Add the following line in tnsnames.ora file in both nodes

kittu=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = erpd-scan.krishnareddy.com)(PORT = 1525))) (CONNECT_DATA = (SERVICE_NAME = kittu)))


test the connection in both nodes

kasarla01[kittu1]_oracle> tnsping kittu

TNS Ping Utility for Linux: Version 11.2.0.3.0 – Production on 06-MAR-2013 02:16:17

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

Used parameter files:

Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = erpd-scan.krishnareddy.com)(PORT = 1525))) (CONNECT_DATA = (SERVICE_NAME = kittu)))
OK (0 msec)
kasarla01[kittu1]_oracle>

kasarla02[kittu2]_oracle> tnsping kittu

TNS Ping Utility for Linux: Version 11.2.0.3.0 – Production on 06-MAR-2013 02:17:03

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

Used parameter files:

Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = erpd-scan.krishnareddy.com)(PORT = 1525))) (CONNECT_DATA = (SERVICE_NAME = kittu)))
OK (0 msec)
kasarla02[kittu2]_oracle> cat tnsnames.ora
kittu=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = erpd-scan.krishnareddy.com)(PORT = 1525))) (CONNECT_DATA = (SERVICE_NAME = kittu)))
kasarla02[kittu2]_oracle>


Configure listeners

–using Netca from Grid Home


Now configure Remote and local Listeners

SQL> alter system set remote_listener=”erpd-scan.krishnareddy.com:1525″ scope=both sid=’*’;

System altered.

SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=kasarla01-vip.krishnareddy.com)(PORT=1530))))’ scope=both sid=’kittu1′;

System altered.

SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=kasarla02-vip.krishnareddy.com)(PORT=1530))))’ scope=both sid=’kittu2′;

System altered.

SQL>


Create a Password fine on 2nd node

kasarla02[kittu2]_oracle>cd $ORACLE_HOME/dbs
kasarla02[kittu2]_oracle>orapwd file=orapwkittu2 password=passwd entries=10


Start the both the database manually

kasarla01[kittu1]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Wed Mar 6 03:53:27 2013

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

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 5177708544 bytes
Fixed Size 2237368 bytes
Variable Size 2751466568 bytes
Database Buffers 2415919104 bytes
Redo Buffers 8085504 bytes
Database mounted.
Database opened.
SQL>

kasarla02[kittu2]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Wed Mar 6 03:41:21 2013

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

Connected to an idle instance.


SQL> startup
ORA-03113: end-of-file on communication channel
SQL>

Alert Log shows
================
ORA-15183: ASMLIB initialization error [driver/agent not installed]
WARNING: FAILED to load library: /opt/oracle/extapi/64/asm/orcl/1/libasm.so
Errors in file /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/trace/kittu2_rbal_30137.trc:
ORA-15183: ASMLIB initialization error [driver/agent not installed]
SUCCESS: diskgroup KITTU_VG was mounted
ERROR: failed to establish dependency between database kittu and diskgroup resource ora.KITTU_VG.dg
Errors in file /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/trace/kittu2_ora_29990.trc (incident=40073):
ORA-00600: internal error code, arguments: [kfioTranslateIO03], [], [], [], [], [], [], [], [], [], [], []
Incident details in: /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/incident/incdir_40073/kittu2_ora_29990_i40073.trc

Solution
========
kasarla02[kittu2]_oracle> cd $ORACLE_HOME/bin
kasarla02[kittu2]_oracle> ls -l oracle
-rwsr-x–x 1 oracle asmadmin 232497723 Feb 24 22:22 oracle
kasarla02[kittu2]_oracle> pbrun chmod 6751 oracle
kasarla02[kittu2]_oracle> ls -l oracle
-rwsr-s–x 1 oracle asmadmin 232497723 Feb 24 22:22 oracle
kasarla02[kittu2]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Wed Mar 6 03:49:04 2013

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

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 5177708544 bytes
Fixed Size 2237368 bytes
Variable Size 2785021000 bytes
Database Buffers 2382364672 bytes
Redo Buffers 8085504 bytes
Database mounted.
Database opened.
SQL>


Now configure with srvctl and test it

kasarla01[kittu1]_oracle> srvctl config database -d kittu
PRCD-1120 : The resource for database kittu could not be found.
PRCR-1001 : Resource ora.kittu.db does not exist
kasarla01[kittu1]_oracle> srvctl add database -d kittu -o /kittu/oracle/kittudb/11.2.0.3 -a “KITTU_VG,ERPD_REDOA_VG,ERPD_REDOB_VG,ERPD_ARCH_VG”
kasarla01[kittu1]_oracle> srvctl add instance -d kittu -i kittu1 -n kasarla01
kasarla01[kittu1]_oracle> srvctl add instance -d kittu -i kittu2 -n kasarla02
kasarla01[kittu1]_oracle> srvctl modify database -d kittu -p “+KITTU_VG/kittu/spfilekittu.ora”
kasarla01[kittu1]_oracle> srvctl config database -d kittu
Database unique name: kittu
Database name:
Oracle home: /kittu/oracle/kittudb/11.2.0.3
Oracle user: oracle
Spfile: +KITTU_VG/kittu/spfilekittu.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: kittu
Database instances: kittu1,kittu2
Disk Groups: KITTU_VG,ERPD_REDOA_VG,ERPD_REDOB_VG,ERPD_ARCH_VG
Mount point paths:
Services:
Type: RAC
Database is administrator managed
kasarla01[kittu1]_oracle>
kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is not running on node kasarla01
Instance kittu2 is not running on node kasarla02
kasarla01[kittu1]_oracle> srvctl status listener -l LSTNkittu
Listener LSTNkittu is enabled
Listener LSTNkittu is running on node(s): kasarla02,kasarla01
kasarla01[kittu1]_oracle> srvctl start database -d kittu
kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is running on node kasarla01
Instance kittu2 is running on node kasarla02
kasarla01[kittu1]_oracle> srvctl stop database -d kittu
kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is not running on node kasarla01
Instance kittu2 is not running on node kasarla02
kasarla01[kittu1]_oracle>


Now check the components

SQL> SELECT comp_name, version, status FROM dba_registry;

COMP_NAME VERSION STATUS
————————————————– —————————— ——————————————–
OWB 11.2.0.3.0 VALID
Oracle Application Express 3.2.1.00.12 VALID
Oracle Enterprise Manager 11.2.0.3.0 VALID
OLAP Catalog 11.2.0.3.0 VALID
Spatial 11.2.0.3.0 VALID
Oracle Multimedia 11.2.0.3.0 VALID
Oracle XML Database 11.2.0.3.0 VALID
Oracle Text 11.2.0.3.0 VALID
Oracle Expression Filter 11.2.0.3.0 VALID
Oracle Rules Manager 11.2.0.3.0 VALID
Oracle Workspace Manager 11.2.0.3.0 VALID
Oracle Database Catalog Views 11.2.0.3.0 VALID
Oracle Database Packages and Types 11.2.0.3.0 VALID
JServer JAVA Virtual Machine 11.2.0.3.0 VALID
Oracle XDK 11.2.0.3.0 VALID
Oracle Database Java Packages 11.2.0.3.0 VALID
OLAP Analytic Workspace 11.2.0.3.0 VALID
Oracle OLAP API 11.2.0.3.0 VALID
Oracle Real Application Clusters 11.2.0.3.0 VALID

19 rows selected.

SQL>


Check if any invalid objects

SQL> select owner, object_name, object_type, status from dba_objects where status=’INVALID’;

no rows selected

SQL>

Restore DB from cold backup


Tabke the backup of db links

spool /tmp/db_links.sh
select ‘create database link ‘||db_link||’ connect to ‘||username||’ identified by using ”’||host||”’;’ from dba_db_links;
spool off


Tabke the backup of schema passwords

spool /tmp/custom_pwd.txt
select ‘alter user ‘ || name||’ identified by values ‘||””|| password ||””||’;’ from SYS.USER$ WHERE password is not null;
spool off


Tabke the backup of directory and their privs

spool /tmp/dba_directories.sh
set lines 180
set pages 300
col DIRECTORY_PATH for a80;
SELECT ‘create or replace directory ‘||DIRECTORY_NAME|| ‘ as ”’|| DIRECTORY_PATH ||”’;’ FROM dba_directories;
Spool off


Take the backup of spfile

SQL> create pfile=’/tmp/kittu_before_resotre.ora’ from spfile;

File created.


Check the contril file backup is exist or not

kasarla01[kittu1]_oracle> cd /backup/oracle/kittu/oracle/kittu1/control/
kasarla01[kittu1]_oracle> ls
kittu_02_05_2013_806591096.ctl kittu_02_14_2013_807361781.ctl


Check the backup pices

cd /backup/oracle/kittu/oracle/kittu1/full
kasarla01[kittu1]_oracle> ls -ltr
total 41453648
-rw-r—– 1 oracle asmadmin 3678625792 Feb 5 13:00 kittu_COLD_02052013_1_30
-rw-r—– 1 oracle asmadmin 1146880 Feb 5 13:00 kittu_COLD_02052013_1_34
-rw-r—– 1 oracle asmadmin 3870597120 Feb 5 13:00 kittu_COLD_02052013_1_29
-rw-r—– 1 oracle asmadmin 98304 Feb 5 13:00 kittu_COLD_02052013_1_35
-rw-r—– 1 oracle asmadmin 4507369472 Feb 5 13:01 kittu_COLD_02052013_1_31
-rw-r—– 1 oracle asmadmin 5013512192 Feb 5 13:02 kittu_COLD_02052013_1_25
-rw-r—– 1 oracle asmadmin 4381442048 Feb 5 13:02 kittu_COLD_02052013_1_27
-rw-r—– 1 oracle asmadmin 4746960896 Feb 5 13:02 kittu_COLD_02052013_1_28
-rw-r—– 1 oracle asmadmin 4752408576 Feb 5 13:03 kittu_COLD_02052013_1_32
-rw-r—– 1 oracle asmadmin 5138391040 Feb 5 13:03 kittu_COLD_02052013_1_33
-rw-r—– 1 oracle asmadmin 6274711552 Feb 5 13:04 kittu_COLD_02052013_1_26


Stop the rac database

kasarla01[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is not running on node kasarla01
Instance kittu2 is not running on node kasarla02
kasarla01[kittu1]_oracle>


SQL> startup mount restrict;

ORACLE instance started.

Total System Global Area 1.7103E+10 bytes
Fixed Size 2245480 bytes
Variable Size 7952403608 bytes
Database Buffers 9126805504 bytes
Redo Buffers 21708800 bytes
Database mounted.


SQL> alter system enable restricted session;

System altered.


SQL> alter system set cluster_database=false scope=spfile sid=’*’;

System altered.


SQL> drop database;

drop database
*
ERROR at line 1:
ORA-01586: database must be mounted EXCLUSIVE and not open for this operation


SQL> shut immediate;

ORA-01109: database not open

Database dismounted.
ORACLE instance shut down.


SQL> startup mount restrict;

ORACLE instance started.

Total System Global Area 1.7103E+10 bytes
Fixed Size 2245480 bytes
Variable Size 7952403608 bytes
Database Buffers 9126805504 bytes
Redo Buffers 21708800 bytes
Database mounted.


SQL> alter system enable restricted session;

System altered.


SQL> drop database;

Database dropped.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


SQL> startup nomount pfile=’/tmp/kittu_before_resotre.ora’;

RMAN> RESTORE CONTROLFILE from ‘/backup/oracle/kittu/oracle/kittu1/control/kittu_02_05_2013_806591096.ctl’;

Starting restore at 27-FEB-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=538 device type=DISK

channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:09
output file name=+KITTU_REDOA_VG/kittu/control/control01.ctl
output file name=+KITTU_REDOB_VG/kittu/control/control02.ctl
Finished restore at 27-FEB-13


RMAN> alter database mount;

database mounted


RMAN> catalog start with ‘/backup/oracle/kittu/oracle/kittu1/full’;

searching for all files that match the pattern /backup/oracle/kittu/oracle/kittu1/full
no files found to be unknown to the database

RMAN>


vi restore.rvc
connect target /
run
{
allocate channel C1 device type disk;
allocate channel C2 device type disk;
allocate channel C3 device type disk;
allocate channel C4 device type disk;
allocate channel C5 device type disk;
allocate channel C6 device type disk;
restore database;
switch datafile all;
}

nohup rman cmdfile=restore.rvc log=restore.log &


SQL> select status from v$instance;

STATUS
————
MOUNTED


SQL> alter database open;

alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open


SQL> alter database open resetlogs;

Database altered.


SQL> select status from v$instance;

STATUS
————
OPEN

SQL>


SQL> startup nomount pfile=’/tmp/kittu_before_resotre.ora_bck’;

ORACLE instance started.

Total System Global Area 1.7103E+10 bytes
Fixed Size 2245480 bytes
Variable Size 7952403608 bytes
Database Buffers 9126805504 bytes
Redo Buffers 21708800 bytes


SQL> create spfile=’+kittuDB_VG/kittu/spfile/spfilekittu.ora’ from pfile=’/tmp/kittu_before_resotre.ora_bck’;

File created.


SQL> shut immediate;

ORA-01507: database not mounted

ORACLE instance shut down.
SQL>


kasarla01[kittu1]_oracle> srvctl status database -d kittu

Instance kittu1 is running on node kasarla01
Instance kittu2 is running on node kasarla02
kasarla01[kittu1]_oracle>


kasarla01[kittu1]_oracle> srvctl status listener -l LSTNkittu

Listener LSTNkittu is enabled
Listener LSTNkittu is running on node(s): kasarla02,kasarla01
kasarla01[kittu1]_oracle>

DDL’s

set pages 0
set long 10000000
select dbms_metadata.get_ddl(‘PACKAGE’,’BILLERIF’,’SOWGBSDBA01′) FROM DUAL;
select dbms_metadata.get_ddl(‘PACKAGE_BODY’,’IPS_EXCEL_HC_DATA_PKG’,’IPS’) FROM DUAL;
select dbms_metadata.get_ddl(‘TRIGGER’,’TRGECALEVENTSTATS’,’CALPDBA01′) FROM DUAL;
select dbms_metadata.get_ddl(‘VIEW’,’SVC_WO_COM_DTLS_V’,’GETS_DW_SVC’) FROM DUAL;
select dbms_metadata.get_ddl(‘SEQUENCE’,’SEQ_DUEDATECHANGE_N’,’ECMDBA01′) FROM DUAL;
select dbms_metadata.get_ddl(‘USER’,’GET_DW_ETL’) from dual;
select dbms_metadata.get_ddl(‘TABLE’,’DEPT’,’SCOTT’) from dual;
select dbms_metadata.get_ddl(‘INDEX’,’DEPT_IDX’,’SCOTT’) from dual;
select dbms_metadata.get_ddl(‘DB_LINK’,’TEST.COM’,’VAP_DEFAULT_PROD’) from dual;
select dbms_metadata.get_ddl(‘PROCEDURE’,’IR_NOTE_STOP’,’DSI_DPIPE’) from dual;
select dbms_metadata.get_ddl(‘MATERIALIZED_VIEW’,’FILINGS’,’ECMDBA01′) from dual;
select dbms_metadata.get_ddl(‘CONSTRAINT’,’C1_TGDC_905C_AMT’,’FIRDBA01′) from dual;
select dbms_metadata.get_ddl(‘SYSTEM_GRANT’,’HLCDDBA01′) FROM dual;
select dbms_metadata.get_ddl(‘ROLE_GRANT’,’HLCDDBA01′) FROM dual;
select dbms_metadata.get_ddl(‘ROLE’,’SCHEMA_ROLE’) from dual;
select dbms_metadata.get_ddl(‘OBJECT_GRANT’,’HLCDDBA01′) FROM dual;
select dbms_metadata.get_granted_ddl( ‘TABLESPACE_QUOTA’, ‘HLCDDBA01’ ) from dual;

SELECT DBMS_METADATA.GET_DDL(‘USER’,u.USERNAME) FROM DBA_USERS u WHERE USERNAME IN
(‘CORPORATE_FINANCE_CMS_DB’,
‘CORPORATE_FINANCE_COGNOS_ENTER’,
‘CORPORATE_FINANCE_COGNOS_REPOR’,
‘CORPORATE_FINANCE_DDS_DM_DB’);

 

 

 

APPS

DB INFO

set pages 999
set linesize 160
col HOST_NAME format a40
col PLATFORM_NAME for a30
select INSTANCE_NAME,HOST_NAME,VERSION,STATUS,LOGINS,DATABASE_STATUS from gv$instance;
select NAME,LOG_MODE,OPEN_MODE,PLATFORM_NAME from gv$database;

APPS INFO

set lines 160
set pages 300
col PLATFORM_CODE for a15
col VIRTUAL_IP for a30
select NODE_NAME “Node Name”, to_char(CREATION_DATE, ‘DD-MON-RR HH24:MI’) “Creation Date”,
decode(STATUS,’Y’,’ACTIVE’,’INACTIVE’) Status,
decode(SUPPORT_CP,’Y’, ‘ConcMgr’,’No’) ConcMgr,
decode(SUPPORT_FORMS,’Y’,’Forms’, ‘No’) Forms,
decode(SUPPORT_WEB,’Y’,’Web’, ‘No’) WebServer,
decode(SUPPORT_ADMIN, ‘Y’,’Admin’, ‘No’) Admin,
decode(SUPPORT_DB, ‘Y’,’Rdbms’, ‘No’) Database,
PLATFORM_CODE, VIRTUAL_IP
from apps.fnd_nodes
where node_name != ‘AUTHENTICATION’;

Application version

select RELEASE_NAME from fnd_product_groups;

APPLICATION URL

select home_url from apps.icx_parameters;

languages installed

select NLS_LANGUAGE, INSTALLED_FLAG,LANGUAGE_CODE from FND_LANGUAGES where INSTALLED_FLAG in (‘B’,’I’);

Shared appl_top or not

select SHARED, APPL_TOP_GUID,PATH  from apps.fnd_appl_tops;

find MRC Enabled ??

select multi_currency_flag from fnd_product_groups;

find Multi-org enabled?

select multi_org_flag from fnd_product_groups;

Workflow Version

select TEXT from WF_RESOURCES where NAME=’WF_VERSION’;

workflow mailer status

select COMPONENT_NAME,COMPONENT_STATUS from FND_SVC_COMPONENTS where component_id = ‘10006’;

workflow COMPONENT status

set lines 160
select COMPONENT_NAME,COMPONENT_STATUS from FND_SVC_COMPONENTS;

to findout the MODULE/PRODUCT is installed or not ?

col product for a10
col status for a15
col product_version for a10
col patchset for a30
col update_date for a15

select  decode(nvl(a.APPLICATION_short_name,’Not Found’),’SQLAP’,’AP’,’SQLGL’,’GL’,’OFA’,’FA’,
‘Not Found’,’id ‘||to_char(fpi.application_id),
a.APPLICATION_short_name) Product,
decode(fpi.status,’I’,’Installed’,’S’,’Shared’,’N’,’Inactive’,fpi.status) status,
fpi.product_version,
nvl(fpi.patch_level,’– Not Available –‘) Patchset,
to_char(fpi.last_update_date,’dd-Mon-RRRR’) “Update_Date”
from  apps.fnd_oracle_userid o, apps.fnd_application a, apps.fnd_product_installations fpi
where  fpi.application_id = a.application_id(+)
and  fpi.oracle_id = o.oracle_id(+)
order by 2,1
/

Patching querys

select bug_number creation_date from ad_bugs where bug_number in (
‘6272107’,
‘6272107’,
‘6272107’,
‘6272107’,
‘6272107’,
‘6272107’);
select BUG_NUMBER,CREATION_DATE,LANGUAGE  from apps.ad_bugs where BUG_NUMBER like ‘&patchno’;
select BUG_NUMBER,CREATION_DATE,LANGUAGE  from apps.ad_bugs where creation_date between ’11-FEB-11′ AND ’12-FEB-11′;
select BUG_NUMBER,CREATION_DATE,LANGUAGE  from apps.ad_bugs where creation_date like ‘%11-FEB-11%’;
select BUG_NUMBER,CREATION_DATE,LANGUAGE  from apps.ad_bugs where bug_number like ‘598704%’;
select BUG_NUMBER,CREATION_DATE,LANGUAGE  from apps.ad_bugs where creation_date>’11-FEB-11′;
select BUG_NUMBER,CREATION_DATE,LANGUAGE  from apps.ad_bugs where creation_date<’11-FEB-11′;
select PATCH_NAME,PATCH_TYPE,CREATION_DATE from AD_APPLIED_PATCHES where CREATION_DATE LIKE  ‘%12-FEB-11%’;

 

what are all the nodes patch has been applied

select aap.patch_name, aat.name, apr.end_date
from ad_applied_patches aap,
ad_patch_drivers apd,
ad_patch_runs apr,
ad_appl_tops aat
where aap.applied_patch_id = apd.applied_patch_id
and apd.patch_driver_id = apr.patch_driver_id
and aat.appl_top_id = apr.appl_top_id
and aap.patch_name = ‘&PatchName’;

What drivers are applied while applying patch??

select apd.driver_file_name, apd.DRIVER_TYPE_C_FLAG “C”,
apd.DRIVER_TYPE_D_FLAG “D”, apd.DRIVER_TYPE_G_FLAG “G” ,
apdl.language from ad_patch_drivers apd, ad_patch_driver_langs apdl
where apd.patch_driver_id=apdl.patch_driver_id and
apd.driver_file_name like ‘%&a%’;

distributed ad

on node 1 give the below command
adpatch options=hotpatch workers=48 localworkers=24
on node 2 give the below command
adctrl distributed=y

admerge

admrgpch -s /cfsdshr/ccld3/appccld3/temp/patches/oem/9444535_long -d /cfsdshr/ccld3/appccld3/temp/patches/oem/9444535_long/dest

Apache version

$IAS_ORACLE_HOME/Apache/Apache/bin/httpd -v

perl version

$IAS_ORACLE_HOME/perl/bin/perl -v|grep built

Java version

$AFJVAPRG -version

Client JRE version

cat $FORMS_WEB_CONFIG_FILE|grep sun_plugin_version

Forms Version

$ORACLE_HOME/bin/frmcmp_batch|grep Forms| grep Version

PL/SQL Version

$ORACLE_HOME/bin/frmcmp_batch|grep PL/SQL|grep Version

Forms Communication Mode

cat $FORMS_WEB_CONFIG_FILE|grep serverURL=

 

 

 

 

 

 

 

 

 

 

USERS

 

TO CHECK THE GIVEN USER PRIVILLAGES

select
lpad(‘ ‘, 2*level) || granted_role “User, his roles and privileges”
from
(
/* THE USERS */
select
null     grantee,
username granted_role
from
dba_users
where
username like upper(‘%&enter_username%’)
/* THE ROLES TO ROLES RELATIONS */
union
select
grantee,
granted_role
from
dba_role_privs
/* THE ROLES TO PRIVILEGE RELATIONS */
union
select
grantee,
privilege
from
dba_sys_privs
)
start with grantee is null
connect by grantee = prior granted_role;

 

TO CHECK OBJECTS COUNT FOR A USER

 

select object_type,count(*) from dba_objects where owner=’CASAA_DW’ group by object_type;

 

TO CHECK USER DETIALS

select USERNAME,ACCOUNT_STATUS,DEFAULT_TABLESPACE,TEMPORARY_TABLESPACE from dba_users where USERNAME=’&USERNAME’;

 

TO GET USER DETIALS USING DDLS

 

set pagesize 0
set long 90000
set heading off;
set echo off;
Set pages 999;
set long 90000;
SELECT DBMS_METADATA.GET_DDL(‘USER’,’E_USER’) FROM dual;  
select DBMS_METADATA.GET_GRANTED_DDL(‘SYSTEM_GRANT’,’E_USER’) FROM dual;  
select DBMS_METADATA.GET_GRANTED_DDL(‘ROLE_GRANT’,’E_USER’) FROM dual;  
select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’E_USER’) FROM dual;

 

create a user

 

CREATE USER H_PP14 IDENTIFIED BY passwd DEFAULT TABLESPACE “USERS_DATA” TEMPORARY TABLESPACE “TEMP”;

 

grants

 

grant connect to HYPP14;
grant resource to HYPP14;
GRANT CREATE VIEW TO HYPP14;
GRANT CREATE TABLE TO HYPP14;
GRANT UNLIMITED TABLESPACE TO HYPP14;
GRANT EXECUTE ON HYP_USER.USERMAINTENANCE to IDM_USER;
OR

SELECT ‘GRANT SELECT ON ‘||OWNER||’.’ ||TABLE_NAME || ‘ TO UMESH;’ FROM DBA_TABLES where OWNER=’CA_DW’;

ALL GRANTS AT A TIME FROM ONE USER TO ANOTHER USER

select ‘grant ‘||decode(object_type,’TABLE’,’select,insert,delete,update ‘,’VIEW’,’select,insert,delete,update ‘,’SEQUENCE’,’SELECT ‘,’PROCEDURE’,’EXECUTE ‘,’PACKAGE’,’EXECUTE ‘,’TRIGGER’,’EXECUTE ‘,’FUNCTION’,’EXECUTE ‘)||
‘ on ‘||owner||’.’||object_name||’ to TO_USER;’
from dba_objects where OWNER=’FROM_USER’
and object_type not in (‘INDEX’,’PACKAGE BODY’,’DATABASE LINK’);

 

 

set pages 40000
select ‘ create synonym new_user.’|| object_name ||’ for ‘ ||owner||’.’ ||object_name ||’;’ from dba_objects where owner=’old user’ and object_type in (‘TABLE’,’VIEW’,’SEQUENCE’,’TRIGGER’);

 

select ‘GRANT SELECT ON ‘||owner||’.’||table_name||’ TO new_user ;’ from dba_tables where owner=’olduser’;

to check the expiry date

select USERNAME,ACCOUNT_STATUS,EXPIRY_DATE from dba_users where EXPIRY_DATE between sysdate and sysdate+7;

 

alter user RAC_ACCNT account unlock;

 

SQL>  select NAME,PASSWORD from sys.user$ where NAME=’&DBUSER’;

NAME                           PASSWORD
—————————— ——————————
DBUSER                         A6D4555654AB883338B888A

SQL> alter user DBUSER identified by values ‘A6D4555654AB883338B888A’;

User altered.

SQL> select USERNAME,EXPIRY_DATE from dba_users where USERNAME=’DBUSER’;

USERNAME                       EXPIRY_DA
—————————— ———
DBUSER                         27-APR-13

SQL> alter user APPS_TRINITY identified by values ‘123BBE968’;

alter user APPS_TRINITY identified by values ‘123BBE968’
*
ERROR at line 1:
ORA-28007: the password cannot be reused

set lines 170
set pages 300
select * from dba_profiles;
SQL> alter profile default LIMIT PASSWORD_REUSE_TIME UNLIMITED;

Profile altered.
SQL> alter user APPS_TRINITY identified by values ‘123BBE968’;

User altered.
SQL> alter profile default LIMIT PASSWORD_REUSE_TIME 1800;

Profile altered.

Grants for other OBJECT_TYPE

 

SQL> select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′) FROM dual;

DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′)
——————————————————————————–

GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER01”

SQL> GRANT EXECUTE ON “SYS”.”NON-EBS” TO USER02;
GRANT EXECUTE ON “SYS”.”NON-EBS” TO USER02
*
ERROR at line 1:
ORA-04042: procedure, function, package, or package body does not exist

SQL> select OBJECT_NAME,OBJECT_TYPE,OWNER from dba_objects where OBJECT_NAME like ‘%NON-EBS%’;

OBJECT_NAME          OBJECT_TYPE         OWNER
——————– ——————- ——————————
NON-EBS              CONSUMER GROUP      SYS

SQL> exec dbms_resource_manager_privs.GRANT_SWITCH_CONSUMER_GROUP(grantee_name=>’USER02′,consumer_group=>’NON-EBS’,grant_option=> false);

PL/SQL procedure successfully completed.

SQL>  select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′) FROM dual;

DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER01′)
——————————————————————————–

GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER01”

 

SQL> select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′) FROM dual;

DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′)
——————————————————————————–

GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER02” WITH GRANT OPTION

SQL> exec dbms_resource_manager_privs.REVOKE_SWITCH_CONSUMER_GROUP (‘USER02′,’NON-EBS’);

PL/SQL procedure successfully completed.

SQL> exec dbms_resource_manager_privs.GRANT_SWITCH_CONSUMER_GROUP(grantee_name=>’USER02′,consumer_group=>’NON-EBS’,grant_option=> false);

PL/SQL procedure successfully completed.

SQL>  select DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′) FROM dual;

DBMS_METADATA.GET_GRANTED_DDL(‘OBJECT_GRANT’,’USER02′)
——————————————————————————–

GRANT EXECUTE ON “SYS”.”NON-EBS” TO “USER02”

 

 

RMAN COMMANDS

 

RMAN INCREMENTAL LEVEL 0 BACKUP SCRIPT

 

RUN
{
ALLOCATE CHANNEL CH1 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
ALLOCATE CHANNEL CH2 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
ALLOCATE CHANNEL CH3 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
ALLOCATE CHANNEL CH4 DEVICE TYPE DISK FORMAT ‘/backup1/incr/%d_HOT_%M%D%Y_%p_%s’;
BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL = 0 DATABASE TAG kittu4_HOTINCR_11102012;
BACKUP FORMAT ‘/backup1/control/%d_%M_%D_%Y_%t.ctl’
CURRENT CONTROLFILE TAG kittu4_control_11102012;
sql “alter system archive log current”;
backup AS COMPRESSED BACKUPSET archivelog all format ‘/backup1/incr/%d_ARCH_%M%D%Y_%p_%s’;
}

 

TO RESTORE THE MISSING ARCHIVES FROM TAPE

run
{
set archivelog destination to ‘/backup1/backup/oracle/cfs/backup’;
ALLOCATE CHANNEL CH1 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH2 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH3 DEVICE TYPE SBT;
ALLOCATE CHANNEL CH4 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH5 DEVICE TYPE DISK;
ALLOCATE CHANNEL CH6 DEVICE TYPE DISK;
restore archivelog sequence between 1049 and 1053;
}

 

TO REGISTRING THE BACKUP PICES LOCATION

RMAN> catalog start with ‘/ora11/u02/oracle/kittu1_bkp’;

 

TO DUPLICATE THE DATABASE EXCLUDING FEW TABLESPACE

run
{
allocate auxiliary channel ch1 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch2 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch3 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch4 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
allocate auxiliary channel ch5 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
set until SCN 12448690600646;
set newname for datafile 1001 to ‘backup/data1/users04.dbf’;
set newname for datafile 1013 to ‘backup/data1/undotbsp37.dbf’;
set newname for datafile 1012 to ‘backup/data1/undotbsp36.dbf’;
set newname for datafile 1011 to ‘backup/data1/undotbsp35.dbf’;
set newname for tempfile 21 to ‘backup/data1/tempu_11.dbf’;
set newname for tempfile 22 to ‘backup/data1/tempu_12.dbf’;
duplicate target database to temp
skip tablespace GETS_DW_UXD,GETS_DW_UXX,IDWD,IDWDL,IDWDX,IDWXL,IDWXM,IDWXX,JAROSDIMDAT,JAROSDIMIDX,JAROSFACTDAT,JAROSFACTIDX,JAROSMETADAT,JAROSMETAIDX
LOGFILE
group 1 (‘backup/redo_1/kittu/kittu_redo_1a.log’,’backup/redo_2/kittu/kittu_redo_1b.log’) size 2000m,
group 2 (‘backup/redo_1/kittu/kittu_redo_2a.log’,’backup/redo_2/kittu/kittu_redo_2b.log’) size 2000m;
}

 

similar script using set until time

run {
set until time “to_date(’23-07-2012 16:00:00′,’dd-mm-yyyy hh24:mi:ss’)”;
allocate auxiliary channel aux_disk1 device type disk;
allocate auxiliary channel aux_disk2 device type disk;
allocate auxiliary channel aux_disk3 device type disk;
allocate auxiliary channel aux_disk4 device type disk;
allocate auxiliary channel aux_disk5 device type disk;
allocate auxiliary channel aux_disk6 device type disk;
allocate auxiliary channel aux_disk7 device type disk;
allocate auxiliary channel aux_disk8 device type disk;
duplicate database to ‘testdb’
BACKUP LOCATION ‘/backup/oracle/kittu/oracle/kittu1/incr’
NOFILENAMECHECK
spfile
set db_unique_name=’testdb’
set DB_FILE_NAME_CONVERT=’+KITTU_VG/kittu/datafile’, ‘/backup/oracle/testdb/data’
set LOG_FILE_NAME_CONVERT=’+KITTU_VG/kittu/onlinelog’, ‘/backup/oracle/testdb/redo’
set SGA_TARGET=”8G”
set sga_max_size=”8G”
set CONTROL_FILES=’/backup/oracle/testdb/control/control01.ctl’,’/backup/oracle/testdb/control/control02.ctl’
set log_archive_max_processes=’5′                                    
set log_archive_dest_1=’LOCATION=/backup/oracle/testdb/arch’
set diagnostic_dest=’/kittu/oracle/oracle_base’
set audit_file_dest=’/kittu/oracle/oracle_base/admin/testdb/adump’
set compatible=’11.2.0.2′  
set job_queue_processes=’0′
set aq_tm_processes=’0′   
set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=hostname.domain.com)(PORT=1530))’
set remote_listener=’1525′
set cluster_database=’FALSE’; }
}

 

To test the Tape is configured for  restore

run
{
allocate channel ch1 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=server_b,NB_ORA_CLIENT=client_b)’;
}

 

CLONING TO ANOTHER NODE

run
{
allocate channel C1 device type disk;
allocate channel C2 device type disk;
allocate channel C3 device type disk;
allocate channel C4 device type disk;
allocate channel C5 device type disk;
allocate channel C6 device type disk;
set newname for datafile 1 to ‘/ora11/u01/oracle/kittu1/data/system01.dbf’;
set newname for datafile 2 to ‘/ora11/u01/oracle/kittu1/data/tools01.dbf’;
set newname for datafile 3 to ‘/ora11/u01/oracle/kittu1/data/def01.dbf’;
set newname for datafile 4 to ‘/ora11/u01/oracle/kittu1/data/tsecwpindx01.dbf’;
set newname for datafile 5 to ‘/ora11/u01/oracle/kittu1/data/tsfaadmdta01.dbf’;
set newname for datafile 6 to ‘/ora11/u01/oracle/kittu1/data/tsfaadmidx01.dbf’;
restore database;
switch datafile all;
recover database;
}

 

helpful querys

set pages0
set heading off
set echo off
set flush off
set pagesize 50000
set linesize 32767
set long 50000
select owner||’:’|| dbms_metadata.get_ddl(‘DB_LINK’,db_link,owner) from dba_db_links;
select distinct substr(file_name,0,instr(file_name,’/’,-1)) “Data MOunts” from dba_data_files;
select ‘alter database rename file ‘||””|| member||””|| ‘ to ‘|| ””||’/ora11/u01/oracle/kittu1/redo1/’||SUBSTR(member, INSTR(member, ‘/’, -1) + 1)||””||’;’ from  v$logfile ;
select ‘set newname for datafile ‘||file#||’ to ‘||””||’/ora11/u01/oracle/kittu1/data/’||SUBSTR(name, INSTR(name, ‘/’, -1) + 1)||””||’;’ from v$datafile;
select ‘ALTER DATABASE TEMPFILE ‘||””||name||””||’ DROP;’ from v$tempfile;
select ‘alter user ‘||username||’ identified by values ‘||””||password||””|| ‘;’ from dba_users;
select ‘alter user ‘||name||’ identified by values ‘||password||’;’ from SYS.USER$;
select member from v$logfile;
nohup rman cmdfile=restor.ctl log=resotre_kittu1.log &

select a.sid,a.serial#,b.username,b.opname,LAST_UPDATE_TIME,round(b.SOFAR*100 / b.TOTALWORK,2) || ‘%’ as progress,
b.TIME_REMAINING,b.target from gV$SESSION_LONGOPS b,gV$SESSION a where a.sid=b.sid and TIME_REMAINING <> 0 order by 6;

Select OPERATION,STATUS,TO_CHAR(start_time,’DD-MON-YY HH24:MI’),TO_CHAR(end_time,’DD-MON-YY HH24:MI’),OUTPUT_DEVICE_TYPE from V$RMAN_STATUS;
Select OPERATION,STATUS,TO_CHAR(start_time,’DD-MON-YY HH24:MI’),TO_CHAR(end_time,’DD-MON-YY HH24:MI’),OUTPUT_DEVICE_TYPE from V$RMAN_STATUS where start_time>sysdate-1 ;
SELECT TO_CHAR(start_time,’DD-MON-YY HH24:MI’) “Start of backup”,Sofar, totalwork,elapsed_seconds/60 “ELAPSED TIME IN MINUTES”,ROUND(sofar/totalwork*100,2) “Percentage Completed so far” FROM v$session_longops;

select distinct(CHECKPOINT_CHANGE#) from v$datafile;

 

Frequently Asked Questions about Restoring Or Duplicating Between Different Versions And Platforms [ID 369644.1]
Compatibility Matrix for Export And Import Between Different Oracle Versions [Video] [ID 132904.1]

 

ADRCI Command

For any ora 600 or ora 7445 error I  encourage all to use adrci more than uploading trace and alert logs individually.

hostname[instance]_oracle> adrci

ADRCI: Release 11.2.0.2.0 – Production on Fri Jul 20 00:00:13 2012

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

ADR base = “/instance/oracle/oracle_base”

adrci> show home

ADR Homes:
diag/rdbms/instance/instance
diag/clients/user_oracle/host_777677599_80

 

adrci> set home diag/rdbms/instance/instance

adrci> show incident

ADR Home = /instance/oracle/oracle_base/diag/rdbms/instance/instance:
*************************************************************************
INCIDENT_ID          PROBLEM_KEY                                                 CREATE_TIME
——————– ———————————————————– —————————————-
61937                ORA 7445 [ksmdget()+337]                                    2012-07-19 23:00:24.905000 -04:00
60017                ORA 7445 [ksmdgup()+57]                                     2012-07-19 23:00:28.814000 -04:00
2 rows fetched

adrci> ips pack incident 61937 in /tmp

Generated package 1 in file /tmp/ORA7445ks_20120720000220_COM_1.zip, mode complete

-rw-r–r– 1 oracle oinstall 171184398 Jul 20 00:06 ORA7445ks_20120720000220_COM_1.zip

adrci> show problem

 

ADR Home = /instance/oracle/oracle_base/diag/rdbms/instance/instance:
*************************************************************************
PROBLEM_ID           PROBLEM_KEY                                                 LAST_INCIDENT        LASTINC_TIME
——————– ———————————————————– ——————– —————————————-
1                    ORA 7445 [ksmdget()+337]                                    61937                2012-07-19 23:00:24.905000 -04:00
2                    ORA 7445 [ksmdgup()+57]                                     60017                2012-07-19 23:00:28.814000 -04:00
2 rows fetched

adrci> show alert

Choose the alert log from the following homes to view:

1: diag/rdbms/kittu/kittu2
2: diag/tnslsnr/kasarla/listener_kittu
3: diag/tnslsnr/kasarla/lsnrkittu
4: diag/tnslsnr/kasarla/listener_scan1
5: diag/tnslsnr/kasarla/lstnkittu
6: diag/clients/user_oracle/host_3639815057_80
Q: to quit

Please select option: 1

 

DB LINKS

<code>
col OWNER for a12
col DB_LINK for a20
col USERNAME for a12
col HOST for a50
set pages 200
select OWNER,DB_LINK,USERNAME,HOST from dba_db_links where DB_LINK=upper(‘&dblink_name’);

To view the existing db links and their properties like private or public
set lines 180
set pages 300
col OWNER format a10
col DB_LINK format a40
col USERNAME format a15
col HOST for a80
set long 100000
select * FROM dba_db_links;

 

to get the DDL for particular db link use this command

SQL> set long 100000

SQL> select dbms_metadata.get_ddl( ‘DB_LINK’, ‘hostname.domainname.com’,’APPS’ ) from dual;

Create db link by connecting to owner of the db link where it need to be connect in the target database user

hostname[dev]_oracle> sqlplus apps/password
SQL*Plus: Release 11.2.0.2.0 Production on Wed May 23 12:11:52 2012
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> show user
USER is “APPS”

SQL>
create database link hostname.domainname.com
2  connect to APPS identified by  password
3  using
4  ‘(DESCRIPTION=
5              (LOAD_BALANCE=YES)
6              (FAILOVER=YES)
7              (ADDRESS_LIST=
8                  (ADDRESS=(PROTOCOL=tcp)(HOST=prod-scan.domainname.com)(PORT=1525))
9              )
10              (CONNECT_DATA=
11                  (SERVICE_NAME=stage)
12              )
13          )’;

 

Database link created.

Add the target tns details in source and test the connection by issuing the below command

SQL> SELECT COUNT(*) FROM DUAL@hostname.domainname.com;

COUNT(*)
———-
1

to drop the db link connect to the owner of db link and drop

SQL> conn apps/password

Connected.

SQL> drop database link “hostname.domainname.com”;

database link dropped

SELECT ‘CREATE ‘||DECODE(U.NAME,’PUBLIC’,’public ‘)||’DATABASE LINK ‘||CHR(10)
||DECODE(U.NAME,’PUBLIC’,Null, ‘SYS’,”,U.NAME||’.’)|| L.NAME||chr(10)
||’CONNECT TO ‘ || L.USERID || ‘ IDENTIFIED BY “‘||L.PASSWORD||'” USING
”’||L.HOST||””
||chr(10)||’;’ TEXT
FROM SYS.LINK$ L, SYS.USER$ U
WHERE L.OWNER# = U.USER#;

 

SELECT ‘CREATE ‘||DECODE(U.NAME,’PUBLIC’,’public ‘)||’DATABASE LINK ‘||CHR(10)
||DECODE(U.NAME,’PUBLIC’,Null, ‘SYS’,”,U.NAME||’.’)|| L.NAME||chr(10)
||’CONNECT TO ‘ || L.USERID || ‘ IDENTIFIED BY “‘||L.PASSWORD||'” USING ”’||L.HOST||””
||chr(10)||’;’ TEXT
FROM SYS.LINK$ L, SYS.USER$ U
WHERE L.OWNER# = U.USER#
and l.USERID like ‘%????%’;

select ‘conn ‘||owner||’/&&’||owner|| chr(10)||’create database link  ‘||rtrim(ltrim(db_link))||’ ‘||’connect to ‘||rtrim(ltrim(username))||’  identified by ‘||rtrim(ltrim(password))||’ using  ‘||””||rtrim(ltrim(b.host))||””||’;’
from   dba_db_links A, sys.link$ B
where  A.db_link = B.name
and    B.ctime   = A.created
and    owner like ‘&Owner’
order  by owner;

SELECT name, value FROM v$parameter WHERE (name LIKE ‘%link%’) OR (name IN (‘global_names’, ‘dblink_encrypt_login’));

 </code>

 

 

PROFILE CREATION

 

hostname[instance]_oracle> sqlplus ‘/as sysdba’
SQL*Plus: Release 11.2.0.2.0 Production on Thu Aug 30 01:43:50 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> set lines 160
SQL> set pages 500
SQL> select USERNAME,CREATED,EXPIRY_DATE,ACCOUNT_STATUS,PROFILE from dba_users where username like ‘%HYP%’ order by 2;

USERNAME CREATED EXPIRY_DA ACCOUNT_STATUS PROFILE
—————————— ——— ——— ——————————– ——————————
user1 13-FEB-12 OPEN DEFAULT
user2 13-FEB-12 OPEN DEFAULT
user3 13-FEB-12 OPEN DEFAULT

check the available profiles in database
SQL> select * from dba_profiles;
PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
DEFAULT COMPOSITE_LIMITKERNEL UNLIMITED
DEFAULT SESSIONS_PER_USERKERNEL UNLIMITED
DEFAULT CPU_PER_SESSIONKERNEL UNLIMITED
DEFAULT CPU_PER_CALLKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_CALLKERNEL UNLIMITED
DEFAULT IDLE_TIMEKERNEL UNLIMITED
DEFAULT CONNECT_TIMEKERNEL UNLIMITED
DEFAULT PRIVATE_SGAKERNEL UNLIMITED
DEFAULT FAILED_LOGIN_ATTEMPTSPASSWORD 10
DEFAULT PASSWORD_LIFE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_MAXPASSWORD UNLIMITED
DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
DEFAULT PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_GRACE_TIMEPASSWORD UNLIMITED

16 rows selected.


only one profile is available so see the details about the profile

SQL> select * from dba_profiles where PROFILE=’DEFAULT’;
PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
DEFAULT COMPOSITE_LIMITKERNEL UNLIMITED
DEFAULT SESSIONS_PER_USERKERNEL UNLIMITED
DEFAULT CPU_PER_SESSIONKERNEL UNLIMITED
DEFAULT CPU_PER_CALLKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_CALLKERNEL UNLIMITED
DEFAULT IDLE_TIMEKERNEL UNLIMITED
DEFAULT CONNECT_TIMEKERNEL UNLIMITED
DEFAULT PRIVATE_SGAKERNEL UNLIMITED
DEFAULT FAILED_LOGIN_ATTEMPTSPASSWORD 10
DEFAULT PASSWORD_LIFE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_MAXPASSWORD UNLIMITED
DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
DEFAULT PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_GRACE_TIMEPASSWORD UNLIMITED

16 rows selected.

Create a new profile and modify according to existing profile SQL> create Profile custom LIMIT PASSWORD_LIFE_TIME 365;
Profile created.
SQL> alter profile CUSTOM limit PASSWORD_REUSE_TIME UNLIMITED;
SQL> alter profile CUSTOM limit COMPOSITE_LIMIT UNLIMITED;
SQL> alter profile CUSTOM limit SESSIONS_PER_USER UNLIMITED;
SQL> alter profile CUSTOM limit CPU_PER_SESSION UNLIMITED;
SQL> alter profile CUSTOM limit CPU_PER_CALL UNLIMITED;
SQL> alter profile CUSTOM limit LOGICAL_READS_PER_SESSION UNLIMITED;
SQL> alter profile CUSTOM limit LOGICAL_READS_PER_CALL UNLIMITED;
SQL> alter profile CUSTOM limit IDLE_TIME UNLIMITED;
SQL> alter profile CUSTOM limit CONNECT_TIME UNLIMITED;
SQL> alter profile CUSTOM limit PRIVATE_SGA UNLIMITED;
SQL> alter profile CUSTOM limit PASSWORD_LOCK_TIME UNLIMITED;
SQL> alter profile CUSTOM limit PASSWORD_GRACE_TIME UNLIMITED;
SQL> alter profile CUSTOM limit PASSWORD_VERIFY_FUNCTION PASSWORD_VERIFY;
SQL> alter profile CUSTOM limit FAILED_LOGIN_ATTEMPTS 10;
SQL> alter profile CUSTOM limit PASSWORD_REUSE_MAX UNLIMITED;

Now compare the both existing and new profile are same same or not in new profile password expiry is set to 365 days SQL> select * from dba_profiles where PROFILE=’DEFAULT’;
PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
DEFAULT COMPOSITE_LIMITKERNEL UNLIMITED
DEFAULT SESSIONS_PER_USERKERNEL UNLIMITED
DEFAULT CPU_PER_SESSIONKERNEL UNLIMITED
DEFAULT CPU_PER_CALLKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
DEFAULT LOGICAL_READS_PER_CALLKERNEL UNLIMITED
DEFAULT IDLE_TIMEKERNEL UNLIMITED
DEFAULT CONNECT_TIMEKERNEL UNLIMITED
DEFAULT PRIVATE_SGAKERNEL UNLIMITED
DEFAULT FAILED_LOGIN_ATTEMPTSPASSWORD 10
DEFAULT PASSWORD_LIFE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_REUSE_MAXPASSWORD UNLIMITED
DEFAULT PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
DEFAULT PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
DEFAULT PASSWORD_GRACE_TIMEPASSWORD UNLIMITED

16 rows selected.

SQL> select * from dba_profiles where PROFILE=’CUSTOM’;
PROFILE RESOURCE_NAMERESOURCE LIMIT
—————————— ——————————– ——– —————————————-
CUSTOM COMPOSITE_LIMITKERNEL UNLIMITED
CUSTOM SESSIONS_PER_USERKERNEL UNLIMITED
CUSTOM CPU_PER_SESSIONKERNEL UNLIMITED
CUSTOM CPU_PER_CALLKERNEL UNLIMITED
CUSTOM LOGICAL_READS_PER_SESSIONKERNEL UNLIMITED
CUSTOM LOGICAL_READS_PER_CALLKERNEL UNLIMITED
CUSTOM IDLE_TIMEKERNEL UNLIMITED
CUSTOM CONNECT_TIMEKERNEL UNLIMITED
CUSTOM PRIVATE_SGAKERNEL UNLIMITED
CUSTOM FAILED_LOGIN_ATTEMPTSPASSWORD 10
CUSTOM PASSWORD_LIFE_TIMEPASSWORD 365
CUSTOM PASSWORD_REUSE_TIMEPASSWORD UNLIMITED
CUSTOM PASSWORD_REUSE_MAXPASSWORD UNLIMITED
CUSTOM PASSWORD_VERIFY_FUNCTION PASSWORD PASSWORD_VERIFY
CUSTOM PASSWORD_LOCK_TIMEPASSWORD UNLIMITED
CUSTOM PASSWORD_GRACE_TIMEPASSWORD UNLIMITED

16 rows selected.

now assign the profile to users ‘ who expiry date you want to extend to 1 year’
SQL> alter user user1 PROFILE CUSTOM;
SQL> alter user user3 PROFILE CUSTOM;
SQL> alter user user2 PROFILE CUSTOM;

SQL> select USERNAME,CREATED,EXPIRY_DATE,ACCOUNT_STATUS,PROFILE from dba_users where username like ‘%HYP%’ order by 2;

USERNAME CREATED EXPIRY_DA ACCOUNT_STATUS PROFILE
—————————— ——— ——— ——————————– ——————————
user1 13-FEB-12 12-FEB-13 OPEN CUSTOM
user2 13-FEB-12 12-FEB-13 OPEN CUSTOM
user3 13-FEB-12 12-FEB-13 OPEN CUSTOM

observer carefully user are assigned to new profile ‘CUSTOM’ but expity date is changed acouding to creation date to 1year
to effect this changes we need to update the password below query to get the passwords of all users

SQL> select ‘alter user ‘||name||’ identified by values ”’||password||”’;’ from SYS.USER$;

‘ALTERUSER’||NAME||’IDENTIFIEDBYVALUES”’||PASSWORD||”’;’
————————————————————————————————
alter user user1 identified by values ‘CCCCE1B4577D5B3F’;

SQL> alter user HYP_PLANAPP9 identified by values ’19F3C3A86A97E8E0′;

User altered.

SQL> alter user user1 identified by values ‘317047F2ED3DE4B3’;
alter user user2 identified by values ‘0326255DC8420F8F’;

User altered.

SQL>

now check the expiry date is changed from modified date to 1year earlier its from creation date to 1year
SQL> select USERNAME,CREATED,EXPIRY_DATE,ACCOUNT_STATUS,PROFILE from dba_users where username like ‘%HYP%’ order by 2;

USERNAME CREATED EXPIRY_DA ACCOUNT_STATUS PROFILE
—————————— ——— ——— ——————————– ——————————
user1 13-FEB-12 30-AUG-13 OPEN CUSTOM
user2 13-FEB-12 30-AUG-13 OPEN CUSTOM
user3 13-FEB-12 30-AUG-13 OPEN CUSTOM

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

 

R12.1.3 Cloning


Run Preclone on PRODUCTION database
kasarladbp65[prod1]_oracle> cd $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME
kasarladbp65[prod1]_oracle> pwd
/prod/oracle/proddb/11.2.0.2/appsutil/scripts/prod1_kasarladbp65
kasarladbp65[prod1]_oracle> perl adpreclone.pl dbTier
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA

Oracle Applications Rapid Clone

Version 12.0.0

adpreclone Version 120.20.12010000.5

Enter the APPS User Password:
Running:
perl /prod/oracle/proddb/11.2.0.2/appsutil/bin/adclone.pl java=/prod/oracle/proddb/11.2.0.2/jdk/jre mode=stage stage=/prod/oracle/proddb/11.2.0.2/appsutil/clone component=dbTier method=CUSTOM dbctx=/prod/oracle/proddb/11.2.0.2/appsutil/prod1_kasarladbp65.xml showProgress
APPS Password :

Beginning database tier Stage - Wed Jan 23 21:27:55 2013

/prod/oracle/proddb/11.2.0.2/jdk/jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/prod/oracle/proddb/11.2.0.2/oui -classpath /prod/oracle/proddb/11.2.0.2/lib/xmlparserv2.jar:/prod/oracle/proddb/11.2.0.2/jdbc/lib/ojdbc5.jar:/prod/oracle/proddb/11.2.0.2/appsutil/java:/prod/oracle/proddb/11.2.0.2/oui/jlib/OraInstaller.jar:/prod/oracle/proddb/11.2.0.2/oui/jlib/ewt3.jar:/prod/oracle/proddb/11.2.0.2/oui/jlib/share.jar:/prod/oracle/proddb/11.2.0.2/oui/jlib/srvm.jar:/prod/oracle/proddb/11.2.0.2/jlib/ojmisc.jar oracle.apps.ad.clone.StageDBTier -e /prod/oracle/proddb/11.2.0.2/appsutil/prod1_kasarladbp65.xml -stage /prod/oracle/proddb/11.2.0.2/appsutil/clone -tmp /tmp -method CUSTOM -showProgress
APPS Password :
Log file located at /prod/oracle/proddb/11.2.0.2/appsutil/log/prod1_kasarladbp65/StageDBTier_01232127.log

| 50% completed

Completed Stage...
Wed Jan 23 21:28:47 2013
kasarladbp65[prod1]_oracle>

Run Preclone on PRODUCTION ANY ONE APPLICATION NODE
kasarlaapp61[appprod]_prod> cd $ADMIN_SCRIPTS_HOME
kasarlaapp61[appprod]_prod> pwd
/u01pshr/prod/appprod/inst/apps/prod_kasarlaapp61/admin/scripts
kasarlaapp61[appprod]_prod> date
Wed Jan 23 21:30:08 EST 2013
kasarlaapp61[appprod]_prod> perl adpreclone.pl appsTier
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA

Oracle Applications Rapid Clone

Version 12.0.0

adpreclone Version 120.20.12010000.5

Running:
perl /u01pshr/prod/appprod/appl/ad/12.0.0/bin/adclone.pl java=/u01pshr/prod/appprod/tech/10.1.3/appsutil/jdk mode=stage stage=/u01pshr/prod/appprod/comn/clone component=appsTier method= appctx=/u01pshr/prod/appprod/inst/apps/prod_kasarlaapp61/appl/admin/prod_kasarlaapp61.xml showProgress
APPS Password :
method defaulted to CUSTOM


Beginning application tier Stage - Wed Jan 23 21:30:15 2013

/u01pshr/prod/appprod/tech/10.1.3/appsutil/jdk/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /u01pshr/prod/appprod/tech/10.1.3/lib/xmlparserv2.jar:/u01pshr/prod/appprod/tech/10.1.3/jdbc/lib/ojdbc14.jar:/u01pshr/prod/appprod/comn/java/classes:/u01pshr/prod/appprod/tech/10.1.3/oui/jlib/OraInstaller.jar:/u01pshr/prod/appprod/tech/10.1.3/oui/jlib/ewt3.jar:/u01pshr/prod/appprod/tech/10.1.3/oui/jlib/share.jar:/u01pshr/prod/appprod/tech/10.1.3/oui/jlib/srvm.jar:/u01pshr/prod/appprod/tech/10.1.3/jlib/ojmisc.jar oracle.apps.ad.clone.StageAppsTier -e /u01pshr/prod/appprod/inst/apps/prod_kasarlaapp61/appl/admin/prod_kasarlaapp61.xml -stage /u01pshr/prod/appprod/comn/clone -tmp /tmp -method CUSTOM -showProgress

Log file located at /u01pshr/prod/appprod/inst/apps/prod_kasarlaapp61/admin/log/StageAppsTier_01232130.log

- 80% completed

Completed Stage...
Wed Jan 23 21:32:48 2013
kasarlaapp61[appprod]_prod>

--- Fire the production Database backup and tar the oracle home and applications tops

--- Mean time on target database take a backup passwords and dblinks

spool $SID_HOME/info/db_links.sh
select 'create database link '||db_link||' connect to '||username||' identified by using '''||host||''';'
from dba_db_links
where db_link not in ( 'APPS_TO_APPS.krishnareddy.com',
'EDW_APPS_TO_WH.krishnareddy.com',
'EDW_APPS_TO_WH.krishnareddy.com',
'APPS_TO_APPS.krishnareddy.com')
;

spool off
--- prepare a script to backup costom schemas on target Database

SQL> set pages 0
SQL> set lines 200
SQL> spool /backup/exp_custom.sh

SELECT 'expdp system/password@ABCd4 schemas='|| name ||' directory=DATA_PUMP_DIR dumpfile='|| name|| '_ABCD4.dmp logfile='||name ||'_ABCD4.log'
FROM sys.user$
WHERE name in (
select username
from dba_users
where account_status 'LOCKED'
AND username IN(
select username
from dba_users
where username not in( 'SYS',
'SYSTEM',
'APPLSYSPUB',
'APPLSYS',
'APPS',
'APPS_MRC',
'DBSNMP',
'SCOTT',
'APPQOSSYS',
'ORDDATA',
'COECBOSTATS',
'XS$NULL')
MINUS
select ORACLE_USERNAME
from fnd_oracle_userid
)
);


Spool off
---execute the Script to backup costom schemas on target Database

nohup /backup/exp_custom.sh > /backup/exp_custom.log &
--- Now take the backup of costom schema passwords backup

conn apps/password
set pages 0
spool /backup/custom_pwd.txt
select 'alter user ' || name || ' identified by values ''' || password ||''';'
from sys.user$
where name = 'GECL' or
name IN(
select username
from dba_users
where username not in( 'SYS',
'SYSTEM',
'APPLSYSPUB',
'APPLSYS',
'APPS',
'APPS_MRC',
'SPATIAL_WFS_ADMIN_USR',
'APPQOSSYS',
'SPATIAL_CSW_ADMIN_USR',
'ORDDATA',
'COECBOSTATS',
'XS$NULL')
MINUS
select ORACLE_USERNAME
from fnd_oracle_userid
);
spool off
--- Now Take the backup of costom tops in TARGET applications

cd /u01dshr/ABCd4/appABCd4/appl
tar cvf - gecl 2> /backup/gecl_top.tar.idx | gzip -c | split -b2000m - /backup/gecl_top.tar.gz
--- comment the cron jobs and create backout on target system
--- Take the backup of configuration files

create pfile='/backup/initABCd4_before_drop.ora' from spfile;
cp $CONTEXT_FILE /backup
cp $ORACLE_HOME/${CONTEXT_NAME}.env /backup
cp $TNS_ADMIN/*.ora* /backup
stopped the application and DB

rm -rf appl comn inst tech
rm -rf oracle

Drop the database
SQL> alter system set cluster_database=FALSE scope=spfile;

System altered.

SQL>

kasarladbd65[ABCd41]_oracle> srvctl stop database -d ABCd4
kasarladbd65[ABCd41]_oracle> srvctl status database -d ABCd4
Instance ABCd41 is not running on node kasarladbd65
Instance ABCd42 is not running on node kasarladbd66

SQL>startup force mount
SQL>alter system enable RESTRICTED session;

rman target=/ nocatalog << EOF
RUN {
DELETE NOPROMPT ARCHIVELOG ALL;
}
EXIT;
EOF

SQL>drop database;


srvctl stop listener -l lstnABCd4


remove ORACLE_HOME
rm -rf oracle
Unzip the ORACLE_HOME
cd /ABCd4/oracle/ABCd4db
cat /u01dshr/backup/apps/prod/RDBMS_ORACLE_HOME_prod1_kasarladbp65.tar.gz* |gunzip -c |tar xvf –


unregister the copied ORACLE_HOME
cd $ORACLE_HOME/oui/bin/
./runInstaller -detachHome ORACLE_HOME=$ORACLE_HOME


Register new ORACLE_HOME
cd $ORACLE_HOME/clone/bin
perl clone.pl ORACLE_HOME="$ORACLE_HOME" ORACLE_HOME_NAME="OraDb11g_${ORACLE_SID}" ORACLE_BASE="$ORACLE_BASE" OSDBA_GROUP=oinstall OSOPER_GROUP=oinstall
run root.sh


-- Follow the ACTIVE DB CLONING Tab in my blog
-- Purge Source fnd_nodes and Service Topology Model
sqlplus apps/[APPS password]
exec fnd_net_services.remove_system('prod');
commit;
exec fnd_conc_clone.setup_clean;
commit;

Run cmclean
@cmclean.sql

disable block change tracking
alter database disable block change tracking;

--Cancel any Scheduled Custom concurrent program
update fnd_concurrent_requests
set status_code='X', phase_code='C'
where request_id IN(select DISTINCT a.request_id
from apps.fnd_concurrent_requests a,
apps.FND_CONCURRENT_PROGRAMS_VL c
where a.phase_code in ('P','R','I')
and a.concurrent_program_id = c.concurrent_program_id(+)
and c.USER_CONCURRENT_PROGRAM_NAME like 'CCL%');
commit;

Generate XML file in DB nodes
cd $ORACLE_HOME/appsutil/bin
perl adbldxml.pl appsuser=apps appspass=pwd

Run Autoconfig on DB nodes

kasarlad65[kittu1]_oracle> $ORACLE_HOME/appsutil/bin/adconfig.sh contextfile=/kittu/oracle/kittudb/11.2.0.2/appsutil/kittu1_kasarlad65.xml
Enter the APPS user password:

The log file for this session is located at: /kittu/oracle/kittudb/11.2.0.2/appsutil/log/kittu1_kasarlad65/01250312/adconfig.log

AutoConfig is configuring the Database environment...

AutoConfig will consider the custom templates if present.
Using ORACLE_HOME location : /kittu/oracle/kittudb/11.2.0.2
Classpath : :/kittu/oracle/kittudb/11.2.0.2/jdbc/lib/ojdbc5.jar:/kittu/oracle/kittudb/11.2.0.2/appsutil/java/xmlparserv2.jar:/kittu/oracle/kittudb/11.2.0.2/appsutil/java:/kittu/oracle/kittudb/11.2.0.2/jlib/netcfg.jar:/kittu/oracle/kittudb/11.2.0.2/jlib/ldapjclnt11.jar

Using Context file : /kittu/oracle/kittudb/11.2.0.2/appsutil/kittu1_kasarlad65.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Updating rdbms version in Context file to db112
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...

AutoConfig completed successfully.


kasarlad65[kittu1]_oracle> cd $ORACLE_HOME/appsutil/install/$CONTEXT_NAME
kasarlad65[kittu1]_oracle> pwd
/kittu/oracle/kittudb/11.2.0.2/appsutil/install/kittu1_kasarlad65
kasarlad65[kittu1]_oracle> sqlplus / as sysdba @adupdlib.sql so
SQL*Plus: Release 11.2.0.2.0 Production on Fri Jan 25 03:18:20 2013

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options


PL/SQL procedure successfully completed.

SQL>


ADD Temporary tns in application nodes
cd $COMMON_TOP/clone/bin
perl adcfgclone.pl appsTier
Enter the APPS password :

Target System Hostname: kasarlapps
Target System Domain Name: krishnareddy.com
Target System Database SID : kittu
Target System Database Server Node : kasarlad65
Target System Database Domain Name : krishnareddy.com
Target System Base Directory : /u01/kittu/appkittu
Target System Tools ORACLE_HOME Directory : /u01/kittu/appkittu/tech/10.1.2
Target System Web ORACLE_HOME Directory: /u01/kittu/appkittu/tech/10.1.3
Target System APPL_TOP Directory : /u01/kittu/appkittu/appl
Target System COMMON_TOP Directory: /u01/kittu/appkittu/comn
Target System Instance Home Directory : /u01/kittu/appkittu/inst
Target System Root Service: enabled
Target System Web Entry Point Services: enabled
Target System Web Application Services: enabled
Target System Batch Processing Services: enabled
Target System Other Services: enabled
Do you want to preserve the Display: n
Target System Display: kasarlapps:1.0
Do you want the target system to have the same port: n
Target System Port Pool [0-99] : 21
Value which will be set as APPLPTMP: 1
Do you want to reset custom variable settings(y/n) n



Add rest of Target Application Nodes
- Prepare primary node, executing pre-clone as follow:

Logged as the applmgr user (primary target apps server):
$ cd $INST_TOP/admin/scripts
$ perl adpreclone.pl appsTier

cd $COMMON_TOP/clone/bin
perl adclonectx.pl addnode contextfile=/u01/kittu/appkittu/inst/apps/kittu_kasarlapps/appl/admin/kittu_kasarlapps.xml
apps_password

Target System Hostname: kasarlaapps02
Target System Domain Name krishnareddy.com
Do you want the inputs to be validated (y/n) [n] ? : y
Target System Root Service: enabled
Target System Web Entry Point Services: enabled
Target System Web Application Services: enabled
Target System Batch Processing Services: enabled
Target System Other Services: enabled
Do you want to preserve the Display: n
Target System Display: kasarlaapps02:1.0
Do you want the target system to have the same port: n
Target System Port Pool [0-99] : 21
Value which will be set as APPLPTMP: 1
Do you want to reset custom variable settings(y/n) n


Check the xml file in both nodes and update
run autoconfig on both application nodes
$AD_TOP/bin/perl adconfig.pl contextfile=/u01/kittu/appkittu/inst/apps/kittu_kasarlaapps02/appl/admin/kittu_kasarlaapps02.xml

on DB node
ALTER PROFILE ebs_profile LIMIT PASSWORD_VERIFY_FUNCTION NULL;
ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL;

alter user sys identified by password;
alter user system identified by password account unlock;

on Apps node
FNDCPASS APPS/target pass 0 Y SYSTEM/password SYSTEM APPLSYS new_apps_pass
FNDCPASS APPS/new_apps_pass 0 Y SYSTEM/password ALLORACLE password
FNDCPASS APPS/new_apps_pass 0 Y SYSTEM/password USER SYSADMIN password


Compile apps schema
compile any invalids
$ADMIN_SCRIPTS_HOME/adstrtal.sh apps/apps_password
change the profile values
System Administrator responsibility --> Profile --> System
Enter "Site Name"

update concurrent managers pointing to new nodes
System Administrator responsibility
--> Concurrent --> Manager --> Define
Hit Ctrl+F11 and go thru each concurrent manager.


Set Workflow correct password
Restore original GECL_TOP into target.
Restore previous passwords for custom DB ID.
Restore missing DB Links
Reconfigure RMAN Backups.
Uncomment crontab entries for backups.
Clean up all files required to clone

R12.2 Patching

[appkittu@kasarla01 13358472]$ adop phase=prepare

Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:

Please wait. Validating credentials…

Enter the RUN file system context file name [/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:

Enter the PATCH file system context file name [/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:

[STATEMENT] [END 2012/08/28 12:54:52] Performing verification of parameters
[STATEMENT] [START 2012/08/28 12:54:53] Checking for the required ENV setup
[STATEMENT] [END 2012/08/28 12:54:53] Checking for the required ENV setup

************* Start of session *************
version: 12.2.0
started at: Tue Aug 28 2012 12:54:53

APPL_TOP is set to /kittu/R12_2/fs1/EBSapps/appl
[STATEMENT] [START 2012/08/28 12:54:53] Determining admin node
[STATEMENT] [END 2012/08/28 12:54:55] Determining admin node
[STATEMENT] [START 2012/08/28 12:54:58] Acquiring lock on sessions table
[STATEMENT] [END 2012/08/28 12:54:59] Acquiring lock on sessions table
[STATEMENT] [START 2012/08/28 12:54:59] Checking for any pending sessions
[STATEMENT] [START 2012/08/28 12:55:04] Staging the current session
[STATEMENT] [START 2012/08/28 12:55:09] Checking if node “kasarla01” is abandoned
[STATEMENT] [END 2012/08/28 12:55:11] Checking if node “kasarla01” is abandoned
[STATEMENT] [END 2012/08/28 12:55:13] Staging the current session
[STATEMENT] [START 2012/08/28 12:55:15] Unlocking sessions table
[STATEMENT] [END 2012/08/28 12:55:16] Unlocking sessions table
[STATEMENT] [START 2012/08/28 12:55:16] adzdoptl.pl run
[STATEMENT] Session ID: 8
[STATEMENT] Phase: prepare
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_125348.log
[STATEMENT] [START 2012/08/28 12:55:26] prepare phase
[STATEMENT] PREPARE Phase START TIME: 28-08-2012 12:55:27
[STATEMENT] [START 2012/08/28 12:55:32] Validating Configuration
[STATEMENT] Calling: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSanityCheck.pl
[STATEMENT] Output directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01

Program : started @ Tue Aug 28 12:55:35 2012

*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/TXK_SANITY_filesystemcheck_Tue_Aug_28_12_55_35_2012/txkADOPPreparePhaseSanityCheck_Tue_Aug_28_12_55_35_2012.log

Program : completed @ Tue Aug 28 12:55:37 2012

[STATEMENT] [END 2012/08/28 12:55:37] Validating Configuration
[STATEMENT] [START 2012/08/28 12:55:38] Detecting config changes in FS
[STATEMENT] [START 2012/08/28 12:55:39] Executing adConfigChangeDetector on kasarla01
[STATEMENT] Calling: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adConfigChangeDetector.pl
[STATEMENT] Output directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/adConfigChanges.log
The log file is /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/adConfigChanges.log

[STATEMENT] [END 2012/08/28 12:58:55] Executing adConfigChangeDetector on kasarla01
[STATEMENT] No change detected in kasarla01
[STATEMENT] [END 2012/08/28 12:58:56] Detecting config changes in FS
[STATEMENT] [START 2012/08/28 12:58:57] Performing check to see if pending cleanup actions exist
[STATEMENT] Checking if pending cleanup actions
[STATEMENT] No pending cleanup actions, proceeding with other steps
[STATEMENT] [END 2012/08/28 12:59:03] Performing check to see if pending cleanup actions exist
[STATEMENT] [START 2012/08/28 12:59:04] Deleting rows from ad_patches_tables table
[STATEMENT] [END 2012/08/28 12:59:06] Deleting rows from ad_patches_tables table
[STATEMENT] [START 2012/08/28 12:59:07] Performing DB Sanity checks
[STATEMENT] [START 2012/08/28 12:59:08] Checking if edition enabled users exist
[STATEMENT] [END 2012/08/28 12:59:10] Checking if edition enabled users exist
[STATEMENT] [START 2012/08/28 12:59:11] Performing Check for patch service existance
[STATEMENT] [END 2012/08/28 12:59:13] Performing Check for patch service existance
[STATEMENT] [START 2012/08/28 12:59:14] Performing Check for Logon Trigger existence and enablement
[STATEMENT] [END 2012/08/28 12:59:16] Performing Check for Logon Trigger existence and enablement
[STATEMENT] [END 2012/08/28 12:59:17] Performing DB Sanity checks
[STATEMENT] [START 2012/08/28 12:59:18] Generating Tablespace Report
[STATEMENT] [START 2012/08/28 12:59:20] Generating report to display the status of important tablespaces. (ie. free space)
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWTS.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/adzdshowts.out

[STATEMENT] [END 2012/08/28 12:59:24] Generating report to display the status of important tablespaces. (ie. free space)
[STATEMENT] [END 2012/08/28 12:59:25] Generating Tablespace Report
[STATEMENT] [START 2012/08/28 12:59:26] Run the ADZDPATCH concurrent program
[STATEMENT] [START 2012/08/28 12:59:30] Checking status of the ADZDPATCH concurrent program
[STATEMENT] Status of ADZDPATCH:
[STATEMENT] The next available concurrent manager will process this request. This
request will process as soon as the concurrent manager finishes its
current processing and the processing of other requests ahead of this
request. User SYSADMIN submitted this request on 28-Aug-2012 12:59:29. No
action required. This is a normal condition. You may expedite the start of
the processing of this request by reducing its priority value. Only the
System Administrator responsibility may update request priority values.
[STATEMENT] [END 2012/08/28 12:59:35] Checking status of the ADZDPATCH concurrent program
[STATEMENT] Concurrent Request Number: 1784409
[STATEMENT] [END 2012/08/28 13:00:08] Run the ADZDPATCH concurrent program
[STATEMENT] [START 2012/08/28 13:00:09] Generating Report to display all the DDLs from ad_zd_ddl_handler
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDALLDDLS.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/adzdallddls.out

[STATEMENT] [END 2012/08/28 13:00:13] Generating Report to display all the DDLs from ad_zd_ddl_handler
[STATEMENT] [START 2012/08/28 13:00:14] Check and create Patch Edition (if required)
[STATEMENT] [START 2012/08/28 13:00:15] Checking if Patch Edition already exists
[STATEMENT] Patch Edition does not exist
[STATEMENT] [START 2012/08/28 13:00:19] Creating Patch Edition

[STATEMENT] [END 2012/08/28 13:04:04] Creating Patch Edition
[STATEMENT] [END 2012/08/28 13:04:05] Checking if Patch Edition already exists
[STATEMENT] [END 2012/08/28 13:04:06] Check and create Patch Edition (if required)
[STATEMENT] [START 2012/08/28 13:04:08] Performing steps to synchronise the FS
[STATEMENT] [START 2012/08/28 13:04:09] Performing steps to CLONE FS of RUN and PATCH appltops
[STATEMENT] [END 2012/08/28 13:04:14] Performing steps to CLONE FS of RUN and PATCH appltops
[STATEMENT] [START 2012/08/28 13:04:15] Performing steps to syncup FS of RUN and PATCH appltops
[STATEMENT] [START 2012/08/28 13:04:17] Sync FS of RUN and PATCH
[STATEMENT] Calling: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl
[STATEMENT] Output directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01

Program : started @ Tue Aug 28 13:04:21 2012

*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/TXK_SYNC_update_Tue_Aug_28_13_04_21_2012/txkADOPPreparePhaseSynchronize_Tue_Aug_28_13_04_21_2012.log

===================================

SUMMARY OF PATCHES BEING APPLIED…

===================================

u13384052.drv: SINGLE PATCH : 13384052

Successfully created out directory

LOGPATH is set to /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/TXK_SYNC_update_Tue_Aug_28_13_04_21_2012/log
cmd = /kittu/R12_2/fs1/FMW_Home/jrockit_160_29_D1.2.0-10/jre/bin/java -classpath /kittu/R12_2/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/kittu/R12_2/fs1/EBSapps/comn/java/classes -mx256m oracle.apps.ad.tools.configuration.ADOPCustomSyncUp -contextFile /kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml -custSyncDrv /kittu/R12_2/fs_ne/EBSapps/appl/ad/custom/adop_sync.drv -logFile /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/TXK_SYNC_update_Tue_Aug_28_13_04_21_2012/txkADOPCustomSyncUp.log -promptmsg ‘hide’
ADOP Custom Synchorization successfully run

Program : completed @ Tue Aug 28 13:05:56 2012

[STATEMENT] [END 2012/08/28 13:05:56] Sync FS of RUN and PATCH
[STATEMENT] [END 2012/08/28 13:05:57] Performing steps to syncup FS of RUN and PATCH appltops
[STATEMENT] [START 2012/08/28 13:05:58] Performing steps to CONFIG_CLONE FS of RUN and PATCH appltops
[STATEMENT] [END 2012/08/28 13:06:03] Performing steps to CONFIG_CLONE FS of RUN and PATCH appltops
[STATEMENT] [END 2012/08/28 13:06:05] Performing steps to synchronise the FS
[STATEMENT] [START 2012/08/28 13:06:06] Performing steps to validate configuration
[STATEMENT] [START 2012/08/28 13:06:07] Validating Configuration
[STATEMENT] Calling: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSanityCheck.pl
[STATEMENT] Output directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01

Program : started @ Tue Aug 28 13:06:11 2012

*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/TXK_SANITY_dbcheck_Tue_Aug_28_13_06_11_2012/txkADOPPreparePhaseSanityCheck_Tue_Aug_28_13_06_11_2012.log

Program : completed @ Tue Aug 28 13:06:12 2012

[STATEMENT] [END 2012/08/28 13:06:12] Validating Configuration
[STATEMENT] [END 2012/08/28 13:06:13] Performing steps to validate configuration
[STATEMENT] [END 2012/08/28 13:06:17] prepare phase
[STATEMENT] PREPARE Phase END TIME: 28-08-2012 13:06:19
[STATEMENT] [START 2012/08/28 13:06:24] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWLOG.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/prepare_20120828_125348/kittu_kasarla01/adzdshowlog.out

[STATEMENT] [END 2012/08/28 13:06:27] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] [START 2012/08/28 13:06:28] Check and Stop Patch Admin Server
[STATEMENT] [START 2012/08/28 13:06:32] Check and Stop Patch FS Admin Server

You are running adadminsrvctl.sh version 120.10.12020000.2

The AdminServer is already shutdown

adadminsrvctl.sh: exiting with status 2

adadminsrvctl.sh: check the logfile /kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adadminsrvctl.txt for more information …

[STATEMENT] [END 2012/08/28 13:06:46] Check and Stop Patch FS Admin Server
[STATEMENT] [END 2012/08/28 13:06:48] Check and Stop Patch Admin Server
[STATEMENT] [END 2012/08/28 13:06:51] adzdoptl.pl run
[STATEMENT] adop phase=prepare – Completed Successfully

[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_125348.log

adop exiting with status = 0


[appkittu@kasarla01 13358472]$ adop phase=apply

Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:

Please wait. Validating credentials…

Enter the RUN file system context file name [/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:

Enter the PATCH file system context file name [/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:

[STATEMENT] [END 2012/08/28 13:07:51] Performing verification of parameters
[STATEMENT] [START 2012/08/28 13:07:52] Checking for the required ENV setup
[STATEMENT] [END 2012/08/28 13:07:52] Checking for the required ENV setup

************* Start of session *************
version: 12.2.0
started at: Tue Aug 28 2012 13:07:52

APPL_TOP is set to /kittu/R12_2/fs1/EBSapps/appl
[STATEMENT] [START 2012/08/28 13:07:52] Determining admin node
[STATEMENT] [END 2012/08/28 13:07:54] Determining admin node
[STATEMENT] Recommended Worker Count: 17 Max Allowed Workers: 35
[STATEMENT] [START 2012/08/28 13:07:58] Acquiring lock on sessions table
[STATEMENT] [END 2012/08/28 13:07:59] Acquiring lock on sessions table
[STATEMENT] [START 2012/08/28 13:07:59] Checking for any pending sessions
[STATEMENT] Using the session id which is not complete for all phases
[STATEMENT] [END 2012/08/28 13:08:08] Checking for any pending sessions
[STATEMENT] [START 2012/08/28 13:08:10] Unlocking sessions table
[STATEMENT] [END 2012/08/28 13:08:11] Unlocking sessions table
[STATEMENT] [START 2012/08/28 13:08:11] adzdoptl.pl run
[STATEMENT] Session ID: 8
[STATEMENT] Phase: apply
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_130727.log
[STATEMENT] [START 2012/08/28 13:08:22] Invoking admerge
[STATEMENT] [END 2012/08/28 13:08:23] Invoking admerge
[STATEMENT] [START 2012/08/28 13:08:24] apply phase
[STATEMENT] APPLY Phase START TIME: 28-08-2012 13:08:26
[STATEMENT] [START 2012/08/28 13:08:28] Performing Check for Logon Trigger existence and enablement
[STATEMENT] [END 2012/08/28 13:08:30] Performing Check for Logon Trigger existence and enablement
[STATEMENT]
autopatch will be invoked interactively. Command-line parameters can be provided below. Eg. options=nodatabaseportion, etc. If nothing, press the RETURN key

Enter command-line arguments for autopatch (if any here) :
[STATEMENT] Calling : adpatch workers=17
[STATEMENT] ADPATCH Log directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/log
Execute SYSTEM command : adpatch workers=17

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

Oracle E-Business Suite AutoPatch

Version 12.2.0

NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.

Successfully created out directory

Attention: AutoPatch no longer checks for unapplied pre-requisite patches.
You must use OAM Patch Wizard for this feature. Alternatively, you can
review the README for pre-requisite information.

Your default directory is ‘/kittu/R12_2/fs2/EBSapps/appl’.
Is this the correct APPL_TOP [Yes] ?

AutoPatch records your AutoPatch session in a text file
you specify. Enter your AutoPatch log file name or press [Return]
to accept the default file name shown in brackets.

Filename [adpatch.log] : ad13358472.log

Num Workers = 17.

You can be notified by email if a failure occurs.
Do you wish to activate this feature [No] ?

Please enter the batchsize [1000] :

Please enter the name of the Oracle E-Business Suite System that this
APPL_TOP belongs to.

The Applications System name must be unique across all Oracle
Applications Systems at your site, must be from 1 to 30 characters
long, may only contain alphanumeric and underscore characters,
and must start with a letter.

Sample Applications System names are: “prod”, “test”, “demo” and
“Development_2”.

Applications System Name [kittu] : kittu *

NOTE: If you do not currently have certain types of files installed
in this APPL_TOP, you may not be able to perform certain tasks.

Example 1: If you don’t have files used for installing or upgrading
the database installed in this area, you cannot install or upgrade
the database from this APPL_TOP.

Example 2: If you don’t have forms files installed in this area, you cannot
generate them or run them from this APPL_TOP.

Example 3: If you don’t have concurrent program files installed in this area,
you cannot relink concurrent programs or generate reports from this APPL_TOP.

Do you currently have files used for installing or upgrading the database
installed in this APPL_TOP [YES] ? YES *

Do you currently have Java and HTML files for HTML-based functionality
installed in this APPL_TOP [YES] ? YES *

Do you currently have Oracle E-Business Suite forms files installed
in this APPL_TOP [YES] ? YES *

Do you currently have concurrent program files installed
in this APPL_TOP [YES] ? YES *

Please enter the name Oracle E-Business Suite will use to identify this APPL_TOP.

The APPL_TOP name you select must be unique within an Oracle E-Business Suite
System, must be from 1 to 30 characters long, may only contain
alphanumeric and underscore characters, and must start with a letter.

Sample APPL_TOP Names are: “prod_all”, “demo3_forms2”, and “forms1”.

APPL_TOP Name [kasarla01] : kasarla01 *

You are about to apply a patch to the installation of Oracle E-Business Suite
in your ORACLE database ‘kittu_patch’
using ORACLE executables in ‘/kittu/R12_2/fs2/EBSapps/10.1.2’.

Is this the correct database [Yes] ?

AutoPatch needs the password for your ‘SYSTEM’ ORACLE schema
in order to determine your installation configuration.

Enter the password for your ‘SYSTEM’ ORACLE schema:

The ORACLE username specified below for Application Object Library
uniquely identifies your existing product group: APPLSYS

Enter the ORACLE password of Application Object Library [APPS] :

AutoPatch is verifying your username/password.
The status of various features in this run of AutoPatch is:

Feature Active? APPLTOP Data model Flags
—————————— ——- ——– ———– ———–
CHECKFILE Yes 1 1 Y N N Y N Y
PREREQ Yes 6 6 Y N N Y N Y
CONCURRENT_SESSIONS No 2 2 Y Y N Y Y N
PATCH_TIMING Yes 2 2 Y N N Y N Y
PATCH_HIST_IN_DB Yes 6 6 Y N N Y N Y
SCHEMA_SWAP Yes 1 1 Y N N Y Y Y
JAVA_WORKER Yes 1 1 Y N N Y N Y
CODELEVEL Yes 1 1 Y N N Y N Y

Identifier for the current session is 66893

Reading product information from file…

Reading language and territory information from file…

Reading language information from applUS.txt …

*** Patching the Patch File System ***

**** Running Seed Table Prepare for FND_APPLICATION ****

AutoPatch warning:
Product Data File
/kittu/R12_2/fs2/EBSapps/appl/admin/cleprod.txt
does not exist for product “cle”.
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.

Reading database to see what industry is currently installed.

Reading FND_LANGUAGES to see what is currently installed.
*** Patching the Patch File System ***

**** Running Seed Table Prepare for FND_LANGUAGES ****

Currently, the following languages are installed:

Code Language Status
—- ————————————— ———
US American English Base
F European French Install
ZHS Simplified Chinese Install
HU Hungarian Install
ESA Latin American Spanish Install
I Italian Install
PL Polish Install

Reading language information from applF.txt …

Reading language information from applZHS.txt …

Reading language information from applHU.txt …

Reading language information from applESA.txt …

Reading language information from applI.txt …

Reading language information from applPL.txt …

Your base language will be AMERICAN.

Your other languages to install are: FRENCH, SIMPLIFIED CHINESE, HUNGARIAN, LATIN AMERICAN SPANISH, ITALIAN, POLISH

Setting up module information.
Reading database for information about the modules.
Saving module information.
*** Patching the Patch File System ***

Seed table FND_LANGUAGES already prepared

Reading database for information about the products.
Reading database for information about how products depend on each other.
Reading topfile.txt …

Saving product information.

AD code level : [C]

*** Patching the Patch File System ***

Not checking the system maintenance mode.

Trying to obtain a lock…

Attempting to instantiate the current-view snapshot…

Was already instantiated. So no instantiation done this time.

**************** S T A R T O F U P L O A D ****************

Start date: Tue Aug 28 2012 13:09:11

0 “left over” javaupdates.txt files uploaded to DB: Tue Aug 28 2012 13:09:11

0 patches uploaded from the ADPSV format patch history files: Tue Aug 28 2012 13:09:11

Uploading information about files copied during the previous runs …

0 “left over” filescopied_.txt files uploaded to DB: Tue Aug 28 2012 13:09:11

****************** E N D O F U P L O A D ******************

End date: Tue Aug 28 2012 13:09:11

Enter the directory where your Oracle E-Business Suite patch has been unloaded

The default directory is [/orasoft/oraApps/OEL5_32/Beta3/patches/Online_patches/Edition_based/13358472] :

Please enter the name of your AutoPatch driver file : u13358472.drv

Getting Oracle E-Business Suite Release…

Current installed release is 12.2.0

Reading patch driver file…

Parsing and loading patch driver file…
57 lines processed.

Not checking patch integrity as integrity checking flag is turned off.

Successfully read patch driver file.

Determining target release…

Current target release is 12.2.0

Determining which bug fixes to apply…

Done determining which bug fixes to apply.

Log and Info File sync point:
Tue Aug 28 2012 13:09:23

Turning off actions that reference unrecognized products.

Log and Info File sync point:
Tue Aug 28 2012 13:09:23

End of unrecognized products checking.

AD utilities can support a maximum of 999 workers. Your
current database configuration supports a maximum of 35 workers.
Oracle recommends that you use between 17 and 35 workers.

AutoPatch will run in parallel mode.

ADOP record out.

ADOP record in.

adopCheckExistingCreateRecord: Record Patch value:13358472
ADOP record after.

Successfully updated ADOP record in ADOP repository,

Did not need to apply new applterr.txt.

Applying new applprod.txt (if any)…

Did not need to apply new applprod.txt.

Performing version checking for driver files…

Copying driver files into installation area…

No driver files were selected for copying.

Skipping…
ForceCopy driver files into installation area for Specified driver
since no such action is present for this driver file

Screening out files not valid for this installation…

Determining valid on-site files…

Skipping…
Extract object modules from libraries for Specified driver
since no such action is present for this driver file

Performing version checking…

Skipping…
Determine directories to create for Specified driver
since no such action is present for this driver file

Skipping…
Determine executables to link for Specified driver
since no such action is present for this driver file

Skipping…
Determine forms to generate for Specified driver
since no such action is present for this driver file

Skipping…
Determine Oracle Reports libraries to generate for Specified driver
since no such action is present for this driver file

Skipping…
Determine reports to generate for Specified driver
since no such action is present for this driver file

Skipping…
Determine if need to generate message files for Specified driver
since no such action is present for this driver file

Looking for active bug fixes with no active actions…

Reading customized files list (if any)…

Did not find customized files registration file
“/kittu/R12_2/fs2/EBSapps/appl/admin/applcust.txt”
The file may have been uploaded to the database.

This patch replaces the following customized files:

No customized files are replaced by this patch.

Copying files into installation area…

**********************************************************
You are running admvcode

Header information is:
$Header: aiopatch.lc 120.11.12020000.3 2012/08/13 10:14:35 shivaaga ship $

Start of admvcode session
Date/Time is Tue Aug 28 2012 13:09:28

Filelist file is: /kittu/R12_2/fs2/EBSapps/appl/admin/kittu_patch/out/copymast.txt
Patch Character Set is: us7ascii
On-site Character Set is: AL32UTF8

Log and Info File sync point:
Tue Aug 28 2012 13:09:28

Information about files copied to the APPL_TOP would be written to the
informational message file.

Character set ‘US7ASCII’ is a subset of character set ‘AL32UTF8’.
No character set conversion is required.

Copying files to APPL_TOP…

0 directories created.
2 files copied without character set conversion.
0 files copied with successful character set conversion.

2 files copied successfully.
0 files had fatal errors.

admvcode is exiting with status 0

End of admvcode session
Date/time is Tue Aug 28 2012 13:09:28
**********************************************************

Done copying files into installation area.

Skipping…
ForceCopy files into installation area for Specified driver
since no such action is present for this driver file

Skipping…
Archive object modules into product libraries for Specified driver
since no such action is present for this driver file

Skipping…
Create Directories for Specified driver
since no such action is present for this driver file

Skipping…
Relink for Specified driver
since no such action is present for this driver file

Performing second half of mirrored copies…

No mirrored copies were executed in this patch.

Updating Oracle E-Business Suite Java files if necessary…

No Oracle E-Business Suite Java files required updates.

Checking to see if any files possibly included in the product JAR files
were copied by this patch…

No files possibly included in the product JAR files
were copied by this patch.

Skipping …
Running AutoConfig to instantiate templates which affect
the generation of JAR files since none of these templates
were patched during this run of adpatch.

No product JAR files need to be re-generated.

Checking to see if adjborg.txt or any files included in
adjborg.txt were copied by this patch…

adjborg.txt and/or at least one file included in
adjborg.txt was copied by this patch.

** Updating appsborg.zip …

Reading adjborg.txt…

adearea();
No files listed in /kittu/R12_2/fs2/EBSapps/appl/admin/adjborg.txt
Ignoring …
adjborg.txt file seems to be empty.

Done reading adjborg.txt.
As adjborg.txt file is empty, skipping the generation of appsborg.zip

** Successfully updated appsborg.zip file .

Checking to see if adjborg2.txt or any files included in
adjborg2.txt were copied by this patch…

adjborg2.txt and/or at least one file included in
adjborg2.txt was copied by this patch.

** Updating appsborg2.zip …

Reading adjborg2.txt…

adearea();
No files listed in /kittu/R12_2/fs2/EBSapps/appl/admin/adjborg2.txt
Ignoring …
adjborg2.txt file seems to be empty.

Done reading adjborg2.txt.
As adjborg2.txt file is empty, skipping the generation of appsborg2.zip

** Successfully updated appsborg2.zip file .

Compiling JSP files…

Not compiling JSPs: no JSPs in patch.

No JSP files were compiled.

Number of invalid objects: 10

Getting list of invalid objects in APPS schema.

Invalid object reports are recorded in
/kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/log/66893_preenv.*

Running SQL scripts and EXEC commands…

Determining which SQL and EXEC commands to run…

Validating PL/SQL direct execute exceptions file …

Done validating PL/SQL direct execute exceptions file.

Done determining which SQL and EXEC commands to run.

Running SQL and EXEC commands in parallel…

Creating the AD_UTIL_PARAMS table…
Table AD_UTIL_PARAMS already exists, so dropping the table and recreating it.

Creating FND_INSTALL_PROCESSES table…

Writing dependencies of jobs to run to appldep.txt file…

There are now 2 jobs remaining (current phase=A0):
0 running, 1 ready to run and 1 waiting.

Reading completed jobs from restart file (if any).

There are now 2 jobs remaining (current phase=A0):
0 running, 1 ready to run and 1 waiting.

Determining which java executables are supported by adJavaWorker…

Starting worker processes.

Worker process 1 started.

Worker process 2 started.

Worker process 3 started.

Worker process 4 started.

Worker process 5 started.

Worker process 6 started.

Worker process 7 started.

Worker process 8 started.

Worker process 9 started.

Worker process 10 started.

Worker process 11 started.

Worker process 12 started.

Worker process 13 started.

Worker process 14 started.

Worker process 15 started.

Worker process 16 started.

Worker process 17 started.

Checking if all jobs have their actual and symbolic arguments in sync….

Done.

Reading jobs from FND_INSTALL_PROCESSES table …

Done reading jobs from FND_INSTALL_PROCESSES table …

Telling workers to read ‘todo’ restart file.
Done.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

Starting phase 0 (A0): pls

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

There are now 2 jobs remaining (current phase=A0):
0 running, 1 ready to run and 1 waiting.

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

Assigned: file testeopl14s.pls on worker 1 for product fnd username APPLSYS.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:34

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

Completed: file testeopl14s.pls on worker 1 for product fnd username APPLSYS.

Starting phase 1 (A1): plb

There are now 1 jobs remaining (current phase=A1):
0 running, 1 ready to run and 0 waiting.

Assigned: file testeopl14b.pls on worker 1 for product fnd username APPLSYS.
Completed: file testeopl14b.pls on worker 1 for product fnd username APPLSYS.

Telling workers to quit…

1 worker has quit. Waiting for 16 more.

All workers have quit.

Dropping FND_INSTALL_PROCESSES table…

FND_INSTALL_PROCESSES table dropped.

Dropping AD_DEFERRED_JOBS table…

AD_DEFERRED_JOBS table dropped.

Done running SQL and EXEC commands in parallel.

Running Invoker’s Rights Maintenance…

Creating the AD_UTIL_PARAMS table…
Table AD_UTIL_PARAMS already exists, so dropping the table and recreating it.

Creating FND_INSTALL_PROCESSES table…

Setting parallel context: Invoker’s Rights processing at R120

Need to perform Invoker’s Rights processing

Making job list for APPLSYS/*****

Writing dependencies of jobs to run to appldep.txt file…

There are now 36 jobs remaining (current phase=A0):
0 running, 1 ready to run and 35 waiting.

Reading completed jobs from restart file (if any).

There are now 36 jobs remaining (current phase=A0):
0 running, 1 ready to run and 35 waiting.

Determining which java executables are supported by adJavaWorker…

Starting worker processes.

Worker process 1 started.

Worker process 2 started.

Worker process 3 started.

Worker process 4 started.

Worker process 5 started.

Worker process 6 started.

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

Worker process 7 started.

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

Worker process 8 started.

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

Worker process 9 started.

Worker process 10 started.

Worker process 11 started.

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

Worker process 12 started.

Worker process 13 started.

Worker process 14 started.

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

Worker process 15 started.

Worker process 16 started.

Worker process 17 started.

Checking if all jobs have their actual and symbolic arguments in sync….

Done.

Reading jobs from FND_INSTALL_PROCESSES table …

Done reading jobs from FND_INSTALL_PROCESSES table …

Telling workers to read ‘todo’ restart file.
Done.
************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:42

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

Starting phase 0 (A0): invoker

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

************* Start of AD Worker session *************
AD Worker version: 12.2.0
AD Worker started at: Tue Aug 28 2012 13:09:43

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl

There are now 36 jobs remaining (current phase=A0):
0 running, 1 ready to run and 35 waiting.

Assigned: file adinvset.pls on worker 1 for product ad username APPLSYS.
Completed: file adinvset.pls on worker 1 for product ad username APPLSYS.

Starting phase 1 (A1): invoker+1

There are now 35 jobs remaining (current phase=A1):
0 running, 17 ready to run and 18 waiting.

Assigned: file adinvrun.pls on worker 1 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 2 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 3 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 4 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 5 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 6 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 7 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 8 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 9 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 10 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 11 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 12 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 13 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 14 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 15 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 16 for product ad username APPLSYS.
Assigned: file adinvrun.pls on worker 17 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 1 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 5 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 3 for product ad username APPLSYS.

There are now 30 jobs remaining (current phase=A1):
12 running, 0 ready to run and 18 waiting.

Completed: file adinvrun.pls on worker 9 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 10 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 2 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 4 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 6 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 7 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 8 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 12 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 15 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 16 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 11 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 13 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 14 for product ad username APPLSYS.
Completed: file adinvrun.pls on worker 17 for product ad username APPLSYS.

Starting phase 2 (A2): invoker+2

There are now 18 jobs remaining (current phase=A2):
0 running, 17 ready to run and 1 waiting.

Assigned: file adinvrn2.pls on worker 1 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 2 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 3 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 4 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 5 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 6 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 7 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 8 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 9 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 10 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 11 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 12 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 13 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 14 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 15 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 16 for product ad username APPLSYS.
Assigned: file adinvrn2.pls on worker 17 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 3 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 6 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 1 for product ad username APPLSYS.

There are now 5 jobs remaining (current phase=A2):
4 running, 0 ready to run and 1 waiting.

Completed: file adinvrn2.pls on worker 2 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 4 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 5 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 7 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 8 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 11 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 12 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 13 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 14 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 17 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 9 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 10 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 15 for product ad username APPLSYS.
Completed: file adinvrn2.pls on worker 16 for product ad username APPLSYS.

Starting phase 3 (A3): invoker+3

There are now 1 jobs remaining (current phase=A3):
0 running, 1 ready to run and 0 waiting.

Assigned: file adinvcln.pls on worker 1 for product ad username APPLSYS.
Completed: file adinvcln.pls on worker 1 for product ad username APPLSYS.

Done with Invoker’s Rights processing.

Telling workers to quit…

All workers have quit.

Dropping FND_INSTALL_PROCESSES table…

FND_INSTALL_PROCESSES table dropped.

Dropping AD_DEFERRED_JOBS table…

AD_DEFERRED_JOBS table dropped.

Updating the checkfile repository if necessary…
Processing the last batch…
Done updating the checkfile repository…

Dropping AD_TABLE_INDEX_INFO table…

AD_TABLE_INDEX_INFO table dropped.

Done running SQL scripts and EXEC commands.

Compiling invalid objects…

sqlplus -s APPS/***** @/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/adutlrcmp.sql APPLSYS ***** APPS ***** ***** 17 0 NONE FALSE’

sqlplus -s APPS/***** @/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/adutlrcmp.sql APPLSYS ***** APPS ***** ***** 17 0 NONE FALSE’

Number of invalid objects: 9

Getting list of invalid objects in APPS schema.

Invalid object reports are recorded in
/kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/log/66893_postenv.*

Skipping…
Generate forms library files for Specified driver
since no such action is present for this driver file

Skipping…
Generate forms menu files for Specified driver
since no such action is present for this driver file

Skipping…
Generate forms for Specified driver
since no such action is present for this driver file

Skipping…
Generate reports libraries for Specified driver
since no such action is present for this driver file

Skipping…
Generate reports for Specified driver
since no such action is present for this driver file

Skipping…
Generate Messages for Specified driver
since no such action is present for this driver file

Skipping…
Generate Workflow resource files for Specified driver
since no such action is present for this driver file

Skipping …
Running AutoConfig since none of its templates were
patched during this run of adpatch.

Saving Patch History information to Database…

Trying to obtain a lock…

> Inserted 1 patch history records (total).

ADOP record out.

ADOP record in.

adopCheckExistingCreateRecord: Record Patch value:13358472
ADOP record after.

Successfully updated ADOP record in ADOP repository,

Updating ad_check_file_history

Gathering Statistics for AD_PATCH_HIST_TEMP

Done Gathering Statistics for AD_PATCH_HIST_TEMP

>>> Inserted 1 bug history records for this patch (total).
>>>>> Inserted 0 action history records for this bug (total).

Gathering Statistics for AD_PATCH_HIST_TEMP

Done Gathering Statistics for AD_PATCH_HIST_TEMP

>>> Inserted 1 bug history records for this patch (total).
>>>>> Inserted 0 action history records for this bug (total).

Updating the current-view snapshot…

Done saving Patch History information.

About to do IREP processing…

Attempting to process IREP files …

Successfully processed IREP files.

Done IREP processing.

Copying applprod.tmp to applprod.txt (if needed)…

Did not need to copy applprod.tmp to applprod.txt.

Copying admin//applterr.txt to admin/applterr.txt (if needed)…

Did not need to copy admin/kittu_patch/applterr.txt to admin/applterr.txt.

sqlplus -s APPS/***** @/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/adtimrpt.sql 66893 adt66893’

A job timing report has been generated for the current session.
You should check the file
/kittu/R12_2/fs2/EBSapps/appl/admin/kittu_patch/out/adt66893.lst

for details.

Purging timing information for prior sessions.

sqlplus -s APPS/***** @/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql ‘/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/adtpurge.sql 10 1000’

Done purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file
/kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/log/ad13358472.lgi

Errors and warnings are listed in the log file
/kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/log/ad13358472.log

and in other log files in the same directory.

[STATEMENT] [END 2012/08/28 13:10:24] apply phase
[STATEMENT] [START 2012/08/28 13:10:25] Generating Post Apply Reports
[STATEMENT] [START 2012/08/28 13:10:27] Generating Status Report
[STATEMENT] [START 2012/08/28 13:10:28] Generating Report to display New/Changed Objects
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDCMPED.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/adzdcmped.out

[STATEMENT] [END 2012/08/28 13:12:32] Generating Report to display New/Changed Objects
[STATEMENT] [START 2012/08/28 13:12:33] Generating Report to display editions
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWED.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/adzdshowed.out

[STATEMENT] [END 2012/08/28 13:12:37] Generating Report to display editions
[STATEMENT] [START 2012/08/28 13:12:38] Generating Report to display summary of editioned objects
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWOBJS.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/adzdshowobjs.out

[STATEMENT] [END 2012/08/28 13:12:45] Generating Report to display summary of editioned objects
[STATEMENT] [START 2012/08/28 13:12:46] Generating Report to display the status for seed data manager
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWSM.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/adzdshowsm.out

[STATEMENT] [END 2012/08/28 13:12:57] Generating Report to display the status for seed data manager
[STATEMENT] [END 2012/08/28 13:12:58] Generating Status Report
[STATEMENT] APPLY Phase END TIME: 28-08-2012 13:12:59
[STATEMENT] [START 2012/08/28 13:13:02] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] Report: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWLOG.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/apply_20120828_130727/kittu_kasarla01/adzdshowlog.out

[STATEMENT] [END 2012/08/28 13:13:06] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] [END 2012/08/28 13:13:07] Generating Post Apply Reports
[STATEMENT] [END 2012/08/28 13:13:11] adzdoptl.pl run
[STATEMENT] adop phase=apply – Completed Successfully

[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_130727.log

adop exiting with status = 0
[appkittu@kasarla01 13358472]$


[appkittu@kasarla01 13358472]$ adop phase=finalize

Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:

Please wait. Validating credentials…

Enter the RUN file system context file name [/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:

Enter the PATCH file system context file name [/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:

[STATEMENT] [END 2012/08/28 13:15:25] Performing verification of parameters
[STATEMENT] [START 2012/08/28 13:15:26] Checking for the required ENV setup
[STATEMENT] [END 2012/08/28 13:15:26] Checking for the required ENV setup

************* Start of session *************
version: 12.2.0
started at: Tue Aug 28 2012 13:15:26

APPL_TOP is set to /kittu/R12_2/fs1/EBSapps/appl
[STATEMENT] [START 2012/08/28 13:15:26] Determining admin node
[STATEMENT] [END 2012/08/28 13:15:29] Determining admin node
[STATEMENT] [START 2012/08/28 13:15:31] Acquiring lock on sessions table
[STATEMENT] [END 2012/08/28 13:15:32] Acquiring lock on sessions table
[STATEMENT] [START 2012/08/28 13:15:32] Checking for any pending sessions
[STATEMENT] Using the session id which is not complete for all phases
[STATEMENT] [END 2012/08/28 13:15:41] Checking for any pending sessions
[STATEMENT] [START 2012/08/28 13:15:44] Unlocking sessions table
[STATEMENT] [END 2012/08/28 13:15:45] Unlocking sessions table
[STATEMENT] [START 2012/08/28 13:15:45] adzdoptl.pl run
[STATEMENT] Session ID: 8
[STATEMENT] Phase: finalize
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_131449.log
[STATEMENT] [START 2012/08/28 13:15:54] finalize phase
[STATEMENT] [START 2012/08/28 13:15:55] Performing Finalize Phase steps
[STATEMENT] FINALIZE Phase START TIME: 28-08-2012 13:15:58
[STATEMENT] [START 2012/08/28 13:16:00] Making finalize call
[STATEMENT] [START 2012/08/28 13:16:08] Compiling Invalid Objects as part of Finalize
[STATEMENT] [END 2012/08/28 13:16:20] Compiling Invalid Objects as part of Finalize
[STATEMENT] [END 2012/08/28 13:16:21] Making finalize call
[STATEMENT] [START 2012/08/28 13:16:23] Soft CP shutdown
[STATEMENT] Calling: /kittu/R12_2/fs1/inst/apps/kittu_kasarla01/admin/scripts/adcmctl.sh
[STATEMENT] Log file: /kittu/R12_2/fs2/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt

You are running adcmctl.sh version 120.19.12020000.3

Shutting down concurrent managers for kittu …
ORACLE Password:
Submitted request 1784413 for CONCURRENT FND SHUTDOWN

adcmctl.sh: exiting with status 0

adcmctl.sh: check the logfile /kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt for more information …

[STATEMENT] [END 2012/08/28 13:16:27] Soft CP shutdown
[STATEMENT] FINALIZE Phase END TIME: 28-08-2012 13:16:28
[STATEMENT] [END 2012/08/28 13:16:31] Performing Finalize Phase steps
[STATEMENT] [END 2012/08/28 13:16:32] finalize phase
[STATEMENT] [START 2012/08/28 13:16:33] Generating Post Finalize Reports
[STATEMENT] [START 2012/08/28 13:16:34] Generating applied patches summary report
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDPATCHSTAT.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/finalize_20120828_131449/kittu_kasarla01/adzdpatchstat.out

[STATEMENT] [END 2012/08/28 13:16:37] Generating applied patches summary report
[STATEMENT] [END 2012/08/28 13:16:38] Generating Post Finalize Reports
[STATEMENT] [START 2012/08/28 13:16:40] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWLOG.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/finalize_20120828_131449/kittu_kasarla01/adzdshowlog.out

[STATEMENT] [END 2012/08/28 13:16:44] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] [END 2012/08/28 13:16:49] adzdoptl.pl run
[STATEMENT] adop phase=finalize – Completed Successfully
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_131449.log

adop exiting with status = 0
[appkittu@kasarla01 13358472]$


[appkittu@kasarla01 13358472]$ adop phase=cutover

Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:

Please wait. Validating credentials…

Enter the RUN file system context file name [/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:

Enter the PATCH file system context file name [/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:

[STATEMENT] [END 2012/08/28 13:17:57] Performing verification of parameters
[STATEMENT] [START 2012/08/28 13:17:57] Checking for the required ENV setup
[STATEMENT] [END 2012/08/28 13:17:58] Checking for the required ENV setup

************* Start of session *************
version: 12.2.0
started at: Tue Aug 28 2012 13:17:58

APPL_TOP is set to /kittu/R12_2/fs1/EBSapps/appl
[STATEMENT] [START 2012/08/28 13:17:58] Determining admin node
[STATEMENT] [END 2012/08/28 13:18:00] Determining admin node
[STATEMENT] [START 2012/08/28 13:18:03] Acquiring lock on sessions table
[STATEMENT] [END 2012/08/28 13:18:04] Acquiring lock on sessions table
[STATEMENT] [START 2012/08/28 13:18:04] Checking for any pending sessions
[STATEMENT] Using the session id which is not complete for all phases
[STATEMENT] [END 2012/08/28 13:18:13] Checking for any pending sessions
[STATEMENT] [START 2012/08/28 13:18:15] Unlocking sessions table
[STATEMENT] [END 2012/08/28 13:18:16] Unlocking sessions table
[STATEMENT] [START 2012/08/28 13:18:16] adzdoptl.pl run
[STATEMENT] Session ID: 8
[STATEMENT] Phase: cutover
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_131724.log
[STATEMENT] [START 2012/08/28 13:18:27] cutover phase
[STATEMENT] CUTOVER Phase START TIME: 28-08-2012 13:18:28
[STATEMENT] [START 2012/08/28 13:18:30] Performing Check for Logon Trigger existence and enablement
[STATEMENT] [END 2012/08/28 13:18:32] Performing Check for Logon Trigger existence and enablement
[STATEMENT] [START 2012/08/28 13:18:35] Performing Cutover Phase steps
[STATEMENT] Finalize phase has been run already.
[STATEMENT] [START 2012/08/28 13:18:42] ICM Abort
[STATEMENT] Log file: UNDEF

You are running adcmctl.sh version 120.19.12020000.3

Aborting concurrent managers for kittu …
ORACLE Password:
Submitted request 1784414 for CONCURRENT FND ABORT

adcmctl.sh: exiting with status 0

adcmctl.sh: check the logfile /kittu/R12_2/fs1/inst/apps/kittu_kasarla01/logs/appl/admin/log/adcmctl.txt for more information …

[STATEMENT] [END 2012/08/28 13:18:45] ICM Abort
[STATEMENT] [START 2012/08/28 13:18:46] Waiting for ICM to go down
[STATEMENT] [START 2012/08/28 13:18:48] ICM Status
[STATEMENT] [END 2012/08/28 13:18:50] ICM Status
[STATEMENT] [END 2012/08/28 13:19:53] Waiting for ICM to go down
[STATEMENT] [START 2012/08/28 13:19:56] Force Shutdown
[STATEMENT] Calling: /kittu/R12_2/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPCutOverPhaseCtrlScript.pl
[STATEMENT] Output directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01

Program : started @ Tue Aug 28 13:19:59 2012

*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/TXK_CTRL_forceshutdown_Tue_Aug_28_13_19_59_2012/txkADOPCutOverPhaseCtrlScript_Tue_Aug_28_13_19_59_2012.log

Program : completed @ Tue Aug 28 13:20:51 2012

[STATEMENT] [END 2012/08/28 13:20:51] Force Shutdown
[STATEMENT] [START 2012/08/28 13:22:04] Cancelling ADZDPATCH concurrent program
[STATEMENT] Concurrent Request Number: 1784409
[STATEMENT] [END 2012/08/28 13:22:08] Cancelling ADZDPATCH concurrent program
[STATEMENT] WARNING: Concurrent Programs have been aborted during this cutover.
[STATEMENT] To see the list of aborted jobs please review the log file or the Concurrent Manager OAM pages.
[STATEMENT] Please restart the CP jobs manually.
[STATEMENT] [START 2012/08/28 13:22:15] Performing Automatic DB cutover
[STATEMENT] [Start 2012/08/28 13:22:16] ADOP::DefaultsFileUtil::substituteDefaultsFileTokensForPatchApplTop
[STATEMENT] Reading defaults file /kittu/R12_2/fs2/EBSapps/appl/admin/kittu_patch/adalldefaults.txt
[STATEMENT] Substituting tokens …
[STATEMENT] Regenerating defaults file …
[STATEMENT] [End 2012/08/28 13:22:16] ADOP::DefaultsFileUtil::substituteDefaultsFileTokensForPatchApplTop
[STATEMENT] Calling: adpatch options=hotpatch,nocompiledb interactive=no console=no workers=19 restart=no abandon=yes defaultsfile=/kittu/R12_2/fs2/EBSapps/appl/admin/kittu_patch/adalldefaults.txt patchtop=/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/driver logfile=cutover.log driver=ucutover.drv
[STATEMENT] ADPATCH Log directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/log
[STATEMENT] Running: adpatch options=hotpatch,nocompiledb interactive=no console=no workers=19 restart=no abandon=yes defaultsfile=/kittu/R12_2/fs2/EBSapps/appl/admin/kittu_patch/adalldefaults.txt patchtop=/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/driver logfile=cutover.log driver=ucutover.drv stdin=yes

Successfully created out directory
[STATEMENT] [END 2012/08/28 13:22:41] Performing Automatic DB cutover
[STATEMENT] [START 2012/08/28 13:22:42] Loading Jar files to DB
[STATEMENT] No jars found to load
[STATEMENT] [END 2012/08/28 13:22:44] Loading Jar files to DB
[STATEMENT] [START 2012/08/28 13:22:45] Setting Patch Edition as Default Edition
[STATEMENT] [END 2012/08/28 13:22:51] Setting Patch Edition as Default Edition
[STATEMENT] [START 2012/08/28 13:22:57] Atomic File System Cutover

Program : started @ Tue Aug 28 13:22:58 2012

*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/TXK_CTRL_ctxupdate_Tue_Aug_28_13_22_58_2012/txkADOPCutOverPhaseCtrlScript_Tue_Aug_28_13_22_58_2012.log

Program : completed @ Tue Aug 28 13:24:39 2012

[STATEMENT] [END 2012/08/28 13:24:39] Atomic File System Cutover

Broadcast message from appkittu (Tue Aug 28 13:24:42 2012):

The context of the Oracle E-Business Suite system kittu
has been changed after the completion of Online Patching.
All users connected to the Run or Patch file system must now
re-source the Oracle E-Business Suite Applications Environment.
[STATEMENT] [START 2012/08/28 13:24:43] Force Startup

Program : started @ Tue Aug 28 13:24:44 2012

*** Log File = /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/TXK_CTRL_forcestartup_Tue_Aug_28_13_24_44_2012/txkADOPCutOverPhaseCtrlScript_Tue_Aug_28_13_24_44_2012.log

Program : completed @ Tue Aug 28 13:29:47 2012

[STATEMENT] [END 2012/08/28 13:29:47] Force Startup
[STATEMENT] Done with cutover phase
[STATEMENT] [END 2012/08/28 13:29:52] Performing Cutover Phase steps
[STATEMENT] [END 2012/08/28 13:29:57] cutover phase
[STATEMENT] [START 2012/08/28 13:29:58] Generating Post Cutover Reports
[STATEMENT] [START 2012/08/28 13:29:59] Generating Report to display summary of Covered Objects per Edition
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDCOBJS.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/adzdcobjs.out

[STATEMENT] [END 2012/08/28 13:30:35] Generating Report to display summary of Covered Objects per Edition
[STATEMENT] [END 2012/08/28 13:30:37] Generating Post Cutover Reports
[STATEMENT] CUTOVER Phase END TIME: 28-08-2012 13:30:39
[STATEMENT] [START 2012/08/28 13:30:41] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWLOG.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cutover_20120828_131724/kittu_kasarla01/adzdshowlog.out

[STATEMENT] [END 2012/08/28 13:30:45] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] [END 2012/08/28 13:30:46] adzdoptl.pl run

Broadcast message from appkittu (Tue Aug 28 13:30:46 2012):

The context of the Oracle E-Business Suite system kittu
has been changed after the completion of Online Patching.
All users connected to the Run or Patch file system must now
re-source the Oracle E-Business Suite Applications Environment.
[STATEMENT] adop phase=cutover – Completed Successfully

[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_131724.log

adop exiting with status = 0


[appkittu@kasarla01 13358472]$ adop phase=cleanup

Enter the APPS password:
Enter the SYSTEM password:
Enter the WLSADMIN password:

Please wait. Validating credentials…

Enter the RUN file system context file name [/kittu/R12_2/fs2/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:

Enter the PATCH file system context file name [/kittu/R12_2/fs1/inst/apps/kittu_kasarla01/appl/admin/kittu_kasarla01.xml]:

[STATEMENT] [END 2012/08/28 13:32:20] Performing verification of parameters
[STATEMENT] [START 2012/08/28 13:32:21] Checking for the required ENV setup
[STATEMENT] [END 2012/08/28 13:32:21] Checking for the required ENV setup

************* Start of session *************
version: 12.2.0
started at: Tue Aug 28 2012 13:32:21

APPL_TOP is set to /kittu/R12_2/fs2/EBSapps/appl
[STATEMENT] [START 2012/08/28 13:32:21] Determining admin node
[STATEMENT] [END 2012/08/28 13:32:24] Determining admin node
[STATEMENT] [START 2012/08/28 13:32:26] Acquiring lock on sessions table
[STATEMENT] [END 2012/08/28 13:32:27] Acquiring lock on sessions table
[STATEMENT] [START 2012/08/28 13:32:27] Checking for any pending sessions
[STATEMENT] Cleanup is not done in earlier session
[STATEMENT] [START 2012/08/28 13:32:34] Unlocking sessions table
[STATEMENT] [END 2012/08/28 13:32:35] Unlocking sessions table
[STATEMENT] [START 2012/08/28 13:32:35] adzdoptl.pl run
[STATEMENT] Session ID: 8
[STATEMENT] Phase: cleanup
[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_133151.log
[STATEMENT] [START 2012/08/28 13:32:47] cleanup phase
[STATEMENT] CLEANUP Phase START TIME: 28-08-2012 13:32:48
[STATEMENT] [START 2012/08/28 13:32:50] Performing Cleanup steps
[STATEMENT] [START 2012/08/28 13:32:53] Running CLEANUP ddls in ddl handler table
[STATEMENT] [Start 2012/08/28 13:32:54] ADOP::DefaultsFileUtil::substituteDefaultsFileTokensForPatchApplTop
[STATEMENT] Reading defaults file /kittu/R12_2/fs2/EBSapps/appl/admin/kittu/adalldefaults.txt
[STATEMENT] Substituting tokens …
[STATEMENT] Regenerating defaults file …
[STATEMENT] [End 2012/08/28 13:32:55] ADOP::DefaultsFileUtil::substituteDefaultsFileTokensForPatchApplTop
[STATEMENT] Calling: adpatch options=hotpatch,nocompiledb interactive=no console=no workers=17 restart=no abandon=yes defaultsfile=/kittu/R12_2/fs2/EBSapps/appl/admin/kittu/adalldefaults.txt patchtop=/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/driver logfile=cleanup.log driver=ucleanup.drv
[STATEMENT] ADPATCH Log directory: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cleanup_20120828_133151/kittu_kasarla01/log
[STATEMENT] Running: adpatch options=hotpatch,nocompiledb interactive=no console=no workers=17 restart=no abandon=yes defaultsfile=/kittu/R12_2/fs2/EBSapps/appl/admin/kittu/adalldefaults.txt patchtop=/kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/patch/115/driver logfile=cleanup.log driver=ucleanup.drv stdin=yes

Successfully created out directory
[STATEMENT] [END 2012/08/28 13:33:20] Running CLEANUP ddls in ddl handler table
[STATEMENT] [START 2012/08/28 13:33:22] Generating Report to display all the DDLs from ad_zd_ddl_handler
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDALLDDLS.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cleanup_20120828_133151/kittu_kasarla01/adzdallddls.out

[STATEMENT] [END 2012/08/28 13:33:25] Generating Report to display all the DDLs from ad_zd_ddl_handler
[STATEMENT] Calling cleanup in STANDARD mode
[STATEMENT] [WARN] Cleanup may take a while. Please wait.
[STATEMENT] [END 2012/08/28 13:34:41] Performing Cleanup steps
[STATEMENT] [START 2012/08/28 13:34:43] Generating Report to display the cleanup status
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDCLEANUPRP.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cleanup_20120828_133151/kittu_kasarla01/adzdcleanuprp.out

[STATEMENT] [END 2012/08/28 13:35:16] Generating Report to display the cleanup status
[STATEMENT] CLEANUP Phase END TIME: 28-08-2012 13:35:21
[STATEMENT] [END 2012/08/28 13:35:23] cleanup phase
[STATEMENT] [START 2012/08/28 13:35:28] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] Report: /kittu/R12_2/fs2/EBSapps/appl/ad/12.0.0/sql/ADZDSHOWLOG.sql

[STATEMENT] Output: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/cleanup_20120828_133151/kittu_kasarla01/adzdshowlog.out

[STATEMENT] [END 2012/08/28 13:35:31] Generating Report to spool all logs from ad_zd_logs
[STATEMENT] [END 2012/08/28 13:35:32] adzdoptl.pl run
[STATEMENT] adop phase=cleanup – Completed Successfully

[STATEMENT] Log file: /kittu/R12_2/fs_ne/EBSapps/log/adop/8/adop_20120828_133151.log

adop exiting with status = 0

OCM configuration

====================== on 1st apps node ============================


[applmgr@kittuapps01 10.1.3]$ cd $ORA_CONFIG_HOME/10.1.3
[applmgr@kittuapps01 10.1.3]$ pwd
/u01/kittu/applmgr/inst/apps/kittu_kittuapps01/ora/10.1.3
[applmgr@kittuapps01 10.1.3]$ . kittu_kittuapps01.env
[applmgr@kittuapps01 10.1.3]$ cd $ORACLE_HOME
[applmgr@kittuapps01 10.1.3]$ ls -ld ccr
drwxr-xr-x 7 applmgr appsmars 4096 May 18 11:08 ccr
[applmgr@kittuapps01 10.1.3]$ rm -r ccr
[applmgr@kittuapps01 10.1.3]$ umask 077
[applmgr@kittuapps01 10.1.3]$ unzip -d $ORACLE_HOME /stage/121/ocm/p5567658_1034_LINUX.zip

Archive: /stage/121/ocm/p5567658_1034_LINUX.zip
creating: /u01/kittu/applmgr/tech/10.1.3/ccr/
creating: /u01/kittu/applmgr/tech/10.1.3/ccr/bin/
creating: /u01/kittu/applmgr/tech/10.1.3/ccr/config/
creating: /u01/kittu/applmgr/tech/10.1.3/ccr/config/default/
creating: /u01/kittu/applmgr/tech/10.1.3/ccr/doc/
creating: /u01/kittu/applmgr/tech/10.1.3/ccr/inventory/
creating: /u01/kittu/applmgr/tech/10.1.3/ccr/inventory/pending/
creating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/README.pdf
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/bin/OCMJarUtil.class
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/bin/deployPackages
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/bin/emSnapshotEnv
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/bin/lockfile
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/bin/strip_path.awk
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/config/ccr.properties
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/config/default/ccr.properties
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/doc/jsse_license.html
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/inventory/pending/core.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/inventory/pending/engines.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/inventory/pending/metricdata.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/inventory/pending/scripts.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/OsInfo.class
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/emocmclnt-14.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/emocmclnt.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/emocmcommon.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/http_client.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/jcert.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/jnet.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/jsse.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/log4j-core.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/osdt_core3.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/osdt_jce.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/regexp.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/lib/xmlparserv2.jar
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/bin/emocmrsp
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/bin/setupCCR
inflating: /u01/kittu/applmgr/tech/10.1.3/ccr/bin/ocmJarUtil
inflating: /u01/kittu/applmgr/tech/10.1.3/Readme.txt
[applmgr@kittuapps01 10.1.3]$


[applmgr@kittuapps01 10.1.3]$ unset ORACLE_CONFIG_HOME
[applmgr@kittuapps01 10.1.3]$ export JAVA_HOME=$ORACLE_HOME/appsutil/jdk
[applmgr@kittuapps01 10.1.3]$ cd $ORACLE_HOME/ccr/bin
[applmgr@kittuapps01 bin]$ ./setupCCR -s -C NONE 17569303 k.kittureddy@gmail.com

Unable to establish connection to Oracle Configuration Manager server.
Hostname (https://ccr.oracle.com) is unknown.

Unable to establish a network connection to Oracle. If your systems require a
proxy server for outbound Internet connections, enter the proxy server details
in this format:
[proxy-user@]proxy-host[:proxy-port]
If you want to remain uninformed of critical security issues in your
configuration, enter NONE
Proxy specification: kasarla.proxy.krishnareddy.com:80 ——————–pass this value
Proxy information verified, validating specified email value(s).

** Installing base package **
Deploying core – Version 10.3.4.0.0

** Registering installation with Oracle Configuration Manager server(s) **
Deploying engines – Version 10.2.7.1.0
Deploying metricdata – Version 10.2.4.0.3
Deploying scripts – Version 10.3.4.0.0

** Getting package updates from ContentServer **
Deploying core – Version 10.3.8.0.1
Deploying engines – Version 10.3.8.0.0
Deploying metricdata – Version 10.3.7.0.0
Deploying rda – Version 4.31.13.3.7
Deploying rdacelin – Version 4.31.13.3.7
Deploying scripts – Version 10.3.8.0.1

** Starting the Oracle Configuration Manager Scheduler **
Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
Starting Oracle Configuration Manager…
Waiting for status from Oracle Configuration Manager….
Start Date 02-Jun-2013 23:38:59
Last Collection Time –
Next Collection Time 03-Jun-2013 23:35:00
Collection Frequency Daily at 23:35
Collection Status scheduled collection running
Log Directory /u01/kittu/applmgr/tech/10.1.3/ccr/hosts/kittuapps01/log
Registered At 02-Jun-2013 23:36:02
Automatic Update On
Collector Mode Connected
HTTP Proxy kasarla.proxy.krishnareddy.com

Oracle Configuration Manager successfully started.

Oracle Configuration Manager has been configured in connected mode. If the
target ORACLE_HOME is running a database, please refer to the
“Post-installation Database Configuration” section of the OCM Installation
and Administration Guide
(http://www.oracle.com/technology/documentation/ocm.html) to complete the
installation.

View configuration data reports and access valuable configuration best
practices by going to My Oracle Support.
[applmgr@kittuapps01 bin]$


[applmgr@kittuapps01 bin]$ ./emCCR collect

Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
Collection and upload done.

[applmgr@kittuapps01 bin]$

====================== on 2nd apps node ============================


[applmgr@kittuapps02 ~]$ cd $ORA_CONFIG_HOME/10.1.3
[applmgr@kittuapps02 10.1.3]$ . ${CONTEXT_NAME}.env
[applmgr@kittuapps02 10.1.3]$ unset ORACLE_CONFIG_HOME
[applmgr@kittuapps02 10.1.3]$ export JAVA_HOME=$ORACLE_HOME/appsutil/jdk
[applmgr@kittuapps02 10.1.3]$ cd $ORACLE_HOME/ccr/bin
[applmgr@kittuapps02 bin]$ configCCR -a -C NONE 17569303 k.kittureddy@gmail.com US

Unable to establish connection to Oracle Configuration Manager server.
Hostname (https://ccr.oracle.com) is unknown.

Unable to establish a network connection to Oracle. If your systems require a
proxy server for outbound Internet connections, enter the proxy server details
in this format:
[proxy-user@]proxy-host[:proxy-port]
If you want to remain uninformed of critical security issues in your
configuration, enter NONE
Proxy specification: kasarla.proxy.krishnareddy.com:80 —————- pass the proxy value
Proxy information verified, validating specified email value(s).

** Validating configuration changes with Oracle Configuration Manager server(s) **

** Starting the Oracle Configuration Manager Scheduler **
Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
Starting Oracle Configuration Manager…
Waiting for status from Oracle Configuration Manager….
Start Date 02-Jun-2013 23:45:40
Last Collection Time –
Next Collection Time 03-Jun-2013 23:45:00
Collection Frequency Daily at 23:45
Collection Status scheduled collection running
Log Directory /u01/kittu/applmgr/tech/10.1.3/ccr/hosts/kittuapps02/log
Registered At 02-Jun-2013 23:45:31
Automatic Update On
Collector Mode Connected
HTTP Proxy kasarla.proxy.krishnareddy.com

Oracle Configuration Manager successfully started.
[applmgr@kittuapps02 bin]$


[applmgr@kittuapps02 bin]$ ./emCCR collect

Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
Collection and upload done.

[applmgr@kittuapps02 bin]$

*********************************************************************************************************************************************************


[applmgr@kittuapps01 bin]$ cd $ORACLE_HOME/ccr/bin
[applmgr@kittuapps01 bin]$ emCCR automatic_update off

Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
AUTOMATIC_UPDATE command ended successfully.
[applmgr@kittuapps01 bin]$


[applmgr@kittuapps02 bin]$ cd $ORACLE_HOME/ccr/bin
[applmgr@kittuapps02 bin]$ emCCR automatic_update off

Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
AUTOMATIC_UPDATE command ended successfully.
[applmgr@kittuapps02 bin]$


[applmgr@kittuapps01 bin]$ cd $ORA_CONFIG_HOME/10.1.3
[applmgr@kittuapps01 10.1.3]$ . ${CONTEXT_NAME}.env
[applmgr@kittuapps01 10.1.3]$ unset ORACLE_CONFIG_HOME
[applmgr@kittuapps01 10.1.3]$ export JAVA_HOME=$ORACLE_HOME/appsutil/jdk
[applmgr@kittuapps01 10.1.3]$ cd $ORACLE_HOME/ccr/bin
[applmgr@kittuapps01 bin]$ cd $ORACLE_HOME/ccr/bin
[applmgr@kittuapps01 bin]$ emCCR automatic_update off

Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
AUTOMATIC_UPDATE command ended successfully.

*****************************now on 1st apps node *********************************************************************************************


[applmgr@kittuapps01 bin]$ cd $ORA_CONFIG_HOME/10.1.2
[applmgr@kittuapps01 10.1.2]$ pwd
/u01/kittu/applmgr/inst/apps/kittu_kittuapps01/ora/10.1.2
[applmgr@kittuapps01 10.1.2]$
[applmgr@kittuapps01 10.1.2]$ . ${CONTEXT_NAME}.env
[applmgr@kittuapps01 10.1.2]$ cd $ORACLE_HOME
[applmgr@kittuapps01 10.1.2]$ ls -ld ccr
drwxr-xr-x 7 applmgr appsmars 4096 May 18 11:09 ccr
[applmgr@kittuapps01 10.1.2]$ rm -r ccr
[applmgr@kittuapps01 10.1.2]$ umask 077
[applmgr@kittuapps01 10.1.2]$unzip -d $ORACLE_HOME /stage/121/ocm/p5567658_1034_LINUX.zip

Archive: /stage/121/ocm/p5567658_1034_LINUX.zip
creating: /u01/kittu/applmgr/tech/10.1.2/ccr/
creating: /u01/kittu/applmgr/tech/10.1.2/ccr/bin/
creating: /u01/kittu/applmgr/tech/10.1.2/ccr/config/
creating: /u01/kittu/applmgr/tech/10.1.2/ccr/config/default/
creating: /u01/kittu/applmgr/tech/10.1.2/ccr/doc/
creating: /u01/kittu/applmgr/tech/10.1.2/ccr/inventory/
creating: /u01/kittu/applmgr/tech/10.1.2/ccr/inventory/pending/
creating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/README.pdf
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/bin/OCMJarUtil.class
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/bin/deployPackages
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/bin/emSnapshotEnv
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/bin/lockfile
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/bin/strip_path.awk
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/config/ccr.properties
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/config/default/ccr.properties
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/doc/jsse_license.html
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/inventory/pending/core.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/inventory/pending/engines.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/inventory/pending/metricdata.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/inventory/pending/scripts.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/OsInfo.class
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/emocmclnt-14.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/emocmclnt.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/emocmcommon.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/http_client.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/jcert.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/jnet.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/jsse.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/log4j-core.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/osdt_core3.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/osdt_jce.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/regexp.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/lib/xmlparserv2.jar
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/bin/emocmrsp
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/bin/setupCCR
inflating: /u01/kittu/applmgr/tech/10.1.2/ccr/bin/ocmJarUtil
inflating: /u01/kittu/applmgr/tech/10.1.2/Readme.txt
[applmgr@kittuapps01 10.1.2]$


[applmgr@kittuapps01 10.1.2]$ unset ORACLE_CONFIG_HOME
[applmgr@kittuapps01 10.1.2]$ export JAVA_HOME=$IAS_ORACLE_HOME/appsutil/jdk
[applmgr@kittuapps01 10.1.2]$ cd $ORACLE_HOME/ccr/bin
[applmgr@kittuapps01 bin]$ ./setupCCR -s -C NONE 17569303 k.kittureddy@gmail.com US

Unable to establish connection to Oracle Configuration Manager server.
Hostname (https://ccr.oracle.com) is unknown.

Unable to establish a network connection to Oracle. If your systems require a
proxy server for outbound Internet connections, enter the proxy server details
in this format:
[proxy-user@]proxy-host[:proxy-port]
If you want to remain uninformed of critical security issues in your
configuration, enter NONE
Proxy specification: kasarla.proxy.krishnareddy.com:80
Proxy information verified, validating specified email value(s).

** Installing base package **
Deploying core – Version 10.3.4.0.0

** Registering installation with Oracle Configuration Manager server(s) **
Deploying engines – Version 10.2.7.1.0
Deploying metricdata – Version 10.2.4.0.3
Deploying scripts – Version 10.3.4.0.0

** Getting package updates from ContentServer **
Deploying core – Version 10.3.8.0.1
Deploying engines – Version 10.3.8.0.0
Deploying metricdata – Version 10.3.7.0.0
Deploying rda – Version 4.31.13.3.7
Deploying rdacelin – Version 4.31.13.3.7
Deploying scripts – Version 10.3.8.0.1

** Starting the Oracle Configuration Manager Scheduler **
Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
Starting Oracle Configuration Manager…
Waiting for status from Oracle Configuration Manager….
Start Date 02-Jun-2013 23:56:58
Last Collection Time –
Next Collection Time 03-Jun-2013 23:53:00
Collection Frequency Daily at 23:53
Collection Status scheduled collection running
Log Directory /u01/kittu/applmgr/tech/10.1.2/ccr/hosts/kittuapps01/log
Registered At 02-Jun-2013 23:53:28
Automatic Update On
Collector Mode Connected
HTTP Proxy kasarla.proxy.krishnareddy.com

Oracle Configuration Manager successfully started.

Oracle Configuration Manager has been configured in connected mode. If the
target ORACLE_HOME is running a database, please refer to the
“Post-installation Database Configuration” section of the OCM Installation
and Administration Guide
(http://www.oracle.com/technology/documentation/ocm.html) to complete the
installation.

View configuration data reports and access valuable configuration best
practices by going to My Oracle Support.


[applmgr@kittuapps01 bin]$ ./emCCR collect

Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
Another operation is in progress. Please wait…
Collection and upload done.

[applmgr@kittuapps01 bin]$


[applmgr@kittuapps01 10.1.2]$ cd $ORACLE_HOME/ccr/bin
[applmgr@kittuapps01 bin]$ emCCR automatic_update off

Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
AUTOMATIC_UPDATE command ended successfully.
[applmgr@kittuapps01 bin]$

********************************on 2nd apps node *******************************************************


[applmgr@kittuapps02 bin]$ cd $ORA_CONFIG_HOME/10.1.2
[applmgr@kittuapps02 10.1.2]$ pwd
/u01/kittu/applmgr/inst/apps/kittu_kittuapps02/ora/10.1.2
[applmgr@kittuapps02 10.1.2]$ . ${CONTEXT_NAME}.env
[applmgr@kittuapps02 10.1.2]$ unset ORACLE_CONFIG_HOME
[applmgr@kittuapps02 10.1.2]$ export JAVA_HOME=$IAS_ORACLE_HOME/appsutil/jdk
[applmgr@kittuapps02 10.1.2]$ cd $ORACLE_HOME/ccr/bin
[applmgr@kittuapps02 bin]$ configCCR -a -C NONE 17569303 k.kittureddy@gmail.com US

Unable to establish connection to Oracle Configuration Manager server.
Hostname (https://ccr.oracle.com) is unknown.

Unable to establish a network connection to Oracle. If your systems require a
proxy server for outbound Internet connections, enter the proxy server details
in this format:
[proxy-user@]proxy-host[:proxy-port]
If you want to remain uninformed of critical security issues in your
configuration, enter NONE
Proxy specification: kasarla.proxy.krishnareddy.com:80
Proxy information verified, validating specified email value(s).

** Validating configuration changes with Oracle Configuration Manager server(s) **

** Starting the Oracle Configuration Manager Scheduler **
Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
Starting Oracle Configuration Manager…
Waiting for status from Oracle Configuration Manager….
Start Date 03-Jun-2013 00:04:08
Last Collection Time –
Next Collection Time 04-Jun-2013 00:03:00
Collection Frequency Daily at 00:03
Collection Status scheduled collection running
Log Directory /u01/kittu/applmgr/tech/10.1.2/ccr/hosts/kittuapps02/log
Registered At 03-Jun-2013 00:03:57
Automatic Update On
Collector Mode Connected
HTTP Proxy kasarla.proxy.krishnareddy.com

Oracle Configuration Manager successfully started.
[applmgr@kittuapps02 bin]$ ./emCCR collect
Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
Collection and upload done.
[applmgr@kittuapps02 bin]$


[applmgr@kittuapps02 bin]$ cd $ORACLE_HOME/ccr/bin
[applmgr@kittuapps02 bin]$ emCCR automatic_update off

Oracle Configuration Manager – Release: 10.3.8.0.1 – Production
Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
——————————————————————
AUTOMATIC_UPDATE command ended successfully.
[applmgr@kittuapps02 bin]$

****************************************Configure OCM on DB Tier ****************************************


kittudb01[kittu1]_oracle> cd $ORACLE_HOME
kittudb01[kittu1]_oracle> . ${CONTEXT_NAME}.env
kittudb01[kittu1]_oracle> cd $ORACLE_HOME
kittudb01[kittu1]_oracle> ls -ld ccr
drwxr-xr-x 15 oracle oinstall 4096 Nov 7 2012 ccr
kittudb01[kittu1]_oracle> rm -r ccr
kittudb01[kittu1]_oracle> umask 077
kittudb01[kittu1]_oracle> unzip -d $ORACLE_HOME /stage/121/ocm/p5567658_1034_LINUX.zip

Archive: /stage/121/ocm/p5567658_1034_LINUX.zip
creating: /kittu/oracle/kittudb/11.2.0.3/ccr/
creating: /kittu/oracle/kittudb/11.2.0.3/ccr/bin/
creating: /kittu/oracle/kittudb/11.2.0.3/ccr/config/
creating: /kittu/oracle/kittudb/11.2.0.3/ccr/config/default/
creating: /kittu/oracle/kittudb/11.2.0.3/ccr/doc/
creating: /kittu/oracle/kittudb/11.2.0.3/ccr/inventory/
creating: /kittu/oracle/kittudb/11.2.0.3/ccr/inventory/pending/
creating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/README.pdf
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/bin/OCMJarUtil.class
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/bin/deployPackages
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/bin/emSnapshotEnv
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/bin/lockfile
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/bin/strip_path.awk
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/config/ccr.properties
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/config/default/ccr.properties
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/doc/jsse_license.html
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/inventory/pending/core.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/inventory/pending/engines.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/inventory/pending/metricdata.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/inventory/pending/scripts.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/OsInfo.class
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/emocmclnt-14.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/emocmclnt.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/emocmcommon.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/http_client.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/jcert.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/jnet.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/jsse.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/log4j-core.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/osdt_core3.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/osdt_jce.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/regexp.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/lib/xmlparserv2.jar
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/bin/emocmrsp
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/bin/setupCCR
inflating: /kittu/oracle/kittudb/11.2.0.3/ccr/bin/ocmJarUtil
inflating: /kittu/oracle/kittudb/11.2.0.3/Readme.txt
kittudb01[kittu1]_oracle>

kittudb01[kittu1]_oracle> unset ORACLE_CONFIG_HOME
kittudb01[kittu1]_oracle> export JAVA_HOME=$ORACLE_HOME/jdk
kittudb01[kittu1]_oracle> cd $ORACLE_HOME/ccr/bin
kittudb01[kittu1]_oracle> ./setupCCR -s -C NONE 17569303 k.kittureddy@gmail.com US

Unable to establish connection to Oracle Configuration Manager server.
Hostname (https://ccr.oracle.com) is unknown.

Unable to establish a network connection to Oracle. If your systems require a
proxy server for outbound Internet connections, enter the proxy server details
in this format:
[proxy-user@]proxy-host[:proxy-port]
If you want to remain uninformed of critical security issues in your
configuration, enter NONE
Proxy specification: kasarla.proxy.krishnareddy.com:80
Proxy information verified, validating specified email value(s).

** Installing base package **
Deploying core – Version 10.3.4.0.0

** Registering installation with Oracle Configuration Manager server(s) **
Deploying engines – Version 10.2.7.1.0
Deploying metricdata – Version 10.2.4.0.3
Deploying scripts – Version 10.3.4.0.0

** Getting package updates from ContentServer **
Deploying core – Version 10.3.8.0.1
Error encountered in package deployment.
Check the contents of the deployment log – /kittu/oracle/kittudb/11.2.0.3/ccr/hosts/kittudb01.corporate.ge.com/log/install-core-06-03-2013_00.12.53-31882.log

Rolling back to previously installed version
Deploying engines – Version 10.3.8.0.0
Deploying metricdata – Version 10.3.7.0.0
Deploying rda – Version 4.31.13.3.7
Deploying rdacelin – Version 4.31.13.3.7
Deploying scripts – Version 10.3.8.0.1

** Starting the Oracle Configuration Manager Scheduler **
Oracle Configuration Manager – Release: 10.3.4.0.0 – Production
Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
——————————————————————
Starting Oracle Configuration Manager…
Waiting for status from Oracle Configuration Manager….
Start Date 03-Jun-2013 00:13:18
Last Collection Time –
Next Collection Time 04-Jun-2013 00:12:00
Collection Frequency Daily at 00:12
Collection Status scheduled collection running
Log Directory /kittu/oracle/kittudb/11.2.0.3/ccr/hosts/kittudb01.corporate.ge.com/log
Registered At 03-Jun-2013 00:12:09
Automatic Update On
Collector Mode Connected
HTTP Proxy kasarla.proxy.krishnareddy.com

Oracle Configuration Manager successfully started.

Oracle Configuration Manager has been configured in connected mode. If the
target ORACLE_HOME is running a database, please refer to the
“Post-installation Database Configuration” section of the OCM Installation
and Administration Guide
(http://www.oracle.com/technology/documentation/ocm.html) to complete the
installation.

View configuration data reports and access valuable configuration best
practices by going to My Oracle Support.
kittudb01[kittu1]_oracle>


kittudb01[kittu1]_oracle> cd $ORACLE_HOME/ccr/admin/scripts
kittudb01[kittu1]_oracle> ./installCCRSQL.sh collectconfig -s $ORACLE_SID -r SYS

Provide password for the SYSDBA user “SYS”:
Successfully installed collectconfig in the database with SID=kittu1.
kittudb01[kittu1]_oracle>


kittudb01[kittu1]_oracle> ./installCCRSQL.sh ebs_collectconfig -u APPS -w

Successfully installed ebs_collectconfig in the database with SID=kittu1.


kittudb01[kittu1]_oracle> cd $ORACLE_HOME/ccr/bin
kittudb01[kittu1]_oracle> ./emCCR collect

Oracle Configuration Manager – Release: 10.3.4.0.0 – Production
Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
——————————————————————
Unable to perform discovery using OracleHomeDiscovery.pl Terminated with Can’t open perl script “/kittu/oracle/kittudb/11.2.0.3/ccr/sysman/admin/discover/OracleHomeDiscovery.pl”: No such file or directory
Collection and upload done.
kittudb01[kittu1]_oracle>


kittudb01[kittu1]_oracle> cd $ORACLE_HOME/ccr/bin
kittudb01[kittu1]_oracle> emCCR automatic_update off

Oracle Configuration Manager – Release: 10.3.4.0.0 – Production
Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
——————————————————————
AUTOMATIC_UPDATE command ended successfully.
kittudb01[kittu1]_oracle>

11.2.0.2 to 11.2.0.3 DB upgrade


-- i have already installed 11.2.0.3 Binaries 


Following are the one-off patches applied on 11.2.0.2 DB Home
13588248 - Need to apply after 11.2.0.3 installation
10400244 - Need to apply after 11.2.0.3 installation
12628521 - Fixes are included in 11.2.0.3
13951291 - Fixes are included in 11.2.0.3
13923218 - Fixes are included in 11.2.0.3
12320006 - Included in 11.2.0.3 as checked from 11.2.0.3 inventory
4247037 - Included in 11.2.0.3 as checked from 11.2.0.3 inventory
13004894 - Included in 11.2.0.3 as checked from 11.2.0.3 inventory
12565410 - Included in 11.2.0.3 as per Note: 1348303.1
9889683 - Included in 11.2.0.3 as per Note: 1348303.1
9625849 - Included in 11.2.0.3 as per Note: 1348303.1
9695547 - Included in 11.2.0.3 as per Note: 1348303.1
9842771 - Included in 11.2.0.3 as per Note: 1348303.1
10160615 - Included in 11.2.0.3 as per Note: 1348303.1
11719151 - Included in 11.2.0.3 as per Note: 1348303.1
10226927 - Included in 11.2.0.3 as per Note: 1348303.1
10297446 - Included in 11.2.0.3 as per Note: 1348303.1
13248838 - Included in 11.2.0.3 as per Note: 1348303.1
13923443 - Included in 11.2.0.3 as per Note: 1348303.1
14275621 - 11.2.0.2.8 OCT2012 PSU patch - Not required to apply on 11.2.0.3 HOME
13696242 - 11.2.0.2.6 PSU patch - Not required to apply on 11.2.0.3 HOME

-- Create the environment file pointing to 11.2.0.3 ORACLE_HOME

NEW ORACLE HOME CONFIGURATION
kasarla01[kittu1]_oracle> echo $ORACLE _HOME
/kittu/oracle/kittudb/11.2.0.3
kasarla01[kittu1]_oracle> cd $ORACLE_HOME/clone/bin
kasarla01[kittu1]_oracle>perl clone.pl ORACLE_HOME="$ORACLE_HOME" ORACLE_HOME_NAME="OraDb11203_${ORACLE_SID}" ORACLE_BASE="$ORACLE_BASE" OSDBA_GROUP=oinstall OSOPER_GROUP=oinstall
./runInstaller -clone -waitForCompletion "ORACLE_HOME=/kittu/oracle/kittudb/11.2.0.3" "ORACLE_HOME_NAME=OraDb11203_kittu1" "ORACLE_BASE=/kittu/oracle/oracle_base" "oracle_install_OSDBA=oinstall" "oracle_install_OSOPER=oinstall" -silent -noConfig -nowait
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 48928 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-01-29_12-30-55AM. Please wait ...Oracle Universal Installer, Version 11.2.0.3.0 Production
Copyright (C) 1999, 2011, Oracle. All rights reserved.

You can find the log of this install session at:
/u01/oracle/oraInventory/logs/cloneActions2013-01-29_12-30-55AM.log
.................................................................................................... 100% Done.



Installation in progress (Tuesday, January 29, 2013 12:31:17 AM EST)
............................................................................... 79% Done.
Install successful

Linking in progress (Tuesday, January 29, 2013 12:31:24 AM EST)
Link successful

Setup in progress (Tuesday, January 29, 2013 12:32:33 AM EST)
Setup successful

End of install phases.(Tuesday, January 29, 2013 12:32:56 AM EST)
WARNING:
The following configuration scripts need to be executed as the "root" user.
/kittu/oracle/kittudb/11.2.0.3/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts

The cloning of OraDb11203_kittu1 was successful.
Please check '/u01/oracle/oraInventory/logs/cloneActions2013-01-29_12-30-55AM.log' for more details.

kasarla01[kittu1]_oracle> pbrun /kittu/oracle/kittudb/11.2.0.3/root.sh
Check /kittu/oracle/kittudb/11.2.0.3/install/root_kasarla01.corporate.ge.com_2013-01-29_00-33-35.log for the output of root script

kasarla01[kittu1]_oracle> cat /kittu/oracle/kittudb/11.2.0.3/install/root_kasarla01.corporate.ge.com_2013-01-29_00-33-35.log
Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /kittu/oracle/kittudb/11.2.0.3
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

kasarla01[kittu1]_oracle> opatch version
OPatch Version: 11.2.0.3.0

OPatch succeeded.

kasarla01[kittu1]_oracle> opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.0
Copyright (c) 2012, Oracle Corporation. All rights reserved.


Oracle Home : /kittu/oracle/kittudb/11.2.0.3
Central Inventory : /u01/oracle/oraInventory
from : /kittu/oracle/kittudb/11.2.0.3/oraInst.loc
OPatch version : 11.2.0.3.0
OUI version : 11.2.0.3.0
Log file location : /kittu/oracle/kittudb/11.2.0.3/cfgtoollogs/opatch/opatch2013-01-29_00-34-29AM_1.log

Lsinventory Output file location : /kittu/oracle/kittudb/11.2.0.3/cfgtoollogs/opatch/lsinv/lsinventory2013-01-29_00-34-29AM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle Database 11g 11.2.0.3.0
There are 1 products installed in this Oracle Home.


Interim patches (21) :

Patch 13004894 : applied on Fri Jan 25 20:23:59 EST 2013
Unique Patch ID: 15557854
Created on 18 Oct 2012, 08:14:06 hrs PST8PDT
Bugs fixed:
13004894
This patch overlays patches:
14275605
This patch needs patches:
14275605
as prerequisites

Patch 14275605 : applied on Fri Jan 25 19:47:44 EST 2013
Unique Patch ID: 15379762
Patch description: "Database Patch Set Update : 11.2.0.3.4 (14275605)"
Created on 3 Oct 2012, 18:38:19 hrs PST8PDT
Sub-patch 13923374; "Database Patch Set Update : 11.2.0.3.3 (13923374)"
Sub-patch 13696216; "Database Patch Set Update : 11.2.0.3.2 (13696216)"
Sub-patch 13343438; "Database Patch Set Update : 11.2.0.3.1 (13343438)"
Bugs fixed:
14480676, 13566938, 13419660, 10350832, 13632717, 14063281, 12919564
13624984, 13430938, 13467683, 13588248, 13420224, 14548763, 13080778
12646784, 13804294, 12861463, 12834027, 13377816, 13036331, 12880299
14664355, 13499128, 14409183, 12998795, 12829021, 13492735, 12794305
13503598, 10133521, 12718090, 13742433, 12905058, 12401111, 13742434
13257247, 12849688, 13362079, 12950644, 13742435, 13464002, 12917230
13923374, 12879027, 14613900, 12585543, 12535346, 14480675, 12588744
11877623, 14480674, 13916709, 12847466, 13773133, 14076523, 13649031
13340388, 13366202, 13528551, 13981051, 12894807, 13343438, 12582664
12748240, 12797765, 13385346, 12923168, 13384182, 13612575, 13466801
13484963, 12971775, 11063191, 13772618, 13070939, 12797420, 13035804
13041324, 12976376, 11708510, 13742437, 13737746, 14062795, 13035360
12693626, 13742438, 13326736, 13332439, 14038787, 14062796, 12913474
13001379, 14390252, 13099577, 13370330, 13059165, 14062797, 14275605
9873405, 13742436, 9858539, 14062794, 13358781, 12960925, 13699124
12662040, 9703627, 12617123, 13338048, 12938841, 12658411, 12620823
12845115, 12656535, 14062793, 12678920, 12764337, 13354082, 13397104
14062792, 13250244, 12594032, 9761357, 12612118, 13742464, 13550185
13457582, 13527323, 12780983, 12583611, 13502183, 12780098, 13705338
13696216, 13476583, 11840910, 13903046, 13572659, 13718279, 13554409
13657605, 13103913, 14063280

Patch 14275572 : applied on Thu Jan 24 14:22:38 EST 2013
Unique Patch ID: 15379762
Patch description: "Grid Infrastructure Patch Set Update : 11.2.0.3.4 (14275572)"
Created on 12 Oct 2012, 00:27:42 hrs PST8PDT
Bugs fixed:
14275572, 13919095, 13696251, 13348650, 12659561, 13039908, 13825231
13036424, 12794268, 13011520, 13569812, 12758736, 13000491, 13498267
13077654, 13001901, 13550689, 13430715, 13806545, 11675721, 14082976
12771830, 12538907, 13947200, 13066371, 13483672, 12594616, 13540563
12897651, 12897902, 13241779, 12896850, 12726222, 12829429, 12728585
13079948, 12876314, 13090686, 12925041, 12995950, 13251796, 12650672
12398492, 12848480, 13582411, 13652088, 12990582, 13857364, 12975811
12917897, 13082238, 12947871, 13037709, 13371153, 12878750, 10114953
11772838, 13058611, 13001955, 11836951, 12965049, 13440962, 12765467
13727853, 13425727, 12885323, 13965075, 13339443, 12784559, 13332363
13074261, 12971251, 13811209, 12709476, 13460353, 13523527, 12857064
13719731, 13396284, 12899169, 13111013, 13323698, 12867511, 12639013
12959140, 13085732, 12829917, 10317921, 13843080, 12934171, 12849377
12349553, 13924431, 13869978, 12680491, 12914824, 13789135, 12730342
13334158, 12950823, 10418841, 13355963, 13531373, 13776758, 12720728
13620816, 13002015, 13023609, 13024624, 12791719

Patch 10400244 : applied on Thu Jan 24 14:13:00 EST 2013
Unique Patch ID: 14787165
Created on 1 Jun 2012, 10:45:22 hrs PST8PDT
Bugs fixed:
10400244

Patch 13366268 : applied on Thu Jan 24 14:05:48 EST 2013
Unique Patch ID: 14394336
Created on 21 Dec 2011, 08:14:06 hrs PST8PDT
Bugs fixed:
13366268

Patch 13258936 : applied on Thu Jan 24 14:05:37 EST 2013
Unique Patch ID: 14465000
Created on 5 Dec 2011, 02:41:32 hrs PST8PDT
Bugs fixed:
13258936

Patch 12985184 : applied on Thu Jan 24 14:04:58 EST 2013
Unique Patch ID: 14296756
Created on 30 Nov 2011, 15:18:06 hrs PST8PDT
Bugs fixed:
12985184

Patch 12942119 : applied on Thu Jan 24 14:04:40 EST 2013
Unique Patch ID: 14210475
Created on 25 Oct 2011, 10:44:34 hrs PST8PDT
Bugs fixed:
12942119

Patch 14369981 : applied on Thu Nov 15 22:43:52 EST 2012
Unique Patch ID: 15388244
Created on 31 Jul 2012, 04:32:00 hrs PST8PDT
Bugs fixed:
14210979, 12749597

Patch 14296972 : applied on Thu Nov 15 22:42:12 EST 2012
Unique Patch ID: 15357603
Created on 10 Aug 2012, 08:27:31 hrs PST8PDT
Bugs fixed:
14296972

Patch 14237793 : applied on Thu Nov 15 21:28:21 EST 2012
Unique Patch ID: 15096128.1
Created on 29 Jun 2012, 05:22:28 hrs PST8PDT
Bugs fixed:
14237793

Patch 11071989 : applied on Thu Nov 15 21:26:15 EST 2012
Unique Patch ID: 14878194
Created on 27 May 2012, 07:03:55 hrs PST8PDT
Bugs fixed:
11071989

Patch 12955701 : applied on Thu Nov 15 21:23:03 EST 2012
Unique Patch ID: 15249482
Created on 13 Jul 2012, 12:19:29 hrs PST8PDT
Bugs fixed:
12955701

Patch (online) 8547978: applied on Thu Nov 15 20:59:57 EST 2012
Unique Patch ID: 14715033
Created on 13 Apr 2012, 06:24:43 hrs PST8PDT
Bugs fixed:
8547978

Patch 14013094 : applied on Wed Nov 07 19:05:15 EST 2012
Unique Patch ID: 14885734
Created on 28 May 2012, 08:47:01 hrs PST8PDT
Bugs fixed:
14013094

Patch 14005749 : applied on Wed Nov 07 19:04:27 EST 2012
Unique Patch ID: 14840920
Created on 11 May 2012, 03:06:26 hrs PST8PDT
Bugs fixed:
14005749

Patch 13040331 : applied on Wed Nov 07 18:58:16 EST 2012
Unique Patch ID: 14252542
Created on 9 Jan 2012, 07:15:33 hrs PST8PDT
Bugs fixed:
13040331

Patch 13808632 : applied on Wed Nov 07 18:57:21 EST 2012
Unique Patch ID: 14702724
Created on 27 Mar 2012, 18:07:01 hrs PST8PDT
Bugs fixed:
13808632

Patch 13602312 : applied on Wed Nov 07 18:56:23 EST 2012
Unique Patch ID: 14568361
Created on 12 Feb 2012, 23:18:16 hrs PST8PDT
Bugs fixed:
12574386, 10019002

Patch 13388104 : applied on Wed Nov 07 18:54:54 EST 2012
Unique Patch ID: 14549134
Created on 17 Feb 2012, 01:56:00 hrs PST8PDT
Bugs fixed:
13388104

Patch 13819954 : applied on Wed Nov 07 18:51:37 EST 2012
Unique Patch ID: 14708895
Created on 27 Mar 2012, 22:59:01 hrs PST8PDT
Bugs fixed:
13819954



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

OPatch succeeded.

kasarla01[kittu1]_oracle> mkdir -p $TNS_ADMIN
kasarla01[kittu1]_oracle> echo $TNS_ADMIN
/kittu/oracle/kittudb/11.2.0.3/network/admin/kittu1_kasarla01
kasarla01[kittu1]_oracle> cp /kittu/oracle/kittudb/11.2.0.2/network/admin/${ORACLE_SID}_`echo $(hostname)|cut -d. -f1`/* $TNS_ADMIN


Modify as follow the corresponding files:
:%s#/kittu/oracle/kittudb/11.2.0.2#/kittu/oracle/kittudb/11.2.0.3#g

kasarla01[kittu1]_oracle> cp /kittu/oracle/kittudb/11.2.0.2/dbs/init${ORACLE_SID}.ora $ORACLE_HOME/dbs
kasarla01[kittu1]_oracle> orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=12345678 entries=5
kasarla01[kittu1]_oracle> mkdir -p $KITTU_HOME/upgrade11203
kasarla01[kittu1]_oracle> cd $KITTU_HOME/upgrade11203
kasarla01[kittu1]_oracle> sqlplus '/as sysdba'
SQL*Plus: Release 11.2.0.2.0 Production on Tue Jan 29 02:27:04 2013

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> desc SYS.ENABLED$INDEXES;
ERROR:
ORA-04043: object SYS.ENABLED$INDEXES does not exist


If the SYS.ENABLED$INDEXES table exists, use SQL*Plus to connect to the database as SYSDBA and running the following command to drop it:
SQL> drop table sys.enabled$indexes;


Before proceeding with an upgrade ensure that all snapshot refreshes are successfully completed, and that replication is stopped. It is possible that no Materialized Views are being refreshed at the time this tool is run but later during the actual upgrade there could be so it would be prudent to re-verify just prior to the upgrade using following query.Expected output is "No rows selected"


SQL> select s.obj#,o.obj#,s.containerobj#,lastrefreshdate,pflags,xpflags,o.name,o.owner#, bitand(s.mflags, 8) from obj$ o, sum$ s where o.obj# = s.obj# and o.type# = 42 AND bitand(s.mflags, 8) = 8;
no rows selected

SQL> PURGE dba_recyclebin;
DBA Recyclebin purged.

SQL> SELECT * FROM dba_2pc_pending;
no rows selected


If the query in the previous step returns any rows, then issue the following statements:
SQL> SELECT local_tran_id FROM dba_2pc_pending;
SQL> EXECUTE dbms_transaction.purge_lost_db_entry('');
SQL> COMMIT;


SQL> SELECT * FROM gv$recover_file;
no rows selected

SQL> SELECT * FROM gv$backup WHERE status != 'NOT ACTIVE';
no rows selected

SQL> SPOOL upgrade_info.log
SQL> @/kittu/oracle/kittudb/11.2.0.3/rdbms/admin/utlu112i.sql
Oracle Database 11.2 Pre-Upgrade Information Tool 01-29-2013 02:29:07
Script Version: 11.2.0.3.0 Build: 001
.
**********************************************************************
Database:
**********************************************************************
--> name: kittu
--> version: 11.2.0.2.0
--> compatible: 11.2.0.0.0
--> blocksize: 8192
--> platform: Linux x86 64-bit
--> timezone file: V14
.
**********************************************************************
Tablespaces: [make adjustments in the current environment]
**********************************************************************
--> SYSTEM tablespace is adequate for the upgrade.
.... minimum required size: 787 MB
--> SYSAUX tablespace is adequate for the upgrade.
.... minimum required size: 1061 MB
--> UNDOTBS1 tablespace is adequate for the upgrade.
.... minimum required size: 400 MB
--> TEMP tablespace is adequate for the upgrade.
.... minimum required size: 60 MB
.
**********************************************************************
Flashback: OFF
**********************************************************************
**********************************************************************
Update Parameters: [Update Oracle Database 11.2 init.ora or spfile]
Note: Pre-upgrade tool was run on a lower version 64-bit database.
**********************************************************************
--> If Target Oracle is 32-Bit, refer here for Update Parameters:
-- No update parameter changes are required.
.

--> If Target Oracle is 64-Bit, refer here for Update Parameters:
-- No update parameter changes are required.
.
**********************************************************************
Renamed Parameters: [Update Oracle Database 11.2 init.ora or spfile]
**********************************************************************
-- No renamed parameters found. No changes are required.
.
**********************************************************************
Obsolete/Deprecated Parameters: [Update Oracle Database 11.2 init.ora or spfile]
**********************************************************************
-- No obsolete parameters found. No changes are required
.

**********************************************************************
Components: [The following database components will be upgraded or installed]
**********************************************************************
--> Oracle Catalog Views [upgrade] VALID
--> Oracle Packages and Types [upgrade] VALID
--> JServer JAVA Virtual Machine [upgrade] VALID
--> Oracle XDK for Java [upgrade] VALID
--> Real Application Clusters [upgrade] VALID
--> Oracle Workspace Manager [upgrade] VALID
--> OLAP Analytic Workspace [upgrade] VALID
--> OLAP Catalog [upgrade] VALID
--> Oracle Text [upgrade] VALID
--> Oracle XML Database [upgrade] VALID
--> Oracle Java Packages [upgrade] VALID
--> Oracle interMedia [upgrade] VALID
--> Spatial [upgrade] VALID
--> Expression Filter [upgrade] VALID
--> Rule Manager [upgrade] VALID
--> Oracle Application Express [upgrade] VALID
... APEX will only be upgraded if the version of APEX in
... the target Oracle home is higher than the current one.
--> Oracle OLAP API [upgrade] VALID
.
**********************************************************************
Miscellaneous Warnings
**********************************************************************
WARNING: --> The "cluster_database" parameter is currently "TRUE"
.... and must be set to "FALSE" prior to running a manual upgrade.
WARNING: --> Database contains INVALID objects prior to upgrade.
.... The list of invalid SYS/SYSTEM objects was written to
.... registry$sys_inv_objs.
.... The list of non-SYS/SYSTEM objects was written to
.... registry$nonsys_inv_objs.
.... Use utluiobj.sql after the upgrade to identify any new invalid
.... objects due to the upgrade.
.... USER OLAPSYS has 3 INVALID objects.
.... USER PUBLIC has 1 INVALID objects.
.... USER SYSMAN has 56 INVALID objects.
WARNING: --> Your recycle bin is turned on and currently contains no objects.
.... Because it is REQUIRED that the recycle bin be empty prior to upgrading
.... and your recycle bin is turned on, you may need to execute the command:
PURGE DBA_RECYCLEBIN
.... prior to executing your upgrade to confirm the recycle bin is empty.
WARNING: --> Database contains schemas with objects dependent on DBMS_LDAP package.
.... Refer to the 11g Upgrade Guide for instructions to configure Network ACLs.
.... USER APEX_030200 has dependent objects.
.
**********************************************************************
Recommendations
**********************************************************************
Oracle recommends gathering dictionary statistics prior to
upgrading the database.
To gather dictionary statistics execute the following command
while connected as SYSDBA:

EXECUTE dbms_stats.gather_dictionary_stats;

**********************************************************************
Oracle recommends reviewing any defined events prior to upgrading.

To view existing non-default events execute the following commands
while connected AS SYSDBA:
Events:
SELECT (translate(value,chr(13)||chr(10),' ')) FROM sys.v$parameter2
WHERE UPPER(name) ='EVENT' AND isdefault='FALSE'

Trace Events:
SELECT (translate(value,chr(13)||chr(10),' ')) from sys.v$parameter2
WHERE UPPER(name) = '_TRACE_EVENTS' AND isdefault='FALSE'

Changes will need to be made in the init.ora or spfile.

**********************************************************************

SQL> spool off
SQL> exit

Set Cluster Database to FALSE and change to NO Archive Mode
SQL> EXECUTE dbms_stats.gather_dictionary_stats;
SQL> alter system set cluster_database=FALSE scope=spfile sid='*';
srvctl stop database -d kittu
SQL> STARTUP MOUNT
SQL> ALTER DATABASE NOARCHIVELOG
SQL> SHUTDOWN IMMEDIATE
srvctl stop listener -l lstn$ORACLE_UNQNAME

Start the Upgrade
cd $KITTU_HOME/upgrade11203
If you have set variable ORA_NLS10, please unset the same:
unset ORA_NLS10
SQL> STARTUP UPGRADE
SQL> SPOOL upgrade.log
SQL> @$ORACLE_HOME/rdbms/admin/catupgrd.sql
SQL> STARTUP

Check the upgrade
Run utlu112s.sql to display the results of the upgrade (Post-Upgrade Status Tool)
SQL> @$ORACLE_HOME/rdbms/admin/utlu112s.sql

Run catuppst.sql script to perform upgrade actions
SQL> @$ORACLE_HOME/rdbms/admin/catuppst.sql

Recompile any remaining stored PL/SQL and Java code
SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql
SQL> SELECT count(*) FROM dba_invalid_objects;
SQL> SELECT distinct object_name FROM dba_invalid_objects;

Upgrading a cluster database
SQL> alter system set cluster_database=TRUE scope=spfile sid='*';
SQL> SHUTDOWN IMMEDIATE
srvctl upgrade database -d kittu –o /kittu/oracle/kittudb/11.2.0.3
srvctl start database -d kittu
srvctl status database -d kittu -v

Update database with PSU Information
On kasarla01 as oracle:
cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba
SQL> @catbundle.sql psu apply

Unregister the Old Oracle Home
On kasarla01 and kasarla02 as oracle:
cd $ORACLE_HOME/oui/bin
./runInstaller -detachHome ORACLE_HOME=$ORACLE_HOME


Delete Old RDBMS Binary Files

Active DB cloning

CHECK THE SOURCE DB SIZE

col “Database Size” format a20
col “Free space” format a20
col “Used space” format a20
select round(sum(used.bytes) / 1024 / 1024 / 1024 ) || ‘ GB’ “Database Size”
, round(sum(used.bytes) / 1024 / 1024 / 1024 ) –
round(free.p / 1024 / 1024 / 1024) || ‘ GB’ “Used space”
, round(free.p / 1024 / 1024 / 1024) || ‘ GB’ “Free space”
from (select bytes
from v$datafile
union all
select bytes
from v$tempfile
union all
select bytes
from v$log) used
, (select sum(bytes) as p
from dba_free_space) free
group by free.p;

CHECK THE SOURCE AND TARGET DB OS VERIONS

uname -a

CHECK THE LOCATION AND COUNT OF THE FILES

SQL> select name from v$controlfile;
NAME
——————————————————————————–
/u01/dev/oracle/dev01/control/control01.ctl
/u01/dev/oracle/dev01/control/control02.ctl
/u01/dev/oracle/dev01/control/control03.ctl
SQL> select name from v$datafile;
NAME
——————————————————————————–
/u01/dev/oracle/dev01/data/system01.dbf
/u01/dev/oracle/dev01/data/sysaux01.dbf
/u01/dev/oracle/dev01/data/undotbs01.dbf
/u01/dev/oracle/dev01/data/users01.dbf
/u01/dev/oracle/dev01/data/eusdat01.dbf
/u01/dev/oracle/dev01/data/eusidx01.dbf
/u01/dev/oracle/dev01/data/dpl_notif.dbf
/u01/dev/oracle/dev01/data/fasdidx01.dbf
/u01/dev/oracle/dev01/data/fasddata01.dbf
/u01/dev/oracle/dev01/data/CTADB01.dbf
/u01/dev/oracle/dev01/data/arecsdba01.dbf
/u01/dev/oracle/dev01/data/egovdat01.dat
/u01/dev/oracle/dev01/data/sysaux02.dbf
/u01/dev/oracle/dev01/data/coadba01.dbf
14 rows selected.
SQL> select member from v$logfile;
MEMBER
——————————————————————————–
/u01/dev/oracle/dev01/log/redo03.log
/u01/dev/oracle/dev01/log/redo02.log
/u01/dev/oracle/dev01/log/redo01.log
SQL> select FILE_NAME from dba_temp_files;
FILE_NAME
——————————————————————————–
/u01/dev/oracle/dev01/data/temp01.dbf

CHECK THE ARCHIVE IS ENABLED OR NOT

SQL> archive log list;

Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /u01/arch01/oracle/dev01
Oldest online log sequence 120
Current log sequence 122
SQL>
CHECK THE COMPONENTS STATUS

set lines 180
set pages 300
col COMP_NAME for a40
select COMP_NAME,VERSION,STATUS from dba_registry;

COLLECT THE INVALID OBJECTS DETAILS

select owner,count(*) from dba_objects where status = ‘INVALID’ group by owner;
select owner || ‘.’ || object_name “obj”, object_type from dba_objects where status = ‘INVALID’;
select ‘ALTER ‘ || OBJECT_TYPE || ‘ ‘ || OWNER || ‘.’ || OBJECT_NAME || ‘ COMPILE;’from dba_objects where status = ‘INVALID’ ;

TAKE BACKUP OF PASSWORDS IN TARGET DB

SQL> select ‘alter user ‘ || name||’ identified by values ‘||””|| password ||””||’ ;’ from SYS.USER$ WHERE password is not null;

CHECK DB LINK DETAILS IN TARGET DB

set lines 150
set pages 300
col OWNER format a10
col DB_LINK format a40
col USERNAME format a15
set long 100000
select * FROM dba_db_links;

GET THE DDL FOR DB LINKS IN TARGET DB

SQL> set long 100000
SQL> select dbms_metadata.get_ddl( ‘DB_LINK’, ‘KASARLA.KRISHNAREDDY.COM’,’DBA01′ ) from dual;

CHECK THE DIRECTORIES IN TARGET DB

set lines 180
set pages 300
col DIRECTORY_PATH for a70;
SELECT ‘create or replace directory ‘||DIRECTORY_NAME|| ‘ as ”’|| DIRECTORY_PATH ||”’;’ FROM dba_directories;

OWNER DIRECTORY_NAME DIRECTORY_PATH
—————————— —————————— ———————————————————————-
SYS EUSRA_FILE_DIR /u01/dev/eususer
SYS XMLDIR /ade/b/2125410156/oracle/rdbms/xml
SYS EXPORT_HOME /u01/copy01/oracle/export01/oracle/dev01
SYS DATA_PUMP_DIR /u01/dev/oracle/product/dev01_11.2.0.2/rdbms/log/
SYS ORACLE_OCM_CONFIG_DIR /u01/dev/oracle/product/dev01_11.2.0.2/ccr/state
CHECK THE PERMISSIONS FOR DIRECOTRIES IN TARGET DB

SQL> select GRANTEE,OWNER,TABLE_NAME,PRIVILEGE from dba_tab_privs WHERE table_name in (‘EUSRA_FILE_DIR’,’XMLDIR’,’EXPORT_HOME’,’DATA_PUMP_DIR’,’ORACLE_OCM_CONFIG_DIR’);

GRANTEE OWNER TABLE_NAME PRIVILEGE
—————————— —————————— —————————— —————————————-
SYSTEM SYS EXPORT_HOME EXECUTE
SYSTEM SYS EXPORT_HOME READ
SYSTEM SYS EXPORT_HOME WRITE
EXP_FULL_DATABASE SYS DATA_PUMP_DIR READ
EXP_FULL_DATABASE SYS DATA_PUMP_DIR WRITE
IMP_FULL_DATABASE SYS DATA_PUMP_DIR READ
IMP_FULL_DATABASE SYS DATA_PUMP_DIR WRITE
ORACLE_OCM SYS ORACLE_OCM_CONFIG_DIR READ
ORACLE_OCM SYS ORACLE_OCM_CONFIG_DIR WRITE
EUS_ADMIN SYS EUSRA_FILE_DIR READ
EUS_ADMIN SYS EUSRA_FILE_DIR WRITE
11 rows selected.
SQL>
BACKUP THE CONTRIL FILE IN TARGET DB

SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS ‘/tmp/kittu/control.bkp’;

Database altered.
CHECK WHICH PARAMETER FILE THE TARGET DB IS USING

SQL> show parameter spfile;

BACKUP THE PARAMETER FILE IN TARGET DB

SQL> create pfile=’/tmp/kittu/initdev.ora’ from spfile;

PREPARE THE TARGET DB PARAMETER FILE

db_file_name_convert= (‘/backup/prod01db/oracle/prod01/data’,’/u01/dev/oracle/dev01/data’)
log_file_name_convert= (‘/backup/prod01db/oracle/prod01/log/’,’/u01/dev/oracle/dev01/log/’)

UPDATE TNS DETAILS IN PROD AND STAGE AND CHECK THE CONNECTIVITY
IF YOU DONT KNOW THE PASSWORD OF PASSWORD FILE CREATE IT

cd $ORACLE_HOME/dbs
orapwd file=orapw$ORACLE_SID password=12345678 entries=5 force=y

COMMENT THE CRONJOBS AND CHECK ANY BACKUP JOBS ARE RUNNING
DORP THE DATABASE

SQL>shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>startup mount restrict;
ORACLE instance started.
Total System Global Area 3206836224 bytes
Fixed Size 2230768 bytes
Variable Size 2030044688 bytes
Database Buffers 1157627904 bytes
Redo Buffers 16932864 bytes
Database mounted.
SQL> drop database;
Database dropped.

START THE CLONING

SQL> startup nomount pfile=/tmp/kittu/initdev01.ora
kasarla[oracle]_dev01> rman | tee $SID_HOME/audit/DBrefresh_$ORACLE_SID.`date +%d%m_%H%M`.log

Recovery Manager: Release 11.2.0.2.0 – Production on Fri Jan 11 03:37:28 2013

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

RMAN> connect TARGET sys/12345678@prod01

connected to target database: prod01 (DBID=3760365303)

RMAN> connect AUXILIARY sys/876543267@dev01

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-01017: invalid username/password; logon denied

RMAN> connect AUXILIARY sys/12345678@dev01

connected to auxiliary database: dev01 (not mounted)

RMAN> run {
2> allocate channel C1 type disk;
3> allocate channel C2 type disk;
4> allocate channel C3 type disk;
5> allocate channel C4 type disk;
6> allocate channel C5 type disk;
7> allocate auxiliary channel DUP1 type disk;
8> allocate auxiliary channel DUP2 type disk;
9> allocate auxiliary channel DUP3 type disk;
10> allocate auxiliary channel DUP4 type disk;
11> allocate auxiliary channel DUP5 type disk;
12> allocate auxiliary channel DUP6 type disk;
13> DUPLICATE TARGET DATABASE TO ‘dev01’ FROM ACTIVE DATABASE;
14> }

using target database control file instead of recovery catalog
allocated channel: C1
channel C1: SID=316 device type=DISK

allocated channel: C2
channel C2: SID=1106 device type=DISK

allocated channel: C3
channel C3: SID=1015 device type=DISK

allocated channel: C4
channel C4: SID=1107 device type=DISK

allocated channel: C5
channel C5: SID=1427 device type=DISK

allocated channel: DUP1
channel DUP1: SID=602 device type=DISK

allocated channel: DUP2
channel DUP2: SID=702 device type=DISK

allocated channel: DUP3
channel DUP3: SID=802 device type=DISK

allocated channel: DUP4
channel DUP4: SID=902 device type=DISK

allocated channel: DUP5
channel DUP5: SID=1002 device type=DISK

allocated channel: DUP6
channel DUP6: SID=1102 device type=DISK

Starting Duplicate Db at 11-JAN-13

contents of Memory Script:
{
sql clone “create spfile from memory”;
}
executing Memory Script

sql statement: create spfile from memory

contents of Memory Script:
{
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area 3206836224 bytes

Fixed Size 2230768 bytes
Variable Size 2030044688 bytes
Database Buffers 1157627904 bytes
Redo Buffers 16932864 bytes
allocated channel: DUP1
channel DUP1: SID=602 device type=DISK
allocated channel: DUP2
channel DUP2: SID=702 device type=DISK
allocated channel: DUP3
channel DUP3: SID=802 device type=DISK
allocated channel: DUP4
channel DUP4: SID=902 device type=DISK
allocated channel: DUP5
channel DUP5: SID=1002 device type=DISK
allocated channel: DUP6
channel DUP6: SID=1102 device type=DISK

contents of Memory Script:
{
sql clone “alter system set db_name =
”prod01” comment=
”Modified by RMAN duplicate” scope=spfile”;
sql clone “alter system set db_unique_name =
”dev01” comment=
”Modified by RMAN duplicate” scope=spfile”;
shutdown clone immediate;
startup clone force nomount
backup as copy current controlfile auxiliary format ‘/u01/dev/oracle/dev01/control/control01.ctl’;
restore clone controlfile to ‘/u01/dev/oracle/dev01/control/control02.ctl’ from
‘/u01/dev/oracle/dev01/control/control01.ctl’;
restore clone controlfile to ‘/u01/dev/oracle/dev01/control/control03.ctl’ from
‘/u01/dev/oracle/dev01/control/control01.ctl’;
alter clone database mount;
}
executing Memory Script

sql statement: alter system set db_name = ”prod01” comment= ”Modified by RMAN duplicate” scope=spfile

sql statement: alter system set db_unique_name = ”dev01” comment= ”Modified by RMAN duplicate” scope=spfile

Oracle instance shut down

Oracle instance started

Total System Global Area 3206836224 bytes

Fixed Size 2230768 bytes
Variable Size 2030044688 bytes
Database Buffers 1157627904 bytes
Redo Buffers 16932864 bytes
allocated channel: DUP1
channel DUP1: SID=602 device type=DISK
allocated channel: DUP2
channel DUP2: SID=702 device type=DISK
allocated channel: DUP3
channel DUP3: SID=802 device type=DISK
allocated channel: DUP4
channel DUP4: SID=902 device type=DISK
allocated channel: DUP5
channel DUP5: SID=1002 device type=DISK
allocated channel: DUP6
channel DUP6: SID=1102 device type=DISK

Starting backup at 11-JAN-13
channel C1: starting datafile copy
copying current control file
output file name=/backup/prod01db/oracle/prod01/product/prod01_11.2.0/dbs/snapcf_prod01.f tag=TAG20130111T033902 RECID=259 STAMP=804397143
channel C1: datafile copy complete, elapsed time: 00:00:07
Finished backup at 11-JAN-13

Starting restore at 11-JAN-13

channel DUP2: skipped, AUTOBACKUP already found
channel DUP3: skipped, AUTOBACKUP already found
channel DUP4: skipped, AUTOBACKUP already found
channel DUP5: skipped, AUTOBACKUP already found
channel DUP6: skipped, AUTOBACKUP already found
channel DUP1: copied control file copy
Finished restore at 11-JAN-13

Starting restore at 11-JAN-13

channel DUP2: skipped, AUTOBACKUP already found
channel DUP3: skipped, AUTOBACKUP already found
channel DUP4: skipped, AUTOBACKUP already found
channel DUP5: skipped, AUTOBACKUP already found
channel DUP6: skipped, AUTOBACKUP already found
channel DUP1: copied control file copy
Finished restore at 11-JAN-13

database mounted

contents of Memory Script:
{
set newname for datafile 1 to
“/u01/dev/oracle/dev01/data/system01.dbf”;
set newname for datafile 2 to
“/u01/dev/oracle/dev01/data/sysaux01.dbf”;
set newname for datafile 3 to
“/u01/dev/oracle/dev01/data/undotbs01.dbf”;
set newname for datafile 4 to
“/u01/dev/oracle/dev01/data/users01.dbf”;
set newname for datafile 5 to
“/u01/dev/oracle/dev01/data/dpl_notif.dbf”;
set newname for datafile 6 to
“/u01/dev/oracle/dev01/data/eusdat01.dbf”;
set newname for datafile 7 to
“/u01/dev/oracle/dev01/data/eusidx01.dbf”;
set newname for datafile 8 to
“/u01/dev/oracle/dev01/data/fasddata01.dbf”;
set newname for datafile 9 to
“/u01/dev/oracle/dev01/data/fasdidx01.dbf”;
set newname for datafile 10 to
“/u01/dev/oracle/dev01/data/CTADB01.dbf”;
set newname for datafile 11 to
“/u01/dev/oracle/dev01/data/arecsdba01.dbf”;
set newname for datafile 12 to
“/u01/dev/oracle/dev01/data/arecsdbax01.dbf”;
set newname for datafile 13 to
“/u01/dev/oracle/dev01/data/egovdat01.dat”;
set newname for datafile 14 to
“/u01/dev/oracle/dev01/data/DRM_USR01.dbf”;
set newname for datafile 15 to
“/u01/dev/oracle/dev01/data/COADBA01.dbf”;
backup as copy reuse
datafile 1 auxiliary format
“/u01/dev/oracle/dev01/data/system01.dbf” datafile
2 auxiliary format
“/u01/dev/oracle/dev01/data/sysaux01.dbf” datafile
3 auxiliary format
“/u01/dev/oracle/dev01/data/undotbs01.dbf” datafile
4 auxiliary format
“/u01/dev/oracle/dev01/data/users01.dbf” datafile
5 auxiliary format
“/u01/dev/oracle/dev01/data/dpl_notif.dbf” datafile
6 auxiliary format
“/u01/dev/oracle/dev01/data/eusdat01.dbf” datafile
7 auxiliary format
“/u01/dev/oracle/dev01/data/eusidx01.dbf” datafile
8 auxiliary format
“/u01/dev/oracle/dev01/data/fasddata01.dbf” datafile
9 auxiliary format
“/u01/dev/oracle/dev01/data/fasdidx01.dbf” datafile
10 auxiliary format
“/u01/dev/oracle/dev01/data/CTADB01.dbf” datafile
11 auxiliary format
“/u01/dev/oracle/dev01/data/arecsdba01.dbf” datafile
12 auxiliary format
“/u01/dev/oracle/dev01/data/arecsdbax01.dbf” datafile
13 auxiliary format
“/u01/dev/oracle/dev01/data/egovdat01.dat” datafile
14 auxiliary format
“/u01/dev/oracle/dev01/data/DRM_USR01.dbf” datafile
15 auxiliary format
“/u01/dev/oracle/dev01/data/COADBA01.dbf” ;
sql ‘alter system archive log current’;
}
executing Memory Script

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting backup at 11-JAN-13
channel C1: starting datafile copy
input datafile file number=00001 name=/backup/prod01db/oracle/prod01/data/system01.dbf
channel C2: starting datafile copy
input datafile file number=00002 name=/backup/prod01db/oracle/prod01/data/sysaux01.dbf
channel C3: starting datafile copy
input datafile file number=00008 name=/backup/prod01db/oracle/prod01/data/fasddata01.dbf
channel C4: starting datafile copy
input datafile file number=00013 name=/backup/prod01db/oracle/prod01/data/egovdat01.dat
channel C5: starting datafile copy
input datafile file number=00003 name=/backup/prod01db/oracle/prod01/data/undotbs01.dbf
output file name=/u01/dev/oracle/dev01/data/egovdat01.dat tag=TAG20130111T033938
channel C4: datafile copy complete, elapsed time: 00:01:46
channel C4: starting datafile copy
input datafile file number=00004 name=/backup/prod01db/oracle/prod01/data/users01.dbf
output file name=/u01/dev/oracle/dev01/data/undotbs01.dbf tag=TAG20130111T033938
channel C5: datafile copy complete, elapsed time: 00:01:47
channel C5: starting datafile copy
input datafile file number=00014 name=/backup/prod01db/oracle/prod01/data/DRM_USR01.dbf
output file name=/u01/dev/oracle/dev01/data/DRM_USR01.dbf tag=TAG20130111T033938
channel C5: datafile copy complete, elapsed time: 00:01:06
channel C5: starting datafile copy
input datafile file number=00006 name=/backup/prod01db/oracle/prod01/data/eusdat01.dbf
output file name=/u01/dev/oracle/dev01/data/fasddata01.dbf tag=TAG20130111T033938
channel C3: datafile copy complete, elapsed time: 00:03:20
channel C3: starting datafile copy
input datafile file number=00015 name=/backup/prod01db/oracle/prod01/data/COADBA01.dbf
output file name=/u01/dev/oracle/dev01/data/users01.dbf tag=TAG20130111T033938
channel C4: datafile copy complete, elapsed time: 00:01:40
channel C4: starting datafile copy
input datafile file number=00007 name=/backup/prod01db/oracle/prod01/data/eusidx01.dbf
output file name=/u01/dev/oracle/dev01/data/eusdat01.dbf tag=TAG20130111T033938
channel C5: datafile copy complete, elapsed time: 00:00:49
channel C5: starting datafile copy
input datafile file number=00005 name=/backup/prod01db/oracle/prod01/data/dpl_notif.dbf
output file name=/u01/dev/oracle/dev01/data/eusidx01.dbf tag=TAG20130111T033938
channel C4: datafile copy complete, elapsed time: 00:00:32
channel C4: starting datafile copy
input datafile file number=00009 name=/backup/prod01db/oracle/prod01/data/fasdidx01.dbf
output file name=/u01/dev/oracle/dev01/data/dpl_notif.dbf tag=TAG20130111T033938
channel C5: datafile copy complete, elapsed time: 00:00:16
channel C5: starting datafile copy
input datafile file number=00010 name=/backup/prod01db/oracle/prod01/data/CTADB01.dbf
output file name=/u01/dev/oracle/dev01/data/COADBA01.dbf tag=TAG20130111T033938
channel C3: datafile copy complete, elapsed time: 00:00:56
channel C3: starting datafile copy
input datafile file number=00011 name=/backup/prod01db/oracle/prod01/data/arecsdba01.dbf
output file name=/u01/dev/oracle/dev01/data/fasdidx01.dbf tag=TAG20130111T033938
channel C4: datafile copy complete, elapsed time: 00:00:17
channel C4: starting datafile copy
input datafile file number=00012 name=/backup/prod01db/oracle/prod01/data/arecsdbax01.dbf
output file name=/u01/dev/oracle/dev01/data/CTADB01.dbf tag=TAG20130111T033938
channel C5: datafile copy complete, elapsed time: 00:00:17
output file name=/u01/dev/oracle/dev01/data/arecsdba01.dbf tag=TAG20130111T033938
channel C3: datafile copy complete, elapsed time: 00:00:08
output file name=/u01/dev/oracle/dev01/data/arecsdbax01.dbf tag=TAG20130111T033938
channel C4: datafile copy complete, elapsed time: 00:00:07
output file name=/u01/dev/oracle/dev01/data/system01.dbf tag=TAG20130111T033938
channel C1: datafile copy complete, elapsed time: 00:04:54
output file name=/u01/dev/oracle/dev01/data/sysaux01.dbf tag=TAG20130111T033938
channel C2: datafile copy complete, elapsed time: 00:04:54
Finished backup at 11-JAN-13

sql statement: alter system archive log current

contents of Memory Script:
{
backup as copy reuse
archivelog like “/backup/arch01/oracle/prod01/log_29211_1_746031907.arc” auxiliary format
“/u01/arch01/oracle/dev01/log_29211_1_746031907.arc” ;
catalog clone archivelog “/u01/arch01/oracle/dev01/log_29211_1_746031907.arc”;
switch clone datafile all;
}
executing Memory Script

Starting backup at 11-JAN-13
channel C1: starting archived log copy
input archived log thread=1 sequence=29211 RECID=56797 STAMP=804397476
output file name=/u01/arch01/oracle/dev01/log_29211_1_746031907.arc RECID=0 STAMP=0
channel C1: archived log copy complete, elapsed time: 00:00:07
Finished backup at 11-JAN-13

cataloged archived log
archived log file name=/u01/arch01/oracle/dev01/log_29211_1_746031907.arc RECID=56796 STAMP=804397488

datafile 1 switched to datafile copy
input datafile copy RECID=259 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=260 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=261 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=262 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/users01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=263 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/dpl_notif.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=264 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/eusdat01.dbf
datafile 7 switched to datafile copy
input datafile copy RECID=265 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/eusidx01.dbf
datafile 8 switched to datafile copy
input datafile copy RECID=266 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/fasddata01.dbf
datafile 9 switched to datafile copy
input datafile copy RECID=267 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/fasdidx01.dbf
datafile 10 switched to datafile copy
input datafile copy RECID=268 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/CTADB01.dbf
datafile 11 switched to datafile copy
input datafile copy RECID=269 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/arecsdba01.dbf
datafile 12 switched to datafile copy
input datafile copy RECID=270 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/arecsdbax01.dbf
datafile 13 switched to datafile copy
input datafile copy RECID=271 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/egovdat01.dat
datafile 14 switched to datafile copy
input datafile copy RECID=272 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/DRM_USR01.dbf
datafile 15 switched to datafile copy
input datafile copy RECID=273 STAMP=804397488 file name=/u01/dev/oracle/dev01/data/COADBA01.dbf

contents of Memory Script:
{
set until scn 12798304582908;
recover
clone database
delete archivelog
;
}
executing Memory Script

executing command: SET until clause

Starting recover at 11-JAN-13

starting media recovery

archived log for thread 1 with sequence 29211 is already on disk as file /u01/arch01/oracle/dev01/log_29211_1_746031907.arc
archived log file name=/u01/arch01/oracle/dev01/log_29211_1_746031907.arc thread=1 sequence=29211
media recovery complete, elapsed time: 00:00:00
Finished recover at 11-JAN-13
Oracle instance started

Total System Global Area 3206836224 bytes

Fixed Size 2230768 bytes
Variable Size 2046821904 bytes
Database Buffers 1140850688 bytes
Redo Buffers 16932864 bytes

contents of Memory Script:
{
sql clone “alter system set db_name =
”dev01” comment=
”Reset to original value by RMAN” scope=spfile”;
sql clone “alter system reset db_unique_name scope=spfile”;
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script

sql statement: alter system set db_name = ”dev01” comment= ”Reset to original value by RMAN” scope=spfile

sql statement: alter system reset db_unique_name scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area 3206836224 bytes

Fixed Size 2230768 bytes
Variable Size 2046821904 bytes
Database Buffers 1140850688 bytes
Redo Buffers 16932864 bytes
allocated channel: DUP1
channel DUP1: SID=602 device type=DISK
allocated channel: DUP2
channel DUP2: SID=702 device type=DISK
allocated channel: DUP3
channel DUP3: SID=802 device type=DISK
allocated channel: DUP4
channel DUP4: SID=902 device type=DISK
allocated channel: DUP5
channel DUP5: SID=1002 device type=DISK
allocated channel: DUP6
channel DUP6: SID=1102 device type=DISK
sql statement: CREATE CONTROLFILE REUSE SET DATABASE “dev01” RESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 2336
LOGFILE
GROUP 1 ( ‘/u01/dev/oracle/dev01/log/redo01.log’ ) SIZE 50 M REUSE,
GROUP 2 ( ‘/u01/dev/oracle/dev01/log/redo02.log’ ) SIZE 50 M REUSE,
GROUP 3 ( ‘/u01/dev/oracle/dev01/log/redo03.log’ ) SIZE 50 M REUSE
DATAFILE
‘/u01/dev/oracle/dev01/data/system01.dbf’
CHARACTER SET AL32UTF8

contents of Memory Script:
{
set newname for tempfile 1 to
“/u01/dev/oracle/dev01/data/temp01.dbf”;
switch clone tempfile all;
catalog clone datafilecopy “/u01/dev/oracle/dev01/data/sysaux01.dbf”,
“/u01/dev/oracle/dev01/data/undotbs01.dbf”,
“/u01/dev/oracle/dev01/data/users01.dbf”,
“/u01/dev/oracle/dev01/data/dpl_notif.dbf”,
“/u01/dev/oracle/dev01/data/eusdat01.dbf”,
“/u01/dev/oracle/dev01/data/eusidx01.dbf”,
“/u01/dev/oracle/dev01/data/fasddata01.dbf”,
“/u01/dev/oracle/dev01/data/fasdidx01.dbf”,
“/u01/dev/oracle/dev01/data/CTADB01.dbf”,
“/u01/dev/oracle/dev01/data/arecsdba01.dbf”,
“/u01/dev/oracle/dev01/data/arecsdbax01.dbf”,
“/u01/dev/oracle/dev01/data/egovdat01.dat”,
“/u01/dev/oracle/dev01/data/DRM_USR01.dbf”,
“/u01/dev/oracle/dev01/data/COADBA01.dbf”;
switch clone datafile all;
}
executing Memory Script

executing command: SET NEWNAME

renamed tempfile 1 to /u01/dev/oracle/dev01/data/temp01.dbf in control file

cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/sysaux01.dbf RECID=1 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/undotbs01.dbf RECID=2 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/users01.dbf RECID=3 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/dpl_notif.dbf RECID=4 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/eusdat01.dbf RECID=5 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/eusidx01.dbf RECID=6 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/fasddata01.dbf RECID=7 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/fasdidx01.dbf RECID=8 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/CTADB01.dbf RECID=9 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/arecsdba01.dbf RECID=10 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/arecsdbax01.dbf RECID=11 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/egovdat01.dat RECID=12 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/DRM_USR01.dbf RECID=13 STAMP=804397516
cataloged datafile copy
datafile copy file name=/u01/dev/oracle/dev01/data/COADBA01.dbf RECID=14 STAMP=804397516

datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/users01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/dpl_notif.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=5 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/eusdat01.dbf
datafile 7 switched to datafile copy
input datafile copy RECID=6 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/eusidx01.dbf
datafile 8 switched to datafile copy
input datafile copy RECID=7 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/fasddata01.dbf
datafile 9 switched to datafile copy
input datafile copy RECID=8 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/fasdidx01.dbf
datafile 10 switched to datafile copy
input datafile copy RECID=9 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/CTADB01.dbf
datafile 11 switched to datafile copy
input datafile copy RECID=10 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/arecsdba01.dbf
datafile 12 switched to datafile copy
input datafile copy RECID=11 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/arecsdbax01.dbf
datafile 13 switched to datafile copy
input datafile copy RECID=12 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/egovdat01.dat
datafile 14 switched to datafile copy
input datafile copy RECID=13 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/DRM_USR01.dbf
datafile 15 switched to datafile copy
input datafile copy RECID=14 STAMP=804397516 file name=/u01/dev/oracle/dev01/data/COADBA01.dbf
Reenabling controlfile options for auxiliary database
Executing: alter database force logging
Executing: alter database enable block change tracking using file ‘/backup/prod01db/oracle/prod01/ctf/block_change.ctf’
ORACLE error from auxiliary database: ORA-19751: could not create the change tracking file
ORA-19750: change tracking file: ‘/backup/prod01db/oracle/prod01/ctf/block_change.ctf’
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory

Ignoring error, reattempt command after duplicate finishes

contents of Memory Script:
{
Alter clone database open resetlogs;
}
executing Memory Script

database opened
Finished Duplicate Db at 11-JAN-13
released channel: C1
released channel: C2
released channel: C3
released channel: C4
released channel: C5
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-12005: error during channel cleanup
ORA-00604: error occurred at recursive SQL level 1
ORA-06553: PLS-801: internal error [56327]
ORA-06544: PL/SQL: internal error, arguments: [56327], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [56327]
RMAN-05001: auxiliary file name /backup/prod01db/oracle/prod01/ctf/block_change.ctf conflicts with a file used by the target database

RMAN>

CHECK THE STATUS OF DATABASE

SQL> select NAME,LOG_MODE,CREATED,OPEN_MODE from v$database;

NAME LOG_MODE CREATED OPEN_MODE
——— ———— —————— ——————–
dev01 ARCHIVELOG 11-JAN-13 READ WRITE

CHECK THE INSTANCE STATUS

SQL> select INSTANCE_NAME,STATUS,STARTUP_TIME fr ,LOGINS from v$instance;

INSTANCE_NAME STATUS STARTUP_TIME LOGINS
—————- ———— —————— ———-
dev01 OPEN 11-JAN-13 ALLOWED
CHECK THE DATABASE FILE LOCATION
CHANGE THE PASSWORDS
DROP THE DB LINKS AND RECREATE IT BY EXECUTING THE DDL
DROP THE DIRECOTORIES AND RECREATE IT BY USING ABOVE LIST
CHECK ANY NEW INVALIDS IF FOUND COMPILE THOSE

10g to 11gr2 upgrade

INSTALL 11.2.0.2 BINARIES IN NEW DIRECTORY
APPLY THE BELOW LIST ARE THE PATCHES THAT HAVE BEEN APPLIED:

• 6880880 – OPatch 11.2
• 10149223 – IN 11G ENTERPRISE EDITION RELEASE 11.2.0.2.0, QUERY IS NOT FETCHING RESULTS
• 10229719 – QRMP:12.2:ORA-07445 WHILE PERFORMING COMPLETE DATABASE IMPORT ON SOLARIS SPARC
• 10422126 – FAILED TO READ MORROR SIDE 1
• 12628521 – SKGXP V3.4 – CUMULATIVE FIXES PATCH 6.1
• 12320006 – DST-16: HALF YEARLY DST PATCHES, MAY 2011
• 12683466 – MERGE REQUEST ON TOP OF 11.2.0.2.0 FOR BUGS 10011145 10259620
• 12827726 – PSU OCT 2012
• 13004894 – Wrong results with SQL_TRACE / 10046

ON OLD ENVIRONMENT COLLECT THE FOLLOWING INFO

SQL> select * from v$version;
SQL> select owner, object_name, object_type, status from dba_objects where status=’INVALID’;
SQL> SELECT comp_name, version, status FROM dba_registry;
SQL> SELECT ACTION_TIME, ACTION, VERSION, COMMENTS, BUNDLE_SERIES FROM sys.registry$history;
SQL> select * from dba_db_links;
SQL> select * from dba_directories;
SQL> select sum(bytes)/(1024*1024*1024) from dba_data_files ;
SQL> select name from v$datafile;
SQL> select name from v$controlfile;
SQL> select member from v$logfile;
SQL> select name from v$tempfile;
SQL> select tablespace_name, contents from dba_tablespaces;
SQL> select * from global_name;
SQL> show parameter diag
SQL> show parameter pfile
SQL> show parameter service

PREPARE THE BACKUP OF OLD ENVIRONMENT

kasarla[oracle]_kittu> mkdir -p /backup/before_upgrade_bkp
kasarla[oracle]_kittu> cd /backup/before_upgrade_bkp
kasarla[oracle]_kittu> mkdir data control log
kasarla[oracle]_kittu> pwd
SQL> select ‘cp ‘ || name || ‘ /backup/before_upgrade_bkp/data’ from v$datafile;
SQL> select ‘cp ‘ || name || ‘ /backup/before_upgrade_bkp/data’ from v$tempfile;
SQL> select ‘cp ‘ || name || ‘ /backup/before_upgrade_bkp/control’ from v$controlfile;
SQL> select ‘cp ‘ || member || ‘ /backup/before_upgrade_bkp/member’ from v$logfile;

COMMENT THE CRON ENTRIES

kasarla[oracle]_kittu> crontab -e

CHECK ANY BACKUP JOBS ARE RUNNING ?

SQL> SELECT * FROM v$recover_file;

no rows selected

SQL> SELECT * FROM v$backup WHERE status != ‘NOT ACTIVE’;

no rows selected

SQL> select * from dba_2pc_pending;

no rows selected

Stop the Database

SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

TAKE COLD BACKUP AND CHECK THE COUNT OF ALL BACKEDUP FILES

kasarla[oracle]_kittu> cd /backup/before_upgrade_bkp/
kasarla[oracle]_kittu> ls
control data log
kasarla[oracle]_kittu> du -ch
10G ./data
113M ./control
340M ./log
11G .
11G total
kasarla[oracle]_kittu> cd data
kasarla[oracle]_kittu> ls | wc -l
kasarla[oracle]_kittu> cd ../log
kasarla[oracle]_kittu> ls | wc -l
kasarla[oracle]_kittu> cd ../control/
kasarla[oracle]_kittu> ls | wc -l

Put the database in NOARCHIVELOG mode

SQL> startup mount
ORACLE instance started.

Total System Global Area 3214024704 bytes
Fixed Size 1339516 bytes
Variable Size 1996492676 bytes
Database Buffers 1207959552 bytes
Redo Buffers 8232960 bytes
Database mounted.
SQL> ALTER DATABASE NOARCHIVELOG;

Database altered.

SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /arch01/oracle/kittu
Oldest online log sequence 1887
Current log sequence 1889

SQL> alter database open;

Database altered.

COPY THE UTLU112I.SQL FILE FROM NEW ENVIRONMENT TO OLD ENVIRONMENT AND RUN

kasarla[oracle]_kittu> cp /kasarla/kittu_11.2.0.2/rdbms/admin/utlu112i.sql /tmp
kasarla[oracle]_kittu> cd /tmp
kasarla[oracle]_kittu> ls
utlu112i.sql
kasarla[oracle]_kittu> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.1.0 Production on Sat Feb 25 22:03:57 2012

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> spool upgrade_info.log
SQL> @utlu112i.sql
Oracle Database 11.2 Pre-Upgrade Information Tool 02-25-2012 22:04:54
Script Version: 11.2.0.2.0 Build: 001
.
**********************************************************************
Database:
**********************************************************************
–> name: kittu
–> version: 11.2.0.1.0
–> compatible: 11.1.0
–> blocksize: 8192
–> platform: Linux IA (32-bit)
–> timezone file: V4
.
**********************************************************************
Tablespaces: [make adjustments in the current environment]
**********************************************************************
–> SYSTEM tablespace is adequate for the upgrade.
…. minimum required size: 690 MB
–> UNDOTBS1 tablespace is adequate for the upgrade.
…. minimum required size: 378 MB
–> SYSAUX tablespace is adequate for the upgrade.
…. minimum required size: 648 MB
–> TEMP tablespace is adequate for the upgrade.
…. minimum required size: 61 MB
.
**********************************************************************
Flashback: OFF
**********************************************************************
**********************************************************************
Update Parameters: [Update Oracle Database 11.2 init.ora or spfile]
Note: Pre-upgrade tool was run on a lower version 32-bit database.
**********************************************************************
–> If Target Oracle is 32-Bit, refer here for Update Parameters:
— No update parameter changes are required.
.

–> If Target Oracle is 64-Bit, refer here for Update Parameters:
— No update parameter changes are required.
.
**********************************************************************
Renamed Parameters: [Update Oracle Database 11.2 init.ora or spfile]
**********************************************************************
— No renamed parameters found. No changes are required.
.
**********************************************************************
Obsolete/Deprecated Parameters: [Update Oracle Database 11.2 init.ora or spfile]
**********************************************************************
— No obsolete parameters found. No changes are required
.

**********************************************************************
Components: [The following database components will be upgraded or installed]
**********************************************************************
–> Oracle Catalog Views [upgrade] VALID
–> Oracle Packages and Types [upgrade] VALID
–> JServer JAVA Virtual Machine [upgrade] VALID
–> Oracle XDK for Java [upgrade] VALID
–> Oracle Workspace Manager [upgrade] VALID
–> OLAP Analytic Workspace [upgrade] VALID
–> OLAP Catalog [upgrade] VALID
–> Oracle Text [upgrade] VALID
–> Oracle XML Database [upgrade] VALID
–> Oracle Java Packages [upgrade] VALID
–> Oracle interMedia [upgrade] VALID
–> Data Mining [upgrade] VALID
–> Expression Filter [upgrade] VALID
–> Rule Manager [upgrade] VALID
–> Oracle OLAP API [upgrade] VALID
.
**********************************************************************
Miscellaneous Warnings
**********************************************************************
WARNING: –> Database is using a timezone file older than version 14.
…. After the release migration, it is recommended that DBMS_DST package
…. be used to upgrade the 11.2.0.1.0 database timezone version
…. to the latest version which comes with the new release.
.
**********************************************************************
Recommendations
**********************************************************************
Oracle recommends gathering dictionary statistics prior to
upgrading the database.
To gather dictionary statistics execute the following command
while connected as SYSDBA:

EXECUTE dbms_stats.gather_dictionary_stats;

**********************************************************************
Oracle recommends reviewing any defined events prior to upgrading.

To view existing non-default events execute the following commands
while connected AS SYSDBA:
Events:
SELECT (translate(value,chr(13)||chr(10),’ ‘)) FROM sys.v$parameter2
WHERE UPPER(name) =’EVENT’ AND isdefault=’FALSE’

Trace Events:
SELECT (translate(value,chr(13)||chr(10),’ ‘)) from sys.v$parameter2
WHERE UPPER(name) = ‘_TRACE_EVENTS’ AND isdefault=’FALSE’

Changes will need to be made in the init.ora or spfile.

**********************************************************************
The DMSYS schema exists in the database. Prior to performing an
upgrade Oracle recommends that the DMSYS schema, and its associated
objects be removed from the database.

Refer to the Oracle Data Mining Administration Guide for the
instructions on how to perform this task.

**********************************************************************
SQL> spool off

REVIEW THE ABOVE OUTPUT AND TAKE ACTION

SQL> EXEC DBMS_STATS.GATHER_DICTIONARY_STATS;
SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql
SQL> select owner, object_name, object_type, status from dba_objects where status=’INVALID’ ;

SHUTDOWN THE OLD DATABASE AND LISTENER
PREPARE THE NEW ENVIRONMENT

make sure that below variables point to the new Oracle Home:

echo $ORACLE_HOME
echo $ORACLE_BASE
echo $TNS_ADMIN
echo $PATH
echo $LD_LIBRARY_PATH
echo $PERL5LIB
opatch version

Create nls/data/9idata Directory
On the database server node, as the owner of the Oracle RDBMS file system and database instance, run the $ORACLE_HOME/nls/data/old/cr9idata.pl script to create the $ORACLE_HOME/nls/data/9idata directory.

chmod 755 $ORACLE_HOME/nls/data/old/cr9idata.pl
Modify $ORACLE_HOME/nls/data/old/cr9idata.pl file to #!/usr/bin/perl the fist line
$ORACLE_HOME/nls/data/old/cr9idata.pl
ls -ld $ORACLE_HOME/nls/data/9idata
export ORA_NLS10=$ORACLE_HOME/nls/data/9idata
echo $ORA_NLS10

kasarla[oracle]_kittu> cat /etc/oraInst.loc | grep kittu
#inventory_loc=/kasarla/oracle/product/kittu_11.2.0/oraInventory
inventory_loc=/kasarla/oracle/product/kittu_11.2.0.2/oraInventory
kasarla[oracle]_kittu> cat /etc/oratab | grep kittu
#kittu:/kasarla/oracle/product/kittu_11.2.0:Y
kittu:/kasarla/oracle/product/kittu_11.2.0.2:Y
kasarla[oracle]_kittu> cd $SID_HOME/pfile
kasarla[oracle]_kittu> ls -ltr
-rw-r–r– 1 oracle dba 2865 Mar 17 2011 initkittu.ora
kasarla[oracle]_kittu> cp initkittu.ora initkittu.ora_before11202upgrade

CHANGE THE FOLLOWING PARAMETER VAULES

#compatible=11.1.0
compatible=11.2.0.2
diagnostic_dest=/backup/dump01/oracle/kittu
sec_case_sensitive_logon=false

kasarla[oracle]_kittu> ls -ltr
total 16
-rw-r–r– 1 oracle dba 2865 Feb 25 22:11 initkittu.ora_before11202upgrade
-rw-r–r– 1 oracle dba 2928 Feb 25 22:13 initkittu.ora

kasarla[oracle]_kittu> ln -s $SID_HOME/pfile/initkittu.ora .
kasarla[oracle]_kittu> orapwd file=orapwkittu password=******** entries=10
kasarla[oracle]_kittu> ls -ltr
-rw-r–r– 1 oracle dba 2851 May 15 2009 init.ora
lrwxrwxrwx 1 oracle dba 55 Feb 25 22:14 initkittu.ora -> /backup/dba01/oracle/kittu/pfile/initkittu.ora
-rw-r—– 1 oracle dba 2560 Feb 25 22:15 orapwkittu

Timezone info

Bug – Metalink Note: ID 974515.1.
kasarla[oracle]_kittu> cd $ORACLE_HOME/oracore/zoneinfo
kasarla[oracle]_kittu> ln -s timezone_14.dat timezone.dat
kasarla[oracle]_kittu> ln -s timezlrg_14.dat timezlrg.dat

START THE NEW DATABASE FOR UPGRADE

kasarla[oracle]_kittu> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.2.0 Production on Sat Feb 25 22:18:19 2012

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

Connected to an idle instance.

SQL> startup upgrade
ORACLE instance started.

Total System Global Area 3214024704 bytes
Fixed Size 1347172 bytes
Variable Size 1996489116 bytes
Database Buffers 1207959552 bytes
Redo Buffers 8228864 bytes
Database mounted.
Database opened.
SQL>

SQL> set time on
22:20:17 SQL> spool upgrade_kittu.log
22:20:25 SQL> @$ORACLE_HOME/rdbms/admin/catupgrd.sql

22:48:10 SQL> Rem Set errorlogging off
22:48:10 SQL> SET ERRORLOGGING OFF;
22:48:10 SQL>
22:48:10 SQL> Rem *********************************************************************
22:48:10 SQL> Rem END catupgrd.sql
22:48:10 SQL> Rem *********************************************************************
22:48:10 SQL>
22:48:23 SQL>
22:48:23 SQL>
22:48:24 SQL> spool off
22:48:26 SQL> exit
Disconnected from Oracle Database 11g Enterpris

Verify the upgrade.

– Restart the instance to reinitialize the system parameters for normal operation
SQL> STARTUP

– Run utlu112s.sql to display the results of the upgrade (Post-Upgrade Status Tool)
SQL> @$ORACLE_HOME/rdbms/admin/utlu112s.sql

– Run catuppst.sql script to perform upgrade actions
SQL> @$ORACLE_HOME/rdbms/admin/catuppst.sql

– Run utlrp.sql script to recompile any remaining stored PL/SQL and Java Code
SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql

If SYSTEM user does not work, do the following:
Create a temp script for roles modifications:

sqlplus / as sysdba
set pagesize 10000
set linesize 135
col alter_role format a150
SELECT ‘ALTER ROLE ‘ || role || ‘ NOT IDENTIFIED;’ alter_role
FROM dba_roles
WHERE PASSWORD_REQUIRED = ‘YES’
ORDER BY role
/

Copy the results and apply, example:

SQL> ALTER ROLE DBA NOT IDENTIFIED;
SQL> conn system

SQL> select owner, object_name, object_type, status from dba_objects where status=’INVALID’;

OWNER OBJECT_NAME OBJECT_TYPE STATUS
———- —————————— ——————– ——————–
DMSYS ODM_MODEL_UTIL PACKAGE BODY INVALID
DMSYS DBMS_DATA_MINING_TRANSFORM PACKAGE BODY INVALID
DMSYS DMP_SEC PACKAGE BODY INVALID
DMSYS DMP_SYS PACKAGE BODY INVALID
DMSYS DBMS_DM_MODEL_EXP PACKAGE BODY INVALID
DMSYS ODM_UTIL PACKAGE BODY INVALID
DMSYS ODM_NAIVE_BAYES_MODEL PACKAGE BODY INVALID
DMSYS DBMS_DATA_MINING PACKAGE BODY INVALID
DMSYS DBMS_DATA_MINING_INTERNAL PACKAGE BODY INVALID
DMSYS DBMS_PREDICTIVE_ANALYTICS PACKAGE BODY INVALID

10 rows selected.

SQL> DROP USER DMSYS CASCADE;

User dropped.

SQL> DELETE FROM SYS.EXPPKGACT$ WHERE SCHEMA = ‘DMSYS’;

3 rows deleted.

SQL> SELECT COUNT(*) FROM DBA_SYNONYMS WHERE TABLE_OWNER = ‘DMSYS’;

COUNT(*)
———-
6

SQL> SELECT ‘Drop public synonym ‘ || SYNONYM_NAME || ‘ ;’FROM DBA_SYNONYMS WHERE TABLE_OWNER = ‘DMSYS’;

‘DROPPUBLICSYNONYM’||SYNONYM_NAME||’;’
—————————————————-
Drop public synonym CLUSTER_RULE_TYPE ;
Drop public synonym CLUSTER_TYPE ;
Drop public synonym DM_CL_APPLY ;
Drop public synonym DM_GLM_BUILD ;
Drop public synonym DM_SVM_APPLY ;
Drop public synonym DM_SVM_BUILD ;

6 rows selected.

SQL> Drop public synonym CLUSTER_RULE_TYPE ;
SQL> Drop public synonym CLUSTER_TYPE ;
SQL> Drop public synonym DM_CL_APPLY ;
SQL> Drop public synonym DM_GLM_BUILD ;
SQL> Drop public synonym DM_SVM_APPLY ;
SQL> Drop public synonym DM_SVM_BUILD ;

SQL> select owner, object_name, object_type, status from dba_objects where status=’INVALID’;

no rows selected

Upgrade the Timezone.

SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
kasarla[oracle]_kittu> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.2.0 Production on Sat Feb 25 23:07:35 2012

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

Connected to an idle instance.

SQL> startup upgrade
ORACLE instance started.

Total System Global Area 3214024704 bytes
Fixed Size 1347172 bytes
Variable Size 1996489116 bytes
Database Buffers 1207959552 bytes
Redo Buffers 8228864 bytes
Database mounted.
Database opened.

SQL> SET SERVEROUTPUT ON

— If there are objects containing TSTZ data in recycle bin, please purge the bin now.
— Otherwise dbms_dst.begin_upgrade will report “ORA-38301: Cannot perform DDL/DML over objects in Recycle Bin”.

SQL> purge dba_recyclebin;

DBA Recyclebin purged.

— clean used tables
SQL> TRUNCATE TABLE SYS.DST$TRIGGER_TABLE;

Table truncated.

SQL> TRUNCATE TABLE SYS.DST$AFFECTED_TABLES;

Table truncated.

SQL> TRUNCATE TABLE SYS.DST$ERROR_TABLE;

Table truncated.

SQL>
— start upgrade window
SQL> EXEC DBMS_DST.BEGIN_UPGRADE(14);
An upgrade window has been successfully started.

PL/SQL procedure successfully completed.

— check if this select
SQL> column PROPERTY_NAME format a30
SQL> column VALUE format a30
SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value FROM DATABASE_PROPERTIES WHERE PROPERTY_NAME LIKE ‘DST_%’ ORDER BY PROPERTY_NAME;

PROPERTY_NAME VALUE
—————————— ——————————
DST_PRIMARY_TT_VERSION 14
DST_SECONDARY_TT_VERSION 4
DST_UPGRADE_STATE UPGRADE

— you can check what tables need to updated using
SQL> SELECT OWNER, TABLE_NAME, UPGRADE_IN_PROGRESS FROM ALL_TSTZ_TABLES WHERE UPGRADE_IN_PROGRESS=’YES’;

OWNER TABLE_NAME UPG
—————————— —————————— —
KYP_HS ESS_FAILOVER_LEASE YES
KYP_HS ESS_FAILOVER_RESOURCE YES

SQL> SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>

SQL> startup
ORACLE instance started.

Total System Global Area 3214024704 bytes
Fixed Size 1347172 bytes
Variable Size 1996489116 bytes
Database Buffers 1207959552 bytes
Redo Buffers 8228864 bytes
Database mounted.
Database opened.
SQL>

— now upgrade the tables who need action
set serveroutput on
VAR numfail number
BEGIN
DBMS_DST.UPGRADE_DATABASE(:numfail,
parallel => TRUE,
log_errors => TRUE,
log_errors_table => ‘SYS.DST$ERROR_TABLE’,
log_triggers_table => ‘SYS.DST$TRIGGER_TABLE’,
error_on_overlap_time => FALSE,
error_on_nonexisting_time => FALSE);
DBMS_OUTPUT.PUT_LINE(‘Failures:’|| :numfail);
END;
/

— If there were no failures then end the upgrade.

VAR fail number
BEGIN
DBMS_DST.END_UPGRADE(:fail);
DBMS_OUTPUT.PUT_LINE(‘Failures:’|| :fail);
END;
/
An upgrade window has been successfully ended.
Failures:0

PL/SQL procedure successfully completed.

SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value FROM DATABASE_PROPERTIES WHERE PROPERTY_NAME LIKE ‘DST_%’ ORDER BY PROPERTY_NAME;

PROPERTY_NAME VALUE
—————————— —————————————-
DST_PRIMARY_TT_VERSION 14
DST_SECONDARY_TT_VERSION 0
DST_UPGRADE_STATE NONE

SQL> SELECT * FROM v$timezone_file;

FILENAME VERSION
——————– ———-
timezlrg_14.dat 14

Post installation tasks that need to be recorded in the database (PSU)

kasarla[oracle]_kittu> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.2.0 Production on Sat Feb 25 23:39:58 2012

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> @?/rdbms/admin/catbundle.sql psu apply

PL/SQL procedure successfully completed.

SQL> SELECT ACTION_TIME, ACTION, VERSION, COMMENTS, BUNDLE_SERIES FROM sys.registry$history;

ACTION_TIME ACTION VERSION COMMENTS BUNDLE_SERIES
———————————– ————— ————— ———————————– ——————————
03-MAY-10 09.02.37.518256 PM APPLY 10.2.0.4 CPUOct2009 CPU
05-AUG-10 01.51.44.552497 PM VIEW RECOMPILE view recompilation
05-AUG-10 01.51.44.633487 PM UPGRADE 11.2.0.1.0 Upgraded from 10.2.0.4.0
05-AUG-10 02.06.12.610114 PM APPLY 11.2.0.1 CPUJul2010 CPU
25-FEB-12 10.47.58.936305 PM VIEW INVALIDATE view invalidation
25-FEB-12 10.47.58.996079 PM UPGRADE 11.2.0.2.0 Upgraded from 11.2.0.1.0
25-FEB-12 10.53.45.105125 PM APPLY 11.2.0.2 PSU 11.2.0.2.4 PSU
25-FEB-12 11.40.01.320889 PM APPLY 11.2.0.2 PSU 11.2.0.2.4 PSU

8 rows selected.

Verify the listener and tnsnames files

kasarla[oracle]_kittu> cp /kasarla/oracle/product/kittu_11.2.0/*env $ORACLE_HOME
kasarla[oracle]_kittu> ls -ltr *env
-rw-r–r– 1 oracle dba 2407 Feb 25 23:50 kittu_kasarla.env
kasarla[oracle]_kittu> mkdir -p /kasarla/oracle/product/kittu_11.2.0.2/network/admin/kittu_kasarla
kasarla[oracle]_kittu> cp -r /kasarla/oracle/product/kittu_11.2.0/network/admin/kittu_kasarla/* $TNS_ADMIN

change ORACLE_HOME in listener.ora and sqlnet.ora

kasarla[oracle]_kittu> cd $ORACLE_HOME/lib
kasarla[oracle]_kittu> ln -s /usr/openv/netbackup/bin/libobk.so libobk.so
kasarla[oracle]_kittu> ls -ltr libobk.so
lrwxrwxrwx 1 oracle dba 34 Feb 25 23:56 libobk.so -> /usr/openv/netbackup/bin/libobk.so

RE-LOGIN WITH THE ENV AND PUT THE DATABASE IN ARCHIVELOG MODE

SQL> shut immediate
SQL> startup mount
SQL> ALTER DATABASE ARCHIVELOG;
SQL> alter database open;
SQL> archive log list

validate the database

SQL> select owner, object_name, object_type, status from dba_objects where status=’INVALID’;
SQL> SELECT comp_name, version, status FROM dba_registry;

COMP_NAME VERSION STATUS
———————————– ——————– ——————–
OLAP Catalog 11.2.0.2.0 VALID
Oracle Multimedia 11.2.0.2.0 VALID
Oracle XML Database 11.2.0.2.0 VALID
Oracle Text 11.2.0.2.0 VALID
Oracle Expression Filter 11.2.0.2.0 VALID
Oracle Rules Manager 11.2.0.2.0 VALID
Oracle Workspace Manager 11.2.0.2.0 VALID
Oracle Database Catalog Views 11.2.0.2.0 VALID
Oracle Database Packages and Types 11.2.0.2.0 VALID
JServer JAVA Virtual Machine 11.2.0.2.0 VALID
Oracle XDK 11.2.0.2.0 VALID
Oracle Database Java Packages 11.2.0.2.0 VALID
OLAP Analytic Workspace 11.2.0.2.0 VALID
Oracle OLAP API 11.2.0.2.0 VALID

14 rows selected.

Start the listener

kasarla[oracle]_kittu> lsnrctl start lstnkittu

Re configure the rman

11g DB Creation

we are now creating a eamty database with same names (datafiles and tablespace) as source database

Create ASM directories for datafiles

kasarla1[grid]_grid> asmcmd
ASMCMD> ls
KITTU_VG/
KITTU_ARCH_VG/
ASMCMD> cd KITTU_VG/
ASMCMD> mkdir kittu
ASMCMD> cd kittu
ASMCMD> mkdir DATAFILE
ASMCMD> mkdir ONLINELOG
ASMCMD> mkdir CONTROL
ASMCMD> ls
CONTROL/
DATAFILE/
ONLINELOG/
ASMCMD> quit
kasarla1[grid]_grid> asmcmd
ASMCMD> cd KITTU_ARCH_VG/
ASMCMD> mkdir kittu
ASMCMD> ls
kittu/

check the destination path

Archive log destination
+CFSD_ARCH_VG/mdmd/

Control files
{DB_UNIQUE_NAME}/CONTROL/control01.ctl
{DB_UNIQUE_NAME}/CONTROL/control02.ctl

Tablespaces and database datafiles.

SYSTEM {DB_UNIQUE_NAME}/DATAFILE/system01.dbf 700M
SYSAUX {DB_UNIQUE_NAME}/DATAFILE/sysaux01.dbf 1024M
TEMP {DB_UNIQUE_NAME}/DATAFILE/temp_01.dbf 2048M
UNDO1 {DB_UNIQUE_NAME}/DATAFILE/undotbs01.dbf 1000M
UNDO2 {DB_UNIQUE_NAME}/DATAFILE/undotbs02.dbf 1000M
MDM_DATA {DB_UNIQUE_NAME}/DATAFILE/mdm_data01.dbf 8000M
MDM_INDEX {DB_UNIQUE_NAME}/DATAFILE/mdm_index01.dbf 6000M

REDO Log datafile
{DB_UNIQUE_NAME}/ONLINELOG/redo01g1t1.log 51200K
{DB_UNIQUE_NAME}/ONLINELOG/redo01g2t1.log 51200K
{DB_UNIQUE_NAME}/ONLINELOG/redo01g3t2.log 51200K
{DB_UNIQUE_NAME}/ONLINELOG/redo01g4t2.log 51200K

create database

kasarla1[kittu1]_oracle> cd $ORACLE_HOME/bin
kasarla1[kittu1]_oracle> ./dbca

Listener configuration in grid

kasarla1[kittu1]_grid>cd $ORACLE_HOME/bin
kasarla1[kittu1]_grid>netca

Export and import full database from source

Check the Health of the Cluster – (Clusterized Command)

[grid@kasarla1 ~]$ crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

All Oracle Instances – (Database Status)

[oracle@kasarla1 ~]$ srvctl status database -d kittu
Instance kittu1 is running on node kasarla1
Instance kittu2 is running on node kasarla2

Single Oracle Instance – (Status of Specific Instance)

[oracle@kasarla1 ~]$ srvctl status instance -d kittu -i kittu1
Instance kittu1 is running on node kasarla1

Node Applications – (Status)

[oracle@kasarla1 ~]$ srvctl status nodeapps
VIP kasarla1-vip is enabled
VIP kasarla1-vip is running on node: kasarla1
VIP kasarla2-vip is enabled
VIP kasarla2-vip is running on node: kasarla2
Network is enabled
Network is running on node: kasarla1
Network is running on node: kasarla2
GSD is disabled
GSD is not running on node: kasarla1
GSD is not running on node: kasarla2
ONS is enabled
ONS daemon is running on node: kasarla1
ONS daemon is running on node: kasarla2
eONS is enabled
eONS daemon is running on node: kasarla1
eONS daemon is running on node: kasarla2

Node Applications – (Configuration)

[oracle@kasarla1 ~]$ srvctl config nodeapps
VIP exists.:kasarla1
VIP exists.: /kasarla1-vip/1.2.3.4/255.255.255.0/eth0
VIP exists.:kasarla2
VIP exists.: /kasarla2-vip/1.2.3.5/255.255.255.0/eth0
GSD exists.
ONS daemon exists. Local port 6100, remote port 6200
eONS daemon exists. Multicast port 24057, multicast IP address 1.2.3.4, listening port 2016

List all Configured Databases

[oracle@kasarla1 ~]$ srvctl config database
kittu

Database – (Configuration)

[oracle@kasarla1 ~]$ srvctl config database -d kittu -a
Database unique name: kittu
Database name: kittu
Oracle home: /kittu/oracle/kittu/11.2.0.2
Oracle user: oracle
Spfile: +U01_DATA01/kittu/spfilerdcd.ora
Domain: idevelopment.info
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: kittu
Database instances: kittu1,kittu2
Disk Groups: U01_DATA01
Services:
Database is enabled
Database is administrator managed

ASM – (Status)

[oracle@kasarla1 ~]$ srvctl status asm
ASM is running on kasarla1,kasarla2

ASM – (Configuration)

[oracle@kasarla1 ~]$ srvctl config asm -a
ASM home: /u01/app/11.2.0/grid
ASM listener: LISTENER
ASM is enabled.

TNS listener – (Status)

[oracle@kasarla1 ~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): kasarla1,kasarla2

TNS listener – (Configuration)

[oracle@kasarla1 ~]$ srvctl config listener -a
Name: LISTENER
Network: 1, Owner: grid
Home: /kittu/oracle/grid/11.2.0.2 on node(s) kasarla2,kasarla1
End points: TCP:1533

SCAN – (Status)

[oracle@kasarla1 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node kasarla2
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node kasarla1
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node kasarla1

SCAN – (Configuration)

[oracle@kasarla1 ~]$ srvctl config scan
SCAN name: u01-scan, Network: 1/1.2.3.4/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /u01-scan.corporate.ge.com/1.2.3.134
SCAN VIP name: scan2, IP: /u01-scan.corporate.ge.com/1.2.3.135
SCAN VIP name: scan3, IP: /u01-scan.corporate.ge.com/1.2.3.136

VIP – (Status of Specific Node)

[oracle@kasarla1 ~]$ srvctl status vip -n kasarla1
VIP kasarla1-vip is enabled
VIP kasarla1-vip is running on node: kasarla1
[oracle@kasarla1 ~]$ srvctl status vip -n kasarla2
VIP kasarla2-vip is enabled
VIP kasarla2-vip is running on node: kasarla2

VIP – (Configuration of Specific Node)

[oracle@kasarla1 ~]$ srvctl config vip -n kasarla1
VIP exists.:kasarla1
VIP exists.: /kasarla1-vip/1.2.3.4/255.255.255.0/eth0
[oracle@kasarla1 ~]$ srvctl config vip -n kasarla2
VIP exists.:kasarla2
VIP exists.: /kasarla2-vip/1.2.3.5/255.255.255.0/eth0

Configuration for Node Applications – (VIP, GSD, ONS, Listener)

[oracle@kasarla1 ~]$ srvctl config nodeapps -a -g -s -l
-l option has been deprecated and will be ignored.
VIP exists.:kasarla1
VIP exists.: /kasarla1-vip/1.2.3.4/255.255.255.0/eth0
VIP exists.:kasarla2
VIP exists.: /kasarla2-vip/1.2.3.5/255.255.255.0/eth0
GSD exists.
ONS daemon exists. Local port 6100, remote port 6200
Name: LISTENER
Network: 1, Owner: grid
Home:/kittu/oracle/grid/11.2.0.2 on node(s) kasarla2,kasarla1
End points: TCP:1533

Verifying Clock Synchronization across the Cluster Nodes

[oracle@kasarla1 ~]$ cluvfy comp clocksync -verbose

Verifying Clock Synchronization across the cluster nodes

Checking if Clusterware is installed on all nodes…
Check of Clusterware install passed

Checking if CTSS Resource is running on all nodes…
Check: CTSS Resource running on all nodes
Node Name Status
———————————— ————————
kasarla1 passed
Result: CTSS resource check passed

Querying CTSS for time offset on all nodes…
Result: Query of CTSS for time offset passed

Check CTSS state started…
Check: CTSS state
Node Name State
———————————— ————————
kasarla1 Active
CTSS is in Active state. Proceeding with check of clock time offsets on all nodes…
Reference Time Offset Limit: 1000.0 msecs
Check: Reference Time Offset
Node Name Time Offset Status
———— ———————— ————————
kasarla1 0.0 passed

Time offset is within the specified limits on the following set of nodes:
“[kasarla1]”
Result: Check of clock time offsets passed
Oracle Cluster Time Synchronization Services check passed
Verification of Clock Synchronization across the cluster nodes was successful.

All running instances in the cluster – (SQL)

SELECT
inst_id
, instance_number inst_no
, instance_name inst_name
, parallel
, status
, database_status db_status
, active_state state
, host_name host
FROM gv$instance
ORDER BY inst_id;

INST_ID INST_NO INST_NAME PAR STATUS DB_STATUS STATE HOST
——– ——– ———- — ——- ———— ——— ——-
1 1 kittu1 YES OPEN ACTIVE NORMAL kasarla1
2 2 kittu2 YES OPEN ACTIVE NORMAL kasarla2

All database files and the ASM disk group they reside in – (SQL)

select name from v$datafile
union
select member from v$logfile
union
select name from v$controlfile
union
select name from v$tempfile;

ASM Disk Volumes – (SQL)

SELECT path FROM v$asm_disk;

11gR2 software install

ORACLE_BASE Verificatrion

Make sure ORACLE_BASE for Grid Infrastructure is different than ORACLE_BASE for Oracle RDBMS.
GRID Layout – RAC
OS User’s $HOME ==> /u01/oracle
ORACLE_BASE ==> /u01/oracle/grid_base
ORACLE_HOME ==> /u01/oracle/grid/11.2.0.2
Central Inventory ==> /u01/oracle/oraInventory

kittu layout – RAC
================
OS User’s $HOME ==> /u01/oracle
ORACLE_BASE ==> /kittu/oracle/oracle_base
ORACLE_HOME ==> /kittu/oracle/kittudb/11.2.0.2
Central Inventory ==> /u01/oracle/oraInventory

su – root
mkdir -p /kittu/oracle/oracle_base
mkdir -p /kittu/oracle/kittudb/11.2.0.2

cd /kittudb
chown -R oracle:dba oracle
chmod -R 775 oracle

Set the inventory

cat /etc/oraInst.loc
inventory_loc=/kittu/oracle/oraInventory
inst_group=oinstall

unzip the softwares

p10098816_112020_Linux-x86-64_1of7.zip
p10098816_112020_Linux-x86-64_2of7.zip

Verify Oracle Database Installation with CVU

/home/oracle/oracle_cvu/bin/cluvfy stage -pre dbinst -n kasarla1,kasarla2 -osdba dba -fixup -verbose

RDBMS Software Installation

kasarla1[kittu1]_oracle> cd /kittu/backup/database
kasarla1[kittu1]_oracle> ./runInstaller

Install recomented and PSU patches to the binaries

### Initial Installation ###
6880880 – just unzip in oracle_home (Before that tabke backup of Opatch direcoty)
10149223
10229719
### Recommended Patches ###
12628521
12320006
12683466
### PSU Jan2012 Patches ###
13343424

RAC Implementation

ORACLE_BASE Verificatrion

Make sure ORACLE_BASE for Grid Infrastructure is different than ORACLE_BASE for Oracle RDBMS.
OS User’s $HOME ==> /u01/oracle
ORACLE_BASE ==> /u01/oracle/grid_base
ORACLE_HOME ==> /u01/oracle/grid/11.2.0.2
Central Inventory ==> /u01/oracle/oraInventory

su – root
mkdir -p /u01/oracle/grid_base
mkdir -p /u01/oracle/grid/11.2.0.2
mkdir -p /u01/oracle/oraInventory

cd /u01
chown -R grid:oinstall oracle
chmod -R 775 oracle

Set the Inventory

cat /etc/oraInst.loc
inventory_loc=/u01/oracle/oraInventory
inst_group=oinstall

User and Groups

User User ID Purpose
grid 1794 User that owns the 11gR2 Grid binaries.
oracle 1793 User that owns the 11gR2 Oracle binaries.

Following should be how above users should be setup in /etc/passwd
grid:x:1794:1757:grid@:/u01/oracle:/bin/ksh
oracle:x:1793:1755:oracle@://oracle:/bin/ksh

Group Group ID Purpose
asmdba 1760 ASM Database Administrator Group(OSDBA for ASM).
asmoper 1759 ASM Operators Group, SYSOPER for ASM privileges(OSOPER for ASM).
oinstall 1757 Group able to write to the Oracle central inventory(oraInventory).
asmadmin 1758 Oracle ASM Group, granted SYSASM privileges(OSASM).
dba 1755 Group that will have SYSDBA database privileges(OSDBA).
oper 1756 Group that will have SYSOPER database privileges(OSOPER).

Following should be how above groups should be set in /etc/group
asmdba:x:1760:grid,oracle
asmoper:x:1759:grid
oinstall:x:1757:oracle
asmadmin:x:1758:grid
dba:x:1755:oracle,grid
oper:x:1756:oracle

Change primary group of oracle id to dba
usermod –g dba oracle

Change $HOME of oracle and grid users to /home/oracle and /home/grid respectively
As root:
usermod –d /home/oracle oracle
usermod –d /home/grid grid

Change default shell of oracle, grid user to /bin/ksh from /bin/bash
As root:
chsh -s /bin/ksh oracle
chsh -s /bin/ksh grid

The /etc/profile should have the following entry

if [ $SHELL = “/bin/ksh” ]; then
ulimit -u 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi

set the enviconment in [ALL NODES]

export ORACLE_SID=+ASM1
export ORACLE_HOME=/u01/oracle/grid/11.2.0.2
export GRID_HOME=/u01/oracle/grid/11.2.0.2
export ORACLE_BASE=/u01/oracle/grid_base
export ORACLE_TERM=vt100
export PATH=$PATH:$ORACLE_HOME/bin:$GRID_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/jdk/bin:$HOME/bin:.
export TNS_ADMIN=$ORACLE_HOME/network/admin;export TNS_ADMIN

Create SSH Directory and SSH Keys in [ALL NODES]

su – grid
[grid@kasarla1 ~]$ mkdir ~/.ssh
[grid@kasarla1 ~]$ chmod 700 ~/.ssh
[grid@kasarla1 ~]$ /usr/bin/ssh-keygen –t rsa
Enter file in which to save the key (/home/grid/.ssh/id_rsa): [ENTER]
Enter passphrase (empty for no passphrase): [ENTER]
Enter same passphrase again: [ENTER]

This command writes the RSA public key to the ~/.ssh/id_rsa.pub file and the private key to the ~/.ssh/id_rsa file.
Never distribute the private key to anyone not authorized to perform Oracle software installations.

Add all Keys to a common authorized_keys file and copy that to [ALL NODES]

[grid@kasarla1 ~]$ ssh kasarla1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
Are you sure you want to continue connecting (yes/no)? YES
grid@kasarla1’s password: XXXXX

[grid@kasarla1 ~]$ ssh kasarla2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
Are you sure you want to continue connecting (yes/no)? YES
grid@kasarla2’s password: XXXXX

now need to copy the authorized key file to the remaining nodes in the cluster.
[grid@kasarla1 ~]$ scp ~/.ssh/authorized_keys kasarla2:.ssh/authorized_keys

[grid@kasarla1 ~]$ chmod 600 ~/.ssh/authorized_keys
[grid@kasarla2 ~]$ chmod 600 ~/.ssh/authorized_keys

veryfy the connections
[grid@kasarla1 ~]$ ssh kasarla1 “date;hostname”
[grid@kasarla1 ~]$ ssh kasarla2 “date;hostname”

Make sure that ASM Lib RPMs are installed [ALL NODES]

kasarla1[]_grid> rpm -qa –queryformat “%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n”| grep oracleasm | sort
oracleasm-2.6.18-164.el5-2.0.5-1.el5 (x86_64)
oracleasmlib-2.0.4-1.el5 (x86_64)
oracleasm-support-2.1.3-1.el5 (x86_64)

Configure ASM Lib [ALL NODES]

[root@kasarla1 ~]# /usr/sbin/oracleasm configure -i -e -u grid -g asmadmin -o “OID” -x “sd”
Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets (‘[]’). Hitting without typing an
answer will keep that current value. Ctrl-C will abort.

Default user to own the driver interface [grid]:
Default group to own the driver interface [asmadmin]:
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done

[root@kasarla1 ~]# service oracleasm restart
Dropping Oracle ASMLib disks: [ OK ]
Shutting down the Oracle ASMLib driver: [ OK ]
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]

Create ASM disks

[root@kasarla1 ~]# ./create.ksh
cat create.ksh
/usr/sbin/oracleasm createdisk u01_DATA01 /dev/mpath/ASM_EMC
/usr/sbin/oracleasm createdisk u01_DATA02 /dev/mpath/ASM_EMC
/usr/sbin/oracleasm createdisk u01_DATA03 /dev/mpath/ASM_EMC
/usr/sbin/oracleasm createdisk u01_DATA04 /dev/mpath/ASM_EMC

On 1st Node List ASM Disk Group Information
[root@kasarla1 ~]# /usr/sbin/oracleasm listdisks
u01_DATA01
u01_DATA02
u01_DATA03
u01_DATA04

On 2nd Node – Scandisk to Pick up ASM Disks
[root@kasarla1 ~]# /usr/sbin/oracleasm listdisks
u01_DATA01
u01_DATA02
u01_DATA03
u01_DATA04

NOW List ASM Disk Group Information in 2nd Node
[root@kasarla2 ~]# /usr/sbin/oracleasm listdisks
u01_DATA01
u01_DATA02
u01_DATA03
u01_DATA04

Make sure all Public IPs , Private IPs , VIPs and SCAN are all fine [ALL NODES]

[root@kasarla1 ~]# /usr/bin/nslookup kittu-scan.krishnareddy.com
[root@kasarla1 ~]# /usr/bin/nslookup kasarla1.krishnareddy.com
[root@kasarla1 ~]# /usr/bin/nslookup kasarla1-vip.krishnareddy.com
Ping Public and Private IPs
ping –c 3 kasarla1
ping –c 3 kasarla1.krishnareddy.com
ping –c 3 kasarla1-priv
ping –c 3 kasarla1-priv.krishnareddy.com

Server Build Check

As a root linux_build_verification_script.sh

Verify Oracle Clusterware Requirements with CVU all the checks should be pass

download the newest version of cluvfy from: http://www.oracle.com/technology/products/database/clustering/cvu/cvu_download_homepage.html
[root@kasarla1 ~]./runcluvfy.sh stage -pre crsinst -n kasarla1,kasarla2 -fixup –verbose > /home/grid/kasarla1-kasarla2-cluvfy.grid.output

Below WARNINGs can be safely ignored:
WARNING:
PRVF-7584 : Multiple versions of package “elfutils-libelf-devel” found on node kasarla1: elfutils-libelf-devel-0.137-3.el5 (i386),elfutils-libelf-devel-0.137-3.el5 (x86_64)

WARNING:
PRVF-7584 : Multiple versions of package “elfutils-libelf-devel” found on node kasarla2: elfutils-libelf-devel-0.137-3.el5 (i386),elfutils-libelf-devel-0.137-3.el5 (x86_64)
Result: Package existence check passed for “elfutils-libelf-devel-0.125( x86_64)”

Install the cvuqdisk Packages for Linux

Install the operating system package cvuqdisk to both Oracle RAC nodes. Without cvuqdisk, Cluster Verification Utility cannot discover shared disks, and you will receive the error message “Package cvuqdisk not installed” when the Cluster Verification Utility is run (either manually or at the end of the Oracle grid infrastructure installation).

To install the cvuqdisk RPM, complete the following procedures

as a root
[root@kasarla1 ~]# cd /tmp/CVU_11.2.0.2.0_grid
[root@kasarla1 CVU_11.2.0.2.0_grid]# rpm -e cvuqdisk
[root@kasarla1 CVU_11.2.0.2.0_grid]# rpm -iv cvuqdisk-1.0.9-1.rpm
Preparing packages for installation…
Using default group oinstall to install package
cvuqdisk-1.0.9-1
[root@kasarla1 CVU_11.2.0.2.0_grid]# ls -l /usr/sbin/cvuqdisk
-rwsr-xr-x 1 root oinstall 10928 Aug 20 2010 /usr/sbin/cvuqdisk

Verify Hardware and Operative System Setup with CVU [passed]

[grid@kasarla1 grid]/stage/grid/runcluvfy.sh stage -post hwos -n kasarla1,kasarla2 -verbose > /home/grid/kasarla1-kasarla2-cluvfy.hwos.grid.output

Validate multicasting for private interconnect (identify from /etc/hosts – use priv)

Multicasting Requirement [ID 1212703.1] download from the location
gunzip mcasttest.tgz
tar xvf mcasttest.tar
[root@kasarla1 mcasttest] perl mcasttest.pl -n kasarla1,kasarla2 -i bond1
########### Setup for node kasarla1 ##########
Checking node access ‘kasarla1’
Checking node login ‘kasarla1’
Checking/Creating Directory /tmp/mcasttest for binary on node ‘kasarla1’
Distributing mcast2 binary to node ‘kasarla1’
########### Setup for node kasarla2 ##########
Checking node access ‘kasarla2’
Checking node login ‘kasarla2’
Checking/Creating Directory /tmp/mcasttest for binary on node ‘kasarla2’
Distributing mcast2 binary to node ‘kasarla2’
########### testing Multicast on all nodes ##########

Test for Multicast address 1.2.3..0

Jul 8 02:03:12 | Multicast Succeeded for bond1 using address 1.2.3..0:42000

Test for Multicast address 1.2.3..251
[root@kasarla1 ~]# /sbin/ifconfig bond1

Grid Infrastructure Installation

[grid@kasarla1 ~]$ cd /stage/grid
kasarla1[grid]_grid> ./runInstaller

./root.sh in [ALL NODES]

ASM Disk Groups Installation

SET LINESIZE 145
SET PAGESIZE 9999
SET VERIFY off
COLUMN disk_group_name FORMAT a20 HEAD ‘Disk Group Name’
COLUMN disk_file_name FORMAT a20 HEAD ‘File Name’
COLUMN total_mb FORMAT 999,999,999 HEAD ‘File Size (MB)’
COLUMN used_mb FORMAT 999,999,999 HEAD ‘Used Size (MB)’
COLUMN pct_used FORMAT 999.99 HEAD ‘Pct. Used’

break on report on disk_group_name skip 1
compute sum label “” of total_mb used_mb on disk_group_name
compute sum label “Grand Total: ” of total_mb used_mb on report

SELECT
NVL(a.name, ‘[CANDIDATE]’) disk_group_name
, b.name disk_file_name
, b.total_mb total_mb
, (b.total_mb – b.free_mb) used_mb
, ROUND((1- (b.free_mb / b.total_mb))*100, 2) pct_used
FROM
v$asm_diskgroup a RIGHT OUTER JOIN v$asm_disk b USING (group_number)
ORDER BY
a.name
/

kasarla1[grid]_grid> asmca &

Upgrade OPatch – GRID

unzip p6880880_110000_Linux-x86-64.zip in all grid homes

OPatch Version should be : 11.2.0.1.4

OCM Configuration [ALL NODES]

kasarla1[grid]_grid> $ORACLE_HOME/OPatch/ocm/bin/emocmrsp

OCM Installation Response Generator 10.3.1.2.0 – Production
Copyright (c) 0005, 0009, Oracle and/or its affiliates. All rights reserved.

Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name: k.kittureddy@gmail.com

Password (optional):
Unable to establish a network connection to Oracle. If your systems require a
proxy server for outbound Internet connections, enter the proxy server details
in this format:
[@][:]
If you want to remain uninformed of critical security issues in your
configuration, enter NONE
Proxy specification: NONE
The OCM configuration response file (ocm.rsp) was successfully created.
/home/grid/ocm.rsp

Inventory validation [ALL NODES]

kasarla1[+ASM1]_grid>$ORACLE_HOME/OPatch/opatch lsinventory -detail -oh $ORACLE_HOME

Downloading OPatch and apply on [ALL NODES]

p10157506_112020_Linux-x86-64.zip
[root@kasarla1 10157506]# /u01/oracle/grid/11.2.0.2/OPatch/opatch auto /stage/10157506 -oh /u01/oracle/grid/11.2.0.2

Check CRS Status [ALL NODES]

kasarla1[grid]_grid> crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

Check Clusterware Resources

kasarla1[grid]_grid> crs_stat -t -v

Check Cluster Nodes

kasarla1[grid]_grid> olsnodes -n
kasarla1 1
kasarla2 2

Check Oracle TNS Listener Process on [ALL NODES]

kasarla1[grid]_grid> ps -ef | grep lsnr | grep -v ‘grep’ | grep -v ‘ocfs’ | awk ‘{print $9}’
LISTENER_SCAN2
LISTENER_SCAN3
LISTENER

Confirming Oracle ASM Function for Oracle Clusterware Files

If you installed the OCR and voting disk files on Oracle ASM, then use the following command syntax as the Grid Infrastructure installation owner to confirm that your Oracle ASM installation is running:

kasarla1[grid]_grid> srvctl status asm -a
ASM is running on kasarla2,kasarla1
ASM is enabled.

Check Oracle Cluster Registry (OCR)

kasarla1[grid]_grid> ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2940
Available space (kbytes) : 259180
ID : 1005696169
Device/File Name : +ocr_vote_vg
Device/File integrity check succeeded

Device/File not configured

Device/File not configured

Device/File not configured

Device/File not configured

Cluster registry integrity check succeeded

Logical corruption check bypassed due to non-privileged user

Check Voting Disk

kasarla1[grid]_grid> crsctl query css votedisk

Check SCAN Resolution

kasarla1[grid]_grid> dig u01-scan.krishnareddy.com

; <> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <> kittu-scan.krishnareddy.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40031
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 8, ADDITIONAL: 8

;; QUESTION SECTION:
;kittu-scan.krishnareddy.com. IN A

;; ANSWER SECTION:
kittu-scan.krishnareddy.com. 7259 IN A 1.2.3.48
kittu-scan.krishnareddy.com. 7259 IN A 1.2.3.46
kittu-scan.krishnareddy.com. 7259 IN A 1.2.3.47

;; AUTHORITY SECTION:
krishnareddy.com. 2642 IN NS chanti11.kittu.com.
krishnareddy.com. 2642 IN NS chanti06.kittu.com.
krishnareddy.com. 2642 IN NS chanti03.kittu.com.
krishnareddy.com. 2642 IN NS chanti04.kittu.com.
krishnareddy.com. 2642 IN NS chanti05.kittu.com.
krishnareddy.com. 2642 IN NS chanti01.kittu.com.
krishnareddy.com. 2642 IN NS chanti02.kittu.com.
krishnareddy.com. 2642 IN NS chanti07.kittu.com.

;; ADDITIONAL SECTION:
chanti01.kittu.com. 20778 IN A 5.5.104.000
chanti02.kittu.com. 13136 IN A 5.5.108.000
chanti03.kittu.com. 13138 IN A 5.5.112.000
chanti04.kittu.com. 13138 IN A 5.5.116.000
chanti05.kittu.com. 13136 IN A 5.5.120.000
chanti06.kittu.com. 13136 IN A 5.5.124.000
chanti07.kittu.com. 1990 IN A 5.5.128.000
chanti11.kittu.com. 13138 IN A 5.5.000.000

;; Query time: 0 msec
;; SERVER: 1.2.3.4#53(1.2.3.4)
;; WHEN: Thu Jul 14 10:45:28 2011
;; MSG SIZE rcvd: 404

=====================================================

ISSUES


SQL> alter database drop logfile group 7;
alter database drop logfile group 7
*
ERROR at line 1:
ORA-01623: log 7 is current log for instance i3 (thread 3) – cannot drop
ORA-00312: online log 7 thread 3: ‘+u01_REDOA_VG/kittu/redo/redog7t3a.log’
ORA-00312: online log 7 thread 3: ‘+u01_REDOB_VG/kittu/redo/redog7t3b.log’

SQL> alter database disable thread 3;

Database altered.

SQL> alter database drop logfile group 7;

Database altered.


kasarla1[kittu1]_oracle> srvctl start instance -d kittu -i kittu1
PRCR-1013 : Failed to start resource ora.kittu.db
PRCR-1064 : Failed to start resource ora.kittu.db on node kasarla1
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “clean”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “check”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-2680: Clean of ‘ora.LSTNkittu.lsnr’ on ‘kasarla1’ failed
CRS-5010: Update of configuration file “/kittu/oracle/kittudb/11.2.0.3/srvm/admin/oratab.bak.kasarla1” failed: details at “(:CLSN00011:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-5016: Process “/u01/oracle/grid/11.2.0.3/bin/setasmgidwrap” spawned by agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” for action “start” failed: details at “(:CLSN00010:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/oraagent_oracle//oraagent_oracle.log”
ORA-12545: Connect failed because target host or object does not exist
CRS-5017: The resource action “ora.kittu.db start” encountered the following error:
ORA-12545: Connect failed because target host or object does not exist
. For details refer to “(:CLSN00107:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/oraagent_oracle//oraagent_oracle.log”.

CRS-2674: Start of ‘ora.kittu.db’ on ‘kasarla1’ failed
ORA-12545: Connect failed because target host or object does not exist

Created pfile
kasarla1[kittu1]_oracle> vi initkittu1.ora
SPFILE=’+kittuDB_VG/kittu/SPFILE/spfilekittu.ora’
Moved the existing spfile
kasarla1[kittu1]_oracle> mv spfilekittu1.ora spfilekittu1.ora_bckp


kasarla1[kittu1]_oracle> srvctl start database -d kittu
PRCD-1027 : Failed to retrieve database kittu
PRCD-1229 : An attempt to access configuration of database kittu was rejected because its version 11.2.0.3.0 differs from the program version 11.2.0.2.0. Instead run the program from /kittu/oracle/kittudb/11.2.0.3.

kasarla[+ASM1]_grid> srvctl config database -d kittu
Database unique name: kittu
Database name:
Oracle home: /kittu/oracle/kittudb/11.2.0.3
Oracle user: oracle
Spfile:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: kittu
Database instances: kittu1,kittu2
Disk Groups: kittuDB_VG,u01_ARCH_VG,u01_REDOA_VG,u01_REDOB_VG
Mount point paths:
Services:
Type: RAC
Database is administrator managed
kasarla1[kittu1]_oracle> echo $ORACLE_HOME
/kittu/oracle/kittudb/11.2.0.2
kasarla1[kittu1]_oracle>
kasarla1[+ASM1]_grid> srvctl remove database -d kittu
Remove the database kittu? (y/[n]) y
kasarla1[+ASM1]_grid> srvctl config database -d kittu
PRCD-1120 : The resource for database kittu could not be found.
PRCR-1001 : Resource ora.kittu.db does not exist
kasarla1[+ASM1]_grid>
kasarla1[kittu1]_oracle> srvctl add database -d kittu -o /kittu/oracle/kittudb/11.2.0.2
kasarla1[kittu1]_oracle> srvctl config database -d kittu
Database unique name: kittu
Database name:
Oracle home: /kittu/oracle/kittudb/11.2.0.2
Oracle user: oracle
Spfile:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: kittu
Database instances:
Disk Groups:
Mount point paths:
Services:
Type: RAC
Database is administrator managed
kasarla1[kittu1]_oracle>
kasarla1[kittu1]_oracle> srvctl add database -d kittu -o /kittu/oracle/kittudb/11.2.0.2 -a “KITTU_VG,ARCH_VG,REDO_VG”
kasarla1[kittu1]_oracle> srvctl add instance -d kittu -i kittu1 -n kasarla1.krishareddy.com
kasarla1[kittu1]_oracle> srvctl add instance -d kittu -i kittu2 -n kasarla2.krishareddy.com

kasarla1[kittu2]_oracle> srvctl modify database -d kittu -p “+kittuDB_VG/kittu/SPFILE/spfilekittu.ora”
kasarla1[kittu2]_oracle> srvctl config database -d kittu
Database unique name: kittu
Database name:
Oracle home: /kittu/oracle/kittudb/11.2.0.2
Oracle user: oracle
Spfile: +kittuDB_VG/kittu/SPFILE/spfilekittu.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: kittu
Database instances: kittu1,kittu2
Disk Groups: u01_REDOA_VG,u01_REDOB_VG,kittuDB_VG
Mount point paths:
Services:
Type: RAC
Database is administrator managed
kasarla01[kittu2]_oracle>


kasarla1[kittu1]_oracle> srvctl start database -d kittu
PRCR-1079 : Failed to start resource ora.kittu.db
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “clean”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla2/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “clean”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “check”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-2680: Clean of ‘ora.LSTNkittu.lsnr’ on ‘kasarla1’ failed
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “check”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla2/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-2680: Clean of ‘ora.LSTNkittu.lsnr’ on ‘kasarla2’ failed
CRS-5017: The resource action “ora.kittu.db start” encountered the following error:
ORA-00119: invalid specification for system parameter REMOTE_LISTENER
ORA-00132: syntax error or unresolved network name ‘listeners_u01_scan’
. For details refer to “(:CLSN00107:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla2/agent/crsd/oraagent_oracle//oraagent_oracle.log”.
CRS-2674: Start of ‘ora.kittu.db’ on ‘kasarla2’ failed
CRS-2632: There are no more servers to try to place resource ‘ora.kittu.db’ on that would satisfy its placement policy

kasarla1[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is running on node kasarla1
Instance kittu2 is not running on node kasarla2
kasarla1[kittu1]_oracle>
kasarla1[kittu1]_oracle> srvctl config scan
SCAN name: u01-scan.krishnareddy.com, Network: 1/3.4.5.0/255.255.252.0/bond0
SCAN VIP name: scan1, IP: /u01-scan.krishnareddy.com/1.2.3.46
SCAN VIP name: scan2, IP: /u01-scan.krishnareddy.com/1.2.3.45
SCAN VIP name: scan3, IP: /u01-scan.krishnareddy.com/1.2.3.44
kasarla1[kittu1]_oracle> srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1525
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1525
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1525

SQL> alter system set remote_listener=”u01-scan.krishareddy.com:1525″ scope=both sid=’*’;

System altered.

SQL> alter system set remote_login_passwordfile=none scope=spfile sid=’*’;

System altered.

SQL>


kasarla1[kittu1]_oracle> srvctl start database -d kittu
PRCR-1079 : Failed to start resource ora.kittu.db
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “clean”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla2/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “clean”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “check”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla2/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-2680: Clean of ‘ora.LSTNkittu.lsnr’ on ‘kasarla2’ failed
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “check”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-2680: Clean of ‘ora.LSTNkittu.lsnr’ on ‘kasarla1’ failed
CRS-5017: The resource action “ora.kittu.db start” encountered the following error:
ORA-01102: cannot mount database in EXCLUSIVE mode
. For details refer to “(:CLSN00107:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla2/agent/crsd/oraagent_oracle//oraagent_oracle.log”.

CRS-2674: Start of ‘ora.kittu.db’ on ‘kasarla2’ failed
CRS-2632: There are no more servers to try to place resource ‘ora.kittu.db’ on that would satisfy its placement policy
CRS-5017: The resource action “ora.kittu.db start” encountered the following error:
ORA-00201: control file version 11.2.0.2.0 incompatible with ORACLE version 11.2.0.0.0
ORA-00202: control file: ‘+u01_REDOA_VG/kittu/control/control01.ctl’
. For details refer to “(:CLSN00107:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/oraagent_oracle//oraagent_oracle.log”.

CRS-2674: Start of ‘ora.kittu.db’ on ‘kasarla1’ failed

SQL> alter system set compatible=’11.2.0.2′ scope=spfile sid=’*’;

System altered.

SQL> select instance_name , status,logins from gv$instance;

INSTANCE_NAME STATUS LOGINS
—————- ———— ———-
kittu1 OPEN ALLOWED


kasarla1[kittu1]_oracle> sqlplus

SQL*Plus: Release 11.2.0.2.0 Production on Fri Jan 25 02:11:15 2013

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

Enter user-name: / as sysdba
Connected to an idle instance.

SQL> startup
ORA-01102: cannot mount database in EXCLUSIVE mode
SQL> exit

SQL> alter system set cluster_database=TRUE scope=spfile sid=’*’;

System altered.

kasarla1[kittu1]_oracle> srvctl status database -d kittu
Instance kittu1 is running on node kasarla1
Instance kittu2 is running on node kasarla2


kasarla1[kittu1]_oracle> srvctl start listener -l lstnkittu
PRCR-1079 : Failed to start resource ora.LSTNkittu.lsnr
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “clean”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla2/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “clean”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/ortaagent_oracle//oraagent_oracle.log”
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “check”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla1/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-2680: Clean of ‘ora.LSTNkittu.lsnr’ on ‘kasarla1’ failed
CRS-5013: Agent “/u01/oracle/grid/11.2.0.3/bin/oraagent.bin” failed to start process “/kittu/oracle/kittudb/11.2.0.3/bin/lsnrctl” for action “check”: details at “(:CLSN00008:)” in “/u01/oracle/grid/11.2.0.3/log/kasarla2/agent/crsd/oraagent_oracle//oraagent_oracle.log”
CRS-2680: Clean of ‘ora.LSTNkittu.lsnr’ on ‘kasarla2’ failed

kasarla1[kittu1]_oracle> srvctl status listener
Listener LSTNkittu is enabled
Listener LSTNkittu is not running
SQL> alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=kasarla1.krishareddy.com)(PORT=1548))’ scope=both sid=’kittu1′;

System altered.

SQL> alter system register;

System altered.

SQL> alter system set local_listener='(ADDRESS=(PROTOCOL=TCP)(HOST=kasarla2.krishareddy.com)(PORT=1548))’ scope=both sid=’kittu2′;

System altered.

SQL> alter system register;

System altered.

not workout

kasarla1[kittu1]_oracle> srvctl config listener -l LSTNkittu
Name: LSTNkittu
Network: 1, Owner: oracle
Home: /kittu/oracle/kittudb/11.2.0.3
End points: TCP:1548
kasarla1[kittu1]_oracle>

connected to grid 11.2.0.3 home and using dbca deleted the listener and recreated the 11.2.0.2 listener

kasarla1[kittu1]_oracle> srvctl status listener -l LSTNkittu
Listener LSTNkittu is enabled
Listener LSTNkittu is running on node(s): kasarla2,kasarla1
kasarla1[kittu1]_oracle>


SQL> alter user TRINITY identified by values ‘asdfasdfasdfa’;
alter user TRINITY identified by values ‘asdfasdfasdfa’
*
ERROR at line 1:
ORA-28007: the password cannot be reused

select USERNAME,ACCOUNT_STATUS,EXPIRY_DATE,profile from dba_users where USERNAME=’TRINITY’;
select * from dba_profiles;
alter profile default LIMIT PASSWORD_REUSE_TIME UNLIMITED;
alter user TRINITY identified by values ‘dasdfasdfasdfa’;
alter profile default LIMIT PASSWORD_REUSE_TIME 1800;


ORA-15055: unable to connect to ASM instance
ORA-01034: ORACLE not available
ORA-27123: unable to attach to shared memory segment
Linux-x86_64 Error: 13: Permission denied

umask 022
cd $ORACLE_HOME
As a root chmod 755 (on all sub-dirs)
cd $ORACLE_BASE/admin/(SID NAME)
As a root chmod 755 (on all sub-dirs)
cd $ORACLE_HOME/bin
As a root chmod 6751 oracle


ORA-12012: error on auto execute of job 580
ORA-20000: SQLERRM: ORA-29283: invalid file operation
ORA-06512: at “SYS.UTL_FILE”, line 536
ORA-29283: invalid file operation SQLCODE: -29283
ORA-06512: at “APPS.MGMT_EBS_LL_METRICS”, line 1533
ORA-06512: at line 1

select GRANTEE,OWNER,TABLE_NAME,PRIVILEGE from dba_tab_privs WHERE table_name = ‘MMS_FTP’;
select OBJECT_NAME,OBJECT_TYPE from dba_objects where OBJECT_NAME= ‘MMS_FTP’;
select OBJECT_NAME,OBJECT_TYPE from dba_objects where OBJECT_TYPE=’DIRECTORY’;
CREATE OR REPLACE DIRECTORY MDMD_FTP AS ‘/home/mm_ftp/mmd_ftp’;
GRANT READ, WRITE ON DIRECTORY MMS_OUT TO MM3;

Test the connection

DECLARE
fileHandler UTL_FILE.FILE_TYPE;
BEGIN
fileHandler := UTL_FILE.FOPEN(‘APPS_DATA_FILE_DIR’, ‘def.txt’, ‘W’);
UTL_FILE.PUTF(fileHandler, ‘Look ma, I”m writing to a file!!!\n’);
UTL_FILE.FCLOSE(fileHandler);
EXCEPTION
WHEN utl_file.invalid_path THEN
raise_application_error(-20000, ‘ERROR: Invalid path for file.’);
END;
/


ORA-00210: cannot open the specified control file
ORA-00202: control file: ‘+REDOB_VG/ard2/control/cntrl02.dbf’
ORA-17503: ksfdopn:2 Failed to open file +REDOB_VG/ard2/control/cntrl02.dbf
ORA-15173: entry ‘cntrl02.dbf’ does not exist in directory ‘control’
ORA-00210: cannot open the specified control file
ORA-00202: control file: ‘+REDOA_VG/mrd2/control/cntrl01.dbf’
ORA-17503: ksfdopn:2 Failed to open file +REDOA_VG/ard2/control/cntrl01.dbf
ORA-15173: entry ‘cntrl01.dbf’ does not exist in directory ‘control’
ORA-205 signalled during: alter database mount…

ALTER SYSTEM SET control_files=’+REDOB_VG/ard2/control/cntrl02.dbf’,’+REDOA_VG/ard2/control/cntrl01.dbf’ SCOPE=SPFILE;


TNS-12599: TNS:cryptographic checksum mismatch

Modify the $ORACLE_HOME/network/admin/sqlnet.ora of each server involved, and add the following line:
SQLNET.ENCRYPTION_TYPES_SERVER= (3DES168)


ORA-19510: failed to set size of 10232 blocks for file “kittu/log_515290_1_617208630.arc” (blocksize=512)
ORA-27037: unable to obtain file status

change archivelog “/arch01/oracle/wb/log_515290_1_617208630.arc” validate;


ORA-01580: error creating control backup file /kittu/snapshot/snapcf_mars.f

Change the snapshot control file to ASM


RMAN-06059: expected archived log not found, loss of archived log compromises recoverability
ORA-19625: error identifying file /kittu/arch/log_2796_1_774912134.arc
ORA-27037: unable to obtain file status

Run Crosscheck for archives
change archivelog all crosscheck;


ORA-19506: failed to create sequential file, name=”TAPECOPY_06072012_1_327″, parms=””
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:

Found parameter CLIENT_READ_TIMEOUT = 9600 missing on /usr/openv/netbackup/ bp.conf file.


RMAN-03009: failure of backup command on CH7 channel at 05/24/2012 19:00:14
ORA-19755: could not open change tracking file
ORA-19750: change tracking file: ‘+DB_VG/mdm/ctf/ctfblock_change.ctf’
ORA-17503: ksfdopn:2 Failed to open file +DB_VG/mdm/ctf/ctfblock_change.ctf
ORA-15055: unable to connect to ASM instance
ORA-00020: maximum number of processes (100) exceeded

increase the number of process value


RMAN-03009: failure of backup command on CH1 channel at 05/16/2012 21:46:19
ORA-01580: error creating control backup file /kittu/snapshot/snapcf_rwp.f
ORA-27056: could not delete file

permission issue check the directorys


ORA-00230: operation disallowed: snapshot control file enqueue unavailable

Previous backup is holding the control file enqueue.

set linesize 200
set pagesize 200
column SPID format a10
column EVENT format a25
column STATE format a10
column CLIENT_INFO format a20
SELECT s.sid,s.serial#,p.SPID, sw.EVENT, sw.SECONDS_IN_WAIT/60/60 HOURS_IN_WAIT,
sw.STATE, s.CLIENT_INFO
FROM V$SESSION_WAIT sw, V$SESSION s, V$PROCESS p
WHERE sw.EVENT LIKE ‘%MML%’
AND s.SID=sw.SID
AND s.PADDR=p.ADDR;

select sid, serial#, status,to_char(LOGON_TIME,’DD-MM-YYYY HH24:MI:SS’) from v$session where program like ‘%rman%’;
SELECT s.SID, USERNAME AS “User”, PROGRAM, MODULE, ACTION,to_char(LOGON_TIME,’DD-MM-YYYY HH24:MI:SS’)”Logon”, l.* FROM V$SESSION s, V$ENQUEUE_LOCK l WHERE l.SID = s.SID AND l.TYPE = ‘CF’ AND l.ID1 = 0 AND l.ID2 = 2;

Catalog database NOT available
Check the TNS entries are added in the source db


ORA-01017: invalid username/password; logon denied

check the password expiry date


ORA-1653: unable to extend table SYS.WRM$_SNAPSHOT_DETAILS by 128 in tablespace SYSAUX

It is not error. It’s a nice feature in 11gR2. If there is not enough space then awr will automatically delete the oldest snapshots to free up space.


RMAN-03009: failure of allocate command on CH1 channel at 05/18/2012 01:46:09
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library

Recreated the soft link and tape copy completed successfully
/kittu/oracle/kittudb/11.2.0.2/lib/libobk.so -> /usr/openv/netbackup/bin/libobk.so64


RMAN-03002: failure of backup command at 04/27/2012 02:00:28
RMAN-03014: implicit resync of recovery catalog failed
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog

Register with catalog database


ORA-27054: NFS file system where the file is created or resides is not mounted with correct options

not properly mounted
mount |grep backup
As a root
# umount /backup
# mount /backup


skipping backup set key 4779157; already backed up 1 time(s)
skipping backup set key 4779158; already backed up 1 time(s)
skipping backup set key 4779159; already backed up 1 time(s)

SELECT s.sid,s.serial#,p.SPID, sw.EVENT, sw.SECONDS_IN_WAIT/60/60 HOURS_IN_WAIT,
sw.STATE, s.CLIENT_INFO
FROM V$SESSION_WAIT sw, V$SESSION s, V$PROCESS p
WHERE sw.EVENT LIKE ‘%MML%’
AND s.SID=sw.SID
AND s.PADDR=p.ADDR;
had an issue with allocations hanging,submitting new job requests should resolve this


RMAN-03009: failure of backup command on CH1 channel at 04/16/2012 23:58:03
ORA-00230: operation disallowed: snapshot control file enqueue unavailable

change the backup timing in crontab
The tape copy script is scheduled to run for every hour. Most of the jobs are getting completed in few minutes except the one scheduled at 20.30 PM. yesterday it took 8 hours to complete. The rman backup script is scheduled to run at 21.30 PM. This script is failing because the tape copy script is holding the snapshot controlfile. We can try by excluding the 20:30 tape copy script.


RMAN-03009: failure of backup command on CH4 channel at 09/05/2012 11:46:25
ORA-19506: failed to create sequential file, name=”TAPECOPY_09052012_1_10″, parms=””
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:

Server needs to be set up to allowed send backup to tape.


ORA-19502: write error on file “/kittu/full/CCD4_HOT_07182012_1_88”, block number 196865 (block size=8192)
ORA-27072: File I/O error

DB backup is failing because of lack of space


ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 28: No space left on device

DB backup is failing because of lack of space


ORA-16038: log 5 sequence# 206 cannot be archived
ORA-19504: failed to create file “”
ORA-00312: online log 5 thread 2: ‘+REDOA_VG/redo/redog5t2a.log’
ORA-00312: online log 5 thread 2: ‘+REDOB_VG/redo/redog5t2b.log’

select sequence# from v$archived_log where sequence# like ‘206%’;


ORA-27192: skgfcls: sbtclose2 returned error – failed to close file
ORA-19511: Error received from media manager layer, error text:

this is because of slowness try to change MAXPIECESIZE=4G so that it will complete fast


ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 2: No such file or directory
Additional information: 9925
ORA-01075: you are currently logged on

Check the alert log and modify the audit_dump_dest location


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/24/2013 05:40:23
RMAN-06403: could not obtain a fully authorized session
RMAN-04006: error from auxiliary database: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-00600: internal error code, arguments: [kck_rls_check must use (11,0,0,0,0) or lower], [kdt.c], [9576], [11.2.0.2.0], [], [], [], [], [], [], [], []
RMAN-04017: startup error description: ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance

Check the init.ora file parameters


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-12541: TNS:no listener

Start the listener


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-12528: TNS:listener: all appropriate instances are blocking new connections

Check the listener status its sayes blocking
Check the listener.ora file for any extra charectors


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

Make a static entry of the service used in the service name to connect to the auxiliary database.


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-01017: invalid username/password; logon denied

Backup the password file and recreate a new password file and connect


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-12528: TNS:listener: all appropriate instances are blocking new connections

Create a static entry for the SID to the SID_LIST in the listener.ora


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-12541: TNS:no listener

Start the listener


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04004: error from recovery catalog database: ORA-12154: TNS:could not resolve the connect identifier specified

tnsping
tnsping
To be sure that the tnsnames.ora file of each machine (machine where is the source database and machine where is the auxiliary database) has the service name to connect to auxiliary database.
Verify that there are not duplicate service_name with different configuration in the tnsnames.ora file.
When duplicating from an active database, you must first have connected as SYSDBA to the auxiliary instance by means of a net service name. This net service name must also be available on the source database instance


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/24/2013 05:40:23
RMAN-06403: could not obtain a fully authorized session
RMAN-04006: error from auxiliary database: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-00600: internal error code, arguments: [kck_rls_check must use (11,0,0,0,0) or lower], [kdt.c], [9576], [11.2.0.2.0], [], [], [], [], [], [], [], []
RMAN-04017: startup error description: ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance

Check the init.ora file parameters


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/24/2013 06:02:41
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on C1 channel at 01/24/2013 06:02:41
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-12154: TNS:could not resolve the connect identifier specified
ORA-17629: Cannot connect to the remote database server

The auxiliary instance must be available through Oracle Net
When duplicating from an active database, you must first have connected as SYSDBA to the auxiliary instance by means of a net service name


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/24/2013 06:25:45
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-10038: database session for channel ch1 terminated unexpectedly

Parameter values modified


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/24/2013 09:20:07
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06136: ORACLE error from auxiliary database: ORA-00344: unable to re-create online log ‘+CFSERPD_REDOA_VG/ccld4/redo/redog8t3a.log’
ORA-17502: ksfdcre:4 Failed to create file +CFSERPD_REDOA_VG/ccld4/redo/redog8t3a.log
ORA-15041: diskgroup “CFSERPD_REDOA_VG” space exhausted

Check the space in the Diskgroup


RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row
RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT rows
ORACLE error from auxiliary database: ORA-03135: connection lost contact
Process ID: 19671
Session ID: 337 Serial number: 3

This can be ignore


kasarla01[rmnd]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Wed Mar 6 03:41:21 2013

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

Connected to an idle instance.

SQL> startup
ORA-03113: end-of-file on communication channel
SQL>

Alert Log shows
—————-
ORA-15183: ASMLIB initialization error [driver/agent not installed]
WARNING: FAILED to load library: /opt/oracle/extapi/64/asm/orcl/1/libasm.so
Errors in file /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/trace/kittu2_rbal_30137.trc:
ORA-15183: ASMLIB initialization error [driver/agent not installed]
SUCCESS: diskgroup kittu_VG was mounted
ERROR: failed to establish dependency between database kittu and diskgroup resource ora.kittu_VG.dg
Errors in file /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/trace/kittu2_ora_29990.trc (incident=40073):
ORA-00600: internal error code, arguments: [kfioTranslateIO03], [], [], [], [], [], [], [], [], [], [], []
Incident details in: /kittu/oracle/oracle_base/diag/rdbms/kittu/kittu2/incident/incdir_40073/kittu2_ora_29990_i40073.trc

kasarla01[kittu2]_oracle> cd $ORACLE_HOME/bin
kasarla01[kittu2]_oracle> ls -l oracle
-rwsr-x–x 1 oracle asmadmin 232497723 Feb 24 22:22 oracle
kasarla01[kittu2]_oracle> pbrun chmod 6751 oracle
kasarla01[kittu2]_oracle> ls -l oracle
-rwsr-s–x 1 oracle asmadmin 232497723 Feb 24 22:22 oracle
kasarla01[kittu2]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.3.0 Production on Wed Mar 6 03:49:04 2013

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

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 5177708544 bytes
Fixed Size 2237368 bytes
Variable Size 2785021000 bytes
Database Buffers 2382364672 bytes
Redo Buffers 8085504 bytes
Database mounted.
Database opened.
SQL>

TTS

CONVERT DATAFILES TO THE NEW PLATFORM

Start the database in READ ONLY mode
SQL> shutdown immediate;
SQL> startup mount;
SQL> alter database open read only;

VERIFY THE DATABASE IS READY FOR MIGRATION

To ensure the database is ready for migration, run the DBMS_TDB.CHECK_DB function to verify that the database can be migrated to the target platform and that the database is in the proper state to be migrated. Any condition reported by CHECK_DB must be resolved before TDB can proceed.
e.g.
SQL> set serveroutput on
SQL> declare
retcode boolean;
begin
retcode := dbms_tdb.check_db(‘Linux x86 64-bit’,dbms_tdb.skip_none);
end;
/

PL/SQL procedure successfully completed.

SQL>

RUN THE RMAN CONVERT DATABASE COMMAND

Target System Conversion
When performing a target system conversion, RMAN creates an RMAN script to be used on the target system to convert all data files.

RMAN> connect target /
RMAN> convert database on target platform
convert script ‘/kittu2/scripts/convert_kittu2.rman’
transport script ‘/kittu2/scripts/transport_kittu2.sql’
new database ‘kittu2’
format ‘/kasarla2/copy01/oracle/kittu2_tdb/kittu2%U’
db_file_name_convert ‘/kittu/backup/oracle/kittu/tdb’,’+kittu2DB_VG/kittu2/DATAFILE’;

Note: Check directories referenced above exist. For this test case, db_file_name_convert are in target system.The CONVERT DATABASE command in the example creates a convert script named convert_mydb.rman, a transport script named transport_mydb.sql, and a PFILE named init_mydb.ora.

MIGRATE TO THE TARGET SYSTEM
MIGRATE THE DATAFILES TO THE TARGET SYSTEM
CHECK THAT FOLLOWING DIRECTORIES EXIST IN THE TARGET SYSTEM:

kasarla1[kittu1]_oracle> pwd
/kittu/backup/oracle/kittu
kasarla1[kittu1]_oracle> ls
aws logs patches pfiles scripts tdb

MOVE NECESSARY FILES TO TARGET SYSTEM

• PFILE initialization file—Place these files where the database initialization files are located (for example: /kasarla2/copy01/oracle/kittu_tdb).
kasarla1[kittu1]_oracle> pwd
/kittu/backup/oracle/kittu/pfiles
kasarla1[kittu1]_oracle> scp oracle@kasarla2:/kasarla2/copy01/oracle/kittu_tdb/init_kittu*.ora .

Ignore the initialization parameters that pertain to the native compilation of PL/SQL code. You will be instructed to add them later, if necessary.
• TRANSPORT AND CONVERT SQL SCRIPT

kasarla1[kittu1]_oracle> pwd
/kittu/backup/oracle/kittu/scripts
kasarla1[kittu1]_oracle> scp oracle@kasarla2:/kittu/scripts/transport_kittu.sql .
kasarla1[kittu1]_oracle> scp oracle@kasarla2:/kittu/scripts/convert_kittu.rman .

•DATATAFILES

kasarla1[kittu1]_oracle> pwd
/kittu/backup/oracle/kittu/tdb
kasarla1[kittu1]_oracle> scp oracle@kasarla2:/kasarla2/kittudb1/oracle/kittu/data/*.dbf .

COMPLETE THE MIGRATION

Review and Edit the PFILE, transportable and convert SQL scripts.
For all migrations, the PFILE created on the source system and transferred to the target system must be reviewed to ensure that directory paths and file locations are accurate for the target system.

Files needed for conversion and transportation can be found under /kittu/backup/oracle/kittu/scripts (servers kasarla1 or cincisdbd66). See appendix for the details
Using asmcmd command (as grid), make sure the following directories exist in ASM
ASMCMD> pwd
+kittuDB_VG/kittu
ASMCMD> ls
CONTROL/
CONTROLFILE/
CTF/
DATAFILE/
ONLINELOG/
PARAMETERFILE/
SPFILE/
TEMPFILE/
ASMCMD>
Target System Conversion Only –Review and Run the Convert RMAN Script
When performing a target system conversion, the data files are moved to the target system in the source system format. Review the convert RMAN script to ensure the file locations are accurate.

RMAN> connect target /
RMAN> @convert_kittu.rman
RMAN> shutdown

Review and Run the Transport SQL Script For this case, we will run it in few steps:
A) DATA CONVERSION

SQL> @transport_kittu_s1.sql
You can ignore the errors for temporary tablespace creation. They will be created in a step later. Database should have been stopped.

B) ADD DATAFILES TO THE TEMPORARY TABLESPACE

% sqlplus / as sysdba
STARTUP PFILE=’/kittu/oracle/kittudb/11.2.0.2/dbs/initkittu.ora’
ALTER TABLESPACE TEMP_A ADD TEMPFILE ‘+kittuDB_VG/kittu/DATAFILE/temp_a01.dbf’ SIZE 2000M AUTOEXTEND OFF;
ALTER TABLESPACE TEMP_A ADD TEMPFILE ‘+kittuDB_VG/kittu/DATAFILE/temp_a02.dbf’ SIZE 2000M AUTOEXTEND OFF;
ALTER TABLESPACE TEMP_A ADD TEMPFILE ‘+kittuDB_VG/kittu/DATAFILE/temp_a03.dbf’ SIZE 2000M AUTOEXTEND OFF;
ALTER TABLESPACE TEMP_A ADD TEMPFILE ‘+kittuDB_VG/kittu/DATAFILE/temp_a04.dbf’ SIZE 2000M AUTOEXTEND OFF;
ALTER TABLESPACE TEMP_A ADD TEMPFILE ‘+kittuDB_VG/kittu/DATAFILE/temp_a05.dbf’ SIZE 2000M AUTOEXTEND OFF;
ALTER TABLESPACE TEMP_A ADD TEMPFILE ‘+kittuDB_VG/kittu/DATAFILE/temp_a06.dbf’ SIZE 2000M AUTOEXTEND OFF;
ALTER TABLESPACE TEMP_A ADD TEMPFILE ‘+kittuDB_VG/kittu/DATAFILE/temp_a07.dbf’ SIZE 2000M AUTOEXTEND OFF;
ALTER TABLESPACE TEMP_B ADD TEMPFILE ‘+kittuDB_VG/kittu/DATAFILE/temp_b01.dbf’ SIZE 2000M AUTOEXTEND OFF;
ALTER TABLESPACE TEMP_B ADD TEMPFILE ‘+kittuDB_VG/kittu/DATAFILE/temp_b02.dbf’ SIZE 2000M AUTOEXTEND OFF;
ALTER TABLESPACE TEMP_B ADD TEMPFILE ‘+kittuDB_VG/kittu/DATAFILE/temp_b03.dbf’ SIZE 2000M AUTOEXTEND OFF;
ALTER TABLESPACE TEMP_B ADD TEMPFILE ‘+kittuDB_VG/kittu/DATAFILE/temp_b04.dbf’ SIZE 2000M AUTOEXTEND OFF;

SHUTDOWN IMMEDIATE

C) INVALIDATE OBJECTS

/* perform this section in case source and target database servers have different bit version */
SQL> SPOOL utlirp.log
SQL> STARTUP UPGRADE PFILE=’/kittu/oracle/kittudb/11.2.0.2/dbs/initkittu.ora’
SQL> @/rdbms/admin/utlirp.sql
SPOOL OFF

D) COMPILE INVALID OBJECTS

/* perform this section in case source and target database servers have different bit version */
% sqlplus / as sysdba
SQL>SPOOL utlrp.log
SQL>STARTUP PFILE=’/kittu/oracle/kittudb/11.2.0.2/dbs/initkittu.ora’
SQL>@@ ?/rdbms/admin/utlrp.sql
SQL>SPOOL OFF
Once the transport script completes, review the output for errors.
Note:Your session could be disconnected during utlrp execution. Try to re-execute it for few times

TTS FOR TABLESPACE

TTS FOR TABLESPACE
Tabelspaces that we are going to transport ‘SCDATA’,’SCINDEX’,’SCLOB’ from linux 64 bit to solaris 64 bit .
tablespace which we intend to do Transport shd not contain rollback/undo/SYSTEM/syaux segments
check for Violations

SQL> SELECT d.PLATFORM_NAME, ENDIAN_FORMAT FROM V$TRANSPORTABLE_PLATFORM tp, V$DATABASE d WHERE tp.PLATFORM_NAME = d.PLATFORM_NAME;

PLATFORM_NAME ENDIAN_FORMAT
———————————— ————–
Linux x86 64-bit Little

SQL> SELECT d.PLATFORM_NAME, ENDIAN_FORMAT FROM V$TRANSPORTABLE_PLATFORM tp, V$DATABASE d WHERE tp.PLATFORM_NAME = d.PLATFORM_NAME;

PLATFORM_NAME ENDIAN_FORMAT
——————————- ——————
Solaris[tm] OE (64-bit) Big

SQL> EXEC DBMS_TTS.TRANSPORT_SET_CHECK(ts_list => ‘SCDATA,SCINDEX,SCLOB’, incl_constraints => TRUE);

PL/SQL procedure successfully completed.

SQL> select * from transport_set_violations;

no rows selected

expdp directory=data_mar dumpfile=TTS_3_TS%U.dmp logfile=TTS_3.log TRANSPORT_TABLESPACES=SCDATA,SCINDEX,SCLOB TRANSPORT_FULL_CHECK=y parallel=3 version=

Export: Release 11.2.0.2.0 – Production on Thu Sep 13 03:56:46 2012

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

Username: / as sysdba

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39047: Jobs of type TRANSPORTABLE cannot use multiple execution streams.

expdp directory=data_mar dumpfile=TTS_3_TS%U.dmp logfile=TTS_3.log TRANSPORT_TABLESPACES=SCDATA,SCINDEX,SCLOB TRANSPORT_FULL_CHECK=y

Export: Release 11.2.0.2.0 – Production on Thu Sep 13 03:58:17 2012

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

Username: / as sysdba

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting “SYS”.”SYS_EXPORT_TRANSPORTABLE_01″: /******** AS SYSDBA directory=data_mar dumpfile=TTS_3_TS%U.dmp logfile=TTS_3.log TRANSPORT_TABLESPACES=SCDATA,SCINDEX,SCLOB TRANSPORT_FULL_CHECK=y
ORA-39123: Data Pump transportable tablespace job aborted
ORA-39185: The transportable tablespace failure list is

ORA-29335: tablespace ‘SCDATA’ is not read only
ORA-29335: tablespace ‘SCINDEX’ is not read only
ORA-29335: tablespace ‘SCLOB’ is not read only
Job “SYS”.”SYS_EXPORT_TRANSPORTABLE_01″ stopped due to fatal error at 03:58:25

failed due to TS were not read only,

SQL> alter tablespace SCDATA read only;

Tablespace altered.

SQL> alter tablespace SCINDEX read only;

Tablespace altered.

SQL> alter tablespace SCLOB read only;

Tablespace altered.

expdp directory=data_mar dumpfile=TTS_3_TS%U.dmp logfile=TTS_3.log TRANSPORT_TABLESPACES=SCDATA,SCINDEX,SCLOB TRANSPORT_FULL_CHECK=y

Export: Release 11.2.0.2.0 – Production on Thu Sep 13 22:16:13 2012

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

Username: / as sysdba

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting “SYS”.”SYS_EXPORT_TRANSPORTABLE_01″: /******** AS SYSDBA directory=data_mar dumpfile=TTS_3_TS%U.dmp logfile=TTS_3.log TRANSPORT_TABLESPACES=SCDATA,SCINDEX,SCLOB TRANSPORT_FULL_CHECK=y
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/INDEX
Processing object type TRANSPORTABLE_EXPORT/CONSTRAINT/CONSTRAINT
Processing object type TRANSPORTABLE_EXPORT/INDEX_STATISTICS
Processing object type TRANSPORTABLE_EXPORT/COMMENT
Processing object type TRANSPORTABLE_EXPORT/TABLE_STATISTICS
Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
Master table “SYS”.”SYS_EXPORT_TRANSPORTABLE_01″ successfully loaded/unloaded
******************************************************************************
Dump file set for SYS.SYS_EXPORT_TRANSPORTABLE_01 is:
/d735/backup/oracle/tts/TTS_3_TS01.dmp
******************************************************************************
Datafiles required for transportable tablespace SCDATA:
/d735/data01/oracle/kittu/data/scdata_01.dbf
Datafiles required for transportable tablespace SCINDEX:
/d735/data01/oracle/kittu/data/scindex_01.dbf
Datafiles required for transportable tablespace SCLOB:
/d735/data01/oracle/kittu/data/sclob_01.dbf
Job “SYS”.”SYS_EXPORT_TRANSPORTABLE_01″ successfully completed at 22:18:35

RMAN> CONVERT TABLESPACE SCDATA,SCINDEX,SCLOB TO PLATFORM ‘Solaris[tm] OE (64-bit)’ FORMAT ‘/d735/backup/oracle/tts/GED_DEV_%U’;

Starting conversion at source at 13-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=67 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=80 device type=DISK
channel ORA_DISK_1: starting datafile conversion
input datafile file number=00006 name=/d735/data01/oracle/kittu/data/scdata_01.dbf
channel ORA_DISK_2: starting datafile conversion
input datafile file number=00007 name=/d735/data01/oracle/kittu/data/scindex_01.dbf
converted datafile=/d735/backup/oracle/tts/GED_DEV_data_D-GEDPD_I-2351484326_TS-SCINDEX_FNO-7_80nl4khm
channel ORA_DISK_2: datafile conversion complete, elapsed time: 00:02:05
channel ORA_DISK_2: starting datafile conversion
input datafile file number=00008 name=/d735/data01/oracle/kittu/data/sclob_01.dbf
converted datafile=/d735/backup/oracle/tts/GED_DEV_data_D-GEDPD_I-2351484326_TS-SCLOB_FNO-8_81nl4klj
channel ORA_DISK_2: datafile conversion complete, elapsed time: 00:00:55
converted datafile=/d735/backup/oracle/tts/GED_DEV_data_D-GEDPD_I-2351484326_TS-SCDATA_FNO-6_7vnl4khm
channel ORA_DISK_1: datafile conversion complete, elapsed time: 00:03:10
Finished conversion at source at 13-SEP-12
RMAN> exit

scp to target ..

Create the Owner of the segemnts for the TS in target DB

SQL> create user “SCPROD” identified by xxxx;

User created.

SQL> grant connect,resource,dba to “SCPROD”;

Grant succeeded.

impdp directory=data_mar dumpfile=TTS_3_TS01.dmp logfile=imp_tts.log parfile=imp_tts.par

Import: Release 11.2.0.2.0 – Production on Fri Sep 14 01:09:06 2012

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

Username: / as sysdba

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table “SYS”.”SYS_IMPORT_TRANSPORTABLE_01″ successfully loaded/unloaded
Starting “SYS”.”SYS_IMPORT_TRANSPORTABLE_01″: /******** AS SYSDBA directory=data_mar dumpfile=TTS_3_TS01.dmp logfile=imp_tts.log parfile=imp_tts.par
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/INDEX
Processing object type TRANSPORTABLE_EXPORT/CONSTRAINT/CONSTRAINT
Processing object type TRANSPORTABLE_EXPORT/INDEX_STATISTICS
Processing object type TRANSPORTABLE_EXPORT/COMMENT
Processing object type TRANSPORTABLE_EXPORT/TABLE_STATISTICS
Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
Job “SYS”.”SYS_IMPORT_TRANSPORTABLE_01″ successfully completed at 01:16:33

hostname[oracle]_kittu> cat imp_tts.par

TRANSPORT_DATAFILES=/hostname/u04/oracle/ge_qssar/TTS_DATA/GED_DEV_data_D-GEDPD_I-2351484326_TS-SCLOB_FNO-8_81nl4klj,/cmfalgaqssdbs1/u04/oracle/ge_qssar/TTS_DATA/GED_DEV_data_D-GEDPD_I-2351484326_TS-SCINDEX_FNO-7_80nl4khm,/cmfalgaqssdbs1/u04/oracle/ge_qssar/TTS_DATA/GED_DEV_data_D-GEDPD_I-2351484326_TS-SCDATA_FNO-6_7vnl4khm

catalog database creation

CREATE DATABASE SCRIPT @CreateDB.sql

SET VERIFY OFF
connect “SYS”/”&&sysPassword” as SYSDBA
set echo on
spool /u01/oracle_base/admin/devdb/scripts/CreateDB.log append
startup nomount pfile=”/u01/oracle_base/admin/devdb/scripts/init.ora”;
CREATE DATABASE “devdb”
MAXINSTANCES 8
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
DATAFILE ‘/u01/oracle_base/data/devdb/system01.dbf’ SIZE 700M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE ‘/u01/oracle_base/data/devdb/sysaux01.dbf’ SIZE 700M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE ‘/u01/oracle_base/data/devdb/temp01.dbf’ SIZE 500M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
SMALLFILE UNDO TABLESPACE “UNDOTBS1” DATAFILE ‘/u01/oracle_base/data/devdb/undotbs01.dbf’ SIZE 500M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
CHARACTER SET AL32UTF8
NATIONAL CHARACTER SET AL16UTF16
LOGFILE GROUP 1 (‘/u01/oracle_base/redo/devdb/redo01.log’) SIZE 500M,
GROUP 2 (‘/u01/oracle_base/redo/devdb/redo02.log’) SIZE 500M,
GROUP 3 (‘/u01/oracle_base/redo/devdb/redo03.log’) SIZE 500M
USER SYS IDENTIFIED BY “&&sysPassword” USER SYSTEM IDENTIFIED BY “&&systemPassword”;
spool off

Post DATABASE SCRIPT @postDBCreation.sql

SET VERIFY OFF
connect “SYS”/”&&sysPassword” as SYSDBA
set echo on
spool /u01/oracle_base/admin/devdb/scripts/postDBCreation.log append
@/u01/devdbdb/11.2.0.2/rdbms/admin/catbundle.sql psu apply;
select ‘utl_recomp_begin: ‘ || to_char(sysdate, ‘HH:MI:SS’) from dual;
execute utl_recomp.recomp_serial();
select ‘utl_recomp_end: ‘ || to_char(sysdate, ‘HH:MI:SS’) from dual;
shutdown immediate;
connect “SYS”/”&&sysPassword” as SYSDBA
startup mount pfile=”/u01/oracle_base/admin/devdb/scripts/init.ora”;
alter database archivelog;
alter database open;
connect “SYS”/”&&sysPassword” as SYSDBA
set echo on
create spfile=’/u01/devdbdb/11.2.0.2/dbs/spfiledevdb.ora’ FROM pfile=’/u01/oracle_base/admin/devdb/scripts/init.ora’;
shutdown immediate;
host /u01/devdbdb/11.2.0.2/bin/srvctl enable database -d devdb;
host /u01/devdbdb/11.2.0.2/bin/srvctl start database -d devdb;
connect “SYS”/”&&sysPassword” as SYSDBA
spool off

hostname[devdb]_oracle> sqlplus ‘/as sysdba’

SQL*Plus: Release 11.2.0.2.0 Production on Wed Sep 12 03:28:30 2012

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> CREATE TABLESPACE RECOVERY_CATALOG DATAFILE ‘/u01/oracle_base/oradata/devdb/rcatdev01.dbf’ SIZE 2048M;

Tablespace created.

SQL> CREATE USER RCATDEV IDENTIFIED BY password DEFAULT TABLESPACE RECOVERY_CATALOG TEMPORARY TABLESPACE temp QUOTA UNLIMITED ON RECOVERY_CATALOG;

User created.

SQL> GRANT CONNECT,resource,RECOVERY_CATALOG_OWNER TO RCATDEV;

Grant succeeded.

SQL> exit

hostname[devdb]_oracle> rman catalog RCATDEV/password@devdb

Recovery Manager: Release 11.2.0.2.0 – Production on Wed Sep 12 04:29:51 2012

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

connected to recovery catalog database

RMAN> CREATE CATALOG;

recovery catalog created

RMAN>

hostname[kittu1]_oracle> rman target / catalog RCATDEV/password@devdb

Recovery Manager: Release 11.2.0.2.0 – Production on Wed Sep 12 04:34:56 2012

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

connected to target database: KITTU (DBID=3879169925)
connected to recovery catalog database

RMAN> register database;

database registered in recovery catalog
starting full resync of recovery catalog
full resync complete

RMAN> show all;

RMAN configuration parameters for database with db_unique_name KITTU are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 35 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘/kittu/backup/oracle/kittu/oracle/kittu1/control/%F’;
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 4 G FORMAT ‘/kittu/backup/oracle/kittu/oracle/kittu1/full/%U’;
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 ‘/kittu/backup/oracle/kittu/snapshot/snapcf_kittu.f’;

RMAN>

DUPLICATE SKIP TABLESPACE

SQL> startup nomount

ORACLE instance started.
Total System Global Area 2835349504 bytes
Fixed Size 2086672 bytes
Variable Size 1124075760 bytes
Database Buffers 1694498816 bytes
Redo Buffers 14688256 bytes
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

hostname005[oracle]_destdb> rman target=sys/PASSWD@PROD AUXILIARY /

Recovery Manager: Release 10.2.0.4.0 – Production on Mon Feb 27 18:52:11 2012

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

connected to target database: QCAP (DBID=1192038527)
connected to auxiliary database: DESTDB (not mounted)

RMAN> connect catalog RCATLOG/passwd@rcat
connected to recovery catalog database

RMAN> run
2> {
3> set until time “to_date(’23-FEB-201216:00:00′,’dd-mm-yyyyhh24:mi:ss’)”;
4> allocate auxiliary channel ch1 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=nbserver,NB_ORA_CLIENT=nbclint)’;
5> allocate auxiliary channel ch2 type ‘sbt_tape’ parms ‘ENV=(NB_ORA_SERVER=nbserver,NB_ORA_CLIENT=nbclint)’;
6> duplicate target database to destdb
7> skip tablespace DATA_POC,DATA_POCP02;
8> }

executing command: SET until clause

allocated channel: ch1
channel ch1: sid=1090 devtype=SBT_TAPE
channel ch1: Veritas NetBackup for Oracle – Release 6.5 (2007111606)

allocated channel: ch2
channel ch2: sid=1089 devtype=SBT_TAPE
channel ch2: Veritas NetBackup for Oracle – Release 6.5 (2007111606)

Starting Duplicate Db at 27-FEB-12
Datafile 4 skipped by request
Datafile 8 skipped by request
Datafile 9 skipped by request
Datafile 11 skipped by request
Datafile 12 skipped by request
Datafile 15 skipped by request
Datafile 16 skipped by request
Datafile 17 skipped by request
Datafile 18 skipped by request
Datafile 19 skipped by request
Datafile 21 skipped by request
Datafile 22 skipped by request
Datafile 23 skipped by request
Datafile 24 skipped by request
Datafile 26 skipped by request
Datafile 27 skipped by request
Datafile 31 skipped by request
Datafile 34 skipped by request
Datafile 35 skipped by request
Datafile 36 skipped by request
Datafile 37 skipped by request
Datafile 38 skipped by request
Datafile 39 skipped by request
Datafile 40 skipped by request
Datafile 41 skipped by request
Datafile 42 skipped by request
Datafile 44 skipped by request
Datafile 47 skipped by request
Datafile 48 skipped by request
Datafile 49 skipped by request
Datafile 52 skipped by request

contents of Memory Script:
{
set until scn 10067192531205;
set newname for datafile 1 to
“/hostname005/u04/oracle/destdb/data/system01.dbf”;
set newname for datafile 2 to
“/hostname005/u04/oracle/destdb/data/undotbs01.dbf”;
set newname for datafile 3 to
“/hostname005/u04/oracle/destdb/data/tools01.dbf”;
set newname for datafile 5 to
“/hostname005/u04/oracle/destdb/data/USERS_01.dbf”;
set newname for datafile 6 to
“/hostname005/u04/oracle/destdb/data/DEF01_01.dbf”;
set newname for datafile 7 to
“/hostname005/u04/oracle/destdb/data/QUEST_01.dbf”;
set newname for datafile 10 to
“/hostname005/u04/oracle/destdb/data/turnkey_01.dbf”;
set newname for datafile 13 to
“/hostname005/u04/oracle/destdb/data/data_01.dbf”;
set newname for datafile 14 to
“/hostname005/u04/oracle/destdb/data/sysaux01.dbf”;
set newname for datafile 20 to
“/hostname005/u04/oracle/destdb/data/data_02.dbf”;
set newname for datafile 25 to
“/hostname005/u04/oracle/destdb/data/data_03.dbf”;
set newname for datafile 28 to
“/hostname005/u04/oracle/destdb/data/data_04.dbf”;
set newname for datafile 29 to
“/hostname005/u04/oracle/destdb/data/data_05.dbf”;
set newname for datafile 30 to
“/hostname005/u04/oracle/destdb/data/GAPCTBS01.dbf”;
set newname for datafile 32 to
“/hostname005/u04/oracle/destdb/data/data_06.dbf”;
set newname for datafile 33 to
“/hostname005/u04/oracle/destdb/data/data_07.dbf”;
set newname for datafile 43 to
“/hostname005/u04/oracle/destdb/data/undotbs02.dbf”;
set newname for datafile 45 to
“/hostname005/u04/oracle/destdb/data/data_08.dbf”;
set newname for datafile 46 to
“/hostname005/u04/oracle/destdb/data/data_09.dbf”;
set newname for datafile 50 to
“/hostname005/u04/oracle/destdb/data/data_10.dbf”;
set newname for datafile 51 to
“/hostname005/u04/oracle/destdb/data/data_11.dbf”;
set newname for datafile 53 to
“/hostname005/u04/oracle/destdb/data/sysaux02.dbf”;
restore
check readonly
clone database
skip tablespace DATA_POCP02,
DATA_POC ;
}
executing Memory Script

executing command: SET until clause

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting restore at 27-FEB-12

channel ch1: starting datafile backupset restore
channel ch1: specifying datafile(s) to restore from backup set
restoring datafile 00028 to /hostname005/u04/oracle/destdb/data/data_04.dbf
restoring datafile 00045 to /hostname005/u04/oracle/destdb/data/data_08.dbf
restoring datafile 00046 to /hostname005/u04/oracle/destdb/data/data_09.dbf
restoring datafile 00050 to /hostname005/u04/oracle/destdb/data/data_10.dbf
channel ch1: reading from backup piece QCAP_TAPECOPY_02222012_1_7497
channel ch2: starting datafile backupset restore
channel ch2: specifying datafile(s) to restore from backup set
restoring datafile 00033 to /hostname005/u04/oracle/destdb/data/data_07.dbf
channel ch2: reading from backup piece QCAP_TAPECOPY_02222012_1_7499
channel ch2: restored backup piece 1
piece handle=QCAP_TAPECOPY_02222012_1_7499 tag=QCAP_HOTINCR_0222_0110
channel ch2: restore complete, elapsed time: 00:06:15
channel ch2: starting datafile backupset restore
channel ch2: specifying datafile(s) to restore from backup set
restoring datafile 00002 to /hostname005/u04/oracle/destdb/data/undotbs01.dbf
restoring datafile 00020 to /hostname005/u04/oracle/destdb/data/data_02.dbf
restoring datafile 00043 to /hostname005/u04/oracle/destdb/data/undotbs02.dbf
restoring datafile 00051 to /hostname005/u04/oracle/destdb/data/data_11.dbf
channel ch2: reading from backup piece QCAP_TAPECOPY_02222012_1_7496
channel ch1: restored backup piece 1
piece handle=QCAP_TAPECOPY_02222012_1_7497 tag=QCAP_HOTINCR_0222_0110
channel ch1: restore complete, elapsed time: 00:10:10
channel ch1: starting datafile backupset restore
channel ch1: specifying datafile(s) to restore from backup set
restoring datafile 00005 to /hostname005/u04/oracle/destdb/data/USERS_01.dbf
restoring datafile 00007 to /hostname005/u04/oracle/destdb/data/QUEST_01.dbf
restoring datafile 00030 to /hostname005/u04/oracle/destdb/data/GAPCTBS01.dbf
restoring datafile 00032 to /hostname005/u04/oracle/destdb/data/data_06.dbf
channel ch1: reading from backup piece QCAP_TAPECOPY_02222012_1_7501
channel ch1: restored backup piece 1
piece handle=QCAP_TAPECOPY_02222012_1_7501 tag=QCAP_HOTINCR_0222_0110
channel ch1: restore complete, elapsed time: 00:05:45
channel ch1: starting datafile backupset restore
channel ch1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to /hostname005/u04/oracle/destdb/data/system01.dbf
restoring datafile 00003 to /hostname005/u04/oracle/destdb/data/tools01.dbf
restoring datafile 00006 to /hostname005/u04/oracle/destdb/data/DEF01_01.dbf
restoring datafile 00010 to /hostname005/u04/oracle/destdb/data/turnkey_01.dbf
restoring datafile 00013 to /hostname005/u04/oracle/destdb/data/data_01.dbf
restoring datafile 00014 to /hostname005/u04/oracle/destdb/data/sysaux01.dbf
restoring datafile 00053 to /hostname005/u04/oracle/destdb/data/sysaux02.dbf
channel ch1: reading from backup piece QCAP_TAPECOPY_02222012_1_7498
channel ch2: restored backup piece 1
piece handle=QCAP_TAPECOPY_02222012_1_7496 tag=QCAP_HOTINCR_0222_0110
channel ch2: restore complete, elapsed time: 00:13:15
channel ch2: starting datafile backupset restore
channel ch2: specifying datafile(s) to restore from backup set
restoring datafile 00025 to /hostname005/u04/oracle/destdb/data/data_03.dbf
restoring datafile 00029 to /hostname005/u04/oracle/destdb/data/data_05.dbf
channel ch2: reading from backup piece QCAP_TAPECOPY_02222012_1_7500
channel ch2: restored backup piece 1
piece handle=QCAP_TAPECOPY_02222012_1_7500 tag=QCAP_HOTINCR_0222_0110
channel ch2: restore complete, elapsed time: 00:06:55
channel ch1: restored backup piece 1
piece handle=QCAP_TAPECOPY_02222012_1_7498 tag=QCAP_HOTINCR_0222_0110
channel ch1: restore complete, elapsed time: 00:11:56
Finished restore at 27-FEB-12
sql statement: CREATE CONTROLFILE REUSE SET DATABASE “DESTDB” RESETLOGS ARCHIVELOG
MAXLOGFILES 50
MAXLOGMEMBERS 4
MAXDATAFILES 255
MAXINSTANCES 1
MAXLOGHISTORY 5842
LOGFILE
GROUP 1 ( ‘/hostname005/u04/oracle/destdb/log/PROD_redo01g1.log’, ‘/hostname005/u04/oracle/destdb/logPROD_redo02g1.log’ ) SIZE 256 M REUSE,
GROUP 2 ( ‘/hostname005/u04/oracle/destdb/log/PROD_redo01g2.log’, ‘/hostname005/u04/oracle/destdb/logPROD_redo02g2.log’ ) SIZE 256 M REUSE,
GROUP 3 ( ‘/hostname005/u04/oracle/destdb/log/PROD_redo01g3.log’, ‘/hostname005/u04/oracle/destdb/logPROD_redo02g3.log’ ) SIZE 256 M REUSE
DATAFILE
‘/hostname005/u04/oracle/destdb/data/system01.dbf’
CHARACTER SET UTF8

contents of Memory Script:
{
switch clone datafile all;
}
executing Memory Script

datafile 2 switched to datafile copy
input datafile copy recid=1 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/undotbs01.dbf
datafile 3 switched to datafile copy
input datafile copy recid=2 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/tools01.dbf
datafile 5 switched to datafile copy
input datafile copy recid=3 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/USERS_01.dbf
datafile 6 switched to datafile copy
input datafile copy recid=4 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/DEF01_01.dbf
datafile 7 switched to datafile copy
input datafile copy recid=5 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/QUEST_01.dbf
datafile 10 switched to datafile copy
input datafile copy recid=6 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/turnkey_01.dbf
datafile 13 switched to datafile copy
input datafile copy recid=7 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/data_01.dbf
datafile 14 switched to datafile copy
input datafile copy recid=8 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/sysaux01.dbf
datafile 20 switched to datafile copy
input datafile copy recid=9 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/data_02.dbf
datafile 25 switched to datafile copy
input datafile copy recid=10 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/data_03.dbf
datafile 28 switched to datafile copy
input datafile copy recid=11 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/data_04.dbf
datafile 29 switched to datafile copy
input datafile copy recid=12 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/data_05.dbf
datafile 30 switched to datafile copy
input datafile copy recid=13 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/GAPCTBS01.dbf
datafile 32 switched to datafile copy
input datafile copy recid=14 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/data_06.dbf
datafile 33 switched to datafile copy
input datafile copy recid=15 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/data_07.dbf
datafile 43 switched to datafile copy
input datafile copy recid=16 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/undotbs02.dbf
datafile 45 switched to datafile copy
input datafile copy recid=17 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/data_08.dbf
datafile 46 switched to datafile copy
input datafile copy recid=18 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/data_09.dbf
datafile 50 switched to datafile copy
input datafile copy recid=19 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/data_10.dbf
datafile 51 switched to datafile copy
input datafile copy recid=20 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/data_11.dbf
datafile 53 switched to datafile copy
input datafile copy recid=21 stamp=776373674 filename=/hostname005/u04/oracle/destdb/data/sysaux02.dbf

contents of Memory Script:
{
set until time “to_date(’23-FEB-201216:00:00′,’dd-mm-yyyyhh24:mi:ss’)”;
recover
clone database
delete archivelog
;
}
executing Memory Script

executing command: SET until clause

Starting recover at 27-FEB-12
datafile 4 not processed because file is offline
datafile 8 not processed because file is offline
datafile 9 not processed because file is offline
datafile 11 not processed because file is offline
datafile 12 not processed because file is offline
datafile 15 not processed because file is offline
datafile 16 not processed because file is offline
datafile 17 not processed because file is offline
datafile 18 not processed because file is offline
datafile 19 not processed because file is offline
datafile 21 not processed because file is offline
datafile 22 not processed because file is offline
datafile 23 not processed because file is offline
datafile 24 not processed because file is offline
datafile 26 not processed because file is offline
datafile 27 not processed because file is offline
datafile 31 not processed because file is offline
datafile 34 not processed because file is offline
datafile 35 not processed because file is offline
datafile 36 not processed because file is offline
datafile 37 not processed because file is offline
datafile 38 not processed because file is offline
datafile 39 not processed because file is offline
datafile 40 not processed because file is offline
datafile 41 not processed because file is offline
datafile 42 not processed because file is offline
datafile 44 not processed because file is offline
datafile 47 not processed because file is offline
datafile 48 not processed because file is offline
datafile 49 not processed because file is offline
datafile 52 not processed because file is offline
channel ch1: starting incremental datafile backupset restore
channel ch1: specifying datafile(s) to restore from backup set
destination for restore of datafile 00033: /hostname005/u04/oracle/destdb/data/data_07.dbf
channel ch1: reading from backup piece QCAP_TAPECOPY_02232012_1_7537
channel ch2: starting incremental datafile backupset restore
channel ch2: specifying datafile(s) to restore from backup set
destination for restore of datafile 00028: /hostname005/u04/oracle/destdb/data/data_04.dbf
destination for restore of datafile 00045: /hostname005/u04/oracle/destdb/data/data_08.dbf
destination for restore of datafile 00046: /hostname005/u04/oracle/destdb/data/data_09.dbf
destination for restore of datafile 00050: /hostname005/u04/oracle/destdb/data/data_10.dbf
channel ch2: reading from backup piece QCAP_TAPECOPY_02232012_1_7535
channel ch1: restored backup piece 1
piece handle=QCAP_TAPECOPY_02232012_1_7537 tag=QCAP_HOTINCR_0223_0110
channel ch1: restore complete, elapsed time: 00:00:55
channel ch1: starting incremental datafile backupset restore
channel ch1: specifying datafile(s) to restore from backup set
destination for restore of datafile 00025: /hostname005/u04/oracle/destdb/data/data_03.dbf
destination for restore of datafile 00029: /hostname005/u04/oracle/destdb/data/data_05.dbf
channel ch1: reading from backup piece QCAP_TAPECOPY_02232012_1_7538
channel ch2: restored backup piece 1
piece handle=QCAP_TAPECOPY_02232012_1_7535 tag=QCAP_HOTINCR_0223_0110
channel ch2: restore complete, elapsed time: 00:00:58
channel ch2: starting incremental datafile backupset restore
channel ch2: specifying datafile(s) to restore from backup set
destination for restore of datafile 00005: /hostname005/u04/oracle/destdb/data/USERS_01.dbf
destination for restore of datafile 00007: /hostname005/u04/oracle/destdb/data/QUEST_01.dbf
destination for restore of datafile 00030: /hostname005/u04/oracle/destdb/data/GAPCTBS01.dbf
destination for restore of datafile 00032: /hostname005/u04/oracle/destdb/data/data_06.dbf
channel ch2: reading from backup piece QCAP_TAPECOPY_02232012_1_7539
channel ch1: restored backup piece 1
piece handle=QCAP_TAPECOPY_02232012_1_7538 tag=QCAP_HOTINCR_0223_0110
channel ch1: restore complete, elapsed time: 00:00:48
channel ch2: restored backup piece 1
piece handle=QCAP_TAPECOPY_02232012_1_7539 tag=QCAP_HOTINCR_0223_0110
channel ch2: restore complete, elapsed time: 00:00:45
channel ch2: starting incremental datafile backupset restore
channel ch2: specifying datafile(s) to restore from backup set
destination for restore of datafile 00001: /hostname005/u04/oracle/destdb/data/system01.dbf
destination for restore of datafile 00003: /hostname005/u04/oracle/destdb/data/tools01.dbf
destination for restore of datafile 00006: /hostname005/u04/oracle/destdb/data/DEF01_01.dbf
destination for restore of datafile 00010: /hostname005/u04/oracle/destdb/data/turnkey_01.dbf
destination for restore of datafile 00013: /hostname005/u04/oracle/destdb/data/data_01.dbf
destination for restore of datafile 00014: /hostname005/u04/oracle/destdb/data/sysaux01.dbf
destination for restore of datafile 00053: /hostname005/u04/oracle/destdb/data/sysaux02.dbf
channel ch2: reading from backup piece QCAP_TAPECOPY_02232012_1_7536
channel ch1: starting incremental datafile backupset restore
channel ch1: specifying datafile(s) to restore from backup set
destination for restore of datafile 00002: /hostname005/u04/oracle/destdb/data/undotbs01.dbf
destination for restore of datafile 00020: /hostname005/u04/oracle/destdb/data/data_02.dbf
destination for restore of datafile 00043: /hostname005/u04/oracle/destdb/data/undotbs02.dbf
destination for restore of datafile 00051: /hostname005/u04/oracle/destdb/data/data_11.dbf
channel ch1: reading from backup piece QCAP_TAPECOPY_02232012_1_7534
channel ch2: restored backup piece 1
piece handle=QCAP_TAPECOPY_02232012_1_7536 tag=QCAP_HOTINCR_0223_0110
channel ch2: restore complete, elapsed time: 00:01:15
channel ch1: restored backup piece 1
piece handle=QCAP_TAPECOPY_02232012_1_7534 tag=QCAP_HOTINCR_0223_0110
channel ch1: restore complete, elapsed time: 00:01:50

starting media recovery

channel ch2: starting archive log restore to default destination
channel ch1: starting archive log restore to default destination
channel ch2: restoring archive log
archive log thread=1 sequence=1505
channel ch2: reading from backup piece QCAP_TAPECOPY_02242012_1_7565
channel ch1: restoring archive log
archive log thread=1 sequence=1503
channel ch1: reading from backup piece QCAP_TAPECOPY_02232012_1_7559
channel ch1: restored backup piece 1
piece handle=QCAP_TAPECOPY_02232012_1_7559 tag=QCAP_ARCH_0223_0110
channel ch1: restore complete, elapsed time: 00:00:45
archive log filename=/opt/oracle/product/10.2.0.4/dbs/archdestdb_1503_1_756662299.dbf thread=1 sequence=1503
channel clone_default: deleting archive log(s)
archive log filename=/opt/oracle/product/10.2.0.4/dbs/archdestdb_1503_1_756662299.dbf recid=2 stamp=776374009
channel ch2: restored backup piece 1
piece handle=QCAP_TAPECOPY_02242012_1_7565 tag=QCAP_ARCH_0223_0955
channel ch2: restore complete, elapsed time: 00:00:45
channel ch1: starting archive log restore to default destination
channel ch2: starting archive log restore to default destination
channel ch1: restoring archive log
archive log thread=1 sequence=1504
channel ch1: reading from backup piece QCAP_TAPECOPY_02242012_1_7564
channel ch2: restoring archive log
archive log thread=1 sequence=1506
channel ch2: reading from backup piece QCAP_TAPECOPY_02242012_1_7566
channel ch2: restored backup piece 1
piece handle=QCAP_TAPECOPY_02242012_1_7566 tag=QCAP_ARCH_0223_1255
channel ch2: restore complete, elapsed time: 00:00:55
channel ch2: starting archive log restore to default destination
channel ch2: restoring archive log
archive log thread=1 sequence=1507
channel ch2: reading from backup piece QCAP_TAPECOPY_02242012_1_7567
channel ch1: restored backup piece 1
piece handle=QCAP_TAPECOPY_02242012_1_7564 tag=QCAP_ARCH_0223_0955
channel ch1: restore complete, elapsed time: 00:01:10
archive log filename=/opt/oracle/product/10.2.0.4/dbs/archdestdb_1504_1_756662299.dbf thread=1 sequence=1504
channel clone_default: deleting archive log(s)
archive log filename=/opt/oracle/product/10.2.0.4/dbs/archdestdb_1504_1_756662299.dbf recid=4 stamp=776374076
archive log filename=/opt/oracle/product/10.2.0.4/dbs/archdestdb_1505_1_756662299.dbf thread=1 sequence=1505
channel clone_default: deleting archive log(s)
archive log filename=/opt/oracle/product/10.2.0.4/dbs/archdestdb_1505_1_756662299.dbf recid=1 stamp=776374009
archive log filename=/opt/oracle/product/10.2.0.4/dbs/archdestdb_1506_1_756662299.dbf thread=1 sequence=1506
channel clone_default: deleting archive log(s)
archive log filename=/opt/oracle/product/10.2.0.4/dbs/archdestdb_1506_1_756662299.dbf recid=3 stamp=776374059
channel ch2: restored backup piece 1
piece handle=QCAP_TAPECOPY_02242012_1_7567 tag=QCAP_ARCH_0223_1655
channel ch2: restore complete, elapsed time: 00:00:41
archive log filename=/opt/oracle/product/10.2.0.4/dbs/archdestdb_1507_1_756662299.dbf thread=1 sequence=1507
channel clone_default: deleting archive log(s)
archive log filename=/opt/oracle/product/10.2.0.4/dbs/archdestdb_1507_1_756662299.dbf recid=5 stamp=776374107
media recovery complete, elapsed time: 00:00:08
Finished recover at 27-FEB-12

contents of Memory Script:
{
shutdown clone;
startup clone nomount ;
}
executing Memory Script

database dismounted
Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area 2835349504 bytes

Fixed Size 2086672 bytes
Variable Size 1124075760 bytes
Database Buffers 1694498816 bytes
Redo Buffers 14688256 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE “DESTDB” RESETLOGS ARCHIVELOG
MAXLOGFILES 50
MAXLOGMEMBERS 4
MAXDATAFILES 255
MAXINSTANCES 1
MAXLOGHISTORY 5842
LOGFILE
GROUP 1 ( ‘/hostname005/u04/oracle/destdb/log/PROD_redo01g1.log’, ‘/hostname005/u04/oracle/destdb/logPROD_redo02g1.log’ ) SIZE 256 M REUSE,
GROUP 2 ( ‘/hostname005/u04/oracle/destdb/log/PROD_redo01g2.log’, ‘/hostname005/u04/oracle/destdb/logPROD_redo02g2.log’ ) SIZE 256 M REUSE,
GROUP 3 ( ‘/hostname005/u04/oracle/destdb/log/PROD_redo01g3.log’, ‘/hostname005/u04/oracle/destdb/logPROD_redo02g3.log’ ) SIZE 256 M REUSE
DATAFILE
‘/hostname005/u04/oracle/destdb/data/system01.dbf’
CHARACTER SET UTF8

contents of Memory Script:
{
set newname for tempfile 1 to
“/hostname005/u04/oracle/destdb/data/temp01_3.dbf”;
set newname for tempfile 2 to
“/hostname005/u04/oracle/destdb/data/temp01_2.dbf”;
set newname for tempfile 3 to
“/hostname005/u04/oracle/destdb/data/temp01_1.dbf”;
set newname for tempfile 4 to
“/hostname005/u04/oracle/destdb/data/temp02_3.dbf”;
set newname for tempfile 5 to
“/hostname005/u04/oracle/destdb/data/temp02_2.dbf”;
set newname for tempfile 6 to
“/hostname005/u04/oracle/destdb/data/temp02_1.dbf”;
switch clone tempfile all;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/undotbs01.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/tools01.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/USERS_01.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/DEF01_01.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/QUEST_01.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/turnkey_01.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/data_01.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/sysaux01.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/data_02.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/data_03.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/data_04.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/data_05.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/GAPCTBS01.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/data_06.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/data_07.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/undotbs02.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/data_08.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/data_09.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/data_10.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/data_11.dbf”;
catalog clone datafilecopy “/hostname005/u04/oracle/destdb/data/sysaux02.dbf”;
switch clone datafile all;
}
executing Memory Script

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

renamed temporary file 1 to /hostname005/u04/oracle/destdb/data/temp01_3.dbf in control file
renamed temporary file 2 to /hostname005/u04/oracle/destdb/data/temp01_2.dbf in control file
renamed temporary file 3 to /hostname005/u04/oracle/destdb/data/temp01_1.dbf in control file
renamed temporary file 4 to /hostname005/u04/oracle/destdb/data/temp02_3.dbf in control file
renamed temporary file 5 to /hostname005/u04/oracle/destdb/data/temp02_2.dbf in control file
renamed temporary file 6 to /hostname005/u04/oracle/destdb/data/temp02_1.dbf in control file

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/undotbs01.dbf recid=1 stamp=776374144

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/tools01.dbf recid=2 stamp=776374144

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/USERS_01.dbf recid=3 stamp=776374144

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/DEF01_01.dbf recid=4 stamp=776374144

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/QUEST_01.dbf recid=5 stamp=776374144

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/turnkey_01.dbf recid=6 stamp=776374144

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/data_01.dbf recid=7 stamp=776374144

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/sysaux01.dbf recid=8 stamp=776374144

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/data_02.dbf recid=9 stamp=776374144

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/data_03.dbf recid=10 stamp=776374145

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/data_04.dbf recid=11 stamp=776374145

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/data_05.dbf recid=12 stamp=776374145

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/GAPCTBS01.dbf recid=13 stamp=776374145

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/data_06.dbf recid=14 stamp=776374145

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/data_07.dbf recid=15 stamp=776374145

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/undotbs02.dbf recid=16 stamp=776374145

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/data_08.dbf recid=17 stamp=776374145

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/data_09.dbf recid=18 stamp=776374146

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/data_10.dbf recid=19 stamp=776374146

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/data_11.dbf recid=20 stamp=776374146

cataloged datafile copy
datafile copy filename=/hostname005/u04/oracle/destdb/data/sysaux02.dbf recid=21 stamp=776374146

datafile 2 switched to datafile copy
input datafile copy recid=1 stamp=776374144 filename=/hostname005/u04/oracle/destdb/data/undotbs01.dbf
datafile 3 switched to datafile copy
input datafile copy recid=2 stamp=776374144 filename=/hostname005/u04/oracle/destdb/data/tools01.dbf
datafile 5 switched to datafile copy
input datafile copy recid=3 stamp=776374144 filename=/hostname005/u04/oracle/destdb/data/USERS_01.dbf
datafile 6 switched to datafile copy
input datafile copy recid=4 stamp=776374144 filename=/hostname005/u04/oracle/destdb/data/DEF01_01.dbf
datafile 7 switched to datafile copy
input datafile copy recid=5 stamp=776374144 filename=/hostname005/u04/oracle/destdb/data/QUEST_01.dbf
datafile 10 switched to datafile copy
input datafile copy recid=6 stamp=776374144 filename=/hostname005/u04/oracle/destdb/data/turnkey_01.dbf
datafile 13 switched to datafile copy
input datafile copy recid=7 stamp=776374144 filename=/hostname005/u04/oracle/destdb/data/data_01.dbf
datafile 14 switched to datafile copy
input datafile copy recid=8 stamp=776374144 filename=/hostname005/u04/oracle/destdb/data/sysaux01.dbf
datafile 20 switched to datafile copy
input datafile copy recid=9 stamp=776374144 filename=/hostname005/u04/oracle/destdb/data/data_02.dbf
datafile 25 switched to datafile copy
input datafile copy recid=10 stamp=776374145 filename=/hostname005/u04/oracle/destdb/data/data_03.dbf
datafile 28 switched to datafile copy
input datafile copy recid=11 stamp=776374145 filename=/hostname005/u04/oracle/destdb/data/data_04.dbf
datafile 29 switched to datafile copy
input datafile copy recid=12 stamp=776374145 filename=/hostname005/u04/oracle/destdb/data/data_05.dbf
datafile 30 switched to datafile copy
input datafile copy recid=13 stamp=776374145 filename=/hostname005/u04/oracle/destdb/data/GAPCTBS01.dbf
datafile 32 switched to datafile copy
input datafile copy recid=14 stamp=776374145 filename=/hostname005/u04/oracle/destdb/data/data_06.dbf
datafile 33 switched to datafile copy
input datafile copy recid=15 stamp=776374145 filename=/hostname005/u04/oracle/destdb/data/data_07.dbf
datafile 43 switched to datafile copy
input datafile copy recid=16 stamp=776374145 filename=/hostname005/u04/oracle/destdb/data/undotbs02.dbf
datafile 45 switched to datafile copy
input datafile copy recid=17 stamp=776374145 filename=/hostname005/u04/oracle/destdb/data/data_08.dbf
datafile 46 switched to datafile copy
input datafile copy recid=18 stamp=776374146 filename=/hostname005/u04/oracle/destdb/data/data_09.dbf
datafile 50 switched to datafile copy
input datafile copy recid=19 stamp=776374146 filename=/hostname005/u04/oracle/destdb/data/data_10.dbf
datafile 51 switched to datafile copy
input datafile copy recid=20 stamp=776374146 filename=/hostname005/u04/oracle/destdb/data/data_11.dbf
datafile 53 switched to datafile copy
input datafile copy recid=21 stamp=776374146 filename=/hostname005/u04/oracle/destdb/data/sysaux02.dbf

contents of Memory Script:
{
Alter clone database open resetlogs;
}
executing Memory Script

database opened

contents of Memory Script:
{
# drop offline and skipped tablespaces
sql clone “drop tablespace DATA_POCP02 including contents cascade constraints”;
# drop offline and skipped tablespaces
sql clone “drop tablespace DATA_POC including contents cascade constraints”;
}
executing Memory Script

sql statement: drop tablespace DATA_POCP02 including contents cascade constraints
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/27/2012 19:29:24
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of sql command on clone_default channel at 02/27/2012 19:29:24
RMAN-11003: failure during parse/execution of SQL statement: drop tablespace DATA_POCP02 including contents cascade constraints
ORA-29857: domain indexes and/or secondary objects exist in the tablespace

RMAN> exit

Recovery Manager complete.
you have mail in /var/spool/mail/oracle

hostname005[oracle]_destdb> sqlplus ‘/as sysdba’

SQL*Plus: Release 10.2.0.4.0 – Production on Mon Feb 27 19:29:43 2012
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select open_mode from v$database;

OPEN_MODE
———-
READ WRITE

SQL> select tablespace_name from dba_tablespaces;

TABLESPACE_NAME
——————————
SYSTEM
UNDOTS
TOOLS
DATA_POC
USERS
DEF01
QUEST
TEMP01
TEMP02
TURNKEY
QC_DATA
SYSAUX
DATA_POCP02
GAPCTBS

14 rows selected.

SQL> select status from dba_tablespaces;

STATUS
———
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE

14 rows selected.