Oracle 9i AS Management

Oracle 9i AS Management

•Installation
Instance: ksd1/go2ksd1
Default Http ports
7777
4443
Consols port
1810
default user ias_admin/go2ksd1

•Test oc4j
http://localhost:7777/j2ee/
http://localhost:7777/j2ee/servlet/HelloWorldServlet

§em
emctl start
emctl stop
emctl status
•Active em entry
/var/opt/oracle/emtab

•Deinstall ias
delete
/tmp/emtab
entry in /etc/oratab
/etc/oratab
some loc file

•Create oc4j instance
From console
Create oc4j Instance
->enter name
->click Create

•Need to restart server
-modified
rmi
data source
security configuration

•Reload xml file
dcmctl updateconfig -ct oc4j

•dcmctl

Target Option
-cluster (cl)
-instance (-i)
-application (-a)
-component (-co)
-componentType (-ct) [ohs|oc4j]

Universal Option
-debug (-d)
-logdir (-l)
-oraclehome (-o)
-timeout (-t)
-verbose (-v)

Passing Params to JVM
ORACLE_DCM_JVM_ARGS=”-DhttpProxy.host=me.com -DhttpProxy.port=myport”

Instance
>dcmctl [listInstances|which instanes ]
>dcmctl whichInstance
>dcmctl destroyInstance -i ksd1
>dcmctl resyncInstance [-force] [-i ksd1]

Component
>dcmctl listComponents
>dcmctl getComponentType -co oc4j_jml2 -i ksd1
>dcmctl createComponent -ct oc4j -co oc4j_jml2
>dcmctl removeComponent -co oc4j_jml2
>dcmctl updateConfig -ct [oc4j [, ohs]

Start/Stop
>dcmctl [start | stop | restart | getState] -i \
app1.my.com
-ct oc4j -v

>dcmctl shutdown

Deploy App
>dcmctl [deployApplication | redeployApplication] -file name -a app_name [-co comp_name] [-rc root_context]
•Deploy war
dcmctl deployApplication -f olcrpt.war -a olcrpt -rc /olcrpt -d -v

>dcmctl undeployApplication -a name [-co name]
>dcmctl listApplications -co name [-i name | -cl name]
>dcmctl validateEarFile -file name

Backup
>dcmctl saveInstance -dir dest_dir
>dcmctl restoreInstance -dir save_dir
>dcmctl resetFileTransaction

>!! repeat command

Use Command File
>dcmctl shell -f file_name

•Oracle tab files
/var/opt/oracle/emtab
/var/opt/oracle/oratab

Opmnctl
Status
opmnctl status
Restart
opmnctl restartproc gid=web_elmsgold

This entry was posted in oracle. Bookmark the permalink.