Você está na página 1de 4

Company: EMERIO Corp

Client: JP Morgan
Duration: Nov 2008 - till date.
Role: APP�S D.B.A.

complete discription of c,d,g drivers of adpatch

Company: Beacon Software, Hyderabad.


Duration: Sep 2006 - Sep 2008.
Role: APPS D.B.A

Company: Choice Solutions, Hyderabad.


Duration: Nov 2003 - May 2006.
Role: D.B.A.

126. What is rapid clone?


Ans : Rapid Clone is the new cloning utility introduced in Release 11.5.8. Rapid
Clone leverages the new installation
and configuration technology utilized by Rapid Install

127. How do I determine if my system is rapid clone enabled?


Ans : First, verify that your system is AutoConfig enabled. Then, verify that you
have applied the latest Rapid Clone patch.

128. Explain the cloning process?


Ans :
1. Run adpreclone as applmgr and oracle user on source
Perl adpreclone.pl dbTier as oracle user
Perl adpreclone.pl appsTier as applmgr user
2. Take the cold/hotbackup of source database
3. Copy the five directories <prod>appl,<prod>comn,<prod>ora , <prod>db,<prod>data
to target
4. Rename the directories, and change the permisssion
5. Set the inventory in oraInst.loc
6. Run perl adcfgclone.pl dbTier as oracle user,if the backup type is cold
7. If the backup type is hotbackup then
Perl adcfgclone.pl dbTechStack.
Create the control file on target from the control script trace file from source
Recover the database

Alter database open resetlogs


8. Run autoconfig with the ports changed as per requirement in xml.

9. Run perl adcfgclone.pl appsTier as applmgr


10. Run autoconfig with the ports changed as per requirement in xml.

45. How autoconfig will create env and configuration files?


Ans: Autoconfig will go to each and every top template directory take the
templates from there and fill
the values from xml file and create the required files.
46. In how many phases autoconfig will run?
Ans : Autoconfig will run in 3 phases.
1.INIT � Instantiate the drivers and templates
2.SETUP � Fill the templated with values from xml and create files
3.PROFILE � Update the profile values in database.

47. What is the location of adconfig log file?


Ans : APPL_TOP/admin/<context_name>/log/<timestamp directory>

48. Is it possiable to restore a autoconfig run?


Ans : Partially. Adconfig will create a restore.sh script at
$APPL_TOP/admin/<context_name>/out/<timestamp directory>.
This restore.sh will copy the backed up files before autoconfig run to its
original locations. But the profile values updated
in the database can�t be restored back.

49. How to run autoconfig in test mode?


Ans : adchkcfg.sh script at AD_TOP/bin. This script will run autoconfig in test
mode and create the difference file
which tells us what is going to change , when u actually run autoconfig.

50. How to find autoconfig is enabled or not for database?


Ans: If we have appsutil directory under RDBMS_ORACLE_HOME

51. When a patch delivers java files what extra file u will get when u unzip the
patch, other then u r dirver and readme files?
Ans : j<patch_number>.zip

52. What is apps.zip/appsbrog2.zip file?


Ans : apps.zip/appsbrog2.zip is the patchable archive of all java class files
required for oracle application.
Apps.zip was used to old application version, but from 11.5.8 onwards its
appsbrog2.zip

53. What is the location of apps.zip/appsbrog2.zip?


Ans : AU_TOP/java and JAVA_TOP

54. What is for �validating apps schema� option in adadmin?


Ans: It will check for the corrupted objects in apps schema

55. What is �compile apps schema� option in adadmin?


Ans : It will compile the invalid database objects.
56. How to find invalid objects in database?
Ans : select count(*) from dba_objects where status=�INVALID�;

SQL> startup
ORACLE instance started.

Total System Global Area 251658240 bytes


Fixed Size 788368 bytes
Variable Size 145750128 bytes
Database Buffers 104857600 bytes
Redo Buffers 262144 bytes
Database mounted.
Database opened.

How to calculate the approximate size of the SGA (System Global Area)
It is very difficult and time-consuming process to find the exactly SGA size based
on values of init.ora parameters. It is difficult because of different port
specific sizes of data structures that are allocated in the SGA.

It is time consuming because there are so many parameters that influence the SGA
size.

For example, any parameter that configures a number of resources, such as


PROCESSES and SESSIONS, will have an impact on the SGA size. SGA size information
displayed upon startup of the database. You can display it by using svrmgrl or
sqlplus.

Here are few examples to find the SGA in various oracle versions.

In Oracle 8.0.X - svrmgrl connect internal show sga In Oracle 8.1.X - svrmgrl or
sqlplus /nolog connect internal show sga In Oracle 9.X - sqlplus connect sys as
sysdba show sga What are different sub-divisions of the SGA?

Let?s take an sample output from svrmgrl (SHOW SGA)

Total System Global Area 23460696 bytes

Fixed Size 72536 bytes

Variable Size 22900736 bytes

Database Buffers 409600 bytes

Redo Buffers 77824 bytes

Total System Global Area : - Total in bytes of all the sub-divisions that makes up
the SGA.

Fixed Size: Fixed size contains general information about the state of the
database and the instance, which the background processes need to access. This
does not store user data. Usually this area is less than 100k in size.

Variable Size: This part is influenced by the following init.ora parameters.


shared_pool_size large_pool_size java_pool_size Database Buffers:

This holds data blocks copies that are read from datafiles and can be calculated
by using following formula. size = db_block_buffers * block size Redo Buffers:
This is another buffer in the SGA that holds information about changes made to the
database.

Approximating size calculation of the SGA

In 8.0.X :Use the following formula. ((db_block_buffers * block size) +


(shared_pool_size + large_pool_size + log_buffers) + 1MB
In 8.1.X : Use the following formula. ((db_block_buffers * block size) +
(shared_pool_size + large_pool_size + java_pool_size + log_buffers) + 1MB

In 9.X : To approximate size of the SGA (Shared Global Area), use following
formula: db_cache_size + db_keep_cache_size + db_recycle_cache_size +
db_nk_cache_size + shared_pool_size + large_pool_size + java_pool_size +
log_buffers + 1mb

Você também pode gostar