Starting Unix shell command with 7.3.4

Hallo,
does anybody have a easy to use solution to start an
Unix shell command with Oracle 7.3.4 ????
Thanx

found on metalink :
Certify - Certification Matrix: Oracle Server - Enterprise Edition on HP Tru64 UNIX
Server Certifications
OS        Product Certified With Version Status Addtl. Info. Components Other
5.1b 8.1.7   (8i) 64-bit N/A N/A Certified Yes None None
5.1a 8.1.7   (8i) 64-bit N/A N/A Certified Yes None None
5.1 8.1.7    (8i) 64-bit N/A N/A Certified Yes None None
5.0a 8.1.7   (8i) 64-bit N/A N/A Certified Yes None None
5.0 8.1.7    (8i) 64-bit N/A N/A Desup:OS Yes None N/A
4.0f-g 8.1.7 (8i) 64-bit N/A N/A Certified Yes None None
4.0d-e 8.1.7 (8i) 64-bit N/A N/A Desup:OS Yes None N/A --------------------------------------------------------------------------------
Copyright (c) 1995,2000 Oracle Corporation. All Rights Reserved. Legal Notices and Terms of Use.

Similar Messages

  • Unix Shell Command Monitor broken

    Hi all,
    Few days ago I've noticed that I am not able to create/modify Unix Shell Command monitors (two/three states)
    Screenshot: http://fotki.yandex.ru/users/neverregret/view/609083
    I am domain admin and Operations Manager admin so I have sufficient privileges automatically.
    Could you please advice what is going wrong?
    I'll appreciate any help.
    Thank you

    Has the SCOM server been upgraded or patched prior to this starting or were any MPs removed that are associated to the UNIX/Linux functionality?
    Check and see if the Microsoft.SystemCenter.CrossPlatform.UI.OM.Integration.Authoring.ShellCommandTemplate.dll file exists under the SCOM directory structure.
    You can download the latest UNIX/Linux MPs/agents from here
    http://www.microsoft.com/en-us/download/details.aspx?id=29696 and try updating the Microsoft.Unix.ShellCommand.Library.mpb MPs and see if that helps.
    Regards,
    -Steve

  • Invoking a UNIX shell command from Java stored procedure

    The program below is suppose do send an email using UNIX mailx program. It works correctly when I compile it in UNIX and invoke it from the command line by sending an email to the given address.
    I need this program to run as a stored procedure, however. I deploy it as such and try to invoke it. It prints the results correctly to the standard output. It does not send any emails, however. One other difference in execution is that when invoked from the command line, the program takes about a minute to return. When invoked as a stored procedure in PL/SQL program or SQL*Plus anonymous block, it returns immediately.
    Why would mailx invocation not work from a stored procedure? Are there other ways to invoke mailx from PL/SQL?
    Thank you.
    Michael
    import java.io.BufferedWriter;
    import java.io.IOException;
    import java.io.OutputStreamWriter;
    public class MailUtility
    public static void main(String[] args)
    System.out.println(mailx("Hey, there", "Hello", "oracle@solaris10ora", 1));
    * Sends a message using UNIX mailx command.
    * @param message message contents
    * @param subject message subject
    * @param addressee message addressee
    * @param display if greater than 0, display the command
    * @return OS process return code
    public static int mailx(String message, String subject,
    String addressee, int display)
    System.out.println("In mailx()");
    try
    String command =
    "echo \"" + message + "\" | mailx -r [email protected]" + " -s \"" + subject + "\" " + addressee;
    if (display > 0)
    System.out.println(command);
    try
    Process process = Runtime.getRuntime().exec("/bin/bash");
    BufferedWriter outCommand =
    new BufferedWriter(new OutputStreamWriter(process.getOutputStream()));
    outCommand.write(command, 0, command.length());
    outCommand.newLine();
    outCommand.write("exit", 0, 4);
    outCommand.newLine();
    outCommand.flush();
    process.waitFor();
    outCommand.close();
    return process.exitValue();
    catch (IOException e)
    e.printStackTrace();
    return -1;
    catch (Exception e)
    e.printStackTrace();
    return -1;

    try adding the full explicit path to "mailx" in the command string that gets sent to Runtime. i would guess that the shell that gets spawned might not have a proper environment and thus mailx might not be found.
    == sfisque

  • Executing Unix shell scripts with DBMS_SCHEDULER

    I have the following Unix shell script create_backup_file.sh:
    #!/usr/bin/ksh
    /usr/bin/ssh [email protected] /usr/bin/touch/app_home/home/trotestbat/scripts/TRO_batch_complete_`date +%d-%m-%Y-%H%M`
    If I execute this from the command prompt it creates the file on the remote server.
    I've used dbms_scheduler to try and execute this from Oracle:
    BEGIN
    SYS.DBMS_SCHEDULER.CREATE_PROGRAM
    program_name => 'CREATE_TRO_BACKUP_FILE'
    ,program_type => 'EXECUTABLE'
    ,program_action => '/APP/TORPEDO/DTE/SCRIPTS/create_backup_file_tro.sh'
    ,number_of_arguments => 0
    ,enabled => TRUE
    ,comments => NULL
    SYS.DBMS_SCHEDULER.CREATE_JOB
    job_name => 'DTE.TESTAGAIN'
    ,start_date => TO_TIMESTAMP_TZ('2010/05/17 16:09:24.710789 +01:00','yyyy/mm/dd
    hh24:mi:ss.ff tzh:tzm')
    ,repeat_interval => NULL
    ,end_date => NULL
    ,program_name => 'DTE.CREATE_TRO_BACKUP_FILE'
    ,comments => NULL
    END;
    The problem I have is that scheduler executes the shell script and creates the file but it never completes the job. The status of the job is permanently 'RUNNING'. Why is the scheduler not returning a completed status?

    the "infinite" script is usually caused by a prompt (script pauses for a user input).
    Please keep in mind that executing script via scheduler is not the same as manually via prompt.
    1. the script runs as ORACLE user ID (or whatever you specified using DBMS_SCHEDULER.create_credential or/and "$ORACLE_HOME/rdbms/admin/externaljob.ora")
    2. the environment variables are probably not the same.
    My wild guess is that you never ran SSH using "oracle" UID and thus it prompts for permission to add the remote computer’s fingerprint to the user’s ~/.ssh/known_hosts file - since it is a script, it just hangs and waits for input.
    Did you try to login to unix box as oracle uid and run the script manually?

  • Unix Shell Scripts with Oracle

    Any body who can give me the link where I can find the Unix Shell Scripts to access the Oracle database and execute the stored procedures and cursors.

    Your unix script will contain (at appropriate places):
    sqlplus -s username/pasword@server @your_sql_Script_that_calls_the procedure.SQLor
    sqlplus -s / @your_sql_Script_that_calls_the procedure.SQL

  • Issues with running UNIX shell command from Java

    Here is my java class file:
    create or replace and compile java source named host as
    import java.lang.* ;
    public class Host
       public static void cmdTest()
            String cmd = "ps -ef | grep orcl" ;
            int rc = 0 ;
            int = runCmd(cmd) ;
       public static int runCmd(String str )
           Runtime rt = Runtime.getRuntime() ;
           int     rc = -1 ;
          try
                Process p = rt.exec(str) ;
                int bufSize = 4096 ;
                BufferedInputStream bis =
                    new BufferedInputStream(p.getInputStream(), bufSize) ;
                int len ;
                byte buffer[] = new byte[bufSize] ;
                // Log what the program spit out
                while ((len = bis.read(buffer, 0, bufSize)) != -1)
                    rc = p.waitFor() ;
            catch (Exception e)
                e.printStackTrace();
                rc = -1 ;
            finally
                return rc ;
    show errorsI can call runCmd directly from SQLPlus using an Oracle stored procedure and it runs like expected. I can see the returned output using dbms_java.set_output(1000000).
    But when I call cmdTest from SQLPlus using an Oracle stored procecdure it just hangs forever and I have to kill the session.
    Is there something I am missing in the cmdTest method?

    Jimmy,
    If you haven't already seen it, I think the following article may be of help:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    Also a "finally" block should not contain a "return" statement:
    http://weblogs.java.net/blog/staufferjames/archive/2007/06/_dont_return_in.html
    Good Luck,
    Avi.

  • Error while Executing Unix Shell Commands Using Runtime clas

    I am trying to run the following code in java on unix machine to execute cat command.
    Runtime runtime = Runtime.getRuntime();
              try {
                   System.out.println("before catexecute");
                   Process process = runtime.exec("cat /export/home/shankerr/local.profile > /export/home/shankerr/local1.txt");
                   try {
                        if (process.waitFor() != 0) {
                        System.err.println("exit value = " +
                                  process.exitValue());
                        catch (InterruptedException e) {
                        System.err.println(e);
    But i get the following error on the console
    exit value = 2
    cat: cannot open >
    cat: cannot open /export/home/shankerr/local1.txt
    The same command if i run on unix console directly it creates a new file and copies the content into the new file local1.txt
    kindly help me on the same

    The redirection operator > along with stuff like pipe | history !$ etc. is interpreted by the shell, not by the cat program.
    When you do cat X > Ycat only sees the X. The rest is interpreted by the shell to redirect the cat program's stdout.
    However, when you Runtime.exec(), you don't have the shell, so cat sees X > Y as its arguments, and interprets them all as file names. Since there's no file named > you get the error.
    The solution is to first man cat on your system and see if it happens to have a -o or somesuch operator that lets it (rather than the shell) send its output to a file. If not, then you need to invoke a shell, and pass it cat and all of cat's args as the command to execute.
    Read the man pages for you shell of choice, but for bash, I believe you'd give Runtime.exec() something like /bin/bash -c 'cat X > Y'

  • Incorporate shell commands from forms

    How to incorporate unix shell commands(eg. ls, cp) from forms9i?
    In Windows environment,it is possible by issuing
    host command(eg. HOST('DIR >k.lis') -- it moves the list of files from Oracle9i/forms90 path to a file k.lis).
    The same thing I have to do in a unix environment.

    I think you have the wrong forum. This forum has to do
    with the UIX technology inside of JDeveloper. Your
    question seems to have to do with UNIX or forms. I can't
    tell which.

  • Call Unix Shell Script From OBIEE

    Hi All,
    Is it possible to do a call to a Unix Shell Script with the Action Framework from OBIEE.
    Thanks in Advance

    I dont think so but we can go for it instead of BI side. Try to port the same functionality on shell script side, so that the script can identify your report using tail of nqquery log and execute the rest of your lines in shell script.
    This can doable and works as expected. If at all you are going with my suggestion you can go for a small key word to identify your report instead of that lengthy logical query.
    Pls mark if helps

  • Java interactive Shell command Execution

    Hello,
    I wish to execute a shell command with password from a java program. I want to issue the first command "serctl add 2000 password email" and then when prompted for a MySQL password, enter it.
    Below is my current code. I think it is going into an infinite loop. When I comment out the "while ((s = in.readLine()) != null){" portion of the code, I dont get an infinite loop but then i dont know how to enter the password.
    Can someone please please help me as im really stuck on this?
    BR,
    Aisling.
    String[] command = { "serctl", "add", 2000, password, email};
    Runtime runtime = Runtime.getRuntime();
       Process process = null;
       response.setContentType(CONTENT_TYPE);
       PrintWriter out = response.getWriter();
       String s = null;
       try {
         process = runtime.exec(command);
         System.out.println(process);
         BufferedReader in =
         new BufferedReader(new InputStreamReader(process.getInputStream()));
         BufferedReader error = new BufferedReader(new InputStreamReader(process.getErrorStream()));
         OutputStream stdout = process.getOutputStream();
         String pwd ="password";
      /*   while((s=in.readLine())!=null)
           s = in.readLine();
           System.out.println(s);
           stdout.write(pwd.getBytes());
           stdout.flush();
         System.out.println("Here is the standard error of the command(if any):\n");
         while ((s = error.readLine()) != null){
           System.out.println(s);
         stdout.close();
         in.close();
         error.close();

    Thats great and I think that should have worked...However its still hanging and evidently going into some kind of loop....very strange.
    If I execute the command in a shell its as follows:
    localhost: ~# serctl add 2000 password email
    MySql password: password
    My new code is below:
    String[] command = { "serctl", "add", username, password, email};
       Runtime runtime = Runtime.getRuntime();
       Process process = null;
       response.setContentType(CONTENT_TYPE);
       PrintWriter out = response.getWriter();
       String s = null;
       try {
         process = runtime.exec(command);
         System.out.println(process);
         BufferedReader in =
         new BufferedReader(new InputStreamReader(process.getInputStream()));
         BufferedReader error = new BufferedReader(new InputStreamReader(process.getErrorStream()));
         OutputStream stdout = process.getOutputStream();
         String pwd ="password";
         while((s=in.readLine())!=null)
           //s = in.readLine();
           System.out.println(s);
           if (s.equals("MySql password:")) {
             stdout.write(pwd.getBytes());
             stdout.flush();
             break;
         System.out.println("Here is the standard error of the command(if any):\n");
         while ((s = error.readLine()) != null){
           System.out.println(s);
         stdout.close();
         in.close();
         error.close();Any more ideas?
    Many thanks for help so far,
    Aisling.

  • Online Radhat linux and sunsolaris shell means with out installation I use

    Hello every one,
    1.can any one tell me how can I use online red-hat Linux shell (means with out installation I use online Linux shell or terminal).
    2. how can I use online sun solaris unix shell (means with out installation I use online sunsolairs shell or terminal).
    Thanks ,
    Regards,
    Shahbaz khan

    Remote access to a Linux/Unix based system is usually accomplished by screen sharing using VNC, or by a remote text based terminal session using ssh and telnet. The use of Telnet is generally considered obsolete and has been replaced by ssh for security reasons. You can also tunnel X-windows through ssh to to run remote X-windows applications on the X-windows server running on your client PC computer.
    The software you need for ssh or VNC will depend on your preference and current client operating system. If you use e.g. Apple MacOS X, you will not need to install any additional software. If you use Windows you can download free Putty for ssh access, or RealVNC client.

  • Pass commands to UNIX shell opened in Windows XP OS

    I am currently running Labview 7.1 on a Windows XP box.  I use Exceed to open a UNIX shell to do work in UNIX from my windows machine.  I can open the UNIX shell with the sys exec vi but how do I pass commands to the UNIX shell I opened?

    Purp1eOne wrote:
    I went to the sourceforge site to take a look and started the install process but after looking at the install instructions it says I need a run time engine of 8 or greater which I don't have:
    Kind of a novice here but I don't think this will work with LabView 7.1, will it?
    Also make sure you have
    the LabVIEW 8.2.1 Run-Time Engine installed.
    View Member Profile
    ipsmenu.register( "post-member-26", '', 'popmenubutton-new', 'popmenubutton-new-out' );
    Jul 17 2006, 08:53 PM
    Post
    #1
    Group: JKI Team
    Posts: 167
    Joined: 10-July 06
    Member No.: 7
    Note: The LabVIEW 8.0.1 and 8.2.1 run-time engines can co-exist
    together with the LabVIEW 8.5 (and newer) run-time engine. You still
    need to install the run-time engine's listed below to use VIPM, even if
    you have a newer version of LabVIEW installed.
    VIPM 1.1 and 2.0
    VIPM 1.1 and 2.0 require the LabVIEW 8.2.1 run-time engine installed on your machine.
    See also:Where do I get the LabVIEW 8.2.1 Run-Time Engine?
    VIPM 1.0
    VIPM 1.0 requires the LabVIEW 8.0.1 run-time engine installed on your machine.
    See also:
    Smercurio is right, and their is no OpenG package for the newer VIs so you will actually want to get them directly from CVS.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Problem with unix "foreach" command

    Hi,
    I am facing a problem with unix command "foreach". I trying to process files using unix foreach command. When running the script with 500 or 1000 files. It is running fine. But when I am trying to the script with 2000+ files. Its throwing an error "Arguments too long".
    below is the syntax I am using in the script:
    foreach name (*)
    end
    Could anybody help me on this issue.
    Thanks in Advance.
    Manasa.

    UNIX/Linux systems expand wildcards onto the command line before invoking the
    individual commands. In effect, the shell rewrites the command line you give
    substituting the wildcard expansion. There is a limit to how long this command
    line can get.
    For example, suppose you have two files ("foo" and "bar") in your directory.
    The line:
    foreach name (*)
      echo $name
    endgets rewritten to:
    foreach name (foo bar)
      echo $name
    endand then the shell starts interpreting your script. So if you have many, many
    files, the rewritten line becomes:
    foreach name (f1 f2 f3 ... f10927)
      echo $name
    endso chances are the "foreach" line simply gets too long. To avoid problems do
    it this way; it avoids any problems based on how many files you have:
    ls | while read name
    do
      echo $name
    doneThis way the shell never exceeds its line length limitations because the
    wildcard is never expanded.
    Cheers

  • Running Shell Commands (not Executable) in Unix from Java

    What are my options to run shell commands from Java?
    My goal is to change my existing shell environment variables to some new ones provided by .anotherProfile.
    Using an executable from Java is not an option because it does not work i.e. ( exec(". /home/.profile") ) brings up errors.
    Someone has suggested that I start a child shell with that profile and work from there, but I'm unfamiliar with that sort of syntax and programming in general.
    Any good help equals duke dollars :)

    Well there are some possibilities. In the original thread you mentioned that you wanted the shell script to be executed to change some enviroment parameters of the shell the JVM is executing in.
    If so, and you are able to rewrite the profile so you can parse it manually. Then you can change some environment setting by writing the JNI wrappers for the getenv and setenv system calls. (Check your man pages)
    That will change the environment. I am just wondering what good it will do for you? What's use of sourcing the profile in a JVM?

  • Schedule workbook using with Unix shell script

    Hi,
    Can we schedule workbook using with Unix shell script?
    Thanks,
    Jay

    I can't imagine how.
    1. You can schedule Disco workbooks via Disco itself.
    2. You can schedule Disco workbooks to run and output in different file formats automatically via batch scheduler in Windows running Disco Desktop directly (or can user VBasic).
    3. You can schedule Disco workbooks to run and output in different file formats automatically via a Java program running the Java Command Line interface.
    Moving forward, Oracle has announced that with a further interfacing of Disco with XML Publisher, you'll be able to use Oracle Apps concurrent manager and scheduling. But that's coming supposedly at the end of this year.
    And I think that's about it.
    Russ

Maybe you are looking for

  • Opening the file in read only mode

    hi all, i am using i want to open any type of files in read only mode using host command.so first i am setting the attribute to read only and then opening the file. But still the opened file is editable. i have written like below Host( 'cmd /c  attri

  • Trying to return a defective Lenovo Mini Wireless Keyboard 57Y6336

    I am hoping someone can help me since at this point I am completely frustrated. I received a Mini Wireless Keyboard Friday I ordered direct from Lenovo. It turns out it is defective and phone support has been completely useless as far as I can tell.

  • Internal Transfer, BOD, Planning Time Fence and ASCP Reschedule suggestion

    Hi, we've an ASCP plan with 5 ORG. We've many items with BOD like this one: BOD of ITEM X: ORG 1 BUY ORG 2 TRANSFER FROM ORG 1 ORG 3 TRANSFER FROM ORG 1 Using this rule, we set PLANNING TIME FENCE for Buy items, at about 0,7 * LEAD TIME (from the app

  • Bridge shows wrong pdf size

    I'm browsing a folder of Photoshop pdf documents, with 4000x3000 pixels size but bridge shows 1134x850 size instead of the correct size. Any idea why ? Thanks

  • Erreur /000 lorsque plusieurs instruments sont relies sur un meme bus rs485

    Societe EFJM, 3 rue descartes 28350 St LUBIN dES JONCHERETS Tel 02.32.58.10.09 Interlocuteur : Mr CHEMIN Mme, Mr Nous nous sommes procurer votre software : "Measure" fonctionnant sur Excel pour communiquer avec des regulateurs de temperature et de pr