Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

1/12/2014

Online DBA Support | Oracle Application Basic Maintenance Procedure

Online DBA Support


ORACLE DATABASE COMMUNITY Home Contact
Search

How to remove Oracle Streams from your database

10g DB Installation on Solaris x86

Categories

Apex

Oracle Application Basic Maintenance Procedure


By Nazim On November 14, 2012 Add Comment

Backup & Recovery Disaster Recovery Migrate Troubleshooting Uncategorized Upgrade

Oracle Application Maintenance Procedure Overview :This document will take you through the basic administration of the application that an APPS DBA should know. We have tried to cover all the best possible tasks used on daily basis to monitor and maintain the application. Table on Contents : Ad Administration Starting and Stopping application services Autoconfig Other Activities

Archives

November 2013 September 2013 August 2013 June 2013 February 2013 January 2013 December 2012 November 2012 October 2012 August 2012 July 2012 May 2012 January 2012 December 2011 October 2011 September 2011 August 2011 July 2011 June 2011 May 2011 March 2011 February 2011 January 2011 December 2010 August 2010 June 2010

Using adadmin ( Application database administration)


Application administration can be done using Ad Administration (adadmin). Login to the application as the appl user and source the environment file ./APPS_host.env $ adadmin --- Requires system and apps user password It will prompt for system and apps password. AD code level : [ A. 6] AD Administration Main Menu -------------------------------------------------1. Generate Applications Files menu 2. Maintain Applications Files menu 3. Compile/Reload Applications Data base Entities menu 4. Maintain Applications Database Entities menu 5. Change Maintenance Mode 6. Exit AD Adminisitration Enter your choice [ 6] : General Applications File menu This options helps you to generates forms,reports,message and JAR files.

Calendar

November 2012 M T W T F S S

1 5 12 19 26 6 13 20 27 Oct
Meta

2 9 16 23 30

3 10 17 24

4 11 18 25

7 14 21 28

8 15 22 29

Dec

a )G e n e r a t em e s s a g ef i l e s b )G e n e r a t ef o r mf i l e s c )G e n e r a t er e p o r tf i l e s d )G e n e r a t ep r o d u c tJ A Rf i l e s

Register Log in Entries (RSS)

Maintain Applications Files This options helps you to execute the following

http://www.onlinedbasupport.com/2012/11/14/oracle-application-basic-maintenance-procedure/

1/7

1/12/2014

Online DBA Support | Oracle Application Basic Maintenance Procedure

a )R e l i n kO r a c l ea p p l i c a t i o n sR e l i n k so r a c l ea p p l i c a t i o n se x e c u t a b l ep r o g r a m sw i t hO R A C L Es e r v e rl i b r a r i e s b )C o p yf i l e st od e s t i n a t i o n c )C o n v e r tc h a r a c t e r s e t d )M a i n t a i ns n a p s h o ti n f o r m a t i o n e )C h e c kf o rm i s s i n gf i l e s

Compile/Reload Applications Database Entities menu Helps in compiling or reloading database entities

a )C o m p i l eA P P Ss c h e m a b )C o m p i l em e n ui n f o r m a t i o n c )C o m p i l ef l e x f i e l d s d )R e l o a dJ A Rf i l e st od a t ab a s e

Maintain Applications Database Entities menu Helps in verifying the intergrity of the APPS schema and also recreate permissions for APPS schema

a )V a l i d a t eA P P Ss c h e m a b )R e-c r e a t eg r a n t sa n ds y n o n y m sf o rA P P Ss c h e m a c )M a i n t a i nm u l t i-l i n g u a lt a b l e s d )C h e c kD U A Lt a b l e

Change Maintenance Mode Controls the system downtime period by managing user logons

a )E n a b l eM a i n t e n a n c eM o d e b )D i s a b l eM a i n t e n a n c eM o d e

Stopping and Starting Application and Database services

Stop/Start all the application services


Login to Application as application user (for e.g applprod,applmgr) UNIX ENVIRONMENT su applmgr cd $INST_TOP/admin/scripts/ sh adstpall.sh apps/----- To Stop all the application services sh adstrtal.sh apps/----- To Start all the application services WINDOWS ENVIRONMENT cd %INST_TOP%\admin\scripts adstpall.cmd apps/-------- To Stop all the application services adstrtal.cmd apps/------- To Start all the application services Stop/Start single application services Stop the Apache service

c da d m i n / s c r i p t s U N I Xa d a p c c t l . s hs t o p / s t a r t W I Na d a p c c t l . c m ds t o p / s t a r t

Startup/Stop HTTP

