Home Oracle Java OS Download Forum Other list

Oracle AS

 

Enterprise Manager

AS 10g
Start opmn:
$ORACLE_HOME/opmn/bin/opmnctl start

Stop and start http server:
$ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=HTTP_Server
$ORACLE_HOME/opmn/bin/opmnctl startproc ias-component=HTTP_Server

Check ports and status:
$ORACLE_HOME/opmn/bin/opmnctl status -l

Use opmn to start and stop all:
$ORACLE_HOME/opmn/bin/opmnctl startall
$ORACLE_HOME/opmn/bin/opmnctl stopall

Files:
[opmn configuration file]
$ORACLE_HOME/opmn/conf/opmn.xml
  look for <port id="default-web-site" range="8888" protocol="http"/>
  to locate web listen port

Locate install file info: $ORACLE_HOME/install\readme.txt

[application.log]
/NAS/app/oracle/product/10.1.3/OracleAS_1/j2ee/home/application-deployments/fweb2/home_default_group_1/application.log

[default-web-site.xml]
change AS default port, and set apllications root

 

Standalone OC4J
Download from:
http://www.oracle.com/technology/tech/java/oc4j/index.html
    
Start
java -jar $J2EE_HOME/oc4j.jar -config config/server.xml &
The first time 2 directories are created:
application-deployments and tldcache    

Shutdown (ordinary | force)
java -jar admin.jar ormi://localhost:23791 admin welcome -shutdown force

Lists all existing Web sites
java -jar admin.jar ormi://localhost:23791 admin welcome -site -list

set password and verify install using
java -jar $J2EE_HOME/oc4j.jar -config $J2EE_HOME/config/server.xml -install

 

Config Files
http-web-site.xml
Specify http applications to load on startup
server.xml
Specify J2EE applications to load on startup
<application name="webapp1" path="../applications/webapp1.ear" auto-start="true" />

 

RMI listening port

in home/config,  rmi.xml tell you the rmi port

For embedded JDeveloper:
C:\oracle\jdev1012_base\jdev\system10.1.2.0.0.1811\oc4j-config\rmi.xml

 

Path
j2ee\home\applications - deployed war, ear files

j2ee\home\config\rmi.xml - rmi listening port

j2ee/home/default-web-app - JSP
	http://oc4j_host:8888/examples/Hello.jsp
	
j2ee/home/default-web-app/WEB-INF/classes - servlet
	j2ee/home/default-web-app/Web-INF/classes/my/HelloServlet.class
	http://oc4j_host:8888/servlet/my.HelloServlet

 

10g

To create an OC4J instance use Enterprise Manager

check creation with   opmnctl status

 

Basic tips for installation of Infrastructure

unset ORACLE_HOME, ORACLE_SID e NLSLANG

see 270683.1

in /etc/hosts define hostname, do not use underscore _ or minus -
192.168.0.1 	mypc.fadalti.com mypc	mypc
127.0.0.1	localhost.localdomain	localhost
You cannot add OCA later, you have to perform a new complete, 
so its better to install it now
Prefere UTF8 character set
Do not install over mounted device or JASM will fail abnormally
After a successful Oracle Infrastructure installation backup the entire database, 
in order to be recovere in the event of a failed Middle Tier installation