Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
6Activity
0 of .
Results for:
No results containing your search query
P. 1
m Apps Clone

m Apps Clone

Ratings: (0)|Views: 85|Likes:
Published by api-3741317
doc on cloning
doc on cloning

More info:

Published by: api-3741317 on Oct 15, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

rem
rem
file:
m_apps_clone.sql
rem
created:
vitaliy mogilevskiy (vit100gain@earthlink.net)
rem
desc:
manual on creating a clone of oracle apps r11
rem
creating a copy of oracle applications r11
i. database side
ii. applications side
i. database side
=================

1) create oracle user for new database instance, and create .profile
file for that user, make sure to setup all environmental variables
in .profile file which reflect new directory structure and oracle settings
see next step

2) create ofa compliant directory structure for database files and oracle instance
files
make sure to change permissions on these directories for a new oracle user:
for example:

oradata/prod/
/test/
/pilot/

<-- database
app/test/
<-- instance
3) create backup control file on the existing database:

sql> alter database backup controlfile to trace;
4) shutdown the existing database and make a backup
5) copy oracle software and database files into new directories
6) modify previously backed up control file to reflect new directory

structure and new database name, here is an example:
startup nomount

create controlfile set database "test01" resetlogs noarchivelog
maxlogfiles 254
maxlogmembers 2
maxdatafiles 1022
maxinstances 1
maxloghistory 680

logfile

group 1 (
'/d01/oradata/test01/redo1g1.dbf',
'/d04/oradata/test01/redo2g1.dbf'

) size 5m,

group 2 (
'/d01/oradata/test01/redo1g2.dbf',
'/d04/oradata/test01/redo2g2.dbf'

) size 5m

datafile
'/d04/oradata/test01/system01.dbf',
'/d02/oradata/test01/rbs01.dbf',

'/d05/oradata/test01/tools01.dbf',
'/d05/oradata/test01/users01.dbf',
'/d05/oradata/test01/temp01.dbf',
'/d05/oradata/test01/interim01.dbf',
'/d05/oradata/test01/find01.dbf',
'/d05/oradata/test01/gld01.dbf',
'/d05/oradata/test01/apd01.dbf',
'/d05/oradata/test01/ard01.dbf',
'/d05/oradata/test01/pod01.dbf',
'/d05/oradata/test01/invd01.dbf',
'/d05/oradata/test01/oed01.dbf',
'/d05/oradata/test01/bomd01.dbf',
'/d05/oradata/test01/mrpd01.dbf',
'/d05/oradata/test01/wipd01.dbf',
'/d05/oradata/test01/applsys01.dbf',
'/d05/oradata/test01/asd01.dbf',
'/d05/oradata/test01/ced01.dbf',
'/d05/oradata/test01/csd01.dbf',
'/d05/oradata/test01/ecd01.dbf',
'/d05/oradata/test01/fad01.dbf',
'/d03/oradata/test01/finx01.dbf',
'/d03/oradata/test01/glx01.dbf',
'/d03/oradata/test01/apx01.dbf',
'/d01/oradata/test01/arx01.dbf',
'/d01/oradata/test01/arx02.dbf',
'/d01/oradata/test01/pox01.dbf',
'/d03/oradata/test01/invx01.dbf',
'/d02/oradata/test01/oex01.dbf',
'/d03/oradata/test01/oex02.dbf',
'/d01/oradata/test01/bomx01.dbf',
'/d01/oradata/test01/mrpx01.dbf',
'/d01/oradata/test01/wipx01.dbf',
'/d01/oradata/test01/applsysx01.dbf',
'/d01/oradata/test01/asx01.dbf',
'/d01/oradata/test01/cex01.dbf',
'/d01/oradata/test01/csx01.dbf',
'/d01/oradata/test01/ecx01.dbf',
'/d01/oradata/test01/fax01.dbf',
'/d05/oradata/test01/ctxd01.dbf'

;alter database open;
7) modify init<sid_name>.ora file to reflect new database name
and directory structure.

8) rename modified control file to something like cr8_<db_name>.sql
and run it from server manager as new oracle user, make sure
your oracle_sid and oracle_home are correct - this will create a clone
of your existing database

9) shutdown the database make a full backup

10) modify listener.ora and tnsnames.ora files to point to a new database:
note: you can use one listener for all your databases to make your
administration tasks easier, so always modify the original listener.ora file.

ii. application side:
======================

1) create applmgr user for new application instance, and .profile file
for that user, make sure to setup all environmental variables
in .profile file which reflect new directory structure see next step

2) create empty directory for application files make sure to change permissions
on these directories for a new applmgr user for example:
d05/applmgr_p/appl_top/ <--- prod application files

d04/applmgr_t/appl_top/ <--- test application files
3) copy existing directory structure to newly created empty directory
4) modify <sid_name>.env file in $appl_top directory to reflect new directory

structure, also there is an entry like this:
forms45_mapping="http://<host_name>:<web_listener_port_number>/oa_temp"

export forms45_mapping
make sure to modify this entry to reflect web_listener_port_number of your
new database

5) modify $oracle_home/network/admin/listener.ora file to reflect new
oeorpc_<sid_name>
and new $appl_top directory structure here is an example:

(sid_desc =
(sid_name = oeorpc_prod)
(program = /d05/applmgr_p/r11.01/oe/11.0.28/bin/oeorpc)
(envs='ld_library_path=/d04/app/oracle/product/8.0.5/lib:*********** goes

on and on.....
(oracle_home=/d04/app/oracle/product/8.0.5)
)(sid_desc =

(sid_name = oeorpc_test01)
(program = /d05/applmgr_t01/r11.01/oe/11.0.28/bin/oeorpc)
(envs='ld_library_path=/d04/app/oracle_t01/product/8.0.5/*********** goes

on and on.....
(oracle_home=/d04/app/oracle_t01/product/8.0.5)
)
6) modify $oracle_home/network/admin/tnsnames.ora file to reflect new
entries in listener.ora file for example:
oeorpc_prod =

(description =
(address = (protocol= tcp)(host= rainbow)(port= 1521))
(connect_data = (sid = oeorpc_prod))

)
oeorpc_test01 =

(description =
(address = (protocol= tcp)(host= rainbow)(port= 1521))
(connect_data = (sid = oeorpc_test01))

)
7) modify oracle web server configuration files which reflect new directory setup
and new web listeners setup:

Activity (6)

You've already reviewed this. Edit your review.
1 hundred reads
Saif Nemir liked this
shiva liked this
maleem liked this
maleem liked this
naganumam liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->