HOST Command in oracle forms 10g

Hi,
I need to use HOST command to run an OS(Unix) command in Oracle Forms 10g.
Its throwing a non-oracle exception during run time.
Is there any kind of configuration/settings that I need to check before using HOST command?
Is there any way to capture the error description?
Any help will be highly appreciated!
Thanks,
Ankit

Thanks Thangaraj for your valuable suggestion!!
One question though..
Should'nt ORACLE_HOME be an absolute path?
I have added "/bin" in FORMS_PATH but not sure if we can do the same with ORACLE_HOME.
Can you please suggest?
Regards,
Ankit

Similar Messages

  • Can't Call host command on Oracle Forms 10g on LINUX  ap server

    I have oracle developer suite 10g installed on Windows.I want to do some file operation in ap server(linux as 3)
    I can use the script in the terminal on linux. but i can't use it on form . this is the button press trigger!
    declare     
         a varchar2(200);
    begin
         a:='mkdir -p /data/apps/ygm';
    --     message(a);
    host(a);
    end;
    When the trigger execute, the linux hasn't do anything!
    What should I do?

    Check and make sure you've added the appropriate bin directories in the default.env file. I ran into the same problem with forms on OAS on HP-UX.
    Steve.

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

  • Host command in oracle forms

    can anyone any one help me on this issue
    i am trying to use host command in a.s which is running in unix o.s to rename one of the file i am using the below command but its not working . can any one tell me whats worng or how to perform this
    the_command := 'mv /dir/filename1 /dir/filename2' ;     
         HOST(the_command,NO_SCREEN);

    I don't think you can do this with host like you did.
    You can create a script which accepts filename1 and filename2 as parameters and call this
    move.sh:
    mv $1 $2
    then call the script
    host('/home/oracle/move.sh /dir/filename1 /dir/filename2', no_screen);
    or if this doesn't work (in windows it works in 6i to call .cmd files without prefixing cmd /c don't know if this is also in unix, but you can try), you can call bash to do this
    host('/bin/bash /home/oracle/and_so_on
    regards
    christian

  • What is command in Oracle form 10g to check network which using webutil?

    All friend have know command to check network which using webutil then let's tell for me know, example as using client_host('cmd /c ping dantri.com').
    But i don't know express. Let's me find it. Thanks you very much!

    Ok,thanks you very much, because i doing a program at company, it related to server. I want to check network of this server to if ping local server is reply then will do upload data to folder on server file, if ping server is not connect then keep in C driver local. Now i not yet find solution about this problem. I hope all friend may be help me find way. Thanks you!

  • Hide user/pwd when  running sqlplus job via HOST cmd in oracle forms

    I have a oracle procedure that returns the run_command string. Ex . ‘sqlplus ui/pwd @report.sql’. The run_command string returned by the procedure is run via the HOST command in oracle Forms.
    HOST(run_command) submits the job but it exposes the ui and pa that is used in the run_command string. On UNIX, if I do ps –ef | grep sqlplus after the job is submitted by the HOST command, I can see the ui/pwd in the run_command.
    How can I submit the job via HOST command without exposing the ui/pwd ?
    Thanks
    GP

    Of course, the Operating System Authenticated account method should only be used if you are running this job on the machine with that's running the Oracle instance. You absolutely do not want to turn on remote authentication. If you're not on the same machine, I would suggest you put the credentials in a file and secure it with filesystem privileges. I generally use a single generic script initiator that logs on and then runs some other script specified on the command line. Something like ...
    username/password
    @&1Note: the extra "--/--" lines ensure that the script fails with invalid login if the credentials are wrong but they get interpreted as comments if the logon succeeds.

  • Any command to get IP host address in Oracle Form 6i?

    Dear all,
    Any command to get IP host address in Oracle Form 6i?
    Best Regards,
    Amy

    Amy,
    There is sample code on OTN that allows you to fetch client information such as the IP Address with Forms 6i. Here is the link:[Get Client Information|http://www.oracle.com/technology/sample_code/products/forms/6idemos.html]
    Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • Oracle Forms 10g & Oracle 10g DB Connection Problem

    Toady i have installed oracle forms 10g and oracle 10g db when i run my form it gives me this error how can i resolve it
    "ora-12154 tns could not resolve the connect identifier specified"
    Here are the values in forms 10g tns
    # tnsnames.ora Network Configuration File: C:\DevSuiteHome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PLSExtProc)
              IMS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = IMS)
    and here the values of forms 10g SQLnet
    # sqlnet.ora Network Configuration File: C:\DevSuiteHome_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)
    (description =
    # (address=(protocol=tcp)(host=localhost)(port=1383))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (connect_data=(rpc=on))
    What changes should i make to overcome this problem.

    "ora-12154 tns could not resolve the connect identifier specified"The problem is local to the Forms Home, probably in tnsnames.ora (seems that there are tabs in IMS entry name). Carefully check it.$ oerr ora 12154
    12154, 00000, "TNS:could not resolve the connect identifier specified"
    // *Cause:  A connection to a database or other service was requested using
    // a connect identifier, and the connect identifier specified could not
    // be resolved into a connect descriptor using one of the naming methods
    // configured. For example, if the type of connect identifier used was a
    // net service name then the net service name could not be found in a
    // naming method repository, or the repository could not be
    // located or reached.
    // *Action:
    //   - If you are using local naming (TNSNAMES.ORA file):
    //      - Make sure that "TNSNAMES" is listed as one of the values of the
    //        NAMES.DIRECTORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA)
    //      - Verify that a TNSNAMES.ORA file exists and is in the proper
    //        directory and is accessible.
    //      - Check that the net service name used as the connect identifier
    //        exists in the TNSNAMES.ORA file.
    //      - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA
    //        file.  Look for unmatched parentheses or stray characters. Errors
    //        in a TNSNAMES.ORA file may make it unusable.
    //   - If you are using directory naming:
    //      - Verify that "LDAP" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Verify that the LDAP directory server is up and that it is
    //        accessible.
    //      - Verify that the net service name or database name used as the
    //        connect identifier is configured in the directory.
    //      - Verify that the default context being used is correct by
    //        specifying a fully qualified net service name or a full LDAP DN
    //        as the connect identifier
    //   - If you are using easy connect naming:
    //      - Verify that "EZCONNECT" is listed as one of the values of the
    //        NAMES.DIRETORY_PATH parameter in the Oracle Net profile
    //        (SQLNET.ORA).
    //      - Make sure the host, port and service name specified
    //        are correct.
    //      - Try enclosing the connect identifier in quote marks.
    //   See the Oracle Net Services Administrators Guide or the Oracle
    //   operating system specific guide for more information on naming.
    $

  • Cannot connect to database using Oracle Forms 10g

    hi,
    I had installed Oracle 10g database and Oracle Forms 10g on Windows Vista Home Basic. However, I was unable to connect to
    the database in Oracle Form using scott/scott for database "orcl", with the following error message:
    ORA-00604: error occured at recursive SQL level 1
    ORA-01009: missing mandatory parameter
    However, I could access to the database using this set of username and password. Am I missing something? Thanks.

    Hi,
         After a successful installation of forms 10g in vista, I'm about to run OPatch Universal Installer for the patch 7047034
    in order to fix the form bugs. However, I cannot run the command "opatch apply C:\oracle_form\Patch26_Rel_10105\7047034"
    with the error "The Oracle Home c:\devsuitehome_1 is not registered with the Central Inventory.". Then I try to create a
    oraInst.loc file, but not much change still. The situation is that oracle 10g is installed before oracle developer suite
    10g, and when I try to set oracle_home to oracle 10g's path ("C:\oracle\product\10.2.0\db_1") and run "opatch lsinventory",
    it returns the correct result; when oracle developer suite 10g's path ("c:\devsuitehome_1") is set as the oracle_home,
    the same command would return a different result as "LsInventory: OPatch Exception while accessing O2O".
         I've verified through Oracle Universal Installer that the Central Inventory has included both as oracle_home (oracle 10g
    and oracle developer suite 10g). I'm very confused now, though it seems that the problem could be solved by registering the
    Central Inventory with oraacle developer suite 10g's path. Thanks.

  • How to connect oracle forms 10g with oracle 10g express database?

    Hi all,
    I have downloaded and installed oracle forms 10g and oracle database 10g express, when I open net configuration assistant to test local net service, I tested the default service (EXTPROC_CONNECTION_DATA) BUT THE RESULT IS "ora-28547 connection to server failed probable oracle net admin error"
    How can I solve this issue?
    My tnsname.ora is located in c:\DevSuiteHome\network\admin\tnsnames.ora, and its contents is:
    # tnsnames.ora Network Configuration File: c:\DevSuiteHome\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nour-pc)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PLSExtProc)
    Edited by: user10228498 on Jan 21, 2011 11:37 PM

    I copied the contents of C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN\tnsnames.ora and appended it to C:\DevSuiteHome\NETWORK\ADMIN\tnsnames.ora
    and tried net configuration management to test local net service, the test was ok, thus the first problem resolved.
    but the login problem in forms developer still exist and it claims that: ora-12154 tns could not resolve the connect identifier specified.
    any ideas?

  • Urgent : i am not able to coonect the report through oracle forms  10g

    i created a report "test1" through oracle report 10g and calling from oracle forms 10g
    i tried to run the report from forms builder but i am getting the following error
    "server can not connect 41213 error"
    from run mode i already given the following command for running the report server
    rwserver server=rep_fsprod
    The help is saying like that
    cause:  There is a problem connecting to the specified Report server. Action:  Check the Report server and make sure it is up and running. Level:  20
    Any pleae provide me the necessor setting for this issue and give me some good reselution
    But i am not sure where is the problem
    If anybody thats will be helpfull for me. please provide the step that i need to take
    the following are the code
    ------------------------------------------------------------>
    Declare
         PL_Id     ParamList;
    v_Report VarChar2(30) := 'TEST1';
    v_Rep_Id Report_Object;
    v_Rep_Job_Id VarChar2(100);
    v_Job_Id VarChar2(100);
    v_Rep_Status VarChar2(100);
    v_Rep_URL VarChar2(1000);
    v_Host_Name VarChar2(100) := 'localhost';
    v_Port     VarChar2(100) := '8889';
    v_Rep_Server VarChar2(100) := 'abc';
    Begin
    PL_Id := Get_Parameter_List(v_Report);
    If Not Id_Null(Pl_Id) Then
    Destroy_Parameter_List(Pl_Id);
    End If;
    Pl_Id:=Create_Parameter_List(v_Report);
    Add_Parameter(PL_Id, 'Usr_Id', Text_Parameter, 'cms');
    Add_Parameter(Pl_Id, 'ParamForm', Text_Parameter, 'NO');
    --Find Report Object
    v_Rep_Id := Find_Report_Object('TEST1');
    --Communication Mode
    Set_Report_Object_Property(v_Rep_Id, Report_Comm_Mode, Synchronous);
    Set_Report_Object_Property(v_Rep_Id, Report_Desformat, 'HTML');
    --Handled Destination Type and Name
         Set_Report_Object_Property(v_Rep_Id, Report_DesType, CACHE);
    --Specify Report Server and Report File Name
    Set_Report_Object_Property(v_Rep_Id, Report_Server, v_Rep_Server);
    Set_Report_Object_Property(v_Rep_Id, Report_FileName, v_Report);
    --Run Report
    v_Rep_Job_Id := Run_Report_Object(v_Rep_Id, PL_Id);
    v_Rep_Status := Report_Object_Status(v_Rep_Job_Id);
    If v_Rep_Status = 'FINISHED' Then
              v_Job_Id := SubStr(v_Rep_Job_Id, length(v_Rep_Server)+2);
              v_Rep_URL := 'http://' || v_Host_Name || ':' || v_Port || '/reports/rwservlet/getjobid' || v_Job_Id || '?server=' || v_Rep_Server;
    Message(v_Rep_URL);
                   Web.Show_Document(v_Rep_URL, '_blank');
    Else
         Message('Error Running Report');
    End If;
    End;
    ------------------------------------------------------------>

    i am facing same please do some favour me for this report issue

  • Oracle reports 6i to Oracle forms 10g migration

    Hi,
    I have .rdf files which were created on Oracle Reports 6i. I would like to migrate the .rdf files into Oracle Reports module which is present as a part of Oracle Forms 10g to generate PDF output.
    Please let me know the detailed steps to be followed as I am a total newbie. Also I need to generate these reports on demand from a java 5 application (JSF 2.0).
    Currently for ORacle reports 6i, I have the following code in my java application
    rwrun60.exe g:\tomcat33\webapps\reports\web-inf\src\null userid=***/*** destype=FILE desformat="pdf" paramform=NO printjob=NO batch=YES desname=temp.pdf
    1. What would be the equivalent for reports in ORacle Forms 10g ? I know there is an Oracle Apps server where ther report services reside. How to I invoke my report from my java application (residing on a weblogic server 10.3.6)?
    2. What ould I do with the 6i .rdf files to upgrade them to 10g ?

    I am trying to call an Oracle report i.e .rdf (which is located on the Oracle  App Server) from my java EE 5 (JSF) application. The Oracle  App server is Oracle Application Server 10g Release 2. I assume Oracle report generation capability is available in this release.  I need to invoke the report from my Java JSF application on demand (whenever the user clicks a button on the web browser page, the report should appear on the browser as PDF) . My java application resides on Linux weblogic server.
    Please let me know how it can be done ? I see rwclient.sh and another method to directly invoke using a URL. How do I do it on java, would a request.redirect() to the URL work ?
    Also for hiding the params in the URL. keys need to be configured on the Oracle server right ?
    Also if we use rwclient.sh or the URL based invocation, would there be any issue in concurrency when multiple users request the same report at the same time ?

  • Oracle Forms 10G(tabbed canvasses not working the same as in Forms 6i)

    Hi everyone,
    I have a form which gets called from another form through a list of value. The called form(second form) has a group of tabbed canvases which get displayed depending on the parameters passed from the first form.
    The Form is working prefectly fine in Forms 6i but when I converted the same form in to forms 10G it does not seem to work the same way. The tabbed canvasses are not getting displayed. I am manually having to press the execute query to get data displayed in the tabbed canvasses. I checked the parameters that are being passed and they are the same as that in Forms 6i.
    Please let me know where my 10G Form is going wrong. Appreciate your help, please send me an email on [email protected]
    Thanks

    duplicate
    Re: Oracle Forms 10G not working as Oracle Forms 6i

  • How to do this in oracle forms 10g

    hi all,
    any idea about how to format a drive using oracle forms 10g and shutting down the remote pc and a personal pc using oracle forms 10g.
    i am using windows XP2 as os.
    please replay..

    Hi Inol and Weiden,
    thanks for your help,
    i have cretaed a form xyz.fmx with a button , i wrote in when-button-pressed and also attached the default webutil.pll(which is in forms path) library in attached-library section
    Client_host('cmd c/ shutdown -i');
    but my problem is that when i run the form i am getting error that
    FRM-40039: Cannot attach library webutil.pl while opening form xyz.fmx.
    Cause: The given library is attached to the form but
    cannot be located in the search path for PL/SQL libraries.
    Action: Make sure that the given library can be found
    and that it has read permissions set.
    Level: 99
    Type: Error
    i think i have to configure the webutill.pll but i don't how to configure
    can you tell me how to configure the webutil.pll file..
    please reply..

Maybe you are looking for

  • Satellite A200 can't see wifi

    Hello, I meet strange problem, till now my wifi has working good, but today, i don't know why, my laptop can't see any wireless networks, like the antenna was turn off. Of course it is on, i see orange light that signalize that. I try to reinstall dr

  • 12570

    Hi All I'm getting this below error once in a while, can anyone help me on this...  Thanks in advance. Oracle.ManagedDataAccess.Client.OracleException: ORA-12570: Network Session: Unexpected packet read error ---> OracleInternal.Network.NetworkExcept

  • Reports stay in a pending state

    Hi all, I'm hoping to find a little bit of help in regards to an issue I'm having on a Crystal Reports XI R2 server. When reports are scheduled now they stay in a "pending" state and don't run correctly. I've verified that all the servers (they're al

  • Transaction replication blocking

    Hello, I am seeing that transaction replication inserts are causing a lot of blocking in the subscriber database. The blocked statements are select statements. Does Transaction replication lock tables when it inserts?Can this blocking be prevented? T

  • Mac to Office Jet Pro 8600 printer

    I have a IMAC desk top connected to an Office Jet Pro 8600 running MAC OS 10.6.8.  I cannot get the scanner to scan photo's to a specific size.   I use the HP Utility but no matter what I try to do the scanned image only cooies from the front right c