Académique Documents
Professionnel Documents
Culture Documents
Author:
Document Ref:
Version:
Muneer Dar
Clone Document for Oracle apps 11i
1.0
Note: This clone Document to specific to TESTATFL instance. Make necessary changes if you
are cloning to DEV or some other instance.
Author
Version
23-Nov-2010
1.0
Change Reference
Reviewers
Name
Position
Pradeep Ragupathy
Senior Analyst.
On Testserver
1. Bring the Listner and Apps tier services down.
2. Bring the Test Database down.
3. Remove the Data files and application tops.
Restoration_script.tx
t
We are going to Restore the Database using production SID. So Set the Environment as PRODATFL
and startup instance in nomount mode.
$ export ORACLE_SID=PRODATFL
$ sqlplus '/as sysdba'
SQL> startup nomount
SQL>exit
Restore the control file by connecting to rman.
$ rman target /
Recovery Manager: Release 10.2.0.4.0 - Production on Sat Nov 20 11:28:34 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: PRODATFL (not mounted)
# Set the Database id. We can get DBID from production by using select dbid from v$database;
RMAN> set DBID= 350174392
# Restore control file. Go to RMAN backup location and do ls ltr PRODATFL_data_control*
Take the control file backup piece which is more recent.
RMAN> restore controlfile from '/oratest/testatfl/backup/PRODATFL_data_control_1598_1_nqk;
Do tail f to rman logfile in another session and monitor the Data file restoration process.
Once All the Data files are restored, the recovery should take place automatically as we have included
recover database command in restore script. If due to some issue, recovery is did not happened
automatically, recover the database manually and open the database with reset logs option.
Verify All the datafiles are online. Compare datafile count with production.
Next we need to rename the Database from PRODATFL to TESTATFL.
Take the trace backup of control file as below.
Sql> alter database backup controlfile to trace as /oratest/testatfl/Control_file.sql;
Now edit this control file trace and prepare a control file creation script.
Change the CREATE CONTROLFILE statement to below.
CREATE CONTROLFILE SET DATABASE "TESTATFL " RESETLOGS NOARCHIVELOG
Now shutdown the Database which is running on PRODATFL SID and take backup of existing control
files. ( Nothing to do with Production Instance. So be careful here.)
$ sqlplus '/as sysdba'
SQL>shutdown immediate
SQL> exit
Now start the instance in nomount mode using TESTATFL sid and run control file script.
$ export ORACLE_SID=TESTATFL
$ sqlplus '/as sysdba'
SQL>startup nomount;
SQL> @/oratest/testatfl/Control_file.sql
Once control files are created, open the TESTATFL database using resetlogs option.
SQL> alter database open resetlogs;
Once the Customer acknowledges us that the Apps backup has been restored
successfully on Test server we can precede further.
Rename the Application tops if not done by customer.
$ mv prodatflappl testatflappl
$ mv prodatflcomn testatflcomn
$ mv prodatflora testatflora
Check the ownership of Application tops. Change the ownership if not set to uid=102(appltest)
gid=100(dba)
Navigation is System Administrator Workflow Notification Mailers Click on View Details button
Discoverer Setup
Mv the earlier Dbc of the cloned environment in demoebs.atfoods.com
discoverer. Please see below for location
/eddevora/oracle/BIHome_1/discoverer/secure
Copy the dbc file from the cloned environment to the
/eddevora/oracle/BIHome_1/discoverer/secure location.
Site Level
EUL_US
EUL
EUL
EUL
American English
10
EUL
For ex:
Known Issues:
After application clone all concurrent managers are not coming up and ICM log files shows the
following error message
----------------------------------------------------------------------------------------------Process monitor session ended : 17-MAR-2011 07:45:08
Process monitor session started : 17-MAR-2011 07:47:08
Could not contact Service Manager FNDSM_QASBL_TESTATFL. The TNS alias could not be
located, the listener process on QASBL could no
t be contacted, or the listener failed to spawn the Service Manager process.
Process monitor session ended : 17-MAR-2011 07:47:09
Process monitor session started : 17-MAR-2011 07:49:09
Could not contact Service Manager FNDSM_QASBL_TESTATFL. The TNS alias could not be
located, the listener process on QASBL could no
t be contacted, or the listener failed to spawn the Service Manager process.
Process monitor session ended : 17-MAR-2011 07:49:09
Process monitor session started : 17-MAR-2011 07:51:09
Could not contact Service Manager FNDSM_QASBL_TESTATFL. The TNS alias could not be
located, the listener process on QASBL could no
t be contacted, or the listener failed to spawn the Service Manager process.
For this Error
Connect to SQLPLUS as APPS user and run the following statement :
select CONCURRENT_QUEUE_NAME from FND_CONCURRENT_QUEUES where
CONCURRENT_QUEUE_NAME like 'FNDSM%';
If the above SQL does not returning any value then please follow the metalink note id
After Doing a Clone All the Concurrent Managers Do Not Start (Doc ID 555081.1)