Webutil_Host and Client_Host

Hi,
I am wondering what is the difference between Webutil_host and Client_host?
I am trying to call sqlplus.exe located in the server and run a text file in the client side. I am wondering if I use webutil_host or client_host?
Thanks in advance!

Hi,
client_host is a wrapper that is rovided for API parity. Client_Host calls Webutil_Host. If you need non blocking calls, or an ID retruned instead of an error code then use webutil_host.
Frank

Similar Messages

  • Webutil_host or client_host delete all files...

    I am trying to delete files within a directory on a client's machine through my forms 9i web application and it's not working???
    I tried
    client_host('cmd c/ DEL c:\gdocdocs\');
    client_host('cmd c/ DEL /F c:\gdocdocs');
    webutil_host.nonblocking('cmd c/ c:\gdocdocs\');
    webutil_host.nonblocking('cmd c/ DEL c:\gdocdocs\');
    Thanks,
    Terry Sicard

    IMHO For Windows 2000, the command should be
    cmd /c DEL /Q c:\gdocdocs\*.*
    /Q - Quiet mode, do not ask if ok to delete on global wildcard
    You could also try:
    echo Y | del c:\gdocdocs\*.*

  • PROBLEMS USING WEBUTIL_FILE_TRANSFER AND CLIENT_HOST COMMAND TO VIEW BLOB

    I am using webutil_file_transfer.DB_To_Client_with_progress to retrieve a blob
    from the database (that was saved in a word format) into a .doc file on the
    client.
    1st problem: The document that is being saved is not readable. It has all
    kind of special characters in it.
    Then using the client_host command, I open the document into ms word.
    2nd problem: The document opens fine (again not readable in garbage
    characters) but when I close the document, notepad pops up blank with nothing
    in it.
    Below is a sample of the code.:
    PROCEDURE DOWNLOAD_DB IS
    l_success boolean;
    username varchar2(30);
    document_name varchar2(20);
    wordexe varchar2(20);
    BEGIN
         username := webutil_clientinfo.get_user_name;
         document_name := 'wo'||:wod.fk_work_order_number||'.doc';
         :locals.file_name := 'Documents and Settings\'||username||'\my documents\'||document_name;
    l_success := webutil_file_transfer.DB_To_Client_with_progress
    (clientFile => 'C:\'||:locals.file_name
    ,tableName => 'DEFECTS'
    ,columnName => 'DESCRIPTION'
    ,whereClause => 'FK_WORK_ORDER_DATE_ID = '||:DEF.FK_WO_DATE_ID
    ,progressTitle => 'Defect document being opened'
    ,progressSubTitle=> 'Please wait'
    if l_success
    then
    CLIENT_HOST('cmd /c start /wait winword.exe C:\'||'"'||:locals.file_name||'"');
    else
    message('File download from Database failed');
    end if;
    exception
         when others
         then
         message('File download failed: '||sqlerrm);
    END;
    Any ideas?

    Hello,
    I use this kind of code with 9i and 10g and it works fine with word, excel and any of windows files.
    I think that, if the file is not correct, the cause may be the first save of the file in the database.
    Which instruction did you use to save first the doc in the BLOB column ?
    Francois

  • Forms 10g, SqlLoader and client_host

    Hi,
    I am starting Sql Loader from Forms 10g by using client_host(sqlldr.exe userid=..). The Sql Loader works fine, data is loaded to ORACLE tables but the application fails to go back to the Forms code and execute the rest. I have also tried to call a batch file by using client_host but the problem persists, the SqlLoader works fine but the rest of the forms code is not run.
    Thanks for suggestions,
    Deniz

    As said that would be exactly for that purpose. When you call applications in blocking mode which prevents the forms applet from sending a heartbeat for a certain amount of time the forms runtime will assume the forms applet is dead and will exit. nonblocking_with_callback will return control immediately and call a user defined trigger after the application has ended. Just create a user defined trigger with the code you want to execute after SQL*Loader is finished. Pass the name of that trigger to non_blocking_with_callback, and your problem should vanish ;)
    cheers

  • WEBUTIL_HOST.blocking and winword 2003

    Hi all,
    I got some problems using webutil_host and winword 2003.
    As i open a document with winword in blocking mode, works well if word is not already open.
    Eg if word is already open it dunot do the blocking stuff, and go back to forms immediatly.
    here is the code :
    LC$Cmd := 'cmd /c start "" /WAIT "winword.exe'||'" '|| Path_vima;
    Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
    fms_message('back from call');
    LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
    If LN$But <> 0 Then
    Set_Alert_Property( 'AL_ERREUR', TITLE, 'Host() command' ) ;
    End if ;
    So if winword is not open on client -> it works well
    if winword already open -> it dunot block and display fms_message('back from call');
    Plz Help :)
    Thanks
    PS : this work perfectly with Excel ....

    Ok seems that dunot work even if not using forms.
    as launch a cmd like cmd /c start /WAIT winword
    it wait the close of winword to continue execution
    but if i launch winword first and than try a
    cmd /c start /WAIT winword
    it open a second winword but dunot wait for word to be close.....
    that's to bad .
    I'll try look at MS forum

  • Hw to use OLE  and HOST

    Hi ,
    According to my prj requirement.I have to devlop a form in Oracle 10g.A textbox and button is there .After entering a value in text box and on pressing the button.It should execute a perl script and after perlscript is executed it creates a textiles and stores it in its server.After that I want to diplay that text file in the form.In form 6i it was possible to do it through OLE.
    So hw can we achieve there 2 jobs.
    1.To iteract with perl script and execute it.
    2.Finally display the text file in Form.
    Thanks in advance.

    to execute an .exe file or a script we use HOST in forms6i and CLIENT_HOST in forms 9i/10g.
    If you are familiar with OLE2 in forms 6i then just replace it with CLIENT_OLE2 for forms10g.(but first attach wbeutil.pp to your forms10g)
    chek this demo of forms9i webutil:
    http://www.oracle.com/technology/sample_code/products/forms/demo/9i/javabeans_pjc_samples/webutil/viewlet/WebUtil_Simple_viewlet_swf.html

  • Print a file to printer

    Hi,
    I have a peculiar requirement .. I have a file on the desktop (text based file), which should be directed to printer, when I click a button which is there in Forms (forms 10g).. In when button clicked, what's that I have to write ? I dont want to use HOST or PRINT (DOS) commands ... The printer is connected to my PC
    Early reply is appreciated
    Regards

    Hi,
    Thanks for your reply .. But, how ? Do you have or know link which can show me how to use webutil and client_host ?
    Please help
    Regards

  • Calling an external program (*.exe file) on the client

    Hi,
    I use 9iDS and I'd like to call an external program (*.exe file) on the client, but this exe file is located on the server not on the client.
    So it should be something like a mixture between host and client_host(webutil) command. Is it possible to use client_host where a virtual path is passed to?
    Regards Sören

    Are you saying you want to run on the exe on the client but its located on the server???
    In that case you would have to do a webutil file transfer to move it to the client before executing. Or, if you are calling a DLL, webutil will download it automatically from the server to the client (see the C API example on the webutil page).
    Regards
    Grant Ronald
    Forms Product Management

  • WEBUTIL Usage

    Hi List,
    This is regarding usage of WEBUTIL in Froms9i .
    I want to use Host and Text IO Command using client_text_io and client_host .
    I have attached webutil.obl(Object library) and pll to my form as well.but when i am running it says that some Classes(Beans) are mssing .
    When i downloaded webutil it also gave one dll as well as config file and one webutil.jar file .
    But I dont know how exactly is the udsage of these files for e.g. what i need to do with jar file so that those beans will be available .

    Hi,
    With reference to our earlier discussion Now after
    running a form I am getting jacob.dll error , where do
    we install or copy jacob.dll ,
    ----------------Below is the Java console for form---
    Oracle JInitiator: Version 1.3.1.8
    Using JRE version 1.3.1.8 Java HotSpot(TM) Client VM
    User home directory = H:\winnt Proxy Configuration: Manual Configuration Proxy: array.emirates.com:80 Proxy Overrides: *.emirates.com,<local> JAR cache enabled
    Location: H:\winnt\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    ---------------------------------------------------- Loading http://localhost:8889/forms90/java/f90all_jinit.jar from JAR cache Loading http://localhost:8889/forms90/java/webutil.jar from JAR cache connectMode=HTTP, native. Forms Applet version is : 90270 java.lang.NoClassDefFoundError: com/jacob/com/ComFailException      at java.lang.Class.forName0(Native Method)      at java.lang.Class.forName(Unknown Source)      at oracle.forms.handler.UICommon.instantiate(Unknown Source)      at oracle.forms.handler.UICommon.onCreate(Unknown Source)      at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)      at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)      at oracle.forms.engine.Runform.processMessage(Unknown Source)      at oracle.forms.engine.Runform.processSet(Unknown Source)      at oracle.forms.engine.Runform.onMessageReal(Unknown Source)      at oracle.forms.engine.Runform.onMessage(Unknown Source)      at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)      at oracle.forms.engine.Runform.startRunform(Unknown Source)      at oracle.forms.engine.Main.createRunform(Unknown Source)      at oracle.forms.engine.Main.start(Unknown Source)      at sun.applet.AppletPanel.run(Unknown Source)      at java.lang.Thread.run(Unknown Source)
    Thanks in advance ,
    Shripad

  • Manipulate client side files?

    Hi,
    I would like to manipulate client side files using APEX.
    Is there any functionality available for APEX similar to the functions provided in Oracle Forms 10g WebUtil?
    such as:
    CLIENT_HOST and CLIENT_TEXT_IO
    is there a way of using these functions in APEX?
    more specifically: I want to use CLIENT_TEXT_IO to create a batch file on the client, and CLIENT_HOST to execute the batch file in the cmd line on the client(windows)...
    could anyone suggest a way of doing this in APEX?
    thanks in advance
    Leon
    Message was edited by:
    user572239

    No, Forms over the web uses a Java applet in the browser, thus allowing them to manipulate client-side files. APEX does NOT use an applet (this is a good thing, btw) and thus has no native capability to manipulate client-side files. However, you could write your own Java Applet or ActiveX control (go with Java if you can, it works in all browsers) and embed this in an APEX page.
    Tyler

  • Migrating to 10g ( Using webutil )

    Hello,
    I'm migrating a app from 4.5 to 10gr2, rigth now i'm replacing the source code from my pll, and deployng the webutil.pll, i replaced the several calls to text_io and host, with client_tex_io and client_host, should i do the same to win_api?
    Thanks
    JA

    Jump in (duplicated)
    webutil

  • Open pdf document from local disk on button trigger from Oracle form in 6i

    hi all.
    i have an application in oracle forms 6i. The system from where forms are run...has a local folder with pdf documents. the requirement is that when user click on a button in oracle form...the respective pdf from the local folder should open (in browser or in adobe pdf or in any other way).
    I really desperately need this help. had googled. did use the host and client_host commands in the button trigger but am presented with error "host, client_host" not declared.
    bundles of thanks in advance for getting me out of this.

    Hi
         DECLARE
         pl_dept paramlist;
         com_code varchar2(1);
         BEGIN
         pl_dept := Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_dept) THEN
              Destroy_Parameter_List( pl_dept );
         END IF;
         pl_dept := Create_Parameter_List('tmpdata');
            ADD_PARAMETER(pl_dept,'p_date_from',TEXT_PARAMETER,:date_from);
            ADD_PARAMETER(pl_dept,'p_date_to',TEXT_PARAMETER,:date_to);
            ADD_PARAMETER(pl_dept,'destype',text_parameter,'file');
            ADD_PARAMETER(pl_dept,'DESFORMAT',TEXT_PARAMETER,'pdf');
         Add_Parameter(pl_dept,'paramform',TEXT_PARAMETER,'NO');
         Run_Product(REPORTS, 'EMP_STATISTIC_REP.rep', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_dept,NULL);
    End;      Not tested hope it works...
    Regards,
    Amatu Allah

  • Webutil copy very slow

    I've the following problem : the webutil_file.copy_file is very, very slow : i takes 3/4 minuts for a 400k file.
    The problem become even wrost if the file is larger (1mb) : it ever run into a timeout.
    It is not a network problem : if i copy the same files by hands it takes milliseconds.
    What the problem could be ?
    Any workaround ?
    Tks
    Tullio

    This is from metalink WebUtil: Technical FAQ. Doc Id 270940.1
    WEBUTIL_FILE.COPY_FILE is slow when copying large files to a network drive.
    The underlying implementation is not optimal. While the performance difference may not be a problem on small files, it may be better to use WEBUTIL_HOST and call the OS "copy" program where possible.

  • Using WEBUTIL for OLE2

    Hi all,
    I have installed WEBUTIL (Beta 1.3) and developed an easy application which tries many of the features:
    - webutil_clientinfo
    - client_get_file_name
    - client_text_io
    - client_host
    - client_ole2
    The first 4 packages and functions are working very well.
    After successful start the Java Console tells me:
    Loading http://<myserver>:8888/forms90/java/webutil.jar from JAR cache
    Loading http://<myserver>:8888/forms90/java/f90all_jinit.jar from JAR cache
    RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
    Loading http://<myserver>:8888/forms90/java/jacob.jar from JAR cache
    connectMode=HTTP, native.
    Forms Applet-Version : 902101
    Only if I try to write a MS-Word document like the example on http://otn.oracle.com/products/forms/htdocs/webutil/howto_ole.html , I get a Java error:
    Exception occurred during event dispatching:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jacob)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkLink(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at com.jacob.com.Dispatch.<clinit>(Dispatch.java)
         at oracle.forms.webutil.ole.OleFunctions.create_obj(OleFunctions.java:513)
         at oracle.forms.webutil.ole.OleFunctions.getProperty(OleFunctions.java:218)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Can anybody help me?
    Thanks in advance
    Detlef.

    I have installed webutil on my PC and client_host,client_get_file_name works well. But when i test client_ole2 with the code from http://otn.oracle.com/products/forms/htdocs/webutil/howto_ole.html, below is the errors listed in Java Console:
    JInitiator: 版本 1.3.1.9
    使用 JRE 版本 1.3.1.9 Java HotSpot(TM) Client VM
    用户主目录 = C:\Documents and Settings\Administrator
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    2003-七月-28 11:58:59.15 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:00.703 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:01.203 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:01.390 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:01.578 ERROR>WUC-12 [OleFunctions.add_arg()] Object Cache Error: Object is not the expected Vector type
    2003-七月-28 11:59:02.468 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:03.250 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:03.718 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:04.218 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:04.687 ERROR>WUC-12 [OleFunctions.invoke_obj()] Object Cache Error: Object is not the expected JacobObject,Vector type
    2003-七月-28 11:59:04.890 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:05.93 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:05.437 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:05.734 ERROR>WUC-14 [getFromObjectCache] Object Cache Error: Specified object handle 48962816 not found in the cache
    2003-七月-28 11:59:06.62 ERROR>WUC-12 [OleFunctions.destroy_arg_list()] Object Cache Error: Object is not the expected Vector type
    Can anyone help me? Thanks in advance!

  • Try to call wfs.exe (MS fax and scan) with webutil_host !!

    hi,
    I would call from Forms the MS scan and fax application “wfs.exe”.
    This is found under windows\system32.
    call:
    WEBUTIL_HOST.NONBLOCKING ('cmd /c C:\windows\system32\wfs.exe');
    Unfortunately, nothing happens. No error message and no cmd-process remains open in the taskmanager.
    with other applications it works. For example:
    WEBUTIL_HOST.BLOCKING('cmd /c C:\Windows\System32\notepad.exe');
    WEBUTIL_HOST.BLOCKING('cmd /c C:\Windows\System32\calc.exe');
    I use Forms 10.1.2.3 on Windows 7.
    Does anyone have any idea or can test that if it works?
    thx Alfred

    you can use
    WEBUTIL.client_HOST ('cmd /c C:\windows\system32\wfs.exe',hide_screen);
    instead of
    WEBUTIL_HOST.NONBLOCKING ('cmd /c C:\windows\system32\wfs.exe');
    which will run the wfs.exe file located in the windows\system32 directory. if client machine is on the windows O/S
    you can view the process list by tasklist command on the command prompt.
    you can use cmd /k option for remaining in that session for the errorlevel checking.

Maybe you are looking for

  • I can't delete podcasts in "I"Tunes

    "I"'ve got an "I"Problem. "I" updated my Windows "I"Tunes today to version 11.1.0.126. The NEWEST "I", LATEST "I", GREATEST "I" , "I"TUNES! Now "I" can't delete any of the podcasts in the list (that are not yet downloaded)? "I" highlight one, two, ma

  • External drive enclosure, USB 2 mounts, firewire invisible!

    I have a venus ds3 external enclosure with a 300GB 7200rpm WD hard drive inside it. The enclosure works fine with windows and usb2, and it is also detected and mounted on usb2 on my mini (1.25ghz ppc mini). However, nothing happens when I try to use

  • Filtering proxy messages in XI

    Hello , I have a proxy outbound scenario which is triggering data from ECC which is converted to flat file in XI. The number of messages triggered in a single run of this interface is around 3000. And many times I am required to find message in XI wi

  • Certain site support earlier versions of FireFox 3.6. Is there a compatibility mode within Firefox 7.0

    Certain web sites state browser versions for viewing compatibility, and these are older versions of FireFox. The site does state that FF3.5 & 3.6 are supported and I have a VMWare Image with FF3.6 and the pages are displayed correctly. After installi

  • Action Script 3 URL  link opens in new window

    How do I stop the url link in the following code from opening a new browser window? thank you