WARNING: This web is not used anymore. Please use PDBService.DeployWebApps instead! |
This document describes how to use a script that sets up the Oracle 9iAS and
deploy the EDG Local Replica Catalogue (LRC) and EDG Replica Metadata Catalogue
(RMC)
web services (version 2.x).
Content :
The scripts are in CERN's CVS system in lcg-orat1 project under the <font face="Courier New, Courier, mono">Applications/RLS/as-deployment directory.
It is assumed that Oracle9i Application Server Release 2 (9.0.3) is correctly configured and running normally . Also the $ORACLE_HOME environment variable should be set.
The script to do a deployment is called 'deploy-webapps'. There are two different usage options:
The usage is:
<font face="Courier New, Courier, mono">
$usage: ./deploy-webapps --version=VERSION --lxuser=USER --vo=VO [--lrc --lrcdbusername=DBUSERNAME --lrcdbpassword=DBPASSWORD] [--rmc --rmcdbusername=DBUSERNAME --rmcdbpassword=DBPASSWORD] [--db_host=DBHOSTNAME --sid=DBSID] [--stop] [--app_only] Options: version version to be deployed lxuser your login in lxplus vo name of the virtual organization (atlas, cms, ...) lrc deploy LRC - local replica catalog lrcdbusername username to connect database that hosts LRC lrcdbpassword password to connect database that hosts LRC rmc deploy RMC - replica metadata catalog rmcdbusername username to connect database that hosts RMC rmcdbpassword password to connect database that hosts RMC db_host hostname of the database server of LRC and RMC sid SID of the database of LRC and RMC stop stop the server while deploying applications app_only only adds new application to VO (does not create container or data-sources) Example (not following the standard username/password convention): ./deploy-webapps --version=2.0.2 --lxuser=manjo --vo=atlas --lrc --lrcdbusername=atlas1 --lrcdbpassword=atlasp1 --rmc --rmcdbusername=atlasrmc --rmcdbpassword=atlasprmc --db_host=lxshare00d --sid=db1 Example (App only) : ./deploy-webapps --version=2.0.2 --lxuser=manjo --vo=atlas --lrc --rmc --app_only
2.5 Note:
Scripts to do undeployment of web applications are provided as well. They not only do the undeployment from the container via dcmctl, but also remove log configuration files, data-source descriptions, VO container, etc... They are in the same directory as the deployment script (Applications/RLS/as-deployment).
The usage is:
<font face="Courier New, Courier, mono">
usage: ./undeploy-webapps --version=VERSION --vo=VO [--lrc] [--rmc] [--app_only] Options: version version to be deployed vo name of the virtual organization (atlas, cms, ...) lrc undeploy LRC - local replica catalog rmc undeploy RMC - replica metadata catalog app_only only removes web applications from VO (does not remove container or data-sources) Example (not following the standard username/password convention): ./undeploy-webapps --version=2.2.1 --vo=atlas --lrc --rmc Example (App only) : ./undeploy-webapps --version=2.2.1 --vo=atlas --lrc --rmc --app_only
In case you get any "ADM-xxxxxx" error and the validation of the applications is not succeed, you might need to repair the Oracle9 iAS before running again the scripts.
3.1 Run dcmctl updateconfig -d -v
If you get an error, then probably there is an inconsistency between the repository and the configuration files. The better solution is to create consistency with all the existing containers. To get a list of existing containers run dcmctl getstate -v .
To have consistency among the containers, check the name of directories in: $ORACLE_HOME/j2ee/ and the file $ORACLE_HOME/opmn/conf/opmn.xml . They should have the same entries and ,if not, either:
After this, run again the dcmctl updateconfig -d -v command and hopefully the error is corrected. Then you can make delete the container (as is not correctly configured) as explained in step 3.2 and install again.
If you don't get an error, then the HTTP Server should be stopped. To start it, run dcmctl start -ct ohs and try the validation again.
3.2 Miscellaneous operations
In this section it' s listed a set of commands that can be used to correct the server after a problem: