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
Similar Messages
-
Using unix host command within plsql on aix
On an aix platform Im trying to host out of a plsql procedure to
use mail. I can only get the host command to work inside a blank
.sql file. ie. first line must have the host command on it. If
you try to imbed the host command within a procedure, the file
will just sit there and nothing happens.
nullJay,
This forum is for Headstart related questions and experiences
only. Please go to metalink.oracle.com to get more information on
your problem.
Regards,
Lauri
Jay Levasseur (guest) wrote:
: On an aix platform Im trying to host out of a plsql procedure
to
: use mail. I can only get the host command to work inside a
blank
: .sql file. ie. first line must have the host command on it. If
: you try to imbed the host command within a procedure, the file
: will just sit there and nothing happens.
null -
Hi,
I'm running windows 2000 O/S on my desktop to connect to an IBM AIX server to run Forms6. If you call the host command from within forms, does it go to the my desktop (client) or to AIX (server). Also, if I need a username and password to log onto AIX will I be prompted to for the username and password by the OS after issuing the host command? Please provide example if you can.
Thanks,
Leonard905When you execute a HOST command the code is executed on the machine on which your Forms engine is running.
In client server this will be the client.
In Web deployed Forms this will be the middle tier application server.
Regards
Grant Ronald
FOrms Product Management -
Opening a file using Webutil_Host.Host Command
Dear Gurus
I'm trying to open a file using following command behind a button on my form:
Webutil_Host.Host('x:\03\03\39920000023.gif');
I expected from this command to open the given gif file in default image viewer but it takes no action when I press the push button. So should I try something else???try this
Webutil_host command -
What is use of catalog command ?
I am not able to understand the use of CATALOG coomand using RMAN ?
Is someone can explain using any short example.
Thanks
~KeyurHi Keyur,
Normally control file of a database is used to each and every modification done to that database. In case of taking backup using RMAN, control file is used as repository(If catalog is not configured). But there is a risk when we depend on controlfile for backup information. If database becomes corrupted and unable to mount then at this point we can't use control file as a source of information. Due to which our restoration and recovery process becomes tidious.
To overcome this situation, we configure Recovery catalog where all the information regarding backups are stored. this recovery catalog is handled thru the command ' catalog'.
Cheers -
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; -
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 -
Host Command does not come back
Hi,
I have treid to export schema by pressing a button, (form designed in Form10gR2 and excute via Application Server R2. )
For this I have applied one by one these syntaxes
1) host ( 'cmd /C start "" "'|| exp USERID=SYSTEM/MANAGER@ora11 OWNER=scott,hr FILE=E:\JAN10.DMP');
2) host ( 'cmd /C exp USERID=SYSTEM/MANAGER@ora11 OWNER=scott,hr FILE=E:\JAN10.DMP');
3) client_host('exp USERID=SYSTEM/MANAGER@ora11 OWNER=scott,hr FILE=E:\JAN10.DMP');
4) WEBUTIL_HOST.NONBLOCKING('exp USERID=SYSTEM/MANAGER@ora11 OWNER=scott,hr FILE=E:\JAN10.DMP');
When my client/ user executes the command, session goes hang and application screen does not come back. If I execute the exp command directly from the Application Server Command Prompt then exp works.
Please help me, what is the syntax to get the dump wihtout hanging the session.
Database 11g Linux
Application Server 10R2 Window2003.
Developer 10gR2.
Client Windows , Explorer, FireFox etc.
Regards.
Priya.Hi Priya,
It is always a better practice to call a batch file using the host command instead of hardcoding the command inside form. Which would help you to modify the batch file for any changes, without re-compiling the forms.
In this case, create a batch script, which would set the ORACLE_HOME etc (to make sure the exp command is recognized, you need to add the DB ORACLE_HOME/bin to the PATH), and then call the command to export. You can also parameterize the batch script and pass the parameters from form, separated by space.
-Arun -
Host command, change directory where it opens command prompt
I'm using the HOST command to host out to the command prompt. What I want to know is how to change the directory that the command prompt opens up at. I want it to open up at the c:\ but instead it's opening up at in the forms60 path where forms is installed.
Thanks in advanceHi Viktor,
What i could understand from your question is that in the FTP server you'll be writing a file in folder A and once the writing is done you need to get it moved to Folder B using a 'CD' OS command. But this OS command is not allowed in the FTP server.
If that is the case then it will be better to write the file directly into the Folder B. But in the file adapter use the option 'Use Temporary File'. In that case until and unless the file is written fully the file will be having the name .tmp or so.
The advantage will be the third party server could be polling the folder B for a file *.txt in that case it won't pick this .tmp file.
Cheers
JK
PS: Award points if this helps you. -
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 -
SQLPLUS HOST Command Not Supported
Hi,
I am facing strange problem. I have lots of scripts where I have used the HOST command from within SQLPLUS.
Now, on Windows Server 3000 Standard Edition, Version 5.2, I find that both HOST and its equivalent $, both are not supported when used with SQLPLUS on Oracle 10g Enterprise Edition.
Please HELP, and suggest some alternative.
PrashantThere is no such thing as Windows Server 3000. The latest product appears to be Windows Server 2008.
I'm not sure what the version of the Oracle database has to do with it. This is about SQL*Plus and you still haven't told us what version of that you are using. For example:
SQL*Plus: Release 11.1.0.6.0 - Production on Sat Dec 6 15:56:12 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> host cd
y:\sql
SQL>This is sqlplus.exe (never sqlplusw.exe) version 11.1.0.6.0 on Windows XP Pro 2002 SP3. It's not the best example because SQL*Plus and the database are at the same version - they are often different. For example:
/Users/williamr: sqlplus william/x@//vm.starbase.local:1521/eleven
SQL*Plus: Release 10.1.0.3.0 - Production on Sat Dec 6 16:01:21 2008
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> ho uname -a
Darwin starbase-2.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
SQL> I've never known the host command not work, but perhaps someone with the same setup as you can confirm they don't have the same problem. I'm also a bit puzzled by the error message "Command not success." That doesn't sound like an Oracle command - apart from being vague and ungrammatical it doesn't start with the standard "SP2-nnnn" prefix, for example:
SQL> x
SP2-0042: unknown command "x" - rest of line ignored.Can you copy and paste the exact commands and results you get?
Edited by: William Robertson on Dec 6, 2008 4:04 PM -
Webutil_file_transfer and host command doesn't work
I use a host command in forms to execute a sql-script, which creates a file on AS. After the host command I use webutil_file_transfer to ftp the created file to the client. If I try to do this again in the same session, the host command fails. I have to restart the application to get it working again. If I leave out the webutil_file_transfer I have no problems whatsoever. It looks like webutil is changing something perhaps in the environment. Anyone has the same problem (and a suitable solution)?
I can remove the files on AS (so there seems to be no lock). After removal of the files, no new files wil be created, even if I change the name of the file that needs to be created. Only restarting the application helps.
Raoul -
Host command in forms/reports
Is there a host command in reports 6i? I used this in forms 6i. When I tried to use in Reports 6i, I received a compile error.
basically all I need to do is to get directory information. This can be easily done in forms using the host command. Is there any built in package or function to achieve this in reports?
thanksthere is no "host" command in reports 6i (or earlier versions). you might want to consider using forms+reports combination (calling the report from within a form, in which you can execute the host command and do whatever you want to do, then pass the related parameters to the report). I am using this approach to handle some complex end user reporting requirements.
hope this proves useful
regards -
Is there a host command in reports 6i? I used this in forms 6i. When I tried to use in Reports 6i, I received a compile error.
Thanksbasically all I need to do is to get directory information. This can be easily done in forms using the host command. Is there any built in package or function to achieve this?
-
Hi,
I am trying to print a file on Unix server by using a 'HOST' command through form 6.0
Actually the user can see the form through citrix (sitting on windows NT) and through the form we are trying to create a file on a Unix server and print that file.
The file creation is ok but while printing Host command fails.
Here is the example of codes that I am using.
the_command := 'lp -dprpw1160 /lms/lmls_d3/las_qa/iris/ifile/LOT_CREATE_MANUAL.dat';
host(the_command, NO_SCREEN);
Any suggestion or comments will be greatly appreciated.
Thanks
AnuragIt may just be a forum formatting issue, but I should think you would want a space between the destination flag and the printer name, viz:
-d prpw1160 cheers, APC
Maybe you are looking for
-
Unable to get the value from the jsp page.
Hi, I have developed a JSP, having two split fields seperated by some buttons..The sample code for the same is like this.. (Only the required portion is included) <script> function reloadPageOK() { document.product.method="post" document.product.acti
-
Setting up airport express with a d-link dir 655 router on xp
I bought a new router and would like to setup my old AX to use it to stream music. I installed the airport utility which seems to find my device but I can't connect to it - via my router or the airport utility. When I select select manual or continue
-
Need help my window is in thai and i dont understand at all.how to convert to english?
need help my window is in thai and i dont understand at all. how to convert to english? i been trying for days but still cannot change it. because i cannot read thai..please help me step by step.. my pc is touchsmart 9100 windows 7 professional. Not
-
Profit Center wise & customer and vendor ageing balance
HI, If anyone has developed the profit center ageing report for customer & vendor open items, then plz provide me the logic used. I need the same to implement for my customer. Standard reports ( FBL1N/FBL5N or new GL reports) are not solving my pur
-
I have an iMac which I've upgraded to Yosemite. then I experienced a crash on iPhoto and needed to restore the entire (135 GB) iPhoto library through Time machine. Now I can see the iPhoto library through finder but can't move them to iphoto Can you