Host command on linux with forms 10g

Dear Experts
i have one major problem as i have made a form in forms 10g to upload .dmp files copied in application server my problem is that when i excute host command like bellow
cmdln := './imp.sh'
host(cmdln)
to excute and run shell script saved on application server which runs an imp command to upload all files copied in specified location but nothing is happening when i click on button as these command are fired on when button click trigger plzzz help its urgent
were i can make mistake

Whoa...please don't use txt speak when posting here; it is very hard to read and right now it took me about 5 minutes to understand what you have written. Please write proper sentences; help us to help you ; )
It is a good idea to have exact the same verison of exp / imp then your database version; Forms 10.1.2.0.2 would be compatible with a 10.1 database. If your database is e.g. 10.2 you'd need to install the 10.2 client software on your application server anyway. You wouldn't need to care about this when using datapump.
And another thing regarding datapump: conventional export is deprecated in 11.2 so one day or another your customers will need to move to datapump; the sooner the better.
As said: try to run your script on the shell without forms and see if this works. You would see error messages generated by your shell script too.
cheers
Edited by: christian erlinger on 19.05.2011 01:14
that damn smileys don't work anymore

Similar Messages

  • HOST command not working in forms 10g

    Hi,
    I have migrated forms 6i to forms 10g, and having a requirement to open sqlplus prompt using a form menu. I have used the below command: -
    "host('sqlplus '||user_name||'/'||pass||'@'||sid, no_screen);"
    But I am not able to get the sqlplus window, and the main form is still in process for long time, till i bounce the server.
    The forms are deployed on Oracle Applications Server 10g and i want to run it on server side.
    Please help me with the problem.
    Thanks,
    Ankit

    The deployment architecture is different between forms 10g and forms 6i.
    In Forms 6i HOST built-in command will run on the client machine since you are running as client/server, but in WebForms (Forms10g) the HOST built-in command will run on the middle tier which is your application server machine.
    In order to run hosts commands in WebForms you need to use webutil and use CLIENT_HOST in the webutil.
    check the [Forms 10g R2 Demo|http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip] for sample codes of webutil.
    You are using NO_SCREEN in your example, this will hide the window.
    Tony
    Edited by: Tony Garabedian on Nov 26, 2009 2:43 PM

  • I try to create a directory on a mapped directory with forms 10g ?

    Hello !
    I try to create a directory on a mapped directory with forms 10g in web environment. The mapped directory is located on the application server. For this, I use this command : host('cmd /c md h:\test'); and it doesn't work.
    When I execute this command directly on the server, it works good...
    Thanks
    Pascal Mottay
    France

    Hello !
    I try to create a directory on a mapped directory with forms 10g in web environment. The mapped directory is located on the application server. For this, I use this command : host('cmd /c md h:\test'); and it doesn't work.
    When I execute this command directly on the server, it works good...
    Thanks
    Pascal Mottay
    France

  • HOST COMMAND ON LINUX

    hi all
    i'm trying to execute a host command from the oracle form on linux operating system. all commands are executed under the linux user OPS$THIN . i want to change this user. i tried a shell script to change the user i.e: switch user (SU) and it did not work. i checked the script privileges and it's 777.
    plz help
    thanx

    Hi Francois
    Yes that user has all the rights. To prove that I have the following code
    declare
    in_file text_io.file_type;
    linebuf varchar2(200);
    infile1 text_io.file_type;
    begin
    /*host ('/bin/sh /u01/apps/nucleus/a.sh',screen);
    if NOT Form_Success then
    message('failed ');pause;
    else
    message('Form_Success');pause;
    end if;*/
    in_file := Text_IO.Fopen('/u01/apps/a.txt', 'r');
    infile1 := Text_IO.Fopen('/u01/apps/a1.txt', 'w');
    Text_IO.Get_Line(in_file,linebuf);     
    text_io.fclose(in_file);
    text_io.put_line(infile1,linebuf);
    text_io.fclose(infile1);
    End;
    Now a1.txt created.
    Thanks
    Muthu

  • How can i use jpg extension with forms 10g and webutil

    I have a form with webutil and i want to open imege jpg extension but thier are Bmp but my
    image jpg and image item has no jpg extension .
    How can i use jpg extension with forms 10g and webutil ?

    You can use the JFIF image format for jpg files.

  • Compile .fmb file in UNIX with forms 10g

    HI,
    Can someone help me in compiling a .fmb file in UNIX? I have created this .fmb file in Forms 10g.I have Oracle Applications in the Front end. I am unable to figure out the commands to compile the form which generates a .fmx file.
    I have placed the .fmb file in the UNIX directory. As Forms6i has f60gen....and 9i has f90gen...I want to know the code that I must execute in the command prompt of the UNIX server. I am a fresher to this. So please explain in as detail as you can.
    Thanks
    Dev

    if the previous doesn't help
    just put something like this :
    find where the frmcmp.sh is located an put the fully qualified path there
    make also sure you execute it with the right user! (normally oracle)
    I don't know if I already mentioned it bu be aware that you need to have an Xdisplay if your working with frmcmp.sh .
    There is a batch command to I believe that doesn't need the Xdisplay
    Remember you can use any display of any machine
    If you set your display to another hosts screen, type xclock on your prompt and the clock should appear on the others screen.
    If you don't know how to look for the command ....
    If it is in your PATH -->" type frmcmp.sh " will give you the directory
    If not go to <oracle_home> eg /opt/oracle -- > " find . -name frmcmp.sh "
    Erwin

  • How to keep the font in the design time appear in run time with forms 10g

    hi guys
    did anyone know if we can keep the font we choose at
    design time in form 10g r2
    appear in runtime cuz the java applet transformer it to
    fonts that it recognise and the original font disappear

    You need to map the font you are using for development to one of the proper Java fonts that is used by the server by editing the related lines in the Registry.dat file located under the BI installation (of the iAS server) The file is located under the BI_HOME/forms/java/oracle/forms/registry/ subdirectory.
    Here is an example from my Registry.dat file. I am using Helvetica when developing (I am on Linux for both iDS and iAS) and mapping it to Dialog (Java font). You can search this form and OTN white papers, I am sure you can find similar mappings for your font (for development) and deployment. I simply used trial and see method to find a solution for my case.
    # Default Font Face mapping.
    # appFontname represents a comma delimited list of Application Font Names.
    # javaFontname represents a comma delimited list of Java Font Names.
    # The number of entries in the appFontname list should match the number in
    # the javaFontname list. The elements of the list are comma separated and
    # all characters are taken literally, leading and trailing spaces are
    # stripped from Face names.
    # Note that this file uses the Java 1.1 Font names in order to be able to
    # handle the NLS Plane (BUG #431051)
    default.fontMap.appFontnames=Courier New,Courier,courier,System,Terminal,Fixed,Fixedsys,Times,Times New Roman,MS Sans Serif,Arial,Helvetica
    default.fontMap.javaFontnames=MonoSpaced,MonoSpaced,MonoSpaced,Dialog,MonoSpaced,Dialog,Dialog,Serif,Serif,Dialog,SansSerif,Dialog
    Hope this proves useful.
    R/ Zaf

  • Ole2 commands not working in forms 10g

    OLE2.set_property(Application, 'Visible', true);
    above statement not working in forms 10g;

    Try to use the OLE2 fuction from WEBUTIL library. There is function in webutil CLIENT_OLE2.
    -Ammad

  • Could not use 'host' command in my custom form in 11i

    Dear all,
    The 'host' command makes the application wait and leads to no further response.
    Thks & Bst Rgds,
    Edward

    Would anyone pls help me?

  • Error FRM-92102 with Forms 10g / AS 10g

    I'm trying to produce a Forms 10g (9.0.4) application which is deployed on AS 10g (9.0.4). The database (9.2.0.4), infrastructure layer, and middle tier all reside on the same physical machine. Access is via IE 5.0 using JInitiator. The application does not use single sign-on.
    The application works fine when I am the only user. However, when another user tries to access the application it only works for a few transactions.Then the 2nd user gets a "FRM-92102 A network error has occurred. The forms client has attempted to establish its connection to the server 1 time(s) without success." error. The java dump mentions "address already in use" (don't have access to full dump at the moment - sorry).
    The user is kicked out of my application, but remains in the Forms servlet.
    Not sure where to go from here, so any assistance will be much appreciated.
    Regards
    Brian.

    Try this setting in the formsweb.cfg file:
    networkRetries=10

  • Host command on Linux not working

    I am running forms10g (Mid tier is Linux and client is windows 2000) with the following code in when-button-pressed
    host ('/bin/sh /u01/apps/a.sh',screen);
    if NOT Form_Success then
    message('failed ');pause;
    else
    message('Form_Success');pause;
    end if;
    a.sh contains
    cp /u01/apps/a.txt /u01/apps/a1.txt
    and i am always getting the message('failed'). nothing show up on the screen, anything wrong in the code ?
    Thanks
    Muthu

    Hi Francois
    Yes that user has all the rights. To prove that I have the following code
    declare
    in_file text_io.file_type;
    linebuf varchar2(200);
    infile1 text_io.file_type;
    begin
    /*host ('/bin/sh /u01/apps/nucleus/a.sh',screen);
    if NOT Form_Success then
    message('failed ');pause;
    else
    message('Form_Success');pause;
    end if;*/
    in_file := Text_IO.Fopen('/u01/apps/a.txt', 'r');
    infile1 := Text_IO.Fopen('/u01/apps/a1.txt', 'w');
    Text_IO.Get_Line(in_file,linebuf);     
    text_io.fclose(in_file);
    text_io.put_line(infile1,linebuf);
    text_io.fclose(infile1);
    End;
    Now a1.txt created.
    Thanks
    Muthu

  • Performance issues with Forms 10G 10.1.2.3.0

    Hi,
    we are on the way to change our application server back to a smaller machine. At the moment we run the AS on a XEON Quadcore machine running at ~2 GHz with 4 GB memory, let's say AS-Quad. This is the case because we needed an intermediate platform.
    Now we want to go to the originally planned harware which is a single Core but Hyperthreaded XEON running between ~2.8 and 3.6 GHz with 12 GB memory, let's say AS-Single.
    OS is Windows Server 2003 SP2 64bit on both machines.
    Hard Disk is on a SAN for both machines.
    Both AS are not loaded right now because were still at the beginning of migrating from Client-Server.
    After installing the AS-Single, and copying/moving/changing the configuration files (formsweb.cfg, default.env, ...) from AS-Quad we think we have now 2 Application Servers which are nearly the same.
    But we see a big difference which hopefully can be solved :
    If we connect to AS-Quad the menu(Tree) and the first Form is displayed in approx 2 seconds, after that a reaction on keystrokes is immediately.
    If we connect to AS-Single the menu(Tree) and the first Form is displayed in approx 4 seconds, after that a reaction on keystrokes is very slow for a couple of time.
    If we start a form which just displays some records from a table, scrolling through the data on AS-Quad is working fine when we keep KEY-DOWN pressed, the rows flow though the screen quite continually. Only very rarely the scroll stops for a few milliseconds which is acceptable.
    On AS-Single doing the same thing, (holding down the Cursor-Down Key) the Rows flow as well, but after some Rows (5 or 10 or maybe 50-100) the screen stops for half a second up to 2 seconds until it continue.
    I know, this is not a benchmark which has to be much more complicate and detailed, but it gives a feeling, that the AS-Single might be not performing quite well and thinking about ~ 400 Sessions on 2 of those Servers when running productive we want to eliminate any problems or changes before getting productive.
    If anybody has ideas, your welcome.
    We also have another question regarding a specific Form comparing Client-Server with Web-Based.
    Running that Form on Client-Server doing an execute query and junping to the last record takes ~ 5-10 Minutes. This is due to the fact that it is a complicated form doing a couple of Master-Detail and also Post-Query on some of those data-blocks.
    the point is that running on CS the CPU-Load (seen in Windows Task-Manager) is nearly 0. Running the migrated Form on the Application-Server and doing the same, Execute and jump to the last Record, the CPU-Load is ~30-40%. Doing the sam on 4 sessions the Load goes up to 100%.
    Is there an explanation for it or do we have to find a reason for it. And if we have to do, where can we start searching for the reason of the CPU-Load.
    Thanks again for your ideas.
    Mark

    Hi,
    we are on the way to change our application server back to a smaller machine. At the moment we run the AS on a XEON Quadcore machine running at ~2 GHz with 4 GB memory, let's say AS-Quad. This is the case because we needed an intermediate platform.
    Now we want to go to the originally planned harware which is a single Core but Hyperthreaded XEON running between ~2.8 and 3.6 GHz with 12 GB memory, let's say AS-Single.
    OS is Windows Server 2003 SP2 64bit on both machines.
    Hard Disk is on a SAN for both machines.
    Both AS are not loaded right now because were still at the beginning of migrating from Client-Server.
    After installing the AS-Single, and copying/moving/changing the configuration files (formsweb.cfg, default.env, ...) from AS-Quad we think we have now 2 Application Servers which are nearly the same.
    But we see a big difference which hopefully can be solved :
    If we connect to AS-Quad the menu(Tree) and the first Form is displayed in approx 2 seconds, after that a reaction on keystrokes is immediately.
    If we connect to AS-Single the menu(Tree) and the first Form is displayed in approx 4 seconds, after that a reaction on keystrokes is very slow for a couple of time.
    If we start a form which just displays some records from a table, scrolling through the data on AS-Quad is working fine when we keep KEY-DOWN pressed, the rows flow though the screen quite continually. Only very rarely the scroll stops for a few milliseconds which is acceptable.
    On AS-Single doing the same thing, (holding down the Cursor-Down Key) the Rows flow as well, but after some Rows (5 or 10 or maybe 50-100) the screen stops for half a second up to 2 seconds until it continue.
    I know, this is not a benchmark which has to be much more complicate and detailed, but it gives a feeling, that the AS-Single might be not performing quite well and thinking about ~ 400 Sessions on 2 of those Servers when running productive we want to eliminate any problems or changes before getting productive.
    If anybody has ideas, your welcome.
    We also have another question regarding a specific Form comparing Client-Server with Web-Based.
    Running that Form on Client-Server doing an execute query and junping to the last record takes ~ 5-10 Minutes. This is due to the fact that it is a complicated form doing a couple of Master-Detail and also Post-Query on some of those data-blocks.
    the point is that running on CS the CPU-Load (seen in Windows Task-Manager) is nearly 0. Running the migrated Form on the Application-Server and doing the same, Execute and jump to the last Record, the CPU-Load is ~30-40%. Doing the sam on 4 sessions the Load goes up to 100%.
    Is there an explanation for it or do we have to find a reason for it. And if we have to do, where can we start searching for the reason of the CPU-Load.
    Thanks again for your ideas.
    Mark

  • Error "field required" in master-detail form with FORMS 10G!!

    I have a Master-Detail Form.
    When the cursor stay in detail block and i chage the master record with the mouse, clicking in scroll bar, i get error "field required".
    In Forms 6i, works fine!!

    Master block has more than one record displayed. When I click on any item in detail (except first one) and then click on different master record (return navigation to master block, but not current record) I have FRM-40202: Field must be entered on first item in detail block.
    I found that reason is this part of clear_all_master_details procedure (automatically created by Oracle Forms):
    IF :System.Cursor_Item <> startitm THEN
    Go_Item(startitm);
    Check_Package_Failure;
    END IF;
    Does any have same experience?
    Is it Oracle bug or I am missing something?

  • 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.

  • WEBUTIL problems importing a file with the HOST command.

    We are investigating a problem where the users are trying to import a file in from the webserver to be used by the application. The users have successfully moved the file from their local PC to the application server. But, when we perform a HOST command to have the form moved to the UNIX directory, the form hangs. The very last statement of the .BAT file used in the HOST command does the move of the file. And, we can see the entire file in the UNIX directory, we just don't get return back to the form.
    I added displays before and after the HOST command in the form. I see the display before the command but don't receive anything after. The weird thing is this is only happening in our development server. The same issue is not happening in production. Also, if I run the form in client server mode, it works fine also. So, it has to be something on the development application server.
    If anyone has any advice, I would appreciate their help.
    Thanks.

    On the server (assuming Windows since you mention a batch file), locate the Oracle Process Manager Service (for mid tier) on the MS Services Console. Open the properties for this service and click on the "Log on" tab. Check the box labeled "Allow service to interact with desktop".
    That said, if you are executing a batch file on the Windows server to transfer another file to a Unix machine, the above likely won't work either. This is because Windows will not allow a service permission to access network resources (for security purposes). In this case, rather than the above, you will need to change the same setting so a real domain user and not the "Local System" account.

Maybe you are looking for