Вы находитесь на странице: 1из 3

Source Instance:

Database Side:

1: Backup Control file to Trace on Source Database

SQL> alter database backup controlfile to trace;

2. Pull the Datafile/tempfile/logfile details from Source Database

SQL> select name from v$datafile;


SQL> select name from v$tempfile;
SQL> select * from v$logfile;
SQL> select * from v$controlfile;

3. Check Archive Log mode on Source

SQL> archive log list;

4. Check Listener Status on Source

$ lsnrctl status <Listener_Name>

5. Apex (XDB) Port Check:

>>Command to check the HTTP port

SQL> SELECT DBMS_XDB.GETHTTPPORT FROM DUAL;

>>Command to Set the port

SQL> EXEC DBMS_XDB.SETHTTPPORT(8080);

6. Shutdown Source Database and Listener

SQL> shutdown immediate

$ lsnrctl stop <Listener Name>

7. Tar Backup of Datafiles

8. Tar Backup of ORACLE_HOME, Init File, Control File(Resetlog, noarchivelog


portion), tnsnames.ora, listener.ora

9. Transfer ORACLE_HOME and DATAFILE Backup to Source Instance.

Application Side

10. Transfer apache-tomcat-7.0.75* and jdk1.8.0_121* Directories from Source


Tomcat User Home Directory to Target Tomcat User Home Directory
Refer Doc => Apache tomcat installation.docx

Target Instance:

** Make sure smtp service is stopped in target host to avoid notifications from
cloned instance ***

OS Side :

- Check sendmail queue - mailq


- Sendmail Service : service sendmail status/start/stop

Database Side

11. Untar ORACLE_HOME and DATAFILES

12. Modify the control file (Resetlog, noarchivelog portion), init file,
tnsnames.ora, listener.ora as per target environment

13. Startup Database in Nomount mode with pfile

14. Run Control File : @controlfile.sql / make sure DB is started in mount


mode

15. Open Database in resetlogs : SQL> alter database open resetlogs;

16. Verify the ACLs - Ldap Authentication ACL(Ldap Authentication requires


for Joss login) and PowerUsers (notification ACL)

Refer Docs : ACL creation for LDAP.DOCX & ACL creation for send mail.docx

SQL> select acl, principal from dba_network_acl_privileges;


SQL> select HOST,LOWER_PORT,UPPER_PORT,ACL from dba_network_acls;

Drop ACL:

SQL>
BEGIN
DBMS_NETWORK_ACL_ADMIN.DROP_ACL(
acl => 'ldap_acl_file.xml');
END;
/

17. Set TNS_ADMIN Variable and Configure and start the Listener.

DB Part is Done :-)

Application Side

18. Configure .bash_profile for tomcat user, set environment as below:

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
export PATH
export JAVA_HOME=/home/tomcat/jdk1.8.0_121
export CATALINA_HOME=/home/tomcat/apache-tomcat-7.0.75
export CATALINA_BASE=$CATALINA_HOME

19. Make the chnages(Hostname,Port,Utimes schema password) in the file


JasperReportsIntegration.xml

Location : /home/tomcat/apache-tomcat-
7.0.75/conf/Catalina/localhost/JasperReportsIntegration.xml

20. Start Apache tomcat service

cd /home/tomcat/apache-tomcat-7.0.75/bin
sh startup.sh

ps -ef | grep apache

Вам также может понравиться