ADDING BLOCK VOLUME to OCI COMPUTE INSTACE

login as: opc
Authenticating with public key "rsa-key-20190505"
Last login: Sun May  5 09:02:03 2019 from 157.44.132.21
[opc@testclouddb ~]$ sudo su -
Last login: Sun May  5 09:22:53 GMT 2019 on pts/2
[root@testclouddb ~]# clear
[root@testclouddb ~]# adding mountpoing
-bash: adding: command not found
[root@testclouddb ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.2G     0  7.2G   0% /dev
tmpfs           7.3G     0  7.3G   0% /dev/shm
tmpfs           7.3G  8.8M  7.3G   1% /run
tmpfs           7.3G     0  7.3G   0% /sys/fs/cgroup
/dev/sda3        39G  1.9G   37G   5% /
/dev/sda1       200M  9.7M  191M   5% /boot/efi
tmpfs           1.5G     0  1.5G   0% /run/user/1000
/dev/sdb       1008G   72M  957G   1% /u01
tmpfs           1.5G     0  1.5G   0% /run/user/0
[root@testclouddb ~]# adding mount u02
-bash: adding: command not found
[root@testclouddb ~]# copying iscsi commands which is avilable in instance -->attach block volume -->details-->iscsi commands
-bash: copying: command not found
[root@testclouddb ~]# sudo iscsiadm -m node -o new -T iqn.2015-12.com.oracleiaas:8c23597f-f1e4-4219-a4b7-60107312a478 -p 169.254.2.3:3260
New iSCSI node [tcp:[hw=,ip=,net_if=,iscsi_if=default] 169.254.2.3,3260,-1 iqn.2015-12.com.oracleiaas:8c23597f-f1e4-4219-a4b7-60107312a478] added
[root@testclouddb ~]# sudo iscsiadm -m node -o update -T iqn.2015-12.com.oracleiaas:8c23597f-f1e4-4219-a4b7-60107312a478 -n node.startup -v automatic
[root@testclouddb ~]# sudo iscsiadm -m node -T iqn.2015-12.com.oracleiaas:8c23597f-f1e4-4219-a4b7-60107312a478 -p 169.254.2.3:3260 -l
Logging in to [iface: default, target: iqn.2015-12.com.oracleiaas:8c23597f-f1e4-4219-a4b7-60107312a478, portal: 169.254.2.3,3260] (multiple)
Login to [iface: default, target: iqn.2015-12.com.oracleiaas:8c23597f-f1e4-4219-a4b7-60107312a478, portal: 169.254.2.3,3260] successful.
[root@testclouddb ~]#
[root@testclouddb ~]# fdisk -l
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sda: 50.0 GB, 50010783744 bytes, 97677312 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
Disk label type: gpt
Disk identifier: E612AFD4-C2DB-46D5-AB2D-C7BAD48E71FA


#         Start          End    Size  Type            Name
 1         2048       411647    200M  EFI System      EFI System Partition
 2       411648     17188863      8G  Linux swap
 3     17188864     97675263   38.4G  Microsoft basic

Disk /dev/sdb: 1099.5 GB, 1099511627776 bytes, 2147483648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes


Disk /dev/sdc: 1099.5 GB, 1099511627776 bytes, 2147483648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes

[root@testclouddb ~]# mkdir /u02
[root@testclouddb ~]# mkfs /dev/sdc
mke2fs 1.42.9 (28-Dec-2013)
/dev/sdc is entire device, not just one partition!
Proceed anyway? (y,n) n
[root@testclouddb ~]# mount /dev/sdc /u02
mount: unknown filesystem type '(null)'
[root@testclouddb ~]# mount /dev/xvdf1 /test
mount: mount point /test does not exist
[root@testclouddb ~]# mkfs /dev/sdc
mke2fs 1.42.9 (28-Dec-2013)
/dev/sdc is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=256 blocks
67108864 inodes, 268435456 blocks
13421772 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
8192 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000, 214990848

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information:
done

[root@testclouddb ~]#
[root@testclouddb ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.2G     0  7.2G   0% /dev
tmpfs           7.3G     0  7.3G   0% /dev/shm
tmpfs           7.3G  8.7M  7.3G   1% /run
tmpfs           7.3G     0  7.3G   0% /sys/fs/cgroup
/dev/sda3        39G  1.9G   37G   5% /
/dev/sda1       200M  9.7M  191M   5% /boot/efi
tmpfs           1.5G     0  1.5G   0% /run/user/1000
/dev/sdb       1008G   72M  957G   1% /u01
[root@testclouddb ~]# mount /dev/sdc /u02
[root@testclouddb ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.2G     0  7.2G   0% /dev
tmpfs           7.3G     0  7.3G   0% /dev/shm
tmpfs           7.3G  8.7M  7.3G   1% /run
tmpfs           7.3G     0  7.3G   0% /sys/fs/cgroup
/dev/sda3        39G  1.9G   37G   5% /
/dev/sda1       200M  9.7M  191M   5% /boot/efi
tmpfs           1.5G     0  1.5G   0% /run/user/1000
/dev/sdb       1008G   72M  957G   1% /u01
/dev/sdc       1008G   72M  957G   1% /u02
[root@testclouddb ~]#

DATABASE PT(TUNING) on LINUX

DATABASE PERFORMANCE TUNING

SYSTEM TUNING
SQL TUNING

SYSTEM TUNING

we can check system usage and CPU performance,if anything you have seen related system usage is high need to upgrade your  server configuration

SAR
VMSTAT

OPC is CLOUD USER

login as: opc
Authenticating with public key "rsa-key-20180924"
Last login: Tue Sep 25 18:11:58 2018 from 157.48.60.207
[opc@lava ~]$ pwd
/home/opc
[opc@lava ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.2G     0  7.2G   0% /dev
tmpfs           7.3G     0  7.3G   0% /dev/shm
tmpfs           7.3G   17M  7.2G   1% /run
tmpfs           7.3G     0  7.3G   0% /sys/fs/cgroup
/dev/sda3        39G  1.9G   37G   5% /
/dev/sda1       200M  9.8M  191M   5% /boot/efi
tmpfs           1.5G     0  1.5G   0% /run/user/1000
[opc@lava ~]$ uname -a
Linux lava 4.1.12-124.18.5.el7uek.x86_64 #2 SMP Mon Aug 13 16:15:23 PDT 2018 x86_64 x86_64 x86_64 GNU/Linux
[opc@lava ~]$ sar
Linux 4.1.12-124.18.5.el7uek.x86_64 (lava)      09/26/2018      _x86_64_        (2 CPU)

12:00:01 AM     CPU     %user     %nice   %system   %iowait    %steal     %idle
12:10:01 AM     all      0.03      0.00      0.01      0.00      0.00     99.95
12:20:01 AM     all      0.00      0.00      0.01      0.00      0.00     99.99
12:30:01 AM     all      0.06      0.00      0.06      0.00      0.00     99.88
12:40:01 AM     all      0.03      0.00      0.01      0.00      0.00     99.95
12:50:02 AM     all      0.00      0.00      0.01      0.00      0.00     99.99
01:00:01 AM     all      0.00      0.00      0.01      0.00      0.00     99.99
01:10:01 AM     all      0.03      0.00      0.01      0.00      0.00     99.96
01:20:01 AM     all      0.01      0.00      0.01      0.00      0.00     99.98
01:30:01 AM     all      0.01      0.00      0.01      0.00      0.00     99.99
01:40:01 AM     all      0.05      0.00      0.02      0.00      0.00     99.93
01:50:01 AM     all      0.00      0.00      0.01      0.00      0.00     99.99
02:00:01 AM     all      0.01      0.00      0.01      0.00      0.00     99.99
02:10:01 AM     all      0.03      0.00      0.02      0.00      0.00     99.95
Average:        all      0.02      0.00      0.02      0.00      0.00     99.96

02:11:33 AM       LINUX RESTART
[opc@lava ~]$ vmstat -S M
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0      0  14231      3    312    0    0   795    92  543 4960 12  8 78  1  0
[opc@lava ~]$ hostname
lava
[opc@lava ~]$

**Application-running user  script**

Select user_name from fnd_user where user_id in (select user_id from icx_sessions where last_connect > sysdate -24;

Select fnd.user_name,icx.responsibility_application_id,icx.responsibility_name,icx.session_id,icx.first_connect,icx.last_connect,Decode((icx.disable_flag),'N','Active','y','Inactive') status
From
Fnd_user find,icx_sessions icx,fnd_responsibility_tl frt
Where find.user_id=icx.user_id
And icx.responsibility_id=frt.responisibility_id
And icx.disabled_flag<>'Y'
And icx.last_connect> sysdate -1/24;

RMAN

Rman backup can be taken in two ways

BACKUP SET - Recovery Manager backs up the datafiles, control file, archived log files, and server parameter files in a RMAN specific format called backup pieces. A set of one or more such backup pieces makes up a backup set. A backup set is created using the BACKUP command.

IMAGE COPY - As opposed to the backup set, an image copy is not a RMAN specific format. It is a replica of an actual file. Image copies are created using the COPY command.


TARGET DATABASE - A Target Database is the primary database that will be backed up for standby database creation. In RMAN's terminology, the term target database identifies the database that is undergoing a backup, restore or recovery operation by Recovery Manager.

AUXILIARY DATABASE - An Auxiliary Database is a standby database that will be created as a result of the duplication of the target database. In RMAN's terminology, Auxiliary instance identifies an instance which RMAN connects in order to execute the duplicate command.


RESTORE:
Restore is used to restore the datafiles from a backup. You can restore up to the time of the backup or a point before using SET UNTIL cancel/TIME/SCN...etc.

example:
run 
{
set newname for database to "/u02/app/oracle/oradata/TST1/%U";
restore database until time="TO_DATE('11/13/2013 01:53:36', 'MM/DD/YYYY HH24:MI:SS')";
switch datafile all;
}
exit;


RECOVER:
You would lose any changes made to the database after the backup by performing only a RESTORE.

RECOVER is used to roll the database forward after a RESTORE by applying the redo logs

example:

run {
recover database until scn 7266782191960;
}
exit;

###Duplicate method in Rman####

Rman duplicate command uses
It is mainly used for database rename after restore
To use duplication in rman we have the below senories
1.Adding dbfilename_convert,Logfilename_convert parameters in pfile(if it source data file mounts and target mounts are same count.ex||source db saves datafiles in 3mount points and target db also saves datafiles in 3mounts)


2.set new name command in rman script(if source data file mounts and target mount are having different count.ex||source db saves datafiles in 3mount points and target db saves datafiles in 6mounts)

3.configure auxname.
By this same like set new name it will rename dbfiles but we can modify number of log files or groups.
It is necessary to connect to the recovery catalog in order to use the CONFIGURE AUXNAME command


How rman create target redologs?
RMAN uses all incremental backups, archived redo log backups, and archived redo logs to perform incomplete recovery. RMAN then shuts down, starts, and opens the database with the RESETLOGS option to create the online redo logs.

Why we don't use nofilenamecheck option in same host db?
Do not use the NOFILENAMECHECK option when duplicating to the same Oracle home as the primary database. If you do, then the DUPLICATEcommand may overwrite the datafiles of the target database.

DB_CREATE_ONLINE_LOG_DEST_n : this parameter used to specify no.of controlfiles and redologs files generation.we can specify this parameter in pfile



*****USING SBT BACKUP***********


1.Restoring Oracle Full Databases:

Put the database in MOUNT mode

run {
allocate channel ch1 type 'sbt_tape';
allocate channel ch2 type 'sbt_tape';
restore database ;
recover database;
sql “alter database open”;
}

2.Restoring Oracle Control Files

Restore control and files in the following scenarios:

If the control file is lost and you need to restore the backup repository contained in the control file
If the recovery catalog is lost
If the recovery catalog was never used
If the catalog connect string is not specified for the instance during the backup




Put the database in NOMOUNT mode.

run {
set DBID <dbid>;
allocate channel ch1 type 'sbt_tape';
restore controlfile from autobackup ;
}

3.Duplicating Oracle Database

To redirect data files, specify the DB_FILE_NAME_CONVERT init parameter in the PFILE

run {
allocate auxiliary channel ch1 type 'sbt_tape';
allocate auxiliary channel ch2 type 'sbt_tape';
DUPLICATE TARGET DATABASE TO dupdb;
PFILE = /dup/oracle/dbs/initDUPDB.ora
NOFILENAMECHECK;
}

4.Restoring Oracle Individual Tablespaces to a Point-in-Time

On the RMAN command line, set the SBT CHANNEL parameter:

RMAN> CONFIGURE CHANNEL DEVICE TYPE 'sbt_tape' PARMS="SBT_LIBRARY= <software_installation_path>/Base/libobk.so, BLKSIZE=1048576";

n the RMAN command line, run the following sample script, substituting any required or optional Oracle SBT parameters.
RMAN> RUN {
recover tablespace test1 until time = "TO_DATE('02/12/2013 16:58:43',HH24:MI:SS')" auxiliary destination '/u01/tspit/'; }


5.Redirecting an Oracle Restore Using SET NEWNAME
When you redirect a restore for Oracle database 11gR2 or later by using the SET NEWNAME FOR DATABASE, or SET NEWNAME FOR TABLESPACE commands, you must specify variables in the file name to avoid name collisions.

run
{
set newname for database to "/u02/app/oracle/oradata/TST1/%U";
restore database until time="TO_DATE('11/13/2013 01:53:36', 'MM/DD/YYYY HH24:MI:SS')";
switch datafile all;
}
exit;
run {
recover database until scn 7266782191960;
}
exit;

RMAN PERFORMANCE TUNING PARAMETERS

– Parallelism
– Maxpiecesize – Maximum size of each backup piece
– FIlesperset  _ The number of datafiles in each backupset
– Maxopenfiles – Maximum No. of files which can be read from simultaneously
– Multiplexing level
– Asynchronous / Synchronous I/O
– Large pool Size-


If You Fail to Allocate Shared Memory, Set LARGE_POOL_SIZE

  • If LARGE_POOL_SIZE is set, then the database attempts to get memory from the large pool. If this value is not large enough, then an error is recorded in the alert log, the database does not try to get buffers from the shared pool, and asynchronous I/O is not used.
  • If LARGE_POOL_SIZE is not set, then the database attempts to get memory from the shared pool.
  • If the database cannot get enough memory, then it obtains I/O buffer memory from the PGA and writes a message to the alert.log file indicating that synchronous I/O is used for this backup.The formula for setting LARGE_POOL_SIZE is as follows:
    LARGE_POOL_SIZE =  number_of_allocated_channels * 
                       (16 MB + ( 4 *  size_of_tape_buffer )
  • http://oracleinaction.com/tune-rman-i/

11iCLONE


1.     Pre-requisities of ORPXXX2 - Applciation
1) Take the Important Backup files  of the – ORPXXX2  Application tier and Database Tier

2) Create the Directory ORPXXX2_ddmonthyy as below :

$ cd /ORPXXX2/app/Preclone
$ mkdir ORPXXX2_22apr2017
$ cd ORPXXX2_22apr2017
$ pwd
/ORPXXX2/app/Preclone/ORPXXX2_22apr2017

$ mkdir DT(here we are creating the DT directory under /ORPXXX2/app/Preclone/ORPXXX2_22apr2017)
$ cd DT

$pwd - /ORPXXX2/app/Preclone/ORPXXX2_22apr2017
$ mkdir appl comn iAS 806 db (here we are creating appl,comn,IAS,806,db directories)
$ chmod 777 *
$ cd db
$ mkdir rdbms
$ pwd
/ORPXXX2/app/Preclone/ORPXXX2_22apr2017/DT/db

3) Copying the environment files related to ORPXXX2 – Applciation as shown below

$ pwd
/ORPXXX2/app/Preclone/ORPXXX2_22apr2017/DT/appl
$ echo  $APPL_TOP
/ORPXXX2/app/appl
$ cp $APPL_TOP/*.env .
$ cp $APPL_TOP/admin/adovars.env .
$ cp $APPL_TOP/admin/adpltfrm.txt .
$ cp $APPL_TOP/admin/topfile.txt .
$ cp $APPL_TOP/admin/*.xml* .
$ cp $FND_TOP/resource/wf* .
$ cp $FND_TOP/resource/WF* .
$ cp -R $FND_TOP/secure/* .
$ cp $OA_HTML/US/ICXINDEX*.htm .
$ cp $OA_HTML/env.txt .
$ cp -R $MWA_TOP/secure/* .
$ cp $APPL_TOP/admin/adconfig.txt .

$ pwd
/ORPXXX2/app/Preclone/ORPXXX2_22apr2017/DT/appl
$ mkdir oahtml fndtop msc  (here we are creating oahtml,fndtop,msc – directories in location - /ORPXXX2/app/Preclone/ORPXXX2_22apr2017/DT/appl)

$ cp $FND_TOP/admin/template/appsweb*.cfg ./fndtop
$ cp $OA_HTML/bin/appsweb*.cfg ./oahtml
$ cp $MSC_TOP/bin/MSCSLD* ./msc
$ cd ../806
$ cp $ORACLE_HOME/*.env* .
$ cp $TNS_ADMIN/*.ora* .
$ cd ../iAS
$ cp $IAS_ORACLE_HOME/Apache/Apache/bin/apachectl .
$ cp $IAS_ORACLE_HOME/Apache/Apache/bin/apxs .
$ cp $IAS_ORACLE_HOME/Apache/Apache/bin/httpdsctl .
$ cp $IAS_ORACLE_HOME/Apache/modplsql/cfg/cache.cfg .
$ cp $IAS_ORACLE_HOME/network/agent/config/nmxw.ora .
$ cp $TNS_ADMIN/tnsnames.ora* .
$ cp $TNS_ADMIN/listener.ora* .
$ cp $IAS_ORACLE_HOME/*.env .
$ pwd
/ORPXXX2/app/Preclone/ORPXXX2_22apr2017/DT/iAS
$


Here from the above step 1,2,3  - We have completed taking the backup of the ORPXXX2 – Application files






2) Pre-requisities of ORPXXX2 – Database

1) Login to DB – node and check the OS level user as shown below

-bash-3.2$ id
uid=586574(oraogdt2) gid=58657(dbaogdt2)
-bash-3.2$ echo $ORACLE_HOME
/ORPXXX2/oracle/db/11.1.0

-bash-3.2$ cd /ORPXXX2/app/Preclone/ORPXXX2_22apr2017/DT/db ( here we have location already created as per Step 1,2,3- application )

-bash-3.2$ cp $ORACLE_HOME/*.env .
-bash-3.2$ cp $TNS_ADMIN/*.ora .
-bash-3.2$ cp $ORACLE_HOME/appsutil/*.xml .
-bash-3.2$ cp $ORACLE_HOME/dbs/init*.ora .

-bash-3.2$ pwd
/ORPXXX2/app/Preclone/ORPXXX2_22apr2017/DT/db

$ ls -ltr /TSG_ERP_IXDEPOT/eOps/budlink.sh
-rwxrwxrwx   1 68399    ldapuser    2631 Jun 27  2010 /TSG_ERP_IXDEPOT/eOps/budlink.sh
$ cd ../
$ pwd
/ORPXXX2/app/Preclone/ORPXXX2_16april17/DT
$ sh /TSG_ERP_IXDEPOT/eOps/budlink.sh
Purpose: To backup the dblinks from the database as a script
Done

-bash-3.2$ cp /ORPXXX2/app/Preclone/ORPXXX2_11feb16/DT/db/DBNODE_backup.ksh .
NOTE : (here we are copying DBNODE_backup.ksh script from /ORPXXX2/app/Preclone/ORPXXX2_11feb16/DT/db/)

2) Now execute the below script DBNODE_backup.ksh or run the below scripts from DB – node

- DBLINKS AND DBA_DIRECTORIES BAKCUP

spool create_dump_directory.sql
select 'CREATE OR REPLACE DIRECTORY  '||DIRECTORY_NAME||'  AS  '||''''||DIRECTORY_PATH||''''||';' from all_directories;
spool off;


set lines 110;
set pagesize 300;
spool dblink_backup.sql;
SELECT 'create '||DECODE(U.NAME,'PUBLIC','public ')||'database link '||CHR(10)||DECODE(U.NAME,'PUBLIC',Null, U.NAME||'.') ||L.NAME||chr(10)||'connect to ' || L.USERID || ' identified by values  '''||U.PASSWORD||''' using ''' || L.host || ''''||chr(10)||';'TEXT FROM sys.link$ L,sys.user$ U WHERE L.OWNER# = U.USER# ;
spool off;



###############################################################
All configuration files were taken backup under :/ORPXXX2/app/Preclone/ORPXXX2_22apr2017/DT/db/ORPXXX2_BACKUP_22Apr2017
Please compare with cloning document and see carefully if anything is missed.
###############################################################

**** ORACLE_HOME config files ****

initdw.ora
xml
nacdprd1_disvd104_ifile.ora
initnacdprd1_noaq.ora
ORPXXP2_ORPXXP2.xml
ORPXXP2_ORPXXP2.env
ORPXXP2_ORPXXP2_ifile.ora
initORPXXP2_noaq.ora
listener_ifile.ora
sqlnet_ifile.ora
ORPXXP2_ORPXX238P.env
initORPXXX2_clone.ora
initORPXXX2_14mayclone.ora
initORPXXX2_clone11June.ora
initORPXXX2_clone11July.ora
init.ora
bkp13_tnsnames.ora
initORPXXX2.ora
initORPXXX2_clone_21Jan17.ora
listener.ora
tnsnames.ora
sqlnet.ora
ORPXXX2_ORPXX238P.xml
ORPXXX2_ORPXX238P.env
initORPXXX2_noaq.ora
ORPXXX2_ORPXX238P_ifile.ora

******* Backup Scripts *******
control_trace.txt
dblink_backup.sql
create_dump_directory.sql



3)    Bring down the Appliciation and Database  services of the ORPXXX2

Login to application node of ORPXXX2

$cd /ORPXXX2/app/comn/admin/scripts/ORPXXX2_OXXXX3760dp
$sh adstpall.sh apps/****



Here after stopping the services we need to crosscheck the processes related to DT4 as shown in above screenshot.

Login to Database node of ORPXXX2

Stop the listener services related to ORPXXX2

-bash-3.2$ lsnrctl status ORPXXX2
-bash-3.2$ lsnrctl stop ORPXXX2


Stop the database related to ORPXXX2

-bash-3.2$ sqlplus / as sysdba

SQL*Plus: Release 11.1.0.7.0 - Production on Sun Apr 23 13:33:22 2017

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 name,open_mode from v$database;

NAME      OPEN_MODE
--------- ----------
ORPXXX2  READ WRITE

SQL> shut immediate

4.     Dropping the database of ORPXXX2

Here we are dropping the database of ORPXXX2

SQL> startup mount exclusive restrict;


After dropping the database we need to check datafiles,control files, logfiles, tempfiles in below location

/ORPXXX2/dbdata/data1 -> datafiles and control files exists in this location.
/ORPXXX2/dbdata/redo1 -> redo logfiles exists in this location.
/ORPXXX2/dbdata/redo2 -> redo logfiles exists in this location.
/ORPXXX2/dbdata/temp  -> temporary data files exists in this location.


5.     Backup of Production instance – ORPXXP2

Login to database node - ORPXX238P.com (ORPXXX2 DB node)with oraogdp2

username:  oraogdp2
password:   *******

Change the permissions of the datafiles,control files, redo logfiles. Temp files with oraogdp2

cd /ORPXXP2/dbdata/data1
chmod -R 777 *

cd /ORPXXP2/dbdata/redo2
chmod -R 777 *

cd /ORPXXP2/dbdata/redo2
chmod -R 777 *


cd /ORPXXP2/dbdata/temp
chmod -R 777 
*


Note :   /ORPXXP2 is the mount point already got mounted in the ORPXX238P server
                It is recommended you need to change the above permissions using oraogdp2 only, otherwise you will face permission issues.


6.     Copying the files of production backup(ORPXXP2) to ORPXXX2 instance location


on server ORPXX238P.com


username:  oraogdt4
password:    *****



Prod location :          /ORPXXP2/dbdata
Non-prod Location :  /ORPXXX2/dbdata

start VNC server and copy the files from prod location to non-prod location



Login to VNC server ORPXX238P.com:89


nohup cp /ORPXXP2/dbdata/data1/*.* /ORPXXX2/dbdata/data1 &

nohup cp /ORPXXP2/dbdata/redo2/*.* /ORPXXX2/dbdata/redo2 &

nohup cp /ORPXXP2/dbdata/redo1/*.* /ORPXXX2/dbdata/redo1 &

nohup cp /ORPXXP2/dbdata/temp/*.* /ORPXXX2/dbdata/temp &


Below are the screenshot for reference taken from VNC server ORPXX238P.com :11



Once copy completed, crosscheck the count of files using ls –ltr *dbf |wc -l

7.     Database Configuration Steps of ORPXXX2
1. Source the ORACLE_SID with ORPXXP2

-bash-3.2$ export ORACLE_SID=ORPXXP2
-bash-3.2$ echo $ORACLE_SID
ORPXXP2
-bash-3.2$ echo $ORACLE_HOME
/ORPXXX2/oracle/db/11.1.0



2. Startup mount the database using the pfile where db_name=ORPXXP2

- $ ls -ltr initORPXXP2.ora
-rw-r--r--   1 oraogdt2 dbaogdt2   20117 Apr 17  2016 initORPXXP2.ora
$ grep -i dp2 initORPXXP2.ora
db_name                         = ORPXXP2
$ sqlplus / as sysdba

SQL*Plus: Release 11.1.0.7.0 - Production on Sat Apr 22 09:04:30 2017

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

Connected to an idle instance.

SQL> startup mount pfile=initORPXXX2_clone.ora;
ORACLE instance started.

Total System Global Area 3207790592 bytes
Fixed Size                  2119072 bytes
Variable Size             842721888 bytes
Database Buffers         2348810240 bytes
Redo Buffers               14139392 bytes
Database mounted.
SQL> select name , log_mode , open_mode from v$database;

NAME      LOG_MODE     OPEN_MODE
--------- ------------ ----------
ORPXXP2  ARCHIVELOG   MOUNTED

SQL> !hostname
ORPXX238P

SQL> !id
uid=586564(oraogdt2) gid=58656(dbaogdt2)


3. Prepare spool file - "rename_datafile_23apr.sql" to rename the datafile

SQL> select 'alter database rename file '''||name||''' to ''/ORPXXX2/dbdata/data1/'||substr(name,instr(name,'data1')+6)||''';' from v$datafile;


Crosscheck the spool file rename_datafile_23apr.sql in present location where you have executed.

3a. Execute the rename_datafile_23apr.sql in mount state.


3b. Now rename the redo-logfiles related to ORPXXP2.

Below is the screenshot where the /ORPXXP2 is pointing to production.

Here renaming the redo-logfiles with below command

alter database rename file '/ORPXXP2/dbdata/redo2/log06.dbf' to '/ORPXXX2/dbdata/redo2/log06.dbf';

alter database rename file '/ORPXXP2/dbdata/redo1/log05.dbf' to '/ORPXXX2/dbdata/redo1/log05.dbf';

alter database rename file '/ORPXXP2/dbdata/redo2/log04.dbf' to '/ORPXXX2/dbdata/redo2/log04.dbf';

alter database rename file '/ORPXXP2/dbdata/redo1/log03.dbf' to '/ORPXXX2/dbdata/redo1/log03.dbf';

alter database rename file '/ORPXXP2/dbdata/redo2/log02.dbf' to '/ORPXXX2/dbdata/redo2/log02.dbf';

alter database rename file '/ORPXXP2/dbdata/redo1/log01.dbf' to '/ORPXXX2/dbdata/redo1/log01.dbf';

Please crosscheck the redo-logfiles after renaming the datafiles.

Below screenshot for reference:


4. Check the database status and try to open the database as shown in below screenshot

SQL> select * from v$recover_file;

no rows selected

SQL> alter system check datafiles;

System altered.

SQL> alter database open;

Database altered.

8.     Renaming the database from ORPXXP2 to ORPXXX2 (NO ARCHIVELOG mode)

1. Take the backup of control file trace

SQL> alter database backup controlfile to trace as '/ORPXXX2/dbdata/data1/controlfile_22april17.sql';

Database altered.

05:56:38 SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.


-bash-3.2$ cat controlfile_22april17.sql

CREATE CONTROLFILE SET DATABASE "ORPXXX2" RESETLOGS NOARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 5
    MAXDATAFILES 1500
    MAXINSTANCES 8
    MAXLOGHISTORY 4674
LOGFILE
  GROUP 7 '/ORPXXX2/dbdata/redo1/log07.dbf'  SIZE 1536M,
  GROUP 8 '/ORPXXX2/dbdata/redo2/log08.dbf'  SIZE 1536M,
  GROUP 9 '/ORPXXX2/dbdata/redo1/log09.dbf'  SIZE 1536M
-- STANDBY LOGFILE

DATAFILE
  '/ORPXXX2/dbdata/data1/system01.dbf',
  '/ORPXXX2/dbdata/data1/system02.dbf',
  '/ORPXXX2/dbdata/data1/system03.dbf',
  '/ORPXXX2/dbdata/data1/system04.dbf',
  '/ORPXXX2/dbdata/data1/system05.dbf',
  '/ORPXXX2/dbdata/data1/system06.dbf',
  '/ORPXXX2/dbdata/data1/system07.dbf',
  '/ORPXXX2/dbdata/data1/system08.dbf',
  '/ORPXXX2/dbdata/data1/system09.dbf',
  '/ORPXXX2/dbdata/data1/system10.dbf',
  '/ORPXXX2/dbdata/data1/system11.dbf',
  '/ORPXXX2/dbdata/data1/sysaux01.dbf',
  '/ORPXXX2/dbdata/data1/undots01.dbf',
  '/ORPXXX2/dbdata/data1/undots02.dbf',
  '/ORPXXX2/dbdata/data1/undots03.dbf',
  '/ORPXXX2/dbdata/data1/undots04.dbf',
  '/ORPXXX2/dbdata/data1/undots05.dbf',
  '/ORPXXX2/dbdata/data1/undots06.dbf',
  '/ORPXXX2/dbdata/data1/undots07.dbf',
  '/ORPXXX2/dbdata/data1/undots08.dbf',
  '/ORPXXX2/dbdata/data1/undots09.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_ARCHIVE01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_INTERFACE01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_MEDIA01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_MEDIA02.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_NOLOGGING01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_QUEUES01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_QUEUES02.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_QUEUES03.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_QUEUES04.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_QUEUES05.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_QUEUES06.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_QUEUES07.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_QUEUES08.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_SEED01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_SUMMARY01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA02.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA03.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA04.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA05.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA06.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA07.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA08.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA09.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA10.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA11.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA12.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA13.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA14.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA15.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA16.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA17.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA19.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA20.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG02.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG03.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG04.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG05.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG06.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG07.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG08.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG09.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG10.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG11.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG12.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG13.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG14.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG15.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG16.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG17.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG19.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA_LG20.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX02.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX03.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX04.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX05.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX06.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX07.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX08.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX09.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX10.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX11.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX12.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX13.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX_LG01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX_LG02.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX_LG03.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX_LG04.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX_LG05.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_IDX_LG06.dbf',
  '/ORPXXX2/dbdata/data1/ctxd01.dbf',
  '/ORPXXX2/dbdata/data1/discoverer01.dbf',
  '/ORPXXX2/dbdata/data1/dresd01.dbf',
  '/ORPXXX2/dbdata/data1/dresd02.dbf',
  '/ORPXXX2/dbdata/data1/dresrd01.dbf',
  '/ORPXXX2/dbdata/data1/dresrx01.dbf',
  '/ORPXXX2/dbdata/data1/apps_ts_tools01.dbf',
  '/ORPXXX2/dbdata/data1/geog01.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_MEDIA03.dbf',
  '/ORPXXX2/dbdata/data1/APPS_TS_TX_DATA21.dbf',
  '/ORPXXX2/dbdata/data1/owad01.dbf',
  '/ORPXXX2/dbdata/data1/users01.dbf'
CHARACTER SET UTF8
;
Now we have created the control file trace with database name “ ORPXXX2 “

2.  Creating control file of ORPXXX2

Source the ORACLE_SID=ORPXXX2

-bash-3.2$ export ORACLE_SID=ORPXXX2
-bash-3.2$ !env|grep ORACLE~!
ORACLE_SID=ORPXXX2
ORACLE_HOME=/ORPXXX2/oracle/db/11.1.0

Steps for creating control file as shown below

-bash-3.2$ sqlplus / as sysdba

SQL*Plus: Release 11.1.0.7.0 - Production on Sun Apr 23 06:07:03 2017

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

Connected to an idle instance.

SQL> startup nomount
ORACLE instance started.

Total System Global Area 3207790592 bytes
Fixed Size                  2119072 bytes
Variable Size             926607968 bytes
Database Buffers         2264924160 bytes
Redo Buffers               14139392 bytes

SQL> @controlfile_22april17.sql

Control file created.

SQL> select name,open_mode,open_resetlogs from v$database;

NAME                        OPEN_MODE  OPEN_RESETL
--------------------------- ---------- -----------
ORPXXX2                    MOUNTED    REQUIRED




SQL> alter database open resetlogs;

Database altered.

SQL> select name,open_mode,op  log_mode from v$database;

NAME      OPEN_MODE  LOG_MODE
--------- ---------- ------------
ORPXXX2  READ WRITE NOARCHIVELOG

3. Creating temporary tablespace TEMP1

SQL> create temporary tablespace temp1 tempfile '/ORPXXX2/dbdata/temp/temp101.dbf' size 4G;

Tablespace created.

SQL> alter database default temporary tablespace temp1;

Database altered.

SQL>  select name from v$tempfile;

NAME
--------------------------------------------------------------------------------
/ORPXXX2/dbdata/temp/temp101.dbf

SQL> select FILE_NAME,TABLESPACE_NAME from dba_temp_files;

FILE_NAME                                          TABLESPACE_NAME
------------------------------                    -------------------------
/ORPXXX2/dbdata/temp/temp101.dbf           TEMP1

SQL> drop tablespace temp including contents and datafiles;

Tablespace dropped.

SQL> create temporary tablespace temp tempfile '/ORPXXX2/dbdata/temp/temp01.dbf' size 5G;

Tablespace created.

SQL> alter tablespace temp add tempfile '/ORPXXX2/dbdata/temp/temp02.dbf' size 5G;

Tablespace altered.

SQL> alter tablespace temp add tempfile '/ORPXXX2/dbdata/temp/temp03.dbf' size 5G;

Tablespace altered.

SQL> alter database default temporary tablespace temp;

Database altered.

SQL> drop tablespace temp1 including contents and datafiles;

Tablespace dropped.




4. Start the listener related to ORPXXX2

-bash-3.2$  lsnrctl start ORPXXX2

5. Check the FND NODES status

Connect to APPS user and clean the production node entries in ORPXXX2

set lines 200
col host_name for a11
col node_name for a11
col database for a10
col concmgr for a9
col forms for a7
col webserver for a11
col admin for a7
select
 NODE_NAME,
 decode(STATUS,'Y','ACTIVE','INACTIVE') Status,
 decode(SUPPORT_CP,'Y', 'YES','NO') ConcMgr,
 decode(SUPPORT_FORMS,'Y','YES', 'NO') Forms,
 decode(SUPPORT_WEB,'Y','YES', 'NO') WebServer,
 decode(SUPPORT_ADMIN, 'Y','YES', 'NO') Admin,
 decode(SUPPORT_DB, 'Y','YES', 'NO') Database
 from fnd_nodes
 where node_name != 'AUTHENTICATION' order by NODE_NAME;


SQL> exec fnd_conc_clone.setup_clean;

PL/SQL procedure successfully completed.

SQL> commit;
Commit complete.

select
 NODE_NAME,
 decode(STATUS,'Y','ACTIVE','INACTIVE') Status,
 decode(SUPPORT_CP,'Y', 'YES','NO') ConcMgr,
 decode(SUPPORT_FORMS,'Y','YES', 'NO') Forms,
 decode(SUPPORT_WEB,'Y','YES', 'NO') WebServer,
 decode(SUPPORT_ADMIN, 'Y','YES', 'NO') Admin,
 decode(SUPPORT_DB, 'Y','YES', 'NO') Database
 from fnd_nodes
  where node_name != 'AUTHENTICATION' order by NODE_NAME;

no rows selected






Strat lisnter and Run autoconfig on Database Node

-bash-3.2$ cd  echo $CONTEXT_FILE
/ORPXXX2/oracle/db/11.1.0/appsutil/ORPXXX2_ORPXX238P.xml
-bash-3.2$ cd /ORPXXX2/oracle/db/11.1.0/appsutil/
-bash-3.2$ cp ORPXXX2_ORPXX238P.xml ORPXXX2_ORPXX238P.xml_23apr2017


$ lsnrctl start $ORACLE_SID

LSNRCTL for Solaris: Version 11.1.0.7.0 - Production on 22-APR-2017 10:08:29

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

Starting /ORPXXX2/oracle/db/11.1.0/bin/tnslsnr: please wait...

TNSLSNR for Solaris: Version 11.1.0.7.0 - Production
System parameter file is /ORPXXX2/oracle/db/11.1.0/network/admin/ORPXXX2_ORPXX238P/listener.ora
Log messages written to /ORPXXX2/oracle/db/11.1.0/log/diag/tnslsnr/ORPXX238P/ORPXXX2/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROCORPXXX2)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORPXX238P.com)(PORT=1532)))

Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROCORPXXX2))
STATUS of the LISTENER
------------------------
Alias                     ORPXXX2
Version                   TNSLSNR for Solaris: Version 11.1.0.7.0 - Production
Start Date                22-APR-2017 10:08:29
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /ORPXXX2/oracle/db/11.1.0/network/admin/ORPXXX2_ORPXX238P/listener.ora
Listener Log File         /ORPXXX2/oracle/db/11.1.0/log/diag/tnslsnr/ORPXX238P/ORPXXX2/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROCORPXXX2)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORPXX238P.com)(PORT=1532)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "ORPXXX2" has 1 instance(s).
  Instance "ORPXXX2", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully


RUN AUTO CONFIG

-bash-3.2$ cd /ORPXXX2/oracle/db/11.1.0/appsutil/scripts/ORPXXX2_ORPXX238P
-bash-3.2$ sh adautocfg.sh
Enter the APPS user password:





9.       Application Clone Steps

1. Change the APPLSYS and SYSADMIN password.

$ echo $TWO_TASK
ORPXXX2
$ which FNDCPASS
/ORPXXX2/app/appl/fnd/11.5.0/bin/FNDCPASS

$ FNDCPASS apps/<prod_pwd> 0 Y system/<system password>  SYSTEM APPLSYS <NEW pwd>
Log filename    : L1561015.log

Report filename : O1561015.out

Known issue while changing APPS password:




$ FNDCPASS apps/<ORPXXX2_apps_pwd> 0 Y system/<system pwd>  USER SYSADMIN <NEW pwd>

Log filename    : L1561016.log

Report filename : O1561016.out

$ cat L1561016.log
+---------------------------------------------------------------------------+
Application Object Library: Version : 11.5.0

Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.

 module:
+---------------------------------------------------------------------------+
Current system time is 23-APR-2017 08:16:19
+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is 23-APR-2017 08:16:22

+---------------------------------------------------------------------------+

2. Run autoconfig on Application Tier

$ echo $TWO_TASK
   ORPXXX2
$ cd /ORPXXX2/app/appl/admin/

$ cp ORPXXX2_OXXXX3760dp.xml ORPXXX2_OXXXX3760dp.xml_bkp23apr17

$ cd /ORPXXX2/app/comn/admin/scripts/ORPXXX2_OXXXX3760dp

$ sh adautocfg.sh
Enter the APPS user password :

The log file for this session is located at: /ORPXXX2/app/appl/admin/ORPXXX2_OXXXX3760dp/log/04230826/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.
        Using APPL_TOP location     : /ORPXXX2/app/appl
        Classpath                   : /ORPXXX2/app/comn/jdk160/jre/lib/rt.jar:/ORPXXX2/app/comn/jdk160/lib/dt.jar:/ORPXXX2/app/comn/jdk160/lib/tools.jar:/ORPXXX2/app/comn/java/appsborg2.zip:/ORPXXX2/app/comn/java

        Using Context file          : /ORPXXX2/app/appl/admin/ORPXXX2_OXXXX3760dp.xml

Context Value Management will now update the Context file

        Updating Context file...COMPLETED

       

Bring up the Application services related to ORPXXX2

$cd /ORPXXX2/app/comn/admin/scripts/ORPXXX2_OXXXX3760dp
$sh adstrtal.sh apps/****




10.   Post clone steps

SQL> select * from global_name;

GLOBAL_NAME
--------------------------------------------------------------------------------
ORPXXX2.DRESSER.COM

-bash-3.2$ cd /ORPXXX2/app/Preclone/ORPXXX2_22apr2017/DT/db/ORPXXX2_BACKUP_22Apr2017
-bash-3.2$ ls -ltr
total 34


SQL>
SQL> set heading on
col DB_LINK format a50
set linesize 150
col HOST format a20
select owner,db_link,HOST,created from dba_db_links;

please use the below postclone document for DT2






11.   Sanity Checks
1. Submit Active users and check the status


2. Create front end users and assign System Administrator responsibility and update via mail.