Command to Bounce OC4J in LINUX
Hi,
Can anyone tell me what is the command to bounce the OC4J Services in LINUX?
Thanks,
-Vency
For what it's worth (replace the path and executable extension as necessary):
D:\BIPv4\oc4j_bi\bin\oc4j.cmd -help
Usage: oc4j.cmd [Options]
Options:
-start : start OC4J
-shutdown -port -password
: stop OC4J
-version : display the version
-help : display this message
Similar Messages
-
How to start OC4J at Linux boot time
Hello,
I am using Linux AS 3.0 and i have installed OC4J ( 9.0.4) ok, and OC4J also work fine.But each time i want to start OC4J , i must execute command java -jar oc4j.jar at console.
Now, I want to start OC4J automatic at System startup ( ie: Linux boot time ).How can i do?
Thanks.Just put your OC4J start/stop commands in a rc script.
Scripts in the directories
/etc/rc.d/rc2.d
/etc/rc.d/rc3.d
/etc/rc.d/rc5.d
will be called by the operating system with the command line option start.
The number in the directory names represent the desired run level of the machine.
Scripts in the directory
/etc/rc.d/rc0.d
will be called during shutdown with the command line option stop. -
I am using RedHat Linux 7.2 and ias 9.0.2. When I try to execute java -jar oc4j.jar, it hangs and never returns. It is also not opening a port. The log file says that it started. What should we do or look for?
Hi Bob,
You can try running OC4J in "debug" mode. The following web page has
details:
http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp
By the way, did you try searching the forum archives before posting?
I have posted the above URL several times already in other posts. Are
you already familiar with the above URL? Did it not help you?
You can also execute the following command:
java -jar oc4j.jar -help
Should show you some other, available options.
You can also add "-verbosity 10" to the command line, for example:
java -jar oc4j.jar -verbosity 10
Hope this helps.
Good Luck,
Avi. -
Hi
We tried to start oc4j in Linux using following command
[oracle@fa2220 setup]$ oc4j -start
Starting OC4J from /dbfiles/home/oracle/obiee_home/OracleBI/oc4j_bi/j2ee/home ...
It is stopping at this stage without any errors.
Linux Version: Red Hat Enterprise Linux Server release 5.3 (Tikanga)
We tried to see what is being done in the process, so we did strace and found the following:
strace -p 15924
Process 15924 attached - interrupt to quit
futex(0xb7675bd8, FUTEX_WAIT, 15925, NULL
And we checked the netstat –a | grep 23791 (default ORMI port) and found it is listening on this port.
But we can not access oc4j.
Can someone please help?
PSI managed to solve the problem by setting the "Load All System JAR Files during OC4J Startup" in the "Embeded OC4J Server Preferences" under "Global > Startup".
-
Hi all..
I am novice user of Linux Platform...
I wanted to install oc4j under linux..
The Staps in followed ..
1.. i have installed jdk 1.3.1 linux version
2.. i have unzipped to ,zip file
after this i have set the path
but duuno how to set the class path
as i ahve to run java -jar oc4j.jar
how shuold i go about it..
Any sugg...gr8 helpful
Reg
RajThank you AndrewThompson64
You have done a great job.You are welcome.. but really, the only
'great' thing I did was a quick search on
'Java install linux'
to show that link (that I knew was around
here somewhere) at the top of the
search reasults!
Thanks for your interest to help me.You are welcome. :-)
Next time you get stuck, 'drop back by'* and
I'll show you some more clever search tips. ;-)
* ..but really, you will gain a lot if you simply
'lurk' around the forum and read other posts,
even as you are writing code.. -
OC4J on Linux RedHat 8.0
Hi I want to know whether the OC4J which we use on Win2k is the same for Linux RedHat 8 or do we have to download a diff version?? If so where can I find that?
Or how to install OC4J on Linux RedHat8
Thanx
KulkarniI just unzipped oc4j_extended.zip into /usr/local/ and then started it like:
cd /usr/local/j2ee/home
$JAVA_HOME/bin/java -jar oc4j.jar &
Then exited my shell (which bash lets me do)
Rob -
Getting error while running command java -jar oc4j.jar -install
java -jar oc4j.jar -install
ON RUNNING The above command getting below error , is it because Java home is not set?
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: oc4j.jar
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/oracle/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at JvRegisterClasses (/oracle/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/java.version=1.4.2)
navisdb.igglobal.com(express)$ javac
ksh: javac: not found
ENVIORNMENT DETAIL : RED HAT LINUX ENTERPRISE EDITION
Extracted OC4J_extended.zip file at oracle 10g installation location.does this command work?
/home/oracle:MCSE>gij --showversion
gij (GNU libgcj) version 3.4.6 20060404 (Red Hat 3.4.6-11) -
Sqlpuls command is not working at Linux
Hi,
Oracle 11g has been installed successfully at Linux. Please find below output that I got after executing ‘uname –a ‘ command:
Linux <server_name> 2.6.9-89.0.25.ELsmp #1 SMP Mon Apr 19 06:05:15 EDT 2010 i686 athlon i386 GNU/Linux
$ORACLE_HOME is also set properly.
But when I am executing sqlpuls command, it is getting hung, not asking for user id & password prompt
$ sqlplus
$ sqlplus / as sysdba
Could you please throw some lights on this?
Regards,
AmitavaCheck if the PATH is set properly. In the documentation, you can see how to set it.
If it still doesn't work, try running it directly from its directory:
1 cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin
2 ./sqlplus -
Host command is not working on linux
Hi
I m using linux for application server n windows for client. I need to create folder from client machine by cliking a button of forms10g runtime.HOST command is not working which was working fine in windows.
Any help is appriciateable.
kazi mokaremHi
I had the same issue on linux a few weeks back. What tuned out was, when you install the Oracle app svr it does not include the system paths by default.
The path where mkdir is located may not be visible to the app.
Try to hardcode the path for mkdir as /bin/mkdir .... and seee if that works.
If the above statement works then add that path in the paths variable in default.env file located in $ORACLE_HOME/forms/server directory
HTH
Arvind -
Command not found error in Linux
Hi all,
While login into Linux server using terminal i am getting following error.
-bash: /usr/bin/id: No such file or directory
-bash: [: =: unary operator expected
While execute these commands getting following errors
# clear
-bash: clear: command not found
# du -sh *
-bash: du: command not found
Help on these issues.
Linux 32bit OS.
Red Hat Enterprise Linux Server release 4.0 (Tikanga)Likely a flaky environment.
What is the contents of .bash_profile in your $HOME?
Any btw, why RHEL4? It is ancient. -
How to execute the ldapsearch command by java class in linux os?
hi,all
I want to query the users by ldapsearch command. I call the command in my java class. In windows, It work well. But in linux , there haven't any result. My test program is following:
===============
import java.util.*;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
public class test{
public static Vector queryAllUser(){
try{
Vector v=new Vector();
String cmdquery="ldapsearch -h localhost -b\"dc=metasphere,dc=com\" \"uid=*\" uid ";
//String cmdquery="ls -la";
Process process=Runtime.getRuntime().exec(cmdquery);
System.out.println("cmdquery:"+cmdquery);
InputStreamReader ir=new InputStreamReader(process.getInputStream());
LineNumberReader input = new LineNumberReader (ir);
System.out.println("input="+input);
String line;
while ((line = input.readLine ()) != null){
System.out.println("Line:"+line);
if(line.startsWith("uid")){
String temp=line.substring(line.indexOf(":")+1,line.length());
v.add(temp);
return v;
}catch(Exception e){
e.printStackTrace();
System.out.println("runtime error:"+e.getMessage());
return null;
public static void main(String argv[]){
Vector v=queryAllUser();
for(int i=0;i<v.size();i++){
System.out.println((String)v.get(i));
================
In fact, when I execute the command: ldapsearch -h localhost -b"dc=metasphere,dc=com" "uid=*" uid
in linux prompt, the screen show the results:
version: 1
dn: uid=toppymgt,dc=metasphere,dc=com
uid: toppymgt
dn: uid=qutao,dc=metasphere,dc=com
uid: qutao
dn: uid=zz,dc=metasphere,dc=com
uid: zz
dn: uid=z,dc=metasphere,dc=com
uid: z
dn: uid=admin,dc=metasphere,dc=com
uid: admin
dn: uid=alan,dc=metasphere,dc=com
uid: alan
dn: uid=misssixty,dc=metasphere,dc=com
uid: misssixty
dn: uid=channelv,dc=metasphere,dc=com
uid: channelv
What's reason? Please help me. Thx.If there have a bugs in Linux OS. Please help me!
-
Running OC4J on Linux in the background?
I am relatively new to Linux and have been trying to start OC4J either automatically or as a background process (so that I do not have to keep the terminal window open). I tried "$nohup java -jar oc4j.jar &", but OC4J still shuts down when I logout or exit the terminal. Does anyone know of a good way to start OC4J automatically or as a background process?
You've two choices:
- install public domain 'screen' program followed by
running oc4j in a 'screen' session and detach from
the 'screen'. BTW, 'screen' allows you to reattach
to an existing session of 'screen'
- Write a one line shell script and launch this script
in the background. Now when you exit from your shell
your oc4j will continue to run.
-Anantha- -
we have developed an Enterprise Java Bean for OC4J (version 9.0.2.0.0) which is running on Win2000 OS without any bugs.
when we deployed the same EAR file in OC4J (version 1.0.2.0.0) on linux OS.we r getting an error like this---->
java.lang.InstantiationException: Illegal use-caller-identity value, legal values are True and False.
Is there any problem with the change in OC4J version or
due to the change in the OS.
Anyone pls help us to sort out this problem.
thanks
prabakar & team.Prabakar,
This is because of the version.
OC4J 1.0.2.2.1 does not have support for <use-caller-identity which is part of EJB 2.0 spec. This works fine with OC4J 9.0.2 that supports most of the EJB 2.0 spec.
regards
Debu Panda
Oracle -
Hi Friends
we have developed an Enterprise Java Bean for OC4J (version 9.0.2.0.0) which is running on Win2000 OS without any bugs.
when we deployed the same EJB in OC4J (version 1.0.2.0.0) on linux OS.we r getting an error like this---->
java.lang.InstantiationException: Illegal use-caller-identity value, legal values are True and False.
Is there any problem with the change in OC4J version or
due to the change in the OS.
Anyone pls help us to sort out this problem asap.
cheers
prabakar
thanks
prabakar & team.Prabakar,
This is because of the version.
OC4J 1.0.2.2.1 does not have support for <use-caller-identity which is part of EJB 2.0 spec. This works fine with OC4J 9.0.2 that supports most of the EJB 2.0 spec.
regards
Debu Panda
Oracle -
I am tring to deploy to a Linux server, however I get the following error message:
Error in CreateMarlinUIXPage.createUITree: no protocol: /uix/ClientPage.uix
The application works perfectly fine using OC4J localy on my windows box. I have tried zipping the entire app and manually deploying however this doesn't work either. If some one could point me in the right direction I would appreciate it...Here is the error messages from my oc4j:
CreateUIXPage Exception: no protocol: /uix/ClientPage.uix
java.net.MalformedURLException: no protocol: /uix/ClientPage.uix
at java.net.URL.<init>(URL.java:483)
at java.net.URL.<init>(URL.java:357)
at java.net.URL.<init>(URL.java:301)
at oracle.cle.util.CLEUtil.getInputStream(CLEUtil.java:871)
at oracle.cle.util.xml.XMLUtil.getInputSource(XMLUtil.java:42)
at oracle.jheadstart.process.CreateUIXPage.createUINode(CreateUIXPage.java:356)
at oracle.jheadstart.process.CreateUIXPage.createUITree(CreateUIXPage.java:291)
at oracle.jheadstart.process.CreateMarlinBeanPage.printPage(CreateMarlinBeanPage.java:452)
at oracle.clex.process.CreatePage.start(CreatePage.java:64)
at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
at oracle.cle.process.Process.start(Process.java:97)
at oracle.cle.process.GenericProcess.start(GenericProcess.java:82)
at oracle.cle.process.ParentProcess.start(ParentProcess.java:218)
at oracle.cle.process.DisplayGroup.start(DisplayGroup.java:75)
at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
at oracle.cle.process.Service.start(Service.java:389)
at oracle.clex.process.controller.HttpServletController.doPost(HttpServletController.java:439)
at oracle.clex.process.controller.HttpServletController.doGet(HttpServletController.java:849)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:696)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:766)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:107)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
at java.lang.Thread.run(Thread.java:472)
Maybe you are looking for
-
Information on notebook ports (USB, HDMI, etc)?
I'm currently looking at a Pavilion 17z-e100 laptop to customize and order. However, I cannot find any information regarding the ports on the notebook. I need an HDMI output and 3 USB slots, and since I transfer large files to my USB drive regularly,
-
Photoshop CC and 64-bit Versions
I just installed Photoshop from the Creative Cloud Desktop application and after it installed, I noticed that I had two versions, one named "Adobe Photoshop CC" and another named "Adobe Photoshop CC (64-bit)". What is the purpose of having two versio
-
Hi experts, I am new to IDOC and I want to learn IDOC AND ALE .So pls send me some scenario and process with screen shots to my mail id ([email protected]) so that i can learn. Thanks, DJREDDY. ([email protected])
-
At this rate initial BU will take 61 days...
I set up my TC up on March 4th. I had no idea it would be SO SLOW and I started the backup wirelessly. It's been working on the initial BU since then and so far it's backed up 4.4 GB out of 135.85 GB. At 2.2 GB a day, it should be finished sometime i
-
How can I show embedded video in powerpoint on phone?
I have embedded video in my powerpoint using Office 365 on my desktop. The video plays fine on my desktop but it does not play on my phone. It simply shows the video as a picture. Does anybody know what the problem is? Thanks.