L o gf i l eL o c a t i o n-$ L O G _ H O M E / o r a / 1 0 . 1 . 3 / A p a c h ed i r e c t o r y : s s l _ e n g i n e _ l o g a c c e s s _ l o g . 9 9 9 9 9 9 9 9 9 e r r o r _ l o g . 9 9 9 9 9 9 9 9 9 S t o pt h eF o r m sS e r v i c e

http://www.onlinedbasupport.com/2012/11/14/oracle-application-basic-maintenance-procedure/

2/7

1/12/2014
c d / a d m i n / s c r i p t s U N I Xa d f o r m s c t l . s hs t o p / s t a r t W I Na d f o r m s c t l . c m ds t o p / s t a r t

Online DBA Support | Oracle Application Basic Maintenance Procedure

Startup/Stop forms OC4J

L o g i l eL o c a t i o ns a m ea sO A C O R E C T L . S H U N I Xa d o a f m c t l . s hs t o p / s t a r t W I Na d o a f m c t l . c m ds t o p / s t a r t

Startup/Stop oafm OC4J Oracle Application Fusion Middleware

L o g i l eL o c a t i o ns a m ea sO A C O R E C T L . S H

U N I Xa d o a c o r e c t l . s hs t o p / s t a r t

W I Na d o a c o r e c t l . c m ds t o p / s t a r t

Startup/Stop oacore OC4J

L o gf i l eL o c a t i o n-$ L O G _ H O M E / o r a / 1 0 . 1 . 3d i r e c t o r y : -

o p m n / O C 4 J ~ o a c o r e ~ d e f a u l t _ g r o u p ~ 1

o p m n / o a c o r e _ d e f a u l t _ g r o u p _ 1 / o a c o r e s t d . e r r

o p m n / o a c o r e _ d e f a u l t _ g r o u p _ 1 / o a c o r e s t d . o u t

j 2 e e / o a c o r e / o a c o r e _ d e f a u l t _ g r o u p _ 1 / j m s . l o g

j 2 e e / o a c o r e / o a c o r e _ d e f a u l t _ g r o u p _ 1 / a p p l i c a t i o n . l o g

j 2 e e / o a c o r e / o a c o r e _ d e f a u l t _ g r o u p _ 1 / r m i . l o g

j 2 e e / o a c o r e / o a c o r e _ d e f a u l t _ g r o u p _ 1 / s e r v e r . l o g

j 2 e e / o a c o r e / o a c o r e _ d e f a u l t _ g r o u p _ 1 / g l o b a l a p p l i c a t i o n . l o g

j 2 e e / o a c o r e / o a c o r e _ d e f a u l t _ g r o u p _ 1 / l o g . x m l

j 2 e e / o a c o r e / o a c o r e _ d e f a u l t _ g r o u p _ 1 / s y s t e m a p p l i c a t i o n . l o g

U N I Xa d o p m n c t l . s hs t o p / s t a r t

W I Na d o p m n c t l . c m ds t o p / s t a r t

Startup/Stops just the OPMN service

L o gf i l eL o c a t i o n-$ L O G _ H O M E / o r a / 1 0 . 1 . 3 / o p m nd i r e c t o r y

opmn.dbg opmn.out opmn.log UNIX adcmctl.sh stop/start apps/appspasswd Requires apps password WIN adcmctl.cmd stop/start apps/appspasswd Requires apps password

http://www.onlinedbasupport.com/2012/11/14/oracle-application-basic-maintenance-procedure/

3/7

1/12/2014
Startup/Stop Concurrent Programs

Online DBA Support | Oracle Application Basic Maintenance Procedure

U N I Xa d a l n c t l . s hs t o p / s t a r t

W I Na d a l n c t l . c m ds t o p / s t a r t

Startup/Stop APPS LISTENER Login to Database as dba user (for e.g oraprod,oracle)

U N I XE N V I R O N E M N T

s uo r a c l e

c d$ O R A C L E _ H O M E / a p p s u t i l / s c r i p t s / S I D _ H O S T N A M E

s ha d d b c t l . s hs t o pi m m e d i a t e-T oS t o pt h ed a t a b a s e

s ha d d l n c t l . s hs t o p T os t o pt h el i s t e n e r

s ha d d b c t l . s hs t a r t-T os t a r tt h ed a t a b a s e

s ha d d l n c t l . s hs t a r t T os t a r tt h el i s t e n e r

W I N D O W SE N V I R O N E M N T

c d% O R A C L E _ H O M E % \ a p p s u t i l \ s c r i p t s \ S I D _ H O S T N A M E

a d d b c t l . c m ds t o pi m m e d i a t e-T os t o pt h ed a t a b a s e

