When use host command to call discoverer

hi all
i am using the host command in forms 6i to call open
the discoverer by command line . its fine and works well
but the discoverer locks the screen and i cant work with both of them so i have to close the discoverer and i cant leave it open .
can solve this problem ?

Use API d2kwutil
PROCEDURE proc_call_disc IS
declare
nm_command varchar2(10000);
nm_user varchar2(20);
pw_user varchar2(20);
cn_user varchar2(20);
BEGIN
nm_user := get_application_property( username );
pw_user := get_application_property( password );
cn_user := get_application_property( connect_string );
nm_command := 'dis4usr /connect ' || nm_user || '/' || pw_user || '@' || cn_user||' /opendb "owner.'||v_nome_bis||'" /sheet '||v_sheet||' '||string_parametros;
win_api_shell.winexec(nm_command, WIN_API.SW_SHOWMAXIMIZED, false);
END;

Similar Messages

  • Problem using Host command to call a batch file

    Hi all,
    I am trying to call a batch file with the Host command:
    host c:\test\u.bat
    where u.bat calls unix2dos.exe with a parameter of d_unix.txt.
    Bat file looks like this:
    C:\test\unix2dos.exe d_unix.txt
    PAUSE
    The bat file gets called fine, but the following error occurs (in the cmd prompt):
    T:\globals\ORACLE8\bin>C:\test\unix2dos.exe d_unix.txt
    d_unix.txt:
    Can't open file
    T:\globals\ORACLE8\bin>PAUSE
    Press any key to continue . . .
    Running the batch file directly in windows works fine. The batch file also runs fine from the Host command if I remove the d_unix.txt parameter.
    The file d_unix.txt file is in the same directory as the batch file and as unix2dos.exe.
    Running from Sql Plus in a windows environment.
    Any thoughts?
    Edited by: dgouin on Aug 19, 2009 11:41 AM
    Edited by: dgouin on Aug 19, 2009 11:42 AM
    Edited by: dgouin on Aug 19, 2009 11:42 AM

    I always understood that it worked with whatever directory you were in when you launched the SQL*Plus binary:
    D:\>SQLPLUS dbuser@testdb
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Aug 19 15:26:35 2009
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    dbuser@testdb > HOST ECHO %CD%
    D:\
    dbuser@testdb > exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    D:\>H:
    H:\>SQLPLUS dbuser@testdb
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Aug 19 15:27:03 2009
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    dbuser@testdb > HOST ECHO %CD%
    H:\
    dbuser@testdb > exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options

  • Calling SQL Loader from Forms 4.5 using HOST command in Win2000

    One of my forms calls SQL Loader 7.3 using HOST command to load a csv file onto the database(Oracle 7.3) under Windows 2000 platform.
    Only after sql loader finishes its operation the control should come to my form i.e. synchronous execution.
    As of now its running asynchronously.
    Is there any way to make it synchronous. If Not any other work arounds?
    Environment Details
    Forms [32 Bit] Version 4.5.10.6.0 (Production)
    Windows 2000 Operating System
    Oracle7 Release 7.3.2.3.2

    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.

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

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

  • How to use host command for creating folders

    i want to create a folder called abc in my C drive using forms 6i.
    how can i do it using Host command?

    Host('MD C:\ABC');Francois

  • Running an SQR using HOST command

    We are using Forms 10g and want to call sqr using the host command. The only way we can get this to work is to put the sqr call in a shell script which also contains all of the necessary environment variables and then use host to run that shell script.
    I've tried putting the environment variables in default.env to no avail.
    (This is a UNIX environment).
    Is it possible to run an sqr directly using the host command?
    host('sqr .....')
    Thanks in advance!

    nope. You can use host command. And modify the shell script in such
    a way that the results are written to a text file and read the result using
    text io
    Best regards
    Rajesh ALex

  • Run shell script using Host Command

    How do I run Unix Shell Script using Host command?
    Please help me......

    Are you running the shell script from the same box as the forms are deployed in? If not, then HOST call will try to execute on the machine where the forms are hosted(App server).

  • Exchange 2013 CU5 , Exchange Power Shell very very very slow reasponse when using get command.

    Exchange 2013 CU5 , Exchange Power Shell very very very slow reasponse when using get command.
    First my organize has Exchange on 2 site like
    site A (internet facing) : 2CAS 2 MB all are Services pack1
    site B (DR Site , no user active on this site) : 2CAS 2MB all are Services pack 1
    so today I upgrade Exchange 2013 from SP1 to CU5 start on "site B" and I found this issue and the details is....
    When I open EMS on any CU5 for query something (like get-mailboxdatabasecopystatus) the response return very slow and some query will not return at all (like get-owavirtualdirectory).
    But If I using EMS on SP1. Everything is ok then I try to use EMS on SP1 connect to CU5 and try to query something. the result is
    some query command cannot return for any result that are server on siteB (just some query command)
    Problem
    EMS on CU5 return very slow result.
    EMS on SP1 still ok.
    Does anyone face this problem before for CU5??? Please help me figure this out. Thank you
    reply from Social.technet

    Hi,
    Have you used the above cmdlets to check your Exchange server health?
    "all other command that I ran on EMS didn't logged on event viewer.", my environment is the same with you. I use Exchange 2013, only errors will be displayed in MSExchange Management. Actually, it is not related to slow EMS response.
    Hope it helps.
    Best regards,
    Amy Wang
    TechNet Community Support

  • ERROR MESSAGE WHEN USING PACK COMMAND   Missing file ////presenter.css   Also:  "This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course."  I have Java enabled in all browsers

    ERROR MESSAGE WHEN USING PACK COMMAND   Missing file ////presenter.css    Command then fails
    Also:  "This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course."  I have Java enabled in all browsers
    Thoughts?  Using Presenter 10  Win 8.1  Intel I7  new HP with plenty of memory
                   Thanks

    I had saved one copy as an .asp but then resaved it to .xhtml 
    I'm assuming this is a static web site.  Rename (F2) all your pages with .html or .htm extension. 
    .xhtml is not a valid extension.
    Nancy O.

  • Using host command

    hi all i am shayan and again prob:-(
    i am using oracle 9iDs and forms are run on the web......i had used host command...but it is only open the program on the server....for example i haved open calculator with host command but it is only open on server not on the local computer

    Forms was originally designed as a client/server product. This means that functions like HOST, TEXT_IO, OLE, etc were expected to perform a task on the client machine. Well, this really hasn't changed with the deployment moving to the web. However, the difference is that the client to the database is now the middle tier and these tasks are executed there.
    To perform actions on the end-user (client) machine you will need to use a signed Java Bean. As mentioned by harmvos, Oracle offers WebUtil as an add-on to Forms if you don't want to write your own Java Bean. It can be used with Forms 9.0.4 and newer. It can be used with 902, but since 902 is no longer supported, this isn't recommended.
    http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm

  • Using Voice command to call some one...

    Hello,
    On the key note presentation in June the Steve Jobbs had done he used voice command to call a person.
    How do you go about doing the set up for that. I can not seem to do it.
    Sean

    I could swear he did because he made a comment along the lines that "today's technology" ...
    I could be wrong but I can not quote his comment but I know he made a comment about it before he did it.....
    Oh well. One would think with the issue of driving and cell phone this would of been included.
    Sean

  • SQLplus doesn't start from batch when using host comand

    Hello.
    We have a form to export some data from old (7) database. For that we use batch file that runs sql script.
    There is button in form. The code on trigger looks like:
    declare
         HostString Varchar2(50);
    Begin
         HostString := 'C:\Path\File.bat';
         Host(HostString);
    end;
    That batch file calls another batch file:
    c:
    cd c:\Path
    call NewFile.bat >> Data.log
    And in NewFile batch we call sql script like:
    c:
    cd "c:\Path"
    set ORACLE_HOME=c:\Oracle\Path
    C:\Oracle\Path\BIN\SQLPLUS.EXE user/pass@db @C:\Path\Script.sql
    @echo End
    exit
    In that script the code looks like:
    spool c:\Path\File.txt
    desc table;
    spool off;
    exit
    If we run first batch in cmd everything works. When we use forms, form is working forever, freezes.
    And Data.log file looks like:
    (14:53:48,14) >c:
    (14:53:48,14) >cd "c:\Path"
    (14:53:48,14) >set ORACLE_HOME=c:\Oracle\Path
    (14:53:48,14) >C:\Oracle\Path\BIN\SQLPLUS.EXE user/pass@db @C:\Path\Script.sql
    Here it freezes, log file is locked.
    We are using forms 10 on AS 10. But we must use SQLPlus 8 to connect to old database (7) in that case.
    Maybe this is the problem?
    Any idea why this doesn't work from forms, but works when run manually from cmd?
    Thanks.
    Message was edited by:
    DejanH

    U didnt mention version of forms and whether running in client server or web.
    Incase of web note that host will execute on application server and hence u need to use webutil_host.
    If u are on forms 6i/client server forms try invoking calc using host. If it works fine then u may have to use the code host('cmd /start c:\orant\bin\sqlplus.exe')
    Best Regards
    Rajesh ALex

  • E71 crashes when using voice commands

    Hi there,
    I've recently updated the phone software hoping that my problem would go away, but it hasn't.
    Basically, when I use the voice commands to call a contact, all is good.
    However, if I have a contact with 2 or more contact numbers, none of which assigned as a default number, the phone crashes and restarts.
    As contacts are not automoatically assigned a default number, when I add numbers to contacts, I must specify the default number to avoid a crash on the phone. Is there any work around for this?
    Thanks for your help.
    Shanks

    Hi mgoksoy,
    I also agree this is a nifty program. However, there is some data and internet interaction necessary for the application. It doesn't seem to use a lot, but some is used. All of the logic to analyse the speech is online, allowing the application to improve over time.
    This diagram at the end of the technology page should give a clear picture on the interaction.
    (See here: http://www.vlingo.com/technology/)
    Thanks again for introducing this application.
    Shanks.

  • How to run a script from Oracle Form (Beside using HOST command)

    I would like to run a script from Forms 6.0. I know that we can actually issue this command :
    host('plus80.exe' username/password@connect_string @c:\scriptname);
    BUT, is there any other alternative ?

    Sqlplus is a different program, so one way or the other you have to leave Forms to run sqlplus. What is you objection against HOST?
    You can also run sqlplus from the database, but again you need a stored java procedure to call sqlplus (sort of HOST command that runs in the database).
    Francois' solution works if your script just has a query to run, but if you have specific sqlplus commands (spool etc.) forms_ddl is probably not a solution.

Maybe you are looking for

  • Bridge won´t open multiple  jpegs, claim one or more qualifying products need to be opened first.

    I´m using photoshop cs 6, and now bridge won´t open multiple jpeg´s, but claims that one or more qualifying products need to be opened first. What is this?

  • How do I make a 24X36 in poster?

    Indesign does not give me the option to create a document based on inches. I want a poster 24X36 in.  How do I do this?

  • Is there any way I can see which of many "reduce noise" is on a clip?

    Hi Guys Is there any way I can see which of many "Reduce Noise" actions is on a particular 'shot' from a video clip in my timeline? I understand that the entire list of Reduce Noise actions I see are all applied to the entire video clip, except in di

  • ATI catalyst lockups

    Hello everyone! I've been fiddling around with this problem a couple of days, and I can't figure out what is wrong! I'm using a Radeon 9800XT with the catalyst drivers. This is my xorg.conf file: Section "ServerLayout" Identifier "X.org Configured" S

  • Update to Raw Camera 5.7 in PSE 8

    I downloaded the update for raw camera 5.7 and followed all the instructions to a tee. Still whenever I edit a raw data image it still displays raw camera 5.5 in the upper left hand corner of the display. Is this correct or is something amiss here/ A