Host command in oracle forms

can anyone any one help me on this issue
i am trying to use host command in a.s which is running in unix o.s to rename one of the file i am using the below command but its not working . can any one tell me whats worng or how to perform this
the_command := 'mv /dir/filename1 /dir/filename2' ;     
     HOST(the_command,NO_SCREEN);

I don't think you can do this with host like you did.
You can create a script which accepts filename1 and filename2 as parameters and call this
move.sh:
mv $1 $2
then call the script
host('/home/oracle/move.sh /dir/filename1 /dir/filename2', no_screen);
or if this doesn't work (in windows it works in 6i to call .cmd files without prefixing cmd /c don't know if this is also in unix, but you can try), you can call bash to do this
host('/bin/bash /home/oracle/and_so_on
regards
christian

Similar Messages

  • HOST Command in oracle forms 10g

    Hi,
    I need to use HOST command to run an OS(Unix) command in Oracle Forms 10g.
    Its throwing a non-oracle exception during run time.
    Is there any kind of configuration/settings that I need to check before using HOST command?
    Is there any way to capture the error description?
    Any help will be highly appreciated!
    Thanks,
    Ankit

    Thanks Thangaraj for your valuable suggestion!!
    One question though..
    Should'nt ORACLE_HOME be an absolute path?
    I have added "/bin" in FORMS_PATH but not sure if we can do the same with ORACLE_HOME.
    Can you please suggest?
    Regards,
    Ankit

  • Use Host command in Oracle forms 6i

    hi
    all
    i use Oracle forms 6i i run in a web and in that i have connect one server so,
    i have to use Host Command and i have to fire this command
    host (' net use \\windchillsvr\e\jyotionline /user:dwg_users dwg_users');
    But it's Not Connect
    My Forms in run in Web
    so help

    JavaBean does d othe job for you but it requires signing process; I used it when I was working on forms6i for our project.
    I could use another approach that is the file type command executable which it stays in client's PC to do it and it does not requires signing at all since I am now working on the Java EE project for downloading and launching the third party tool in client's PC.
    I plan to write a article for forms use, which could do all the heavy WebUtil can do, but not need to go thru the signing process.

  • Can't Call host command on Oracle Forms 10g on LINUX  ap server

    I have oracle developer suite 10g installed on Windows.I want to do some file operation in ap server(linux as 3)
    I can use the script in the terminal on linux. but i can't use it on form . this is the button press trigger!
    declare     
         a varchar2(200);
    begin
         a:='mkdir -p /data/apps/ygm';
    --     message(a);
    host(a);
    end;
    When the trigger execute, the linux hasn't do anything!
    What should I do?

    Check and make sure you've added the appropriate bin directories in the default.env file. I ran into the same problem with forms on OAS on HP-UX.
    Steve.

  • Hide user/pwd when  running sqlplus job via HOST cmd in oracle forms

    I have a oracle procedure that returns the run_command string. Ex . ‘sqlplus ui/pwd @report.sql’. The run_command string returned by the procedure is run via the HOST command in oracle Forms.
    HOST(run_command) submits the job but it exposes the ui and pa that is used in the run_command string. On UNIX, if I do ps –ef | grep sqlplus after the job is submitted by the HOST command, I can see the ui/pwd in the run_command.
    How can I submit the job via HOST command without exposing the ui/pwd ?
    Thanks
    GP

    Of course, the Operating System Authenticated account method should only be used if you are running this job on the machine with that's running the Oracle instance. You absolutely do not want to turn on remote authentication. If you're not on the same machine, I would suggest you put the credentials in a file and secure it with filesystem privileges. I generally use a single generic script initiator that logs on and then runs some other script specified on the command line. Something like ...
    username/password
    @&1Note: the extra "--/--" lines ensure that the script fails with invalid login if the credentials are wrong but they get interpreted as comments if the logon succeeds.

  • Any command to get IP host address in Oracle Form 6i?

    Dear all,
    Any command to get IP host address in Oracle Form 6i?
    Best Regards,
    Amy

    Amy,
    There is sample code on OTN that allows you to fetch client information such as the IP Address with Forms 6i. Here is the link:[Get Client Information|http://www.oracle.com/technology/sample_code/products/forms/6idemos.html]
    Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • Host command in application FORMS (access denied)

    i try to use a host command in a form in apllication server vs 1.0.2.2a that call a copyfile.bat.
    J see that this operation send me a message to the server console with "access denied", instead if a use this file from the server works.
    Do you Know something??

    Check out the file and directory permission for the files you are trying to manipulate. Make sure that the user that runs the Forms Seever have the requiered permissions to manipulate these files and directories.

  • Host command from D2K Forms

    Am calling the sql loader (sqlldr73) using HOST command from D2K Forms 4.5.
    my code has following sequence,
    <sequence of stmts 1>
    Host(....);
    <sequence of stmts 2>
    the stmts(<sequence of stmts 2>) following the call to HOST commant should be executed only after successful execution of the sql loader.
    curently the sql loader and stmts(<sequence of stmts 2>) are running parallely
    Is there any work around?

    Hi,
    Better way to do it would be to write a batch / shell script with the sequence of statements you want to execute and call the batch file using the host command.
    Regards,
    Arun

  • HOST Command Equivalent In Forms 9i

    We are migrating from Forms 5.0 to 9i. The current application is using lot of HOST commands in Forms 5.0.
    As we knw HOST command is deprecated in Forms 9i, what method to be followed to recode this feature?
    Thanks in advance.

    The client_host command that ships with the WebUtil package runs the command on the client workstation in a web deployed environment.
    HOST runs the command on the machine where the Forms application/executable is running. This can a number of places:
    - When running the later versions (web deployed) this is your application server
    - When running GUI Forms in client/server mode this is the client workstation
    - When running character bases Forms this is the machine that runs Oracle Forms. That could either be the client itself or a server that you access through telnet.
    To come back to your question: client_host cannot be used to execute an operating system command at the database server. Personally, I would use DBMS_SCHEDULER for this an schedule an EXTERNAL JOB to be executed immediately. A Job of type External contains an Operating System command or script that gets executed.
    Forms 5.0 is mostly deployed as a GUI client/server application. I don't know if it still supported character mode. Forms 3.0 was a true character mode application (no GUI yet). Forms 4.0 and 4.5 supported GUI and character mode as well.
    You state that character mode Forms run on the database server, which is not necessarily true. Character mode Forms can run on whatever machine you want; a client desktop, a central Unix/Linux server or the database server itself. If it doesn't run on your local workstation you just need telnet access to the central server running Forms.
    You are correct that client_host is used when migrating from client/server to the web. If you're still running character based Forms on the same server as your database, I would advice using the DBMS_SCHEDULER approach previously described. This keeps you from writing and maintaining a Pro*C program.

  • Calling SQL Loader using HOST command from Developer Forms 4.5

    I want to execute a set of code from D2K Forms 4.5 which has interfface with Client - OS ( In my case Windows NT/XP). I want to execute SQL Loader from Forms using Host Command and then after completion of that process, I want to do next transcations ( depending upond success of HOST/SQL Loader).
    How to achive this?
    I tried writing code like this ...
    l_vc_command := 'sqlldr73'
                        ||' USERID='||l_vc_username||'/'||l_vc_password||'@'||l_vc_connect_string
                        ||' CONTROL='||l_vc_filepath||'Upload.ctl'
                        ||' DATA='||LTRIM(RTRIM(l_vc_fileloc))
                        ||' LOG='||l_vc_filepath|| l_vc_log_file || '_' || l_dt_sysdate_str ||'.log'                    
                        ||' BAD='||l_vc_filepath|| l_vc_bad_file || '_' || l_dt_sysdate_str ||'.bad'
                        ||' DISCARD='||l_vc_filepath|| l_vc_discard_file || '_' || l_dt_sysdate_str ||'.dsc';
    HOST(l_vc_command,NO_PROMPT);
    After this command i want to do some other code execution. so even if it fails or success, next code is executed. How to control this?
    Please help..
    Regards,
    Milind

    Forms6i running on W2000, Rdbms 8.1.7
    in Forms I added a button TEST,
    Trigger when-button-pressed : host('test.bat') ;
    in directory .......\frm I added file test.bat :
    REM ===============
    cd /d C:\........\ldr
    pause
    sqlldr parfile=test.par
    pause
    type test.log
    pause
    exit
    REM ================
    now, pressing TEST button opens DOS window, telling me what's going on, running sqlldr, finally going back to forms
    Are you using NO_PROMPT or NO_SCREEN option of HOST command ?
    Had a look at Forms 4.5 manuals, there is no mentioning of (a)synchronously operation in connection with HOST command.

  • Host command in Oracle Reprots 10g

    How to run an executable file from Oracle Reports?
    Can I use a host command?
    What is the syntax?

    Hello,
    To import a java class in a Reports , use the menu :
    Program -> Import java classes ...
    in the Reports Builder.
    The document 361857.1 is available on My Oracle Support :
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=361857.1
    Regards

  • Use Host command in Oracle Database Trigger

    I need to run Host command from a database trigger in order to execute a sh file in a Solaris, Unix, environment. How can I do it? The database environment is in Solaris and the database is 10g.
    Please let me know as soon as possible.

    Hi,
    read this <http://devtrigger.blogspot.com.br/2012/08/svn-backup-on-unix-or-solaris.html>
    Or
    you can to run in nohup. For example
    You can a script with the command vi about your trigger and run with the sintaxe bellow:
    nohup sqlplus "/as sysdba" @script.sql &
    Where "script.sql" is the name of the your file.
    Kind regards,
    Bruno Reis.
    www.brunors.com

  • Host command with 9i forms

    HI Gentlemen,
    I have a working forms application in 8i which I migrated to 9i. I have to export several tables by means of the exp utility. This will be called thru host('exp ...') in a WHEN-BUTTON-PRESSED trigger. Unfortunately, the command is skipped with no error message returned. Since I am entirely in a Windows XP environment with all 3 tiers on the same machine, platform dependency does not come in. Where am I mistaken?
    If you have an idea, let me know it.
    Thank you in advance, regards from
    Miklos HERBOLY

    Sounds like it's not finding the exp executable. You probably don't have tbe necessary environment variables set, specifically PATH which would include the ORACLE_HOME/bin reference.
    Replace the host('exp ...') call with this, run the form and examine the file generated:
    host('set >c:\temp\set.txt')
    Best of luck,
    ejs

  • What is command in Oracle form 10g to check network which using webutil?

    All friend have know command to check network which using webutil then let's tell for me know, example as using client_host('cmd /c ping dantri.com').
    But i don't know express. Let's me find it. Thanks you very much!

    Ok,thanks you very much, because i doing a program at company, it related to server. I want to check network of this server to if ping local server is reply then will do upload data to folder on server file, if ping server is not connect then keep in C driver local. Now i not yet find solution about this problem. I hope all friend may be help me find way. Thanks you!

  • Attach pdf files in oracle forms 11g

    Hello everyone, I would like to know if is possible and how to attach a pdf file in oracle forms, and how to open it to read it
    thanks

    hello ,
    u can also try out a HOST command in Oracle Forms.
    Give path of PDF file and it will open PDF directly.
    Thanks
    HARSH SHAH

Maybe you are looking for

  • Getting error while importing SPAM update

    hello , We are getting folowing error while updating SPAM : The import was stopped, since an error occurred during the phase CHECK_REQUIREMENTS, which the Support Package Manager is unable to resolve without your input. After you have corrected the c

  • Rejuvenation missing files

    Having completed rejuvenation upon reboot my x60 tells me windows could not start because the following file is missing or corrupt: \WINDOWS\system32\c_1252.nls is there any way to reverse this without back up discs as i have none if not will restore

  • Log version status for message in PI message monitoring

    Hi All, we send IDocs from ECC to PI and then external systems. It's working fine all the time But third party system did not recieve only one message out of many. This missing message showing in PI  is like LOG version when I look at in monitoring.I

  • 1410 Bridge Error Message

    Has anyone seen this error before? DOT11-3-TX_PWR_OUT_OF_RANGE: Interface Dot11Radio0 Radio transmit power out of range 1410 Bridge ...  Cisco documentation simply states "Remove unit from netowrk" ....

  • Realms with different top-level domain

    I'm testing OCS 10.1.2 and I am interested in setting up multiple realms. Must all realms be in the same top-level domain? I see in the examples (like in Note Note:317434.1) names like this: - Default realm created at install: dc=us,dc=oracle,dc=com