JDAPI to search for HOST command in PLSQL

Hi All
How do I seach for all host commands in a form. I can convert the form to text or xml but I would like to do that using JDAPI. Has anyone successfully done that.
Any help is appreciated.
Rgds
Arvind Balaraman

Can someone help me?
Rgds
Arvind Balaraman

Similar Messages

  • Run like Host command in plsql

    Hi,
    We are using Host command in sql*plus , but i need to implement like host command in Plsql. I refered previous post and some other links , that most of them are prefered only java stored procedure, And even that restricted previllage.
    Can you give some sample example launchiing Win OS command in plsql
    venki

    To run a batch file, you need to use the Command Shell (and please do not call it a DOS shell like some people tend to do as it is not DOS). E.g.
    c:\windows\system32\cmd.exe /c c:\temp\test.bat
    We're running cmd.exe with switch /c that tells cmd to execute the command we're passing it, and then to terminate.
    Note that we cannot interact with the shell from the PL/SQL side - we cannot answer prompts and so on. The script run, must be a proper batch/non-interactive script.
    Also, the Oracle Server process (Win32 thread actually) that is servicing our Oracle client connection, is running the command for us. This thread itself is a background service process. It could run in Windows configured environment (VM/Virtual Machine) that is not allowed to interact with the desktop - or have limited or no access to certain files, folders and programs.
    Technically speaking, this is what happens:
    1) we pass the command to execute from our client to the Oracle server session servicing us
    2) this Oracle thread uses the Java VM to make a Win32 call called CreateProcess()
    3) the Win32 kernel executes that process
    4) the process starts, runs and terminates
    5) the Java VM inside the Oracle Server process regains control and pass the exit code and standard output of that process to PL/SQL
    6) PL/SQL in turns, returns that very same data to our client
    If you for example run a program that pauses and expects input, or hangs.. it will cause the above series of steps to stop at step 4. With the Java VM waiting on it to complete, and we waiting for the Java VM and PL/SQL call to complete.

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

    Jay,
    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

  • Searching for hosting in UK, MSSQL and Dedicated SSL?

    Hi,
    I'm looking for recommendations for a hosting company in the
    UK that offer
    unlimited bandwidth, an MSSQL database and a dedicated SSL
    certificate (so
    we can run
    http://www.domain.com and
    https://www.domain.com).
    We are resellers for Fasthosts and, would you believe, they
    don't offer the
    SSL option at all! The only way to get a dedicated SSL
    certificate from
    Fasthosts is to buy a dedicated server. A bit frustrating
    because we pay a
    fair amount each year for the privilege of being a reseller.
    I have looked on Google, but I really can't tell the sharks
    from the
    dolphins.
    I looked at Zen Internet, who were top in Google. They want
    �300.00 per
    year for the hosting, and �200 per year for the SSL -
    �500 in total, which
    we felt was a bit pricey.
    Any recommendations would be greatly appreciated. Thanks.
    Regards
    nath.

    No takers on this?
    Is �500 per year expensive for MSSQL and Dedicated
    SSL?
    Thanks.
    Nath.
    "Nathon Jones" <[email protected]> wrote in
    message
    news:e63nuc$hbo$[email protected]..
    > Hi,
    >
    > I'm looking for recommendations for a hosting company in
    the UK that offer
    > unlimited bandwidth, an MSSQL database and a dedicated
    SSL certificate (so
    > we can run
    http://www.domain.com and
    https://www.domain.com).
    >
    > We are resellers for Fasthosts and, would you believe,
    they don't offer
    > the SSL option at all! The only way to get a dedicated
    SSL certificate
    > from Fasthosts is to buy a dedicated server. A bit
    frustrating because we
    > pay a fair amount each year for the privilege of being a
    reseller. :o(
    >
    > I have looked on Google, but I really can't tell the
    sharks from the
    > dolphins.
    > I looked at Zen Internet, who were top in Google. They
    want �300.00 per
    > year for the hosting, and �200 per year for the
    SSL - �500 in total, which
    > we felt was a bit pricey.
    >
    > Any recommendations would be greatly appreciated.
    Thanks.
    >
    > Regards
    > nath.
    >

  • HOST command not working

    Oracle AS Version 10.1.2.0.2, Oracle Forms Version 10.1.2.0.2, Windows XP.
    I am using HOST command to read a files from the directory (on the server). But HOST does not working. When i click the button to read the file, it just hangs on and no error on the console.
    Does host work on forms 10g?
    actually i was using client_host of webutil and its working fine. But it pick the directory from the client. Whereas i need to pick it from the server where AS is. That why i went for HOST command.
    Any suggestion.

    Hi,
    Try this.
    1. Create a batch file (which would first set the required variables as when you do the "set".)
    2. Add the following to the batch file.
    C:\javasoft10g\jre\bin\javaw -classpath C:\javasoft10g\jre\lib\rt.jar;C:\javasoft10g\paths;;C:\javasoft10g\paths\dusjava.jar; %1 %2 %3 %4 %5 %6 %7Save the batch file in some location (say c:\mybatchscript.bat).
    From forms, call it like
    host('cmd /c c:\mybatchscript.bat > c:\temp\testlog.log' );Now, does it work?
    -Arun
    P.S : Looks to me like, you are setting some variables (or calling another batch file - set , which sets up the variables). So, make sure you set all the required variables in the batch script itself.
    -Arun

  • Looking for a command to check the filling level of the ASIC netwflow table on Cat3850

    Hello.
    I am searching for a command to check the filling level of the flexible netflow table in the ASIC of the Cat3850.
    There is a show command on the FNF Cache which shows me any entry numbers but this values is confusing me.
    The Cat3850 is able to have 16K egress and 8K ingress FNF table entries according to the FNF guide.
    But the show command gives me a value of >33k.
    Does anyone have an explanation on this?
    How can I check the real filling Level of the FNF table in the ASIC?
    Thank you very much
    Karl
    show flow monitor Solarwinds-OUT cache
      Cache type:                               Normal (Platform cache)
      Cache size:                              Unknown
      Current entries:                           33256
      Flows added:                              626755
      Flows aged:                               560235
        - Active timeout      (    60 secs)     410932
        - Inactive timeout    (    15 secs)     149303

    myle wrote:I don't want a solution with GUI because my laptop is 6 years old.
    I completely agree with all the above and I only use mutt.  But I use mutt because I *prefer* cli apps.
    If you're just going with cli because you don't think your computer can handle gui apps ... then I don't think you've given the lightweight gui apps a fair shake.
    Yes, evolution and thunderbird would suck on an old computer (but IMHO they suck on a new one too![1]).
    Claws (or/aka sylpheed) is a nice little mail app that should work nicely on any computer that is running X.  I'm sure there are other lightweight gui mail apps to.
    Again, I love mutt.  But I don't think having an old computer is the reason to favor mutt over a good gui app if you would otherwise prefer the latter.
    [1]:  Not meant as a flame, rather an expression of my preference for software that does one thing and does it well.  These tools both, while they may be well written, try to do so much that I have never been pleased with the outcome.
    Last edited by Trilby (2012-08-14 11:57:35)

  • Calling java host command in trigger/PLSQL

    I created a java call to execute a linux host command that calls a shell script that will echo out a result. It is owned by SYS and has granted execute to SYSTEM. SYSTEM has a table that monitors accesses to the RDBMS. When a user logs on from a remote server vis sqlplus, this LOGON trigger write to the SYSTEM table (successfully). SYSTEM has a trigger that runs a linux command to execute a shell script that pulls the actual IP address from the remote system. I can run this call from a PLSQL block (outside the trigger) and get a response back like "user:101.101.101.111" but when I have the same user log on, the trigger fires - no errors or exceptions yet no rows are returned. Is there some restriction in a trigger versus just a plsql block call? The java code used is what I found on (http://www.oracle-base.com/articles/8i/ ... mPLSQL.php) and it works perfectly OUTSIDE the trigger but nothing is returned in the trigger firing steps. Any idea?
    rdbms: 11.1.0.7, Redhat 4
    I know the code works because I can write the host command output to a file. Later in the trigger I can open the file and can read the data that should have been returned in the java host call.

    FYI - here is the code from your site that I used:
    DROP JAVA SOURCE SYS."Host";
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED SYS."Host" as import java.io.*;
    public class Host {
    public static void executeCommand(String command) {
    try {
    String[] finalCommand;
    if (isWindows()) {
    finalCommand = new String[4];
    // Use the appropriate path for your windows version.
    finalCommand[0] = "C:\\windows\\system32\\cmd.exe"; // Windows XP/2003
    //finalCommand[0] = "C:\\winnt\\system32\\cmd.exe"; // Windows NT/2000
    finalCommand[1] = "/y";
    finalCommand[2] = "/c";
    finalCommand[3] = command;
    else {
    finalCommand = new String[3];
    finalCommand[0] = "/bin/sh";
    finalCommand[1] = "-c";
    finalCommand[2] = command;
    final Process pr = Runtime.getRuntime().exec(finalCommand);
    pr.waitFor();
    new Thread(new Runnable(){
    public void run() {
    BufferedReader br_in = null;
    try {
    br_in = new BufferedReader(new InputStreamReader(pr.getInputStream()));
    String buff = null;
    while ((buff = br_in.readLine()) != null) {
    System.out.println("Cmd results: " + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_in.close();
    catch (IOException ioe) {
    System.out.println("Exception caught printing process output.");
    ioe.printStackTrace();
    finally {
    try {
    br_in.close();
    } catch (Exception ex) {}
    }).start();
    new Thread(new Runnable(){
    public void run() {
    BufferedReader br_err = null;
    try {
    br_err = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
    String buff = null;
    while ((buff = br_err.readLine()) != null) {
    System.out.println("Cmd Error: " + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_err.close();
    catch (IOException ioe) {
    System.out.println("Exception caught printing process error.");
    ioe.printStackTrace();
    finally {
    try {
    br_err.close();
    } catch (Exception ex) {}
    }).start();
    catch (Exception ex) {
    System.out.println(ex.getLocalizedMessage());
    public static boolean isWindows() {
    if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1)
    return true;
    else
    return false;
    /

  • Search for string in PlSql-Code

    Hi
    I have a simple question. Is it possible to search for a string in all PlSql-Proceduren (Packages, Procedures, Functions, Triggers, Views). How can i find out where a certain package-prodedure/function is referenced.
    Thanks

    View -> Extended search. In 11.1 it would query against plscope dictionary views supported by rdbms. In lower versions it would reduce to querying all_source.

  • Alternative for "Commode" parameter in Host command

    Dear Buddies
    As we use "Commode" parameter to run report (using Run Product built-in), so can we use it in "Host ifrun60" command too to run our reports in "Asynchronous" communication mode?? I've tried this in my Host command like this
    .....commode=asynchronous....
    Or is there any alternative for this parameter to use in Host command?

    Host built in is used to invoke any executable from forms. It can be used to invoke calc , word or any exe
    I dont think its a good idea to use host built since you will not get the status.
    Use run_product or run_report_object
    Rajesh ALex

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

  • How can I customize the "Find" tool (Command+F), so that I can search for partial words?

    In other words, let's say I'm on a webpage and I want to search for each time the word "Apple" is used. So I hit Command+F and the Find banner appears.
    If I type in "apple," it works just as it should. But if I type in "pple" or any other internal part of the word, it doesn't come up.
    Is there any way to customize the find tool so that I can search for the internal bits of words to find it? Other browsers like Chrome and Firefox don't have this limitation.
    Thanks!

  • 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

  • Please answer. how to search for files

    Hi,
    We need an integration with SAP. They send us files in the format: yyyymmddhhmiss.atv
    For example we receive following files:
    20050503101115.atv
    20050504101115.atv
    20050505101115.atv
    So, we dont know how to search for all files with extensions ".atv" in the directory.
    We are using PLSQL. Is there some way to resolve with UTL_FILE?
    Any other suggestion?

    A possibility:
    In sqlplus, issue a HOST command to list the files to a file:
    ls *.atv &gt; atv_dir.txt
    Then use utl_file to read atv_dir.txt and parse it for the file names.
    You could put the filenames in a pl/sql table and use that as loop control.

  • Forms HOST command no longer works after database upgrade from 10g to 11g

    Hi,
    After upgrading the database 10g to 11g the forms HOST command no longer works on Unix server. The form used to work fine prior the upgrade. I read all the threads I could find and did not see any solutions. Adding PATH and LD_LIBRARY_PATH does not work because it does not even run a basic shell script. (I saw this solution, adding PATH and LD_LIBRARY_PATH, in many questions / threads).
    1. I wouldn't expect the database upgrade to be an issue, but it is the only change we had.
    2. Note, 11g is Oracle Fusion Middleware which is quite a bit different than 10g.
    I even tried the most basic commands like "echo" which is a build-in Unix command and there is no directory for it (ie. no /usr/bin - so variable PATH is irrelvent). i.e HOST('echo hi'); and HOST('echo "hi" '); and even HOST ('echo hi > /my_file.txt'); all returns FORMS_FAILURE (actually the if is IF FORM_SUCCESS THEN ... else ... and the else part always runs now - whereas it didn't before.).
    Or basic commands like /usr/bin/ls as in HOST(/usr/bin/ls). At that point I was just testing the Unix command would return FORM_SUCCESS even though I could not see the results (because they weren't writing to a log file). Notice that I'm using the direct path /usr/bin so no Unix environment variables were needed.
    The form does use webutil but that part works. For example, we have webutil_file_transfer( ....) The file shows up on the application server and in the expected directory.
    Here's the main goal. Upload a file from clients local PC to the datebase server. The form uploads the file to the Application server, then we have a Unix script to scp (secure copy) the file from the application server to the database server. IF webutil, or any other Oracle functions could put the file on the database server that would be better. But, I don't know of any procedures that do that - or would have done it cleanly (i.e. storing to database and write back to server and then using a blob etc. )
    Anyway, I was hoping someone would help with either of these.
    1) Get the HOST command to work. - If we can get that to work then I wouldn't need any more help. We can just call the already existing Unix script to copy the file from the application server to the database.
    2) OR be able to upload directly to the database server - wanted to do that originally
    Any help would be appreciated

    Solution for those interested and for anyone else searching this forum for a solution
    I found this on My Oracle Support:
    <h3>Host Command from Forms Not Working in 11g in Sun Solaris Sparc OS [ID 1157346.1]</h3>
    Applies To: Oracle Forms - Version 11.1.1.1.0 and later
    Sun SPARC Sun OS
    Symptoms:
    When trying to execute a Shell script or any OS command using the host() Built-in from Forms 11g, the host()command is not getting executed. The same functionality works on other operating systems and in previous versions like 10gR2.
    Steps to be followed:
    1) Take a backup and edit the $DOMAIN_HOME/config/fmwconfig/servers/WLS_FORMS/applications/formsapp_11.1.1/config/default.env or any custom environment file.
    2) Locate the following environment variable:
    LD_PRELOAD=/ora10gas/app/11.1.0/Middleware/as_1/jdk/jre/lib/sparcv9/libjsig.so
    3) Comment out this variable. After the changes, it will look like the following:
    #LD_PRELOAD=/ora10gas/app/11.1.0/Middleware/as_1/jdk/jre/lib/sparcv9/libjsig.so
    3) a) Instead of LD_PRELOAD, kindly use LD_PRELOAD_64 as given below :
    LD_PRELOAD_64=/ora10gas/app/11.1.0/Middleware/as_1/jdk/jre/lib/sparcv9/libjsig.so
    (This makes HOST AND RUN_REPORT_OBJECT work fine).
    4) Save the file and execute your forms. The Host() built-in will work as expected
    The LD_PRELOAD setting in default.env is only required for the working of signal chaining facility in JVM version 1.5 and later. If you are not using theSignal chaining facility, this variable is not required. For more information, refer to the following documentation
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14772/forms.htm#CJAJGAFF

  • Calling a Host Command

    Dear Friends,
    Is it posible to call a host command (windows) from PLSQL (Oracle 9i) ?
    Thanks.
    Jai

    > [email protected]
    [email protected]
    [email protected]
    So.. the one who dies with the most e-mail addresses wins?
    Or what exactly is the purpose of posting all your e-mail addresses - besides as food for web bot e-mail harvesters used by spammers?

Maybe you are looking for

  • Posterize filter not functioning in Photoshop Elements 12

    I just purchased Photoshop Elements 12  for this very feature and now I find out when I open a photo and apply the posterize filter that it does NOTHING. The level of posterization window just sits there open and no matter what level from 2-25-70 or

  • Report builder problem

    hi all is there any way to set window property for report previewer in runtime such as maximizie window? thanks. shoja.

  • Plug-ins for other languages

    I am working on a design project in Illustrator where I need to use Dari text which is the Afghani written language.  Is there a plug in I would need to install to make it work?

  • Weblogic server using jdbc-odbc bridge

    I want to connect to database through jdbc-odbc bridge.I am using web logic server. When i creating new jdbc connection pool a error comes that driver class is not on classpath. how i rectify this problem? how I make weblogic to recognize sun.jdbc.od

  • Equium M70-173 - Fatal error - New HDD and Recovery.

    Excuse my lack of knowledge. I have been given a Equium M70-173. upon turning on before loading it reads - Fatal Error; i should back up all of my data and replace the Hard Drive. I am not sure if this is fixable and if it is what i should do. I also