Operating system Cammand such as UNIX command using PL/SQL

Hi All,
I am using forms 4.5 using oracle financials 10.7 and I want to execute an operating system file such as move on server side. I am able to do it on client side using host command but cannot figure out how I can use it on server side. I am using following version of oracle:
Oracle8i Enterprise Edition Release 8.1.7.3.0 - 64bit Production
PL/SQL Release 8.1.7.3.0 - Production
CORE 8.1.7.0.0 Production
TNS for HPUX: Version 8.1.7.3.0 - Production
NLSRTL Version 3.4.1.0.0 - Production
Thanks
Aqil

If I dont have java support is there no way to solove this problem?Steven Feuerstein provides some simple example here
http://apex.oracle.com/pls/otn/f?p=2853:4:12114297745467903505::NO::P4_QA_ID:3202

Similar Messages

  • Excute Unix command Using PL SQL

    Greeting,
    how can I execute shell unix commands from PL SQL and without passing by the Java virtual machine, because my database server is not very performant to support the heaviness of Java.
    Thank you for ur help!!!

    Is this what you need ?
    TEST@db102 SQL> create table test(dir varchar2(100), url varchar2(200));
    Table created.
    TEST@db102 SQL> insert into test values('/tmp','http://otn.oracle.com');
    1 row created.
    TEST@db102 SQL> commit;
    Commit complete.
    TEST@db102 SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [ora102 work db102]$ cat /tmp/wget.sh
    #!/bin/bash
    rm -f /tmp/index.html
    /usr/bin/wget -P $1 $2
    [ora102 work db102]$ sqlplus test/test
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 29 17:11:28 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    TEST@db102 SQL> DECLARE
      2     v_dir   varchar2(100);
      3     v_url   varchar2(200);
      4  BEGIN
      5     select dir, url into v_dir, v_url
      6     from test;
      7     DBMS_SCHEDULER.CREATE_JOB(
      8     job_name=>'testjob',
      9     job_type=>'EXECUTABLE',
    10     job_action=>'/tmp/wget.sh',
    11     number_of_arguments => 2,
    12     enabled => FALSE);
    13     dbms_scheduler.set_job_argument_value('testjob',1,v_dir);
    14     dbms_scheduler.set_job_argument_value('testjob',2,v_url);
    15     dbms_scheduler.enable('testjob');
    16* end;
    TEST@db102 SQL> /
    PL/SQL procedure successfully completed.
    TEST@db102 SQL>sorry for lost indentations, but tags do not help us these days....

  • Unix command using in pl/sql

    Hi all,
    Can we use unix command in pl/sql statement..
    Regards,
    Manikandan.k

    Hi Manikandan,
    You cantry this via Oracle Database Jobs. You can create a Job that uses your Shell Script & then execute the job in a procedure / function. It's one of the ways to access the underlying Operating System via PL/SQL.
    Regards,
    Sandeep

  • Execute unix command using java

    Hello
    Can we execute a unix command using java? If it is how we can execute. Is this affect the performance of the program.
    Thanks

    I tried what you said. But its not working and returning error message,
    java.io.IOException: CreateProcess: ls -a error=2
         at java.lang.ProcessImpl.create(Native Method)
         at java.lang.ProcessImpl.<init>(Unknown Source)
         at java.lang.ProcessImpl.start(Unknown Source)
         at java.lang.ProcessBuilder.start(Unknown Source)
         at java.lang.Runtime.exec(Unknown Source)
         at java.lang.Runtime.exec(Unknown Source)
         at java.lang.Runtime.exec(Unknown Source)
    If i try this statement,
    Runtime.getRuntime().exec("c\windows\notepad");
    It is working fine.
    Any idea about this.
    Plz ...........

  • I found the operating system very confusing and hard to use. No tutorial. Manual and online help were outdated.  Tool bars, programs and documents randomly appeared and disappeared. Programs I installed completely disappeared. Anyone else experience this?

    I found the operating system very confusing and hard to use. No tutorial. Manual and online help were outdated.  Tool bars, programs and documents randomly appeared and disappeared. Programs I installed completely disappeared. Anyone else experience this?

    No need to apologize, Jim.  I think your rant was justified.  For years people have been telling me how easy the Mac was to use.  Imagine my frustration when I finally learned from friends and users that it takes weeks or months to make the transition from Windows to Mac.
    Still, I agree that I acted to too hastily when I returned my mini-mac to the store only three days after I bought it.
    I'm going to try again, this time with an iMac.  This time I'll keep it.  Since this thread is for the mini-Mac only, I'll probably be starting a new one for the iMac.
    Why did I decide to try again?  Well, I do like the faster speed and compact hardware of the Macs.  I also like the fact that I can install Windows and use that for my programs until I transition completely to Mac, IF I make the complete transition.
    Thank you all for your suggestions and advice.  I have paid attention to what you said.
    Andy

  • Run a shell command using Pl/Sql

    hi all
    i wonder if anyone knows a way to run a shell command using pl/sql
    other than java stored procedure
    as it seems not to be working in my case
    thanx in advance,
    Rasha

    ofcourse not
    i sent it once then i've got disconnected from interent then i reconnected
    and resend my question so it was sent twice
    now i hope you can answer my question !!!
    Do you really think when asking twice or more often you will get a quicker answer?

  • How to get Operating System Space Info from Oracle database using SQL

    Our oracle databases are installed on Unix operating system. Currently our DBA wrote a view to get space info of table spaces and He is requesting me to add Operating system level(file system) drive space info to the same report.
    Can you please let me know the easiest way to get this information to sql table so that it can be used for reporting purposes?

    You should be able to create a shell script with the OS commands to generate the information for the mount points that you want to access in Oracle, then read it in as an external table using the preprocessor feature of external tables:
    http://download.oracle.com/otndocs/products/database/enterprise_edition/utilities/pdf/xtables_preproc11g_1009.pdf

  • Running unix command using java shows error

    Hi All,
    I am trying to run UNIX move command using Java exec method but its throwing error, unable to rename. Here below is the code i am trying to run to move all files from one directory to another directory. source and destination directory exists.
    public class Demo
        public static void main(String args[])
            try
                Runtime rt = Runtime.getRuntime();
                Process proc = rt.exec("mv /home/demo1/* /home/demo2");
                int exitVal = proc.waitFor();
                System.out.println("Process exitValue: " + exitVal);
            } catch (Throwable t)
                t.printStackTrace();
    }if i give "mv /home/demo1 /home/demo2" in exec method, its working, with * character its giving problem.
    Please help me in resolving the problem.
    Thank you

    Characters like *, >, &, |, etc. are interpreted by the command shell--that is by the bash, zsh, etc. programs. When you execute a command with ProcessBuilder or Runtime.exec, you're not going through one of those shells, so their interpretation of those characters is not available.
    In your code, the character * is being delivered directly to the mv command (which doesn't think * is anything special), as opposed to being turned into a list of files and directories as it would be when it's interpreted by the shell. The mv command doesn't know anything about the * character being special.
    If you want to have those shell interpretations, you need to execute the command through a shell. One example is like so, but a) you'll want to read up on the methods in exec() that take arrays of String, and b) you'll want to read up on ProcessBuilder, and c) you'll need to check your shell's man pages to see the exact syntax and arguments.
    runtime.exec("/bin/bash -c 'mv x/* y'");

  • How can I file share with another person if both of us are using Mac operating systems?  Do we need to use a third party file sharing system or does apple have this capability?

    How can I file share with another personif both of us are using Mac operating systems (one of us using a Mac laptop and the other using iMac).  Our intention is to have a working document that can be changed by both parties over time and both parties will have visibility to the others changes.

    Use SugarSync

  • I am trying to download Adobe Flash Player onto a Vista Oper. system.  What version do I use?

    I am attempting to download Adobe Flash Player onto a Vista Operating system, which version do I use?

    Use the latest 32-bit version (11.2.202.235).
    The 64-bit version is not officially supported on Vista; however, if you have Vista 64-bit, you may try if you succeed installing and running the 64-bit version of Flash Player.  You can download the installer(s) from http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#ins tall_in_a_firewall_proxy_server_environment

  • Had to reinstall operating system and now I can' t use my iCloud drive because it says my user id is already using the drive!

    I had to reinstall the operating system on my computer and now I can't access my iCloud drive.  It says the user id is already using it.  Help!

    Yeah I have the original CDs. And I have backed up some stuff. But shouldn't things like safari and itunes be working anyway? The applications are there, they just won't open. Someone told me would lose my preferences and just had to update them again, but I can't do so cause safari doesn't work and internet explorer won't let me get on certain sites...

  • Help with 2 UNIX Commands using ARD

    Hello All,
    Can someone help me with 2 UNIX commands I would like to set up? The first one... how to delete a range of users within /Users by date (i.e. the oldest user who last logged in "Mar 22 09:40 00796216" to "Mar 25 17:01 01036773"). Currently, I'm using "sudo rm -r " followed by each home directory name separated by a space. It works but to save time, it would be nice to do this all within 1 UNIX command.
    Second, is there a UNIX command where I can delete a range of users by ID numbers? (We have users assigned with an 8 digit ID number. Is there a UNIX command where I can delete users from 12345678 to 23456781?) Again, I'm using "sudo rm -r " followed by each home directory name separated by a space.
    Thank you in advance!
    Mike

    This happens with or without SIM card, with and without wifi... with and without SD card as well-- even bought a new 32GB class 10 SanDisk-- but it still crashed.
    Just an update: Went to the Nokia Care Center yesterday, they reflashed the firmware and I got back the phone within the day... when I went back home to try the phone again... again it kept hanging... in a period of 5 minutes, I had 5 hangs... right from startup, went straight to the cam, took some pics then pinched zoom... and phone simply crashed-- had no SD car, no sim card then.
    So today I went back to Nokia Care Center... they said they will do some more tests and see... but they insist its a software problem, we'll see in a day or 2.

  • How to Move file / call UNIX command using ABAP Program

    Hi, ABAP Guru.
    I need to Cut & Paste file (Move file from one location to another location) on Network Shared Drive using ABAP program.
    But I can't figured out how to do this and what ABAP Command / FM / Method (and maybe UNIX command) that being used.
    Please give me the advice.
    Best regard and Thank you all.
    Nattapash C.

    all methods for your requirements should be in class CL_GUI_FRONTEND_SERVICES

  • Which operating system is best for computer control using LabVIEW

    I am using LabVIEW 7.1 and want to write a program to control a system of pumps, heaters, and  compressors.  I am wondering if using Windows XP is a bad thing, given how many background processes computers tend to use these days.  I don't want my computer to slow down for intermittant checking for updates, or any other sort of routine maintenance computers are set up to do.  I have heard mixed things about windows reliability and computer control, most of which is people saying windows could crash and completely ruin my tests.  Does anyone have any advice on the best operating system to use for continuous computer control of my system? 

    If you plan on using a desktop PC for control type applications, then your best option in terms of performance will be with a Real-Time operating system. Windows is not deterministic for many reasons. Determinism involves the ability to respond to an event within a specified amount of time with an acceptable amount of error (jitter). First of all, Windows is not deterministic because it has to service mouse and keyboard events, as well as anti-virus software, automatic updates, etc.
    You can, however, convert an existing desktop PC to a Real-Time target with a Real-Time OS and use it for your control type application with the deterministic behavior of PXI, Compact FieldPoint, and other Real-Time targets. Check out this link for more information.
    On a side note to a previous reply, using the LabVIEW Real-Time module on Windows XP won't make your application deterministic. Your best bet, as others have noted, is to use the LabVIEW RT Module on an RT OS with good RT programming practices (avoiding memory allocations, etc.).
    Jarrod S.
    National Instruments

  • How do I reinstall the operating system on my MacBook Pro without using my apple id?

    I'm selling my computer. Everything has been erased. Now the operating system, Lion, needs to be installed. I believe the computer did not come with a cd so reinstalling is done through wifi.

    Katacali wrote:
    We bought it in January 2010. I'm not sure what OS it came with but when I look at the dates of each OS on wikipedia it looks like it came with Snow Leopard. The only disk I happen to have is Leopard.
    Let's drop back a minute and go through what you can and cannot do with this machine.
    1.  If the machine came with Leopard, you can install Leopard and then go to Snow Leopard and up the line of the on-line Mac OS X versions, that is, Lion, and Mountain Lion and Mavericks as compatible.  If the disk for Leopard that you have is a grey face disk, that is a machine-specific disk and will only work if it is the disk that came with your MacBook Pro.  If it is a panted face (black) with a large silver X it is a retail version and will install IF your machine came with Leopard.
    2.  If your MacBook Pro came with Snow Leopard, it will not install Leopard.  If it came with Snow Leopard and is a 2010 machine, it will not install the retail version of Snow Leopard since that is 10.6.3 and the 2010 and later machines came with 10.6.6 preinstalled.  You must call Apple Customer Support and have them send you the machine-specific install disk for that machine.  There is a fee of something like $20 in the US for doing that.
    3.  If your machine came with Snow Leopard, you need to reinstall Snow Leopard and then move to the on-line Mac OS X versions, you cannot download a version with your Apple ID associated with the version currently on the machine.  The starting point HAS to be Snow Leopard for the new owner to do an on-line Mac OS X download.
    4.  With Snow Leopard installed and on-line software updated to 10.6.8, the new owner can then move up to Lion or above depending on the compatibility of the hardware.  To move to Lion or above the machine must have an Intel Core 2 Duo processor.  To move to Mountain Lion or Mavericks the machine must meet the requirements in http://support.apple.com/kb/HT5842. 
    At any rate, the new owner must install Snow Leopard on that machine before any move to one of the Mac App Store versions of Mac OS X.

Maybe you are looking for

  • Windows bad image in Vista playing wmv file error with Acro8professional

    I have created a multimedia file with movieclips and audio. The file plays perfectly on XP2 and XP3 machines. However I have one Vista machine which reports a bad image error when clicking the play button for the movie. This error will display after

  • Header text in purchase order

    created text in so10 with name dms_inst while creating po with header text, i will enter in text editor with the name dms_inst when saving the the so10 text should be save in headet text. using the  badi ME_PROCESS_PO_CUST. in the pst metthod used th

  • Jar files for using BRM API's

    Hello, I am not able to locate the Jar files for using BRM API's. I have tried searching the forum and did not find the name or location from where I can get them. If they are available on the server I could ask the basis team to give me a copy. Any

  • Get running instance names

    Hello, we are trying to build a list of running server processes in a SAP Java Server >= 7.10 from inside the system. At the moment we are able to retrieve the internal IDs of the active server processes with JMX. So we have a list of numeric values.

  • Opening Color 1.5 with 1.0

    Is it possible to open and change an apple color session that was done in 1.5 with 1.0?