Anda di halaman 1dari 161

ORACLE APPS DBA This blog is written to share and help doer's.

Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

TEST workflow mailer after clone Fnd_User ,


31st January 2017
per_all_people_f and wf_local_roles

Set serveroutput on

UPDATE fnd_svc_comp_param_vals fscpv


SET fscpv.parameter_value = 'dummyemail@test.com'
WHERE fscpv.parameter_id
IN (SELECT fscpt.parameter_id
FROM fnd_svc_comp_params_tl fscpt
WHERE fscpt.display_name = 'Test Address')
/
Commit
/

UPDATE per_all_people_f
SET email_address = 'dummy@test.com'
WHERE email_address IS NOT NULL;

UPDATE fnd_user
SET email_address = 'dummy@test.com'
WHERE user_name NOT IN
('ANONYMOUS',
'AUTOINSTALL',
'INITIAL SETUP',
'FEEDER SYSTEM',
'CONCURRENT MANAGER',
'STANDALONE BATCH PROCESS')
AND email_address IS NOT NULL;
/
Commit:
/

UPDATE jtf_rs_resource_extns
SET source_email = 'dummy@test.com'
WHERE source_email IS NOT NULL;

update wf_local_roles
set notification_preference='QUERY'
where orig_system in ('FND_USR','PER')
and name NOT IN ('Xuser1','Xuse2')

update fnd_user_preferences
set preference_value='QUERY'
where preference_name='MAILTYPE' and module_name='WF'
and user_name not in ('-WF_DEFAULT-',
'Xuser1','Xuser2')

update wf_local_roles
set notification_preference='QUERY'
where orig_system in ('FND_USR','PER');

update fnd_user_preferences
set preference_value='MAILHTML'
where preference_name='MAILTYPE' and module_name='WF'
and user_name <> '-WF_DEFAULT-';
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA
UPDATE wf_local_roles
This blog is written to share and help doer's.Please sh… search

SET email_address = 'dummy@test.com'


Classic Flipcard Magazine
WHERE Mosaic ISSidebar
email_address Snapshot Timeslide
NOT NULL
AND (ORIG_SYSTEM = 'PER' OR ORIG_SYSTEM = 'PER_ROLE');

/
Commit:
/

update WF_NOTIFICATIONS set mail_status = 'SENT' where mail_status in('MAIL',null);

update wf_notifications
set mail_status = 'SENT'
where end_date is not null
and status = 'CLOSED'
and MAIL_STATUS = 'MAIL';

Posted 31st January 2017 by Unknown

3 View comments

6th April 2016 Workflow Notification Mailer and scripts


WORKFLOW
Purge WF_NOTIFICATION_OUT queue
cd $FND_TOP/patch/115/sql
sqlplus apps/ @wfntfqup.sql APPS (appspwd) APPLSYS
e.g sqlplus apps/apps @wfntfqup.sql APPS apps APPLSYS

This purges the WF_NOTIFICATION_OUT queue and rebuilds it with data currently in the WF_NOTIFICATIONS table.
This is what purges all notifications
waiting in the queue to be sent. It will then populate the queue with the current data in the WF_NOTIFICATIONS table.
Only notifications with mail_status = 'MAIL' and status = 'OPEN' will be re-enqueued in the WF_NOTIFICATION_OUT
queue and sent by the mailer.

Workflow TEST Address Update


sqlplus apps/ @$FND_TOP/sql/afsvcpup.sql

Enter Component Id: 10006

Enter the Comp Param Id to update : 10093

Enter a value for the parameter : WFdevUsers@abc.com

Setup Test address/override address for WF


Below is the script to update the override address from backend. You do not need the verification code to set the override
address using the below script

update fnd_svc_comp_param_vals
set parameter_value = '&EnterEmailID'
where parameter_id =
( select parameter_id
from fnd_svc_comp_params_tl
where display_name = 'Test Address'
);

Workflow From Address Update :


sqlplus apps/ @$FND_TOP/sql/afsvcpup.sql

Enter Component Id: 10006

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Enter the Comp Param Id to update : 10065

ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
Enter a value for the parameter : Lenovo DEV Workflow Mailer"
search

Classic Flipcard Magazineaddress:


set overriding Mosaic Sidebar Snapshot Timeslide
update FND_SVC_COMP_PARAM_VALS
set parameter_value = 'Configuration.Workflows@abc.com'
where PARAMETER_ID = 10057;

Scipt to see workflow configuration


SQL> select p.parameter_id,p.parameter_name,v.parameter_value value
from fnd_svc_comp_param_vals_v v,
fnd_svc_comp_params_b p,
fnd_svc_components c
where c.component_type = 'WF_MAILER'
and v.component_id = c.component_id
and v.parameter_id = p.parameter_id
and p.parameter_name in
('OUTBOUND_SERVER', 'INBOUND_SERVER',
'ACCOUNT', 'FROM', 'NODENAME', 'REPLYTO','DISCARD' ,'PROCESS','INBOX')
order by p.parameter_name;

SQL to monitor (check status) of Workflow Notification Mailer (Java)

SELECT COMPONENT_STATUS from APPS.FND_SVC_COMPONENTS where COMPONENT_ID=10006;

sqlplus -s system/${PASSWD}@${ORACLE_SID} << SQLEND >${script}/apps/wf_status.out


set linesize 90
col COMPONENT_NAME format a50
col COMPONENT_status format a20
spool ${script}/apps/wf_status.lst
select COMPONENT_ID,COMPONENT_NAME,COMPONENT_STATUS from apps.fnd_svc_components
where COMPONENT_ID not in (10000,10001,10020,10021,10022) and COMPONENT_STATUS <> 'RUNNING';

select mail_status, count(*) from apps.wf_notifications


where status = 'OPEN'
and mail_status in ('MAIL','ERROR')
group by mail_status;
spool off"

To see error message for a workflow notification


SQL> select ERROR_MESSAGE from wf_item_activity_statuses_v WHERE NOTIFICATION_ID = 7377659;

Here are steps/events for Oracle Workflow Notification Outbound Processing(eMail from Oracle Applications Workflow to
Users)

1.When workflow Engine determines that a notification message must be sent, it raises an event in BES (Business Event
System) oracle.apps.wf.notifications.send
Event is raised with Notification ID (NID) as event key
2. There is seeded subscription to this Event
3. Event is placed on WF_DEFERRED agent
4.Event is dequeued from WF_DEFERRED and subscription is processed
5. Subscription places event message to WF_NOTIFICATION_OUT agent.
6.Notification Mailer dequeues message from WF_NOTIFICATION_OUT agent and
6.1convert XML representation of notification into MIME encoded message (Multi-purpose Internet Mail Extensions) and
6.2 Send message by SMTP (Simple Mail Transfer Protocol) to intended user (If Test Address/Override Address is set
then email is sent to Test Address

E-Mail Notification is sent if all below conditions are true


a) Notification status is OPEN or CANCELED and
b) Notification mail_status is MAIL or INVALID and
c) Recipient Role has a valid e-mail address and Notification Preference is in the format MAIL%
d) Workflow Deferred Agent Listener is running
e) Workflow Notification Mailer is running

To check a) & b) run below query


SELECT status, mail_status FROM wf_notifications WHERE notification_id = ‘&NID’;

mail_status >> SENT means mail has gone out of mailer to user

To check c) run below query


SELECT email_address, nvl(WF_PREF.get_pref(name, ‘MAILTYPE’),notification_preference)
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
FROM wf_roles
ORACLE APPS DBA
WHERE name = upper(’&recipient_role’);
This blog is written to share and help doer's.Please sh… search

To check d) & e) Use OAM (Oracle Application Manager)


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

Workflow version embedded in 11i


************************
Run following SQL from apps user ;
SQL>select TEXT from WF_RESOURCES where NAME='WF_VERSION';

You should see output like


TEXT
-----------------------
2.6.0
Which means you are on Workflow Version 2.6.0

You can also use script wfver.sql in FND_TOP/sql to find version of workflow in Apps.

To Configure Workflow Notification Mailer need below information

PARAMETER_NAME VALUE
------------------------------ ------------------------------
Inbound Server Name wfmailer.abc.com
Username wftst
Password oracle
Outbound Server Name wfmailer.abc.com
Reply-to Address wftst@abc.com

Taking a backup of the workflow configuration


cd $HOME/
sqlplus “/ as sysdba”
spool wf_mailer.log
set lines 130
set pages 200
col value format a30
select p.parameter_id,p.parameter_name,v.parameter_value value
from apps.fnd_svc_comp_param_vals_v v,
apps.fnd_svc_comp_params_b p,
apps.fnd_svc_components c
where c.component_type = 'WF_MAILER'
and v.component_id = c.component_id
and v.parameter_id = p.parameter_id
and p.parameter_name in
('OUTBOUND_SERVER', 'INBOUND_SERVER',
'ACCOUNT', 'FROM', 'NODENAME', 'REPLYTO','DISCARD' ,'PROCESS','INBOX')
order by p.parameter_name;

To schdule Gather schema stats and purge workflow runtime data

Login into application as sysadmin and schedule below Requests.


Gather Schema Statistics (ALL , 20% , degree 6 ) to run every SUN and WED
Workflow Background Process to run every 10 mts and Apply the interval as :From the completion of the prior run
Purge Obsolete Workflow Runtime data - Every week
Workflow Control Queue Cleanup - Every 12 hours

To update WF notification status


IMPORTANT STEP ! Connect to SQL*PLUS as APPS user and do the following steps
update applsys.wf_notifications
set status ='CLOSED', mail_status ='SENT', end_date ='01-JAN-01'
where mail_status='MAIL';
update wf_notifications set status=’CLOSED’;
commit;"
Select distinct status from wf_notification" this should return only one value CLOSED.
or simple do
update wf_notifications set status = 'CLOSED', mail_status = 'SENT';
commit;

Update workflow a/c pwd from backend


set define off
update APPLSYS.FND_SVC_COMP_PARAM_VALS set PARAMETER_VALUE=
'_@#0@##^90@#!4^86#!$^68$#9$4#@@$6!!!9#0@`$B9+}*0&9&@0&8#|'
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
where
ORACLE APPS DBA
PARAMETER_ID=
This blog is written to share and help doer's.Please
( select parameter_id from APPLSYS.FND_SVC_COMP_PARAMS_B where parameter_name =
sh… search

'INBOUND_PASSWORD');
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
To check WF mail status
select count(*), mail_status
from wf_notifications
where begin_date > sysdate - 1
group by mail_status;

There are 141 messages with status `MAIL¿, this status should remain very short and then progress to status `SENT¿.
: OAM Login > Site Map > Workflow > Service Components.
These same detail are also given in the output from script $FND_TOP/sql/wfver.sql

To check the WF status from backend

check the status of Agent Listeners:

set pagesize 400


set linesize 120
set pagesize 50
column COMPONENT_NAME format a45
column STARTUP_MODE format a15
column COMPONENT_STATUS format a15
select fsc.COMPONENT_NAME,fsc.STARTUP_MODE,fsc.COMPONENT_STATUS
from APPS.FND_CONCURRENT_QUEUES_VL fcq, fnd_svc_components fsc
where fsc.concurrent_queue_id = fcq.concurrent_queue_id(+)
order by COMPONENT_STATUS , STARTUP_MODE , COMPONENT_NAME;

Typical output from this

COMPONENT_NAME STARTUP_MODE COMPONENT_STATU


--------------------------------------------- --------------- ---------------
WF_JMS_IN Listener(M4U) AUTOMATIC RUNNING
Workflow Deferred Agent Listener AUTOMATIC RUNNING
Workflow Deferred Notification Agent Listener AUTOMATIC RUNNING
Workflow Error Agent Listener AUTOMATIC RUNNING
Workflow Inbound Notifications Agent Listener AUTOMATIC RUNNING
Workflow Java Deferred Agent Listener AUTOMATIC RUNNING
Workflow Java Error Agent Listener AUTOMATIC RUNNING
Workflow Notification Mailer AUTOMATIC RUNNING
ECX Inbound Agent Listener MANUAL STOPPED
ECX Transaction Agent Listener MANUAL STOPPED
Web Services IN Agent MANUAL STOPPED
Web Services OUT Agent MANUAL STOPPED
Workflow Inbound JMS Agent Listener MANUAL STOPPED

13 rows selected.

Steps to start/stop notification mailer

1.a Check workflow mailer service current status


sqlplus apps/

select running_processes
from fnd_concurrent_queues
where concurrent_queue_name = 'WFMLRSVC';

Number of running processes should be greater than 0

1.b Find current mailer status


sqlplus apps/

select component_status
from fnd_svc_components
where component_id =
(select component_id
from fnd_svc_components
where component_name = 'Workflow Notification Mailer');

Possible values:
RUNNING
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
STARTING
ORACLE APPS DBA
STOPPED_ERROR
DEACTIVATED_USER
This blog is written to share and help doer's.Please sh… search

DEACTIVATED_SYSTEM
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
2. Stop notification mailer
sqlplus apps/

declare
p_retcode number;
p_errbuf varchar2(100);
m_mailerid fnd_svc_components.component_id%TYPE;
begin
-- Find mailer Id
-----------------
select component_id
into m_mailerid
from fnd_svc_components
where component_name = 'Workflow Notification Mailer';
--------------
-- Stop Mailer
--------------
fnd_svc_component.stop_component(m_mailerid, p_retcode, p_errbuf);
commit;
end;
/

3. Start notification mailer


sqlplus apps/

declare
p_retcode number;
p_errbuf varchar2(100);
m_mailerid fnd_svc_components.component_id%TYPE;
begin
-- Find mailer Id
-----------------
select component_id
into m_mailerid
from fnd_svc_components
where component_name = 'Workflow Notification Mailer';
--------------
-- Start Mailer
--------------
fnd_svc_component.start_component(m_mailerid, p_retcode, p_errbuf);
commit;
end;
/

TO configure workflow
Workflow Mailer Notification settings.
Log on to OAM
Click on Workflow Administrator -> Business Event Local System
Change VIS.ABC.COM to PROD.ABC.COM

Click on Workflow Manager ->Notification Mailer -> Workflow Notification Mailer -> Edit
Edit outbound Email Account (SMTP) -> Server Name =Concurrent Tier
IMAP Server -> Server Name = xxx.xxx.x.xx
Username/password: wfvis/xxxxx :
Reply-To Address: wfvis@abc.com

Click on Advance -> Next->Next


Under General Tab
Mailer Node =WFVIS
Under IMAP: Enter server IP address, username and password of wfvis
Under Outbound Email Account
Outbound Server Name= concurrent tier
Click Next –>Next….Save and Apply

Workflow Version with Apps


Connect to Database as apps user
SQL> select TEXT Version from WF_RESOURCES where NAME = ‘WF_VERSION’;
Output like 2.6.0 means workflow version 2.6.0

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Workflow logfile location
ORACLE APPS DBA
$APPLCSF/$APPLLOG with filename like FNDCPGSC[pid].txt
This blog is written to share and help doer's.Please sh… search

After executing autoconfig make sure Workflow System Administrator is NOT set to SYSADMIN .
Classic Flipcard Magazine
Please set this toMosaic Sidebar
""Workflow Snapshot
Administrator Web Timeslide
(New)""
Following script will take care of this .

sqlplus apps/""pwd""
SQL> update wf_resources set text = 'FND_RESP|FND|FNDWF_ADMIN_WEB_NEW|STANDARD' where name =
'WF_ADMIN_ROLE';

1 row updated.

SQL> commit;

Commit complete.

or xml changes can be done link this.


$ grep -i s_wf_admin_role PROD_mdsxaorit.xml
username oa_var=""s_wf_admin_role"">FND_RESP|SYSADMIN|SYSTEM_ADMINISTRATOR|STANDARD

To set the Workflow Administrator from Sys Admin to Workflow Administrator


Navigate to Responsibility -- Workflow Administarator
then Administrator Workflow -- Administration

On top we will find Workflow Configuration :

Workflow System Administrator :: This value we need to change to Workflow Administrator

Or we can update from backend


Update wf_resources set text='FND_RESP|FND|FNDWF_ADMIN|STANDARD' where name = 'WF_ADMIN_ROLE';

Or can be set in xml,


grep -i s_wf_admin_role TRAIN2_vcosxaor09.xml username
oa_var=""s_wf_admin_role"">FND_RESP|FND|FNDWF_ADMIN|STANDARD

modify this profile option to have the value of an actual App Server
WF: Workflow Mailer Framework Web Agent : http://hostname.domainname:8000

Make sure following parameters are set for Workflow :


As system administrator –
Oracle Applications Manager
Workflow Manager

Inbound Server Name wfmailer.domain.com


Outbound Server Name wfmailer.domain.com
From The lenovo PROD Workflow Mailer
Reply-to Address wfvis@domain.com

Workflow smtp port 25 and imap port 143


[root@hostname]# telnet wfmailer 143

additonal notes

Steps to start/stop notification mailer


1. Check workflow mailer service current status

sqlplus apps/<apps password>


select running_processes
from apps.fnd_concurrent_queues
where concurrent_queue_name = 'WFMLRSVC';

Number of running processes should be greater than 0

2. Find current mailer status

sqlplus apps/<apps password>


select component_status
from apps.fnd_svc_components
where component_id =
(select component_id
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
from apps.fnd_svc_components
ORACLE APPS DBA where component_name = 'Workflow Notification Mailer');
This blog is written to share and help doer's.Please sh… search

Possible values:
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
RUNNING
STARTING
STOPPED_ERROR
DEACTIVATED_USER
DEACTIVATED_SYSTEM

2. Stop notification mailer


sqlplus apps/<apps password>
declare
p_retcode number;
p_errbuf varchar2(100);
m_mailerid fnd_svc_components.component_id%TYPE;
begin
-- Find mailer Id
-----------------
select component_id
into m_mailerid
from fnd_svc_components
where component_name = 'Workflow Notification Mailer';
--------------
-- Stop Mailer
--------------
fnd_svc_component.stop_component(m_mailerid, p_retcode, p_errbuf);
commit;
end;
/

3. Start notification mailer

sqlplus apps/<apps password>


declare
p_retcode number;
p_errbuf varchar2(100);
m_mailerid fnd_svc_components.component_id%TYPE;
begin
-- Find mailer Id
-----------------
select component_id
into m_mailerid
from fnd_svc_components
where component_name = 'Workflow Notification Mailer';
--------------
-- Start Mailer
--------------
fnd_svc_component.start_component(m_mailerid, p_retcode, p_errbuf);
commit;
end;
/

A workflow notification send event (notification email) can fail at several different points, so monitoring it using one
method usually is not going to give you a complete picture.Additionally, you have to keep in mind that the process is
dynamic, meaning that as transactions are created into the queues they are also mailed out; so a
count of data is at best only a snapshot of a particular moment in time.
1. Here is a more robust script for monitoring the wf_notifications table:
select message_type, mail_status, count(*) from wf_notifications
where status = 'OPEN'
GROUP BY MESSAGE_TYPE, MAIL_STATUS
messages in 'FAILED' status can be resent using the concurrent request 'resend failed workflow notificaitons'
messages which are OPEN but where mail_status is null have a missing email address for the recipient, but the
notification preference is 'send me mail'
2. Some messages like alerts don't get a record in wf_notifications table so you have to watch the
WF_NOTIFICATION_OUT queue.

select corr_id, retry_count, msg_state, count(*)


from applsys.aq$wf_notification_out
group by corr_id, msg_state, retry_count
order by count(*) desc;
Messages with a high retry count have been cycling through the queue and are not passed to smtp service.Messages
which are 'expired' can be rebuilt using the wfntfqup.sql

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
1.Please provide the below query output in excel sheet.
ORACLE APPS DBA
select * from fnd_nodes;
This blog is written to share and help doer's.Please sh… search
2.Please provide the screen shot of below profile option value.
WF: Workflow Mailer Framework Web Agent
Classic Flipcard
1. The Magazine
uploaded Mosaic Sidebar Snapshot Timeslide
file “ATGSuppJavaMailerSetup12_9392180_diag.txt” shows that the correct parameter was not used
when attempting to run. For instance “‘R-ex-hub01.internal.kfshrc.edu.sa’” was used for “Inbound mail server
(INBOUND_SERVER)” and on the other hand the file “wfmlrdbg23569786.html” shows the INBOUND_SERVER is
“appforms3.kfshrc.edu.sa”. For that reason the test failed and “Server {R-ex-hub01.internal.kfshrc.edu.sa} at port {143} is
not reachable” was generated.
Please do the following this.
a. Please un the following SQL to collect necessary info before executing “ATGSuppJavaMailerSetup12.sh”. The SQL
will collect all the info required to run the script except IMAP account password.
select p.parameter_id,
p.parameter_name,
v.parameter_value value
from fnd_svc_comp_param_vals_v v,
fnd_svc_comp_params_b p,
fnd_svc_components c
where c.component_type = ‘WF_MAILER’
and v.component_id = c.component_id
and v.parameter_id = p.parameter_id
and p.parameter_name in (‘OUTBOUND_SERVER’, ‘INBOUND_SERVER’,
‘ACCOUNT’, ‘FROM’, ‘NODENAME’, ‘REPLYTO’,'DISCARD’ ,’PROCESS’,'INBOX’)
b. Then run “ATGSuppJavaMailerSetup12.sh” per the steps from 748421.1.
3. Please upload the new output to help us collect the data to help us troubleshoot the issue.
4. Please also upload the Autoconfig log files
a. Database Tier Autoconfig log :
$ORACLE_HOME/appsutil/log/$CONTEXT_NAME/<MMDDHHMM>/adconfig.log
$ORACLE_HOME/appsutil/log/$CONTEXT_NAME/<MMDDHHMM>/NetServiceHandler.log
b. Application Tier Autoconfig log -
$INST_TOP/apps/$CONTEXT_NAME/admin/log/<MMDDHHMM>/adconfig.log
5. Restart the Workflow Mailer and Agent Listener services
a. From Self Service > Select “Workflow Manager” under “Oracle Applications Manager” > Click “Notification Mailers” >
Service Components (Service Components: <SID>) >
b. Click “Workflow Mailer Service” under “Container” Column.
e. From “Service Instances for Generic Service Component Container:<SID>”page, click “Pull Down” button from the
Start All/ Stop All.
f . Select Stop All > Go.
g. We conformed that for the Services to read Actual 0 Target 0 and Deactivated.
h. Restart the mailer services using the “Start All” button.
I. We run the following SQL to make sure service are stopped.
SELECT component_name, component_status, component_status_info
FROM fnd_svc_components_v
WHERE component_name like ‘Workflow%’;
6.However all the services are sill down (Stopped).
STATEMENT level logging is already enabled.
7.About to upload the log files from $APPLCSF/$APPLLOG/FNDCPGSC*.txt i.e. the log file for the Active process for
Workflow Mailer Service and Agent Listener services.
To retrieve the last 2 log files for Workflow Mailer and Agent Listener services, run the following command:
ls -lt $APPLCSF/$APPLLOG/FNDCPGSC*.txt
8. The issue started yesterday after running Autoconfig to correct Discoverer issue per Oracle Support.
I might request Autoconfig logs after reviewing the mailer log..
1. Please run the script $FND_TOP/sql/afsvcpup.sql, and edit Notification Mailer , and change the parameter Framework
URL Timeout from 30 to 120.
2. Use the same script to change mailer’s parameter Log Level to 1.
3. Set the profile option WF: Workflow Mailer Framework Web Agent to a physical web tier, using the syntax
http://WEBHOST:port
4. Bounce the mailer.
5. Please follow the navigation below:
a. Workflow Administrator web Applications Responsibility
b. Workflow Manager
c. Click on the Notification Mailers icon
d. Click on Workflow Notification Mailers link
e. Click on Test Mailer button
Enter the user name of the user with the problem, and verify if a test mail is received.
Then, please provide the output of the script wfmlrdbg.sql using the steps from note 1364300.1 for the id’s returned from
the following two queries:
select max(notification_id)
from wf_notifications
where message_type=’WFTESTS’
and message_name =’OAFWK_MSG’
. Then, provide the mailer log returned by the following query:
SELECT fcp.logfile_name
FROM fnd_concurrent_queues fcq, fnd_concurrent_processes fcp, fnd_lookups flkup
WHERE concurrent_queue_name in (‘WFMLRSVC’)
AND fcq.concurrent_queue_id = fcp.concurrent_queue_id
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
AND fcq.application_id = fcp.queue_application_id
ORACLE APPS DBA
AND flkup.lookup_code=fcp.process_status_code
This blog is written to share and help doer's.Please sh… search
AND lookup_type =’CP_PROCESS_STATUS_CODE’
AND meaning=’Active’
Classic Flipcard
PleaseMagazine Mosaic Sidebar
run the diagnostics from NoteSnapshot Timeslide
748421.1 Oracle Workflow ATG Support: R12 Java Mailer Setup Diagnostic Test
and upload its archive file.
How does workflow Notification Mailer IMAP (Inbound Processing) Works:
This is the inbound flow:
1. Approver sends email response which is directed to the value defined in Replyto address.
a. This address has been setup by the customer’s mail administrator to route incoming mail to the IMAP Inbox folder.
2. The Workflow Inbound Agent Listener picks up the message. Only messages which are in ‘unread’ state are
evaluated; the rest of the messages in the inbox are ignored.
3. The message is scanned to see if it matches entries in the TAG file . Mail tags are defined in the OAM mailer
configuration pages and these list strings of text and actions to take if those strings are encountered. An example of this
are ‘Out of Office’ replies. If the string of the message matches a mail tag and the action is ‘Ignore’ then nothing else will
happen.
4. The message is then scanned for the presence of a Notification Id (NID). This NID is matched against valid NID for the
mailer node.
5. If valid NID is not detected, (and there is no matching TAG file entry) then the message is placed into the DISCARD
folder.
6. If a valid NID is detected the listener raises a subscription to the WF_NOTIFICATION_IN queue and places the mail
message in the Processed folder.
7. From this point on the message is handled by the product workflow (like PO APPROVAL) . An event created by that
group will monitor the WF_NOTIFICATION_IN queue and will trigger the rest of the approval workflow.
Here are steps/events for Oracle Workflow Notification Outbound Processing(eMail from Oracle Applications Workflow to
Users)
1.When workflow Engine determines that a notification message must be sent, it raises an event in BES (Business Event
System) oracle.apps.wf.notifications.send
Event is raised with Notification ID (NID) as event key
2. There is seeded subscription to this Event
3. Event is placed on WF_DEFERRED agent
4.Event is dequeued from WF_DEFERRED and subscription is processed
5. Subscription places event message to WF_NOTIFICATION_OUT agent.
6.Notification Mailer dequeues message from WF_NOTIFICATION_OUT agent and
6.1convert XML representation of notification into MIME encoded message (Multi-purpose Internet Mail Extensions) and
6.2 Send message by SMTP (Simple Mail Transfer Protocol) to intended user (IfTest Address/Override Address is set
then email is sent to Test Address

E-Mail Notification is sent if all below conditions are truea) Notification status is OPEN or CANCELED and
b) Notification mail_status is MAIL or INVALID and
c) Recipient Role has a valid e-mail address and Notification Preference is in the format MAIL%
d) Workflow Deferred Agent Listener is running
e) Workflow Notification Mailer is running
To check a) & b) run below query
SELECT status, mail_status FROM wf_notifications WHERE notification_id = ‘&NID’;
mail_status >> SENT means mail has gone out of mailer to user
To check c) run below query
SELECT email_address, nvl(WF_PREF.get_pref(name, ‘MAILTYPE’),notification_preference)
FROM wf_roles
WHERE name = upper(‘&recipient_role’);
To check d) & e) Use OAM (Oracle Application Manager)
How to purge e-mail notifications from the Workflow queue
Some times Due to large number of e-mail notifications to accumulated in the queue Workflow mailer will not start,To fix
this issue we need purge the notifications from the Workflow queue.

The below outlines the steps, Please take proper backup before performing the below.
1) You need to update the notifications you do not want sent, in the WF_NOTIFICATIONS table.
2) Check the WF_NOTIFICATIONS table as below. Records where status = ‘OPEN’ and mail_status = ‘MAIL’ are
notifications that will have an e-mail notification sent.
SQL> select notification_id,status,mail_status,begin_date from WF_NOTIFICATIONS where status = ‘OPEN’ and
mail_status = ‘MAIL’;
3) This should show you which notifications are waiting to be e-mailed.
4) To update a notification so that it will not get e-mailed. Set the MAIL_STATUS = ‘SENT’. The mailer will think the e-mail
has already been sent and it will not send it again.
SQL> update WF_NOTIFICATIONS set mail_status = ‘SENT’ where mail_status = ‘MAIL’;
-> This will update all notifications waiting to be sent by the mailer.
5) Then run the script wfntfqup.sql to purge the WF_NOTIFICATION_OUT queue and rebuild it with data currently in the
WF_NOTIFICATIONS table. This is what purges all notifications waiting in the queue to be sent.Only the ones where
mail_status = ‘MAIL’ and status = ‘OPEN’ will be placed in the WF_NOTIFICATION_OUT queue and sent by the mailer.
SQL>sqlplus apps/apps_pwd @$FND_TOP/patch/115/sql/wfntfqup APPS APPS_PWD APPLSYS
6) Now you can start your WF Containers and then Mailer

Posted 6th April 2016 by Unknown

2 View comments

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE
10th APPS DBAXXX
March 2016
is not
This bloga is
valid responsibility
written for the
to share and helpcurrent user. Please
doer's.Please sh… search
contact your System Administrator.
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
Error: " XXX Not a valid responsibility for the current user. Please contact your System
Administrator."

1) Login with System Administrator Responsibility


2) Navigate to Profile > System, click on User and enter the user name
3) Search for profile 'Applications Start Page'. Delete the value set at user level and save
4) Go to Functional Administrator -> Clear Cache
5) Try logging into the account and try again

---

Oracle EBS: Repairing the "XXX is not a valid responsibility for the current user" error in Oracle
How to "fix" a problem that can occur in Oracle when you have granted a user access to a new web-based responsibility
but the middle-tier application servers have not picked up this change.

Below are detailed instructions on how to clear the cache on the middle-tier application server(s). As it says in the
warning when you try and do it there will be a performance hit while it re-reads all the data from the database - use on
Production Systems at you own risk!!

At the moment I'm currently configuring Oracle Internet Expenses (11, not 12) and several times we've granted a user the
"Internet Expenses" responsibility, they've logged into Oracle, selected Internet Expenses and then received an error
along the lines of "Internet Expenses is not a valid responsibility for the current user. Please contact your System
Administrator". For example when trying to access "Function Administrator" privilege you get the message:

[http://4.bp.blogspot.com/-0MEqgmtsvJg/TuscliEpSqI/AAAAAAAAluk/SOcrWWC-XZs/s1600/001%255B1%255D.png]
Figure 1: Sample error for "Functional Administrator" Responsibility

You only get this issue with Web-based responsibilities. If I'd assigned "Payables Manager" then it works without any
issues, the reason for this error is that in order to improve performance Oracle caches some information on the web
server. In order to "fix" this problem we need to clear the cache by following these steps;

Step 1: Log in and select the "Functional Administrator" responsibility


Now this is where we get a delicious taste of irony; this responsibility is web-based so if you are trying to fix a problem
that's occurring now and you don't already have this responsibility then I'm afraid you're too late. You'll have to bounce
the Apache server (something that will require a DBA). In short; you need to have granted yourself this responsibility
BEFORE you run into problems!

[http://2.bp.blogspot.com/-
e2ZfM5rkXUQ/Tusdz0TwYmI/AAAAAAAAlus/WIVlFIh5-vc/s1600/001%252520%25281%2529%255B1%255D.png]
Figure 2: "Functional Administrator" Welcome Screen

Step 2: Select "Core Services" (the tab at the top right)

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://3.bp.blogspot.com/-32kYF-lbjbM/TuseMKmfH-
I/AAAAAAAAlu8/JFnq7W5AIEs/s1600/001%252520%25282%2529%255B1%255D.png]
Figure 3: "Function Administrator" > "Core Services"

Step 3: Select "Caching Framework" (second option from the right on blue bar)

[http://2.bp.blogspot.com/-
jYj40gFsvbs/Tusmh4OC9XI/AAAAAAAAlvE/zWqoI6cisRM/s1600/001%252520%25283%2529%255B1%255D.png]
Figure 4: "Core Services" > "Caching Framework"

Step 4: Select "Global Configuration" (bottom option on the left)

[http://3.bp.blogspot.com/-
HK_RkytOpPE/TutevEF9eEI/AAAAAAAAlvM/6lW8oCafm0E/s1600/001%252520%25284%2529%255B1%255D.png]
Figure 5: "Caching Framework" > "Global Configuration"

This page shows you the currently configured Caching Statistics and Policy. The bit we're interested in though is the
"Clear All Cache" button the right-hand side.

Step 5: Click "Clear All Cache"

[http://2.bp.blogspot.com/-
iOsMOyKozzU/TutfdYB7OtI/AAAAAAAAlvU/A6VyKf4zgj4/s1600/001%252520%25285%2529%255B1%255D.png]
Figure 6: Clear Cache Warning Message

Read the message, it's there for a reason!

Step 6: Click "Yes"

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://2.bp.blogspot.com/-w8y-RK-
sZHU/TutfndSTF4I/AAAAAAAAlvc/NgJA7pSv4TI/s1600/001%252520%25286%2529%255B1%255D.png]
Figure 7: Confirmation Message

And we're done, the user should now be able to log in with the new responsibility.

R12 --XXX is not a valid responsibility for the current user. Please contact your System Administrator.

How to Resolved XXX is not a valid responsibility for the current user. Please contact your System Administrator.

Some time it happens that we assign a new web based responsibility like isupplier or iprocurement but when opening it
display following screenshot.

[http://1.bp.blogspot.com/-_GwVT7fTgOI/U4ROnkW-cjI/AAAAAAAADMg/ixzlH-Ta_AM/s1600/New+Bitmap+Image.jpg]

This is happening because middle tiers has yet to pick the change in assigned responsibility. To resolve this issue we
need to clear the middle tier cache.

Navigate to Functional administrator>Core Service >Caching Framework > Global Configuration

[http://1.bp.blogspot.com/-2_YUCWVpc5g/U4RSDn4NI3I/AAAAAAAADMs/VWZe-l0hqUQ/s1600/New+Bitmap+Image.jpg]

Click on Clear All Cache

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://4.bp.blogspot.com/-i6rHupW9ISk/U4RSbSBScUI/AAAAAAAADM0/FkYhvz4geNY/s1600/New+Bitmap+Image.jpg]

A warning message will displayed. Click Yes

[http://2.bp.blogspot.com/-B1vZK6PIMLE/U4RSr47hZtI/AAAAAAAADM8/cvg5JvPqkN0/s1600/New+Bitmap+Image.jpg]

Confirmation will be displayed. Now if you navigate to iProcurement responsibility.

[http://1.bp.blogspot.com/-HdNlqinTKYk/U4RTJxRrqAI/AAAAAAAADNE/USMe1fI_WEU/s1600/New+Bitmap+Image.jpg]

It will open without error

Posted 10th March 2016 by Unknown

4 View comments

Fatal error in fdasql - AuditTrail Update Tables program error


14th January 2016
on R12
Fatal error in fdasql - AuditTrail Update Tables program error on R12

While running AuditTrail Update Tables concurrent request on e-business suite R12(12.1.3) as part of audittrail enable
process the request completed with Fatal error in fdasql, quitting.... Fatal error in fdacv, quitting.... Fatal error in fdaupc,
quitting error.

To fix the issue Check if you have enabled auditing for APPLSYS,APPS and the application schema owner you want to
audit, if not enable the auditing for the schema you wish to audit.

And also check the logfile to see if its failing at View AP_SYSTEM_PARAMETERS_ALL_AC1, If so change the group
status for the Audit Group AP_SYSTEM_PARAMETERS_ALL to disable – purge table

Now submit the AuditTrail Update Tables program again

FYI
Metalink note
AuditTrail Update Tables fails on View AP_SYSTEM_PARAMETERS_ALL_AC1 (Doc ID 727208.1)

Solution
1. Navigate to the audit group tables, and query back the table as before
2. Set the Group state to "Disable - Purge Table" for AP_SYSTEM_PARAMETERS_ALL. This option
Disable - Purge Table Drops the auditing triggers and views and deletes all data from the shadow
table.
3. Run the "AuditTrail Update Tables" concurrent program
Posted 14th January 2016 by Unknown

2 View comments

R12 Audit Trail AP_SUPPLIERS AND vendor_site_code of


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
14th January 2016 AP_SUPPLIER_SITES_ALL.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Seeded Functionality (R12) - Demo


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

Consider the following scenario:

We have a requirement where we need to capture the changes in vendor_name of AP_SUPPLIERS


AND vendor_site_code of AP_SUPPLIER_SITES_ALL.

Now let us see the detailed Stepwise approach to achieve this in R12.
1. Enable Audit Trail Profile

Set the system profile AuditTrail:Activate to Yes at the site level.


Navigation: System Administrator Responsibility-->System--->Profile

2. Enable Audit for Schemas

We need to enable the audit for the schemas which are the owners of the tables, on which we are doing
audit.

We need to include APPS schema in every case.

In this case we need to enable audit for AP (as it is the owner of the tables AP_SUPPLIERS and
AP_SUPPLERS_SITES_ALL).

Navigation: System Administrator Responsibility--->Security--->AuditTrail--->Install

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

3. Audit Group Creation

Navigation: System Administrator Responsibility--->Security--->AuditTrail--->Groups.

Here we need to create the Audit Group under Payables Application. Create an audit group with a
proper naming convention, and select the group state as Enabled.

Now include the table names AP_SUPPLIERS and AP_SUPPLIER_SITES_ALL.

4. Specify the Columns to be Audited

By default, Oracle has specified few columns under few tables that are Audit enabled. Check whether
columns which we want to audit exists under these particular tables. If not include the columns.

In this case (R12) Oracle has included few columns under AP_SUPPLIERS and
AP_SUPPLIER_SITES_ALL. We don’t have the vendor_name under AP_SUPPLIERS. So include it.

Navigation: System Administrator Responsibility--->Security--->AuditTrail--->Tables

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

5. Run the concurrent request

Now in order to create the Audit tables and corresponding views for the base tables that we want to
audit, we need to run a concurrent request from System Administrator responsibility.

After the successful completion of the request, the audit tables and views will be created in the
database.

This will create following Audit tables:


AP_SUPPLIERS_A for AP_SUPPLIERS
AP_SUPPLIER_SITES_ALL_A for AP_SUPPLIER_SITES_ALL

Also it will create following main views based on base table and Audit table.
AP_SUPPLIERS_AC1 for AP_SUPPLIERS
AP_SUPPLIER_SITES_ALL_AC1 for AP_SUPPLIER_SITES_ALL

This will create Audit views on individual columns too. These will be in the form of TABLE_NAME_AV%

Query it with following command for the audit views of the table AP_SUPPLIERS

SELECT *
FROM all_objects
WHERE object_name LIKE 'AP_SUPPLIERS_AV%'

We have 25 audit views created, because Oracle has included few columns in the setup. When we ran
the audit trial update program it creates views for those columns too.

Now we need to check the view name for vendor_name column.

In this case we have the view AP_SUPPLIERS_AV25 created for vendor_name.


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA
Verify it using the query
This blog is written to share and help doer's.Please sh… search

SELECT *
Classic Flipcard Magazine
FROM Mosaic Sidebar Snapshot Timeslide
ap_suppliers_av25

Similarly, Query for the audit views of the table AP_SUPPLIER_SITES_ALL

We are nothing to do with these audit tables and columns. Oracle has used these tables and views and
developed a report to report the changed data in these columns.
6. Run the Audit Report

Now run the report Audit report from System Administrator responsibility.

To do so we need to follow few steps as mentioned below.

Create template SUPPLIERS TEMPLATE to include the audit group (the one we created to include the
columns while doing the audit setup) i.e. AUDIT SUPPLIERS under Functional group.

Navigate--->Audit Trial--->Audit Trial--->Reporting--->Audit Industry Template

Then run the report by navigating


Navigate--->Audit Trial--->Audit Trial--->Reporting--->Audit Report

And pass the parameters for the remaining as per the requirement. Let us run the report for AUDIT
SUPPLIERS Group.

Here we are passing null for all fields So it tries to report the data which is Transacted by All users, of all
transactions, the data which has been changed before or equal to system time.

Select the VENDOR_SITE_CODE under the table name AP_SUPPLIER_SITES_ALL and


VENDOR_NAME under the table AP_SUPPLIERS. Run the report.

Output:
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

Metalink ID's

How do you audit an Oracle Applications'


user? [ID 395849.1]
Auditing: How Do I Audit Responsibilities and
Data? [ID 436316.1]
How To Audit Data Changes In Tables Using
Triggers [ID 1025832.6]
Reference Documentation to Set Up of Audit
Trail in Oracle HRMS [ID 111786.1]
Understanding Data Auditing in Oracle
Applications Tables using Audit Trail
(AuditTrail) [ID 69660.1]
Which HRMS Tables Need To Be Audited for
SOX compliance? [ID 737201.1]
Is There a Performance Issue when Enabling
the Audit Trail for HRMS Tables? [ID 334379.1]
Is There Any Way to Enable Auditing for All
Tables in 11i ? [ID 471474.1]

Posted 14th January 2016 by Unknown

5 View comments

7th January 2016 How to change Java heap size in R12 to avoid
java.lang.OutOfMemoryError: Java heap space error?

How to change Java heap size in R12 to avoid java.lang.OutOfMemoryError: Java heap space error?

Recently we had encountered a situation, wherein end users where not able to get the R12 login page and
it just hangs, but all the opmn processess were up and running – adopmnctl.sh status gives status as
alive for all the components viz., HTTP, oafm, oacore & forms. The same environment was available and
end users were able to access without any isuses 15 minutes before. This error happens only when
multiple people login to the same page and perform simillar activity like employee self service form
etc. So where and what exactly could be the problem.

This is how we approached and resolved the issue.


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
First we checked apache error log. The following error was reported in the error log. search

==============================================================
Classic Flipcard
[warn]Magazine Mosaic ] oc4j_socket_recvfull
[client IP Address Sidebar Snapshot timed
Timeslide
out
[error] [client IP Address ] mod_oc4j: There is no oc4j process (for destination: application://oacore) available to service
request.
[error] [client IP Address] mod_oc4j: request to OC4J [servername:OC4J AJP Port Range for Oacore]
failed: Connect failed
==============================================================

Above error message does give us a hint that the problem is with oacore, but as i said earlier the oacore is alive
according to opmn.

Next, we verified the oacore log file.

($INST_TOP/logs/ora/10.1.3/opmn/oacore_default_group_1/oacorestd.err)

Error Message in the file

=======================================================
Exception in thread “OC4JMonitorThread” java.lang.OutOfMemoryError: Java heap space
=======================================================

While checking the error in file, parallely we opened another window to see the CPU and memory usage and we could
see one java process was taking more than 100% CPU. This process was spawned by the opmn -d process and the
process id didnt match with the oacore process id. Hint: adopmnctl.sh status will give the status as well the process id. It
looked like a end client java process.

At this stage we had 3 options.

1. Kill the java process which is consuming high cpu.


2. Bounce oacore component
3. Adjust java (jvm) memory parameters

Each of the above options has its own implications and advantages. To minimize the downtime we decided to kill the
java processes, and the moment we killed the java process, all the browsers which were hanging reported
instantaneously Internal Server Error. This proved to be a bad decision.

So we moved to the next option, bouncing the oacore service which we are sure will resolve the issue (temporarily) and
it did as expected. Basically when you bounce the services all the existing
connections and processess will be released which results in more available memory when you re-start the services.

Ok, now we tackled the problem and provided a temporary solution but we need to find a long term solution. This is
option 3, adjusting java memory size.

Steps to change the heap size.

First, you need to identify how much is the maximum heap size that you can set. Click here.

Once you had identified the maximum heap size, we need to change the configuration files to make it
permanent.

Step 1: Edit opmn.xml file.

Location : $INST_TOP/ora/10.1.3/opmn/conf/

Open opmn.xml

Search for string Xms or Xmx or module-id=”OC4J”

This search should lead you to below location

‘<‘process-type id=”oacore” module-id=”OC4J” status=”enabled” working-dir=”$ORACLE_HOME/j2ee/home”‘>’


‘<‘category id=”start-parameters”‘>’
‘<‘data id=”java-options” value=”-server -verbose:gc -Xmx512M -Xms128M ……]

The default value for Maximum (-Xmx) and Minimum (-Xms) heap sizes are 512M and 128M respectively.

Again here you have options, you can set both Xms and Xmx has the same value as Xmx if you feel all your sessoins
require higher memory or set a lower value for Xms and the maximum value for Xmx. Dont forget to change the values
under ‘<‘category id=”stop-parameters”‘>’

opmn.xml also contains jvm configurations for other components – oafm & forms.

Step 2: Edit oc4j.properties file.


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
Location : ($INST_TOP/ora/10.1.3/j2ee/oacore/config) search

This step is optional since we had already made changes in opmn.xml but there is no harm in making the change here.
Classic Flipcard
This Magazine Mosaic
step will come handy Sidebar Snapshotspecific
for troubleshooting Timeslide
components of Oracle viz., configurator, iSupplier or any other
option which heavily utilizes/consumes CPU/memory.

Search for string Xms or Xmx or wrapper.

Option 1: If you find any of the above parameters change the values corresponding to the value you had mentioned in
opmn.xml or even more than that, as long as you dont exceed the maximum heap size limit.

Option 2: If you DO NOT find any of the above parameters, then make an entry like this, under the heading “# Java
Object Cache Configuration Parameters”

wrapper.bin.parameters=-Xms[Value]M -Xmx[Value]M -XX:NewSize=256M -XX:MaxNewSize=256M

Step 3: Edit Applications Context file

vi $CONTEXT_FILE

Location: $INST_TOP/appl/admin/SID_hostname.xml

search for string s_oacore_jvm_start_options

Change Xms and Xmx value. Repeat the same step for parameter s_oacore_jvm_stop_options.

Changes made in Step 3 will take effect the next time you run autoconfig, whereas Step 1 & 2 changes will take effect
the next time you bounce opmn services, but the values are not permanent in the sense these will be wiped off next time
you run autoconfig. Yes you can preserve the changes by placing it inbetween Begin and End customizations.

You can also increase the Garbage Collection threads parameter (-XX:ParallelGCThreads) to a higher value if you have
JDK 1.5 or more than 2 cpus or more memory.

JVM: Guidelines to setup the Java Virtual Machine in Apps Ebusiness Suite 11i and R12 (Doc ID 362851.1)

Read the below blog for detail information on heapsize parameters.

https://avdeo.com/2008/02/22/increasing-jvm-heap-size-in-e-business-suite/

Thanks
Madhan

Posted 7th January 2016 by Unknown

4 View comments

Sridevi K 2 November 2016 at 08:53


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

Blogger 14 November 2017 at 23:41


BlueHost is ultimately the best website hosting company for any hosting services you require.
Reply

Blogger 18 November 2017 at 06:50


If you need your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (no matter why you broke up)
you have to watch this video
right away...

(VIDEO) Want your ex CRAWLING back to you...?


Reply

Jennifer N 12 February 2019 at 16:04


Thanks and Regards. Oracle Apps R12 Training Videos at affordable cost. please check oracleappstechnical.com
Reply

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

31st October 2015

Inactive – No Manager.R12.1.3

This is what you see:

[https://oraclekitchen.files.wordpress.com/2015/02/inactive-no-manager.png]

This are what you need to check:


A. In the application

[https://oraclekitchen.files.wordpress.com/2015/02/administer.png]
If all the reports end in COMPLETE – NORMAL, means its work.
If not,
B. Run a Concurrent Manager Recovery
1. Please stop Concurrent managers by adcmctl.sh.
2. If not stopped, please abort managers by adcmctl.sh.
adcmctl.sh abort apps/
3. Please kill if a process remains.
4. Please retry Concurrent Manager Recovery.
Navigate:
Oracle Applications Manager > Concurrent Managers OR Concurrent Requests > Site Map > Diagnostics and Repair >
Concurrent Manager Recovery

[https://oraclekitchen.files.wordpress.com/2015/02/oam.jpg]

Found out that the error is:

Oracle error 1653: ORA-01653: unable to extend table APPLSYS.FND_ENV_CONTEXT by 8192 in tablespace
APPLSYSD has been detected in AFPENV
Solution: Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Extend tablespace.

ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

ALTER TABLESPACE APPS_TS_TX_DATA


Classic Flipcard
ADDMagazine
DATAFILE Mosaic Sidebar Snapshot Timeslide
'/.../.../.../a_txn_data28.dbf'
SIZE 10485760K

Like this:

[https://oraclekitchen.files.wordpress.com/2015/02/applsysd.jpg]

if not worked,

C. Create an SR

Regards
Madhan

Posted 31st October 2015 by Unknown

0 Add a comment

18th September 2015 Bounce Apache server in R12


Bounce Apache server in R12

First Check the active user in the Application by Running Below Query in TOAD/Sql Developer.

select fnd.user_name,
icx.responsibility_application_id,
icx.responsibility_id,
frt.responsibility_name,
icx.session_id,
icx.first_connect,
icx.last_connect,
DECODE ((icx.disabled_flag),'N', 'ACTIVE',
'Y', 'INACTIVE') status
from fnd_user fnd,
icx_sessions icx,
fnd_responsibility_tl frt
where fnd.user_id = icx.user_id
and icx.responsibility_id = frt.responsibility_id
and icx.disabled_flag <> 'Y'
and trunc(icx.last_connect) = trunc(sysdate)
order by icx.last_connect;

If no active users are there, then you can follow the below process otherwise any user is active in Application will get
Connection Error

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Server Bouncing for OAF Customizations:
ORACLE APPS DBA
we need to run two scripts:
This blog is written to share and help doer's.Please sh… search

1)Script which is responsible for bouncing Oracle HTTP Server (adapcctl.sh)


Classic Flipcard Magazine
2)Script Mosaic Sidebar
which responsible Snapshot
for bouncing Timeslide
OC4J container (adoacorectl.sh)

So basically, here is the sequence of steps you need to do :


1) Connect to Host Server using Putty
2) Change the Directory by using this command cd $ADMIN_SCRIPTS_HOME
3) And Execute below Commands in current Directory
3.1) adapcctl.sh stop
3.2) adoacorectl.sh stop
3.3) adapcctl.sh start
3.4) adoacorectl.sh start

Posted 18th September 2015 by Unknown

3 View comments

Sridevi K 2 November 2016 at 08:54


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

Blogger 13 November 2017 at 09:03


BlueHost is definitely one of the best web-hosting company with plans for any hosting requirements.
Reply

Jennifer N 12 February 2019 at 16:05


Thanks and Regards. Oracle Apps R12 Training Videos at affordable cost. please check oracleappstechnical.com
Reply

OACORE fails to start after increasing the JVM processes


1st September 2015
in Oracle R12
OACORE fails to start after increasing the JVM processes in Oracle R12
Issue: OACORE processes are not starting.

Recent changes: Increased the JVM processes in the context file.


Error:
adoacorectl.sh: exiting with status 206
Solution:

1) Stop the middle tier processes:

adopmnctl.sh stop

2) Kill any runaway/zombie processes.

3) Remove the following jms lock files:

$ORA_CONFIG_HOME/10.1.3/j2ee/forms/persistence/forms_default_group_1/jms.state.lock,

$ORA_CONFIG_HOME/10.1.3/j2ee/oacore/persistence/oacore_default_group_1/jms.state.lock
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
$ORA_CONFIG_HOME/10.1.3/j2ee/oafm/persistence/oafm_default_group_1jms.state.lock search

4) Restart middle tier:


Classic Flipcard Magazinestart
adopmnctl.sh Mosaic Sidebar Snapshot Timeslide

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

Executing service control script:


/u01/applR12/inst/apps/TEST_linuxerp1/admin/scripts/adoacorectl.sh start
script returned:
****************************************************

You are running adoacorectl.sh version 120.13

Starting OPMN managed OACORE OC4J instance ...

adoacorectl.sh: exiting with status 204

adoacorectl.sh: check the logfile /u01/applR12/inst/apps/TEST_linuxerp1/logs/appl/admin/log/adoacorectl.txt for more


information ...

[applerp@linuxerp1 scripts]$ adopmnctl.sh status

You are running adopmnctl.sh version 120.6

Checking status of OPMN managed processes...

Processes in Instance: TEST_linuxerp1.linuxerp1.orasol.com


---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group | OC4J:oafm | 12478 | Alive
OC4JGroup:default_group | OC4J:forms | 12394 | Alive
OC4JGroup:default_group | OC4J:oacore | N/A | Down
HTTP_Server | HTTP_Server | 12147 | Alive

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/applR12/inst/apps/TEST_linuxerp1/logs/appl/admin/log/adopmnctl.txt for more


information ...

[applerp@linuxerp1 scripts]$

</

Error Stack when trying to stop:

Executing service control script:


/u01/applR12/inst/apps/TEST_linuxerp1/admin/scripts/adoacorectl.sh stop
script returned:
****************************************************

You are running adoacorectl.sh version 120.13

Stopping OPMN managed OACORE OC4J instance ...

adoacorectl.sh: exiting with status 150

adoacorectl.sh: check the logfile /u01/applR12/inst/apps/TEST_linuxerp1/logs/appl/admin/log/adoacorectl.txt for more


information ...

Solution:
=> Stop application services
=> Clear contents of the persistence directory
=> Start application services

[applerp@linuxerp1 scripts]$ cd $ORA_CONFIG_HOME/10.1.3/j2ee/oacore


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
[applerp@linuxerp1 oacore]$ ls
search

application-deployments config persistence tldcache


Classic Flipcard Magazine Mosaic
[applerp@linuxerp1 Sidebar
oacore]$ Snapshot Timeslide
rm -rf persistence/
You have new mail in /var/spool/mail/applerp
[applerp@linuxerp1 oacore]$ mkdir persistence

[applerp@linuxerp1 scripts]$ adopmnctl.sh status

You are running adopmnctl.sh version 120.6

Checking status of OPMN managed processes...

Processes in Instance: TEST_linuxerp1.linuxerp1.orasol.com


---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group | OC4J:oafm | 13872 | Alive
OC4JGroup:default_group | OC4J:forms | 13804 | Alive
OC4JGroup:default_group | OC4J:oacore | 13723 | Alive
HTTP_Server | HTTP_Server | 13671 | Alive

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/applR12/inst/apps/TEST_linuxerp1/logs/appl/admin/log/adopmnctl.txt for more


information ...

[applerp@linuxerp1 scripts]$

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

adoacorectl.sh: exiting with status 150


Error:

[oracle@svrebsal2 scripts]$ ./adoacorectl.sh stop


You are running adoacorectl.sh version 120.13
Stopping OPMN managed OACORE OC4J instance ...

adoacorectl.sh: exiting with status 206

(OR)

adoacorectl.sh: exiting with status 150

Solution :

stop all R12 procs

rm -rf $ORA_CONFIG_HOME/10.1.3/j2ee/oacore/persistence/*
rm -rf $ORA_CONFIG_HOME/10.1.3/j2ee/oafm/persistence/*
rm -rf $ORA_CONFIG_HOME/10.1.3/j2ee/forms/persistence/*

start all service again (Start the oc4j using opmnctl startall)

++++++1177323.1, 1313955.1,1557461.1+++++++++

OACORE fails to start after increasing the JVM processes in Oracle R12

Issue: OACORE processes are not starting.

Recent changes: Increased the JVM processes in the context file.

Error:

adoacorectl.sh: exiting with status 206


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA
Solution:
This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine


1) Stop Mosaic
the middle Sidebar Snapshot Timeslide
tier processes:

adopmnctl.sh stop

2) Kill any runaway/zombie processes.

3) Remove the following jms lock files:

$ORA_CONFIG_HOME/10.1.3/j2ee/forms/persistence/forms_default_group_1/jms.state.lock,

$ORA_CONFIG_HOME/10.1.3/j2ee/oacore/persistence/oacore_default_group_1/jms.state.lock

$ORA_CONFIG_HOME/10.1.3/j2ee/oafm/persistence/oafm_default_group_1jms.state.lock

4) Restart middle tier:


adopmnctl.sh start

----------------------
\
SOLUTION
To implement the solution, the recommendation is to:
1. $FF_TOP/bin/FFXBCP APPS/passwd 0 Y -W %% %%
2. sqlplus APPS/passwd @$FF_TOP/patch/115/sql/ffgenwrap.sql

This will recompile all formulas, then regenerate the formula wrappers. It is not recommended to
skip 1.
-----------------

Solution

1) Oracle Fast Formulas can be compiled in bulk with the following command:

$FF_TOP/bin/FFXBCP <appsuser>/<appspassword> 0 Y %% %%

Example:
$FF_TOP/bin/FFXBCP apps/apps 0 Y %% %%

NOTE: 0 = zero

2) Or Groups of Formulae may be compiled. For example 'VERTEX':

$FF_TOP/bin/FFXBCP apps/apps 0 Y %% %VERTEX%

3) Formulas can also be compiled through the Oracle Payroll application by running the concurrent process Bulk Compile
of Formulas.

Navigate: Processes and Reports -> Submit Processes and Reports


Select Bulk Compile of Formulas
How To Compile Oracle Fast Formulas (Doc ID 155737.1)

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

adoafmctl.sh: exiting with status 204


One of our site i need to change SERVER IP address in Oracle application r12 on linux 5.

I changed IP address on both server ( we have two server 1. db server 2. application server)

after changing the server IP when we are trying to start application service, application service ended with below error
message:
adoafmctl.sh: exiting with status 204

Cause: Server IP address change

Solution:
Step:
1. logon to application server with applmgr user
2. go to $INST_TOP
3. stop application services ($ cd $INST_TOP/admin/scripts )
4. delete following files
rm -rf $INST_TOP/ora/10.1.3/j2ee/oacore/persistence/*
rm -rf $INST_TOP/ora/10.1.3/j2ee/oafm/persistence/*
rm -rf $INST_TOP/ora/10.1.3/j2ee/forms/persistence/*
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
4. execute autoconfig on application tier
$cd $INST_TOP/admin/scripts
search

$. ./autoconfig {hit enter}


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
5. start all application services
6. re-test the issue

----------------------------------------------------------------------------
Unable to start oafm using adstrtal.sh. Running adoafmctl.sh ends with timeout.

You are running adoafmctl.sh version 120.6.12000000.3


Starting OPMN managed OAFM OC4J instance ...
adoafmctl.sh: exiting with status 152
adoafmctl.sh: check the logfile
/opt/apphcm/inst/apps/SID_machine/logs/appl/admin/log/adoafmctl.txt for more information

adoafmctl.txt showing:

ias-component/process-type/process-set:
default_group/oafm/default_group/
Error
--> Process (index=1,uid=349189076,pid=15039)
time out while waiting for a managed process to start
Log:
/opt/apphcm/inst/apps/SID_machine/logs/ora/10.1.3/opmn/default_group~oafm~default_group~1
07/31/09-09:14:28 :: adoafmctl.sh: exiting with status 152
================================================================================
07/31/09-09:14:40 :: adoafmctl.sh version 120.6.12000000.3
07/31/09-09:14:40 :: adoafmctl.sh: Checking the status of OPMN managed OAFM OC4J instance
Processes in Instance: SID_machine.machine.domain
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
default_group | oafm | N/A | Down

CAUSE
Existing JSP Tag Library Cache content was preventing the TLD Cache for the mapviewer app from initialising correctly.

Solution
To implement the solution, please execute the following steps:

Clear the TLD cache:

- stop all middle tier services

- Delete/backup the file:

$COMMON_TOP/_TldCache

- start all middle tier services

Regards
Madhan

Posted 1st September 2015 by Unknown

4 View comments

Sridevi K 2 November 2016 at 08:54


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

Blogger 6 February 2017 at 04:55


Are you monetizing your exclusive file uploads?
Did you know AdWorkMedia will pay you an average of $500 per 1,000 file downloads?
Reply

Blogger 25 November 2017 at 09:53


DreamHost is ultimately one of the best hosting company for any hosting services you might need.
Reply
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS
Jennifer N DBA
12 FebruaryThis
2019 atblog
16:05 is written to share and help doer's.Please sh… search
Thanks and Regards. Oracle Apps R12 Training Videos at affordable cost. please check oracleappstechnical.com
Reply Mosaic Sidebar Snapshot Timeslide
Classic Flipcard Magazine

1st September 2015 ERROR: While GATHER_TABLE_STATS


Error: When Gathering Statistics for APPS 11i/R12

Error:

ORA-0000: normal, successful completion


+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
In GATHER_SCHEMA_STATS , schema_name= ALL percent= 30 degree = 4 internal_flag= NOBACKUP
stats on table WF_NOTIFICATION_OUT is locked
stats on table OKC_AQ_EV_TAB is locked
Error #1: ERROR: While GATHER_TABLE_STATS:
object_name=CSR.CSR_RULES_B***ORA-04063: table "CSR.CSR_RULES_B" has errors***

ORA-20005
--------------------------------------------------------------------------------+

Start of log messages from FND_FILE


+---------------------------------------------------------------------------+
In GATHER_SCHEMA_STATS , schema_name= ALL percent= 10 degree = 4 internal_flag= NOBACKUP
stats on table AQ$_WF_CONTROL_P is locked
stats on table FND_CP_GSM_IPC_AQTBL is locked
stats on table WF_NOTIFICATION_OUT is locked
stats on table GAT_REQ_QTBL is locked
Error #1: ERROR: While GATHER_TABLE_STATS:
object_name=AP.JE_FR_DAS_010***ORA-20001: invalid column name or duplicate columns/column
groups/expressions in method_opt***
Error #2: ERROR: While GATHER_TABLE_STATS:
object_name=AP.JE_FR_DAS_010_NEW***ORA-20001: invalid column name or duplicate columns/column
groups/expressions in method_opt***
Error #3: ERROR: While GATHER_TABLE_STATS:
object_name=AP.JG_ZZ_SYS_FORMATS_ALL_B***ORA-20001: invalid column name or duplicate columns/column
groups/expressions in method_opt***

Solution:

Do the following select from dba_tab_stats to show all tables with locked statistics on them:

select owner, table_name, stattype_locked


from dba_tab_statistics
where stattype_locked is not null
and owner not in ('SYS');

SQL> select owner, table_name, stattype_locked


from dba_tab_statistics
where stattype_locked is not null
and owner not in ('SYS');

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
OWNER TABLE_NAME STATT
ORACLE APPS DBA
------------------------------ ------------------------------ -----
SYSTEM
This blog is written to share
TBLMIG_MSG_QTAB ALL
and help doer's.Please sh… search

SYSTEM DEF$_AQERROR ALL


Classic Flipcard
SYSTEMMagazine Mosaic DEF$_AQCALL Sidebar Snapshot Timeslide ALL
ODM DMS_QUEUE_TABLE ALL
APPLSYS FND_CP_GSM_IPC_AQTBL ALL
APPLSYS WF_NOTIFICATION_OUT ALL
APPLSYS AQ$_WF_CONTROL_P ALL
APPS GAT_REQ_QTBL ALL
SYSMAN MGMT_LOADER_QTABLE ALL
SYSMAN MGMT_PAF_MSG_QTABLE_2 ALL
SYSMAN MGMT_PAF_MSG_QTABLE_1 ALL
SYSMAN MGMT_TASK_QTABLE ALL
SYSMAN MGMT_NOTIFY_QTABLE ALL
SYSMAN MGMT_NOTIFY_INPUT_QTABLE ALL

14 rows selected.

SQL>

From the above list 4 tables owned by APPS/APPLSYS shows as locked. Use the below API to release these locks and
re-attempt the statitics task. Should be Ok Now.

exec dbms_stats.unlock_schema_stats('schema_owner');

In this case it will be APPS and APPLSYS

exec dbms_stats.unlock_schema_stats('APPLSYS');

SQL> exec dbms_stats.unlock_schema_stats('APPLSYS');

PL/SQL procedure successfully completed.

SQL> select owner, table_name, stattype_locked


from dba_tab_statistics
where stattype_locked is not null
and owner not in ('SYS'); 2 3 4

OWNER TABLE_NAME STATT


------------------------------ ------------------------------ -----
SYSTEM TBLMIG_MSG_QTAB ALL
SYSTEM DEF$_AQERROR ALL
SYSTEM DEF$_AQCALL ALL
ODM DMS_QUEUE_TABLE ALL
APPS GAT_REQ_QTBL ALL
SYSMAN MGMT_LOADER_QTABLE ALL
SYSMAN MGMT_PAF_MSG_QTABLE_2 ALL
SYSMAN MGMT_PAF_MSG_QTABLE_1 ALL
SYSMAN MGMT_TASK_QTABLE ALL
SYSMAN MGMT_NOTIFY_QTABLE ALL
SYSMAN MGMT_NOTIFY_INPUT_QTABLE ALL

11 rows selected.

SQL>

SQL> exec dbms_stats.unlock_schema_stats('APPS');

PL/SQL procedure successfully completed.

SQL> select owner, table_name, stattype_locked


from dba_tab_statistics
where stattype_locked is not null
and owner not in ('SYS'); 2 3 4

OWNER TABLE_NAME STATT


------------------------------ ------------------------------ -----
SYSTEM TBLMIG_MSG_QTAB ALL
SYSTEM DEF$_AQERROR ALL
SYSTEM DEF$_AQCALL ALL
ODM DMS_QUEUE_TABLE ALL
SYSMAN MGMT_LOADER_QTABLE ALL
SYSMAN MGMT_PAF_MSG_QTABLE_2 ALL
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
SYSMAN MGMT_PAF_MSG_QTABLE_1 ALL
ORACLE APPS DBA
SYSMAN
SYSMAN
MGMT_TASK_QTABLE
MGMT_NOTIFY_QTABLE
ALL
This blog is written to share
ALL
and help doer's.Please sh… search

SYSMAN MGMT_NOTIFY_INPUT_QTABLE ALL


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
10 rows selected.

SQL>

SQL> exec dbms_stats.unlock_schema_stats('APPLSYS');

PL/SQL procedure successfully completed.

SQL> exec dbms_stats.unlock_schema_stats('OKC');

PL/SQL procedure successfully completed.

Regards
Madhan

Posted 1st September 2015 by Unknown

2 View comments

Sridevi K 2 November 2016 at 08:54


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

Jennifer N 12 February 2019 at 16:05


Thanks and Regards. Oracle Apps R12 Training Videos at affordable cost. please check oracleappstechnical.com
Reply

18th June 2015 Oracle Applications Tablespace Model - OATM and Manage
Tablespace alerts & PURGE & LOB Objects &Segments
Oracle Applications Tablespace Model - OATM

The Oracle Applications Tablespace Model was another long awaited feature that got introduced in 11.5.10.Prior to
11.5.10 by default each of the oracle applications product would have two dedicated tablespace holding the data element
and the other for storing the index eg GLD (For General Ledger base tables) and GLX (For indexes relation to the
General Ledger product).This easily resulted in some 300 odd tablespaces to manage apart from the system, temp and
the rollback tablespaces.
In the new Oracle Applications Tablespace Model (OATM) all these product related tablespaces have been consolidated
in two main tablespaces one for holding the base tables and the other for holding the related indexes. Apart from these
two tablespace you have an additional ten tablespaces including system tablespace undo tablespace and the temporary
tablespace. Thereby reducing the total number of tablespace in the OATM to twelve.

Apart from the obvious ease of management and administration with a reduced number of tablespace being involved the
OATM also provides benefits like efficient space utilization. This is achieved by supporting locally managed tablespaces
as opposed to the dictionary managed tablespace in the previous model.

OATM also supports uniform extent allocation and auto allocate extent management. In uniform extent management all
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
the extents have the same size and result in less fragmentation. Auto allocate extent management allows the system to

ORACLE APPS DBA


determine the extent sizes automatically.
This blog is written to share and help doer's.Please sh… search
OATM also provides additional benefits when implementing Real Application Clusters (RAC) in

Classic Flipcard Magazine


Oracle Mosaic Sidebar Snapshot Timeslide
Applications.
• APPS_TS_TX_DATA - This tablespace hold the translational tables of all Oracle Applications products. For example the
GL_JE_HEADERS will be a part of APPS_TX_DATA.
• APPS_TS_TX_IDX - All the indexes on the product tables are kept under this tablespace.
• APPS_TS_SEED - The seeded data that is setup and reference data tables and indexes form this tablespace. For
example your FND_DATABASES table would reside in the APPS_TS_SEED tablespace.
• APPS_TS_INTERFACE - All the interface tables are kept in this tablespace for example the GL_INTERFACE table.
• APPS_TS_SUMMARY - All objects that record summary information are grouped under this tablespace.
• APPS_TS_NOLOGGING - This tablespace contains the materialized views that are not used for summary purposes
and other temporary
object that do not require redo log entries.
• APPS_TS_QUEUES - With the support for advanced queuing in Oracle Applications, the advanced queue tables and
related objects form a part of this tablespace.
• APPS_TS_MEDIA - This tablespace holds multimedia objects like graphics sound recordings and spital data.
• APPS_TS_ARCHIVE - Tables that are obsolete in the current release of Oracle Applications 11i are stored here. These
tables are preserved to maintain backward compatibility of custom programs or migration scripts.
• UNDO - The undo tablespace is used as automatic undo management is enabled by default in 11.5.10.This acts as a
replacement to red log files.
• TEMP - The Temp tablespace is the default temporary tablespace for Oracle Applications.
• SYSTEM - This is the SYSTEM tablespace used by the Oracle Database.

Manage Tablespace alerts

Script: To List Tablespace, Datafiles and Free Space (Doc ID 1019999.6)


Script to Report Tablespace Free and Fragmentation (Doc ID 1019709.6)
How to Display Storage Map for Database | Tablespace | Datafile Storage (Doc ID 1377458.1)
Tablespace Migration Utility(TMU) which is available as a patch (3381489).
For additional information refer to the Oracle Applications Tablespace Migration Utility User Documentation.
Unable to extend
ORA-1652 Error Troubleshooting (Doc ID 793380.1)
TROUBLESHOOTING GUIDE (TSG) - UNABLE TO CREATE / EXTEND Errors (Doc ID 1025288.6)
TROUBLESHOOTING GUIDE (TSG) : ORA-1652: unable to extend temp segment (Doc ID 1267351.1)
ORA 1652 unable to extend temp segment by %s in tablespace %s (Doc ID 19047.1)

DISK Segments and Objects

DISK SPACE
SYS_LOB Objects Use A Lot Of Disk Space, What Are They? [ID 409022.1]
How to Purge MSD.AW$ LOB Segments [ID 418248.1]
FND_LOBS Table Growing Rapidly Due To Purchase Orders Attachments. How to deal with this. [ID 1410946.1]
Useful SQL Statements to Check What Makes FND_LOBS Grow? [ID 1245974.1]

PURGE

What Are Concurrent Reports That Should Be Scheduled Periodically [ID 1066117.1]
Reducing Your Oracle E-Business Suite Data Footprint using Archiving, Purging, and Information Lifecycle Management
[ID 752322.1]
Purging Strategy for eBusiness Suite 11i [ID 732713.1]
How to Purge/Troubleshoot the FND_LOG_MESSAGES table [ID 735138.1]
Any Available Method of Purging XLA Tables? [ID 1111390.1]
Check current volume of SLA Data and Manually Archive/Purge Data from XLA/SLA Tables in R12 [ID 1491255.1]
Speeding Up And Purging Workflow [ID 132254.1]
Troubleshooting Workflow Data Growth Issues [ID 298550.1]
Payroll Purge [ID 155106.1]
http://madhanappsdba.blogspot.com/2013/08/oralce-apps-purginggather-schema-stats.html#!/2013/08/oralce-apps-
purginggather-schema-stats.html [http://madhanappsdba.blogspot.com/2013/08/oralce-apps-purginggather-schema-
stats.html#!/2013/08/oralce-apps-purginggather-schema-stats.html]

Last but not least all this above notes give by Hussein Sawwan-Oracle or srini chavili you can search topics in Oralce
forum many discussion keeping for my reference.

Regards
Madhan

Posted 18th June 2015 by Unknown

4 View comments

Sridevi K 2 November 2016 at 08:54


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
Reply

Blogger 20 November 2017 at 12:54


QUANTUM BINARY SIGNALS

Professional trading signals delivered to your cell phone every day.

Start following our signals NOW and make up to 270% per day.
Reply

Blogger 21 November 2017 at 04:26


If you need your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (even if they're dating
somebody else now) you need to watch this video
right away...

(VIDEO) Want your ex CRAWLING back to you...?


Reply

Jennifer N 12 February 2019 at 16:06


Thanks and Regards. Oracle Apps R12 Training Videos at affordable cost. please check oracleappstechnical.com
Reply

Oracle Ebusiness Suite Data Guard Physical Standby Setup in


13th June 2015
Oracle Database 11g Release 2

For the best practice please read the below notes from Oracle Sites

Oracle E-Business Suite Release 12 High Availability Documentation Roadmap (Doc ID 1072636.1)
Business Continuity for Oracle E-Business Release 12.1 Using Oracle 11g Release 2 Physical

Standby Database (Doc ID 1070033.1)


Data Guard Physical Standby Setup in Oracle Database 11g Release 2

This is just an sample reference read it from oracle support site where you can understand clearly.

Data Guard is the name for Oracle's standby database solution, used for disaster recovery and high availability. This
article contains an updated version of the 9i physical standby setup method posted here.
•Assumptions
•Primary Server Setup
•Logging
•Initialization Parameters
•Service Setup
•Backup Primary Database
•Create Standby Controlfile and PFILE
•Standby Server Setup (Manual)
•Copy Files
•Start Listener
•Restore Backup
•Create Redo Logs
•Standby Server Setup (DUPLICATE)
•Copy Files
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
•Start Listener
ORACLE APPS DBA
•Create Standby Redo Logs on Primary Server
This blog is written
•Create Standby using DUPLICATE
to share and help doer's.Please sh… search

•Start Apply Process


Classic Flipcard
•TestMagazine Mosaic Sidebar Snapshot Timeslide
Log Transport
•Protection Mode
•Database Switchover
•Failover
•Flashback Database
•Read-Only Standby and Active Data Guard

Related articles.
•Data Guard (9i)
•Data Guard (11gR2) Setup using Oracle Grid Control
Assumptions
•You have two servers (physical or VMs) with an operating system and Oracle installed on them. In this case I've used
Oracle Linux 5.6 and Oracle Database 11.2.0.2.
•The primary server has a running instance.
•The standby server has a software only installation.
Primary Server Setup

Logging

Check that the primary database is in archivelog mode.

SELECT log_mode FROM v$database;

LOG_MODE

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

NOARCHIVELOG

SQL>

If it is noarchivelog mode, switch is to archivelog mode.

SHUTDOWN IMMEDIATE;

STARTUP MOUNT;

ALTER DATABASE ARCHIVELOG;

ALTER DATABASE OPEN;

Enabled forced logging by issuing the following command.

ALTER DATABASE FORCE LOGGING;

Initialization Parameters

Check the setting for the DB_NAME and DB_UNIQUE_NAME parameters. In this case they are both set to "DB11G" on
the primary database.

SQL> show parameter db_name

NAME TYPE VALUE

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

db_name string DB11G

SQL> show parameter db_unique_name

NAME TYPE VALUE

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

db_unique_name string DB11G

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE
SQL>
APPS DBA This blog is written to share and help doer's.Please sh… search

The DB_NAME of the standby database will be the same as that of the primary, but it must have a different
Classic Flipcard Magazine Mosaic
DB_UNIQUE_NAME Sidebar
value. Snapshot Timeslide
The DB_UNIQUE_NAME values of the primary and standby database should be used in the
DG_CONFIG setting of the LOG_ARCHIVE_CONFIG parameter. For this example, the standby database will have the
value "DB11G_STBY".

ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(DB11G,DB11G_STBY)';

Set suitable remote archive log destinations. In this case I'm using the fast recovery area for the local location, but you
could specify an location explicitly if you prefer. Notice the SERVICE and the DB_UNIQUE_NAME for the remote location
reference the standby location.

ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=db11g_stby NOAFFIRM ASYNC VALID_FOR=


(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=DB11G_STBY';

ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE;

The LOG_ARCHIVE_FORMAT and LOG_ARCHIVE_MAX_PROCESSES parameters must be set to appropriate values


and the REMOTE_LOGIN_PASSWORDFILE must be set to exclusive.

ALTER SYSTEM SET LOG_ARCHIVE_FORMAT='%t_%s_%r.arc' SCOPE=SPFILE;

ALTER SYSTEM SET LOG_ARCHIVE_MAX_PROCESSES=30;

ALTER SYSTEM SET REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE SCOPE=SPFILE;

In addition to the previous setting, it is recommended to make sure the primary is ready to switch roles to become a
standby. For that to work properly we need to set the following parameters. Adjust the *_CONVERT parameters to
account for your filename and path differences between the servers.

ALTER SYSTEM SET FAL_SERVER=DB11G_STBY;

--ALTER SYSTEM SET DB_FILE_NAME_CONVERT='DB11G_STBY','DB11G' SCOPE=SPFILE;

--ALTER SYSTEM SET LOG_FILE_NAME_CONVERT='DB11G_STBY','DB11G' SCOPE=SPFILE;

ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=AUTO;

Remember, some of the parameters are not modifiable, so the database will need to be restarted before they take effect.

Service Setup

Entries for the primary and standby databases are needed in the "$ORACLE_HOME/network/admin/tnsnames.ora" files
on both servers. You can create these using the Network Configuration Utility (netca) or manually. The following entries
were used during this setup.

DB11G =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = ol5-112-dga1)(PORT = 1521))

(CONNECT_DATA =

(SERVICE_NAME = DB11G.WORLD)

DB11G_STBY =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = ol5-112-dga2)(PORT = 1521))

)
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA
(CONNECT_DATA =
This blog is written to share and help doer's.Please sh… search

(SERVICE_NAME = DB11G.WORLD)
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
)

Backup Primary Database

If you are planning to use an active duplicate to create the standby database, then this step is unnecessary. For a
backup-based duplicate, or a manual restore, take a backup of the primary database.

$ rman target=/

RMAN> BACKUP DATABASE PLUS ARCHIVELOG;

Create Standby Controlfile and PFILE

Create a controlfile for the standby database by issuing the following command on the primary database.

ALTER DATABASE CREATE STANDBY CONTROLFILE AS '/tmp/db11g_stby.ctl';

Create a parameter file for the standby database.

CREATE PFILE='/tmp/initDB11G_stby.ora' FROM SPFILE;

Amend the PFILE making the entries relevant for the standby database. I'm making a replica of the original server, so in
my case I only had to amend the following parameters.

*.db_unique_name='DB11G_STBY'

*.fal_server='DB11G'

*.log_archive_dest_2='SERVICE=db11g ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)


DB_UNIQUE_NAME=DB11G'

Standby Server Setup (Manual)

Copy Files

Create the necessary directories on the standby server.

$ mkdir -p /u01/app/oracle/oradata/DB11G

$ mkdir -p /u01/app/oracle/fast_recovery_area/DB11G

$ mkdir -p /u01/app/oracle/admin/DB11G/adump

Copy the files from the primary to the standby server.

$ # Standby controlfile to all locations.

$ scp oracle@ol5-112-dga1:/tmp/db11g_stby.ctl [mailto:oracle@ol5-112-dga1:/tmp/db11g_stby.ctl]


/u01/app/oracle/oradata/DB11G/control01.ctl

$ cp /u01/app/oracle/oradata/DB11G/control01.ctl /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl

$ # Archivelogs and backups

$ scp -r oracle@ol5-112-dga1:/u01/app/oracle/fast_recovery_area/DB11G/archivelog [mailto:oracle@ol5-112-


dga1:/u01/app/oracle/fast_recovery_area/DB11G/archivelog] /u01/app/oracle/fast_recovery_area/DB11G

$ scp -r oracle@ol5-112-dga1:/u01/app/oracle/fast_recovery_area/DB11G/backupset [mailto:oracle@ol5-112-


dga1:/u01/app/oracle/fast_recovery_area/DB11G/backupset] /u01/app/oracle/fast_recovery_area/DB11G

$ # Parameter file.

$ scp oracle@ol5-112-dga1:/tmp/initDB11G_stby.ora [mailto:oracle@ol5-112-dga1:/tmp/initDB11G_stby.ora]


/tmp/initDB11G_stby.ora

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
$ # Remote login password file.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
$ scp oracle@ol5-112-dga1:$ORACLE_HOME/dbs/orapwDB11G [mailto:oracle@ol5-112-
search

dga1:$ORACLE_HOME/dbs/orapwDB11G] $ORACLE_HOME/dbs
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
Notice, the backups were copied across to the standby server as part of the FRA copy. If your backups are not held
within the FRA, you must make sure you copy them to the standby server and make them available from the same path
as used on the primary server.

Start Listener

Make sure the listener is started on the standby server.

$ lsnrctl start

Restore Backup

Create the SPFILE form the amended PFILE.

$ export ORACLE_SID=DB11G

$ sqlplus / as sysdba

SQL> CREATE SPFILE FROM PFILE='/tmp/initDB11G_stby.ora';

Restore the backup files.

$ export ORACLE_SID=DB11G

$ rman target=/

RMAN> STARTUP MOUNT;

RMAN> RESTORE DATABASE;

Create Redo Logs

Create online redo logs for the standby. It's a good idea to match the configuration of the primary server.

ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=MANUAL;

ALTER DATABASE ADD LOGFILE ('/u01/app/oracle/oradata/DB11G/online_redo01.log') SIZE 50M;

ALTER DATABASE ADD LOGFILE ('/u01/app/oracle/oradata/DB11G/online_redo02.log') SIZE 50M;

ALTER DATABASE ADD LOGFILE ('/u01/app/oracle/oradata/DB11G/online_redo03.log') SIZE 50M;

ALTER SYSTEM SET STANDBY_FILE_MANAGEMENT=AUTO;

In addition to the online redo logs, you should create standby redo logs on both the standby and the primary database (in
case of switchovers). The standby redo logs should be at least as big as the largest online redo log and there should be
one extra group per thread compared the online redo logs. In my case, the following is standby redo logs must be
created on both servers.

ALTER DATABASE ADD STANDBY LOGFILE ('/u01/app/oracle/oradata/DB11G/standby_redo01.log') SIZE 50M;

ALTER DATABASE ADD STANDBY LOGFILE ('/u01/app/oracle/oradata/DB11G/standby_redo02.log') SIZE 50M;

ALTER DATABASE ADD STANDBY LOGFILE ('/u01/app/oracle/oradata/DB11G/standby_redo03.log') SIZE 50M;

ALTER DATABASE ADD STANDBY LOGFILE ('/u01/app/oracle/oradata/DB11G/standby_redo04.log') SIZE 50M;

Once this is complete, we can start the apply process.

Standby Server Setup (DUPLICATE)

Copy Files

Create the necessary directories on the standby server.

$ mkdir -p /u01/app/oracle/oradata/DB11G

$ mkdir -p /u01/app/oracle/fast_recovery_area/DB11G

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
$ mkdir -p /u01/app/oracle/admin/DB11G/adump
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
Copy the files from the primary to the standby server.
search

Classic Flipcard Magazine


$ # Standby Mosaicto all
controlfile Sidebar Snapshot Timeslide
locations.

$ scp oracle@ol5-112-dga1:/tmp/db11g_stby.ctl [mailto:oracle@ol5-112-dga1:/tmp/db11g_stby.ctl]


/u01/app/oracle/oradata/DB11G/control01.ctl

$ cp /u01/app/oracle/oradata/DB11G/control01.ctl /u01/app/oracle/fast_recovery_area/DB11G/control02.ctl

$ # Parameter file.

$ scp oracle@ol5-112-dga1:/tmp/initDB11G_stby.ora [mailto:oracle@ol5-112-dga1:/tmp/initDB11G_stby.ora]


/tmp/initDB11G_stby.ora

$ # Remote login password file.

$ scp oracle@ol5-112-dga1:$ORACLE_HOME/dbs/orapwDB11G [mailto:oracle@ol5-112-


dga1:$ORACLE_HOME/dbs/orapwDB11G] $ORACLE_HOME/dbs

Start Listener

When using active duplicate, the standby server requires static listener configuration in a "listener.ora" file. In this case I
used the following configuration.

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(GLOBAL_DBNAME = DB11G.WORLD)

(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)

(SID_NAME = DB11G)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = ol5-112-dga2.localdomain)(PORT = 1521))

(DESCRIPTION =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

ADR_BASE_LISTENER = /u01/app/oracle

Make sure the listener is started on the standby server.

$ lsnrctl start

Create Standby Redo Logs on Primary Server

The DUPLICATE command automatically creates the standby redo logs on the standby. To make sure the primary
database is configured for switchover, we must create the standby redo logs on the primary server.

ALTER DATABASE ADD STANDBY LOGFILE ('/u01/app/oracle/oradata/DB11G/standby_redo01.log') SIZE 50M;


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
ALTER DATABASE ADD STANDBY LOGFILE ('/u01/app/oracle/oradata/DB11G/standby_redo02.log') SIZE 50M; search

ALTER DATABASE ADD STANDBY LOGFILE ('/u01/app/oracle/oradata/DB11G/standby_redo03.log') SIZE 50M;


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
ALTER DATABASE ADD STANDBY LOGFILE ('/u01/app/oracle/oradata/DB11G/standby_redo04.log') SIZE 50M;

Create Standby Using DUPLICATE

Start the auxillary instance on the standby server by starting it using the temporary "init.ora" file.

$ export ORACLE_SID=DB11G

$ sqlplus / as sysdba

SQL> STARTUP NOMOUNT PFILE='/tmp/initDB11G_stby.ora';

Connect to RMAN, specifying a full connect string for both the TARGET and AUXILLARY instances. DO not attempt to
use OS authentication.

$ rman TARGET sys/password@DB11G [mailto:sys/password@DB11G] AUXILIARY sys/password@DB11G_STBY


[mailto:sys/password@DB11G_STBY]

Now issue the following DUPLICATE command.

DUPLICATE TARGET DATABASE

FOR STANDBY

FROM ACTIVE DATABASE

DORECOVER

SPFILE

SET db_unique_name='DB11G_STBY' COMMENT 'Is standby'

SET LOG_ARCHIVE_DEST_2='SERVICE=db11g ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)


DB_UNIQUE_NAME=DB11G'

SET FAL_SERVER='DB11G' COMMENT 'Is primary'

NOFILENAMECHECK;

A brief explanation of the individual clauses is shown below.


•FOR STANDBY: This tells the DUPLICATE command is to be used for a standby, so it will not force a DBID change.
•FROM ACTIVE DATABASE: The DUPLICATE will be created directly from the source datafile, without an additional
backup step.
•DORECOVER: The DUPLICATE will include the recovery step, bringing the standby up to the current point in time.
•SPFILE: Allows us to reset values in the spfile when it is copied from the source server.
•NOFILENAMECHECK: Destination file locations are not checked.
Once the command is complete, we can start the apply process.

Start Apply Process

Start the apply process on standby server.

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

If you need to cancel the apply process, issue the following command.

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

If you prefer, you can set a delay between the arrival of the archived redo log and it being applied on the standby server
using the following commands.

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DELAY 30 DISCONNECT FROM SESSION;

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE NODELAY DISCONNECT FROM SESSION;

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Test Log Transport
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
On the primary server, check the latest archived redo log and force a log switch.
search

Classic Flipcard Magazine


ALTER SESSIONMosaic Sidebar Snapshot Timeslide HH24:MI:SS';
SET nls_date_format='DD-MON-YYYY

SELECT sequence#, first_time, next_time

FROM v$archived_log

ORDER BY sequence#;

ALTER SYSTEM SWITCH LOGFILE;

Check the new archived redo log has arrived at the standby server and been applied.

ALTER SESSION SET nls_date_format='DD-MON-YYYY HH24:MI:SS';

SELECT sequence#, first_time, next_time, applied

FROM v$archived_log

ORDER BY sequence#;

Protection Mode

There are three protection modes for the primary database:


•Maximum Availability: Transactions on the primary do not commit until redo information has been written to the online
redo log and the standby redo logs of at least one standby location. If no standby location is available, it acts in the same
manner as maximum performance mode until a standby becomes available again.
•Maximum Performance: Transactions on the primary commit as soon as redo information has been written to the online
redo log. Transfer of redo information to the standby server is asynchronous, so it does not impact on performance of the
primary.
•Maximum Protection: Transactions on the primary do not commit until redo information has been written to the online
redo log and the standby redo logs of at least one standby location. If not suitable standby location is available, the
primary database shuts down.
By default, for a newly created standby database, the primary database is in maximum performance mode.

SELECT protection_mode FROM v$database;

PROTECTION_MODE

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

MAXIMUM PERFORMANCE

SQL>

The mode can be switched using the following commands. Note the alterations in the redo transport attributes.

-- Maximum Availability.

ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=db11g_stby AFFIRM SYNC VALID_FOR=


(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=DB11G_STBY';

ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE AVAILABILITY;

-- Maximum Performance.

ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=db11g_stby NOAFFIRM ASYNC VALID_FOR=


(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=DB11G_STBY';

ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE;

-- Maximum Protection.

ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=db11g_stby AFFIRM SYNC VALID_FOR=


(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=DB11G_STBY';

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
SHUTDOWN IMMEDIATE;

ORACLE APPS DBA


STARTUP MOUNT;
This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine


ALTER Mosaic
DATABASE Sidebar DATABASE
SET STANDBY Snapshot Timeslide
TO MAXIMIZE PROTECTION;

ALTER DATABASE OPEN;

Database Switchover

A database can be in one of two mutually exclusive modes (primary or standby). These roles can be altered at runtime
without loss of data or resetting of redo logs. This process is known as a Switchover and can be performed using the
following statements.

-- Convert primary database to standby

CONNECT / AS SYSDBA

ALTER DATABASE COMMIT TO SWITCHOVER TO STANDBY;

-- Shutdown primary database

SHUTDOWN IMMEDIATE;

-- Mount old primary database as standby database

STARTUP NOMOUNT;

ALTER DATABASE MOUNT STANDBY DATABASE;

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

On the original standby database issue the following commands.

-- Convert standby database to primary

CONNECT / AS SYSDBA

ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;

-- Shutdown standby database

SHUTDOWN IMMEDIATE;

-- Open old standby database as primary

STARTUP;

Once this is complete, test the log transport as before. If everything is working fine, switch the primary database back to
the original server by doing another switchover. This is known as a switchback.

Failover

If the primary database is not available the standby database can be activated as a primary database using the following
statements.

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;

ALTER DATABASE ACTIVATE STANDBY DATABASE;

Since the standby database is now the primary database it should be backed up immediately.

The original primary database can now be configured as a standby. If Flashback Database was enabled on the primary
database, then this can be done relatively easily (shown here). If not, the whole setup process must be followed, but this
time using the original primary server as the standby.

Flashback Database

It was already mentioned in the previous section, but it is worth drawing your attention to Flashback Database once
more. Although a switchover/switchback is safe for both the primary and standby database, a failover renders the original
primary database useless for converting to a standby database. If flashback database is not enabled, the original primary
must be scrapped and recreated as a standby database.
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
An alternative is to enable flashback database on the primary (and the standby if desired) so in the event of a failover,
the primary can be flashed back to the time before the failover and quickly converted to a standby database. That
process is shown here.
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
Read-Only Standby and Active Data Guard

Once a standby database is configured, it can be opened in read-only mode to allow query access. This is often used to
offload reporting to the standby server, thereby freeing up resources on the primary server. When open in read-only
mode, archive log shipping continues, but managed recovery is stopped, so the standby database becomes increasingly
out of date until managed recovery is resumed.

To switch the standby database into read-only mode, do the following.

SHUTDOWN IMMEDIATE;

STARTUP MOUNT;

ALTER DATABASE OPEN READ ONLY;

To resume managed recovery, do the following.

SHUTDOWN IMMEDIATE;

STARTUP MOUNT;

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

In 11g, Oracle introduced the Active Data Guard feature. This allows the standby database to be open in read-only mode,
but still apply redo information. This means a standby can be available for querying, yet still be up to date. There are
licensing implications for this feature, but the following commands show how active data guard can be enabled.

SHUTDOWN IMMEDIATE;

STARTUP MOUNT;

ALTER DATABASE OPEN READ ONLY;

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

Since managed recovery continues with active data guard, there is no need to switch back to managed recovery from
read-only mode in this case.

Regards
Madhan

Posted 13th June 2015 by Unknown

2 View comments

Sridevi K 2 November 2016 at 09:43


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

Blogger 29 November 2017 at 12:24


BlueHost is definitely the best hosting provider with plans for all of your hosting needs.
Reply

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic SidebarDBVerify


Snapshot isTimeslide
a simple external command line utility
13th June 2015

This article describes the basic details of the DBVERIFY (or DBV)

utility which can be used to check Oracle datafiles for signs of

corruption. The article gives summary details of how to use

DBV and what output to expect

DB verify is an simple check of the tablespace’s data file.

[oravis@vis2 ~]$ dbv

DBVERIFY: Release 11.1.0.7.0 - Production on Wed Nov 27 18:01:03 2013

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

Keyword Description (Default)

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

FILE File to Verify (NONE)

START Start Block (First Block of File)

END End Block (Last Block of File)

BLOCKSIZE Logical Block Size (8192)

LOGFILE Output Log (NONE)

FEEDBACK Display Progress (0)

PARFILE Parameter File (NONE)

USERID Username/Password (NONE)

SEGMENT_ID Segment ID (tsn.relfile.block) (NONE)

HIGH_SCN Highest Block SCN To Verify (NONE)

(scn_wrap.scn_base OR scn)

[oratest@linux1]$ dbv FILE=/d01/test/db/apps_st/data/tx_idx4.dbf blocksize=2048 logfile=users01_dbv.log


feedback=100

[oratest@linux1]$ dbv FILE=/d01/test/db/apps_st/data/tx_idx4.dbf blocksize=2048

dbv can be executed by specifying the file name and block size of the datafile. All other parameters are optional.
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

As a DBA we should use this has automated or execute or scheduled regularly.


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

#!/bin/ksh

# Oracle Utilities

# dbv automation script

. oraenv

wlogfile=dbv.${ORACLE_SID}

SQLPLUS=${ORACLE_HOME}/bin/sqlplus

$SQLPLUS -s system/manager >> $wlogfile <<EOF

set echo off feedback off verify off pages 0 termout off

linesize 150

spool dbv.cmd

see dbv script download

select 'dbv file=' || name || ' blocksize=' || block_size ||

' feedback=' || round(blocks*.10,0) -- 10 dots per file

from v\$datafile;

spool off

set feedback on verify on pages24 echo on termout on

EOF

ksh dbv.cmd

# End of script

DBVERIFY: Release 11.1.0.7.0 - Production on Wed Nov 27 19:02:47 2013

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

DBVERIFY - Verification starting : FILE = /d01/test/db/apps_st/data/tx_data33.dbf

..........

DBVERIFY - Verification complete

Total Pages Examined : 204288


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
Total Pages Processed (Data) : 149760 search

Total Pages Failing (Data) : 0


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
Total Pages Processed (Index): 504

Total Pages Failing (Index): 0

Total Pages Processed (Other): 53779

Total Pages Processed (Seg) : 0

Total Pages Failing (Seg) : 0

Total Pages Empty : 245

Total Pages Marked Corrupt : 0

Total Pages Influx :0

Total Pages Encrypted :0

Highest block SCN : 323725254 (2359.323725254)

DBVERIFY: Release 11.1.0.7.0 - Production on Wed Nov 27 19:03:09 2013

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

DBVERIFY - Verification starting : FILE = /d01/test/db/apps_st/data/tx_data34.dbf

.......

Can be executed as individual aswell if you are already in datafiles path.

dbv file=data01.dbf blocksize=8192

DBVERIFY: Release 11.1.0.7.0 - Production on Wed Nov 27 18:04:00 2013

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

DBVERIFY - Verification starting : FILE = /d01/oracle/VIS/db/apps_st/data/data01.dbf

DBVERIFY - Verification complete

Total Pages Examined : 166400

Total Pages Processed (Data) : 133928


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
Total Pages Failing (Data) : 0 search

Total Pages Processed (Index): 13203


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
Total Pages Failing (Index): 0

Total Pages Processed (Other): 2739

Total Pages Processed (Seg) : 0

Total Pages Failing (Seg) : 0

Total Pages Empty : 16530

Total Pages Marked Corrupt : 0

Total Pages Influx :0

Total Pages Encrypted :0

Highest block SCN : 305256713 (2359.305256713)

[oravis@vis2 data]$ dbv file=data01.dbf blocksize=8192

NOTE:

Make sure that the OS user account has read and write permissions or an error will occur with Oracle 11g Release 1 due
to a bug with DBVERIFY.

In addition, Oracle provides block corruption detection and repair with the Oracle 11g Recovery Manager (RMAN) utility
during backup and recovery processing.

Block corruption can also be detected by querying the v$database_block_corruption dynamic performance view. To
repair block corruption, the dbms_repair package can be used with Oracle 11g

OUTPUT of DBV has the following

Total Pages Examined – The number of blocks inspected by dbv. If the entire file was scanned, this value will match the
BLOCKS column for the file in v$datafile.

Total Pages Processed (Data) – The number of blocks inspected by dbv that contained table data.

Total Pages Failing (Data) – The number of table blocks that have corruption.

Total Pages Processed (Index) –The number of blocks inspected by dbv that contained index data.

Total Pages Failing (Index) – The number of index blocks that are corrupted.
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Total Pages Processed (Seg) – This output is new to 9i and allows the command to specify a segment that spans
Classic Flipcard Magazine
multiple files. Mosaic Sidebar Snapshot Timeslide

Total Pages Failing (Seg) – The number of segment data blocks that are corrupted.

Total Pages Empty – Number of unused blocks discovered in the file.

Total Pages Marked Corrupt – This is the most important one. It shows the number of corrupt blocks discovered during
the scan.

Total Pages Influx – The number of pages that were re-read due to the page being in use. This should only occur when
executing dbv against hot datafiles and should never occur when running dbv against cold backup files.

Below script will show the any curruption

SQL>SELECT tablespace_name, segment_type, owner, segment_name

FROM dba_extents

WHERE file_id = <FILE#> and

<BLOCK#> between block_id AND block_id + blocks - 1;

SQL>select file#,name,bytes/2048 from v$datafile;

SQL> show parameter db_block_size

SQL> select tablespace_name, segment_name, TABLESPACE_ID, HEADER_FILE, HEADER_BLOCK

from sys.sys_user_segs

where

tablespace_name='USERS' and SEGMENT_NAME like 'JUNK%';

to check the segmanet DBV

SQL> select t.ts#, s.header_file, s.header_block

2 from v$tablespace t, dba_segments s

3 where s.segment_name='TAB1'

4 and t.name = s.tablespace_name;

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
dbv userid=system/manager SEGMENT_ID=2.5.37767

ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

For more details please check Oracle support

DBV Reports Corruption Even After Drop/Recreate Object (Doc ID 269028.1)

DBVERIFY - Database file Verification Utility (7.3.2 - 11.2) (Doc ID 35512.1)

Meaning Of The Message "Block Found Already Corrupt" When Running DBVerify (Doc ID 139425.1)

DBVERIFY enhancement - How to scan an object/segment (Doc ID 139962.1)

Regards

Madhan

Posted 13th June 2015 by Unknown

1 View comments

Sridevi K 2 November 2016 at 09:43


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

Oracle Application R12.1.1 9239090 Patch adrelink failed LINUX


22nd May 2015
6.5
oraapps]$ grep failed /oracle/CBE/apps/apps_st/appl/admin/CBE/log/adrelink.log
Relink of module "FEMCCE" failed.
Relink of module "MSCCPP" failed.
-----------------------------------------
----------------------------------------
Relink of module "MSCSLD" failed.
Relink of module "MSCXGCAL" failed.
Well I tried two tips
1.
alter
$AD_TOP/bin/adrelinknew.sh:
CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh'
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
with

ORACLE APPS DBA


CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh -Wl,--noinhibit-exec'
This blog is written to share and help doer's.Please
2.downgrade The binutils from "binutils-2.20......el6'" to" binutils-2.17.50.0.6-6.0.1.el5.x86_64.rpm"
sh… search

but It's all on failed,the questions is still exist.


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
Solution:
After following the steps in Doc. 761566.1 and adrelink still doesn't work, try the following for RHEL 6 (only):
view $AD_TOP/bin/adrelinknew.sh
linux_release_file="/etc/issue" - Depending on your configuration, /etc/issue may not have proper permissions for
adrelink to view the file. You can change this to /etc/redhat-release.
Check the next couple of lines below linux_release_file="/etc/redhat-release" for:
if test -f "$linux_release_file"; then
grep "5\." $linux_release_file > /dev/null
Change "5\." to "6\.". It should now show:
if test -f "$linux_release_file"; then
grep "6\." $linux_release_file > /dev/null
This should resolve your issue.

You may also review the following docs and see if any applies.
ADRELINK of MSC and MSO executables fail (Doc ID 1492763.1)
Unable To Relink MSC And MSO Executables While Applying Patch 9032460 On 12.1.2 instance (Doc ID 1119473.1)
Unable to relink MSC/MSO executables on OEL/RHEL5 and also RedHat 4.9 (Doc ID 1273390.1)
R12: MSC Modules Error Out When Relinking with Adrelink (Doc ID 1345788.1)

Thanks
Madhan

Posted 22nd May 2015 by Unknown

1 View comments

Sridevi K 2 November 2016 at 09:43


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

22nd May 2015 Failure of adgentns.pl During Adcfgclone.pl AppsTier 89%


completed in AppsCloning
Ebiz Applcaition R12.1.3 in oracle enterprise linux.
Database cloning completed sucessfully and while running adcfgclone.pl appstier errored out with adgentns.pl.
Logfile show autoconfig error.
No errors in database autoconfig and no listener file generated TNS_admin in appstier
Tried the below dint work.
exec FND_CONC_CLONE.setup_clean;
reruning dbtier autoconfig ; sucessful
rerunning appstier autoconfig : Failed with same issues.
FYI
tail of Cloning log file
Running Rapid Clone with command:
Running:
...............................
Beginning application tier Apply - Wed May 20 09:52:16 2015
............/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -.
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ApplyAppsTier ...............comn/clone -showProgress
ORACLE APPS DBA
APPS Password : Log file located at ...../admin/log/ApplyAppsTier_05200952.log
- 89% completed
This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine


ERROR Mosaic
while running Sidebar Snapshot Timeslide
Apply...
Wed May 20 10:03:23 2015
ERROR: Failed to execute .../apps/apps_st/comn/clone/bin/adclone.pl
Please check logfile.
Autoconfig error log file.....

[SETUP PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /......./inst/apps/tst1_a1/admin/install
adgendbc.sh INSTE8_SETUP 1

AutoConfig is exiting with status 1


RC-50014: Fatal: Execution of AutoConfig was failed
Raised by oracle.apps.ad.clone.ApplyApplTop
ERROR: AutoConfig completed with errors. Check logfile at .../admin/log/ApplyAppsTier_05200952.log for details.
ApplyApplTop Completed Successfully.
# Checking the status of AutoConfig run of ApplyApplTop
Warning : AutoConfig has completed with errors .
Please review the AutoConfig section in the logfile. If required, you can re-run AutoConfig from command line after fixing
the problem
Solution
Check the host file entires dbTier and appsTier.

There is an issue with database host so the creation of apps listner got error out...
Please look at some more note-ids for similar errors.
EBS Clone perl adcfgclone.pl appsTier afcpctx.sh RC-50014: Fatal: Execution of AutoConfig Failed (Doc ID 1903426.1)
Autoconfig fails: AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora. (Doc ID
1500361.1)
AC-50480: Internal error occurred: java.sql.SQLException: RC-50014: Fatal: Execution Of Autoconfig Failed
"APPS.FND_NET_SERVICES" Has Errors (Doc ID 337348.1)

Thanks
Madhan

Posted 22nd May 2015 by Unknown

1 View comments

Sridevi K 2 November 2016 at 09:44


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

18th March 2015 Setting EM Blackouts from the GUI and Command Line and
CLOUD CONTROL 12C: CREATE RETROACTIVE
BLACKOUTS
CLOUDMadhanappsdba,Some
CONTROLof12C: CREATE
the blogs will RETROACTIVE
directly points oracle BLACKOUTS
notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
How-To: Create Retroactive Blackouts
Product:
Classic Flipcard Enterprise
Magazine Manager
Mosaic Cloud Control
Sidebar Snapshot12CTimeslide
Product Version: 12.1.0.4.0
OS: Linux x86-64

Goal

Setting Blackouts allow you to support planned outage periods to perform emergency or scheduled maintenance. Putting
a targets (or multiple) under blackout will suspend monitoring and prevents unnecessary alerts being generated when for
example a database target is brought down for scheduled maintenance operation such as the application of a PSU
Patch.

When calculating a target’s availability, blackout periods are automatically excluded.

As said, a blackout can be set for one or multiple targets or for all targets defined on a specific host. You can schedule a
blackout to run immediately or in the future. Furthermore a blackout can be scheduled to run indefinitely or stop after a
certain duration specified.

Blackouts can also be extended (when for example maintenance takes longer than anticipated) or stopped (if
maintenance took less time than foreseen).

When a blackout period ends, the Management Agent re-evaluates automatically all metrics set for the target(s).

The blackout functionality is available from both the Oracle EM Cloud Control 12c console as well as via the EM
command-line interface “EMCLI”.

Often scheduled maintenance on one or multiple targets is performed without putting the target(s) under blackout. These
periods of time would be reflected as target downtime instead of planned blackout periods.

This will have a negative impact on the target’s availability records. In such situations, EM Cloud Control 12c allows you
to go back and define a blackout period in the past that should have occurred at that time. Having this possibility to
create “retroactive blackouts”, will show a more accurate picture of the target’s availability.

This document will show you how to define “retroactive blackouts”.

Retroactive Blackouts

In order to use this feature, you need to enable it. Go to “Summary – Monitoring - Blackouts" as show below.

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_1.png]

The following screen will be displayed.


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_2.png]

In order to use the feature to create "Retroactive Blackouts" we need first to activate it.

Click on "Retroactivde Blackout Configuration".

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_3.png]

Select the checkbox to enable the Retroactive Blackout feature.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_4.png]

Although you can choose the reason for the blackout from a drop-down list, it is also possible to enter a new reason for a
blackout defined. Click on "Manage Reasons".

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_5.png]

Click "Add Another Row". In our example I add the new reason "DB: Database Other".

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_6.png]

Click "OK".

Now we will create a "Retroactive Blackout". On the Blackouts main page, under "Related Links" (bottom of the page),
click on the link "Create Retroactive Blackout". The "Create Retroactive Blackout: Properties" page will be displayed
as shown below.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_8.png]

Choose a reason for the blackout and click "Add".

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_9.png]

From the screen "Search and Select: Targets", select the target(s) that you want to create a "Retroactive Blackout"
for.

In our example we choose a "Database Instance" as target type.

NOTE: Depending on the target type chosen, certain steps may be skipped. In our case we skip for example the steps
"Member Targets", "Targets on Host" and "Services", as a database instance has for example no "Member Targets".

Click "Next".

The "Create Retroactive Blackout: Time Period" screen is displayed. Here you have two option to choose from. The
first one is "Custom" where you specify the time period for Retroactive Blackout as shown below.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_10.png]

We choose the second option to specify the time period, which is "From Target Downtime Duration", which will display
the downtime duration available for the selected target(s).

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_11.png]

In our example there are 4 downtime duration available to choose from for this specific Database Instance target.
Choose a target downtime duration and click "Next". The "Create Retroactive Blackout:Review" page will be
displayed.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_12.png]

Click "Next". A confirmation is displayed as shown below.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[http://itconquer.com/uploads/images/DBAResources/TippsTricks/RetroActiveBlackouts/RetroactiveBlackouts_13.png]

EMCLI Command line

As from EM 12c R4 (12.1.0.4) there is new verb availabe to create "retroactive blackouts". This feature needs to be
enabled from the Cloud Control Console as shown previously for usung this "emcli" command.

With the following command the syntax plus examples is shown for this "create_rbk" verb.

oracle@OMS_HOST:/u01/app/oracle/product/12.1.0.4/middleware/oms/bin> ./emcli help create_rbk


emcli create_rbk -reason="<blackout reason>"
-add_targets="name1:type1;name2:type2;..."
[-propagate_targets]
-schedule="start_time:<yyyy-MM-dd HH:mm:ss>;end_time:<yyyy-MM-dd HH:mm:ss>;[tzregion:<timezone region>;]"

Description:
Creates Retro-active blackout on given targets and updates their availability.
Only Enterprise Manager Administrators with OPERATOR privilege on target can perform this action.
The retro-active blackout feature needs to be enabled from the UI for using this emcli command.
The time period for creating retro-active blackout should not fall in current availability period
for any of the given targets.

Examples:
1. emcli create_rbk -reason="Testing" -add_targets="Oemrep_Database:oracle_database"
-schedule="start_time:2013-09-20 12:12:12;end_time:2013-09-20 12:15:00;tzregion:UTC"
Creates retro-active blackout on Oemrep_Database and updates the
target's availability record from 2013-09-20 12:12:12 UTC to 2013-09-20 12:15:00 UTC as blackout.
2. emcli create_rbk -reason="Testing" -add_targets="slc03sgc.us.oracle.com:host"
-schedule="start_time:2013-09-20 12:12:12;end_time:2013-09-20 12:15:00;tzregion:UTC"
-propagate_targets
Creates retro-active blackout on all targets on host slc03sgc.us.oracle.com
and updates their availability records from
2013-09-20 12:12:12 UTC to 2013-09-20 12:15:00 UTC as blackout.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
- See more at: http://itconquer.com/news/67/63/Cloud-Control-12C-Create-Retroactive-Blackouts#sthash.of0D9MpC.dpuf
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
--------------------------------------------------------X--------------------------------X--------------------------------------
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

Using Blackouts
Blackouts allow Enterprise Manager administrators to suspend all data collection activity on one or more monitored
targets. The primary reason for blacking out targets is to allow Enterprise Manager administrators to perform scheduled
maintenance on those targets.

A blackout can be defined for individual target(s), a group of multiple targets that reside on different hosts, or for all
targets on a host. The blackout can be scheduled to run immediately or in the future, and to run indefinitely or stop after a
specific duration. Blackouts can be created on an as-needed basis, or scheduled to run at regular intervals. If, during the
maintenance period, the administrator discovers that he needs more (or less) time to complete his maintenance tasks, he
can easily extend (or stop) the blackout that is currently in effect.

Blackout functionality is available from both the Enterprise Manager console as well as via the Enterprise Manager
command-line interface (EMCLI). EMCLI is often useful for administrators who would like to incorporate the blacking out
of a target within their maintenance scripts.

[https://www.blogger.com/null]

5.1 Working with [https://www.blogger.com/null] Blackouts


Blackouts allow you to collect accurate monitoring data. For example, you can stop data collections during periods where
a managed target is undergoing routine maintenance, such as a database backup or hardware upgrade. If you continue
monitoring during these periods, the collected data will show trends and other monitoring information that are not the
result of normal day-to-day operations. To get a more accurate, long-term picture of a target's performance, you can use
blackouts to exclude these special-case situations from data analysis.

[https://www.blogger.com/null] [https://www.blogger.com/null] Blackout Access

Enterprise Manager administrators who have at least Blackout Target privileges on all Selected Targets in a blackout will
be able to create, edit, stop, or delete the blackout.

In case an administrator has at least Blackout Target privileges on all Selected Targets (targets directly added to the
blackout), but does not have Blackout Target privileges on some or all of the Dependent Targets, then that administrator
will be able to edit, stop, or delete the blackout. For more information on Blackout access, see About Blackouts Best
Effort.

[https://www.blogger.com/null]

5.1.1 Creating a [https://www.blogger.com/null] Blackout


To create a blackout:

1. From the Enterprise menu, select Monitoring, then select Blackouts.

2. From the table, click Create. Enterprise Manager displays a wizard page to guide you through the steps
required to create a blackout. Click Help from any wizard page for more information on specific steps.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

3. To display the latest blackout information, click the refresh icon.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
[https://www.blogger.com/null]

5.1.2 Editing a [https://www.blogger.com/null] Blackout


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

To edit a blackout:

1. From the Enterprise menu, select Monitoring, then select Blackouts.

2. If necessary, use the Search and display options to show the blackouts you want to change in the blackouts
table.

3. Select the desired blackout and click Edit.

Note:
Enterprise Manager also allows you to edit blackouts after they have already started.

[https://www.blogger.com/null]

5.1.3 Viewing [https://www.blogger.com/null] Blackouts


To view information and current status of a blackout:

1. From the Enterprise menu, select Monitoring, then select Blackouts.

2. If necessary, you can use the Search and display options to show the blackouts you want to view in the
blackouts table.

3. Select the desired blackout and click View. Alternatively, if you are in View By - 'Targets in Blackout', then you
can click on blackout
Madhanappsdba,Some status
of the blogsin
willthe table
directly to access
points the orView
oracle notes otherBlackout page. If you
blogs for myreference. are in
Dynamic View
Views By -Powered
theme. 'Blackout
by Blogger.
Name', then you can click on a blackout name in the table to access the View Blackout page.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

You can bookmark the View Blackout page as a quick way to monitor the status of a particular blackout. Click Refresh to
display the most recent blackout information.

[https://www.blogger.com/null]

5.1.3.1 Viewing Blackouts on Targets Monitored by a Specific Management Agent


To view the blackouts configured for the targets monitored by the Management Agent:

1. From the Cloud Control home page, click Targets and then All Targets. In the All Targets page, locate the
Management Agent in the list of targets. Click on the Management Agent's name. This brings you to the
Management Agent's home page.

2. The list of targets monitored by the Management Agent are listed in the Monitored Targets section.

3. For each of target in the list:

a. Click the target name. This brings you to the target's home page.

b. From the <Target> menu, select Monitoring and then click Blackouts. This allows you to check
any currently running blackouts or blackouts that are scheduled in the future for this target.

[https://www.blogger.com/null]

5.1.3.2 Viewing [https://www.blogger.com/null] Blackouts from Target Home Pages


For most target types, you can view a blackout information from the target home page for any target currently under
blackout. A blackout message provides pertinent blackout status information for that target.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[https://www.blogger.com/null]

5.1.3.3 Viewing Blackouts from Groups and Systems Target Administration Pages
For Groups and Systems, you can view blackout information about the number of active/scheduled blackouts on a
group/system and its member targets.

[https://www.blogger.com/null]

5.1.4 Purging Blackouts that have Ended


When managing a large number of targets, the number of completed blackouts, or those blackouts that have been ended
by an administrator can become quite large. Removing these ended blackouts facilitates better search an display for
current blackouts.

To purge ended blackouts from Enterprise Manager:

1. From the Enterprise menu, select Monitoring, then select Blackouts.

2. Use the search criteria to filter for the desired targets.

3. From the Show drop-down menu, select History.

4. In the table, select the ended blackouts you want to remove and click Delete. The purge confirmation page
appears.

5. Click Yes to complete the purge process.

5.2 Controlling [https://www.blogger.com/null]


[https://www.blogger.com/null] Blackouts Using the
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Command LineThis
ORACLE APPS DBA
Utility
blog is written to share and help doer's.Please sh…
This blog is written to share and help doer's.Please sh search

You can control blackouts from the Oracle Enterprise Manager 12c Cloud Control Console or from the Enterprise
Classic Flipcard Magazine
Manager command Mosaic Sidebar
line utility ( emctlSnapshot
). However,Timeslide
if you are controlling target blackouts from the command line, you
should not attempt to control the same blackouts from the Cloud Control Console. Similarly, if you are controlling target
blackouts from the Cloud Control Console, do not attempt to control those blackouts from the command line.

From the command line, you can perform the following blackout functions:

Starting Immediate Blackouts

Stopping Immediate Blackouts

Checking the Status of Immediate Blackouts

Note:
When you start a blackout from the command line, any Enterprise Manager jobs scheduled to run
against the blacked out targets will still run. If you use the Cloud Control Console to control blackouts,
you can optionally prevent jobs from running against blacked out targets.

To use the Enterprise Manager command-line utility to control blackouts:

1. Change directory to the AGENT_HOME/bin directory (UNIX) or the


AGENT_INSTANCE_HOME\bin directory (Windows).

2. Enter the appropriate command as described in Table 5-1, "Summary of Blackout Commands"
[http://docs.oracle.com/cd/E24628_01/doc.121/e24473/blackouts.htm#BEIIIEHD] .

Note:
When you start a blackout, you must identify the target or targets affected by the blackout. To obtain
the correct target name and target type for a target, see "Listing the Targets on a Managed Host."
[http://docs.oracle.com/cd/E24628_01/doc.121/e24473/emctl.htm#BABGIAGE]

[https://www.blogger.com/null] [https://www.blogger.com/null] Table 5-1 Summary of Blackout Commands

Blackout Action Command

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Blackout Action Command
ORACLE APPS DBA This blog[https://www.blogger.com/null]
Set an immediate blackout on a
is written to share and help doer's.Please sh… search
emctl start blackout <Blackoutname>
particular target or list of targets
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
[<Target_name>[:<Target_Type>]]....

[-d <Duration>]

Be sure to use a unique name for the blackout so you can refer to it later when you want to stop or check the
status of the blackout.

The -d option is used to specify the duration of the blackout. Duration is specified in [days] hh:mm where

days indicates number of days, which is optional

hh indicates number of hours

mm indicates number of minutes

If you do not specify a target or list of targets, Enterprise Manager will blackout the local host target. All
monitored targets on the host are not blacked out unless a list is specified or you use
the -nodelevel argument.

If two targets of different target types share the same name, you must identify the target with its target type.

Stop an immediate blackout [https://www.blogger.com/null] emctl stop blackout <Blackoutname>

Set an immediate blackout for all [https://www.blogger.com/null] emctl start blackout <Blackoutname> [-nodeLevel] [-d <Duration>
targets on a host
The -nodeLevel option is used to specify a blackout for all the targets on the host; in other words, all the
targets that the Management Agent is monitoring, including the Management Agent host itself.
The -nodeLevel option must follow the blackout name. If you specify any targets after
the -nodeLevel option, the list is ignored.

Check the status of a blackout [https://www.blogger.com/null] emctl status blackout [<Target_name>[:<Target_Type>]]....

Use the following examples to learn more about controlling blackouts from the Enterprise Manager command line:

To start a blackout called "bk1" for databases [https://www.blogger.com/null] "db1" and "db2," and for Oracle Listener
"ldb2," enter the following command:

$PROMPT> emctl start blackout bk1 db1 db2 ldb2:oracle_listener -d 5 02:30

The blackout starts immediately and will last for 5 days 2 hours and 30 minutes.

To check the status of all the blackouts on a managed host:

$PROMPT> emctl status blackout

To stop blackout "bk2" immediately:

$PROMPT> emctl stop blackout bk2

To start an immediate blackout called "bk3" for all targets on the host:

$PROMPT> emctl start blackout bk3 -nodeLevel

To start an immediate blackout called "bk3" for database "db1" for 30 minutes:

$PROMPT> emctl start blackout bk3 db1 -d 30

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
To start an immediate blackout called "bk3" for database "db2" for five hours:
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
$PROMPT> emctl start blackout bk db2 -d 5:00

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

[https://www.blogger.com/null]

5.3 About [https://www.blogger.com/null] Blackouts Best


Effort
The Blackouts Best Effort feature allows you to create blackouts on aggregate targets, such as groups or systems, for
which you do not have Blackout Target (or Higher) privileges on all members of the aggregate target.

Here, an Enterprise Manager administrator has Blackout Target privilege on an aggregate target but do not have
OPERATOR privilege on its member/associated targets. You should ideally create a Full Blackout on this aggregate
target. When defining the blackout, you are allowed to select any member target, even those member targets for which
you have no Blackout Target privileges.

When the blackout actually starts, Enterprise Manager checks privileges on each member target and only blackout those
on which you have Blackout Target( or Higher) privileges. This automated privilege check and target blackout selection is
Enterprise Manager's "best effort" at blacking out the aggregate target.

[https://www.blogger.com/null]

5.3.1 When to Use Blackout Best Effort


The Blackout Best Effort functionality is targeted towards the creation of blackouts on targets of any aggregate type, such
as Group, Hosts, Application Servers, Web Applications, Redundancy Groups, or Systems.

All targets the blackout creator has Blackout Target (or higher) privilege on will be displayed in the first step of Create/Edit
Blackout Wizard. Once the blackout creator selects an aggregate type of target to be included in the Blackout Definition,
this Blackout is "Full Blackout" by default.

The creator has the option of choosing the Blackout to run on ”All Current” or ”Selected” Targets, by selecting the
appropriate values from the List box. Only when the "Full Blackout" option is chosen, will Blackout Best Effort affect
targets for which the creator does not have Blackout Target (or higher) privileges.

[https://www.blogger.com/null] Example Use Case

Consider 3 targets T1,T2 and T3 (all databases). A Group G1 contains all these 3 targets.

User U1 has OPERATOR privilege on T1,T2 and G1. User U1 has VIEW privilege on T3.

User U1 creates a scheduled full blackout on target G1. Scheduled implies that the blackout will start at a later point in
time.

At the time of blackout creation, the tip text Needs Blackout Target privilege, see Tip below the table would be shown
beside target T3.

When this blackout starts, if by that time User U1 has been granted OPERATOR privileges on target T3, then target T3
would also be under blackout. Otherwise only targets T1, T2 and G1 will be under blackout.

-------------------------------------------X------------------------------------------X-----------------------------------------

Setting EM Blackouts from the GUI and Command Line


[http://newappsdba.blogspot.in/2009/11/setting-em-blackouts-from-gui-
and.html]
Oracle Enterprise Manager provides you with the ability to monitor your environments and alert you once specified thresholds have been
reached. Blackouts allow you to suspend monitoring so you do not get notified. This is useful for scheduled maintenance windows, such
as cold backups, where the application and/or database may not be available.

As well, blackouts also suspends data collection for the given targets. This means that certain metrics such as availability will not be
affected.

To create a blackout from the GUI, login to Enterprise Manager, navigate to the target you would like to blackout and at the bottom of the
page under Related Links you will see a Blackouts link. You will be brought to the following page:
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
On the screen above you can view any blackouts that may currently be in effect as well as create new ones. To create a new blackout click

ORACLE APPS DBA


on the create button.
This blog is written to share and help doer's.Please sh… search

[http://lh4.ggpht.com/_bMH90GEkTL4/Su9dlBKYHbI/AAAAAAAABa0/DHKAUZqInsc/s1600-h/clip_image002%5b8%5d%5b2%5d.jpg]
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
On this page you can create a name for the blackout, with the default being “Blackout-<timestamp>”. You can also select the targets you
wish to set the blackout for. As you can see from the screenshot I am going to set a blackout for an infrastructure application server
(infra10g).

You can also provide a reason for the blackout by click on the Reason drop down list. Quite a few are available, from Server
Bounce toSecurity Patch. Jobs can be disabled by deselecting the Run jobs during the blackout checkbox. If your applying a security
patch then you may not want a scheduled backup to run as it will either error or cause problems.

[http://lh4.ggpht.com/_bMH90GEkTL4/Su9dl5RFHZI/AAAAAAAABa8/8sybNWAD7qY/s1600-
h/clip_image002%5b10%5d%5b2%5d.jpg]

The next screen allows you to select which components within the target will be blacked out. I selected a full blackout but you can select
certain members if the outage will only affect specific components.

[http://lh5.ggpht.com/_bMH90GEkTL4/Su9dmcr4sOI/AAAAAAAABbE/eAbFu3Ij1DU/s1600-h/clip_image002%5b12%5d%5b2%5d.jpg]

This screen allows you to schedule the blackout. It can either start immediately or you can choose a date along with a duration. Blackouts
can be repeating as well, so you only have to create one for that monthly maintenance window for example.

The last screen provides a summary and once you have finished reviewing click on the Finish button.

You can also set blackouts from the command line, which is useful if you have some maintenance scripts which are not executed from
Enterprise Managers job system. I’ve only tested this on linux but it should be the same for windows.

To set a blackout for a list of targets:

emctl start blackout <Blackoutname> [<Target_name>[:<Target_Type>]]…. [-d Duration]

To set a blackout for all targets on a host:

emctl start blackout <Blackoutname> [-nodeLevel] [-d <Duration>]

-nodeLevel tells the agent to stop monitoring all targets on the server.

-d Duration allows you to set a duration in the format of [days] hh:mm. ex. 1 02:05 means the blackout will last for 1 day, 2 hours and 5
minutes.

For example, to use this in a script in which all targets will be unavailable you would start a blackout at the beginning of the script and stop
it at the end:

cd $AGENT_HOME/bin
./emctl start blackout alltargets-myserver –nodeLevel
<Perform Maintenance Tasks>
cd $AGENT_HOME/bin
./emctl stop blackout alltargets-myserver

Troubleshooting

In case you hit issues with blackouts take a look at the following notes:

Subject: Agent Blackout Initiated By Emctl Command Not Ending Doc ID: 559577.1

Subject: EMDiagkit Download and Master Index Doc ID: 421053.1

Subject: How to Troubleshoot the EM 10gR1 Blackout Sub-system Doc ID: 284024.1

Subject: Troubleshooting Blackouts in EM 10g Grid Control using EMDiag Kit Doc ID: 300671.1

They provide alot of information and solutions to different scenarios. I hit an issue over the weekend in which the blackout didn’t end
properly. When I tried to stop it from the command line:

[oracle@myserver ~]$ /u01/app/oracle/product/agent10g/bin/emctl stop blackout alltargets-


myserver
Oracle Enterprise Manager 10g Release 3 Grid Control 10.2.0.3.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Blackout stop Error : Blackout name alltargets-myserver is invalid

When trying to end the blackout via Enterprise Manager:

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Error stopping the blackout on "infra10g": ORA-20710: Agent-side blackouts cannot be edited

ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
or stopped ORA-06512: at "SYSMAN.MGMT_BLACKOUT_ENGINE", line 501 ORA-06512: at
"SYSMAN.MGMT_BLACKOUT_ENGINE", line 3262 ORA-06512: at "SYSMAN.MGMT_BLACKOUT", line 74 ORA-
06512: at "SYSMAN.MGMT_BLACKOUT_UI", line 1167 ORA-06512: at line 1 .
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
To fix this problem I performed the following:
1. Shutdown the agent on the target server myserver
2. Removed the blackouts.xml file under $AGENT_HOME/sysman/emd
3. Used note 421053.1 to install the EMDiag kit
4. Logged in as sysman on the Enterprise Managers repository database and executed the following query:

select blackout_guid, blackout_name


from mgmt_blackouts;

BLACKOUT_GUID BLACKOUT_NAME
-------------------------------- ----------------------
30E2956CA329F0E59FBDF50951F2578E alltargets-myserver

5. Then executed:

exec mgmt_diag.KillBlackout(HEXTORAW(‘30E2956CA329F0E59FBDF50951F2578E’));

6. Restarted the agent on myserver and when I looked in Enterprise manager the blackout had cleared.

I have seen the command used above for some other scenarios but not this one specifically. Before executing any commands in your
environment please test first.

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

Create Node Level Blackouts on Enterprise Manager 12c


If you plan to have server maintenance then do not forget to create your node level blackout to keep unwanted alerts on
your Enterprise Manager 12c.

In this demo I show you how to create node level blackout from Enterprise Manager 12c or from command line.

You can create node level blackouts for one node or for many nodes at a time.

In this demo I will be adding memory to my vbox machine and I do not want o get alerts from Enterprise Manager 12c.

Create Node Level Blackout from Target


1. Log into OEM

2. Go to the host target homepage.

3. Click Host>Control>Create Blackout


[http://4.bp.blogspot.com/-W989-OW9KfI/Ui_UTEJuhqI/AAAAAAAABnc/lJt5IaA-kNg/s1600/1.JPG]

4. Give the blackout a name or leave the default. Add comments and select a reason if needed. Un-check the box to not
allow jobs to run during the blackout. Click Next
[http://1.bp.blogspot.com/-tylm1uul8nY/Ui_UWAVAwJI/AAAAAAAABos/JkKcqerpKuI/s1600/2.JPG]

5. You can see that all targets on the host will be blacked out. Click Next

6. You can set the blackout to start immediate or at a later date and time. You can set the blackout duration to indefinite, a
certain length or to an until date and time. You can also set the blackout to repeat. Click Next

I set the blackout to start immediately and the duration to indefinite.

7. Review the blackout configuration and click Finish.

8. You will see a message that states the blackout has started. Now in the search box type the host that you just created the
blackout and click the arrow.
[http://4.bp.blogspot.com/-Nv-ihm0mKhM/Ui_UaePqiCI/AAAAAAAABqU/KFSiplcAMQ0/s1600/6.JPG]

9. We can now see that all targets that are part of the host show a status of blackout.
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS
10. I will DBA
now shutdown my server.
This blog is written to share and help doer's.Please sh… search
[http://2.bp.blogspot.com/-VoArt4APuls/Ui_Ua1TmGMI/AAAAAAAABqk/M_0bYabVWtQ/s1600/8.JPG]

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

11. We can see that the targets are in blackout and no new alerts have come in for availability.
[http://4.bp.blogspot.com/-x5PsAj_HF9g/Ui_UbPC7R4I/AAAAAAAABqs/oi4SI0G5e9k/s1600/9.JPG]

12. I add new memory to my server.

13. The server has been restart and all targets on my host have been restarted.

Remove Blackout

14. Back in OEM select the host which we blacked out.

15.  Click Host>Control>End Blackout.

16. Click Yes

17. You will see a message that states the blackout was successfully ended. Type the host into the search box and click the
arrow.
[http://1.bp.blogspot.com/-T3i2AgiNuno/Ui_UUdSu9rI/AAAAAAAABoE/Ko98xMGQI2U/s1600/15.JPG]

18. You will see the targets in a pending state.


[http://4.bp.blogspot.com/-c4yBoa8vNLE/Ui_UUrPixdI/AAAAAAAABoQ/NdsNL5Glf9Q/s1600/16.JPG]

19. If you wait a few minutes and click refresh you will then see the target status to online.
[http://1.bp.blogspot.com/-AwuWj5sFXxo/Ui_UUysRC8I/AAAAAAAABoI/o8BCgZbC6zs/s1600/17.JPG]

Create Blackouts for More Then One Target

1. Log into OEM

2. Click Enterprise>Monitoring>Blackouts
[http://2.bp.blogspot.com/-UzfWW9R46iQ/Ui_UVpfyCuI/AAAAAAAABoc/7HUXlbTnzzc/s1600/18.jpg]

3. Click Create

4. Give the blackout a name or leave the default. Add comments and select a reason if needed. Un-check the box to not
allow jobs to run during the blackout. Click Add

5. Set the target type to host and search for your targets. Select the targets that need to be in this blackout operation.
Click Select
[http://1.bp.blogspot.com/-iuL01ax0kmY/Ui_UWhXsP2I/AAAAAAAABpA/AEDvmgzldy8/s1600/21.JPG]

 6. All the targets on the host will be part of the blackout click Next
[http://4.bp.blogspot.com/-Pgtr7r-QAhI/Ui_UXO97FsI/AAAAAAAABpE/izqrm3U-1Ck/s1600/22.JPG]

7. You can set the blackout to start immediate or at a later date and time. You can set the blackout duration to indefinite, a
certain length or to an until date and time. You can also set the blackout to repeat. Click Next

I set the blackout to start immediately and the duration to indefinite.


[http://4.bp.blogspot.com/-n6M1Qj4_wcw/Ui_UXI9k-_I/AAAAAAAABpM/sx6hy1uj3Z4/s1600/23.JPG]

8. Review the blackout and click Finish

9. You will see a message that confirms the blackout has been started.
Remove Blackout

10. Search for a host that is the parent of the blackout. Select one of the targets in the blackout and click Stop.

11. You will see all targets in the blackout that will be stopped. Click Yes

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE
12. YouAPPS DBA
will see a message that states
Thisthe request
blog to stop theto
is written blackout.
shareThe status
and for the
help blackout will showsh
doer's.Please stop
… pending.
search
If you wait a few minutes and then click refresh the status will change to stopped.
[http://2.bp.blogspot.com/-5TXcAwBJr-c/Ui_UZK3VaDI/AAAAAAAABpw/_j1dPMSEgOM/s1600/28.JPG]
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

Command Line
You can also create node level blackout from the server
$cd $AGENT_HOME/bin
$./emctl start blackout `hostname` -nodelevel

In this article, we will discuss blackout period in Oracle enterprise manager. The blackout is the part of the
administrator in Oracle. A blackout period can be defined for individual targets, a group of targets or for all
targets on a host. The blackout can be scheduled to run immediately or in the future, and to run indefinitely or
stop after a specific duration.
Step by Step explain:

First of all, we will go to Start=>All Programs=> Oracle - OraDb10g_home1=> Database Control


– ORLDATA and specifying the system username and password after that we will
click Loginbutton.

Image1

The Database Instance page is displaying and we will click setup at the top of the database
home page.

Image2

The Administrators and setup page is displaying and we will click Blackouts in the left hand pane.
Image3

The Blackouts page is displaying and we will click Create to start the Create Blackout wizard.
Image4

The Create Blackout: Properties page is displaying and we will enter a name for your blackout in
the Name field. We can also add comments in the Comments field although it is not a required a field. We will
select Enter a new reason and enter a reason for your blackout.
The Targets is dividing in two parts: Available Targets and Selected Targets. We will selectDatabase
Instance in the type drop-down menu in the Available Targets region and we will select your database and
click Move.
Image5

Your database is now listed as a Selected Target and we will click Next button.
Image6

The Create Blackout: Schedule page is displaying and this page is show Start, Duration andRepeating.
After that we will enter the start time of your planned blackout, or choose immediately if you are shutting
down the database now.
We will select the Duration of the blackout, as indefinite, as a length of time, or until a time in the future.
The Repeating accept the default value "Do Not Repeat" or select a repeat frequency in the pull down menu.
We will click Next.
Image7

The Create Blackout: Review page is displaying. The Review what we have entered and clickFinish. You can
click Back if you need to change a setting.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Image8

ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide


The Confirmation page is displaying and this page show the message "Blackout DBA created
successfully".
Image9
We can edit, view display and stop blackout in Oracle Enterprise Manager.

https://oramanageability.wordpress.com/2014/07/24/emctl-blackout-scripts/
[https://oramanageability.wordpress.com/2014/07/24/emctl-blackout-scripts/]
EMCTL Blackout Scripts
[https://oramanageability.wordpress.com/2014/07/24/emctl-blackout-scripts/]

https://oramanageability.wordpress.com/tag/oem-12c/ [https://oramanageability.wordpress.com/tag/oem-12c/]
http://itconquer.com/news/67/63/Cloud-Control-12C-Create-Retroactive-Blackouts [http://itconquer.com/news/67/63/Cloud-
Control-12C-Create-Retroactive-Blackouts]
http://docs.oracle.com/cd/E24628_01/doc.121/e24473/blackouts.htm
[http://docs.oracle.com/cd/E24628_01/doc.121/e24473/blackouts.htm]

Setting EM Blackouts from the GUI and Command Line


[http://newappsdba.blogspot.in/2009/11/setting-em-blackouts-from-gui-
and.html]
Oracle Enterprise Manager provides you with the ability to monitor your environments and alert you once specified thresholds have been
reached. Blackouts allow you to suspend monitoring so you do not get notified. This is useful for scheduled maintenance windows, such
as cold backups, where the application and/or database may not be available.

As well, blackouts also suspends data collection for the given targets. This means that certain metrics such as availability will not be
affected.

To create a blackout from the GUI, login to Enterprise Manager, navigate to the target you would like to blackout and at the bottom of the
page under Related Links you will see a Blackouts link. You will be brought to the following page:
On the screen above you can view any blackouts that may currently be in effect as well as create new ones. To create a new blackout click
on the create button.

On this page you can create a name for the blackout, with the default being “Blackout-<timestamp>”. You can also select the targets you
wish to set the blackout for. As you can see from the screenshot I am going to set a blackout for an infrastructure application server
(infra10g).

You can also provide a reason for the blackout by click on the Reason drop down list. Quite a few are available, from Server
Bounce toSecurity Patch. Jobs can be disabled by deselecting the Run jobs during the blackout checkbox. If your applying a security
patch then you may not want a scheduled backup to run as it will either error or cause problems.

The next screen allows you to select which components within the target will be blacked out. I selected a full blackout but you can select
certain members if the outage will only affect specific components.

This screen allows you to schedule the blackout. It can either start immediately or you can choose a date along with a duration. Blackouts
can be repeating as well, so you only have to create one for that monthly maintenance window for example.

The last screen provides a summary and once you have finished reviewing click on the Finish button.

You can also set blackouts from the command line, which is useful if you have some maintenance scripts which are not executed from
Enterprise Managers job system. I’ve only tested this on linux but it should be the same for windows.

To set a blackout for a list of targets:

emctl start blackout <Blackoutname> [<Target_name>[:<Target_Type>]]…. [-d Duration]

To set a blackout for all targets on a host:


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
emctl start blackout <Blackoutname> [-nodeLevel] [-d <Duration>]

ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
-nodeLevel tells the agent to stop monitoring all targets on the server.
search

Classic Flipcard Magazine


-d Duration Mosaic
allows you to set aSidebar
duration inSnapshot
the format ofTimeslide
[days] hh:mm. ex. 1 02:05 means the blackout will last for 1 day, 2 hours and 5
minutes.

For example, to use this in a script in which all targets will be unavailable you would start a blackout at the beginning of the script and stop
it at the end:

cd $AGENT_HOME/bin
./emctl start blackout alltargets-myserver –nodeLevel
<Perform Maintenance Tasks>
cd $AGENT_HOME/bin
./emctl stop blackout alltargets-myserver

Troubleshooting

In case you hit issues with blackouts take a look at the following notes:

Subject: Agent Blackout Initiated By Emctl Command Not Ending Doc ID: 559577.1

Subject: EMDiagkit Download and Master Index Doc ID: 421053.1

Subject: How to Troubleshoot the EM 10gR1 Blackout Sub-system Doc ID: 284024.1

Subject: Troubleshooting Blackouts in EM 10g Grid Control using EMDiag Kit Doc ID: 300671.1

They provide alot of information and solutions to different scenarios. I hit an issue over the weekend in which the blackout didn’t end
properly. When I tried to stop it from the command line:

[oracle@myserver ~]$ /u01/app/oracle/product/agent10g/bin/emctl stop blackout alltargets-


myserver
Oracle Enterprise Manager 10g Release 3 Grid Control 10.2.0.3.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Blackout stop Error : Blackout name alltargets-myserver is invalid

When trying to end the blackout via Enterprise Manager:

Error stopping the blackout on "infra10g": ORA-20710: Agent-side blackouts cannot be edited
or stopped ORA-06512: at "SYSMAN.MGMT_BLACKOUT_ENGINE", line 501 ORA-06512: at
"SYSMAN.MGMT_BLACKOUT_ENGINE", line 3262 ORA-06512: at "SYSMAN.MGMT_BLACKOUT", line 74 ORA-
06512: at "SYSMAN.MGMT_BLACKOUT_UI", line 1167 ORA-06512: at line 1 .

To fix this problem I performed the following:


1. Shutdown the agent on the target server myserver
2. Removed the blackouts.xml file under $AGENT_HOME/sysman/emd
3. Used note 421053.1 to install the EMDiag kit
4. Logged in as sysman on the Enterprise Managers repository database and executed the following query:

select blackout_guid, blackout_name


from mgmt_blackouts;

BLACKOUT_GUID BLACKOUT_NAME
-------------------------------- ----------------------
30E2956CA329F0E59FBDF50951F2578E alltargets-myserver

5. Then executed:

exec mgmt_diag.KillBlackout(HEXTORAW(‘30E2956CA329F0E59FBDF50951F2578E’));

6. Restarted the agent on myserver and when I looked in Enterprise manager the blackout had cleared.

I have seen the command used above for some other scenarios but not this one specifically. Before executing any commands in your
environment please test first.

Create Node Level Blackouts on Enterprise Manager 12c


If you plan to have server maintenance then do not forget to create your node level blackout to keep unwanted alerts on
your Enterprise Manager 12c.

In this demo I show you how to create node level blackout from Enterprise Manager 12c or from command line.

You can create node level blackouts for one node or for many nodes at a time.
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE
In this APPS
demo I will beDBA
adding memory
Thistoblog
my vbox
is machine
writtenandtoI do not want
share ando get alertsdoer's.Please
help from Enterprise Manager
sh…12c. search
Create Node Level Blackout from Target
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
1. Log into OEM

2. Go to the host target homepage.

3. Click Host>Control>Create Blackout


[http://4.bp.blogspot.com/-W989-OW9KfI/Ui_UTEJuhqI/AAAAAAAABnc/lJt5IaA-kNg/s1600/1.JPG]

4. Give the blackout a name or leave the default. Add comments and select a reason if needed. Un-check the box to not
allow jobs to run during the blackout. Click Next
[http://1.bp.blogspot.com/-tylm1uul8nY/Ui_UWAVAwJI/AAAAAAAABos/JkKcqerpKuI/s1600/2.JPG]

5. You can see that all targets on the host will be blacked out. Click Next
[http://3.bp.blogspot.com/-Fuwd83zdHrA/Ui_UZiR3xwI/AAAAAAAABp4/3oRs7iE1pog/s1600/3.JPG]

6. You can set the blackout to start immediate or at a later date and time. You can set the blackout duration to indefinite, a
certain length or to an until date and time. You can also set the blackout to repeat. Click Next

I set the blackout to start immediately and the duration to indefinite.

7. Review the blackout configuration and click Finish.

8. You will see a message that states the blackout has started. Now in the search box type the host that you just created the
blackout and click the arrow.
[http://4.bp.blogspot.com/-Nv-ihm0mKhM/Ui_UaePqiCI/AAAAAAAABqU/KFSiplcAMQ0/s1600/6.JPG]

9. We can now see that all targets that are part of the host show a status of blackout.
[http://2.bp.blogspot.com/-s8x_aE7Dy7Q/Ui_Uaob7UnI/AAAAAAAABqc/ApZ3bpizDgU/s1600/7.JPG]

10. I will now shutdown my server.

11. We can see that the targets are in blackout and no new alerts have come in for availability.
12. I add new memory to my server.

13. The server has been restart and all targets on my host have been restarted.

Remove Blackout

14. Back in OEM select the host which we blacked out.


[http://1.bp.blogspot.com/-vN35jnlk1vI/Ui_UTra2tSI/AAAAAAAABns/mnn20EstDT4/s1600/12.JPG]

15.  Click Host>Control>End Blackout

16. Click Yes

17. You will see a message that states the blackout was successfully ended. Type the host into the search box and click the
arrow.

18. You will see the targets in a pending state.


[http://4.bp.blogspot.com/-c4yBoa8vNLE/Ui_UUrPixdI/AAAAAAAABoQ/NdsNL5Glf9Q/s1600/16.JPG]

19. If you wait a few minutes and click refresh you will then see the target status to online.

Create Blackouts for More Then One Target


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
1. Log into OEM

ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
2. Click Enterprise>Monitoring>Blackouts
[http://2.bp.blogspot.com/-UzfWW9R46iQ/Ui_UVpfyCuI/AAAAAAAABoc/7HUXlbTnzzc/s1600/18.jpg]
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

3. Click Create

4. Give the blackout a name or leave the default. Add comments and select a reason if needed. Un-check the box to not
allow jobs to run during the blackout. Click Add

5. Set the target type to host and search for your targets. Select the targets that need to be in this blackout operation.
Click Select

6. All the targets on the host will be part of the blackout click Next

7. You can set the blackout to start immediate or at a later date and time. You can set the blackout duration to indefinite, a
certain length or to an until date and time. You can also set the blackout to repeat. Click Next

I set the blackout to start immediately and the duration to indefinite.

8. Review the blackout and click Finish


[http://2.bp.blogspot.com/-n40HrESVKjY/Ui_UXhRipWI/AAAAAAAABpQ/VKCcDGDJN1o/s1600/24.JPG]

9. You will see a message that confirms the blackout has been started.
[http://2.bp.blogspot.com/-TaZG_nO1hHk/Ui_UYKA85RI/AAAAAAAABpg/WizfT7bKGSA/s1600/25.JPG]

Remove Blackout

10. Search for a host that is the parent of the blackout. Select one of the targets in the blackout and click Stop.

11. You will see all targets in the blackout that will be stopped. Click Yes
[http://4.bp.blogspot.com/-0Vtxccs7yPY/Ui_UY4d_qrI/AAAAAAAABpo/vsv25C400nk/s1600/27.JPG]

12. You will see a message that states the request to stop the blackout. The status for the blackout will show stop pending.
If you wait a few minutes and then click refresh the status will change to stopped.
[http://2.bp.blogspot.com/-5TXcAwBJr-c/Ui_UZK3VaDI/AAAAAAAABpw/_j1dPMSEgOM/s1600/28.JPG]

Command Line
You can also create node level blackout from the server
$cd $AGENT_HOME/bin
$./emctl start blackout `hostname` -nodelevel

In this article, we will discuss blackout period in Oracle enterprise manager. The blackout is the part of the
administrator in Oracle. A blackout period can be defined for individual targets, a group of targets or for all
targets on a host. The blackout can be scheduled to run immediately or in the future, and to run indefinitely or
stop after a specific duration.
Step by Step explain:

First of all, we will go to Start=>All Programs=> Oracle - OraDb10g_home1=> Database Control


– ORLDATA and specifying the system username and password after that we will
click Loginbutton.

Image1

The Database Instance page is displaying and we will click setup at the top of the database
home page.

Image2

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
The Administrators and setup page is displaying and we will click Blackouts in the left hand pane.
ORACLE APPS DBA
Image3 This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

The Blackouts page is displaying and we will click Create to start the Create Blackout wizard.
Image4

The Create Blackout: Properties page is displaying and we will enter a name for your blackout in
the Name field. We can also add comments in the Comments field although it is not a required a field. We will
select Enter a new reason and enter a reason for your blackout.
The Targets is dividing in two parts: Available Targets and Selected Targets. We will selectDatabase
Instance in the type drop-down menu in the Available Targets region and we will select your database and
click Move.
Image5

Your database is now listed as a Selected Target and we will click Next button.
Image6

The Create Blackout: Schedule page is displaying and this page is show Start, Duration andRepeating.
After that we will enter the start time of your planned blackout, or choose immediately if you are shutting
down the database now.
We will select the Duration of the blackout, as indefinite, as a length of time, or until a time in the future.
The Repeating accept the default value "Do Not Repeat" or select a repeat frequency in the pull down menu.
We will click Next.
Image7

The Create Blackout: Review page is displaying. The Review what we have entered and clickFinish. You can
click Back if you need to change a setting.
Image8

The Confirmation page is displaying and this page show the message "Blackout DBA created
successfully".
Image9
We can edit, view display and stop blackout in Oracle Enterprise Manager.

https://oramanageability.wordpress.com/2014/07/24/emctl-blackout-scripts/
[https://oramanageability.wordpress.com/2014/07/24/emctl-blackout-scripts/]
EMCTL Blackout Scripts
[https://oramanageability.wordpress.com/2014/07/24/emctl-blackout-scripts/]

https://oramanageability.wordpress.com/tag/oem-12c/ [https://oramanageability.wordpress.com/tag/oem-12c/]
http://itconquer.com/news/67/63/Cloud-Control-12C-Create-Retroactive-Blackouts [http://itconquer.com/news/67/63/Cloud-
Control-12C-Create-Retroactive-Blackouts]
http://docs.oracle.com/cd/E24628_01/doc.121/e24473/blackouts.htm
[http://docs.oracle.com/cd/E24628_01/doc.121/e24473/blackouts.htm]

Posted 18th March 2015 by Unknown


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
3 View comments
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
Sridevi K 2 November 2016 at 09:44
Classic Flipcard Magazine
RegardsMosaic Sidebar Snapshot Timeslide
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

Blogger 27 December 2016 at 15:06


Bluehost is ultimately the best website hosting company with plans for all of your hosting needs.
Reply

Blogger 24 November 2017 at 22:22


QUANTUM BINARY SIGNALS

Professional trading signals delivered to your cell phone every day.

Start following our signals right now and profit up to 270% per day.
Reply

9th January 2015 How to apply patch while you are in the middle of ADPATCH
How to Apply an 11i Patch When adpatch is Already Running

1. Using the adctrl utility, shutdown the workers.


a. adctrl
b. Select option 3 "Tell worker to shutdown/quit"
2. Backup the FND_INSTALL_PROCESSES table which is owned by the APPLSYS schema
a. sqlplus applsys/<password>
b. create table fnd_Install_processes_back
as select * from fnd_Install_processes;
c. The 2 tables should have the same number of records.
select count(*) from fnd_Install_processes_back;
select count(*) from fnd_Install_processes;
3. Backup the AD_DEFERRED_JOBS table.
a. sqlplus applsys/<password>
b. create table AD_DEFERRED_JOBS_back
as select * from AD_DEFERRED_JOBS;
c. The 2 tables should have the same number of records.
select count(*) from AD_DEFERRED_JOBS_back;
select count(*) from AD_DEFERRED_JOBS;
4. Backup the .rf9 files located in $APPL_TOP/admin/<SID>/restart directory.
At this point, the adpatch session should have ended and the cursor should
be back at the Unix prompt.
a. cd $APPL_TOP/admin/<SID>
b. mv restart restart_back
c. mkdir restart
5. Drop the FND_INSTALL_PROCESSES table and the AD_DEFERRED_JOBS table.
a. sqlplus applsys/<password>
b. drop table FND_INSTALL_PROCESSES;
c. drop table AD_DEFERRED_JOBS;
6. Apply the new patch.
7. Restore the .rf9 files located in $APPL_TOP/admin/<SID>/restart_back
directory. Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
a. cd $APPL_TOP/admin/<SID>

ORACLE APPS DBA b. mv restart restart_<patchnumber>


c. mv restart_back restart
This blog is written to share and help doer's.Please sh… search

8. Restore the FND_INSTALL_PROCESSES table which is owned by the APPLSYS


Classic Flipcardschema.
Magazine Mosaic Sidebar Snapshot Timeslide
a. sqlplus applsys/<password>
b. create table fnd_Install_processes
as select * from fnd_Install_processes_back;
c. The 2 tables should have the same number of records.
select count(*) from fnd_Install_processes;
select count(*) from fnd_Install_processes_back;
9. Restore the AD_DEFERRED_JOBS table.
a. sqlplus applsys/<password>
b. create table AD_DEFERRED_JOBS
as select * from AD_DEFERRED_JOBS_back;
c. The 2 tables should have the same number of records.
select count(*) from AD_DEFERRED_JOBS_back;
select count(*) from AD_DEFERRED_JOBS;
10. Re-create synonyms
a. sqlplus apps/apps
b. create synonym AD_DEFERRED_JOBS for APPLSYS.AD_DEFERRED_JOBS;
c. create synonym FND_INSTALL_PROCESSES FOR APPLSYS.FND_INSTALL_PROCESSES;
11. Start adpatch, it will resume where it stopped previously.

How to apply patch while you are in the middle of patching

Summary

Sometimes when you are in the middle of applying a patch you may get adworkers errors or you can find out that a patch
is missing.

So you need to apply a second patch (which solves the problem) in the middle of a running patch.

1. Use adctrl (option 3) to tell all the existing workers to QUIT

2. Use adctrl (option 5) to tell managers that all workers have QUIT. (Adpatch session ends!)

3. Backup tables applsys.ad_deferred_jobs and applsys.fnd_install_processes.


Login as APPLSYS user and execute:
ALTER "TABLE" applsys.ad_deferred_jobs "RENAME" TO ad_deferred_jobs_old;
ALTER "TABLE" applsys.fnd_install_processes "RENAME" TO fnd_install_processes_old;
ALTER "INDEX" applsys.ad_deferred_jobs_u1 "RENAME" TO ad_deferred_jobs_u1_old;
ALTER "INDEX" applsys.fnd_install_processes_u1 "RENAME" TO fnd_install_processes_u1_old;
4. Go to $APPL_TOP/admin/SID/ for example $APPL_TOP/admin/TEST/ and rename the existing directory "restart"

$mv restart restart.old

5. Use adpatch to apply the second/other patch.

6. Login as APPLSYS and revert back to the original tables, ad_deferred_jobs and fnd_install_processes
ALTER "TABLE" applsys.ad_deferred_jobs_old "RENAME" TO ad_deferred_jobs;
ALTER "TABLE" applsys.fnd_install_processes_old "RENAME" TO fnd_install_processes;
ALTER "INDEX" applsys.ad_deferred_jobs_u1_old "RENAME" TO ad_deferred_jobs_u1;
ALTER "INDEX" applsys.fnd_install_processes_u1_old "RENAME" TO fnd_install_processes_u1;
CREATE SYNONYM FND_INSTALL_PROCESSES FOR APPLSYS.FND_INSTALL_PROCESSES;
CREATE SYNONYM AD_DEFERRED_JOBS FOR APPLSYS.AD_DEFERRED_JOBS;
7. Replace the original restart directory:

cd $APPL_TOP/admin/SID/ for example $APPL_TOP/admin/TEST/


mv restart restart_new
mv restart.old restart

8. Run adpatch to continue the first patch (with continue session?Yes)

9. Use adctrl (option 2, will change status to “Fixed/Restart”) to restart the failed workers for first patch

What to do if a worker fails during adpatch application on R12


In a different window constantly monitor the patch worker using adctrl command.

1. set the application environment file of R12

[https://www.blogger.com/null] 2. run adctrl

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
check the status of the worker using option 1 [Show worker status].

ORACLE APPS DBA


If a worker fails.
This blog is written to share and help doer's.Please sh… search

1. Check
Classic Flipcard adwork01.log
Magazine Mosaic [check the Snapshot
Sidebar failed worker number] file under
Timeslide
$APPL_TOP/admin//log directory for details about the error.

2. Fix the issue mentioned in worker file.

3. Use Option 2 [Tell worker to restart a failed job] to restart the failed job in adctrl
window.

4. If the issue is fixed properly the worker will start and complete the job and your
adpatch will continue executing.

Sometimes, you need to restart all the workers and exit the adpatch session and restart
it from the failed location will do your job.

Regards
Madhan

Posted 9th January 2015 by Unknown

3 View comments

Sridevi K 2 November 2016 at 09:44


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

Blogger 5 February 2017 at 05:16


Did you know that you can generate money by locking special areas of your blog or site?
Simply join Ad Work Media and add their content locking tool.
Reply

Blogger 5 February 2017 at 05:52


Are you monetizing your premium file uploads?
Did you know ShareCash will pay you an average of $0.50 per link unlock?
Reply

26th December 2014 Data block damage process ORA-600


A Oracle database data block damage process
1.1 error ORA-600 [kcratr_nab_less_than_odr], could not be started
1, Description: server storage power, cause the database to down machine, try again to start the database, the database
does not start, database error
SQL> alter database open;

alter database open


*

ERROR at line 1:
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… [], []
ORA-00600: internal error code, arguments:[kcratr_nab_less_than_odr], [1], [2022], [523240], [523468], [], [], [], [],[],search
2, To view the alert log, database startup, have begun to log recovery, but recovery times wrong ORA-600, in addition to
generate a TRC file, without more detailed information
Classic Flipcard Magazine
Thu Feb Mosaic
06 23:13:19 2014Sidebar Snapshot Timeslide

ALTER DATABASE OPEN

Beginning crash recovery of 1 threads

parallel recovery started with 3 processes

Started redo scan

Completed redo scan

read1580 KB redo, 211 data blocks need recovery

Errors in file/app/oracle/diag/rdbms/epm/epm1/trace/epm1_ora_4679.trc (incident=375883):

ORA-00600: internal error code, arguments:[kcratr_nab_less_than_odr], [1], [2022], [523240], [523468], [], [], [], [],[], [], []

Incident details in:/app/oracle/diag/rdbms/epm/epm1/incident/incdir_375883/epm1_ora_4679_i375883.trc

Aborting crash recovery due to error 600

Errors in file/app/oracle/diag/rdbms/epm/epm1/trace/epm1_ora_4679.trc:

ORA-00600: internal error code, arguments:[kcratr_nab_less_than_odr], [1], [2022], [523240], [523468], [], [], [], [],[], [], []

Errors in file/app/oracle/diag/rdbms/epm/epm1/trace/epm1_ora_4679.trc:

ORA-00600: internal error code, arguments:[kcratr_nab_less_than_odr], [1], [2022], [523240], [523468], [], [], [], [],[], [], []

ORA-600 signalled during: ALTER DATABASEOPEN...

Trace dumping is performingid=[cdmp_20140206231320]


3, To view the TRC file, The WARNING can be seen, the database recovery that seq2022 (corresponding to the records
in the log file), should be restored to 523240, but a return to 523468 but was forced to stop. Should be the control files
and log files are not exactly the same result, pay attention to these data corresponds to several parameters of
kcratr_nab_less_than_odr: [kcratr_nab_less_than_odr],[1], [2022], [523240], [523468]
*** 2014-02-06 23:37:11.872

Successfully allocated 3 recovery slaves

Using 45 overflow buffers per recoveryslave

Thread 1 checkpoint: logseq 2022, block 2,scn 9187726619852

cache-low rba: logseq 2022, block 520079

on-disk rba: logseq 2022, block 523468, scn 9187726672777

start recovery at logseq 2022, block 520079, scn 0

*** 2014-02-06 23:37:11.890

Started writing zeroblks thread 1 seq 2022blocks 523240-523247

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

WARNING! Crash recovery of thread 1 seq2022 is

ending at redo block 523240 but should nothave ended before

redo block 523468

Incident 375884 created, dump


file:/app/oracle/diag/rdbms/epm/epm1/incident/incdir_375884/epm1_ora_4971_i375884.trc

ORA-00600: internal error code, arguments:[kcratr_nab_less_than_odr], [1], [2022], [523240], [523468], [], [], [], [],[], [], []

ORA-00600: internal error code, arguments:[kcratr_nab_less_than_odr], [1], [2022], [523240], [523468], [], [], [], [],[], [], []

ORA-00600: internal error code, arguments:[kcratr_nab_less_than_odr], [1], [2022], [523240], [523468], [], [], [], [],[], [], []
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
4,Query metalink, relevant case, mainly due to store a sudden blackout, leading up to the online log file to write the log

ORACLE APPS DBA


failure.
This blog is written to share and help doer's.Please sh… search
This Problem is caused by Storage Problemof the Database Files. The Subsystem (eg. SAN) crashed while the
Database wasopen. The Database then crashed since the Database Files were not accessibleanymore. This caused a
Classic Flipcard Magazine
lost Write into theMosaic Sidebar and
Online RedoLogs Snapshot Timeslide
so InstanceRecovery is not possible and raising the ORA-600.
The solution provides website is to recover the database through the control file backup, and then start resetlog, of
course, if no backup, also can through the control files reconstruction in the reference documents.
1. If you could restore your StorageEnvironment and the Online RedoLogs from the Time of the crash you can try
amanual Recovery followed by a RESETLOGS:

SQL> startup mount;

SQL> recover database until cancel usingbackup controlfile;

-> manually provide Online RedoLogcontaining the last (current) Sequence when asked, eg.

ORA-00279: change 100000 generated atxx/xx/xxxx xx:xx:xx needed for thread 1

ORA-00289: suggestion :

/flash_recovery/archivelog/xxxx_xx_xx/o1_mf_1_100_%u_.arc

ORA-00280: change 100000 for thread 1 is insequence #100

Specify log: {<RET>=suggested |filename | AUTO | CANCEL}

/ora/oradata/dbtest/redo04_1.rdo

Log applied.

Media recovery complete.

SQL> alter database open resetlogs;

5,By solving methods on metalink, according to the prompt input online log file name, database again error ORA-00600
[2662] [2139]: internal errorcode, arguments: [2662], [2139], [791626372], [2139],
[oracle@localhost oradata]$ sqlplus"/as sysdba"

SQL*Plus: Release 11.2.0.1.0 Production onThu Feb 6 17:53:47 2014

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

Connected to an idle instance.

SQL> startup mount;

ORACLE instance started.

Total System Global Area 6714322944 bytes

Fixed Size 2226056 bytes

Variable Size 5033166968 bytes

Database Buffers 1660944384 bytes

Redo Buffers 17985536 bytes

Database mounted.

SQL> recover database until cancel usingbackup controlfile;

ORA-00279: change 9187726668895 generatedat 02/05/2014 01:00:04 needed for

thread 1

ORA-00289: suggestion :/app/archive_log/1_2022_804560942.dbf

ORA-00280: change 9187726668895 for thread1 is in sequence #2022

Specify log: {<RET>=suggested |filename | AUTO | CANCEL}

/app/oracle/oradata/epm/redo03.log

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Log applied.
ORACLE APPS DBA
Media recovery complete.
This blog is written to share and help doer's.Please sh… search

Classic Flipcard
SQL>Magazine Mosaic
alter database openSidebar
resetlogs;Snapshot Timeslide

alter database open resetlogs

ERROR at line 1:

ORA-00603: ORACLE server session terminatedby fatal error

ORA-00600: internal error code, arguments:[2662], [2139], [791626372], [2139],

[791626610], [12583120], [], [], [], [],[], []

ORA-00600: internal error code, arguments:[2662], [2139], [791626371], [2139],

[791626610], [12583120], [], [], [], [],[], []

ORA-01092: ORACLE instance terminated.Disconnection forced

ORA-00600: internal error code, arguments:[2662], [2139], [791626368], [2139],

[791626610], [12583120], [], [], [], [],[], []

Process ID: 9658

Session ID: 1705 Serial number: 5

6, To view the alert log, error and the same, and prompt, generating a TRC file, query, identified as the resetlogs still exist
database bad block
[oracle@localhost trace]$ tail -falert_epm1.log

ORA-00600: internal error code, arguments:[2662], [2139], [791626371], [2139], [791626610], [12583120], [], [], [], [],[], []

ORA-01092: ORACLE instance terminated.Disconnection forced

ORA-00600: internal error code, arguments:[2662], [2139], [791626368], [2139], [791626610], [12583120], [], [], [], [],[], []

Incident details in:/app/oracle/diag/rdbms/epm/epm1/incident/incdir_411735/epm1_ora_9658_i411735.trc

Errors in file/app/oracle/diag/rdbms/epm/epm1/incident/incdir_411735/epm1_ora_9658_i411735.trc:

ORA-00603: ORACLE server session terminatedby fatal error

ORA-00600: internal error code, arguments:[2662], [2139], [791626372], [2139], [791626610], [12583120], [], [], [], [],[], []

ORA-00600: internal error code, arguments:[2662], [2139], [791626371], [2139], [791626610], [12583120], [], [], [], [],[], []

ORA-01092: ORACLE instance terminated.Disconnection forced

ORA-00600: internal error code, arguments:[2662], [2139], [791626368], [2139], [791626610], [12583120], [], [], [], [],[], []

7 to restart the database, the database has been able to start, but the starting soon after the down,
SQL> startup mount;

ORACLE instance started.

Total System Global Area 6714322944 bytes


Fixed Size 2226056 bytes
Variable Size 5033166968 bytes
Database Buffers 1660944384 bytes
RedoBuffers 17985536 bytes
Database mounted.

SQL> alter database open;

Database altered.

SQL> select * from v$instance;

select * from v$instance


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE
*
APPS DBA This blog is written to share and help doer's.Please sh… search

ERROR at line 1:
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
ORA-03135: connection lost contact

Process ID: 10171

Session ID: 1705 Serial number: 5

1.2 after starting down, error ORA-600 [4194]


8, View the log, log error,ORA-01595,ora-600 [4194]
Block recovery completed at rba 2.137.16,scn 2139.791646684
Errors in file/app/oracle/diag/rdbms/epm/epm1/trace/epm1_smon_10046.trc:
ORA-01595: error freeing extent (49) ofrollback segment (6))
ORA-00600: internal error code, arguments:[4194], [], [], [], [], [], [], [], [], [], [], []

9, Continue to query metalink, about ora-600[4194], the ID 1428786.1 has a detailed explanation, the reason is because
of power outages or hardware failure, the database instance recovery rollback times,

Symptoms

The following error is occurring in thealert.log right before the database crashes.

ORA-00600: internal error code, arguments:[4194], [#], [#], [], [], [], [], []

This error indicates that a mismatch hasbeen detected between redo records and rollback (undo) records.

ARGUMENTS:

Arg [a] - Maximum Undo record number inUndo block

Arg [b] - Undo record number from Redoblock

Since we are adding a new undo record toour undo block, we would expect that the new record number is equal to
themaximum record number in the undo block plus one. Before Oracle can add a newundo record to the undo block it
validates that this is correct. If thisvalidation fails, then an ORA-600 [4194] will be triggered.

Changes

This issue generally occurs when there is apower outage or hardware failure that initially crashes the database.
Onstartup, the database does the normal roll forward (redo) and then rollback(undo), this is where the error is generated
on the rollback.
10, The metalink solution is to rebuild the undo table space, the basic idea is to put the undo setting for the manual
management mode, the reconstruction of undo, and then restart the database

SQL> Create pfile='/tmp/corrupt.ora'from spfile ;


vi /tmp/corrupt.ora
*.Undo_management=Manual
Start the database to the mount state
SQL> Startup mountpfile='/tmp/corrupt.ora'

ORACLE instance started.

Total System Global Area 6714322944 bytes

Fixed Size 2226056 bytes

Variable Size 5033166968 bytes

Database Buffers 1660944384 bytes

Redo Buffers 17985536 bytes

Database mounted.

SQL> Show parameter undo

NAME TYPE VALUE

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

undo_management string MANUAL


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA integer
undo_retention 10800
This blog is written to share and help doer's.Please sh… search

undo_tablespace string UNDOTBS1


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
SQL> Alter database open ;

Database altered.

SQL> Create rollback segment r01 ;

Rollback segment created.

SQL> Alter rollback segment r01 online ;

Rollback segment altered.

SQL> Create undo tablespace undotbs_2datafile '/app/oracle/oradata/epm/undotbs_2.dbf' size 200M ;

Tablespace created.

SQL> alter system set undo_tablespace ='undotbs_2' scope=spfile;

System altered.

Start up the database again, this time also can start correctly
SQL> startup

ORACLE instance started.

Total System Global Area 6714322944 bytes

Fixed Size 2226056 bytes

Variable Size 5033166968 bytes

Database Buffers 1660944384 bytes

Redo Buffers 17985536 bytes

Database mounted.

Database opened.
1.3 database of bad blocks
11, At this time, see the log for the database, a database of bad blocks in terms of error, though only just quote a
database of bad blocks, but there may be more bad block
Thu Feb 06 18:52:57 2014

Errors in file/app/oracle/diag/rdbms/epm/epm1/trace/epm1_j000_13117.trc (incident=460023):

ORA-01578: ORACLE data block corrupted(file # 2, block # 31061)

ORA-01110: data file 2:'/app/oracle/oradata/epm/sysaux01.dbf'

Errors in file /app/oracle/diag/rdbms/epm/epm1/trace/epm1_j000_13117.trc (incident=460024):

ORA-01578: ORACLE data block corrupted(file # 2, block # 31061)

ORA-01110: data file 2:'/app/oracle/oradata/epm/sysaux01.dbf'

Errors in file/app/oracle/diag/rdbms/epm/epm1/trace/epm1_j000_13117.trc (incident=460025):

ORA-01578: ORACLE data block corrupted(file # , block # )

ORA-01578: ORACLE data block corrupted(file # 2, block # 31061)

ORA-01110: data file 2:'/app/oracle/oradata/epm/sysaux01.dbf

12, The authentication database bad block, two methods are commonly used, the two methods are consistent in
essence, this paper used the RMAN command
1), The RMAN command
run {

allocate channel d1 type disk;

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
allocate channel d2 type disk;

ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
backup validate check logical database;
search

Classic Flipcard
} Magazine Mosaic Sidebar Snapshot Timeslide
Validation of a file
RMAN> backup validate datafile 4;

Starting backup at 06-FEB-14

using channel ORA_DISK_1

channel ORA_DISK_1: starting full datafilebackup set

channel ORA_DISK_1: specifying datafile(s)in backup set

input datafile file number=00004name=/app/oracle/oradata/epm/users01.dbf

channel ORA_DISK_1: backup set complete,elapsed time: 00:04:25

List of Datafiles

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

File Status Marked Corrupt Empty BlocksBlocks Examined High SCN

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

4 FAILED 0 46754 477122 9187726907487

File Name: /app/oracle/oradata/epm/users01.dbf

Block Type Blocks Failing Blocks Processed

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

Data 0 292182

Index 0 45604

Other 2 92580

validate found one or more corrupt blocks

See trace file/app/oracle/diag/rdbms/epm/epm1/trace/epm1_ora_13757.trc for details

Finished backup at 06-FEB-14

2), The dbv command


To verify that a database file
dbvFILE=/app/oracle/oradata/epm/users01.dbf

Page 439168 is influx - most likely media corrupt

Corrupt block relative dba: 0x0106b380(file 4, block 439168)

Fractured block found during dbv:

Data in bad block:

type: 32 format: 2 rdba: 0x0106b380

lastchange scn: 0x085b.2ef4cb1d seq: 0xe flg: 0x04

spare1: 0x0 spare2: 0x0 spare3: 0x0

consistency value in tail: 0x72a7201b

check value in block header: 0xfd1d

computed block checksum: 0xb9af

Page 439296 is influx - most likely mediacorrupt


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
Corrupt block relative dba: 0x0106b400(file 4, block 439296) search

Fractured block found during dbv:


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
Data in bad block:

type: 32 format: 2 rdba: 0x0106b400

lastchange scn: 0x085b.2ef4cb24 seq: 0x19 flg: 0x04

spare1: 0x0 spare2: 0x0 spare3: 0x0

consistency value in tail: 0x72ac2025

check value in block header: 0xfd1f

computed block checksum: 0xb9b4

DBVERIFY - Verification complete

Total Pages Examined : 477120

Total Pages Processed (Data) : 292182

Total Pages Failing (Data) : 0

Total Pages Processed (Index): 45604

Total Pages Failing (Index): 0

Total Pages Processed (Other): 92578

Total Pages Processed (Seg) : 0

Total Pages Failing (Seg) : 0

Total Pages Empty : 46754

Total Pages Marked Corrupt : 2

Total Pages Influx :2

Total Pages Encrypted :0

Highest block SCN : 791817065 (2139.791817065)


13, At this point, the database logic derived, protect the existing data
expdp userid=\"/ as sysdba\"full=y dumpfile=epm20140206_3.dmp directory=dpdata1 LOGFILE=epm20140206_3.log
PARALLEL=3
14, Through the RMAN command, a total of 22 database bad block test
SQL> select * fromv$database_block_corruption;

FILE# BLOCK# BLOCKS CORRUPTION_CHANGE# CORRUPTIO

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

4 439296 1 0 FRACTURED

4 439168 1 0 FRACTURED

8 2610431 1 0 FRACTURED

8 2547178 1 0 FRACTURED

8 2547114 1 0 FRACTURED

8 2547050 1 0 FRACTURED

8 2546986 1 0 FRACTURED

8 2546922 1 0 FRACTURED

8 2546890 1 0 FRACTURED

8 2546858 1 0 FRACTURED
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE8 APPS
2546826
DBA
1
This0 blog
FRACTURED
is written to share and help doer's.Please sh… search

FILE# BLOCK# BLOCKSCORRUPTION_CHANGE# CORRUPTIO


Classic Flipcard Magazine
---------- Mosaic Sidebar Snapshot
---------- ---------------------------- --------- Timeslide

8 2546794 1 0 FRACTURED

8 2546762 1 0 FRACTURED

8 2546730 1 0 FRACTURED

8 2546698 1 0 FRACTURED

8 2459433 1 0 FRACTURED

8 2459305 1 0 FRACTURED

8 1596687 1 0 FRACTURED

9 876808 1 0 FRACTURED

9 662038 1 0 FRACTURED

9 345491 1 0 FRACTURED

9 281617 1 0 FRACTURED

15, Further mapping to a database object


View the object corresponding to the bad block
Selecttablespace_name,segment_type,owner,segment_name From dba_extents Wherefile_id=2 and 31061 between
block_id and block_id+blocks-1;

According to the bad block production view object SQL


select 'Select tablespace_name,segment_type,owner,segment_nameFrom dba_extents Where file_id=' || FILE# || ' and '
|| BLOCK# || ' between block_id and block_id+blocks-1;'from v$database_block_corruption;

16, For an index bad block, treatment is relatively simple, direct rebuild can be, if the index more bad blocks, can choose
to rebuild all index
Rebuild the index
SQL> alter INDEX EPM.IDX_QRTZ_T_NEXT_FIRE_TIMErebuild online;

The table is more complicated


1), The backup and recovery of data blocks, in this case due to back problems, without success
RMAN> blockrecover datafile 2 block31061 from backupset;

Starting recover at 06-FEB-14

using channel ORA_DISK_1

channel ORA_DISK_1: restoring block(s)

channel ORA_DISK_1: specifying block(s) torestore from backup set

restoring blocks of datafile 00002

channel ORA_DISK_1: reading from backuppiece /app/backup/rman_bak/rman.c0_20140122_1629_1_EPM.bak

channel ORA_DISK_1: ORA-19870: error whilerestoring backup piece


/app/backup/rman_bak/rman.c0_20140122_1629_1_EPM.bak

ORA-19501: read error on file"/app/backup/rman_bak/rman.c0_20140122_1629_1_EPM.bak", block number154496


(block size=8192)

ORA-27061: waiting for async I/Os failed

Linux-x86_64 Error: 5: Input/output error

Additional information: -1

Additional information: 1048576


2), If no backup, you can through the following methods to skip the bad block, of course, will lose part of the data
SQL> ALTER SESSION SET EVENTS

2 '10231 TRACE NAME CONTEXTFOREVER, LEVEL 10';


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA
Session altered.
This blog is written to share and help doer's.Please sh… search

SQL> create tableEPM.REQ_RESPSB_SUPPLIER_BAK as select * from EPM.REQ_RESPSB_SUPPLIER;


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
Table created.

SQL> select count(*) fromEPM.REQ_RESPSB_SUPPLIER_BAK;

COUNT(*)

----------

188786

17, At this point, the database was successfully started, business also returned to normal

Reference document
metalink:ORA-600 [kcratr_nab_less_than_odr]during Instance Recovery after Database Crash (Doc ID 1299564.1)
metalink:Step by step to resolve ORA-6004194 4193 4197 on database crash (Doc ID 1428786.1)
http://www.eygle.com/archives/2010/05/ora-00600_kcratr1_lostwrt.html
http://www.xifenfei.com/2347.html
http://www.askmaclean.com/archives/ora-6004194%E9%94%99%E8%AF%AF%E4%B8%80%E4%BE%8B.html
http://www.programering.com/a/MDM2YTMwATY.html

Regards
Madhan

Posted 26th December 2014 by Unknown

3 View comments

Sridevi K 2 November 2016 at 09:44


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

Blogger 23 November 2017 at 19:50


BlueHost is ultimately one of the best web-hosting company for any hosting plans you need.
Reply

Jennifer N 31 January 2019 at 11:52


Thanks and Regards. Oracle Apps R12 Training Videos at affordable cost. please check oracleappstechnical.com
Reply

8th December 2014 Archive log filled up 100%,PROD and DR out of sync
..Archive log filled up 100% ORA-16038: log cannot be
archived ORA-19809: limit exceeded for recovery files..

Archive log filled up 100% ORA-16038: log cannot be archived ORA-19809: limit exceeded for recovery files. PROD and
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
DR unable to sync
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard
FirstMagazine
we need toMosaic Sidebar that
checkalert.log Snapshot
shows Timeslide
next:

ARCH: FAL archive failed. Archiver continuing


Creating archive destination file

ORA-00270: error creating archive log


FAL[server, ARCd]: FAL archive failed, see trace file.

Errors in file

← ORA-39002: invalid operation ORA-39070: Unable to open the log file. ORA-29283: invalid file
operation ORA-06512: at “SYS.UTL_FILE”, ORA-29283: invalid file operationCRS-0184: Cannot
communicate with the CRS daemon CRS-4639: Could not contact Oracle High Availability Services →
ORA-16038: log cannot be archived ORA-19809: limit exceeded for recovery files
Posted on 27/02/2014 by qobesa
When i was making backup with rman it was throwing above error. firts we need to check alert.log
that shows next:

ARC3: Error 19809 Creating archive log file to '+DISKS'


Errors in file /u0/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_arc0_3481.trc:
ORA-19815: WARNING: db_recovery_file_dest_size of 5218762752 bytes is 100.00% used, and has 0
remaining bytes available.
************************************************************************
You have following choices to free up space from recovery area:
1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
then consider changing RMAN ARCHIVELOG DELETION POLICY.
2. Back up files to tertiary device such as tape using RMAN
BACKUP RECOVERY AREA command.
3. Add disk space and increase db_recovery_file_dest_size parameter to
reflect the new space.
4. Delete unnecessary files using RMAN DELETE command. If an operating
system command was used to delete files, then use RMAN CROSSCHECK and
DELETE EXPIRED commands.
************************************************************************
Now we know what is problem, we have flash recovery area which is full, check it:

SQL> show parameter db_recovery_file_dest;

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
db_recovery_file_dest string +DISKS
db_recovery_file_dest_size big integer 4977M

select * from v$flash_recovery_area_usage;


result:

1
flash recovery area is full therefore, we have two option to solve this problem:
1) add size to flash_recovery_area if we have free disk space.

SQL> alter system set db_recovery_file_dest_size=XG; (larger amount)


2) delete some archivelogs for free up flash_recovery_area.

RMAN> crosscheck archivelog all;


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
....

ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
RMAN> delete expired archivelog all;
....
search

Classic Flipcard Magazine


RMAN> Mosaic Sidebar Snapshot Timeslide
delete obsolete;

OR

[oracle@dreco ~]$ rman

Recovery Manager: Release 11.2.0.1.0 - Production on Wed Jun 2 09:56:29 2010

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

RMAN> connect target /

connected to target database: PRODDB (DBID=459961910, not open)

RMAN> delete archivelog all completed before 'sysdate-N';

example sysdate-10

Mostly this will clear the requried space in it. PROD and DR will be started sync automatically

For more information please visit

http://www.oracledistilled.com/oracle-database/troubleshooting/data-guard-standby-archive-destination-full/

if it not syncing automatically we need to bounce the DR...

Find out if the standby database is performing managed recovery. If the MRP0 or MRP process
exists, then the standby database is performing managed recovery.
SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;

Cancel managed recovery operations.


SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

Shut down the standby database.


SQL> SHUTDOWN IMMEDIATE;

Start the database:


SQL> STARTUP NOMOUNT;

Mount the standby database:


SQL> ALTER DATABASE MOUNT STANDBY DATABASE;

Start the managed recovery operation:


SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
2> DISCONNECT FROM SESSION;

Hope it is help full :)

Regards
Madhan

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

Posted 8th December 2014 by Unknown

3 View comments

Sridevi K 2 November 2016 at 09:44


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

Blogger 2 December 2017 at 01:55


BlueHost is definitely one of the best web-hosting provider with plans for all of your hosting requirements.
Reply

Unknown 18 November 2018 at 12:11


yes it is help full madhan
Reply

5th December 2014 Database Refreshing clone oralce apps 11i using Rman

Database Refreshing clone oralce apps 11i using Rman

In order to facilitate troubleshooting we maintain a test environment which is a nightly copy of our 11i production environment.
Since this environment is usually used to test data fixes it has to be as up to date as possible. To perform the database refresh
we use rman's duplicate feature.

The goal of this article isn't just to provide the entire set of scripts and send you on your way. I think its safe to say that most
EBS environments aren't identical, so its not like you could take them and execute with no issues. Instead i'll highlight the steps
we follow and some of the key scripts.

NOTE: This doesn't include any pre-setup steps such as, if this is the first time duplicating the database make sure you have
the parameters db_file_name_convert and log_file_name_convert specified in your test environments init file.

· Step 1: Shutdown the test environment. If you are using 10g then remove any tempfiles. In 10g, rman now
includes tempfile information and if they exist you will encounter errors. Check this previous post.
[http://newappsdba.blogspot.com/2007/06/each-night-we-use-rmans-duplicate.html] Startup the database in nomount mode.
· Step 2: Build a Rman Script. There are a couple of ways to recover to a point in time and we have decided to use
SCN numbers. Since this process needs to be automated, we query productions rman catalog and determine the proper SCN
to use and build an rman script. Here it is:
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
set feedback off

ORACLE APPS DBA


set echo off
This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazineon Mosaic Sidebar Snapshot Timeslide


set serverout

spool $HOME/scripts/prod_to_vis.sql

declare

vmax_fuzzy number;

vmax_ckp number;

scn number;

db_name varchar2(3) := 'VIS';

log_file_dest1 varchar2(30) := '/dbf/visdata/';

begin

select max(absolute_fuzzy_change#)+1,

max(checkpoint_change#)+1

into vmax_fuzzy, vmax_ckp

from rc_backup_datafile;

if vmax_fuzzy > vmax_ckp then

scn := vmax_fuzzy;

else

scn := vmax_ckp;

end if;

dbms_output.put_line('run {');

dbms_output.put_line('set until scn '||to_char(scn)||';');

dbms_output.put_line('allocate auxiliary channel ch1 type disk;');

dbms_output.put_line('allocate auxiliary channel ch2 type disk;');

dbms_output.put_line('duplicate target database to '||db_name);

dbms_output.put_line('logfile group 1 ('||chr(39)||log_file_dest1||'log01a.dbf'||chr(39)||',');

dbms_output.put_line(chr(39)||log_file_dest1||'log01b.dbf'||chr(39)||') size 10m,');

dbms_output.put_line('group 2 ('||chr(39)||log_file_dest1||'log02a.dbf'||chr(39)||',');

dbms_output.put_line(chr(39)||log_file_dest1||'log02b.dbf'||chr(39)||') size 10m;}');

dbms_output.put_line('exit;');

end;

spool off;

This script produces a spool file called, prod_to_vis.sql:

run {

set until scn 14085390202;

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
allocate auxiliary channel ch1 type disk;

ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
allocate auxiliary channel ch2 type disk;
search

Classic Flipcard Magazine


duplicate target Mosaic Sidebar
database to VIS Snapshot Timeslide

logfile group 1 ('/dbf/visdata/log01a.dbf',

'/dbf/visdata/log01b.dbf') size 10m,

group 2 ('/oradata/dbf/visdata/log02a.dbf',

'/dbf/visdata/log02b.dbf') size 10m;}

exit;

Note: Our production nightly backups are on disk which are NFS mounted to our test server.

· Step 3: Execute the rman script. Launch rman, connect to the target, catalog, auxiliary and execute the script above:

ie.
rman> connect target sys/syspasswd@PROD catalog rmancat/catpasswd@REPO auxiliary /

You may want to put some error checking around rman to alert you if it fails. We have a wrapper script which supplies the
connection information and calls the rman script above. Our refresh is critical so if it fails we need to be paged.

rman @$SCRIPTS/prod_to_vis.sql

if [ $? != 0 ]

then

echo Failed

echo "RMAN Dupcliate Failed!"|mailx -s "Test refresh failed" pageremail@mycompany.com

exit 1

fi

· Step 4: If production is in archivelog mode but test isn't, then mount the database and alter database noarchivelog;
· Step 5: If you are using a hotbackup for cloning then you need to execute adupdlib.sql. This updates libraries with
correct OS paths. (Appendix B of Note:230672.1)
· Step 6: Change passwords. For database accounts such as sys, system and other non-applications accounts
change the passwords using alter user. For applications accounts such as apps/applsys, modules, sysadmin, etc use
FNDCPASS to change their passwords.

ie. To change the apps password:

FNDCPASS apps/<production appspassword=> 0 Y system/<system_passwd> SYSTEM applsys <new apps passwd>

· Step 7: Run autoconfig.


· Step 8: Drop any database links that aren't required in the test environment, or repoint them to the proper test
environments.
· Step 9: Follow Section 3: Finishing Tasks of Note:230672.1
· Update any profile options which have still reference the production instance.

Example:

UPDATE FND_PROFILE_OPTION_VALUES SET


profile_option_value = REPLACE(profile_option_value,'PROD','TEST')
WHERE profile_option_value like '%PROD%

Specifically check
the FND_PROFILE_OPTION_VALUES, ICX_PARAMETERS,WF_NOTIFICATION_ATTRIBUTES and WF_RESOURCES tabl
es and look for production hostnames and ports. We also update the forms title bar with the date the environment was
refreshed:

UPDATE apps.FND_PROFILE_OPTION_VALUES SET


profile_option_value = 'TEST:'||' Refreshed from '||'Production: '||SYSDATE
WHERE profile_option_id = 125
;

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
· Cancel Concurrent requests. We don't need concurrent requests which are scheduled in production to

ORACLE APPS DBA


keep running in test. We use the following update to cancel them. Also, we change the number of processes for the standard
manager.
This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine


update Mosaic Sidebar Snapshot Timeslide
fnd_concurrent_requests
set phase_code='C',
status_code='D'
where phase_code = 'P'
and concurrent_program_id not in (
select concurrent_program_id
from fnd_concurrent_programs_tl
where user_concurrent_program_name like '%Synchronize%tables%'
or user_concurrent_program_name like '%Workflow%Back%'
or user_concurrent_program_name like '%Sync%responsibility%role%'
or user_concurrent_program_name like '%Workflow%Directory%')
and (status_code = 'I' OR status_code = 'Q');

update FND_CONCURRENT_QUEUE_SIZE
set min_processes = 4
where concurrent_queue_id = 0;

· Step 10: Perform any custom/environment specific steps. We have some custom modules which required some
modifications as part of cloning.
· Step 11: Startup all of the application processes. ($S_TOP/adstrtal.sh)

NOTE: If you have an application tier you may have to run autoconfig before starting up the services.

For more info abt duplicate db


http://oracle-base.com/articles/11g/duplicate-database-using-rman-11gr2.php

Hopefully this article was of some use even tho it was pretty vague at times. If you have any questions feel free to ask. Any
corrections or better methods don't hesitate to leave a comment either.

Posted 5th December 2014 by Unknown

1 View comments

Sridevi K 2 November 2016 at 09:45


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

5th December 2014 Oracle Apps R12 cloning online hotbackup/rman

Oracle Apps R12 cloning online hotbackup/rman


In this article i will illustrate all steps involved in cloning an Oracle E-Business suite environment using online backup.

There are other ways also to do a clone of database with online backup. But in this article I am illustrating rman database
cloning with nocatalog option.

- Database will be backed up using rman


- Application File system will be backed up when all services are up and running.
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
source system - Existing system for which you want to create a new copy

ORACLE APPS DBA


target system - New system on which clone is prepared
This blog is written to share and help doer's.Please sh… search

Source and target OS  - oracle solaris 10 - sparc 64-bit


Classic Flipcard Magazine
Application Mosaic
Version - Sidebar Snapshot Timeslide
R12.1.1
Database Version  - 11.1.0.7

High Level Steps:

1. Install all required rapid clone patches from Note "406982.1" on source system if doesn't exists.
2. Run clone preparation script (adpreclone.pl) on database and application Tier
3. Perform full database backup using rman
4. Perform application file system backup using tar/backup tool
5. Copy RDBMS ORACLE_HOME, rman backup pieces and Application FS on target node
6. Create database context file using clone configuration script (adcfgclone.pl)
7. Restore and recover database using rman
8. Run autoconfig on target database node
9. Run clone configuration script on application Tier on targte node. 
10. perform post clone steps

Source and Target system Information:

[http://3.bp.blogspot.com/-Z2n0Pmm_GlQ/URDB-dWuqAI/AAAAAAAACUU/YRU78NFkp5A/s1600/source_taget_info_hot.JPG]

check pre-req patches on source system:

- Perform all OS pre-requisites on target system (OS packages, users, groups, kernel parameters, Display, File system
privileges and space requirements)

For LINUX refer section "Perform all operating system per-requisites":


http://appsdbaworkshop.blogspot.com/2011/11/installation-of-oracle-applications.html

For Solaris  refer:


http://appsdbaworkshop.blogspot.com/2010/11/oracle-applications-r1211-installation.html

SQL> select BUG_ID, BUG_NUMBER from ad_bugs where bug_number='&num';


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Enter value for num: 9239089

ORACLE APPS DBA


old
new
1: select BUG_ID, BUG_NUMBER from ad_bugs where bug_number='&num'
1: select BUG_ID, This blog isfrom
BUG_NUMBER written to share
ad_bugs and help doer's.Please
where bug_number='9239089' sh… search

BUG_ID BUG_NUMBER
Classic Flipcard Magazine ------------------------------
---------- Mosaic Sidebar Snapshot Timeslide
374712 9239089

SQL> /
Enter value for num: 9171651
old 1: select BUG_ID, BUG_NUMBER from ad_bugs where bug_number='&num'
new 1: select BUG_ID, BUG_NUMBER from ad_bugs where bug_number='9171651'

BUG_ID BUG_NUMBER
---------- ------------------------------
375423 9171651

SQL> /
Enter value for num: 9833058
old 1: select BUG_ID, BUG_NUMBER from ad_bugs where bug_number='&num'
new 1: select BUG_ID, BUG_NUMBER from ad_bugs where bug_number='9833058'

BUG_ID BUG_NUMBER
---------- ------------------------------
375424 9833058

SQL> /
Enter value for num: 12404574
old 1: select BUG_ID, BUG_NUMBER from ad_bugs where bug_number='&num'
new 1: select BUG_ID, BUG_NUMBER from ad_bugs where bug_number='12404574'

BUG_ID BUG_NUMBER
---------- ------------------------------
375421 12404574

SQL> /
Enter value for num: 12598630
old 1: select BUG_ID, BUG_NUMBER from ad_bugs where bug_number='&num'
new 1: select BUG_ID, BUG_NUMBER from ad_bugs where bug_number='12598630'

BUG_ID BUG_NUMBER
---------- ------------------------------
375422 12598630

Run clone preparation script (adpreclone.pl) on database Tier:

bash-3.00$ 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
/data/R12_ERP/db/tech_st/11.1.0/appsutil/bin/adclone.pl
java=/data/R12_ERP/db/tech_st/11.1.0/appsutil/jre mode=stage
stage=/data/R12_ERP/db/tech_st/11.1.0/appsutil/clone component=dbTier
method=CUSTOM
dbctx=/data/R12_ERP/db/tech_st/11.1.0/appsutil/ERPTEST_devdb.xml
showProgress
APPS Password :

Beginning database tier Stage - Sun Feb 3 11:45:39 2013

/data/R12_ERP/db/tech_st/11.1.0/appsutil/jre/bin/java
-Xmx600M -DCONTEXT_VALIDATED=false
-Doracle.installer.oui_loc=/data/R12_ERP/db/tech_st/11.1.0/oui
-classpath
/data/R12_ERP/db/tech_st/11.1.0/lib/xmlparserv2.jar:/data/R12_ERP/db/tech_st/11.1.0/jdbc/lib
/ojdbc6.jar:/data/R12_ERP/db/tech_st/11.1.0/appsutil/java:/data/R12_ERP/db/tech_st/11.1.0/ou
i/jlib/OraInstaller.jar:/data/R12_ERP/db/tech_st/11.1.0/oui/jlib/ewt3.jar:/data/R12_ERP/db/t
ech_st/11.1.0/oui/jlib/share.jar:/data/R12_ERP/db/tech_st/11.1.0/oui/jlib/srvm.jar:/data/R12
_ERP/db/tech_st/11.1.0/jlib/ojmisc.jar
oracle.apps.ad.clone.StageDBTier -e
/data/R12_ERP/db/tech_st/11.1.0/appsutil/ERPTEST_devdb.xml -stage
/data/R12_ERP/db/tech_st/11.1.0/appsutil/clone -tmp /tmp -method
CUSTOM -showProgress
APPS Password :
Log file located at
/data/R12_ERP/db/tech_st/11.1.0/appsutil/log/ERPTEST_devdb/StageDBTier_02031145.log

- 50% completed of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Madhanappsdba,Some
Completed Stage...
ORACLE APPS
Sun Feb DBA2013This blog is written to share and help doer's.Please sh…
3 11:48:10 search
bash-3.00$

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

Run clone preparation script (adpreclone.pl) on Application Tier:

bash-3.00$ adopmnctl.sh status

You are running adopmnctl.sh version 120.6.12010000.4

Checking status of OPMN managed processes...

Processes in Instance: ERPTEST_devappl.devaappl.orasol.com


---------------------------------+--------------------+---------+---------
ias-component | process-type | pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group | OC4J:oafm | 28611 | Alive
OC4JGroup:default_group | OC4J:forms | 28580 | Alive
OC4JGroup:default_group | OC4J:oacore | 28503 | Alive
HTTP_Server | HTTP_Server | 28450 | Alive

adopmnctl.sh: exiting with status 0

adopmnctl.sh:
check the logfile
/appl/R12_ERP/inst/apps/ERPTEST_devappl/logs/appl/admin/log/adopmnctl.txt
for more information ...

bash-3.00$ 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
/appl/R12_ERP/apps/apps_st/appl/ad/12.0.0/bin/adclone.pl
java=/appl/R12_ERP/apps/tech_st/10.1.3/appsutil/jdk mode=stage
stage=/appl/R12_ERP/apps/apps_st/comn/clone component=appsTier method=
appctx=/appl/R12_ERP/inst/apps/ERPTEST_devappl/appl/admin/ERPTEST_devappl.xml
showProgress
APPS Password :
method defaulted to CUSTOM

Beginning application tier Stage - Sun Feb 3 11:54:33 2013

/appl/R12_ERP/apps/tech_st/10.1.3/appsutil/jdk/bin/java
-Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui
-classpath
/appl/R12_ERP/apps/tech_st/10.1.3/lib/xmlparserv2.jar:/appl/R12_ERP/apps/tech_st/10.1.3/jdbc
/lib/ojdbc14.jar:/appl/R12_ERP/apps/apps_st/comn/java/classes:/appl/R12_ERP/apps/tech_st/10.
1.3/oui/jlib/OraInstaller.jar:/appl/R12_ERP/apps/tech_st/10.1.3/oui/jlib/ewt3.jar:/appl/R12_
ERP/apps/tech_st/10.1.3/oui/jlib/share.jar:/appl/R12_ERP/apps/tech_st/10.1.3/oui/jlib/srvm.j
ar:/appl/R12_ERP/apps/tech_st/10.1.3/jlib/ojmisc.jar
oracle.apps.ad.clone.StageAppsTier -e
/appl/R12_ERP/inst/apps/ERPTEST_devappl/appl/admin/ERPTEST_devappl.xml
-stage /appl/R12_ERP/apps/apps_st/comn/clone -tmp /tmp -method CUSTOM
-showProgress

Log file located at


/appl/R12_ERP/inst/apps/ERPTEST_devappl/admin/log/StageAppsTier_02031154.log

\ 80% completed

Completed Stage...
Sun Feb 3 11:57:14 2013

Perform full database RMAN backup:

bash-3.00$ rman target /

Recovery Manager: Release 11.1.0.7.0 - Production on Sun Feb 3 12:05:35 2013

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

connectedMadhanappsdba,Some
to target database:
of the blogsERPTEST (DBID=1262470248)
will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
RMAN> RUN {
ORACLE APPScontrolfile
2> configure DBA This blog isformat
autobackup writtenfor
to device
share type
and diks
helpto
doer's.Please sh… search
'/data/R12_ERP/rman_backup/3feb2013_Bkp/%F';
3> configure controlfile autobackup on;
Classic Flipcard
4> Magazine Mosaic Sidebar
allocate channel d1 type Snapshot
disk; Timeslide
5> backup tag FULL_DB database plus archivelog format
'/data/R12_ERP/rman_backup/3feb2013_Bkp/db_%t_%s.bkp';
6> release channel d1;
7> }

new RMAN configuration parameters:


CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'DIKS' TO
'/data/R12_ERP/rman_backup/3feb2013_Bkp/%F';
new RMAN configuration parameters are successfully stored

new RMAN configuration parameters:


CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters are successfully stored

allocated channel: d1
channel d1: SID=359 device type=DISK

Starting backup at 03-FEB-13


current log archived
channel d1: starting archived log backup set
channel d1: specifying archived log(s) in backup set
input archived log thread=1 sequence=22 RECID=1 STAMP=805281948
input archived log thread=1 sequence=23 RECID=2 STAMP=805282565
input archived log thread=1 sequence=24 RECID=3 STAMP=806418436
channel d1: starting piece 1 at 03-FEB-13
channel d1: finished piece 1 at 03-FEB-13
piece handle=/data/R12_ERP/rman_backup/3feb2013_Bkp/db_806418437_7.bkp tag=FULL_DB
comment=NONE
channel d1: backup set complete, elapsed time: 00:00:25
Finished backup at 03-FEB-13

Starting backup at 03-FEB-13


channel d1: starting full datafile backup set
channel d1: specifying datafile(s) in backup set
input datafile file number=00023 name=/data/R12_ERP/db/apps_st/data/a_txn_data02.dbf
input datafile file number=00025 name=/data/R12_ERP/db/apps_st/data/a_txn_ind01.dbf
input datafile file number=00022 name=/data/R12_ERP/db/apps_st/data/a_txn_data01.dbf
input datafile file number=00024 name=/data/R12_ERP/db/apps_st/data/a_txn_data03.dbf
input datafile file number=00026 name=/data/R12_ERP/db/apps_st/data/a_txn_ind02.dbf
input datafile file number=00027 name=/data/R12_ERP/db/apps_st/data/a_txn_ind03.dbf
input datafile file number=00029 name=/data/R12_ERP/db/apps_st/data/a_txn_ind05.dbf
input datafile file number=00012 name=/data/R12_ERP/db/apps_st/data/undo01.dbf
input datafile file number=00028 name=/data/R12_ERP/db/apps_st/data/a_txn_ind04.dbf
input datafile file number=00009 name=/data/R12_ERP/db/apps_st/data/system09.dbf
input datafile file number=00008 name=/data/R12_ERP/db/apps_st/data/system08.dbf
input datafile file number=00020 name=/data/R12_ERP/db/apps_st/data/a_ref02.dbf
input datafile file number=00019 name=/data/R12_ERP/db/apps_st/data/a_ref01.dbf
input datafile file number=00015 name=/data/R12_ERP/db/apps_st/data/a_media01.dbf
input datafile file number=00006 name=/data/R12_ERP/db/apps_st/data/system06.dbf
input datafile file number=00014 name=/data/R12_ERP/db/apps_st/data/a_int01.dbf
input datafile file number=00021 name=/data/R12_ERP/db/apps_st/data/a_summ01.dbf
input datafile file number=00004 name=/data/R12_ERP/db/apps_st/data/system04.dbf
input datafile file number=00010 name=/data/R12_ERP/db/apps_st/data/system10.dbf
input datafile file number=00002 name=/data/R12_ERP/db/apps_st/data/system02.dbf
input datafile file number=00003 name=/data/R12_ERP/db/apps_st/data/system03.dbf
input datafile file number=00001 name=/data/R12_ERP/db/apps_st/data/system01.dbf
input datafile file number=00005 name=/data/R12_ERP/db/apps_st/data/system05.dbf
input datafile file number=00011 name=/data/R12_ERP/db/apps_st/data/system11.dbf
input datafile file number=00007 name=/data/R12_ERP/db/apps_st/data/system07.dbf
input datafile file number=00013 name=/data/R12_ERP/db/apps_st/data/a_archive01.dbf
input datafile file number=00038 name=/data/R12_ERP/db/apps_st/data/a_txn_data4.dbf
input datafile file number=00017 name=/data/R12_ERP/db/apps_st/data/a_queue01.dbf
input datafile file number=00018 name=/data/R12_ERP/db/apps_st/data/a_queue02.dbf
input datafile file number=00036 name=/data/R12_ERP/db/apps_st/data/apps_ts_tools01.dbf
input datafile file number=00035 name=/data/R12_ERP/db/apps_st/data/sysaux01.dbf
input datafile file number=00037 name=/data/R12_ERP/db/apps_st/data/interim.dbf
input datafile file number=00031 name=/data/R12_ERP/db/apps_st/data/odm.dbf
input datafile file number=00032 name=/data/R12_ERP/db/apps_st/data/olap.dbf
input datafile file number=00034 name=/data/R12_ERP/db/apps_st/data/portal01.dbf
input datafile file number=00016 name=/data/R12_ERP/db/apps_st/data/a_nolog01.dbf
input datafile file number=00030 name=/data/R12_ERP/db/apps_st/data/ctxd01.dbf
input datafile file number=00033 name=/data/R12_ERP/db/apps_st/data/owad01.dbf
channel d1: starting piece 1 at 03-FEB-13
channel d1: finished piece 1 at 03-FEB-13
piece handle=/data/R12_ERP/db/tech_st/11.1.0/dbs/08o11u10_1_1 tag=FULL_DB comment=NONE
channel d1: backup set complete, elapsed time: 00:09:55
Finished backup at 03-FEB-13

Starting backup at 03-FEB-13


current log archived
channel d1: starting archived log backup set
channel d1: specifying archived log(s) in backup set
input archived log thread=1 sequence=25 RECID=4 STAMP=806419062
channel d1: starting piece 1 at 03-FEB-13
Madhanappsdba,Some
channel d1: finished piece of the 1
blogs
atwill03-FEB-13
directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
piece handle=/data/R12_ERP/rman_backup/3feb2013_Bkp/db_806419062_9.bkp tag=FULL_DB

ORACLE APPS DBA


comment=NONE
This blogelapsed
channel d1: backup set complete, is written to 00:00:01
time: share and help doer's.Please sh… search
Finished backup at 03-FEB-13

Classic Flipcard Magazine


Starting MosaicFile
Control Sidebar Snapshot
Autobackup Timeslide
at 03-FEB-13
piece handle=/data/R12_ERP/db/tech_st/11.1.0/dbs/c-1262470248-20130203-00 comment=NONE
Finished Control File Autobackup at 03-FEB-13

released channel: d1

RMAN>

Restore backup of database and application on Target Node:

- RDBMS Oracle Home

bash-3.00$ pwd
/data/R12_ERP/db
bash-3.00$ ls
apps_st tech_stbash-3.00$ tar -cvf DbHome.tar tech_st

bash-3.00$ ls
DbHome.tar apps_st tech_st
bash-3.00$ scp DbHome.tar oraclone@testappl:/appl/ERP_CLONE/dbclone
The authenticity of host 'testappl (10.10.17.53)' can't be established.
RSA key fingerprint is 04:b2:6a:ac:28:90:12:45:cd:2c:a1:56:fe:cd:2b:a1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'testappl,10.10.17.53' (RSA) to the list of known hosts.
Password:
DbHome.tar
100%
|*******************************************************************************************
*********|
12370 MB 10:37
bash-3.00$

bash-3.00$ scp /data/R12_ERP/db/tech_st/11.1.0/dbs/c-1262470248-20130203-00


oraclone@testappl:/appl/rman_backup
Password:
c-1262470248-2013020 100%
|*******************************************************************************************
*****
bash-3.00$ scp -r /data/R12_ERP/rman_backup/3feb2012_backup
oraclone@testappl:/appl/rman_backup
Password:
ERPTEST_DB_06o11r42_ 100%
|*******************************************************************************************
*****
ERPTEST_DB_05o11qhe_ 100%
|*******************************************************************************************
*****

- On Target Node testappl

bash-3.00$ pwd
/appl/ERP_CLONE/dbclone
bash-3.00$ tar -xvf DbHome.tar

Running Clone Configuration script on database Tier using dbTechStack option:

bash-3.00$ pwd
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/bin
bash-3.00$ ls
adcfgclone.pl adchkutl.sh adclone.pl adclonectx.pl
bash-3.00$ export PATH=/usr/ccs/bin:/usr/bin:/usr/ucb:/etc:.
bash-3.00$ perl adcfgclone.pl dbTechStack

Copyright (c) 2002 Oracle Corporation


Redwood Shores, California, USA

Oracle Applications Rapid Clone

Version 12.0.0

adcfgclone Version 120.31.12010000.8


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Enter the APPS password :

ORACLE APPS DBA


Running: This blog is written to share and help doer's.Please sh… search
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/bin/../jre/bin/java
-Xmx600M -cp
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/jlib/java:/appl/ERP_CLONE/dbclone/tech
_st/11.1.0/appsutil/clone/jlib/xmlparserv2.jar:/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsut
il/clone/jlib/ojdbc5.jar
oracle.apps.ad.context.CloneContext -e
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/bin/../context/db/CTXORIG.xml
-validate -pairsfile /tmp/adpairsfile_1233.lst -stage
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone -dbTechStack
2> /tmp/adcfgclone_1233.err; echo $? >
/tmp/adcfgclone_1233.res

Log file located at


/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/bin/CloneContext_0204091224.log

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

Target System Hostname (virtual or normal) [testappl] :

Target Instance is RAC (y/n) [n] :

Target System Database SID : CLONE

Target System Base Directory : /appl/ERP_CLONE/dbclone

Target System utl_file_dir Directory List : /usr/tmp

Number of DATA_TOP's on the Target System [1] :

Target System DATA_TOP Directory 1 [/data/R12_ERP/db/apps_st/data] :


/appl/ERP_CLONE/dbclone/clone_data

Target System RDBMS ORACLE_HOME Directory [/appl/ERP_CLONE/dbclone/db/tech_st/11.1.0] :


/appl/ERP_CLONE/dbclone/tech_st/11.1.0

Do you want to preserve the Display [null] (y/n) : n

Target System Display [testappl:0.0] :

Do you want the the target system to have the same port values as the source system (y/n)
[y] ? : n

Target System Port Pool [0-99] : 22

Checking the port pool 22


done: Port Pool 22 is free
Report file located at /appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/temp/portpool.lst
Complete port information available at
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/temp/portpool.lst

Creating the new Database Context file from :


/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/template/adxdbctx.tmp

The new database context file has been created :


/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/CLONE_testappl.xml

Log file located at


/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/bin/CloneContext_0204091224.log
Check Clone Context logfile
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/bin/CloneContext_0204091224.log for
details.

Running Rapid Clone with command:


perl
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/bin/adclone.pl
java=/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/bin/../jre
mode=apply stage=/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone
component=dbTechStack method=CUSTOM
dbctxtg=/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/CLONE_testappl.xml
showProgress contextValidated=true
Running:
perl
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/bin/adclone.pl
java=/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/bin/../jre
mode=apply stage=/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone
component=dbTechStack method=CUSTOM
dbctxtg=/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/CLONE_testappl.xml
showProgress contextValidated=true
APPS Password :

Beginning rdbms home Apply - Mon Feb 4 09:13:28 2013

/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/bin/../jre/bin/java
-Xmx600M -DCONTEXT_VALIDATED=true
-Doracle.installer.oui_loc=/appl/ERP_CLONE/dbclone/tech_st/11.1.0/oui
-classpath
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/jlib/xmlparserv2.jar:/appl/ERP_CLONE/d
bclone/tech_st/11.1.0/appsutil/clone/jlib/ojdbc6.jar:/appl/ERP_CLONE/dbclone/tech_st/11.1.0/
appsutil/clone/jlib/java:/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/jlib/oui/OraI
nstaller.jar:/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/jlib/oui/ewt3.jar:/appl/E
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
RP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone/jlib/oui/share.jar:/appl/ERP_CLONE/dbclone/te

ORACLE APPS DBA ch_st/11.1.0/appsutil/clone/jlib/oui/srvm.jar:/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsuti


l/clone/jlib/ojmisc.jar This blog is written to share and help doer's.Please sh… search
oracle.apps.ad.clone.ApplyDBTechStack -e
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/CLONE_testappl.xml
Classic Flipcard Magazine
-stage Mosaic Sidebar Snapshot Timeslide
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/clone
-showProgress
APPS Password : Log file located at
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/log/CLONE_testappl/ApplyDBTechStack_02040913
.log
\ 0% completed

Completed Apply...
Mon Feb 4 09:16:10 2013

Starting database listener for CLONE:


Running:
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/scripts/CLONE_testappl/addlnctl.sh start
CLONE
Logfile: /appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/log/CLONE_testappl/addlnctl.txt

You are running addlnctl.sh version 120.1.12010000.4

Starting listener process CLONE ...

LSNRCTL for Solaris: Version 11.1.0.7.0 - Production on 04-FEB-2013 09:16:10

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

Starting /appl/ERP_CLONE/dbclone/tech_st/11.1.0/bin/tnslsnr: please wait...

TNSLSNR for Solaris: Version 11.1.0.7.0 - Production


System parameter file is
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/network/admin/CLONE_testappl/listener.ora
Log messages written to
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/admin/CLONE_testappl/diag/tnslsnr/testappl/clone/aler
t/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testappl.orasol.com)(PORT=1543)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=testappl.orasol.com)(PORT=1543)))
STATUS of the LISTENER
------------------------
Alias CLONE
Version TNSLSNR for Solaris: Version 11.1.0.7.0 - Production
Start Date 04-FEB-2013 09:16:11
Uptime 0 days 0 hr. 0 min. 4 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/network/admin/CLONE_testappl/listener.ora
Listener Log File
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/admin/CLONE_testappl/diag/tnslsnr/testappl/clone/aler
t/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testappl.orasol.com)(PORT=1543)))
Services Summary...
Service "CLONE" has 1 instance(s).
Instance "CLONE", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

addlnctl.sh: exiting with status 0

addlnctl.sh:
check the logfile
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/log/CLONE_testappl/addlnctl.txt
for more information ...

bash-3.00$

· Change ORACLE_SID to ERP test in newly created enviroment file


As we are not using catalog database from target we need to first restore and recover database using the same source SID.
Later we can change it to required SID (CLONE) using "nid"
bash-3.00$ ls -l *.env
-rw-r--r-- 1 oraclone dbaclone 4382 Feb 4 09:29 CLONE_testappl.env
-rw-r--r-- 1 oraclone dbaclone 4225 Jan 20 15:14 ERPTEST_devdb.env
bash-3.00$ pwd
/appl/ERP_CLONE/dbclone/tech_st/11.1.0
bash-3.00$

ORACLE_SID="ERPTEST"
export ORACLE_SID

#Original Value is CLONE, replaced for restore and recover of rman db

· copy initCLONE.ora to initERPTEST.ora


· Edit db_name to ERPTEST instead of clone in newly copied file and make sure location of control file
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
db_name = ERPTEST
ORACLE APPS DBAcontrol_files
This blog is written to share and help doer's.Please sh…
= /appl/ERP_CLONE/dbclone/clone_data/cntrl01.dbf search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

Restore and Recover database using rman on target Node:

- startup nomount

SQL> startup nomount


ORACLE instance started.

Total System Global Area 1069252608 bytes


Fixed Size 2109352 bytes
Variable Size 427823192 bytes
Database Buffers 624951296 bytes
Redo Buffers 14368768 bytes
SQL>

 
- List backup piece of controlfile on source system (devdb)

RMAN> list backup of controlfile;

using target database control file instead of recovery catalog

List of Backup Sets


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

BS Key Type LV Size Device Type Elapsed Time Completion Time


------- ---- -- ---------- ----------- ------------ ---------------
3 Full 40.27M DISK 00:00:02 21-JAN-13
BP Key: 3 Status: AVAILABLE Compressed: NO Tag: TAG20130121T092605
Piece Name: /data/R12_ERP/rman_backup/ERPTEST_DB_03nvv8o3_3_1
Control File Included: Ckp SCN: 77924707 Ckp time: 21-JAN-13

BS Key Type LV Size Device Type Elapsed Time Completion Time


------- ---- -- ---------- ----------- ------------ ---------------
6 Full 40.27M DISK 00:00:03 03-FEB-13
BP Key: 6 Status: AVAILABLE Compressed: NO Tag: TAG20130203T120813
Piece Name: /data/R12_ERP/rman_backup/3feb2012_backup/ERPTEST_DB_06o11r42_6_1
Control File Included: Ckp SCN: 78217166 Ckp time: 03-FEB-13

BS Key Type LV Size Device Type Elapsed Time Completion Time


------- ---- -- ---------- ----------- ------------ ---------------
10 Full 40.27M DISK 00:00:02 03-FEB-13
BP Key: 10 Status: AVAILABLE Compressed: NO Tag: TAG20130203T131743
Piece Name: /data/R12_ERP/db/tech_st/11.1.0/dbs/c-1262470248-20130203-00
Control File Included: Ckp SCN: 78223859 Ckp time: 03-FEB-13

- Restore controlfile and mount database

bash-3.00$ pwd
/appl/rman_backup/3feb2012_backup
bash-3.00$ ls -lrt
total 48953331
-rw-r----- 1 oraclone dbaclone 42237952 Feb 3 14:14 c-1262470248-20130203-00
-rw-r----- 1 oraclone dbaclone 42237952 Feb 3 14:15 ERPTEST_DB_06o11r42_6_1
-rw-r----- 1 oraclone dbaclone 24959320064 Feb 3 14:37 ERPTEST_DB_05o11qhe_5_1
bash-3.00$ pwd
/appl/rman_backup/3feb2012_backup
bash-3.00$ rman target / nocatalog

Recovery Manager: Release 11.1.0.7.0 - Production on Mon Feb 4 10:08:26 2013

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

connected to target database: ERPTEST (not mounted)


using target database control file instead of recovery catalog

RMAN> restore controlfile from '/appl/rman_backup/3feb2012_backup/c-1262470248-20130203-00';

Starting restore at 04-FEB-13


allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=383
Madhanappsdba,Some device
of the blogs type=DISK
will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
channel ORA_DISK_1: restoring control file
ORACLE APPS
channel DBArestore
ORA_DISK_1: Thiscomplete,
blog is written
elapsedtotime:
share and help doer's.Please sh…
00:00:01 search
output file name=/appl/ERP_CLONE/dbclone/clone_data/cntrl01.dbf
Finished restore at 04-FEB-13
Classic Flipcard Magazine
RMAN> Mosaic Sidebar
alter database mount; Snapshot Timeslide

database mounted
released channel: ORA_DISK_1

- Catalog backup Pieces ( not required if location of rman bkp same on target)

RMAN> catalog backuppiece '/appl/rman_backup/3feb2012_backup/ERPTEST_DB_06o11r42_6_1';

cataloged backup piece


backup piece handle=/appl/rman_backup/3feb2012_backup/ERPTEST_DB_06o11r42_6_1 RECID=10
STAMP=806494720

RMAN> catalog backuppiece '/appl/rman_backup/3feb2012_backup/ERPTEST_DB_05o11qhe_5_1';

cataloged backup piece


backup piece handle=/appl/rman_backup/3feb2012_backup/ERPTEST_DB_05o11qhe_5_1 RECID=11
STAMP=806494728

RMAN> catalog backuppiece '/appl/rman_backup/3feb2012_backup/db_806418437_7.bkp';

cataloged backup piece


backup piece handle=/appl/rman_backup/3feb2012_backup/db_806418437_7.bkp RECID=12
STAMP=806498596

RMAN> catalog backuppiece '/appl/rman_backup/3feb2012_backup/db_806419062_9.bkp';

cataloged backup piece


backup piece handle=/appl/rman_backup/3feb2012_backup/db_806419062_9.bkp RECID=13
STAMP=806498610

- Prepare script for rman restore and run script (If target location is same "ste newname" not required)
bash-3.00$ cat rman_restore.sql
run {
set newname for datafile 1 to '/appl/ERP_CLONE/dbclone/clone_data/system01.dbf';
set newname for datafile 2 to '/appl/ERP_CLONE/dbclone/clone_data/system02.dbf';
set newname for datafile 3 to '/appl/ERP_CLONE/dbclone/clone_data/system03.dbf';
set newname for datafile 4 to '/appl/ERP_CLONE/dbclone/clone_data/system04.dbf';
set newname for datafile 5 to '/appl/ERP_CLONE/dbclone/clone_data/system05.dbf';
set newname for datafile 6 to '/appl/ERP_CLONE/dbclone/clone_data/system06.dbf';
set newname for datafile 7 to '/appl/ERP_CLONE/dbclone/clone_data/system07.dbf';
set newname for datafile 8 to '/appl/ERP_CLONE/dbclone/clone_data/system08.dbf';
set newname for datafile 9 to '/appl/ERP_CLONE/dbclone/clone_data/system09.dbf';
set newname for datafile 10 to '/appl/ERP_CLONE/dbclone/clone_data/system10.dbf';
set newname for datafile 11 to '/appl/ERP_CLONE/dbclone/clone_data/system11.dbf';
set newname for datafile 12 to '/appl/ERP_CLONE/dbclone/clone_data/undo01.dbf';
set newname for datafile 13 to '/appl/ERP_CLONE/dbclone/clone_data/a_archive01.dbf';
set newname for datafile 14 to '/appl/ERP_CLONE/dbclone/clone_data/a_int01.dbf';
set newname for datafile 15 to '/appl/ERP_CLONE/dbclone/clone_data/a_media01.dbf';
set newname for datafile 16 to '/appl/ERP_CLONE/dbclone/clone_data/a_nolog01.dbf';
set newname for datafile 17 to '/appl/ERP_CLONE/dbclone/clone_data/a_queue01.dbf';
set newname for datafile 18 to '/appl/ERP_CLONE/dbclone/clone_data/a_queue02.dbf';
set newname for datafile 19 to '/appl/ERP_CLONE/dbclone/clone_data/a_ref01.dbf';
set newname for datafile 20 to '/appl/ERP_CLONE/dbclone/clone_data/a_ref02.dbf';
set newname for datafile 21 to '/appl/ERP_CLONE/dbclone/clone_data/a_summ01.dbf';
set newname for datafile 22 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_data101.dbf';
set newname for datafile 23 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_data102.dbf';
set newname for datafile 24 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_data103.dbf';
set newname for datafile 25 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind01.dbf';
set newname for datafile 26 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind02.dbf';
set newname for datafile 27 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind03.dbf';
set newname for datafile 28 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind04.dbf';
set newname for datafile 29 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind05.dbf';
set newname for datafile 30 to '/appl/ERP_CLONE/dbclone/clone_data/ctxd01.dbf';
set newname for datafile 31 to '/appl/ERP_CLONE/dbclone/clone_data/odm.dbf';
set newname for datafile 32 to '/appl/ERP_CLONE/dbclone/clone_data/olap.dbf';
set newname for datafile 33 to '/appl/ERP_CLONE/dbclone/clone_data/owad01.dbf';
set newname for datafile 34 to '/appl/ERP_CLONE/dbclone/clone_data/portal01.dbf';
set newname for datafile 35 to '/appl/ERP_CLONE/dbclone/clone_data/sysaux01.dbf';
set newname for datafile 36 to '/appl/ERP_CLONE/dbclone/clone_data/apps_ts_tools01.dbf';
set newname for datafile 37 to '/appl/ERP_CLONE/dbclone/clone_data/interim.dbf';
set newname for datafile 38 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_data14.dbf';
restore database;
switch datafile all; }
bash-3.00$ pwd
/export/home/oraclone

RMAN> @/export/home/oraclone/rman_restore.sql
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
RMAN> run {

ORACLE APPS DBA 2> set newname for datafile 1 to '/appl/ERP_CLONE/dbclone/clone_data/system01.dbf';


This2blog
3> set newname for datafile is written to share and help doer's.Please sh… search
to '/appl/ERP_CLONE/dbclone/clone_data/system02.dbf';
4> set newname for datafile 3 to '/appl/ERP_CLONE/dbclone/clone_data/system03.dbf';
5> set newname for datafile 4 to '/appl/ERP_CLONE/dbclone/clone_data/system04.dbf';
Classic Flipcard
6> Magazine Mosaic
set newname Sidebar Snapshot
for datafile Timeslide
5 to '/appl/ERP_CLONE/dbclone/clone_data/system05.dbf';
7> set newname for datafile 6 to '/appl/ERP_CLONE/dbclone/clone_data/system06.dbf';
8> set newname for datafile 7 to '/appl/ERP_CLONE/dbclone/clone_data/system07.dbf';
9> set newname for datafile 8 to '/appl/ERP_CLONE/dbclone/clone_data/system08.dbf';
10> set newname for datafile 9 to '/appl/ERP_CLONE/dbclone/clone_data/system09.dbf';
11> set newname for datafile 10 to '/appl/ERP_CLONE/dbclone/clone_data/system10.dbf';
12> set newname for datafile 11 to '/appl/ERP_CLONE/dbclone/clone_data/system11.dbf';
13> set newname for datafile 12 to '/appl/ERP_CLONE/dbclone/clone_data/undo01.dbf';
14> set newname for datafile 13 to '/appl/ERP_CLONE/dbclone/clone_data/a_archive01.dbf';
15> set newname for datafile 14 to '/appl/ERP_CLONE/dbclone/clone_data/a_int01.dbf';
16> set newname for datafile 15 to '/appl/ERP_CLONE/dbclone/clone_data/a_media01.dbf';
17> set newname for datafile 16 to '/appl/ERP_CLONE/dbclone/clone_data/a_nolog01.dbf';
18> set newname for datafile 17 to '/appl/ERP_CLONE/dbclone/clone_data/a_queue01.dbf';
19> set newname for datafile 18 to '/appl/ERP_CLONE/dbclone/clone_data/a_queue02.dbf';
20> set newname for datafile 19 to '/appl/ERP_CLONE/dbclone/clone_data/a_ref01.dbf';
21> set newname for datafile 20 to '/appl/ERP_CLONE/dbclone/clone_data/a_ref02.dbf';
22> set newname for datafile 21 to '/appl/ERP_CLONE/dbclone/clone_data/a_summ01.dbf';
23> set newname for datafile 22 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_data101.dbf';
24> set newname for datafile 23 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_data102.dbf';
25> set newname for datafile 24 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_data103.dbf';
26> set newname for datafile 25 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind01.dbf';
27> set newname for datafile 26 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind02.dbf';
28> set newname for datafile 27 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind03.dbf';
29> set newname for datafile 28 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind04.dbf';
30> set newname for datafile 29 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind05.dbf';
31> set newname for datafile 30 to '/appl/ERP_CLONE/dbclone/clone_data/ctxd01.dbf';
32> set newname for datafile 31 to '/appl/ERP_CLONE/dbclone/clone_data/odm.dbf';
33> set newname for datafile 32 to '/appl/ERP_CLONE/dbclone/clone_data/olap.dbf';
34> set newname for datafile 33 to '/appl/ERP_CLONE/dbclone/clone_data/owad01.dbf';
35> set newname for datafile 34 to '/appl/ERP_CLONE/dbclone/clone_data/portal01.dbf';
36> set newname for datafile 35 to '/appl/ERP_CLONE/dbclone/clone_data/sysaux01.dbf';
37> set newname for datafile 36 to '/appl/ERP_CLONE/dbclone/clone_data/apps_ts_tools01.dbf';
38> set newname for datafile 37 to '/appl/ERP_CLONE/dbclone/clone_data/interim.dbf';
39> set newname for datafile 38 to '/appl/ERP_CLONE/dbclone/clone_data/a_txn_data14.dbf';
40> restore database;
41> switch datafile all; }
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

executingMadhanappsdba,Some
command: SET NEWNAME
of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
executing command: SET NEWNAME
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
executing command: SET NEWNAME

Classic Flipcard Magazinecommand:


executing Mosaic SET
Sidebar Snapshot Timeslide
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 04-FEB-13


allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=381 device type=DISK
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to
/appl/ERP_CLONE/dbclone/clone_data/system01.dbf
channel ORA_DISK_1: restoring datafile 00002 to
/appl/ERP_CLONE/dbclone/clone_data/system02.dbf
channel ORA_DISK_1: restoring datafile 00003 to
/appl/ERP_CLONE/dbclone/clone_data/system03.dbf
channel ORA_DISK_1: restoring datafile 00004 to
/appl/ERP_CLONE/dbclone/clone_data/system04.dbf
channel ORA_DISK_1: restoring datafile 00005 to
/appl/ERP_CLONE/dbclone/clone_data/system05.dbf
channel ORA_DISK_1: restoring datafile 00006 to
/appl/ERP_CLONE/dbclone/clone_data/system06.dbf
channel ORA_DISK_1: restoring datafile 00007 to
/appl/ERP_CLONE/dbclone/clone_data/system07.dbf
channel ORA_DISK_1: restoring datafile 00008 to
/appl/ERP_CLONE/dbclone/clone_data/system08.dbf
channel ORA_DISK_1: restoring datafile 00009 to
/appl/ERP_CLONE/dbclone/clone_data/system09.dbf
channel ORA_DISK_1: restoring datafile 00010 to
/appl/ERP_CLONE/dbclone/clone_data/system10.dbf
channel ORA_DISK_1: restoring datafile 00011 to
/appl/ERP_CLONE/dbclone/clone_data/system11.dbf
channel ORA_DISK_1: restoring datafile 00012 to
/appl/ERP_CLONE/dbclone/clone_data/undo01.dbf
channel ORA_DISK_1: restoring datafile 00013 to
/appl/ERP_CLONE/dbclone/clone_data/a_archive01.dbf
channel ORA_DISK_1: restoring datafile 00014 to
/appl/ERP_CLONE/dbclone/clone_data/a_int01.dbf
channel ORA_DISK_1: restoring datafile 00015 to
/appl/ERP_CLONE/dbclone/clone_data/a_media01.dbf
channel ORA_DISK_1: restoring datafile 00016 to
/appl/ERP_CLONE/dbclone/clone_data/a_nolog01.dbf
channel ORA_DISK_1: restoring datafile 00017 to
/appl/ERP_CLONE/dbclone/clone_data/a_queue01.dbf
channel ORA_DISK_1: restoring datafile 00018 to
/appl/ERP_CLONE/dbclone/clone_data/a_queue02.dbf
channel ORA_DISK_1: restoring datafile 00019 to
/appl/ERP_CLONE/dbclone/clone_data/a_ref01.dbf
channel ORA_DISK_1: restoring datafile 00020 to
/appl/ERP_CLONE/dbclone/clone_data/a_ref02.dbf
channel ORA_DISK_1: restoring datafile 00021 to
/appl/ERP_CLONE/dbclone/clone_data/a_summ01.dbf
channel ORA_DISK_1: restoring datafile 00022 to
/appl/ERP_CLONE/dbclone/clone_data/a_txn_data101.dbf
channel ORA_DISK_1: restoring datafile 00023 to
/appl/ERP_CLONE/dbclone/clone_data/a_txn_data102.dbf
channel ORA_DISK_1: restoring datafile 00024 to
/appl/ERP_CLONE/dbclone/clone_data/a_txn_data103.dbf
channel ORA_DISK_1: restoring datafile 00025 to
/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind01.dbf
channel ORA_DISK_1: restoring datafile 00026 to
/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind02.dbf
channel ORA_DISK_1: restoring datafile 00027 to
/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind03.dbf
channel ORA_DISK_1: restoring datafile 00028 to
/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind04.dbf
channel ORA_DISK_1: restoring datafile 00029 to
/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind05.dbf
channel ORA_DISK_1: restoring datafile 00030 to
/appl/ERP_CLONE/dbclone/clone_data/ctxd01.dbf
channel ORA_DISK_1: restoring datafile 00031 to /appl/ERP_CLONE/dbclone/clone_data/odm.dbf
channel ORA_DISK_1: restoring datafile 00032 to /appl/ERP_CLONE/dbclone/clone_data/olap.dbf
channel ORA_DISK_1: restoring datafile 00033 to
/appl/ERP_CLONE/dbclone/clone_data/owad01.dbf
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
channel ORA_DISK_1: restoring datafile 00034 to

ORACLE APPS DBA /appl/ERP_CLONE/dbclone/clone_data/portal01.dbf


This blog
channel ORA_DISK_1: restoring is written
datafile 00035 to
to share and help doer's.Please sh… search
/appl/ERP_CLONE/dbclone/clone_data/sysaux01.dbf
channel ORA_DISK_1: restoring datafile 00036 to
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
/appl/ERP_CLONE/dbclone/clone_data/apps_ts_tools01.dbf
channel ORA_DISK_1: restoring datafile 00037 to
/appl/ERP_CLONE/dbclone/clone_data/interim.dbf
channel ORA_DISK_1: restoring datafile 00038 to
/appl/ERP_CLONE/dbclone/clone_data/a_txn_data14.dbf
channel ORA_DISK_1: reading from backup piece
/data/R12_ERP/rman_backup/3feb2012_backup/ERPTEST_DB_05o11qhe_5_1
channel ORA_DISK_1: errors found reading piece
handle=/data/R12_ERP/rman_backup/3feb2012_backup/ERPTEST_DB_05o11qhe_5_1
channel ORA_DISK_1: failover to piece
handle=/appl/rman_backup/3feb2012_backup/ERPTEST_DB_05o11qhe_5_1 tag=TAG20130203T120813
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:12:21
Finished restore at 04-FEB-13

datafile 1 switched to datafile copy


input datafile copy RECID=39 STAMP=806496604 file
name=/appl/ERP_CLONE/dbclone/clone_data/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=40 STAMP=806496605 file
name=/appl/ERP_CLONE/dbclone/clone_data/system02.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=41 STAMP=806496605 file
name=/appl/ERP_CLONE/dbclone/clone_data/system03.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=42 STAMP=806496606 file
name=/appl/ERP_CLONE/dbclone/clone_data/system04.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=43 STAMP=806496606 file
name=/appl/ERP_CLONE/dbclone/clone_data/system05.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=44 STAMP=806496607 file
name=/appl/ERP_CLONE/dbclone/clone_data/system06.dbf
datafile 7 switched to datafile copy
input datafile copy RECID=45 STAMP=806496607 file
name=/appl/ERP_CLONE/dbclone/clone_data/system07.dbf
datafile 8 switched to datafile copy
input datafile copy RECID=46 STAMP=806496608 file
name=/appl/ERP_CLONE/dbclone/clone_data/system08.dbf
datafile 9 switched to datafile copy
input datafile copy RECID=47 STAMP=806496609 file
name=/appl/ERP_CLONE/dbclone/clone_data/system09.dbf
datafile 10 switched to datafile copy
input datafile copy RECID=48 STAMP=806496609 file
name=/appl/ERP_CLONE/dbclone/clone_data/system10.dbf
datafile 11 switched to datafile copy
input datafile copy RECID=49 STAMP=806496610 file
name=/appl/ERP_CLONE/dbclone/clone_data/system11.dbf
datafile 12 switched to datafile copy
input datafile copy RECID=50 STAMP=806496611 file
name=/appl/ERP_CLONE/dbclone/clone_data/undo01.dbf
datafile 13 switched to datafile copy
input datafile copy RECID=51 STAMP=806496612 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_archive01.dbf
datafile 14 switched to datafile copy
input datafile copy RECID=52 STAMP=806496612 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_int01.dbf
datafile 15 switched to datafile copy
input datafile copy RECID=53 STAMP=806496613 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_media01.dbf
datafile 16 switched to datafile copy
input datafile copy RECID=54 STAMP=806496613 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_nolog01.dbf
datafile 17 switched to datafile copy
input datafile copy RECID=55 STAMP=806496614 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_queue01.dbf
datafile 18 switched to datafile copy
input datafile copy RECID=56 STAMP=806496614 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_queue02.dbf
datafile 19 switched to datafile copy
input datafile copy RECID=57 STAMP=806496615 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_ref01.dbf
datafile 20 switched to datafile copy
input datafile copy RECID=58 STAMP=806496615 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_ref02.dbf
datafile 21 switched to datafile copy
input datafile copy RECID=59 STAMP=806496616 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_summ01.dbf
datafile 22 switched to datafile copy
input datafile copy RECID=60 STAMP=806496617 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_txn_data101.dbf
datafile 23 switched to datafile copy
input datafile copy RECID=61 STAMP=806496618 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_txn_data102.dbf
datafile 24 switched to datafile copy
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
input datafile copy RECID=62 STAMP=806496619 file

ORACLE APPS DBA name=/appl/ERP_CLONE/dbclone/clone_data/a_txn_data103.dbf


datafile 25 switched to This blogcopy
datafile is written to share and help doer's.Please sh… search
input datafile copy RECID=63 STAMP=806496619 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind01.dbf
Classic Flipcard Magazine
datafile Mosaic Sidebar
26 switched Snapshot
to datafile copyTimeslide
input datafile copy RECID=64 STAMP=806496620 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind02.dbf
datafile 27 switched to datafile copy
input datafile copy RECID=65 STAMP=806496620 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind03.dbf
datafile 28 switched to datafile copy
input datafile copy RECID=66 STAMP=806496621 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind04.dbf
datafile 29 switched to datafile copy
input datafile copy RECID=67 STAMP=806496621 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_txn_ind05.dbf
datafile 30 switched to datafile copy
input datafile copy RECID=68 STAMP=806496622 file
name=/appl/ERP_CLONE/dbclone/clone_data/ctxd01.dbf
datafile 31 switched to datafile copy
input datafile copy RECID=69 STAMP=806496622 file
name=/appl/ERP_CLONE/dbclone/clone_data/odm.dbf
datafile 32 switched to datafile copy
input datafile copy RECID=70 STAMP=806496623 file
name=/appl/ERP_CLONE/dbclone/clone_data/olap.dbf
datafile 33 switched to datafile copy
input datafile copy RECID=71 STAMP=806496623 file
name=/appl/ERP_CLONE/dbclone/clone_data/owad01.dbf
datafile 34 switched to datafile copy
input datafile copy RECID=72 STAMP=806496624 file
name=/appl/ERP_CLONE/dbclone/clone_data/portal01.dbf
datafile 35 switched to datafile copy
input datafile copy RECID=73 STAMP=806496624 file
name=/appl/ERP_CLONE/dbclone/clone_data/sysaux01.dbf
datafile 36 switched to datafile copy
input datafile copy RECID=74 STAMP=806496625 file
name=/appl/ERP_CLONE/dbclone/clone_data/apps_ts_tools01.dbf
datafile 37 switched to datafile copy
input datafile copy RECID=75 STAMP=806496625 file
name=/appl/ERP_CLONE/dbclone/clone_data/interim.dbf
datafile 38 switched to datafile copy
input datafile copy RECID=76 STAMP=806496626 file
name=/appl/ERP_CLONE/dbclone/clone_data/a_txn_data14.dbf

RMAN> **end-of-file**

RMAN>
- List backup of archive logs and recover database until last available seq

RMAN> list backup of archivelog all;

List of Backup Sets


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

BS Key Size Device Type Elapsed Time Completion Time


------- ---------- ----------- ------------ ---------------
1 822.21M DISK 00:00:11 21-JAN-13
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20130121T092549
Piece Name: /data/R12_ERP/rman_backup/ERPTEST_DB_01nvv84u_1_1

List of Archived Logs in backup set 1


Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 22 77784979 20-JAN-13 77924429 21-JAN-13

BS Key Size Device Type Elapsed Time Completion Time


------- ---------- ----------- ------------ ---------------
4 103.00K DISK 00:00:00 21-JAN-13
BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20130121T093606
Piece Name: /data/R12_ERP/rman_backup/ERPTEST_DB_04nvv8o6_4_1

List of Archived Logs in backup set 4


Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 23 77924429 21-JAN-13 77924713 21-JAN-13

BS Key Size Device Type Elapsed Time Completion Time


------- ---------- ----------- ------------ ---------------
7 1.20G DISK 00:00:22 03-FEB-13
BP Key: 7 Status: AVAILABLE Compressed: NO Tag: FULL_DB
Piece Name: /data/R12_ERP/rman_backup/3feb2013_Bkp/db_806418437_7.bkp

List of Archived Logs in backup set 7


Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 22 77784979 20-JAN-13 77924429 21-JAN-13
1 23Madhanappsdba,Some
77924429 of the21-JAN-13 77924713
blogs will directly 21-JAN-13
points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
1 24 77924713 21-JAN-13 78223108 03-FEB-13

ORACLE APPS
BS Key Size DBA This
Device blog
Type is written
Elapsed to share and
Time Completion Time help doer's.Please sh… search
------- ---------- ----------- ------------ ---------------
9 226.00K DISK 00:00:00 03-FEB-13
Classic Flipcard Magazine Mosaic
BP Key: 9 Sidebar
Status: Snapshot
AVAILABLETimeslide
Compressed: NO Tag: FULL_DB
Piece Name: /data/R12_ERP/rman_backup/3feb2013_Bkp/db_806419062_9.bkp

List of Archived Logs in backup set 9


Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- --------- ---------- ---------
1 25 78223108 03-FEB-13 78223850 03-FEB-13

RMAN> RUN {
2> set until sequence 26 thread 1;
3> recover database;
4> }

executing command: SET until clause

Starting recover at 04-FEB-13


using channel ORA_DISK_1

starting media recovery

channel ORA_DISK_1: starting archived log restore to default destination


channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=24
channel ORA_DISK_1: reading from backup piece
/data/R12_ERP/rman_backup/3feb2013_Bkp/db_806418437_7.bkp
channel ORA_DISK_1: errors found reading piece
handle=/data/R12_ERP/rman_backup/3feb2013_Bkp/db_806418437_7.bkp
channel ORA_DISK_1: failover to piece
handle=/appl/rman_backup/3feb2012_backup/db_806418437_7.bkp tag=FULL_DB
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
archived log file name=/appl/ERP_CLONE/dbclone/clone_data/archive/1_24_805117931.dbf
thread=1 sequence=24
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=25
channel ORA_DISK_1: reading from backup piece
/data/R12_ERP/rman_backup/3feb2013_Bkp/db_806419062_9.bkp
channel ORA_DISK_1: errors found reading piece
handle=/data/R12_ERP/rman_backup/3feb2013_Bkp/db_806419062_9.bkp
channel ORA_DISK_1: failover to piece
handle=/appl/rman_backup/3feb2012_backup/db_806419062_9.bkp tag=FULL_DB
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=/appl/ERP_CLONE/dbclone/clone_data/archive/1_25_805117931.dbf
thread=1 sequence=25
media recovery complete, elapsed time: 00:00:01
Finished recover at 04-FEB-13

RMAN>

- Rename online LOGFILES:

bash-3.00$ sqlplus / as sysdba

SQL*Plus: Release 11.1.0.7.0 - Production on Mon Feb 4 13:36:24 2013

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

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

SQL> select member from v$logfile;

MEMBER
--------------------------------------------------------------------------------
/data/R12_ERP/db/apps_st/data/log02a.dbf
/data/R12_ERP/db/apps_st/data/log02b.dbf
/data/R12_ERP/db/apps_st/data/log01a.dbf
/data/R12_ERP/db/apps_st/data/log01b.dbf

SQL> alter database rename file '/data/R12_ERP/db/apps_st/data/log02a.dbf' to


'/appl/ERP_CLONE/dbclone/clone_data/log02a.dbf';

Database altered.

SQL> alter database rename file '/data/R12_ERP/db/apps_st/data/log02b.dbf' to


'/appl/ERP_CLONE/dbclone/clone_data/log02b.dbf'
2 ;

Database altered.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
SQL> alter database rename file '/data/R12_ERP/db/apps_st/data/log01a.dbf' to

ORACLE APPS DBA


'/appl/ERP_CLONE/dbclone/clone_data/log01a.dbf';
This blog is written to share and help doer's.Please sh… search
Database altered.

Classic Flipcard Magazine


SQL> Mosaic Sidebar
alter database Snapshot
rename file Timeslide
'/data/R12_ERP/db/apps_st/data/log01b.dbf' to
'/appl/ERP_CLONE/dbclone/clone_data/log01b.dbf';

Database altered.

SQL>

- Open database using resetlogs:

SQL> alter database open resetlogs;

Database altered.

SQL>

-   Create and drop TEMP tablspace


SQL> create TEMPORARY TABLESPACE TEMP3 TEMPFILE
'/appl/ERP_CLONE/dbclone/clone_data/temp003.dbf' size 2048M;

Tablespace created.

SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp3;

Database altered.

SQL> drop tablespace temp1 including contents and datafiles;

Tablespace dropped.

SQL> drop tablespace temp2 including contents and datafiles;

Tablespace dropped.

SQL>

- Change database name using "nid" command


bash-3.00$ sqlplus / as sysdba

SQL*Plus: Release 11.1.0.7.0 - Production on Mon Feb 4 13:59:47 2013

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

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

SQL> shut immediate;


Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.

Total System Global Area 1069252608 bytes


Fixed Size 2109352 bytes
Variable Size 427823192 bytes
Database Buffers 624951296 bytes
Redo Buffers 14368768 bytes
Database mounted.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
bash-3.00$ nid TARGET=SYS/oracle DBNAME=CLONE

DBNEWID: Release 11.1.0.7.0 - Production on Mon Feb 4 14:02:31 2013

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

Connected to database ERPTEST (DBID=1262470248)

Connected to server version 11.1.0

Control Files in database:


/appl/ERP_CLONE/dbclone/clone_data/cntrl01.dbf

Change database ID and database name ERPTEST to CLONE? (Y/[N]) => Y

Proceeding with operation


Changing database ID from 1262470248 to 1005337143
Changing database name from ERPTEST to CLONE
Control File /appl/ERP_CLONE/dbclone/clone_data/cntrl01.dbf - modified
Datafile /appl/ERP_CLONE/dbclone/clone_data/system01.db
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for-myreference.
dbid changed, wrote
Dynamic Views new
theme. name
Powered by Blogger.
Datafile /appl/ERP_CLONE/dbclone/clone_data/system02.db - dbid changed, wrote new name

ORACLE APPS DBA Datafile /appl/ERP_CLONE/dbclone/clone_data/system03.db - dbid changed, wrote new name
This blog is written to share and help
Datafile /appl/ERP_CLONE/dbclone/clone_data/system04.db doer's.Please
- dbid changed, wrotesh
new search
… name
Datafile /appl/ERP_CLONE/dbclone/clone_data/system05.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/system06.db - dbid changed, wrote new name
Classic Flipcard Magazine
Datafile Mosaic Sidebar Snapshot Timeslide
/appl/ERP_CLONE/dbclone/clone_data/system07.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/system08.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/system09.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/system10.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/system11.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/undo01.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_archive01.db - dbid changed, wrote new
name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_int01.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_media01.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_nolog01.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_queue01.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_queue02.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_ref01.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_ref02.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_summ01.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_txn_data101.db - dbid changed, wrote new
name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_txn_data102.db - dbid changed, wrote new
name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_txn_data103.db - dbid changed, wrote new
name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_txn_ind01.db - dbid changed, wrote new
name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_txn_ind02.db - dbid changed, wrote new
name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_txn_ind03.db - dbid changed, wrote new
name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_txn_ind04.db - dbid changed, wrote new
name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_txn_ind05.db - dbid changed, wrote new
name
Datafile /appl/ERP_CLONE/dbclone/clone_data/ctxd01.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/odm.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/olap.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/owad01.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/portal01.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/sysaux01.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/apps_ts_tools01.db - dbid changed, wrote new
name
Datafile /appl/ERP_CLONE/dbclone/clone_data/interim.db - dbid changed, wrote new name
Datafile /appl/ERP_CLONE/dbclone/clone_data/a_txn_data14.db - dbid changed, wrote new
name
Datafile /appl/ERP_CLONE/dbclone/clone_data/temp003.db - dbid changed, wrote new name
Control File /appl/ERP_CLONE/dbclone/clone_data/cntrl01.dbf - dbid changed, wrote new
name
Instance shut down

Database name changed to CLONE.


Modify parameter file and generate a new password file before restarting.
Database ID for database CLONE changed to 1005337143.
All previous backups and archived redo logs for this database are unusable.
Database has been shutdown, open database with RESETLOGS option.
Succesfully changed database name and ID.
DBNEWID - Completed succesfully.

bash-3.00$

- Change ORACLE_SID in environment file and start database with reset logs:

bash-3.00$ grep ORACLE_SID CLONE_testappl.env


ORACLE_SID="CLONE"
export ORACLE_SID
bash-3.00$ pwd
/appl/ERP_CLONE/dbclone/tech_st/11.1.0
bash-3.00$ echo $ORACLE_SID
CLONE
bash-3.00$ sqlplus / as sysdba

SQL*Plus: Release 11.1.0.7.0 - Production on Mon Feb 4 14:12:56 2013

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

Connected to an idle instance.

SQL> startup mount


ORACLE instance started.

Total System Global Area 1069252608 bytes


Fixed Size 2109352 bytes
Variable Size 427823192 bytes
Database Buffers 624951296 bytes
Redo Buffers 14368768 bytes
Database Madhanappsdba,Some
mounted. of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
SQL> alter database open resetlogs;

ORACLE APPS
Database DBA
altered. This blog is written to share and help doer's.Please sh… search

SQL> select open_mode, name from v$database;


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
OPEN_MODE NAME
---------- ---------
READ WRITE CLONE

SQL>

- Run autoconfig on database Tier:


bash-3.00$ adautocfg.sh
Enter the APPS user password:
The log file for this session is located at:
/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/log/CLONE_testappl/02041433/adconfig.log

AutoConfig is configuring the Database environment...

AutoConfig will consider the custom templates if present.


Using ORACLE_HOME location : /appl/ERP_CLONE/dbclone/tech_st/11.1.0
Classpath :
:/appl/ERP_CLONE/dbclone/tech_st/11.1.0/jdbc/lib/ojdbc6.jar:/appl/ERP_CLONE/dbclone/tech_st/
11.1.0/appsutil/java/xmlparserv2.jar:/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/java:/a
ppl/ERP_CLONE/dbclone/tech_st/11.1.0/jlib/netcfg.jar:/appl/ERP_CLONE/dbclone/tech_st/11.1.0/
jlib/ldapjclnt11.jar

Using Context file :


/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/CLONE_testappl.xml

Context Value Management will now update the Context file


UnsatisfiedLinkError exception loading native library: njni11

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Updating rdbms version in Context file to db111


Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...

AutoConfig completed successfully.

- Run clone Configuration script on application Tier (testappl):

bash-3.00$ pwd
/data/appclone/R12_ERP/apps/apps_st/comn/clone/bin
bash-3.00$ export PATH=/usr/ccs/bin:/usr/bin:/usr/ucb:/etc:.
bash-3.00$ perl adcfgclone.pl appsTier

Copyright (c) 2002 Oracle Corporation


Redwood Shores, California, USA

Oracle Applications Rapid Clone

Version 12.0.0

adcfgclone Version 120.31.12010000.8

Enter the APPS password :

Running:
/data/appclone/R12_ERP/apps/apps_st/comn/clone/bin/../jre/bin/java -Xmx600M -cp
/data/appclone/R12_ERP/apps/apps_st/comn/clone/jlib/java:/data/appclone/R12_ERP/apps/apps_st
/comn/clone/jlib/xmlparserv2.jar:/data/appclone/R12_ERP/apps/apps_st/comn/clone/jlib/ojdbc14
.jar oracle.apps.ad.context.CloneContext -e
/data/appclone/R12_ERP/apps/apps_st/comn/clone/bin/../context/apps/CTXORIG.xml -validate -
pairsfile /tmp/adpairsfile_26828.lst -stage /data/appclone/R12_ERP/apps/apps_st/comn/clone
2> /tmp/adcfgclone_26828.err; echo $? > /tmp/adcfgclone_26828.res

Log file located at


/data/appclone/R12_ERP/apps/apps_st/comn/clone/bin/CloneContext_0205121512.log

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

Target System Hostname (virtual or normal) [testappl] :

Target System Database SID : CLONE

Target System Database Server Node [testappl] :

Target System Database Domain Name [orasol.com] :

Target System Base Directory : /data/appclone/R12_ERP

Target System Tools ORACLE_HOME Directory [/data/appclone/R12_ERP/apps/tech_st/10.1.2] :

Target System Web ORACLE_HOME Directory [/data/appclone/R12_ERP/apps/tech_st/10.1.3] :

Target System APPL_TOP Directory [/data/appclone/R12_ERP/apps/apps_st/appl] :


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Target System COMMON_TOP Directory [/data/appclone/R12_ERP/apps/apps_st/comn] :

ORACLE APPS
Target DBA Home
System Instance ThisDirectory
blog is written to share and help doer's.Please
[/data/appclone/R12_ERP/inst] : sh… search

Target System Root Service [enabled] :


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
Target System Web Entry Point Services [enabled] :

Target System Web Application Services [enabled] :

Target System Batch Processing Services [enabled] :

Target System Other Services [disabled] :

Do you want to preserve the Display [devappl:0.0] (y/n) : n

Target System Display [testappl:0.0] :

RC-00217: Warning: Configuration home directory (s_config_home) evaluates to


/data/appclone/R12_ERP/inst/apps/CLONE_testappl. A directory with this name already exists
and is not empty.

Do you want to continue (y/n) : y

Do you want the the target system to have the same port values as the source system (y/n)
[y] ? : n

Target System Port Pool [0-99] : 22

Checking the port pool 22


done: Port Pool 22 is free
Report file located at /data/appclone/R12_ERP/inst/apps/CLONE_testappl/temp/portpool.lst
Complete port information available at
/data/appclone/R12_ERP/inst/apps/CLONE_testappl/temp/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp
2. /usr/tmp
3. /appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/outbound/CLONE_testappl
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] :

Backing up /data/appclone/R12_ERP/inst/apps/CLONE_testappl/appl/admin/CLONE_testappl.xml to
/data/appclone/R12_ERP/inst/apps/CLONE_testappl/appl/admin/CLONE_testappl.xml0.bak

Creating the new APPL_TOP Context file from :


/data/appclone/R12_ERP/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp

The new APPL_TOP context file has been created :


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/appl/admin/CLONE_testappl.xml

Log file located at


/data/appclone/R12_ERP/apps/apps_st/comn/clone/bin/CloneContext_0205121512.log
Check Clone Context logfile
/data/appclone/R12_ERP/apps/apps_st/comn/clone/bin/CloneContext_0205121512.log for details.

Running Rapid Clone with command:


perl /data/appclone/R12_ERP/apps/apps_st/comn/clone/bin/adclone.pl
java=/data/appclone/R12_ERP/apps/apps_st/comn/clone/bin/../jre mode=apply
stage=/data/appclone/R12_ERP/apps/apps_st/comn/clone component=appsTier method=CUSTOM
appctxtg=/data/appclone/R12_ERP/inst/apps/CLONE_testappl/appl/admin/CLONE_testappl.xml
showProgress contextValidated=true
Running:
perl /data/appclone/R12_ERP/apps/apps_st/comn/clone/bin/adclone.pl
java=/data/appclone/R12_ERP/apps/apps_st/comn/clone/bin/../jre mode=apply
stage=/data/appclone/R12_ERP/apps/apps_st/comn/clone component=appsTier method=CUSTOM
appctxtg=/data/appclone/R12_ERP/inst/apps/CLONE_testappl/appl/admin/CLONE_testappl.xml
showProgress contextValidated=true
APPS Password :

Beginning application tier Apply - Tue Feb 5 12:15:57 2013

/data/appclone/R12_ERP/apps/apps_st/comn/clone/bin/../jre/bin/java -Xmx600M -
DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath
/data/appclone/R12_ERP/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/data/appclone/R12_ERP/a
pps/apps_st/comn/clone/jlib/ojdbc14.jar:/data/appclone/R12_ERP/apps/apps_st/comn/clone/jlib/
java:/data/appclone/R12_ERP/apps/apps_st/comn/clone/jlib/oui/OraInstaller.jar:/data/appclone
/R12_ERP/apps/apps_st/comn/clone/jlib/oui/ewt3.jar:/data/appclone/R12_ERP/apps/apps_st/comn/
clone/jlib/oui/share.jar:/data/appclone/R12_ERP/apps/apps_st/comn/clone/jlib/oui/srvm.jar:/d
ata/appclone/R12_ERP/apps/apps_st/comn/clone/jlib/ojmisc.jar
oracle.apps.ad.clone.ApplyAppsTier -e
/data/appclone/R12_ERP/inst/apps/CLONE_testappl/appl/admin/CLONE_testappl.xml -stage
/data/appclone/R12_ERP/apps/apps_st/comn/clone -showProgress
APPS Password : Log file located at
/data/appclone/R12_ERP/inst/apps/CLONE_testappl/admin/log/ApplyAppsTier_02051215.log
/ 89% completed

Completed Apply...
Tue Feb 5 12:20:51 2013

Do you want to startup the


Madhanappsdba,Some of the Application Services
blogs will directly points for
oracle notes CLONE?
or other (y/n)
blogs for [y] Dynamic
myreference. : Views theme. Powered by Blogger.
Starting application Services for CLONE:
ORACLE APPS DBA
Running: This blog is written to share and help doer's.Please sh… search
/data/appclone/R12_ERP/inst/apps/CLONE_testappl/admin/scripts/adstrtal.sh -nopromptmsg

Classic Flipcard
YouMagazine Mosaic
are running Sidebar Snapshot
adstrtal.sh Timeslide
version 120.15.12010000.3

The logfile for this session is located at


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/logs/appl/admin/log/adstrtal.log
Executing service control script:
/data/appclone/R12_ERP/inst/apps/CLONE_testappl/admin/scripts/adopmnctl.sh start
script returned:
****************************************************

You are running adopmnctl.sh version 120.6.12010000.4

Starting Oracle Process Manager (OPMN) ...

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/logs/appl/admin/log/adopmnctl.txt for more
information ...

.end std out.

.end err out.

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

Executing service control script:


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/admin/scripts/adalnctl.sh start
script returned:
****************************************************

adalnctl.sh version 120.3

Checking for FNDFS executable.


Starting listener process APPS_CLONE.

adalnctl.sh: exiting with status 0

adalnctl.sh: check the logfile


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/logs/appl/admin/log/adalnctl.txt for more
information ...

.end std out.

.end err out.

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

Executing service control script:


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/admin/scripts/adapcctl.sh start
script returned:
****************************************************

You are running adapcctl.sh version 120.7.12010000.2

Starting OPMN managed Oracle HTTP Server (OHS) instance ...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/logs/appl/admin/log/adapcctl.txt for more
information ...

.end std out.

.end err out.

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

Executing service control script:


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/admin/scripts/adoacorectl.sh start
script returned:
****************************************************

You are running adoacorectl.sh version 120.13

Starting OPMN managed OACORE OC4J instance ...

adoacorectl.sh: exiting with status 0

adoacorectl.sh: check the logfile


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/logs/appl/admin/log/adoacorectl.txt for more
information ...
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
.end std out.

ORACLE
.end APPS
err out. DBA This blog is written to share and help doer's.Please sh… search

****************************************************
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

Executing service control script:


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/admin/scripts/adformsctl.sh start
script returned:
****************************************************

You are running adformsctl.sh version 120.16.12010000.3

Starting OPMN managed FORMS OC4J instance ...


Calling txkChkFormsDeployment.pl to check whether latest FORMSAPP.EAR is deployed...
Program :
/data/appclone/R12_ERP/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl
started @ Tue Feb 5 12:40:02 2013

*** Log File =


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/logs/appl/rgf/TXK/txkChkFormsDeployment_Tue_
Feb_5_12_40_00_2013/txkChkFormsDeployment_Tue_Feb_5_12_40_00_2013.log

File "/data/appclone/R12_ERP/apps/tech_st/10.1.3/j2ee/forms/applications/forms/formsweb/WEB-
INF/lib/frmsrv.jar" exists. Proceeding to check the size...

=============================================
*** Latest formsapp.ear has been deployed ***
=============================================

Program :
/data/appclone/R12_ERP/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl
completed @ Tue Feb 5 12:40:03 2013

Perl script txkChkFormsDeployment.pl got executed successfully

adformsctl.sh: exiting with status 0

adformsctl.sh: check the logfile


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/logs/appl/admin/log/adformsctl.txt for more
information ...

.end std out.


*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File =
/data/appclone/R12_ERP/inst/apps/CLONE_testappl/logs/appl/rgf/TXK/txkChkFormsDeployment_Tue_
Feb_5_12_40_00_2013/txkChkFormsDeployment_Tue_Feb_5_12_40_00_2013.log

.end err out.

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

Executing service control script:


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/admin/scripts/adoafmctl.sh start
script returned:
****************************************************

You are running adoafmctl.sh version 120.8

Starting OPMN managed OAFM OC4J instance ...

adoafmctl.sh: exiting with status 0

adoafmctl.sh: check the logfile


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/logs/appl/admin/log/adoafmctl.txt for more
information ...

.end std out.

.end err out.

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

Executing service control script:


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/admin/scripts/adcmctl.sh start
script returned:
****************************************************

You are running adcmctl.sh version 120.17.12010000.5

Starting concurrent manager for CLONE ...


Starting CLONE_0205@CLONE Internal Concurrent Manager
Default printer is noprint

adcmctl.sh: exiting with status 0

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
adcmctl.sh: check the logfile

ORACLE APPS DBA/data/appclone/R12_ERP/inst/apps/CLONE_testappl/logs/appl/admin/log/adcmctl.txt for more


information ... This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine


.end std out.Mosaic Sidebar Snapshot Timeslide

.end err out.

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

Executing service control script:


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/admin/scripts/jtffmctl.sh start
script returned:
****************************************************

You are running jtffmctl.sh version 120.3

Validating Fulfillment patch level via /data/appclone/R12_ERP/apps/apps_st/comn/java/classes


Fulfillment patch level validated.
Starting Fulfillment Server for CLONE on port 9322 ...

jtffmctl.sh: exiting with status 0

.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


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/logs/appl/admin/log/adstrtal.log for more
information ...

bash-3.00$

- Perform post clone steps:

· Run FND conc clean procedure


· change apps, sys, system, password
· change site NAME
· change SGA size as required  (deault 1GB will be configured)
· Reduce concurrent managers as required depending on the resources
- Run FND conc. clean, change apps, sys, system, password and run autoconfig

- On AppsTier 

bash-3.00$ FNDCPASS apps/apps 0 Y system/manager SYSTEM APPLSYS appsclone

- On DB Tier 

SQL> select NODE_NAME from fnd_nodes;

NODE_NAME
------------------------------
AUTHENTICATION
DEVAPPL
DEVDB
TESTAPPL

SQL> EXEC FND_CONC_CLONE.SETUP_CLEAN;

PL/SQL procedure successfully completed.

SQL> commit;

Commit complete.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

bash-3.00$ cd CLONE_testappl/
bash-3.00$ ls
adautocfg.sh adchknls.pl addbctl.sh addlnctl.sh adexecsql.pl adlsnodes.sh
adpreclone.pl adstopdb.sql adstrtdb.sql
bash-3.00$ adautocfg.sh
Enter theMadhanappsdba,Some
APPS user password:
of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
The log file for this session is located at:

ORACLE APPS DBA


/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/log/CLONE_testappl/02051300/adconfig.log
This blog is written to share and help doer's.Please sh… search
AutoConfig is configuring the Database environment...

Classic Flipcard Magazine will


AutoConfig Mosaic SidebartheSnapshot
consider Timeslide if present.
custom templates
Using ORACLE_HOME location : /appl/ERP_CLONE/dbclone/tech_st/11.1.0
Classpath :
:/appl/ERP_CLONE/dbclone/tech_st/11.1.0/jdbc/lib/ojdbc6.jar:/appl/ERP_CLONE/dbclone/tech_st/
11.1.0/appsutil/java/xmlparserv2.jar:/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/java:/a
ppl/ERP_CLONE/dbclone/tech_st/11.1.0/jlib/netcfg.jar:/appl/ERP_CLONE/dbclone/tech_st/11.1.0/
jlib/ldapjclnt11.jar

Using Context file :


/appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/CLONE_testappl.xml

Context Value Management will now update the Context file


UnsatisfiedLinkError exception loading native library: njni11

Updating Context file...COMPLETED

Attempting upload of Context file and templates to database...COMPLETED

Updating rdbms version in Context file to db111


Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...

AutoConfig completed successfully.


bash-3.00$

- Running autoconfig on application Tier:

bash-3.00$ cd /appl/ERP_CLONE/dbclone/tech_st/11.1.0/appsutil/scripts/CLONE_testappl
bash-3.00$ adautocfg.sh
Enter the APPS user password:

The log file for this session is located at:


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/admin/log/02051301/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.


Using CONFIG_HOME location : /data/appclone/R12_ERP/inst/apps/CLONE_testappl
Classpath :
/data/appclone/R12_ERP/apps/apps_st/comn/java/lib/appsborg2.zip:/data/appclone/R12_ERP/apps/
apps_st/comn/java/classes

Using Context file :


/data/appclone/R12_ERP/inst/apps/CLONE_testappl/appl/admin/CLONE_testappl.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 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 IGS_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 OZF_TOP.......COMPLETED
Configuring IES_TOP.......COMPLETED
Configuring CSD_TOP.......COMPLETED
Configuring IGC_TOP.......COMPLETED

AutoConfig completed successfully.


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
bash-3.00$

ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine


I Believe this postMosaic Sidebar
will be helpful Snapshot
for those Timeslide
who are looking for some document for performing Oracle E-Business suite
cloning online(hot backup).

If any one has any queries/suggestions then please comment.

This document describes the process of cloning an Oracle Applications Release 11i System. The most current version of this
note is document 230672.1 [http://metalink.oracle.com/metalink/plsql/ml2_documents.showNOT?p_id=230672.1] on My Oracle
Support. A FAQ is also available indocument 216664.1 [http://metalink.oracle.com/metalink/plsql/ml2_documents.showNOT?
p_id=216664.1] on My Oracle Support.

Posted 5th December 2014 by Unknown

2 View comments

Sridevi K 2 November 2016 at 09:45


Regards
Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at
training@oracleappstechnical.com | +91 - 9581017828.
Reply

Jennifer N 31 January 2019 at 11:52


Thanks and Regards. Oracle Apps R12 Training Videos at affordable cost. please check oracleappstechnical.com
Reply

R12 - Cloning from an RMAN backup using duplicate


5th December 2014
database
R12 - Cloning from an RMAN backup using duplicate database
Since most DBA's are using rman for their backup strategy I thought I
would put together the steps to clone from an rman backup. The steps
you follow are pretty much the same as described in Appendix A:
Recreating the database control files manually in Rapid Clone inNote
406982.1 - Cloning Oracle Applications Release 12 with Rapid Clone.

Here are the steps:


Execute preclone on all tiers of the source system. This includes both
the database and application tiers. (For this example, TEST is my
source system.)

For the database execute:


$ORACLE_HOME/appsutil/scripts/<context>/adpreclone.pl dbTier
Where context name
Madhanappsdba,Some of theis
blogsof the points
will directly format <sid>_<hostname>
oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE
For APPS DBA This
the application tier:blog is written to share and help doer's.Please sh…
$ADMIN_SCRIPTS_HOME/adpreclone.pl
search

appsTier
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

Prepare the files needed for the clone and copy them to the target
server.
Take a FULL rman backup and copy the files to the target server and
place them in the identical path. ie. if your rman backups go to
/u01/backup on the source server, place them in /u01/backup on the
destination server. To be safe, you may want to copy some of the
archive files generated while the database was being backed up. Place
them in an identical path on the target server as well.
Application Tier: tar up the application files and copy them to the
destination server. The cloning document referenced above ask you to
take a copy of the $APPL_TOP, $COMMON_TOP, $IAS_ORACLE_HOME
and $ORACLE_HOME. Normally I just tar up the System Base Directory,
which is the root directory for your application files.
Database Tier: tar up the database $ORACLE_HOME.

ex. from a single tier system. The first tar file contains the application
files and the second is the database $ORACLE_HOME

[oratest@myserver TEST]$ pwd


/u01/TEST
[oratest@myserver TEST]$ ls
apps db inst
[oratest@myserver TEST]$ tar cvfzp TEST_apps_inst_myserver.tar.gz
apps inst
.
.
[oratest@myserver TEST]$ tar cvfzp TEST_dbhome_myserver.tar.gz
db/tech_st

Notice for the database $ORACLE_HOME I only added the db/tech_st


directory to the archive. The reason is that the database files are under
db/apps_st and we don't need those.
Copy the tar files to the destination server, create a directory for your
new environment, for example /u01/DEV. (For the purpose of this article
I will be using /u01/DEV as the system base for the target envrionment
we are building and myserver is the server name.)
Extract each of the tar files with the command tar xvfzp

Ex. tar xvfzp TEST_apps_inst_myserver.tar.gz

Configure the target system.


On the database tier execute adcfgclone.pl with the dbTechStack
parameter.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
For example.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
/u01/DEV/db/tech_st/10.2.0/appsutil/clone/bin/adcfgclone.pl
search

dbTechStack
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

By passing the dbTechStack parameter we are tell the script to


configure only the necessary $ORACLE_HOME files such as the init file
for the new environment, listener.ora, database environment settings
file, etc. It will also start the listener.

You will be prompted the standard post cloning questions such as the
SID of the new environment, number of DATA_TOPS, Oracle Home
location, port settings, etc.

Once this is complete goto /u01/DEV/db/tech_st/10.2.0 and execute the


environment settings file to make sure your environment is set
correctly.

[oradev@myserver 10.2.0] . ./DEV_myserver.env

Duplicate the source database to the target.


In order to duplicate the source database you'll need to know the scn
value to recover to. There are two wasy to do this. The first is to login
to your rman catalog, find the Chk SCN of the files in the last backupset
of your rman backup and add 1 to it.

Ex. Output from a rman> List backups


.
.
List of Datafiles in backup set 55729
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
7 1 Incr 5965309363843 15-JUN-09
/u02/TEST/db/apps_st/data/owad01.dbf
.
.
So in this case the SCN we would be recovery to is 5965309363843 + 1
= 5965309363844.

The other method is to login to the rman catalog via sqlplus and
execute the following query:

select max(absolute_fuzzy_change#)+1,
max(checkpoint_change#)+1
from rc_backup_datafile;

Use which ever value is greater.


Modify the db_file_name_convert and log_file_name convert
parameters in the target init file. Example:
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
db_file_name_convert=('/u02/PROD/db/apps_st/data/',
search

'/u02/DEV/db/apps_st/data/',
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
'/u01/PROD/db/apps_st/data/', '/u02/DEV/db/apps_st/data/')

log_file_name_convert=(/u02/PROD/db/apps_st/data/',
'/u02/DEV/db/apps_st/data/',
'/u01/PROD/db/apps_st/data/', '/u02/DEV/db/apps_st/data/')
Verify you can connect to source system from the target as sysdba.
You will need to add a tns entry to the $TNS_ADMIN/tnsnames.ora file
for the source system.
Duplicate the database. Before we use rman to duplicate the source
database we need to start the target database in nomount mode.

Start rman:

rman target sys/<syspass>@TEST catalog rman/rman@RMAN auxiliary


/

If there are no connection errors duplicate the database with the


following script:

run {
set until scn 5965309363844;
allocate auxiliary channel ch1 type disk;
allocate auxiliary channel ch2 type disk;
duplicate target database to DEV }

The most common errors at this point are connection errors to the
source database and rman catalog. As well, if the
log_file_name_convert and db_file_name_convert parameters are not
set properly you will see errors. Fix the problems, login with rman
again and re-execute the script.

When the rman duplicate has finished the database will be open and
ready to proceed with the next steps.

Execute the library update script:

cd $ORACLE_HOME/appsutil/install/DEV_myserver where
DEV_myserver is the <context_name> of the new environment.

sqlplus "/ as sysdba"@adupdlib.sql

If your on linux replace with so, HPUX with sl and for windows servers
leave blank.

Configure the target database


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please
cd $ORACLE_HOME/appsutil/clone/bin/adcfgclone.pl dbconfigsh…
search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide


Where is $ORACLE_HOME/appsutil/DEV_myserver.xml

Configure the application tier.

cd /u01/DEV/apps/apps_st/comn/clone/bin
perl adcfgclone.pl appsTier

You will be prompted the standard cloning questions consisting of the


system base directories, which services you want enabled, port pool,
etc. Make sure you choose the same port pool as you did when
configuring the database tier in step 3.

Once that is finished, initialize your environment by executing

. /u01/DEV/apps/apps_st/appl/APPSDEV_myserver.env

Shutdown the application tier.

cd $ADMIN_SCRIPTS_HOME
./adstpall.sh apps/<source apps pass>

Login as apps to the database and execute:

exec fnd_conc_clone.setup_clean;

I don't believe this step is necessary but if you don't do this you will
see references to your source environment in the FND_% tables. Every
time you execute this procedure you need to run autoconfig on each of
the tiers (db and application). We will get to that in a second.

Change the apps password. Chances are you don't want to have the
same apps password as the source database, so its best to change it
now while the environment is down.

With the apps tier environment initialized:

FNDCPASS apps/<source apps pass> 0 Y system/<source system


pass>> SYSTEM APPLSYS <new apps pass>

Run autoconfig on both the db tier and application tier.

db tier:
cd $ORACLE_HOME/appsutil/scripts/DEV_myserver
./adautocfg.sh
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA
Application Tier This blog is written to share and help doer's.Please sh… search

cd Magazine
Classic Flipcard $ADMIN_SCRIPTS_HOME
Mosaic Sidebar Snapshot Timeslide
./adautocfg.sh

If there are no errors with autoconfig start the application. Your already
in the $ADMIN_SCRIPTS_HOME so just execute:

./adstrtal.sh apps/<new apps pass>

Login to the application and perform any post cloning activities. You
may want to override the work flow email address so that notifications
goto a test/dev mailbox instead of users. We always change the colors
and site_name profile options, etc. More details can be found in
Section 3: Finishing tasks of the R12 cloning document referenced
earlier.

Thats it, hopefully now you have successfully cloning an EBS


environment using rman duplicate.
Posted 5th December 2014 by Unknown

2 View comments

5th December 2014 Step by step Oracle Apps R12.1.3 Rapid Cloning

Step by step Oracle Apps R12.1.3 Rapid Cloning


Prerequisite Steps

1. If your target server holds at least one Oracle Apps R12.1.3 instance, you can skip for
any OS patch or software requirement section. As the server is running a Oracle Apps
instance, we can assume the server has all the

[https://www.blogger.com/null] mandatory OS patch and required software. Else look into the
metalink for platform specific requirements.

2. Apply Latest AD patch


Check whether AD patch version is atleast R12.AD.B.3. You can check that using
following query.
SELECT patch_level FROM fnd_product_installations WHERE patch_level LIKE 'R12.AD%'

If it is below that level apply patch 9239089.

3. Apply the latest AutoConfig template patch


Update the Oracle Applications file system with the AutoConfig files by applying the
latest AutoConfig Template patch (Patch 9386653 for 12.0.X customers and Patch
8919489 for 12.1.X customers) to all application tier nodes in the Applications instance.
You can check whether this patch is already there or not in your system by the following
sql.
SELECT * FROM ad_applied_patches WHERE patch_name = '8919489'

4. Apply the latest Rapid Clone patches


For Release 12.1 apply following patches.
9171651:R12.OAM.B 12.1 RAPIDCLONE CONSOLIDATED FIXES JUL/2010
9833058:R12.OAM.B HOT CLONE FAILS WITH ORA-00201 DURING RECOVERY
MANAGER
12404574:R12.OAM.B ORACLE_HOME REGISTRATION DOES NOT HAPPEN WITH
CENTRAL INVENTORY ON LOZ
12598630:R12.OAM.B R12.1 ONE-OFF FOR S_DB_LISTENER BUG 12362010

5. Run AutoConfig on the application tiers


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Follow the steps under section " Run AutoConfig on the Application Tiers " in My Oracle

ORACLE APPS DBA


Support Knowledge Document 387859.1 to run AutoConfig on all application tier nodes.
This blog is written to share and help doer's.Please sh… search
6. Synchronize appsutil on the database tier nodes
Follow
Classic Flipcard the stepsMosaic
Magazine under section
Sidebar"Copy AutoConfig
Snapshot to the RDBMS ORACLE_HOME" in My
Timeslide
Oracle Support Knowledge Document 387859.1 to copy AutoConfig and Rapid Clone files
to each database node via the admkappsutil.pl utility.

7. Run AutoConfig on the database tier


Follow the steps under section "Run AutoConfig on the Database Tier" in My Oracle
Support Knowledge Document 387859.1 to run AutoConfig on the database tier nodes.

8. Maintain Snapshot Information


Log in to each application tier node as the APPLMGR user, and run "Maintain Snapshot
Information" in AD Administration. To update the snapshot, please select the following
options "Update Current View Snapshot" and "Update Complete APPL_TOP".

Cloning Steps

9. Prepare the source system


Execute the following commands to prepare the source system for cloning.

Prepare the source system database tier for cloning


Log on to the source system as the ORACLE user, and run the following commands.

$ cd [RDBMS ORACLE_HOME]/appsutil/scripts/[CONTEXT_NAME]
$ perl adpreclone.pl dbTier b.

Prepare the source system application tier for cloning


Log on to the source system as the APPLMGR user, and run the following commands on
each node that contains an APPL_TOP:

$ cd [INST_TOP]/admin/scripts
$ perl adpreclone.pl appsTier

10. Shutdown the source system. Copy full directory "apps" and "db" from source
system to target system. Use the following command for copy.
$ cp -RH

11. Configure the target system


Run the following commands to configure the target system. You will be prompted for
specific target system values such as SID, paths, and ports.

a.Configure the target system database server


Log on to the target system as the ORACLE user and enter the following commands.

$ cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
$ perl adcfgclone.pl dbTier b.Configure the target system application tier server nodes

Log on to the target system as the APPLMGR user and enter the following commands:
$ cd [COMMON_TOP]/clone/bin
$ perl adcfgclone.pl appsTier

Posted 5th December 2014 by Unknown

2 View comments

5th December 2014 IMPORTANT METALINK Notes alice IMP Oracle Support
Notes
METALINK Notes alice Oracle Support Notes

NOTE.74660.1 : Resolving Invalid Objects in Oracle Applications


NOTE.338879.1 : Landscape1309 - Linux Landscape Quick Reference
NOTE.341782.1 : Linux Quick Reference
NOTE.312572.1 : About Oracle Applications Technology Updates for Release 11.
NOTE.316806.1 : Oracle Applications Installation Update Notes, Release 11i
NOTE.370274.1 : New Features in Oracle Application 11i
NOTE.275734.1 : India Localization
NOTE.47837.1 : Applications Utilities FAQ
NOTE.189487.1 : System Administration FAQ's
NOTE.289786.1 : Installing Oracle Applications: A Guide to Using Rapid
NOTE.245079.1 : Steps to clone a 11i RAC environment to a non-RAC
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
NOTE.243693.1 : Rapid Clone Coredumps when Running Adcfgclone.pl
ORACLE APPS DBA
NOTE.231701.1 : How to Find Patching History (10.7, 11.0, 11i)
This blog is written to share and help doer's.Please
NOTE.139684.1 : Oracle Applications Current Patchset Comparison Utility -
sh… search

NOTE.331746.1 : Oracle Accelerator FAQ for Global Product Support (Internal


Classic Flipcard Magazine Mosaic
NOTE.144751.1 Sidebar
: Applications Snapshot
Patching Timeslide
- Time Saving Techniques
NOTE.232833.1 : Oracle Applications Release Notes, Release 11i (11.5.9)
NOTE.110372.1 : 11i: How to Clean up the UNIX Environment After Install
NOTE.156219.1 : Net8i/9i Basic configuration of LISTENER.ORA and TNSNAMES.
NOTE.69725.1 : Configuring TNSNAMES.ORA, SQLNET.ORA,and LISTENER.ORA in
NOTE.356878.1 : How to relink the whole Applications 11i Installation
NOTE.233428.1 : Sharing the Application Tier File System in Oracle
NOTE.130686.1 : How to Generate Form, Library and Menu for Oracle
NOTE.246105.1 : Upgrading to J2SE 1.4.2 with Oracle Applications 11i
NOTE.139949.1 : NEED TO CLEAR APACHE, BROWSER OR JINITIATOR CACHE FOR
NOTE.133972.1 : How to Reset the APPS and APPLSYS Passwords in Release 11.5
NOTE.216980.1 : FNDLOAD Fails with PLS-306 in call to LOAD_ROW
NOTE.333785.1 : Oracle Applications Internationalization Guide
NOTE.222663.1 : Internationalization Update Notes for the Oracle E-Business Suite 11i
NOTE.372952.1 : Customer Translations
NOTE.168330.1 : Reload Applications Related Java Objects
NOTE.287176.1 : DMZ Configuration with Oracle E-Business Suite 11i
NOTE.233436.1 : Installing Oracle Application Server 10g with Oracle E-
NOTE.231701.1 : How to Find Patching History (10.7, 11.0, 11i)
NOTE.139684.1 : Oracle Applications Current Patchset Comparison Utility -
NOTE.238276.1 : Migrating to Linux with Oracle Applications Release 11i
NOTE.242480.1 : Using a Staged Applications 11i System to Reduce Patching
NOTE.1076329.6 : SQL*Plus Errors - SP1.MSB Not Found
NOTE.248857.1 : Oracle Applications Tablespace Model Release 11i -
NOTE.269293.1 : Oracle Applications Tablespace Model FAQs
NOTE.258330.1 : About Oracle Applications Manager Minipack 11i.OAM.H
NOTE.268837.1 : Gathering Debug Weboam Log
NOTE.342332.1 : Troubleshooting Login Problems in Oracle Applications 11i
NOTE.112577.1 : How to customize reports at runtime using XML - simple
NOTE.144689.1 : How to Generate a Report (.rdf) File from the UNIX Command
NOTE.211424.1 : How to Enable a Large SGA(over 1.7GB) on RedHat Advanced
NOTE.345145.1 : Is There A Way To Automate The Prompts For Adcfgclone.Pl?
NOTE.1812.1 : TECH : Getting a Stack Trace from a CORE file
NOTE.144599.1 : How to Generate a .pll Library File for Applications 11i
NOTE.282038.1 : Oracle Applications Release 11i with Oracle Database 10g
NOTE.208375.1 : How To Convert A Single Instance Database To RAC In A
NOTE.279956.1 : Oracle E-Business Suite Release 11i with 9i RAC :
NOTE.312731.1 : Configuring Oracle Applications Release 11i with 10g RAC
NOTE.362135.1 : Configuring Oracle Applications Release 11i with 10g R2 RAC
NOTE.1067473.6 : Custom Forms do not Show up in FNDSCMON Form
NOTE.232834.1 : Oracle Applications Release 11.5.9 Maintenance Pack
NOTE.216550.1 : Oracle Applications Release 11i with Oracle9i Release 2 (9.
NOTE.362203.1 : Oracle Applications Release 11i with Oracle 10g Release 2 (10.2.0)
NOTE.233038.1 : AD Command Line Options
NOTE.186125.1 : Applications 11i and Standby Databases
NOTE.260887.1 : Steps to Clean Nonexistent Nodes or IP Addresses from
NOTE.342459.1 : Diagnostics Overview
NOTE.394615.1 : Adaddnode.Pl failed with : ORA-00001 : unique constraint
NOTE.338003.1 : How to change the hostname and/or port of the Database Tier
NOTE.341322.1 : How to change the hostname of an Applications Tier using AutoConfig
NOTE.333785.1 : Oracle Applications Internationalization Guide
NOTE.211708.1 : Detailed Explanations of How NLS/MLS is Being Handled in 11i
NOTE.73352.1 : NLS/MLS Frequently Asked Questions
NOTE.72324.1 : Guidelines on Resolving NLS/MLS issues
NOTE.316365.1 : Oracle Applications Release 11.5.10.2 Maintenance Pack
NOTE.230627.1 : 9i Export/Import Process for Oracle Applications Release 11i
NOTE.331221.1 : 10g Export/Import Process for Oracle Applications Release 11i
NOTE.362205.1 : 10g Release 2 Export/Import Process for Oracle Applications Release 11i
NOTE.259552.1 : 11.5.9 Category 3 Preupgrade Instructions for 9.2.0.4
NOTE.341281.1 : How to disable the language selection option available in AppsLocalLogin.jsp
NOTE.389472.1 : OATM Migration fails with ORA-22853 for LOB objects
NOTE.174605.1 : bde_chk_cbo.sql - Reports Database Initialization
NOTE.333785.1 : Oracle Applications Internationalization Guide
NOTE.124721.1 : Migrating an Applications Installation to a New Character
NOTE.66320.1 : Changing the Database Character Set or the Database
NOTE.119164.1 : Changing Database Character Set - Valid Superset Definitions
NOTE.123670.1 : Use Scanner Utility before Altering the Database Character
NOTE.213015.1 : SYS.METASTYLESHEET marked as having convertible data (ORA-
NOTE.258895.1 : SYS.RULE$ marked as having convertible data (ORA-12716 when
NOTE.258902.1 : SYS.JOB$ marked as having convertible data
NOTE.43208.1 : Certified Compilers
NOTE.270806.1 : 11.5.9 : Invalid Objects - IES Java Classes
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
NOTE.165114.1 : Resolving Invalid Java Classes in Oracle Applications
ORACLE APPS DBA
NOTE.343253.1 : Tns-12555, Tns-12560, Tns-00525, Linux Error : 1 Starting
This blog is written to share and help doer's.Please
NOTE.150168.1 : Obtaining Forms Runtime Diagnostics (FRD) In Oracle
sh… search

NOTE.210193.1 : Use of Multiple Organizations In Oracle Applications


Classic Flipcard Magazine Mosaic
NOTE.165035.1 : Current Sidebar Snapshot
Issues - Multiple Timeslide Architecture
Organizations
NOTE.208267.1 : Improved Convert to Multi-Org Process In Oracle
NOTE.226456.1 : Multiple Organizations in Oracle Applications R11i, March
NOTE.259546.1 : Setting Up Multiple Organizations in Oracle HRMS
NOTE.131081.1 : How can I find which version of Portal I am running ?
NOTE.262125.1 : Sun.io.MalformedInputException For OraSCV.asc,emreadme.txt,
NOTE.216205.1 : Database Initialization Parameters for Oracle Applications
NOTE.213015.1 : SYS.METASTYLESHEET marked as having convertible data (ORA-
NOTE.283225.1 : How to Recreate the Listener for Event and Listener for
NOTE.153960.1 : FAQ : X Server testing and troubleshooting
NOTE.146468.1 : Installing and Upgrading Oracle9i Application Server with
NOTE.233428.1 : Sharing the Application Tier File System in Oracle
NOTE.351283.1 : Interoperability Notes : Oracle Applications Release 11i
NOTE.287453.1 : Oracle Applications 11.5.10 - Installation Update Notes for
NOTE.317226.1 : Concurrent Managers Do Not Start With GSM Profile Option
NOTE.311015.1 : Adgendbc.sh Errors Running AutoConfig
NOTE.337937.1 : Step By Step - 10gR2 RAC with ASM install on Linux(x86) -
NOTE.266043.1 : Support of Linux and Oracle Products on Linux
NOTE.224302.1 : Raw Devices on Linux
NOTE.134395.1 : Cannot Connect to Personal Home Page : Your Session is no
NOTE.351646.1 : Configuring Oracle E-Business Suite Release 11i with 10g
NOTE.230688.1 : Basic ApacheJServ Troubleshooting with IsItWorking.class
NOTE.70276.1 : HOW TO INTEGRATE APPLICATIONS RELEASE 11 WITH CUSTOM
NOTE.273449.1 : Diagnosing Login Problems with Apps 11.5.9 (FND.G)
NOTE.139863.1 : Configuring and Troubleshooting the Self Service Framework
NOTE.342332.1 : Troubleshooting Login Problems in Oracle Applications 11i
NOTE.233428.1 : Sharing the Application Tier File System in Oracle
NOTE.252422.1 : Requesting Translation Synchronization Patches
NOTE.287176.1 : DMZ Configuration with Oracle E-Business Suite 11i
NOTE.68713.1 : Troubleshooting Self-Service Web Applications Login
NOTE.304489.1 : Using Oracle Applications with a Split Configuration
NOTE.225074.1 : 11i AOL : Cannot login to PHP after DB upgrade to 9.2.0.2
NOTE.358140.1 : Troubleshooting Unix coredumps and obtaining stack traces
NOTE.1007808.6 : HOW TO HANDLE CORE DUMPS ON UNIX
NOTE.1812.1 :
NOTE.169706.1 : Oracle Database on AIX,HP-UX,Linux,MacOSX,Solaris,Tru64
NOTE.197031.1 : 32-bit/64-bit Certification/Conversion Issues on Oracle
NOTE.300172.1 : Obsolescence of KOREAN_LEXER Lexer Type
NOTE.225456.1 : Troubleshooting Guide for Cloning Issues
NOTE.161474.1 : Oracle Applications Remote Diagnostics Agent (APPS_RDA)
NOTE.111383.1 : The Basics About Report Review Agent (FNDFS) on 11i
NOTE.210062.1 : Generic Service Management (GSM) in Oracle Applications 11i
NOTE.316447.1 : About Oracle XML Publisher Release 5.5
NOTE.295036.1 : About XML Publisher Release 5.0
NOTE.130091.1 : Upgrading Oracle Applications 11i to use JDK 1.3
NOTE.292424.1 : Cleaning your Windows System After a Failed Oracle
NOTE.124606.1 : Upgrading JInitiator with Oracle Applications 11i
NOTE.316806.1 : Oracle Applications Installation Update Notes, Release 11i
NOTE.177183.1 : Succesfully Installing NLS/MLS in 11i
NOTE.134007.1 : CMCLEAN.SQL - Non Destructive Script to Clean Concurrent Manager Tables
NOTE.1010501.7 : FAQ : Licensing and de-licensing a product, country-specific
NOTE.217368.1 : Advanced Configurations and Topologies for Enterprise
NOTE.287176.1 : DMZ Configuration with Oracle E-Business Suite 11i
NOTE.302738.1 : Using Virtual Hostnames with Oracle Applications Release 11i
NOTE.403311.1 : United States Time Zone Changes 2007 : E-Business Suite
NOTE.333785.1 : Oracle Applications Internationalization Guide
NOTE.232313.1 : Information on Previous Versions of Developer 6i Patchsets
NOTE.240862.1 : Install Oracle Unicode Fonts for Dynamic Image Generation
NOTE.60966.1 : Getting Rid Of Those Pesky Invalid Objects In Oracle
NOTE.400830.1 : How to Render Non ASCII Characters in Personalized
NOTE.285218.1 : Recommended Browsers for Oracle Applications 11i
NOTE.403311.1 : United States & Canada 2007 Daylight Saving Time (DST)
NOTE.289788.1 : Upgrading Oracle Applications
NOTE.316804.1 : Oracle Applications NLS Release Notes, Release 11i (11.5.10.
NOTE.189867.1 : Troubleshooting FRM-92050, FRM-92100, FRM-92101, FRM-92102
NOTE.253763.1 : After Cloning on Target instance FRM-92050 Failed to
NOTE.274783.1 :

Amol's Bookmark
*********************************************************************
NOTE.167000.1 : eBusiness Suite Support - Oracle Diagnostics Support Pack
NOTE.235307.1 : OSS Application Diagnostics Tools : FAQ and Troubleshooting
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
NOTE.231142.1 : About Oracle Diagnostics version 2.1
ORACLE APPS DBA
NOTE.262006.1 : About Oracle Diagnostics 2.2
This blog is written to share and
NOTE.300976.1 : Support Diagnostics Newsletter for Applications Core
help doer's.Please sh… search

NOTE.357223.1 : "This test can be executed only after logging into


Classic Flipcard Magazine Mosaic
NOTE.363759.1 : How To Sidebar Snapshot
Add Diagnostic Timeslide
Tools To Responsibility Menu

Installation
*********

NOTE.215868.1 : 11i Release Notes


NOTE.77219.1 : Applications Release 11.0.3 One-Hour Install for Unix
NOTE.287453.1 : Oracle Applications 11.5.10 - Installation Update Notes for
NOTE.292424.1 : Cleaning your Windows System After a Failed Oracle
NOTE.110372.1 : 11i : How to Clean up the UNIX Environment After Install
NOTE.169402.1 : How To Cleanup After A Failed Applications Installation On
NOTE.48602.1 : How do I determine which products are fully installed, and
NOTE.124353.1 : WIN : Manually Removing all Oracle Components on Microsoft
NOTE.275493.1 : Removing 10g Database and Software from AIX, HP-UX, Linux,
NOTE.279519.1 : How to completely remove 8i / 9i Database and Software from
NOTE.232831.1. : Oracle Applications NLS Release Notes 11.5.9 - B10846-01
NOTE.287453.1 : Oracle Applications 11.5.10 - Installation Update Notes for
NOTE.187240.1 : Applications AOL Scenarios : Is It Supported ?
NOTE.287453.1 : Oracle Applications 11.5.10 - Installation Update Notes for
NOTE.316806.1 : Oracle Applications Installation Update Notes, Rel 11.5.10.2
NOTE.360079.1 : Global and Local Inventory explained
NOTE.295185.1 : How to Recreate the Global oraInventory
NOTE.197028.1 : Software Requirements and Tools for Oracle Applications
NOTE.201392.1 : Visual C++ Requirement for Release 11i on Windows
NOTE.268776.1 : GNU Make Requirement for Release 11i For Windows
NOTE.181244.1 : Configuring VNC Or XVFB As The X Server For Applications 11i
NOTE.153960.1 : FAQ : X Server testing and troubleshooting

Patching
*******

NOTE.174436.1 : Oracle Applications Patching FAQ


NOTE.175485.1 : How to Apply an 11i Patch When adpatch is Already Running
NOTE.231701.1 : How to Find Patching History (10.7, 11.0, 11i)
NOTE.252422.1 : Requesting Translation Synchronization Patches in Release
NOTE.316366.1 : 11.5.10 Oracle E-Business Suite Consolidated Update 2 (CU2)
NOTE.259484.1 : Release 11.5.10 Maintenance Pack Installation Instructions
NOTE.316365.1 : Oracle Applications Release 11.5.10.2 Maintenance Pack
NOTE.139684.1 : Oracle Applications Current Patchset Comparison Utility -
NOTE.181665.1 : Release 11i Adpatch Basics
NOTE.358247.1 : ORA-00001 : unique constraint violated error while applying
NOTE.358417.1 : Unable to Start Concurrent Managers After Applying 11i.
NOTE.353414.1 : Application Technology Group (ATG) Patching Policy
NOTE.359198.1 : XDF files fail to load on HP-UX, Memory Fault(Coredump)
NOTE.232834.1 : Oracle Applications Release 11.5.9 Maintenance Pack
NOTE.337274.1 : About Oracle Applications Technology 11i.ATG_PF.H Rollup 3
NOTE.244040.1 : Oracle E-Business Suite Recommended Performance Patches
NOTE.367756.1 : Uploading Java Objects To Patch History Tables Fails While
NOTE.76708.1 : Using ADSPLICE To Add Products To The APPL_TOP In

Cloning
******

NOTE.230672.1 : Cloning Oracle Applications Release 11i with Rapid Clone


NOTE.216664.1 : FAQ : Cloning Oracle Applications Release 11i
NOTE.242123.1 : Create new middle tier node in existing Apps 11i
NOTE.238276.1 : Migrating to Linux with Oracle Applications Release 11i
NOTE.364565.1 : Troubleshoot RapidClone or OAM Clone issues

Upgrade
*******

NOTE.200963.1 : R11.5.3/R11.5.4/R11.5.5 Upgrade And Install Issues


NOTE.289765.1 : Oracle Applications Release 11i (11.5.10) Upgrade Assistant
NOTE.289788.1 : Upgrading Oracle Applications

Autoconfig
**********

NOTE.165195.1 : Using AutoConfig to Manage System Configurations with


NOTE.218089.1 : Autoconfig FAQ
NOTE.270519.1 : Customizing an AutoConfig Environment
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
NOTE.260887.1 : Steps to Clean Nonexistent Nodes or IP Addresses from
ORACLE APPS DBA
NOTE.341322.1 : How to change the hostname of an Applications Tier using
This blog is written to share and help
NOTE.338003.1 : How to change the hostname and/or port of the Database Tier
doer's.Please sh… search

NOTE.108865.1 : How To Create a Database Connection(DBC) File and


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
AD Utilities
**********

NOTE.233038.1 : AD Command Line Options

Relinking
********

NOTE.69798.1 : Basics of Relinking an Executable or Binary in an Oracle


NOTE.1009722.6 : How to relink Oracle Concurrent Program Executables on Unix

OAM
****

NOTE.210062.1 : Generic Service Management (GSM) in Oracle Applications 11i


NOTE.117264.1 : FAQ (Oracle Applications Manager)
NOTE.177089.1 : OAM11i Standalone Mode Setup and Configuration
NOTE.214962.1 : How To Determine The Version Of OAM (Oracle Application
NOTE.258330.1 : About Oracle Applications Manager Minipack 11i.OAM.H
NOTE.166115.1 : Oracle Applications Manager 11i integrated with Oracle
NOTE.185431.1 : Troubleshooting Oracle Applications Manager OAM 2.0 for 11i
NOTE.73959.1 : Installation and Configuration of Oracle Application Manager
NOTE.225024.1 : Oracle Applications Manager 11i Documentation Roadmap
NOTE.338317.1 : Basic Information on Cloning An 11.5.10 System Using OAM

NLS/MLS
*******

NOTE.15389.1 : NLS DEBUGGING SUCCESS GUIDE ** INTERNAL ONLY **


NOTE.227332.1 : NLS considerations in Import/Export - Frequently Asked
NOTE.15095.1 : Export/Import and NLS Considerations
NOTE.175300.1 : A Guide to Debugging Globalization (NLS) Support Issues
NOTE.124721.1 : Migrating an Applications Installation to a New Character

Forms
*****

NOTE.130686.1 : How to Generate Form, Library and Menu for Oracle


NOTE.177610.1 : Oracle Forms in Applications FAQ
NOTE.141012.1 : How to Manually Generate an 11.5 Form on Unix

Apps Database
*************

NOTE.174605.1 : bde_chk_cbo.sql - Reports Database Initialization


NOTE.186125.1 : Applications 11i and Standby Databases
NOTE.248857.1 : Oracle Applications Tablespace Model Release 11i -
NOTE.216205.1 : Database Initialization Parameters for Oracle Applications
NOTE.285267.1 : Oracle E-Business Suite 11i and Database FAQ
NOTE.230627.1 : 9i Export/Import Process for Oracle Applications Release 11i
NOTE.183078.1 : Recreating Applications 11i JAVA objects in the database
NOTE.216212.1 : Business Continuity for Oracle Applications Release 11i,
NOTE.282038.1 : Oracle Applications Release 11i with Oracle Database 10g
NOTE.340859.1 : Upgrading Oracle Applications 11i Database to 10g with
NOTE.174605.1 : bde_chk_cbo.sql - Reports Database Initialization
NOTE.216211.1. : Nologging in the E-Business Suite
NOTE.282038.1 : Oracle Applications Release 11i with Oracle Database 10g

RAC / Apps RAC


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

NOTE.220970.1 : RAC : Frequently Asked Questions


NOTE.312731.1 : Configuring Oracle Applications Release 11i with 10g RAC
NOTE.270901.1 : How to Dynamically Add a New Node to an Existing 9.2.0 RAC
NOTE.294652.1 : E-Business Suite 11i on RAC : Configuring Database Load balancing & Failover
NOTE.312731.1 : Configuring Oracle Applications Release 11i with 10g RAC
NOTE.279956.1 : Oracle E-Business Suite Release 11i with 9i RAC :
NOTE.277825.1 : How to setup Tnsnames.ora (806) for 11i and RAC

Database
********
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
NOTE.1012933.6 : General Information : Alert Logs and Trace Files
NOTE.209870.1 : How to Reload the JVM in 9.2.0.X
search

NOTE.175472.1 : How to Reload the JVM in 8.1.7.X


Classic Flipcard Magazine Mosaic
NOTE.159143.1 Sidebar
: Separating Snapshot
Multiple Timeslide
8i or 9i Oracle Versions to Avoid
NOTE.307349.1 : OUI tips for Oracle RDBMS 10.1.X on OpenVMS
NOTE.130814.1 : How to move LOB Data to Another Tablespace

System Administration
*******************

NOTE.189457.1 : Oracle Applications Systems Administration Setup and Usage


NOTE.290525.1 : Oracle User Management FAQ
NOTE.316277.1 : Unable To Change Guest User Password In Oracle Applications
NOTE.311552.1 : How to optimize the purge process in a high transaction
NOTE.154850.1 : How to Run the Purge Concurrent Request and/or Manager Data

Jserver
******

NOTE.295484.1 : Clear Server Cache and Bounce Apache (Web Server)


NOTE.220188.1 : Oracle Applications Release 11i apps.zip Re-architect
NOTE.230688.1 : Basic ApacheJServ Troubleshooting with IsItWorking.class

Invalid Objects
*************

NOTE.60558.1 : Troubleshooting the Source of Invalid Objects


NOTE.266910.1 : How To Resolve IES Invalid Java Classes After Loading JAR
NOTE.113947.1 : Step by Step Troubleshooting Guide to Solve APPS Invalid
UNIX / LINUX / WINDOWS
=======================
NOTE.1007808.6 : HOW TO HANDLE CORE DUMPS ON UNIX
NOTE.1812.1 : TECH : Getting a Stack Trace from a CORE file
NOTE.28588.1 : TECH : Using Truss / Trace on Unix
Advanced Configuration:
======================
NOTE.217368.1 : Advanced Configurations and Topologies for Enterprise
NOTE.226880.1 : Configuration of Load Balancing and Transparent Application
NOTE.97926.1 : Failover Issues and Limitations [Connect-time failover and
NOTE.123718.1 : 11i : A Guide to Understanding and Implementing SSL for
Techstack:
=========

NOTE.162488.1 : Complete Guide to JInitiator 1.1.8 Setup & Troubleshooting


NOTE.312572.1 : About Oracle Applications Technology Updates for Release 11.
NOTE.246105.1 : Upgrading to J2SE 1.4.2 with Oracle Applications 11i
NOTE.94091.1 : Example : Identifying Connection String Problems in JDBC

Workflow:
========

NOTE.298550.1 : Troubleshooting Workflow Data Growth Issues

General:
=======

NOTE.184977.1 : Certify FAQ, Product Navigation & User's Guide


NOTE.224882.1 : Common Commands asked by Oracle Support for Troubleshooting
NOTE.110415.1 : Payables MRC Frequently Asked Questions
NOTE.285218.1 : Recommended Browsers for Oracle Applications 11i
NOTE.257650.1 : Resolving Problems with Connection Idle Timeout
NOTE.270523.1 : How To Find the Oracle Applications Framework and Rollup
NOTE.301504.1 : "Cannot Complete Applications Logon" Error After Selecting
NOTE.315094.1 : JTF Login Page - an operational assessment for CRM
NOTE.242490.1 : How To Configure The "/etc/hosts" File On Linux
NOTE.282038.1 : Oracle Applications Release 11i with Oracle Database 10g Release 1
NOTE.342861.1 : Java Version Conflict When Migrating Platforms
NOTE.209999.1 : Oracle Applications Manager in Oracle Applications 11.5.8
NOTE.198160.1 : Summary note to LOB's/BLOB's/CLOB's/NCLOB's and BFILES
NOTE.159244.1 : How To Use FNDCPASS to Change The Oracle Users, APPS, APPLSYS and Application Module
Passwords (INV, AR, AP, etc.) For Applications 11.5 in Unix
NOTE.186981.1 : Oracle Application Server with Oracle E-Business Suite
NOTE.333436.1 : Oracle E-Business Suite 11i on Windows Server 2003 Service
NOTE.356878.1 : How to relink the whole Applications 11i Installation
NOTE.197031.1 : 32-bit/64-bit Certification/Conversion Issues on Oracle
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
NOTE.158577.1 : NLS_LANG Explained (How does Client-Server Character
ORACLE APPS DBA
NOTE.227331.1 : Setting NLS Parameters - Frequently Asked Questions
This blog is written to share and help doer's.Please
NOTE.124721.1 : Migrating an Applications Installation to a New Character
sh… search

NOTE.43208.1 : Certified Compilers


Classic Flipcard Magazine : Mosaic
NOTE.66320.1 ChangingSidebar Snapshot
the Database Timeslide
Character Set or the Database
NOTE.279956.1 : Oracle E-Business Suite Release 11i with 9i RAC :
NOTE.260393.1 : Java Mailer and Other 11.5.9/OWF G Current Issues in
NOTE.232313.1 : Information on Previous Versions of Developer 6i Patchsets
NOTE.125767.1 : Upgrading Developer 6i with Oracle Applications 11i
NOTE.371438.1 : adpreclone.pl dbTier fails with RC-50409 : Topology
NOTE.135949.1 : Troubleshooting the Personal Home Page Login Problems in 11.
NOTE.164317.1 : Upgrading JDBC drivers with Oracle Applications 11i
NOTE.302035.1 : How to Test a JDBC Thin Driver Connection From the SSO
NOTE.365735.1 : How to use Digital Certificates for 11i Applications
NOTE.357922.1 : Autoconfig Reverts to old Context File Values.
NOTE.206511.1 : How to Find a JAR File Which Contains a Particular JAVA
NOTE.68839.1 : 8i Using loadjava and dropjava to Load and Unload Java
NOTE.165123.1 : JAVA CLASS - ORA-29534 : referenced object
NOTE.165114.1 : Resolving Invalid Java Classes in Oracle Applications
NOTE.271218.1 : Yellow bar's and Java security error , The daddy of all
NOTE.294932.1 : Recommendations to Install Oracle Applications 11i
NOTE.169706.1 : Oracle Database on AIX,HP-UX,Linux,MacOSX,Solaris,Tru64
NOTE.342442.1 : Cloning Multi-Node to Single-Node Oracle Applications
NOTE.233428.1 :
NOTE.302738.1 : Using Virtual Hostnames with Oracle Applications Release 11i
NOTE.356433.1 : Using Oracle Applications Release 11i with Virtual
NOTE.362135.1 : Configuring Oracle Applications Release 11i with 10g R2 RAC
NOTE.159270.1 : How To Use FNDCPASS to Change The Oracle Users, APPS,
NOTE.303237.1 : Migrating Red Hat Linux 2.1 or 3.0 to Red Hat Linux 4.0
NOTE.91985.1 :
NOTE.200963.1 : R11.5.3/R11.5.4/R11.5.5 Upgrade And Install Issues
NOTE.272789.1 : Post Clone Problem : Login/Portal Server Installation May
NOTE.339664.1 : Analyst Crib Sheet for NLS/MLS issues in Oracle
NOTE.211708.1 : Detailed Explanations of How NLS/MLS is Being Handled in 11i
NOTE.245079.1 : Steps to clone a 11i RAC environment to a non-RAC
NOTE.362135.1 : Configuring Oracle Applications Release 11i with 10g R2 RAC
NOTE.362135.1 : Configuring Oracle Applications Release 11i with 10g R2 RAC
NOTE.312731.1 : Configuring Oracle Applications Release 11i with 10g RAC
NOTE.131321.1 : How to Relink Oracle Database Software on UNIX
NOTE.231876.1 : Windows OS Upgrade for 11i E-Business Suite
NOTE.184977.1 : Certify FAQ, Product Navigation & User's Guide
NOTE.209810.1 : How to Relink Oracle Applications 11i Programs After
NOTE.361428.1 : Using Linux Desktop Clients with Oracle Applications 11i
NOTE.296559.1 :
NOTE.275734.1 : India Localization
NOTE.364439.1 : Tips and Queries for Troubleshooting Advanced Topologies
NOTE.372928.1 : Oracle Critical Patch Update July 2006 Documentation Map
NOTE.372931.1 : E-Business Suite Critical Patch Update Note
NOTE.268837.1 : Gathering Debug Weboam Log
NOTE.292996.1 : How to Re-Install Intermedia on an 11i Environment
NOTE.160121.1 : Introduction to Sun Cluster v3
NOTE.188135.1 : Documentation Index for Real Application Clusters
NOTE.251351.1 : How to Change the Characterset in a Standby Database in 9i
NOTE.362203.1 : Oracle Applications Release 11i with Oracle 10g Release 2
NOTE.362205.1 : 10g Release 2 Export/Import Process for Oracle Applications
NOTE.1009718.6 : HOW TO SOLVE UNDEFINED SYMBOL ERRORS ON UNIX AND VMS
NOTE.316889.1 : Complete checklist for manual upgrades to 10gR2
NOTE.223721.1 : How to Install XVFB on Linux for dynamic image generartion
NOTE.130091.1 : Upgrading Oracle Applications 11i to use JDK 1.3
NOTE : 163400.1 : Release Content Documents and Features Summary Matrices
NOTE.253918.1 : Autopatch Fails with "Unable to call adppdepRunFndLoad
NOTE.166650.1 : Working Effectively With Oracle Support Services
NOTE.333785.1 : Oracle Applications Internationalization Guide
NOTE.119164.1 : Changing Database Character Set - Valid Superset Definitions
NOTE.17210.1 : Supported NLS Character Sets
NOTE.179133.1 : The correct NLS_LANG in a Windows Environment
NOTE.226565.1 : 9iRAC Useful Views and Statistics (INTERNAL ONLY)
NOTE.387046.1 : RCONFIG : Frequently Asked Questions
NOTE.200340.1 : RAC : Cache Fusion
NOTE.265253.1 : 10g Recyclebin Features And How To Disable it( _recyclebin )
NOTE.312594.1 : Get Warning Messages Trying To Generate Jar Files From
NOTE.242480.1 : Using a Staged Applications 11i System to Reduce Patching
NOTE.134007.1 : CMCLEAN.SQL - Non Destructive Script to Clean Concurrent
NOTE.365228.1 : About Oracle Applications Technology 11i.ATG_PF.H Rollup 4
NOTE.371016.1 : How To License A New Product.
NOTE.151654.1 : How To Start the License Manager After Installing Oracle
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
NOTE.279430.1 : How To Change Project Installation From Shared To Full
ORACLE APPS DBA
NOTE.123891.1 : How to deactivate a language in e-Business Suite
This blog is written to share and help doer's.Please sh… search
NOTE.216550.1 : Oracle Applications Release 11i with Oracle9i Release 2 (9.
NOTE.341437.1 : Business Continuity for Oracle Applications Release 11i
Classic Flipcard Magazine Mosaic
NOTE.246105.1 : UpgradingSidebar
to J2SESnapshot Timeslide
1.4.2 with Oracle Applications 11i
NOTE.304748.1 : Internal : E-Business Suite 11i with Database FAQ
NOTE.308320.1 : How to install the 10.1.0 Enterprise Manager Grid Control
NOTE.291901.1 : Maintenance Mode - A New Feature in 11.5.10
NOTE.134527.1 : TNS-00516 Starting TNS Listener
NOTE.300482.1 : Overview of Using Java with Oracle E-Business Suite Release
NOTE.208256.1 : WIN : How to Remove a Single ORACLE_HOME and Its Traces on
NOTE.363827.1 : Rebaselined Oracle Applications Technology Components for
NOTE.373611.1 : How to move Concurrent Processing Server from one node to
NOTE.240818.1. : Concurrent Processing: Transaction Manager Setup and Configuration Requirement in an 11i RAC
Environment
NOTE.69660.1 : Understanding Data Auditing in Oracle Application Tables
NOTE.60828.1 : Overview of Oracle Applications AuditTrails
NOTE.134949.1 : Release 11.0.3 and Oracle 8i Release 8.1.6 Interoperability
NOTE.342332.1 : Troubleshooting Login Problems in Oracle Applications 11i
NOTE.189256.1 : UNIX : Script to Verify Installation Requirements for Oracle
NOTE.296559.1 : FAQ : Common Tracing Techniques within the Oracle
NOTE.177183.1 : Succesfully Installing NLS/MLS in 11i
NOTE.73352.1 : NLS/MLS Frequently Asked Questions
NOTE.399789.1 : NLS Frequently Asked Questions
NOTE.339664.1 : Analyst Crib Sheet for NLS/MLS issues in Oracle
NOTE.227331.1 : Setting NLS Parameters - Frequently Asked Questions
NOTE.110849.1 : Installing and Relinking Oracle Developer on UNIX Platforms
NOTE.76535.1 : Troubleshooting Issues Which Arise During the Application of Release 11 Patches
NOTE.316804.1 : Oracle Applications NLS Release Notes, Release 11i (11.5.10.
NOTE.287176.1 : DMZ Configuration with Oracle E-Business Suite 11i
NOTE.310840.1 : AFPCAL Received Failure Code While Parsing or Running
NOTE.371434.1 : Using Openfiler iSCSI with an Oracle database
NOTE.233040.1 : When Oracle Applications Automatic Patch Prerequisite
NOTE.236469.1 : Using Distributed AD in Applications Release 11.5.
NOTE.233043.1 : 11.5.9 Oracle E-Business Suite Consolidated Update 2
NOTE.108185.1 : Oracle Applications Object Library SQL scripts
NOTE.201662.1 : How To Manually Relink on Windows NT or Windows 2000
NOTE.306906.1 : How to create missing DB objects from xdf files
NOTE.396708.1 : Guidelines to Determine whether a Bug or SR is a LinuxOS
NOTE.166762.1 : Oracle Applications Manager 11i Availability
NOTE.60966.1 : Getting Rid Of Those Pesky Invalid Objects In Oracle
NOTE.216589.1 : Step By Step Guide to Creating a Custom Application in
NOTE.105127.1 : FAQ (Customization)
NOTE.243880.1 : Shared APPL_TOP FAQ
NOTE.409045.1 : How to clone from Rac to Non-rac in Oracle Applications 11i.
NOTE.373611.1 : How to move Concurrent Processing Server from one node to
NOTE.342442.1 : Cloning Multi-Node to Single-Node Oracle Applications
NOTE.261428.1 : Setting up 11i E-Business suite using a hardware load
NOTE.224875.1 : Installation, Patching & Upgrade Frequently Asked Questions
NOTE.278816.1 : How to Setup Parallel Concurrent Processing using Shared
NOTE.286506.1 : Sharing Middle-tier Oracle Home in E-Business Suite 11i
NOTE.105133.1 : Concurrent Manager Questions and Answers Relating to
NOTE.69336.1 : Basic information about Concurrent Managers
NOTE.169706.1 : Oracle Database on AIX,HP-UX,Linux,MacOSX,Solaris,Tru64
NOTE.345145.1 : Is There A Way To Automate The Prompts For Adcfgclone.Pl?
*********************************************************************
NOTE.416338.1 : How To Upgrade JDK / J2SE 1.4 Sub-Versions
NOTE.225165.1 : Patching Best Practices and Reducing Downtime
NOTE.368628.1 : Is The 'Personal Home Page' Mode Supported In Oracle 11i Applications?
NOTE.387859.1 : Using AutoConfig to Manage System Configurations in Oracle
NOTE.402306.1 : Oracle Applications Installation and Upgrade Notes Release
NOTE.160214.1 : How to change the oracle users, APPS, APPLSYS and
NOTE.159244.1 : How To Use FNDCPASS to Change The Oracle Users, APPS,
NOTE.335515.1 : Relink fails for Oracle 9.2.0.7.0 on LINUX x86 server on
NOTE.372800.1 : How to Implement an SSL CA Root Certificate in JInitiator
NOTE.402312.1 : Oracle Applications Installation and Upgrade Notes Release
NOTE.394692.1 : Oracle Applications Documentation Resources, Release 12
NOTE.603104.1 : Troubleshooting RapidClone issues with Oracle Applications R12
NOTE.384248.1 : Sharing The Application Tier File System in Oracle E-Business Suite Release 12
NOTE.388577.1 : Configuring Oracle Applications Release 12 with 10g R2 RAC
NOTE.559518.1 : Cloning Oracle Applications Release 12 with Rapid Clone on RAC Enabled Systems
NOTE.393861.1 : Globalization Guide for Oracle Applications Release 12
NOTE.372800.1 : How to Implement an SSL CA Root Certificate in JInitiator
NOTE.184876.1 : Oracle Application Object Library Middle (Web) Tier Setup
NOTE.403385.1 : Duplicate Responsibilities Created On Sysadmin Login And
NOTE.380483.1 : Oracle E-Business Suite Release 12 Additional Configuration
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
NOTE.148903.1 : Interoperability Notes Oracle Applications Release 11i with
ORACLE APPS DBA
NOTE.364704.1 : A Guide to Configure, Maintain & Troubleshoot JDBC Buffers
This blog is written to share and help doer's.Please sh…
NOTE.148902.1 : Interoperability Notes Oracle Applications Release 11.0
search

NOTE.337762.1 : How to Remove an Oracle Applications 11i node


Classic Flipcard Magazine Mosaic
NOTE.399362.1 Sidebar Snapshot
: Oracle Applications Release 12 Timeslide
Upgrade Sizing and Best
NOTE.104457.1 : Invalid Objects In Oracle Applications FAQs
NOTE.132604.1 : Upgrading OJSP with Oracle Applications 11i
NOTE.215268.1 : Implementing and Using the JSP Precompiler
NOTE.316900.1 : ALERT : Oracle 10g Release 2 (10.2) Support Status and Alerts
NOTE.189908.1 : ALERT : Oracle9i Release 2 (9.2) Support Status and Alerts
NOTE.380490.1 : Oracle E-Business Suite R12 Configuration in a DMZ
NOTE.269291.1 : Oracle Applications Tablespace Migration Utility User
NOTE.206511.1 : How to Find a JAR File Which Contains a Particular JAVA
NOTE.406982.1 : Cloning Oracle Applications Release 12 with Rapid Clone
NOTE.262125.1 : Sun.io.MalformedInputException For OraSCV.asc,emreadme.txt,
NOTE.419839.1 : How to enable Apache, OC4J and OPMN logging in Oracle
NOTE.422419.1 : How To Enable and Collect Debug for HTTP, OC4J and OPMN in
NOTE.15390.1 : How to Determine and Change DB_NAME or ORACLE_SID
NOTE.375682.1 : About Oracle Applications Technology ATG_PF.H Rollup 5
NOTE.135715.1. : Diagnostic Steps for Intermittent FRM-99999 & FRM-92100
NOTE.185489.1 : Setting Up Parallel Concurrent Processing On Unix Server
NOTE.431496.1 : Java In The Database For Oracle Applications : Introduction
NOTE.183408.1 : Raw Devices and Cluster Filesystems With Real Application
NOTE.277366.1 : Technology Validation Utility for Oracle Applications
NOTE.394448.1 : Getting Started with the Application Management Pack for
NOTE.412044.1 : Application Management Pack for Oracle E-Business Suite
NOTE.375113.1 : Oracle Diagnostics 2.4
NOTE.405425.1 : Oracle Diagnostics 2.5
NOTE.201340.1 : Using Forms Listener Servlet with Oracle Applications 11i
NOTE.160337.1 : How To Manually Change The APPS, APPLSYS and APPLSYSPUB
NOTE.372322.1 : HP Tru64 UNIX Migration Strategy for Oracle E-Business
NOTE.303709.1 : Reclaiming unused space in APPLSYSD tablespace
NOTE.130183.1 : How to Get Log Files from Various Programs for Oracle
NOTE.269129.1 : How to Implement Printing for Oracle Applications : Getting
NOTE.297522.1 : How to investigate printing issues and work towards its resolution ?
NOTE.215527.1 : Maintenance Wizard Overview
NOTE.452120.1 : How to locate the log files and troubleshoot RapidWiz for
NOTE.312640.1 : Oracle Text : Re-installation of Applications 11i (11.5.10)
**************
*** iSetup ***
**************
NOTE.402785.1 : iSetup dependency with Deinstall and Reinstall of XMLDB
NOTE.368670.1 : About Oracle iSetup Minipack 11i.AZ.H
NOTE.243554.1 : How to Deinstall and Reinstall XML Database (XDB)
NOTE.244523.1 : Security Alert #57 : Buffer Overflows in EXTPROC of Oracle
NOTE.433435.1 : Japanese characters are displayed like square boxes in
NOTE.455366.1 : Investigating NoClassDefFoundError in eBusiness 11i when
NOTE.197409.1 : Error Opening Oracle*Terminal File fmrweb.res
NOTE.312553.1 : How To Use the Original Forms for Reprint Instead of the
NOTE.438086.1 : Platform Migration with Oracle Applications Release 12
NOTE.458452.1 : Complying with Daylight Saving Time (DST) and Time Zone
NOTE.189367.1 : Best Practices for Securing the E-Business Suite
NOTE.300969.1 : Troubleshooting SSL with Oracle Applications 11i
NOTE.444524.1 : About Oracle Applications Technology ATG_PF.H Rollup 6
NOTE.265253.1 : 10g Recyclebin Features And How To Disable it( _recyclebin )
NOTE.428262.1 : How to identify the form name attached to an f60webmx
NOTE.68839.1 : 8i Using loadjava and dropjava to Load and Unload Java
NOTE.405521.1 : Oracle Enterprise Manager Grid Control Release Notes for
NOTE.187905.1 : bde_imt_index_status.sql - List all interMedia Text indexes
NOTE.388577.1 : Configuring Oracle Applications Release 12 with 10g R2 RAC
NOTE.345106.1 : Login Links On New Rapid Install Homepage Do Not Function
NOTE.443521.1 : Enterprise Manager Grid Control Plug-in for Oracle Applications, Version 1.0/1.2
NOTE.398412.1 : Workflow Queues Creation Scripts
NOTE.77483.1 : External Support FTP site : Information Sheet
NOTE.122452.1 : Global Customer Services Policy Regarding Customizations
NOTE.257911.1 : How To Use Rotatelogs In 9iAS Release 1 (1.0.2.x)
NOTE.276845.1 : Apache Web Server Hangs Every Other Time Running Adapcctl.
NOTE.218893.1 : How to Create The Service Manager 'FNDSM' on Oracle
NOTE.437878.1 : Upgrading Forms and Reports 10g in Oracle Applications
NOTE.290807.1 : Upgrading Sun JRE with Oracle Applications 11i
NOTE.280167.1 : AS10g with Apps 11i - Summary of Login process
NOTE.357218.1 : Troubleshooting JDeveloper setup for Oracle Applications
NOTE.403339.1 : Oracle 10gR2 Database Preparation Guidelines for an E-Business Suite Release 12 Upgrade
NOTE.463249.1 : After Clone Forms Is Trying To Connect To Target Instance
NOTE.386374.1 : How to enable/disable/change password of the listeners for Oracle Applications 11i
NOTE.454750.1 : Oracle Apps Release 12 with Oracle Database 10.2.0 interoperability notes
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
NOTE.428503.1 : Integrating Oracle E-Business Suite Release 11i with Oracle Database Vault 10.2.0.3
ORACLE APPS DBA
NOTE.443761.1 : How to check if a certain Patch was applied to Oracle Applications instance using 'adpatch'?
This blog is written to share and help doer's.Please sh… search
NOTE.291783.1 : Getting Started with the Oracle Grid Control Plug-in for Oracle Applications in Release 11i (AMP v1)
NOTE.468980.1 : How to Remove the Language Icons in the AppsLocalLogin.jsp
Classic Flipcard Magazine Mosaic
NOTE.398619.1 Sidebar
: Clone Oracle Snapshot11i Timeslide
Applications using Oracle Application Manager (OAM Clone)
NOTE.295606.1 : Oracle Application Server 10g with Oracle E-Business Suite Release 11i Troubleshooting
NOTE.169706.1 : Oracle® Database on AIX®,HP-UX®,Linux®,Mac OS® X,
Solaris®,Tru64 Unix® Operating Systems Installation and
Configuration Requirements Quick Reference (8.0.5 to 11.1)
NOTE.109665.1 : Organization Setup Frequently Asked Questions - FAQ
NOTE.434395.1 : ATG Service Request Creation
NOTE.438086.1 : Platform Migration with Oracle Applications Release 12
NOTE.469213.1 : How To Encrypt The Apps Password In Wdbsvr.App
NOTE.293369.1 : OPatch documentation list
NOTE.275379.1 : Script To Check What Workflow Related Patches Are Installed
NOTE.388577.1 : Configuring Oracle Applications Release 12 with 10g R2 RAC
NOTE.264157.1 : The correct NLS_LANG setting in Unix Environments
NOTE.91985.1 : Step by Step on Cloning the ORACLE_HOME (Including DB) and
NOTE.74838.1 : Migrating Apps Release 11.0 from UNIX Host To A Second
NOTE.396009.1 : Database Initialization Parameters for Oracle Applications Release 12
NOTE.391406.1 : How to get a clean Autoconfig Environment
NOTE.560719.1 : How to troubleshoot iSetup issues
NOTE.406376.1 : Oracle E-Business Tax Release 12 Known Issues
NOTE.577713.1 : On Windows, After 10g Upgrade, Running Autoconfig on Apps
NOTE.343917.1 : Frequently Asked Questions : Oracle E-Business Suite Support
NOTE.553831.1 : java.lang.ArrayIndexOutOfBoundsException Error when
NOTE.119319.1 : How to Replace Oracle Logo with Company Logo on Applications 11i Sign-On Screen
NOTE.554336.1 : How Do You Manually Generate A Form In Release 12 (frmcmp)
NOTE.444286.1 : How to manually generate a R12 report on Unix
NOTE.356433.1 : Using Oracle Applications Release 11i with Virtual Hostnames and Business Continuity
NOTE.555081.1 : Concurrent Manager Does Not Start if the Profile Option "Concurrent : GSM Enabled" is Set "Y" at Site
Level
NOTE.149124.1 : Creating a StatsPack performance report
NOTE.471566.1 : Migrating Oracle E-Business Suite R12 from Linux 32-bit to Linux 64-bit
NOTE.397757.1 : How to Speed Up Index Creation on FND_LOBS by indexing Only FND_HELP Data
NOTE.375127.1 : How to restart the adworker having status fixed,restart,wait
NOTE.353150.1 : OPatch Failing Validation Phase When Archiving Really Did Not Fail
NOTE.215527.1 : Maintenance Wizard Overview
NOTE.564465.1 : Sysadmin And User Responsibility Not Available
NOTE.219968.1 : SQL*Net, Net8, Oracle Net Services - Tracing and Logging at a Glance
NOTE.417122.1 : Resolving the Library Cache Locks
NOTE.419475.1 : Removing Credentials from a Cloned EBS Production Database

Posted 5th December 2014 by Unknown

4 View comments

5th December 2014 WFLOAD Command to download/upload Oracle Workflow


WFLOAD Command to download Oracle Workflow
Syntax-
WFLOAD <apps/pwd>@<connectstring> 0 Y DOWNLOAD FILE_NAME.wft item_type

Modes-
UPGRADE – Protection and Customization levels of data
UPLOAD - Only protection level of data.Not supporting customisation
FORCE - Force upload, protection or customization not supported
For example-
WFLOAD apps/passed123@DEVL 0 Y DOWNLOAD APEXP_TEMP.wft APEXP

WFLOAD Command to upload Oracle Workflow


Syntax-
WFLOAD <apps/pwd>@<connectstring> 0 Y {UPLOAD | UPGRADE | FORCE} FILE_NAME.wft

For Example-
WFLOAD apps/passed123@DEVL 0 Y UPLOAD APEXP_TEMP.wft

Seeded Workflow Files Location


You can also download seeded workflow definition files directly from below directory-

$<Application_TOP>/patch/115/import/<LANG>
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
For example- Account Payables workflow file can be found at-

ORACLE APPS DBA


$AP_TOP/patch/115/import/US
This blog is written to share and help doer's.Please sh… search
Posted 5th December 2014 by Unknown
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
2 View comments

5th December 2014 AD UTILITIES and AD ADMIN

AD Utilities in R12

AD Utilities are a group of tools designed to install, upgrade, maintain, and patch applications.

ADDBCTL - is a utility to start the database

ADDLNCTL- is used to start the listener control

ADSTRTAL- is a utility for starting all the application in Application tier

ADCMCTL - is used for starting the concurrent manager

ADSTPALL - is a utility to stop all the process in Application tier

ADADMIN - is used to perform maintenance/administration tasks on an Oracle Apps Instance.

ADCTRL -Utility to determine status of worker

ADRELINK -Used to relink apps executables with product libraries

ADMRGPCH -Merge different patches & create single patch .

ADCLONE -Utility to clone Insatnce from Test to Prod or PROD to TEST

ADCONFIG -To configure different components like changing port number or to increase number of JVM

ADIDENT -utility to find version of a file

ADLICMGR -To license a product in applications

ADSPLICE -You add a product in application

AAD ADMIN UTILITIES


AdAdmin

Ad admin is a utility which is used to perform

Login as a Applmgr user:


[applmgr@apps ~]$ adadmin

Preliminary Tasks:
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
1. Running the environment file.
2. Verifying that ORACLE_HOME set properly.
search
3. Ensuring that ORACLE_HOME/bin and AD_TOP/bin are in your path.
4. Shutting
Classic Flipcard down the
Magazine concurrent
Mosaic managers
Sidebar when relinking
Snapshot certain files or performing certain
Timeslide
database tasks.
5. Ensuring Sufficient temporary disk space.

Ad administration prompts:
Your default directory is '/u01/app/apps/uatappl'.
Is this the correct APPL_TOP [Yes]

Filename [adadmin.log] :

APPL_TOP is set to /u01/app/apps/uatappl

Please enter the batchsize [1000] :

Enter the password for your 'SYSTEM' ORACLE schema: manager

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

[http://1.bp.blogspot.com/_9gyMiFOdKOA/SLhKed-xmYI/AAAAAAAAAUk/SRDDqhvBpdM/s1600-
h/ad1.JPG]

Ad admin Log files:

The main AD Administration log file is called adadmin.log by default. This name can be
Changed when starting up AD Administration.

Errors and warnings are listed in the log file


/u01/app/apps/uatappl/admin/UAT/log/adadmin.log

General Applications file menu

[http://4.bp.blogspot.com/_9gyMiFOdKOA/SLhKY5vuUYI/AAAAAAAAAUc/W3A8HRHTL0A/s1600-
h/ad2.JPG]
There are five functional choices in the generate applications file menu.

1. Generate Message Files:


This task generates message binary files in the $PROD_TOP/mesg directory from oracle
application object library tables.

We generally perform this task only when instructed to do so in a readme file of a patch.

2. Generate Form Files:This task generate binary oracle forms file for all installed
languages from the form definition files. Extension (*.fmx)

Perform this task whenever we have issue with a form or set forms.

Oracle application uses these binary files to display the data entry forms.

When we choose Generate form files:


It prompts following:

[http://4.bp.blogspot.com/_9gyMiFOdKOA/SLhKTdj8gVI/AAAAAAAAAUU/fy3RQNJ1xwg/s1600-
h/ad3.JPG]
Generate Report files:
This task generates binary report files for all installed languages. Extension of the file name
like (*.rdf)

When we choose Generate report files menu, it prompts the following.

[http://3.bp.blogspot.com/_9gyMiFOdKOA/SLhKOaZzrVI/AAAAAAAAAUM/CZiAbttQZbw/s1600-
h/ad4.JPG]
Generate Graphics files:
This task generates Oracle graphics files for all installed languages. Extension of the file
name like (*.ogd)

The serious of prompts and actions in this task are very similar to the prompts and actions in
the Generate form files task.

[http://1.bp.blogspot.com/_9gyMiFOdKOA/SLhKJOmOPaI/AAAAAAAAAUE/UzGJ8C6M4C0/s1600-
h/ad5.JPG]
Generate Product JAR files:
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
This generate product jar files task prompts

ORACLE APPS DBADo you wish to force generation of all jar files? [No]
This blog is written to share and help doer's.Please
If we choose No, it only generates JAR (Jave Archive) files that are missing or out of date.
sh… search
Choose yes for this option when generating JAR files after upgrading the developer
Classic technology
Flipcard stack or
Magazine after updating
Mosaic SidebaryourSnapshot
Java version.
Timeslide

Maintain Applications Files tasks

[http://4.bp.blogspot.com/_9gyMiFOdKOA/SLhKB4KKaoI/AAAAAAAAAT8/ZCDnMC-1ekg/s1600-
h/ad6.JPG]
Relink Application programs:
This task relinks all your oracle applications binary executables.
Select this task after us:
1. Install new version of the database or a technology stack component.
2. Install an underlying technology component used with oracle applications.
3. Apply a patch to the application technology stack.
4. Apply a patch to the operating systems

These tasks execute AD relink utility. Use AD admin, not the AD relink utility directly, to
relink non AD-executables.
Create Applications environment file:
Select this task when you want to:
1. Create an environment file with settings that are different from your current environment
file.
2. Recreate an environment file that is missing or currept.

Copy files to destinations:


The copy files to destinations task copies files from each product area to central locations
where they can easily referenced by oracle applications.

Use this option to update the java, HTML and media files in the common directories (such as
JAVA_TOP, OA_TOP) when users have issues accessing them.

1. Java file are copied to JAVA_TOP


2. HTML files are copied to OAH_TOP
3. Media files are copied to OAM_TOP

Convert Character Set:

1. This task converts the character set of all translatable files in APPL_TOP.
2. You should select this task when changing the base language or adding additional
languages to oracle applications
3. You may need to convert database character set and file system character set to one that
will support the additional languages.

Maintain snapshot information:

1. This task record details for each file in the APPL_TOP (like file name and file version).
2. They also record summary information’s about patches that have been applied to the
APPL_TOP.
3. The maintain snapshot information task stores information about files, file versions and
bug fixes present in an APPL_TOP.
4. You must run Maintain snapshot information option once for each APPL_TOP before you
apply any patch that contains a “compatible feature prereq” line on that APPL_TOP.
[http://2.bp.blogspot.com/_9gyMiFOdKOA/SLhJ7oexGvI/AAAAAAAAAT0/b5WLNdF6OvQ/s1600-
h/ad7.JPG]
Check for Missing files:

1. The check for missing files task verifies files needed to install, upgrade, or run oracle
applications for the current configuration are in the current APPL_TOP.
2. Choose this task if you suspect there are files missing in your APPL_TOP.

Maintain Database Entries tasks:

[http://3.bp.blogspot.com/_9gyMiFOdKOA/SLhJ1abrn6I/AAAAAAAAATs/xnBoA5B96uU/s1600-
h/ad8.JPG]
Validate Apps Schema:

Validate apps schema task run SQL script (advrfapp.sql) against the apps schema to verify
the integrity of the schema.
It determines:

1. Problems you must fix(not specific to apps schema)


2. problems you must fix(specific to apps schema)
3. Issues you may want to address(specific to apps schema)
A report called APPSschemaname.lst is produced in APPL_TOP/admin//out.
This report contains information about how to fix the issues. We can find following things by
running the Validate Apps schema.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
1. Missing or invalid package.

ORACLE APPS DBA


2. Missing or invalid synonyms.
This
3. Invalid objects in apps schema.
blog is written to share and help doer's.Please sh… search

This task
Classic Flipcard is more Mosaic
Magazine effective Sidebar
if run: Snapshot Timeslide

1. Immediately after an upgrading or applying maintenance pack


2. After a patch is applied.
3. After performing export/import (migration)
4. When doing custom development in the apps schema.

Recreate Grants and Synonyms:

This task recreates grants and synonyms for oracle application public schema (applsyspub)
Recreate grants on some packages from system to apps

Run this task when grants and synonyms are missing from the database. This may occur as a
result of
1. Custom development
2. Incomplete database migrations
3. Patches and administrative sessions that failed to run successfully to completion
Maintain multi-lingual tables:

MLS or multilingual support is oracle application’s ability to operate in a multi languages


simultaneously. When running Maintain multi-lingual task you can select the number of
parallel workers. In generally run during the NLS install and maintenance processes. This
task runs the NLINS.sql script for every product. It invokes pl/sql routines that maintain
multilingual tables and untranslated rows.

Check Dual Tables:

This task looks for a dual table accessible by oracle applications and ensures the correct
grants are set up. If such table not exists or if an existing DUAL table has more than one row,
AD administration displays error. If a DUAL table containing only one row exists, AD admin
completes successfully.

Maintain multiple reporting currencies:

This option varies depending on whether you currently have multiple reporting currencies
(MRC) enabled or not.
If MRC functionality is implemented in your database, the option reads maintain multiple
reporting currencies.

Convert to multiple organizations:

To convert in to multiple-org does the following thing:

1. Confirms that you want to run the task


2. Asks for the number of parallel workers
3. Create script to disable and re-enable triggers in the APPS schema
4. Disable all triggers in the apps schema
5. Converts seed data and transaction data to multiple organizations in parallel.
6. Re-enable all previously disabled triggers in the apps schema.

Compile and Reload Database Entries tasks:

[http://1.bp.blogspot.com/_9gyMiFOdKOA/SLhJtd1NPmI/AAAAAAAAATk/ocH_2Ok-aLQ/s1600-
h/ad9.JPG]
Compile Apps Schema:

This task compiles uncompiled program units (pl/sql and java) in the apps schema.
You can perform this task with multiple workers.
When running this task, AD administration prompts,
Run Invoker's Rights processing in incremental mode [No]?
Type Yes at this prompt to run Invoker Rights processing only on packages that have changed
Since Invoker Rights processing was last run or accept the default to run Invoker Rights
Processing on all packages.
During the upgrade progress.

Compile Menu Information:

This option compiles menu data structures.


Choose this task after uploading menu entries.

It asks if you want to force compilation for all menus,

1. If you choose the default [no] only menus with changes are saved
2. If you enter yes all menus are compiled

Compile flexfield:
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
Run this task if the readme of a patch indicates that this step should be performed.
Details of the task with a list of compilation status of every flexfield are written to a log
search
file.
The name
Classic Flipcard of the log
Magazine file is inSidebar
Mosaic the format .req.
Snapshot The main AD Administration log file contains
Timeslide
the exact name of this log file.

Reload JAR Files to Database:

This option runs the loadjava utility to reload all appropriate oracle applications
JAR files into the database.

Change Maintenance mode:

[http://2.bp.blogspot.com/_9gyMiFOdKOA/SLhJjNG7reI/AAAAAAAAATc/WpTWpY0b6_s/s1600-
h/ad10.JPG]
1. Must be enabled before patching oracle applications
2. Improves patching performance
3. Restricts users access to system
4. Is enabled and disabled using AD administration

Regards
Madhan

Posted 5th December 2014 by Unknown

4 View comments

5th December 2014 ADADMIN Utility and its importants

ADADMIN Utility

ADADMIN UTILITY

In order to ensure that Oracle Applications system runs smoothly, we must perform routine
maintenance tasks. We run maintenance tasks from the command line using AD Administration.
Once we start this utility, it presents the tasks in menu form, grouped generally by type of
activity you will perform. For example, the tasks associated with compiling and reloading
Applications database entities are grouped on the same menu.
We can use AD Administration to complete some runtime tasks during or after an installation or
upgrade, or any time thereafter.
On a broad level the tasks performed by adadmin can be categorized into database
ac vi es andApplica ons file system management tasks.
Similar to AutoInstall and AutoPatch, adadmin can run parallel workers for most database tasks
and some file system tasks.

Preliminary Tasks before running Adadmin:


1. Logging in as applmgr.

2. Running the environment file.

3. Verifying if ORACLE_HOME is set properly.

4. Verifying if ORACLE_SID or TWO_TASK identifies the correct database.

5. Ensuring that ORACLE_HOME/bin and AD_TOP/bin are in PATH.

6. Shutting down concurrent managers when relinking certain files or performing certain
database tasks.

7. Ensuring sufficient temporary disk space.

Running Adadmin:
AD Administration asks you some initial questions.
1. It confirms your APPL_TOP is correct.
Ex: APPL_TOP is set to /u01/oaprod/oaprodappl
2. It asks for the name of the log file.
By default this is adadmin.log
3. It asks if we want to receive
Madhanappsdba,Some an email
of the blogs message
will directly points oracleifnotes
adadmin encounters
or other blogs a Dynamic
for myreference. failure.
Views theme. Powered by Blogger.
4. Some SQL scripts perform row set processing. Adadmin asks us to set the number of rows
ORACLE APPS DBA
these scripts process. This blog is written to share and help doer's.Please sh… search

5. It asks us the type of files we currently have.


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
Ex: 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 *

6. It asks us to confirm the database and database home directory.


7. It asks for the SYSTEM password. It then determines the username for your Application Object
Library user.
8. It determines the AOL Schema from information in data dictionary and asks for the password of
AOL schema.
9. Adadmin determines other installation information.

ADADMIN MAIN MENU:


The main [https://www.blogger.com/null] menu of adadmin presents you with the following six
choices

AD Administration Main Menu [http://oracleappsdbaref.blogspot.in/2012/03/adadmin-utility.html]


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

1. Generate Applications Files menu

2. Maintain Applications Files menu

3. Compile/Reload Applications Database Entities menu

4. Maintain Applications Database Entities menu

5. Change Maintenance Mode

6. Exit AD Administration

first two options are related to maintaining applications file system the
[https://www.blogger.com/null] second [http://oracleappsdbaref.blogspot.in/2012/03/adadmin-utility.html]
two options relate to database activities, the fifth option here is used to put the system in
maintenance mode and bring it back from maintenance mode.

1. Generate Applications Files:

If system users are having difficulty accessing messages, forms, or reports, you may be able to
resolve the issue by generating the associated files. Or, when you apply a patch that adds or
changes product functionality, you may want to generate the associated files after you apply the
patch, instead of running the generate driver during the patching downtime. The generate files
tasks may be performed on any server, as required.

Under the Generate Applications Files Menu you can perform the following tasks

Generate Applications Files


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

1. Generate message files


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
2. Generate form files
ORACLE APPS DBA
3. Generate report files
This blog is written to share and help doer's.Please sh… search

4. Generate
Classic Flipcard Magazine graphics files
Mosaic Sidebar Snapshot Timeslide

5. Generate product JAR files

6. Return to Main Menu

a) Generate Message Files:


Oracle Applications uses these files to display messages. This task generates message binary
files (extension .msb) from Oracle Application Object Library tables.
Caution: Run this task only when instructed to do so in a patch readme file, or by Oracle
Support Services

b) Generate form files: Generates executable Oracle form files (extension .fmx) from the
binary forms definition files (extension .fmb). The definition files are located under AU_TOP, and
the executable files are stored under each product’s directory.

c) Generate report files: Generates the binary Oracle Reports report files (extension .rdf).

Adadmin Prompts for following information :


■ Ask for the number of workers and generate selected objects for selected products in parallel.
■ Display the current character set (from NLS_LANG) and ask if you want to generate form or
report objects in this character set.
■ Ask if you want to regenerate Oracle Forms PL/SQL library files, menu files, and executable
files. (Form files only.)
■ Ask for the products associated with the form or report objects.
■ Ask if you want to generate specific form or report objects for each selected product.
■ Display the current set of installed languages and ask if you want to generate form or report
files in these languages.
■ Create a list of all objects to generate.
■ Display the list of objects to be generated. (Specific objects or all objects.)

d) Generate Product JAR Files:


Generate Java archive (JAR) files whenever you upgrade the Developer technology stack or
when recommended by Oracle Support Services. It signs JAR files (if on the Web server) and
does the following:

■ Generates product JAR files in JAVA_TOP and copies them to APPL_TOP.


■ Generates other Java-related files under APPL_TOP and JAVA_TOP.
■ Recreates Java libraries (appsborg.zip and appsborg2.zip) under APPL_TOP and JAVA_TOP.

When you run the task, it prompts: Do you wish to force generation of all jar files? [No] If you
choose No, it generates only JAR files that are missing or out-of-date. If you choose Yes, all
JAR files are generated.

Note: If AD Administration displays a list of warnings or errors and objects that did not generate
successfully and asks if you want to continue as if successful, review the log file to determine if
the problems require attention. If you choose not to continue and restart your session at a later
time, AD Administration attempts to regenerate only the files that did not generate successfully.

e) Generate Graphics files:


This task generates Oracle graphics files for all installed languages. Extension of the file name
like (*.ogd).

2. Maintain Applications Files :

Certain maintenance tasks are required to keep your Applications files up to date. For example,
you may need to copy product files to a central location or convert files in the APPL_TOP to
another character set. These tasks are grouped on the Maintain Applications Files menu.

Under the Maintain Applications Files menu you can perform the following tasks

Maintain Applications Files


----------------------------------------
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
1. Relink Applications programs search

2. Create Applications environment file


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
3. Copy files to destinations

4. Convert character set

5. Maintain snapshot information

6. Check for missing files

7. Return to Main Menu

a) Relink Applications programs

Relinks Oracle Applications executable programs with the Oracle server libraries so that they
function with the Oracle database. For each product, choose whether to link all executables or
only specific ones.
Note: The default is to relink without debug information. Use the debug option only when
requested to do so by Oracle Support Services.

b) Copy files to destinations

Copies files from each product area to central locations where they can be easily referenced by
non-Applications programs. This option uses revision-based copy logic to ensure that the
destination file versions are the same as, or higher than, the source file versions.

Note: We recommend that you do not use the force option to overwrite existing files unless
instructed by Oracle Support Services. Copying files with this option updates all JAR files.
JInitiator then downloads required JAR files to each client again, causing runtime performance
degradation.

The file types and their respective destinations are shown in the following table:

These files: copied to (UNIX)


Java files $JAVA_TOP
HTML files $OAH_TOP
Media files $OAM_TOP

Note: When this option is used to copy reports or graphics files, the default destination is under
AU_TOP.

c) Convert character set:

Prepares the files in the APPL_TOP for conversion to another character set, and then performs
the conversion.

When you choose this option, AD Administration presents another submenu, which contains
options for scanning your files in preparation for the conversion. The scan searches for
exceptions — files that will have incomplete (lossy) conversions — so that you can fix potential
problems before you actually convert the character set. Choose one of the following scan
options.

1. Scan the APPL_TOP for exceptions. Scans the APPL_TOP and creates three files in the admin\
<SID>\out directory.

File Contents
admanifest_excp.lst Lists files that will not be converted because of lossy conversion.
admanifest.lst Lists files that can be converted.
admanifest_lossy.lst Lists files with lossy conversions, including line by line detail.

Review the files listed in admanifest_excp.lst. Fix files that report lossy conversion before you
convert the character set. Repeat this task until there are no entries in admanifest_excp.lst. If
you need to see more detail, review admanifest_lossy.lst.

2. Scan a CUSTOM directory for exceptions. Collects the same information as the first task, but
scans custom Applications directories rather than the APPL_TOP directory.
3. Convert character set. Run this task only if admanifest_excp.lst has no entries. It prompts you
for the manifest file (admanifest.lst) created when you ran the scan option(s).

The utility backs up the product source files and the APPL_TOP/admin source files. It saves
product files in the <PROD>_TOP directories in the format <prod>_ s_<char_set>.zip. It saves
admin source files in the APPL_TOP/admin directory in the format admin_s_<char_set>.zip
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
d) Maintain snapshot information:
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
There are two types of snapshots: APPL_TOP snapshots and global snapshots. An APPL_TOP
snapshot lists patches and versions of files in the APPL_TOP. A global snapshot lists patches
Classic Flipcard
and Magazine Mosaic ofSidebar
latest versions files inSnapshot
the entireTimeslide
Applications system (that is, across all APPL_TOPs).

Both APPL_TOP snapshots and global snapshots may be either current view snapshots
or named view snapshots. A current view snapshot is created once and updated when
appropriate to maintain a consistent view. A partial view snapshot allows you to synchronize
only selected files from a current view. A named view snapshot is a copy of the current view
snapshot at a particular time (not necessarily the latest current view snapshot) and is not
updated.

Patch Wizard uses the information contained in the global current view snapshot to determine
which patches have already been applied. AutoPatch uses the APPL_TOP current view
snapshot to determine if all prerequisite patches have been applied to that APPL_TOP.
Snapshot information is stored in the AD_SNAPSHOTS, AD_ SNAPSHOT_FILES, and
AD_SNAPSHOT_BUGFIXES tables.

During a new installation, Rapid Install creates a current snapshot as a baseline. And, each time
you run AutoPatch, it automatically creates a new (updated) snapshot so that the information is
current as of the application of the patch.

Maintain Snapshot Information menu options :

■ List snapshots (stored in the system)


■ Update current view snapshot (full or partial APPL_TOP and global)
■ Create named snapshot (select a current view snapshot to copy and name)
■ Export snapshot to file (select one to export to a text file)
■ Import snapshot from (a text) file
■ Delete named snapshot (select a snapshot for deletion)

Maintain current view snapshot information: When you maintain a current view snapshot, you
can choose to synchronize selected files — maintaining a partial snapshot — instead of
synchronizing all files for the entire APPL_TOP. Use this option when you have copied only a
few files to the APPL_TOP.
1. Select the Update Current View Snapshot option from the Maintain Snapshot Information menu.
2. From the Maintain Current View Snapshot Information menu, select one of the following
options:
■ Update Complete APPL_TOP This is the original functionality of the Update Current View
Snapshot option. It synchronizes all the files in your APPL_TOP.

■ Update JAVA_TOP only Synchronizes only the files in the JAVA_TOP. At the prompt, enter the
path to the JAVA_TOP subdirectory where the files were copied. If the files were copied to more
than one directory, press Enter. AD Administration scans the entire JAVA_TOP and updates the
information in both the current view and the global view snapshots.

■ Update a <PRODUCT>_TOP Synchronizes only the files in a specific <PRODUCT>_TOP. Enter


the product abbreviation, then provide the subdirectory information at the prompt. Enter the
path to a single subdirectory in the <PRODUCT>_TOP. If the files were copied to more than one
directory in the <PRODUCT>_TOP, press Enter. AD Administration scans the entire
<PRODUCT>_TOP and updates the information in both the current and the global view
snapshots.

e) Check for Missing Files:


Verifies that all files needed to run Oracle Applications for the current configuration are in the
current APPL_TOP. Choose this task if you suspect there are files missing in your APPL_TOP.

3. Compile/Reload Applications Database Entities:


To compile or reload database entities, choose the Compile/Reload Applications Database
Entities Menu option from the AD Administration Main Menu.
You run the tasks on this menu any time you need to compile or reload database objects. For
example, after you upload new menu entries or apply a patch that changes the setup of
flexfields. Run these tasksonly on the node where the core AD technology directories (the
administration server) are located.
Under the Compile/Reload Applications Database Entities menu you can perform the following
tasks

Compile/Reload Applications Database Entities


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

1. Compile APPS schema

2. CompileMadhanappsdba,Some
menu information of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA
3. Compile flexfields
This blog is written to share and help doer's.Please sh… search

4. Reload JAR files to database


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
5. Return to Main Menu

a) Compile APPS schema

Spawns parallel workers to compile invalid database objects in the APPS schema.

Note: The need for a separate MRC schema has been removed in this release, as has the
associated prompt to run Invoker Rights.

b) Compile menu information

Compiles menu data structures. Choose this task after you have uploaded menu entries to the
FND_MENU_ENTRIES table, or if Compile Security concurrent requests submitted from the
Menus form (after changing menu entries) fail for any reason.

AD Administration asks if you want to force compilation of all menus. If you choose the default
(No), only menus with changes are compiled. If you enter Yes, all menus are compiled.
Compiling all menus is generally not advised.

c) Compile flexfields

Compiles flexfield data structures in Oracle Application Object Library (FND) tables. Choose
this task after you apply a patch that changes the setup of flexfields. Patches usually indicate
when you should perform this step.
Flexfields automatically compile data when you use them for the first time, so running this task
is not required. However, compiling flexfield data at a specific time (for example, when system
use is low), rather than automatically at first use, can alleviate potential runtime performance
issues.

d) Reload JAR files to database

Reloads all appropriate Oracle Applications JAR files into the database. Choose this task if all
Oracle Applications Java classes are removed from your database, for example, if the database
Java Virtual Machine (JVM) is reloaded because of a corrupt database.

4. Maintain Applications Database Entities:


During normal system use, the integrity of your database can be compromised, for example
through user error or after you apply a large patch. It’s a good idea to verify the integrity of
database entities as a regular maintenance procedure, or whenever the behavior of your system
indicates that database entities may have been corrupted.
Some tasks on this menu report on issues, or potential issues, with database entities, and
others actually remedy the issues. Run these tasks only on the node where the core AD
technology directories (the administration server) are located.

Under the Maintain Applications Database Entities menu you can perform the following tasks

Maintain Applications Database Entities


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

1. Validate APPS schema

2. Re-create grants and synonyms for APPS schema

3. Maintain multi-lingual tables

4. Check DUAL table

5. Maintain Multiple Reporting Currencies schema

6. Return to Main Menu

a) Validate APPS schema

Verifies the integrity of the APPS schema. It produces a report named <APPS schema name>.lst
that lists issues and potential issues, grouped by the action required:
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
■ Issues you MUST fix (not specific to the APPS schema)
ORACLE APPS DBA
■ Issues you MUST fix (specific to the
This blog is APPS schema)
written to share and help doer's.Please sh…
■ Issues you may want to address (specific to the APPS schema).
search

Classic Flipcard
TheMagazine
report is Mosaic
locatedSidebar Snapshot Timeslide
in $APPL_TOP/admin/<SID>/out (UNIX), where <SID> is the value of the
ORACLE_SID or TWO_TASK variable, or in %APPL_ TOP%\admin\<SID>\out (Windows), where
<SID> is the value of the LOCAL variable. Each section of the file contains instructions for
resolving the issues that are listed. Most issues can be fixed by either compiling invalid
database objects or recreating grants and synonyms.

b) Re-create grants and synonyms for APPS schema

This task recreates grants and synonyms for the Oracle Applications public schema
(APPLSYSPUB), recreates grants on some packages from SYSTEM to APPS, and spawns
parallel workers to recreate grants and synonyms linking sequences and tables in the base
schemas to the APPS schema.

Typically, you run this task after the Validate APPS schema task has reported issues with
missing grants and synonyms.

c) Maintain multi-lingual tables

Run this task after you add a language. It prompts you for the number of workers, then updates
all multilingual tables.

d) Check DUAL table

Some Oracle Applications products must access the DUAL table. It must exist in the SYS
schema and contain exactly one row. This tasks verifies the existence of this table and the
single row.

e) Maintain Multiple Reporting Currencies schema


It invokes PL/SQL packages which maintain database objects for these features. (See
admntmls.pls and admntmcr.pls in $AD_TOP/admin/sql)

MRC and MLS are both implemented using "adjunct APPS schemas", meaning a
complete copy of the objects in each APPS schema is replicated (and enhanced,
in some cases) into an APPS_MRC and/or APPS_MLS schema. Whenever a
change is made to an APPS schema, the modifications must be reflected in the
adjunct schemas; otherwise, MRC and MLS functions may fail.
This task is only displayed on the Database Objects menu if you have
Multilingual (MLS) or Multiple Reporting Currency (MRC) functionality currently
installed.

5. Change Maintenance Mode:


Maintenance mode controls the system downtime period by managing user logons. You toggle
maintenance mode from enabled to disabled from the Change Maintenance Mode menu.

Under the Change Maintenance Mode you can do the following

Change Maintenance Mode


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

Maintenance Mode is currently: [Disabled].

Maintenance mode should normally be enabled when patching Oracle Applications and
disabled when users are logged on to the system. See the Oracle Applications Maintenance
Utilities manual for more information about maintenance mode.

Please select an option:

1. Enable Maintenance Mode

2. Disable Maintenance Mode

3. Return to Main Menu

If you notice the message this menu selection also shows the maintenance status (disabled in
our case) of the system.

You can also forcefully exit adadmin at any point of time by typing 'abort’, This will however
result in a unclean exit of adadmin and the next time when you run adadmin you will be
prompted with the option to start fresh or continue with the previous session as described
earlier.

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

The arguments and options that you can use to refine the operation of a utility are listed, along
with a brief description of how they work. Here’s an excerpt from the command line help for AD
Administration.

* <localworkers> = Used in Distributed AD. The number of workers to run on the local machine.
* <flags> = Generic flags passed to AD utilities. The available values for Adadmin are hidepw
and trace.
* <defaultsfile> = The defaults file name that is located under $APPL_TOP/admin/SID/ directory.
* <menu_option> = Skips the menu in Adadmin and executes the task

Usage: adadmin [help=y]

adadmin [printdebug=y|n][localworkers=<localworkers>]
[flags=hidepw|trace]

adadmin Non-Interactive mode


[defaultsfile=<$APPL_TOP/admin/SID/defaultsfile>] [logfile=<logfile>][interactive=y|n]
[workers=<workers>][menu_option=<TASK_NAME>][restart=y|n]

The following table lists the menu options and the corresponding menu tasks:

Menu Option Corresponding AD Administration Menu Choice


GEN_MESSAGES Generate message files
GEN_FORMS Generate form files
GEN_REPORTS Generate reports files
GEN_JARS Generate product JAR files
RELINK Relink Applications programs
COPY_FILES Copy files to destinations
CONVERT_CHARSET Convert character set
SCAN_APPLTOP Scan the APPL_TOP for exceptions
SCAN_CUSTOM_DIR Scan a CUSTOM directory for exceptions
LIST_SNAPSHOT List snapshots
UPDATE_CURRENT_VIEW Update current view snapshot
CREATE_SNAPSHOT Create named snapshot
EXPORT_SNAPSHOT Export snapshot to file
IMPORT_SNAPSHOT Import snapshot from file
DELETE_SNAPSHOT Delete named snapshot
CHECK_FILES Check for missing files
CMP_INVALID Compile APPS schema
CMP_MENU Compile menu information
CMP_FLEXFIELDS Compile flexfield data in AOL tables
RELOAD_JARS Reload JAR files to database
VALIDATE_APPS Validate APPS schema
CREATE_GRANTS Recreate grants and synonyms for APPS schema
Menu Option Corresponding AD Administration Menu Choice
MAINTAIN_MLS Maintain multi-lingual tables
CHECK_DUAL Check DUAL table
ENABLE_MAINT_MODE Enable Maintenance Mode
DISABLE_MAINT_MODE Disable Maintenance Mode

Posted 5th December 2014 by Unknown

2 View comments

5th December 2014 How to Gather Statistics for a Schema in Appplications


How to Gather Statistics for a Schema in Apps
Gather Schema Statistics is a Concurrent Program usually scheduled to run every week from Oracle Applications in
order to collect statistics.
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
FND_STATS provides a mechanism to gather the statistics and generate Histograms using the procedure
FND_STATS.GATHER_SCHEMA_STATS . This would gathers statistics for all objects in a schema. When gathering
Statistics for a table or an entire Schema CBO will cascade down and gather statistics for all indexes on each table, and
Classic Flipcard Magazine
all the columns forMosaic Sidebartable
that particular Snapshot Timeslide
or schema.

To run concurrent program Gather Schema Statistics:

1. Log on to Oracle Applications with


Responsibility = System Administrator
2. Submit Request Window
Navigate to: List > Request > Run.
3. Enter the appropriate parameters. This can be run for specific
schemas by specifying the schema name or entering 'ALL' to gather
statistics for every schema in the database.
4. Submit the gather schema statistics program.

We can also submit the Gather Schema Statistics Concurrent request directly from the OS prompt using CONCSUB.
Details with example stated in : Using-Concsub-to-submit-Concurrent-Requests

Gathering Statistics Concurrent Requests


Oracle Applications provides a set of procedures in the FND_STATS package to facilitate collection of these statistics.
FND_STATS uses the DBMS_STATS package to gather statistics.

The following concurrent requests are available in Oracle Applications for gathering statistics:

Gather All Column Statistics


Gather Column Statistics
Gather Schema Statistics
Gather Table Statistics

For Oracle Applications 11i it is recommended to use only the 'Gather Schema Statistics' or the 'Gather Table Statistics'.

Common Parameters:

Schemaname
You may enter ALL to analyze every defined App schema.

Estimate_percent
Percentage of rows to estimate. If left empty it will default to 10%. The valid range is 0-99. A higher percentage will be
more accurate, but take longer to run. If the object(s) that you are gathering statistics for do not change often or the
object(s) has data entered that is very similiar you may choose a lower number. However, if the data changes frequently
a larger number entered for this parameter would be recommended to provide a more accurate representation of your
data.

Degree
Enter the Degree of parallelism. If not entered, it will default to min(cpu_count, parallel_max_servers). Modifying the
degree of parallelism on a table can cause the plan to change. Increasing the degree of parallelism is likely to make full
table scans appear cheaper and more attractive while reducing it will make Full Table Scans look less attractive.

Backup Flag
If the value is 'NOBACKUP' then it won't take a backup of the current statistics and should run quicker. If the value is
'BACKUP' then it does an export_table_stats prior to gathering the statistics.

Restart Request Id
Enter the request id that should be used for recovering gather_schema_stats if this request should fail. You may leave
this parameter null.

Gather Options
As of 11.5.10, FND_STATS.GATHER_SCHEMA_STATS introduced a new parameter called OPTIONS that, if set to
GATHER AUTO, allows FND_STATS to automatically determine the tables for which statistics should be gathered based
on the change threshold. The Modifications Threshold can be adjusted by the user by passing a value for modpercent,
which by default is equal to 10. GATHER AUTO uses a database feature called Table Monitoring, which needs to be
enabled for all the tables. A procedure called ENABLE_SCHEMA_MONITORING has been provided to enable
monitoring on all tables for a given schema or all Applications schemas.

Manual Execution
In R11i customers should be using the FND_STATS command.
Do not use the ANALYZE command or DBMS_STATS package directly, as doing so may cause incomplete statistics to
be generated.

Use the following command to gather schema statistics:

exec fnd_stats.gather_schema_statistics('ONT') < For a specific schema >


exec fnd_stats.gather_schema_statistics('ALL') < For all schemas >
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
We use the Verify Stats report to determine whether the current statistics are accurate.
This report is a utility provided with FND_STATS, and can be run as follows:
search

Classic Flipcard
SQL>Magazine
set server Mosaic
output onSidebar Snapshot Timeslide
SQL> set long 10000
SQL> exec fnd_stats.verify_stats('schema', 'object_name');

Posted 5th December 2014 by Unknown

2 View comments

How to compile Oracle Apps R12 Forms and How to


5th December 2014
compile Oracle Apps 11i Forms
How to compile Oracle Apps 11i Forms
============================
Check whether the forms that you want to generate are not in use at the time you are generating them.
If they are in use when you generate the fmx files, the forms client session terminates.
1) Login to the Forms server node as applmgr and run .env file to set the applications environment.
2) Change directory to $AU_TOP/forms/US.
3) Use the “f60gen” command to generate the fmx files for the fmb files.
4) Issue the following command
$ f60gen module=<formname>.fmb userid=apps/<apps_pwd> output_file=/forms/US/<formname>.fmx

How to compile Oracle Apps R12 Forms


=============================
1) Log into the forms tier.
2) Set the applications environment
3) Ensure that the $FORMS_PATH includes $AU_TOP/resource and $AU_TOP/resource/stub, for example
echo $FORMS_PATH
/u01/oracle/DEV/apps/apps_st/appl/au/12.0.0/resource:
/u01/oracle/DEV/apps/apps_st/appl/au/12.0.0/resource/stub
4) Compile the form
a)- If you are using forms customizations (CUily: verdana,geneva;">1) Log into the forms tier.
2) Set the applications environment
3) Ensure that the $FORMS_PATH includes $AU_TOP/resource and $AU_TOP/resource/stub, for example
echo $FORMS_PATH
/u01/oracle/DEV/apps/apps_st/appl/au/12.0.0/resource:
/u01/oracle/DEV/apps/apps_st/appl/au/12.0.0/resource/stub
4) Compile the form
a)- If you are using forms customizations (CUSTOM.pll) then run the command below to compile the form.
frmcmp_batch.sh module=<path to fmb file> userid=APPS/APPS output_file=
<full path to fmx output file> module_type=form compile_all=special
For eg:-
frmcmp_batch.sh module=/u01/oracle/TEST/apps/apps_st/appl/au/12.0.0/forms/US/
XXX.fmb userid=APPS/APPS output_file=/u01/oracle/TEST/apps/apps_st/appl/inv/
12.0.0/forms/US/XXX.fmx module_type=form compile_all=special
b) If you are NOT using forms customizations, then run the command below to compile the form.
frmcmp_batch.sh module=<path to fmb file> userid=APPS/APPS output_file=
<full path to fmx output file> module_type=form
For example..
frmcmp_batch.sh module=/u01/oracle/TEST/apps/apps_st/appl/au/12.0.0/forms/US/
XXX.fmb userid=APPS/APPS output_file=/u01/oracle/TEST/apps/apps_st/appl/inv/
12.0.0/forms/US/XXX.fmx module_type=form

How to Generate a Specific Schema Form through AD utility adadmin:


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

1. Start the adadmin Utility


bash-3.00$ adadmin
Note:-From a command line session, as the applmgr user, start the adadmin utility.
Please note that if your system is configured using more than one tier and more than one APPL_TOP (in contrast to the
shared APPL_TOP), you should run this utility from each forms tier.

2. Step Through the Initial adadmin Questions


Your default directory is '/oracle/prod/apps/apps_st/appl'.
Is this the correct APPL_TOP [Yes] ?
Note:-If the above is true, then hit the [Enter] key.
AD Administration records your AD Administration session in a text file
you specify. Enter your AD Administration log file name or press [Return]
to accept theMadhanappsdba,Some
default file name shown in brackets.
of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Filename [adadmin.log] : POXBWVRP.log
ORACLE APPS DBA
Note:-Here you can record your adadmin session in a specific log file like above.
This blog is written to share and help
************* Start of AD Administration session *************
doer's.Please sh… search

AD Administration version: 12.0.0


Classic Flipcard Magazine Mosaic
AD Administration Sidebar
started at: Snapshot
Tue May Timeslide
07 2013 21:01:17
APPL_TOP is set to /oracle/prod/apps/apps_st/appl
You can be notified by email if a failure occurs.
Do you wish to activate this feature [No] ?
Note:-This option only works in UNIX and the purpose of this question is to notify the AD administrator by mail if any
failure occurred while adadmin was running in unattended mode.
Please enter the batchsize [1000] :
Note:-This option asks for a specific batch size, to reserve memory when adadmin validates package and procedure
information. This option only is meaningful when running database administrative related tasks. For the purpose of
generating a form, you can leave the default value.
You are about to use or modify Oracle Applications product tables
in your ORACLE database 'ancprod'
using ORACLE executables in '/oracle/prod/apps/tech_st/10.1.2'.
Is this the correct database [Yes] ?
Note:-If correct, hit the [Enter] key. Otherwise, exit this utility by typing "abort" plus the [b] key and verify if your
environment has been sourced correctly.
AD Administration needs the password for your 'SYSTEM' ORACLE schema
in order to determine your installation configuration.
Enter the password for your 'SYSTEM' ORACLE schema:
Note:-Here you must enter your SYSTEM database user password.
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] :
Note:-Here you must enter your SYSTEM database user password.
After finally reaching this point, the utility will try to connect to your database and get information regarding your system.

3. The next step which requires user interaction is the main menu:
AD Administration Main Menu
--------------------------------------------------
1. Generate Applications Files menu
2. Maintain Applications Files menu
3. Compile/Reload Applications Database Entities menu
4. Maintain Applications Database Entities menu
5. Change Maintenance Mode
6. Exit AD Administration

Enter your choice [6] : 1

Generate Applications Files


----------------------------------------
1. Generate message files
2. Generate form files
3. Generate report files
4. Generate product JAR files
5. Return to Main Menu

Enter your choice [5] : 2

AD utilities can support a maximum of 999 workers. Your


current database configuration supports a maximum of 276 workers.
Oracle recommends that you use between 64 and 128 workers.
Enter the number of workers [64] : 8
Note:-In order to determine the optimal number of workers for your system, you should consider the following general
rule:
Total of available workers for your system = (Number of processors) x 3
Your current character set is "UTF8".
Do you want to generate Oracle Forms objects
using this character set [Yes] ?
Note:-If this is your correct character set, hit [Enter]. Otherwise, please verify your environment.
Do you want to regenerate Oracle Forms PL/SQL library files [Yes] ?
Note:-In this case, we will generate PL/SQL library files, so you might reply 'y' to the above question.
Do you want to regenerate Oracle Forms menu files [Yes] ?
Note:-Same as above; reply 'y' to this question.
Do you want to regenerate Oracle Forms executable files [Yes] ?
Note:-Here, hit [Enter] to accept the default 'Yes'
Enter list of products ('all' for all products) [all] : PO
Note:-Now, we need to specify the Application short name. (po for Purchasing Order, gl, for General Ledger, ap for
Payables, and so on). In our example we will be using module fnd (Application Object Library).
In 11i, the entry must be typed using lowercase characters.
Generate specific forms objects for each selected product [No] ? Yes
Note:-Answer 'y' to this question, since it will regenerate all forms for the module selected previously if 'No' is answered
here.
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
The current set of installed languages is: US

ORACLE APPS DBA


Please select languages for generating Oracle Forms files.
This blog is written to share and help doer's.Please sh… search
You may select all of the above languages, or just a subset.
Enter list of languages ('all' for all of the above) [all] :
Classic Flipcard Magazine
Note:-In Mosaic
this case, Sidebar
reply 'all', Snapshot
since this Timeslide
will regenerate the form for all existing languages.
You selected the following languages: US
Is this the correct set of languages [Yes] ?
Reading product form information...
Selecting Oracle Forms PL/SQL library files and menu files to generate...
Selecting library and menu files for Purchasing...
List of libraries and menus in Purchasing :
POASTDCM.pll POXAPAPC.pll POXAPINT.pll POXBWVRP.pll POXCOMSG.pll
POXCORE.pll POXCOSEU.pll POXCPDOC.pll POXDOCEC.pll POXDOCON.pll
POXDOPRE.pll POXGMLCR.pll POXGMLCT.pll POXGMLPO.pll POXGMLRQ.pll
POXOPROC.pll POXPIPLL.pll POXPIPOH.pll POXPIPOL.pll POXPIPOS.pll
POXPIRFV.pll POXPIRQH.pll POXPIRQL.pll POXPOAH.pll POXPOCTR.pll
POXPODIS.pll POXPODMC.pll POXPOEAC.pll POXPOEGA.pll POXPOEPO.pll
POXPOPOL.pll POXPOPOS.pll POXPORCV.pll POXPOREL.pll POXPORMC.pll
POXPOVCT.pll POXPOVP1.pll POXPOVP2.pll POXPRCDF.pll POXPROJA.pll
POXPROJM.pll POXRIHDR.pll POXRILNS.pll POXRQDIS.pll POXRQHDR.pll
POXRQLNS.pll POXRQMOD.pll POXRQVR1.pll POXRQVR2.pll POXSCAPP.pll
POXSCRFV.pll POXSCSAQ.pll POXSCSI2.pll POXSCSIL.pll POXSTIFT.pll
RCVCOFND.pll RCVCOTRX.pll RCVCOUOM.pll RCVGMLCR.pll RCVGMLTX.pll
RCVMRFND.pll RCVMRMAT.pll RCVRCCON.pll RCVRCCUR.pll RCVRCERH.pll
RCVRCERL.pll RCVRCMUR.pll RCVRCVRC.pll RCVSHESH.pll RCVSTDRO.pll
RCVTXECO.pll RCVTXERE.pll RCVTXERT.pll RCVTXVTX.pll
Enter libraries and menus to generate, or enter 'all' [all] : POXBWVRP.pll
Selecting product forms to generate...
Selecting forms for Purchasing...
List of forms in Purchasing :
POASTDCM.fmx POASTDSR.fmx POXBWVRP.fmx POXCPDOC.fmx POXDOAPP.fmx
POXDOCEC.fmx POXDOCON.fmx POXDOFDO.fmx POXDOPRE.fmx POXDOREP.fmx
POXGAORG.fmx POXOPROC.fmx POXPCATN.fmx POXPOAH.fmx POXPODMC.fmx
POXPOEAC.fmx POXPOEPO.fmx POXPOERL.fmx POXPORMC.fmx POXPOVCT.fmx
POXPOVPO.fmx POXPRCDF.fmx POXQUEMQ.fmx POXRQARQ.fmx POXRQERQ.fmx
POXRQMOD.fmx POXRQTMP.fmx POXRQVRQ.fmx POXSCAPP.fmx POXSCASL.fmx
POXSCERQ.fmx POXSCSAQ.fmx POXSCSIC.fmx POXSTASL.fmx POXSTDCG.fmx
POXSTDCS.fmx POXSTDLC.fmx POXSTDPC.fmx POXSTIFT.fmx POXSTITS.fmx
POXSTPRS.fmx POXSTRLM.fmx POXSVASL.fmx POXTAXCT.fmx POXTAXDT.fmx
RCVCOFND.fmx RCVCOSTA.fmx RCVRCERC.fmx RCVRCMUR.fmx RCVRCVRC.fmx
RCVSHESH.fmx RCVSTAND.fmx RCVSTDRO.fmx RCVTXECO.fmx RCVTXERE.fmx
RCVTXERT.fmx RCVTXVTX.fmx
Enter forms to generate, or enter 'all' [all] : POXBWVRP.fmx
Note:-Enter ‘POXBWVRP.fmx’ at the prompt. Once you do so, adadmin will invoke the appropriate forms compiler and
will regenerate the forms.
Generating Oracle Forms objects...
Note:-If any error is found, review the adadmin log file and the adworker log file(s). The adworker log files are also
located under $APPL_TOP/admin/<INSTANCE_NAME>/log directory. The file name is adworkxx.log where xx is the
number of the worker that had failed.
If submitting the problem to Oracle Support as a service request, please upload the adadmin log and the relevant
adworker log.

Regards
Madhan

Posted 5th December 2014 by Unknown

4 View comments

10th April 2014 Step by Step ADPATCH ...How to apply apps patch using
adpatch R12

How to apply apps patch using adpatch R12 [http://it-toolkit.blogspot.com/2013/07/how-


to-apply-apps-patch-using-adpatch.html]

STEP 1: Before applying a patch you must check whether the patch is already there or
not. For this we query the database:
su oracle
Run the environment variable db
Madhanappsdba,Some tireblogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
of the
sqlplus apps/<apps password
ORACLE APPS DBA
SQL>select * from AD_BUGS where
Thisbug_number=’<patch
blog is written tonumber>’
share
Ex:- SQL>select * from AD_BUGS where bug_number=’16213642’
and help doer's.Please sh… search

Classic Flipcard
selectMagazine Mosaic Sidebar
object_type,count(*) Snapshot
from all_objects Timeslide
where status='INVALID' group by object_type;

STEP 2 : Download the patch. From your pc and transfer it to Linux server
*login to oracle metalink.(www.metalink.oracle.com [http://www.metalink.oracle.com/] )
*Select the patches option then select the search type.
*Query for patch by writing the patch no. & platform on which you want to download the patch.
*Click download
If you have downloaded the patch at desktop then move it to directory where you want it to unzip. With winscp or
whatever software
Winscp download link
http://winscp.net/eng/download.php#download [http://winscp.net/eng/download.php#download]
STEP 3 :Unzip the patch. And set the permission
su root
cd /u01/patch
unzip p16213642_R12.AP.B_R12_LINUX.zip
chown oracle:dba 16213642

STEP 4 :Enable the Maintenance Mode.For This:


#su oracle
Run Environment variable for application
#adadmin
Here you will need system and apps password in order to enter the ad administration utility

Output
AD Administration Main Menu
--------------------------------------------------
1. Generate Applications Files menu
2. Maintain Applications Files menu
3. Compile/Reload Applications Database Entities menu
4. Maintain Applications Database Entities menu
5. Change Maintenance Mode
6. Exit AD Administration

Select option 5. The status of maintenance mode is displayed at the top of change
maintenance mode menu.Again it will show following options & ask for choice:
1.Enable Maintenance mode.
2.Disable Maintenance mode.
3.Return to Main Menu.
Select option 1. Then return to console.

Stop The application Tier

STEP 5: Run autopatch from the patch directory by entering the following command:
su oracle
[oracle@oftest appl]$cd /u01/patch/16213642/
[oracle@oftest appl]$adpatch
Note: - below red color will highlighted lines you will have to fill
Out put
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 defaultMadhanappsdba,Some
directory is '/u01/finsys/apps/apps_st/appl'.
of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Is this the correct APPL_TOP [Yes] ?

ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
AutoPatch records your AutoPatch session in a text file
search

you specify. Enter your AutoPatch log file name or press [Return]
Classic Flipcard Magazine
to accept MosaicfileSidebar
the default Snapshot
name shown Timeslide
in brackets.

Filename [adpatch.log] : 16213642.log

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 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 [TEST] : TEST *

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 [oftest] : oftest *

You are about to apply a patch to the installation of Oracle Applications


in your ORACLE database 'TEST'
using ORACLE executables in '/u01/finsys/apps/tech_st/10.1.2'.

Is this the correct database [Yes] ?

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
AutoPatch needs the password for your 'SYSTEM' ORACLE schema

ORACLE APPS DBA


in order to determine your installation configuration.
This blog is written to share and help doer's.Please sh… search

Enter the password for your 'SYSTEM' ORACLE schema:*******


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide

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] :*****

Enter the directory where your Oracle Applications patch has been unloaded
The default directory is [/u01/patch/16213642] :
Please enter the name of your AutoPatch driver file : u16213642.drv

If you don’t see the “autopatch is complete” message at the end of the Autopatch log file, Autopatch did not
complete successfully.

STEP 6: Finally exit from maintain mode using adadmin as above STEP 4
STEP 7: confirm the patch installation status For this we query the database:
su oracle
Run the environment variable db tire
sqlplus apps/<apps password
SQL>select * from AD_BUGS where bug_number=’<patch number>’
Ex:- SQL>select * from AD_BUGS where bug_number=’16213642’

select object_type,count(*) from all_objects where status='INVALID' group by object_type;

Using adctrl we can control the patching and there workers...Will see it in separate blog.....

Live gives us what we deserve ..

Thanks&& Regards
Madhanappsdba

Posted 10th April 2014 by Unknown

2 View comments

Output Post Processor (OPP) in Oracle Applications R12


2nd December 2013
and 11i

What is Output Post Processor?

Concurrent Processing now uses the Output Post Processor (OPP) to enforce post-processing actions for concurrent
requests.Post-processing actions are actions taken on

concurrent request output. An example of a post-processing action is that used in Concurrent Processing support of XML
Publisher.

If a request is submitted with an XML Publisher template specified as a layout for the concurrent request output, then
after the concurrent manager finishes running

the concurrent program, it will contact the OPP to apply the XML Publisher template and create the final output.

OPP runs as a service that can be managed through Oracle Applications Manager (OAM) from the System Activity page
(Navigation: Applications Dashboard > Applications

Service (from the dropdown list) > Go).

How to Increase the number of Output Post Processors?


1.Log on to Applications with “System Administrator” responsibility.
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
2.Navigate to Concurrent -> Manager -> Define.
ORACLE APPS DBA
3.Query for the “Output Post Processor” service.
This blog is written to share
4.Click on “Work Shifts” and increase the number of processes
and help doer's.Please sh… search

Classic Flipcard
How Magazine Mosaic Sidebar
to get OPP manager Snapshot Timeslide
log file location?

$APPLCSF/log/<SID>/FNDOPP####.txt OR
1,System Administrator > Concurrent > Manager > Administer
2,Search for ‘Output Post Processor’
3,Click the ‘Processes’ button .
4,Click the Manager Log button. This will open the ‘OPP’
Upload the OPP log file.

In some cases, Output Post Processor is not start up and it shows Actual and Target are showing different values when
we query for Output Post Processor.
The log files shows that no error message.In this case apply the following possible solution for starting the OPP.

1. Shutdown the internal manager by using adcmctl.sh stop apps/apps


2. Make sure there is no FNDLIBR processe running:
$ ps -ef| grep FNDLIBR OR ps -ef|grep applprod|grep FNDLIBR
3. If there is any FNDLIBR processe please kill it $ kill -9 pid
4. Run cmclean.sql script as document from Note 134007.1
5. Restart the internal manager by using adcmctl.sh start apps/apps

or How to kill and start Output Post Processor (OPP) Background:


This article explains how to kill OPP and restart the same

Solution:
1,System Administator > Concurrent > Manager > Administer
2,Query "Output Post Processor" -> Processes button
Get the sytem id of "Output Post Processor"
3,ps -ef|grep [system id]
4,kill -9 [system id] in Unix
5,System Administator > Concurrent > Manager > Administer
6,Query "Output Post Processor" -> Restart button

Fixing Output Post-processor actions failed issues in EBS R12

Environment: Oracle EBS 12.1.3, Oracle Database 11gR2, RedHat Linux5


Symptoms:

Users unable to open the out files.

Concurrent requests failed with “Post-processing of request failed error message”

One or more post-processing actions failed. Consult the OPP service log for details.

No further attempts will be made to post-process this request.

Cause:

The concurrent manager process was able to successfully invoke the Output Post-Processor (OPP) but encountered a
timeout as the OPP takes longer than the value

assigned to complete the job.

Solution:

1,Increase the value of profile Concurrent: OPP Response Timeout . Bounce Apache and retest.
2,If the issue still exists, perform the following steps.
3,Increase the number of Output Post Processors as follows:
4,Increase the number of processes for Output Post Processor.
5,Additionally, ensure there is a setting of oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5 under
Parameters.

For more details Please check metalink I.E oracle.support

Concurrent Requests Fail Due to Output Post Processing (OPP) Timeout [ID 352518.1]
Ouput Post Processing Fails Due To java.lang.ThreadDeath [ID 427233.1]
Why Does OPP Intermittently Completes With Warnings and Error 'java.lang.OutOfMemoryError'? [ID 978495.1]

To know more this post is very nice http://knoworacleappsdba.blogspot.in/2012/07/all-about-output-post-processor-opp-


in.html
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
How to start the Output Post Processing (OPP) in 11i
search

At least one OPP process active in the system. The concurrent processing uses the Output Post Processor (OPP) to
Classic Flipcard Magazine
enforce Mosaic actions
post-processing Sidebar Snapshot requests.
for concurrent TimeslideFor example, post-processing action is that used in publishing
concurrent requests with XML Publisher.

Actually when you have submit a request with XML Publisher template specified as a layout for the concurrent request
output. Once finishes the concurrent manager concurrent program, it will contact the OPP to apply the XML Publisher
template and create the final output

To activate the OPP follow these setps

The Profile Option "Concurrent: GSM Enabled" must be set to Y

Then:
1. Login to Apps with sysadmin responsibility
2. Navigate to: Concurrent -> Managers -> Define
3. Query for
Manager = 'Output Post Processor%'
or Short Name = FNDCPOPP
4. Check the checkbox "Enable" .
5. Click on 'Work Shifts button
6. see Work Shift of the OPP and
Set Processes = 1
and Parameters = oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
and Sleep Second = 30
7. Save

How to restart Oracle Apps 11i OPP via non unix command

It can be done using adcmctl.sh script only and there is no specific script for OPP. You can restart it from the application
via (System Administrator responsibility > Concurrent > Manager > Administer), select "Output Post Processor" and click
on the "Restart" button.

OPP Issue while generating the XML Output in apps 11i

Problem Description:
1, Few XML type concurrent programs taking long time and completed with warning OPP log file registered below error
Caused by: java.lang.ThreadDeath
2, CPU utilization taking 100% constantly while running the concurrent programs.

Cause
The java.lang.ThreadDeath error indicates that the Output Post Processor has reached its processing timeout.

Solution
The following configuration changes are recommended to optimize the environment for these type of reports:
1. Increase the value of the Concurrent: OPP Timeout profile option to 10800 seconds.

2. Enable the scalability feature of XML Publisher:

1. Login as SYSADMIN
2. Responsibility: XML Publisher Administrator
3. Function: Administration
4. Set the following properties:
5. Temporary Directory
6. Use XML Publisher's XSLT processor: True
7. Enable scalable feature of XSLT processor: True -- By default it’s false
8. Enable XSLT runtime optimization: True

> After changing the value also the problem still exist. As per the SR suggestion, we increased the java heap size from
1024M to 2048M.

a. Bring down the concurrent managers.

b. Use the Update statement below, for example:


update FND_CP_SERVICES
set DEVELOPER_PARAMETERS =
'J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx2048m'
where SERVICE_ID = (select MANAGER_TYPE from FND_CONCURRENT_QUEUES
where CONCURRENT_QUEUE_NAME = 'FNDCPOPP');

c. Bring concurrent managers up again


Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA This blog is written to share and help doer's.Please sh…
Please check below note's from oracle support search

427233.1 :Output Post Processing Fails Due To java.lang.ThreadDeath


Classic Flipcard Magazine
1268217.1: Mosaic
Output Sidebar (OPP)
Post Processor Snapshot Timeslide
Log Contains Error “java.lang.OutOfMemoryError: Java heap space"
1266368.1: Output Post Processor (OPP) Log Contains Error "java.lang.OutOfMemoryError"
978495.1: Why Does OPP Intermittently Completes With Warnings and Error 'java.lang.OutOfMemoryError'?
352518.1 :Concurrent Requests Fail Due to Output Post Processing (OPP) Timeout
364547.1 :Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite

Regards
Madhan

Posted 2nd December 2013 by Unknown

4 View comments

27th November 2013 DBVERIFY or DBV

This article describes the basic details of the DBVERIFY (or DBV)
utility which can be used to check Oracle datafiles for signs of
corruption. The article gives summary details of how to use
DBV and what output to expect

DB verify is an simple check of the tablespace’s data file.

[oravis@vis2 ~]$ dbv

DBVERIFY: Release 11.1.0.7.0 - Production on Wed Nov 27 18:01:03 2013

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

Keyword Description (Default)


----------------------------------------------------
FILE File to Verify (NONE)
START Start Block (First Block of File)
END End Block (Last Block of File)
BLOCKSIZE Logical Block Size (8192)
LOGFILE Output Log (NONE)
FEEDBACK Display Progress (0)
PARFILE Parameter File (NONE)
USERID Username/Password (NONE)
SEGMENT_ID Segment ID (tsn.relfile.block) (NONE)
HIGH_SCN Highest Block SCN To Verify (NONE)
(scn_wrap.scn_base OR scn)

[oratest@linux1]$ dbv FILE=/d01/test/db/apps_st/data/tx_idx4.dbf blocksize=2048 logfile=users01_dbv.log


feedback=100

[oratest@linux1]$ dbv FILE=/d01/test/db/apps_st/data/tx_idx4.dbf blocksize=2048

dbv can be executed by specifying the file name and block size of the datafile. All other parameters are optional.

As a DBA we should use this has automated or execute or scheduled regularly.

#!/bin/ksh
# Oracle Utilities
# dbv automation script
#
#
. oraenv
wlogfile=dbv.${ORACLE_SID}
SQLPLUS=${ORACLE_HOME}/bin/sqlplus
$SQLPLUS -s system/manager >> $wlogfile <<EOF
set echo off feedback off verify off pages 0 termout off
linesize 150
spool dbv.cmd
see dbv script download
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
select 'dbv file=' || name || ' blocksize=' || block_size ||

ORACLE APPS DBA ' feedback=' || round(blocks*.10,0) -- 10 dots per file


from v\$datafile;
This blog is written to share and help doer's.Please sh… search

spool off
Classic Flipcard set
Magazine
feedbackMosaic
on verifySidebar
on pages24 Snapshot Timeslide
echo on termout on
EOF
ksh dbv.cmd
#
# End of script

DBVERIFY: Release 11.1.0.7.0 - Production on Wed Nov 27 19:02:47 2013

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

DBVERIFY - Verification starting : FILE = /d01/test/db/apps_st/data/tx_data33.dbf


..........

DBVERIFY - Verification complete

Total Pages Examined : 204288


Total Pages Processed (Data) : 149760
Total Pages Failing (Data) : 0
Total Pages Processed (Index): 504
Total Pages Failing (Index): 0
Total Pages Processed (Other): 53779
Total Pages Processed (Seg) : 0
Total Pages Failing (Seg) : 0
Total Pages Empty : 245
Total Pages Marked Corrupt : 0
Total Pages Influx :0
Total Pages Encrypted :0
Highest block SCN : 323725254 (2359.323725254)

DBVERIFY: Release 11.1.0.7.0 - Production on Wed Nov 27 19:03:09 2013

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

DBVERIFY - Verification starting : FILE = /d01/test/db/apps_st/data/tx_data34.dbf


.......

Can be executed as individual aswell if you are already in datafiles path.

dbv file=data01.dbf blocksize=8192

DBVERIFY: Release 11.1.0.7.0 - Production on Wed Nov 27 18:04:00 2013

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

DBVERIFY - Verification starting : FILE = /d01/oracle/VIS/db/apps_st/data/data01.dbf

DBVERIFY - Verification complete

Total Pages Examined : 166400


Total Pages Processed (Data) : 133928
Total Pages Failing (Data) : 0
Total Pages Processed (Index): 13203
Total Pages Failing (Index): 0
Total Pages Processed (Other): 2739
Total Pages Processed (Seg) : 0
Total Pages Failing (Seg) : 0
Total Pages Empty : 16530
Total Pages Marked Corrupt : 0
Total Pages Influx :0
Total Pages Encrypted :0
Highest block SCN : 305256713 (2359.305256713)
[oravis@vis2 data]$ dbv file=data01.dbf blocksize=8192

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
NOTE:
ORACLE APPS DBA This blog is written to share and help doer's.Please sh… search
Make sure that the OS user account has read and write permissions or an error will occur with Oracle 11g Release 1 due
to a bug with DBVERIFY.
Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
In addition, Oracle provides block corruption detection and repair with the Oracle 11g Recovery Manager (RMAN) utility
during backup and recovery processing.

Block corruption can also be detected by querying the v$database_block_corruption dynamic performance view. To
repair block corruption, the dbms_repair package can be used with Oracle 11g

OUTPUT of DBV has the following

Total Pages Examined – The number of blocks inspected by dbv. If the entire file was scanned, this value will match the
BLOCKS column for the file in v$datafile.

Total Pages Processed (Data) – The number of blocks inspected by dbv that contained table data.

Total Pages Failing (Data) – The number of table blocks that have corruption.

Total Pages Processed (Index) –The number of blocks inspected by dbv that contained index data.

Total Pages Failing (Index) – The number of index blocks that are corrupted.

Total Pages Processed (Seg) – This output is new to 9i and allows the command to specify a segment that spans
multiple files.

Total Pages Failing (Seg) – The number of segment data blocks that are corrupted.

Total Pages Empty – Number of unused blocks discovered in the file.

Total Pages Marked Corrupt – This is the most important one. It shows the number of corrupt blocks discovered during
the scan.

Total Pages Influx – The number of pages that were re-read due to the page being in use. This should only occur when
executing dbv against hot datafiles and should never occur when running dbv against cold backup files.

Below script will show the any curruption

SQL>SELECT tablespace_name, segment_type, owner, segment_name


FROM dba_extents
WHERE file_id = <FILE#> and
<BLOCK#> between block_id AND block_id + blocks - 1;

SQL>select file#,name,bytes/2048 from v$datafile;

SQL> show parameter db_block_size

SQL> select tablespace_name, segment_name, TABLESPACE_ID, HEADER_FILE, HEADER_BLOCK


from sys.sys_user_segs
where
tablespace_name='USERS' and SEGMENT_NAME like 'JUNK%';

to check the segmanet DBV

SQL> select t.ts#, s.header_file, s.header_block


2 from v$tablespace t, dba_segments s
3 where s.segment_name='TAB1'
4 and t.name = s.tablespace_name;

dbv userid=system/manager SEGMENT_ID=2.5.37767

For more details please check Oracle support

DBV Reports Corruption Even After Drop/Recreate Object (Doc ID 269028.1)

DBVERIFY - Database file Verification Utility (7.3.2 - 11.2) (Doc ID 35512.1)

Meaning Of The Message "Block Found Already Corrupt" When Running DBVerify (Doc ID 139425.1)

DBVERIFY enhancement - How to scan an object/segment (Doc ID 139962.1)

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
ORACLE APPS DBA
Regards
Madhan
This blog is written to share and help doer's.Please sh… search

Posted 27th
Classic Flipcard Magazine Mosaic Sidebar Snapshot November 2013 by Unknown
Timeslide
1 View comments

6th November 2013 Incoming Packet was garbled on decryption


putty shows this error message:

Incoming Packet was garbled on decryption

Go to Connection -> SSH -> Protocol options. Set “Preferred SSH protocol version:” to SSH version 2.
Go to Connection -> SSH -> Encryption options. Promote Blowfish to the top of the list of “Encryption cipher selection
policy:”

Or
The solution: In the Connection -> SSH menu of putty, make sure 3DES is at the top, and the problem will go away.
Posted 6th November 2013 by Unknown

4 View comments

Login Screen having garbled buttons issues in R12.1.3 with


10th October 2013
I.E 10 . instead responsibility undefined error after upgrade it
form R12
R12.1.3 on IE10,IE9 some times after upgrading login screen garbled and undefined

IE10 on Windows 7,8 and it is throwing up some interesting items for R12.1.3. Looks like compatibility views are the only
way to get it to work properly.

Without the compatibility view everything is undefined. Make sure when we use IE10 on windows 7 and 8.

Issues with login page and once logged in it is grabled

Please please ALT + F key .You can see compatibility view under tools menu.Click it then R12.1.3 is ok .

I saw this after upgrade R12.1.3 issues. i asked for testing got this error and solved.

Oracle Support Notes 1395050.1 for fusion apps and 285218.1 for eBusiness will show the recommended browsers.

Chrome works well with OAF pages :) or where you use an extension to change the user agent for the browser to
another one.

Regards
Madhan

Posted 10th October 2013 by Unknown

1 View comments

1st October 2013 Concurrent Manager issues

Standard Manager Not Picking Up Request .Managers are working not working after specifc changes have done
.
Stop the CM
Run AutoConfig
Run cmclean.sql script -- Concurrent Processing - CMCLEAN.SQL - Non Destructive Script to Clean Concurrent
Manager Tables [ID 134007.1]
Run ccml.sql script -- Concurrent Processing - CCM.sql Diagnostic Script to Diagnose Common Concurrent Manager
Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.
Issues [ID 171855.1]

ORACLE APPS DBA


Start the CM
This blog is written to share and help doer's.Please sh… search

How to find ICM log on Oracle Apps 11i and R12?


Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide
All Concurrent Mangers log files are located in the $APPLCSF/$APPLLOG location.The following bellow options are
available to get the latest log files.
Option1:
Login to Apps User and source environment file
cd $APPLCSF/$APPLLOG
ls -lrt *$TWO_TASK*
Internal Concurrent Manager Log:<SID>_MMDD.mgr
Here you can see other list of log files which are related to concurrent mangers.The name conversation for the
concurrent manger log files are
Standard manager log: w<XXXXXXX>.mgr
Transaction manager log: t<XXXXXXX>.mgr
Conflict Resolution manager log: c<XXXXXXX>.mgr
Where: <XXXXXXX> is the concurrent process id of the manager
Option2:
Log-in to the Apps User
Run Source environment file
Connect to sqlplus and run this query
SELECT 'ICM_LOG_NAME=' || fcp.logfile_name
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';
Sample Output:
'ICM_LOG_NAME='||FCP.LOGFILE_NAME
-------------------------------------------------------------
ICM_LOG_NAME=/d01/test/inst/apps/VIS_vis1/logs/appl/conc/log/VIS_0918.mgr
Option3:
Log in to Sysadmin Responsibility
Go to ->Concurrent -> Manager -> Administer -Processes -> Click button Internal Manager Log.

Concurrent Processing - ORA-00060: Deadlock Detected - UPDATE FND_CONCURRENT_QUEUES (Doc ID 866298.1)

ORACLE error 60 in insert_fcp


Cause: insert_fcp failed due to ORA-00060: deadlock detected while waiting for resource
ORA-06512: at "APPS.FND_CP_FNDSM", line 127
ORA-06512

To be continued

Other References

BUG:8724518 - ORA-60 SELF-DEADLOCK ERRORS FROM ICM WHILE UPDATING FND_CONCURRENT_QUEUES


NOTE:1304305.1 - Concurrent Processing - Product Information Center (PIC)
NOTE:179661.1 - E-Business Suite Diagnostics 11i Test Catalog
NOTE:421245.1 - E-Business Suite Diagnostics References for R12
PATCH:8724518
Posted 1st October 2013 by Unknown

4 View comments

Madhanappsdba,Some of the blogs will directly points oracle notes or other blogs for myreference. Dynamic Views theme. Powered by Blogger.

Anda mungkin juga menyukai