UNIX Process

I have a Unix Process, constructed on C Language, this process access a shared library to perform some tasks..
Can I create a java program to run as a shared library ???
I want delete this C Shared Library and create a java shared library...
Is it possible ???? Or I need to still having my C garbage problems.. hehehe
Thanks a lot...
Juliano

You can interface betwee C and Java using JNI (Java Native Interface). With JNI you can call Java from C and C from Java. Search this website for more info on JNI (have a look at the Tutorials, see the links on the left side of this page).
Jesper

Similar Messages

  • Getting error while posting reports on Unix Process Scheduler Server

    Hello ,
    I am getting the below error while posting reports on Unix Process Scheduler Server .
    PSDSTSRV.14338 (2) [09/08/09 08:21:34 PostReport](1) (JNIUTIL): Java exception thrown: java.io.IOException: Stream closed.
    PSDSTSRV.14338 (2) [09/08/09 08:21:34 PostReport](3) HTTP transfer error.
    PSDSTSRV.14338 (2) [09/08/09 08:21:34 PostReport](3) Post Report Elapsed Time: 0.0900
    PSDSTSRV.14171 (10) [09/08/09 08:21:34 PostReport](1) (JNIUTIL): Java exception thrown: java.io.IOException: Stream closed.
    Please advise ,thank you.

    user5838027 wrote:
    Node name :PS_HTTP
    URL: http://ddas1020.dev.com:16000/psreports/hrdmo
    URI:SchedulerTransfer/hr90dmo
    URI Port: 16000
    Please let me know if any other info is needed.
    Thanks.
    typo...
    URL: http://ddas1020.dev.com:16000/psreports/hr90dmo
    Hopefully, your application URL looks like http://ddas1020.dev.com:16000/psp/hr90dmo/..., your URI host looks like ddas1020.dev.com (or corresponding ip address), and hhtp is checked.
    Did you also tried to give the web login/password ?
    Nicolas.

  • Get Unix Process id from Form 6i

    Dear all,
    Does anyone know how can I get the Unix Process ID of the current session from Forms that run on client side ? Is the TOOL_ENV package help ?

    Use your session ID to select v$session
    Select spid from v$process
    where addr = v$session.paddr
    -- Unix Process id = v$process.spid

  • How to find sql statement with Unix process pid

    Hi
    how to find sql statement with Unix process pid
    is there any view to find that.
    please if so let me know
    Thanks in advance

    this is how I am doing this:
    oracle 7352340 7459066 0 07:47:10 - 0:00 oracleJDERED (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    oracle 7459066 5386396 2 07:47:10 pts/1 0:01 sqlplus
    select sid,serial# from v$session where process='7459066';
    SID SERIAL#
    2178 6067
    select sql_text
    from
    v$sqlarea a,
    v$session b
    where a.hash_value = b.sql_hash_value
    and b.sid = 2178
    ;

  • Unix process id for extproc

    Does oracle store the unix process id when an external procedure is called? I know the id of the oracle process is in v$process. But what of the external process itself?

    I guess this one is just too hard a question.

  • Indtify the unix process id

    Hello,
    How can I know the unix process Id from the session ID of Oracle?
    I have killed the SID using kill session but, I go a message saying that the session is maket for kill
    thank you

    hello,
    you can use this query;
    SELECT P.SPID, S.SID, S.SERIAL#
      FROM V$PROCESS P, V$SESSION S
    WHERE P.ADDR = S.PADDR
       AND S.SID = <your SESSION ID>;the SPID is the process ID,
    also i suggest to use DISCONNECT SESSION instead of kill session :=)
    ALTER SYSTEM DISCONNECT  SESSION 'sid,serial#' IMMEDIATE;

  • Get Unix process ID from forms

    Does anyone know how can I get the Unix Process ID of my running forms applicaton from the client side forms application?
    null

    Use your session ID to select v$session
    Select spid from v$process
    where addr = v$session.paddr
    -- Unix Process id = v$process.spid

  • External procedure unix process id

    Does oracle store the unix process id when an external procedure is called? I know the id of the oracle process is in v$process. But what of the external process itself?

    I guess this one is just too hard a question.

  • Monitoring Unix Processes - User defined Metrics

    Hello,
    I would like to setup a metric to alert if one specific unix process goes down.
    Could some one share the steps? Thanks.

    Dear Rob Zoeteweij,
    We are using resin web server. The resin server services(process) need to monitor.
    we used start and stop the service by folowing two commands.
    httpd.sh start -- starts
    httpd.sh stop -- stops the web server
    ===========================
    The details about resin server, please visit
    http://www.caucho.com/resin-3.0/install/httpd.xtp.
    Regards
    Ruhul

  • /etc/services, port numbers & Unix processes

    I have some questions about /etc/services, ports and unix processes.
    First, it appears to me that a process can listen on a port WITHOUT the service/port number being in /etc/services. Is this correct?
    For example we have TUXEDO apps that listen on high number ports even though there are no corresponding service/port pairs in /etc/services.
    Second, How do you find out which Unix process is listening on a given port?
    Forexample, when you run netstat -a and get something that looks like:
    host.port.........................LISTEN
    How do you get the Unix PID listening on this port?

    Hi
    A service can run on any port number, as I understand it, /etc/services just describes the well know port number services.
    As for finding out what process is listening on a given port, I recall a previous post that suggested
    using lsof with some switches.
    I think it was :
    lsof -i -n -P
    I've never tried it myself.
    You can find lsof at www.sunfreeware.com

  • Command to find the top unix processes  doing high disk read and writes

    I would like to know 'the unix command to find the top unix processes doing high disk reads or/and writes
    If any one knows the solution please help me?
    -Swamy

    From the oracle side you can obtain OS process id for sessions having some waits for user I/O
    select p.spid, s.sid, s.sql_id
    from v$session s, v$process p
    where s.paddr=p.addr
    and s.sid in
    select sid from v$session_wait
    where wait_class='User I/O'
    );and to see sessions that are currently waiting on user I/O use
    select p.spid, s.sid, s.sql_id
    from v$session s, v$process p
    where s.paddr=p.addr
    and s.sid in
    select sid from v$session_wait
    where wait_class='User I/O'
    and wait_time=0
    );HTH, Peter

  • How to invoke VI function in LabView running on Windows from a unix process in Solaris

    Labview is only installed on Windows and Process on Solaris is a standard unix process without any Labview installed.

    I'm not sure this is possible. Really, the only way to call a VI are from VIServer or ActiveX. Since you don't have LabVIEW on the other machine, that won't work, and you can't use DCOM from a non Windows machine. There might be a 3rd party application like PCanywhere that will work between environments, but I doubt it. Your best chance might be to rig it so that LabVIEW works as a TCP/IP server and will respond to commands by using the TCP VI's. That should be easy enough to use from a UNIX system.

  • One Unix process and multiple Oracle sessions

    Hi All,
    When I checked one particular Unix process, I have seen that in the database there are 3 different Oracle sessions spanning days between them. Can you please tell me how this is possible.
    Regards
    Satish

    Hi Yas,
    The query I ran is tghe following.
    SELECT Substr(a.username,1,15) "Username",
    a.osuser "OS User",
    a.sid "Session ID",
    a.serial# "Serial No",
    d.spid "Process ID",
    a.lockwait "LockWait",
    a.status "Status",
    Trunc(b.value/1024) "PGA (Kb)",
    Trunc(e.value/1024) "UGA (Kb)",
    a.module "Module",
    Substr(a.machine,1,15) "Machine",
    a.program "Program",
    Substr(To_Char(a.logon_Time,'DD-Mon-YYYY HH24:MI:SS'),1,20) "Time"
    FROM v$session a,
    v$sesstat b,
    v$statname c,
    v$process d,
    v$sesstat e,
    v$statname f
    WHERE d.spid=29789 and
    a.paddr = d.addr
    AND a.sid = b.sid
    AND b.statistic# = c.statistic#
    AND c.name = 'session pga memory'
    AND a.sid = e.sid
    AND e.statistic# = f.statistic#
    AND f.name = 'session uga memory'
    ORDER BY 1,2;
    I passed spid to it.
    Regards
    Satish

  • Problems with Runtime.exec() and certain Unix processes

    Certain Unix processes don't behave correctly when run from Java using Runtime.exec(). This can be seen by running /bin/sh and trying to interact with it interactively. The issue appears to be that /bin/sh (and many other Unix tools) are checking the file handles on the spawned process to see if they are associated with a TTY.
    Is there any way to associate a process spawned by Runtime.exec() with a terminal or alternatively, is there a JNI library available that would setup the process correctly and still provide access to the input and output streams?
    Our objective is to have the flexibility of expect in being able to run and interact with spawned processes. A bug was opened at one point but closed back in 1997 as being a fault in the spawned process, not Java.
    Bug ID: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4058689

    #include <stdio.h>
    void doit() {
    int c;
            while((c=getc(stdin)) != EOF) {
                    printf("%c",c);
    int main() {
            freopen("/dev/tty", "r", stdin);
            doit();
    }This program reopens its standard input against /dev/tty and catenates it to stdout. And voila, it takes its standard input from the terminal, even though it was started with stdin against /dev/null..
    $ gcc b.c -o b
    $./b < /dev/null
    buon giorno
    buon giorno

  • Executing *.java using unix process

    Hi,
    I have a problem with executing *.java command using unixprocess in java class. My java code snippet contain like...
    Process p = Runtime.getRuntime().exec(command);
    where command= "/data1/oracle/product/10.1.3.1/OracleSOA/jdk/bin/javac -d /tmp/classes/createLOV/build /tmp/classes/createLOV/src/com/lovalias/packagename/pas/uws/master/interfaces/*.java"
    if we run that java file on unix OS..
    it gives error like
    error: cannot read: /tmp/classes/createLOV/src/com/lovalias/packagename/pas/uws/master/interfaces/*.java1 error
    if replace * with actual file name like ABC.java it is executing success fully..i think it is treating * as file name
    but i want execute list of sourcefiles from that directory..
    any body please give the solution...
    thanks in advance...

    Sounds like you either have a corrupt class file or you're using an older version of the JVM to try to execute classe that were compiled for a newer version.

Maybe you are looking for

  • How do I solve this win xp recovery / install problem?

    Hello I have made a backup of the Vista install that comes with the new laptop onto 3 DVDs. Now I'm trying to launch the Toshiba Product Recovery Media (Win XP Pro) Discs to install Win XP instead. The Toshiba Product Recovery Media consists of a 1 C

  • Error -39 when trying to download my own Podcast in iTunes

    Hi all, I get an unknown error (-39) when I try to download the first episode of my podcast: http://www.pile-et-face.ch/episodes/feed.xml * the feed is validated by the recommended web site * I can subscribe to the Podcast in iTunes * the podcast inf

  • Music player in 5800 XpressMusic

    music player update 15.2 is not working. There is no lyrics option at all! Solved! Go to Solution.

  • IPod won't update photos-error code 208

    I am having trouble updating my iPod with my photos. It will update my music, but will not transfer any photos. I have uninsalled and reinstalled iTunes, reset and rebooted the iPod, and ensured that my settings to transfer photos are correct: synchr

  • CCMS-functinality with Solution Manager 4.0

    Hello, I am seeking for the documentation regarding the setup and use the CCMS-functionality with Solution Manager 4.0 Is there some documents describing this feature in details? Thank you! regards Axel