a d d l n c t l . c m ds t o p T os t o pt h el i s t e n e r

a d d b c t l . c m ds t a r t-T os t a r tt h ed a t a b a s e

a d d l n c t l . c m ds t a r t T os t a r tt h el i s t e n e r

P.N : While starting the services you should first start the database and database listener and then start the application services.

Using Autoconfig to update the Application and Database


AutoConfig is a configuration tool that automates the configuration of an Oracle Applications system Information required to configure the application is stored in a repository called Application CONTEXT(SID_HOST.xml) One context file exists for application tier and one for database tier. Autconfig uses information from this context file to configure all the files across the application and database system. R12 is by default Autoconfig enabled To verify if 11i system is Autoconfig enabled go to $AD_TOP/bin and execute adcfginfo.sh contextfile=

Running Autconfig on Database Tier


Login as database user ( for.eg oraprod,oracle)

U N I XE N V I R O N M E N T s uo r a c l e . / S I D _ H O S T N A M E . e n v c d$ O R A C L E _ H O M E / a p p s u t i l / s c r i p t s / S I D _ H O S T N A M E a d a u t o c f g . s h-R e q u i r e sa p p sp a s s w o r d

http://www.onlinedbasupport.com/2012/11/14/oracle-application-basic-maintenance-procedure/

4/7

1/12/2014
W I N D O W SE N V I R O M E N T c d \ a p p s u t i l \ s c r i p t s \ S I D _ H O S T N A M E a d a u t o c f g . c m dR e q u i r e sa p p sp a s s w o r d

Online DBA Support | Oracle Application Basic Maintenance Procedure

Running Autoconfig on Application Tier


Login as application user (for e.g : applprod,applmgr)

U N I XE N V I R O M E N T s ua p p l m g r . / A P P S _ H O S T . e n v c d / a d m i n / s c r i p t s a d a u t o c o n f i g . s h-R e q u i r e sa p p sp a s s w o r d W I N D O W SE N V I R O M E N T c d% I N S T _ T O P % \ a d m i n \ s c r i p t s a d a u t o c f g . c m d-R e q u i r e sa p p sp a s s w o r d

Review the Autconfig logfile for errors


A p p l i c a t i o n / a d m i n / l o g / D a t a b a s e / a p p s u t i l / l o g / S I D _ H O S T N A M E /

Rollback Autoconfig
A p p l i c a t i o n / a d m i n / o u t / U N I Xr e s t o r e . s h W I N-r e s t o r e . c m d D a t a b a s e / a p p s u t i l / o u t / S I D _ H O S T N A M E / U N I X-r e s t o r e . s h W I Nr e s t o r e . c m d

OTHER ACTIVITIES
To check the file version strings -a| grep '$Header' Compile single Report or Forms #UNIX Forms Compile #compile_forms.sh for i in `ls *.fmb` do echo Compiling Form $i .... frmcmp_batch.sh userid=apps/appspass@SID batch=yes module=$i module_type=form compile_all=yes window_state=minimize done #UNIX COMPILE REPORTS #compile_rep.sh for i in `ls *.rdf` do echo Compiling Report $i ... rwconverter.sh userid=apps/appspasswd@SID batch=yes source=$i stype=rdffile dtype=repfile overwrite=yes compile_all=yes done #WINDOWS COMPILE FORMS #compile_forms.bat cls

http://www.onlinedbasupport.com/2012/11/14/oracle-application-basic-maintenance-procedure/

5/7

1/12/2014
Echo compiling Forms....

Online DBA Support | Oracle Application Basic Maintenance Procedure

for %%f IN (*.fmb) do frmcmp userid=scott/tiger@v11G module=%%f batch=yes module_type=form compile_all=yes window_state=minimize ECHO FINISHED COMPILING #WINDOWS COMPILE REPORT #compile_report.bat cls Echo compiling Report ..... for %%f IN (*.rdf) do rwconverter userid=scott/tiger@v11G batch=yes source=% %f stype=rdffile DTYPE=REPFILE compile_all=yes OVERWRITE=yes logfile=log.txt ECHO FINISHED COMPILING

SHA RE

Tw eet

Like

0 comments Sign in

+ Follow

Post comment

Sort: Newest | Oldest

About

Contact

Groups

Activity

0
Tw eet

0
Like

http://www.onlinedbasupport.com/2012/11/14/oracle-application-basic-maintenance-procedure/

6/7

1/12/2014

Online DBA Support | Oracle Application Basic Maintenance Procedure

0
Share

http://www.onlinedbasupport.com/2012/11/14/oracle-application-basic-maintenance-procedure/

7/7

You might also like