Command HOST?

Hi to all, I need to execute a file batch on the server and not in client.
How is it possible in forms6i?
Thanks you
Silvia

Are you using 6i web or client/server?
On which server do you need to run the script? Database server, web server?
What is the DB version (in case you need to run on the DB version)?
Oh, double posting by the OP.
Edited by: InoL on Jul 26, 2010 4:50 PM

Similar Messages

  • About the command 'HOST'

    My environment: Oracle Workgroup Server for Windows NT (Version
    7.3.4)
    Can anyone, who can connect the Oracle database with a legal db
    account through the SQL*Plus, run the command ‘HOST’ normally?
    How to limit the usage of command ‘HOST’?
    Thanks!

    You can prevent the HOST command being used by inserting an
    appropriate record into the product_user_profile table.
    See the PUP section of your manual:
    http://download-west.oracle.com/otndoc/oracle9i/901_doc/server.90
    1/a88827/ape2.htm#634109
    You may also find the command line option -RESTRICT (introduced
    in 8.1.6) useful:
    http://download-west.oracle.com/otndoc/oracle9i/901_doc/server.90
    1/a88827/ch72.htm#1005809
    - CJ

  • Command host from form6i

    Hi,
    I am using forms client server against a database10g. In my forms, I am using host (to call an url in IE explorer ...). It works fine but when the IE window is opened the form can not be used until the IE is closed. Any idea to resolve this ?
    Thanks.

    Hi Andreas,
    it's working fine but when i m trying to run this on when button press trigger.
    i m taking site name in text item and store it in variable.
    but not running.
    my code is:-
    declare
         v_website varchar2(100);
    begin
    v_website:=:block3.website;
    HOST('rundll32.exe url.dll, FileProtocolHandler v_website');
    end;
    Thanks
    KarTiK

  • 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

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

  • HOST command does not seem to work in deployment system

    I am developing forms software for a SUSE Linux system, but the HOST command does not seem to operate correctly when used in conjunction with Application Server.
    All I am trying to do is launch Adobe Acrobat reader as a background job using the command :-
    HOST('/opt/Adobe/Reader8/bin/acroread &');
    but nothing seems to happen.
    If I enter the command :-
    */opt/Adobe/Reader8/bin/acroread &*
    directly from a shell window (using the same login account) the command works correctly.
    I have tried other commands e.g. directory listings etc and all seem to have the same problem.
    Furthermore when the same form is run from the development environment using "Internet Developer Suite" it operates correctly with no problems.
    I am running on a deployment system where all three tiers of oracle are on the same machine (i.e. Database, AS and web front end).
    Can anybody suggest any possible causes or anything I can try to help resolve this problem ?

    brian_a_j wrote:
    Although I still dont understand why HOST would not work given my configuration (the Application Server and Web Browser operate on the same machine).One little test, put the execution command in a shell script and try to execute the script with the HOST command instead of the command itself.
    Using HOST the script will be executed on the AS machine no matter from where it is executed.
    Tony

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

  • How to configure host copy command inside EM Console

    hi,
    I want to copy a file from one server to my production server. i found that through host copy command its is possiable in command prompt.but when i configure host copy command inside em console it is not working. i am getting following error
    ORA-06550: line ORA-06550: line 3, column 6: PLS-00103: Encountered the symbol "COPY" when expecting one of the following: := . ( @ % ; , column :
    Any solution for this
    Edited by: mithun on Jun 16, 2011 2:36 AM

    mithun wrote:
    hi,
    I want to copy a file from one server to my production server. i found that through host copy command its is possiable in command prompt.but when i configure host copy command inside em console it is not working. i am getting following error
    ORA-06550: line ORA-06550: line 3, column 6: PLS-00103: Encountered the symbol "COPY" when expecting one of the following: := . ( @ % ; , column :
    Any solution for this
    Edited by: mithun on Jun 16, 2011 2:36 AMThis makes no sense whatsoever.
    Now, as for your original question, there is not "host copy" command. Not in sqlpus, not in em.
    What you are doing in sqlplus is the sqlplus command "host". That is a sqlplus command, documented in the SQLPlus Reference. The sqlplus command "host" takes an argument of an os command (in your case, the OS command is "copy") and creates a sub-process to ask the os to execute that command.
    I can't even imagine what you are referring to when you say "when i configure host copy command inside em console". Can you explain in more detail?

  • 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

  • Host print 'compressing:' equalent command in SUSE Linux

    We have a program that use to run in UNIX in the concurrent manager with the following commands
    host print 'compressing:'
    PRINT v_filename
    In the new SUSE Linux environment the “host print” command is giving an error “print command not found”.
    How do you print to a log file in Linux?
    I knew using we can lpr file_name , please correct me if i am wrong.

    Is v_filename the name of the logfile you wish to print?
    lpr myfile.txt - Submits the request to print myfile.txt.
    Perhaps your program can an alias for "PRINT" to perform the printing, like
    alias PRINT='lpr', which you can define in your shell environment .profile.
    Or your program has a configuration where you can define what PRINT should translate to.
    Edited by: waldorfm on Jul 16, 2010 1:41 AM

  • Host command in forms6i

    I used the command Host(mycmd, No_Screen) to export my data in dmp file.
    This command works fine but my code (plsql) continue while the command is running.
    I want that the next command (pl/sql) wait till the host command terminate.
    How to do that ?
    In fomrs5 this works perfectly !
    My config is : WIN98/Forms6i
    Thanks

    Hi Sonia!
    Another, but maybe a dirty, solution is
    to create an ms dos bat file, let's say 1.bat, with the
    following lines:
    del c:\test.txt
    exp pp/pp ...
    echo 1 > c:\test.txt
    Then use host command to call it and loop
    after it. This loop will be checking if
    1.bat finished and if it created file
    c:\test.txt:
    declare
    in_file Text_IO.File_Type;
    begin
    host( '1.bat', no_screen );
    loop
    in_file := Text_IO.Fopen('c:\test.txt', 'r');
    if form_success then
    exit;
    end if;
    end loop;
    end;
    Hope, this will help.
    Andrew Velichko
    Brainbench MVP for Oracle Developer 2000 http://www.brainbench.com
    null

  • What's use of HOST command

    Urgent please
    In PL/SQL how can I call notepad ?? is the command HOST useful here ? If yes, how ?
    Regards

    We can use a java stored procedure to run OS commands. This is the most common use of java in the database. You can find the estimable Mr Kyte's implementation at AskTom.
    I assume Notepad is just a random example, because PL/SQL is not interactive and I would guess that you won't actually be able to do anything useful by calling notepad from the database. Although if you do manage to do something useful let us know!
    Cheers, APC

  • "Host Command" for SAP HANA

    hi all,
    are there for SAP HANA a "Host Command" (from Oracle), which you can jump from HANA studio or HANA client to the operating system "SUSE Enterprise SERVER"?
    greeting
    ichtouk

    Hi Ichtouk
    the sqlplus command host does not allow you to execute commands on the server you're connected to. Instead, you can execute local command without leaving your current sqlplus session.
    It is by no means an open window to the Oracle servers O/S (would be bad, don't you think?).
    Having said that, SAP HANA does not include a SSH client in the database client software.
    If you want to access the SAP HANA server on O/S level, you really need to use a proper SSH client with a regular O/S user logon.
    - Lars

  • User of Host command

    I am using Oracle 10g on a Linux server.
    There is a command Host, that executes somethings on the OS.
    How can I know what logged user from my OS this command host is using to execute ?
    I want to know if it´s the root user, or anonymous... or other.
    tks,

    The commands are executed as the same user as Forms is installed as, most likely oracle.

  • 10g Host command imp.exe not working

    Hi,
    Just created a relatively simple form that uses host command.
    I create a sql script using text_io to create a new user.
    I then use host to run that script on the app server.
    All this works fine.
    Then i use host command to try and import into the db. This is when it does nothing.
    I have cut it down to bear bones and a button with the command:
    host('D:\oracle\database\BIN\imp.exe LOG=D:\test.log');This doesnt even create the log "test.log"
    If i copy and paste this into the run box on the app server the log is created?
    Any ideas?
    Thanks

    hi
    first try to import by using dos go to start,run and cmd something like this.
    c:\Imp user/pass@orcl file=c:\file.dmp log=c:\log_name.log full=y
    What is import/export and why does one need it?
    Oracle's export (exp) and import (imp) utilities are used to perform logical database backup and recovery. When exporting, database objects are dumped to a binary file which can then be imported into another Oracle database.
    These utilities can be used to move data between different machines, databases or schema. However, as they use a proprietary binary file format, they can only be used between Oracle databases. One cannot export data and expect to import it into a non-Oracle database.
    Various parameters are available to control what objects are exported or imported. To get a list of available parameters, run the exp or imp utilities with the help=yes parameter.
    The export/import utilities are commonly used to perform the following tasks:
    Backup and recovery (small databases only, say < +50GB, if bigger, use RMAN instead)
    Move data between Oracle databases on different platforms (for example from Solaris to Windows)
    Reorganization of data/ eliminate database fragmentation (export, drop and re-import tables)
    Upgrade databases from extremely old versions of Oracle (when in-place upgrades are not supported by the Database Upgrade Assistant any more)
    Detect database corruption. Ensure that all the data can be read
    Transporting tablespaces between databases
    Etc.
    From Oracle 10g, users can choose between using the old imp/exp utilities, or the newly introduced Datapump utilities, called expdp and impdp. These new utilities introduce much needed performance improvements, network based exports and imports, etc.
    NOTE: It is generally advised not to use exports as the only means of backing-up a database. Physical backup methods (for example, when you use RMAN) are normally much quicker and supports point in time based recovery (apply archivelogs after recovering a database). Also, exp/imp is not practical for large database environments.
    [edit] How does one use the import/export utilities?
    Look for the "imp" and "exp" executables in your $ORACLE_HOME/bin directory. One can run them interactively, using command line parameters, or using parameter files. Look at the imp/exp parameters before starting. These parameters can be listed by executing the following commands: "exp help=yes" or "imp help=yes".
    The following examples demonstrate how the imp/exp utilities can be used:
    exp scott/tiger file=emp.dmp log=emp.log tables=emp rows=yes indexes=no
    exp scott/tiger file=emp.dmp tables=(emp,dept)
    imp scott/tiger file=emp.dmp full=yes
    imp scott/tiger file=emp.dmp fromuser=scott touser=scott tables=dept
    Using a parameter file:
    exp userid=scott/tiger@orcl parfile=export.txt
    ... where export.txt contains:
    BUFFER=10000000
    FILE=account.dmp
    FULL=n
    OWNER=scott
    GRANTS=y
    COMPRESS=y
    NOTE: If you do not like command line utilities, you can import and export data with the "Schema Manager" GUI that ships with Oracle Enterprise Manager (OEM).
    [edit] Can one export a subset of a table?
    From Oracle 8i one can use the QUERY= export parameter to selectively unload a subset of the data from a table. You may need to escape special chars on the command line, for example: query=\"where deptno=10\". Look at these examples:
    exp scott/tiger tables=emp query="where deptno=10"
    exp scott/tiger file=abc.dmp tables=abc query=\"where sex=\'f\'\" rows=yes--------------------------
    You can also use DBMS_DATAPUMP.
    For example, you can start the export job from a PL/SQL package with the following PL/SQL code:
    declare
        handle  number;
    begin
        handle := dbms_datapump.open('EXPORT','SCHEMA');
        dbms_datapump.add_file(handle,'SCOTT3.DMP','DUMPDIR');
        dbms_datapump.metadata_filter(handle,'SCHEMA_EXPR','= ''SCOTT''');
        dbms_datapump.set_parallel(handle,4);
        dbms_datapump.start_job(handle);
        dbms_datapump.detach(handle);
    end;
    / sarah

Maybe you are looking for

  • AE CS3: Crashes on export to Adobe Flash Video (with audio)

    I have a 10 second comp I'm rendering to Adobe Flash Video. The comp has a wav file on it. I have ram previewed the comp and it plays back just fine. When I render it to Adobe Flash Video via the render queue my comp crashes at 30 frames in everytime

  • Services for object

    Hi, I am uploading the Documents in the Services for object.( tcode ME22N.). When the PO is released , then also i am able to change or delete the attachment. I dont want to delete or edit the document after the PO is released. How to contol this?. .

  • Table SelectionModel with Forte

    Is there a way to set the SelectionModel in Sun's Forte 4 ? I use this code by interting it with Post-Init Option. datesTable.getSelectionModel().setSelectionModeListSelectionModel.SINGLE_SELECTION); The problem is, if you change the name of the tabl

  • Link between Employee and Cost center and TCode CAT2

    hi all, can anybody tell me where is the link b/w a PERNR and Cost center (which infotype) ? if anybody has played with Tcode CAT2, please revert back !!!!!!!!! Any help will be rewarded !!!!!! Thnx, Preeti

  • Is Oracle a good parent?

    I spent most of the morning yesterday doing a backup / restore of a database on SQL Server 2000.Backup of production then restore to test. At the end, we had a couple of dozen orphaned users: logins that were carried from the backup of production but