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.

Similar Messages

  • 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

  • URGENT!!! calling crystal reports from oracle forms 10g

    Is it possible to call crystal reports from oracle forms 10g?
    Can someone help to answer how, if there is a solusion, to call crystal reports from oracle forms 10g.
    Please provide codes with details showing step by step.
    Thanks

    hi
    try something like this.
    DECLARE
    charWinHandle VARCHAR2(50);
    numWinHandle NUMBER;
    BEGIN Set_Application_Property(Cursor_Style,'BUSY');
    charWinHandle := Get_Item_Property('Control.Rep',Window_Handle);
    numWinHandle := To_Number(charWinHandle);
    :Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowParentHandle
    := numWinHandle;
    :Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowState := 2;
    :Item('CONTROL.CRYSTALREPORT1').OCX.Crystal.Crysta lReport.Connect
    := 'DSN=;UID=' || Get_Application_Property(UserName) ||
    ';pwd=' || Get_Application_Property(password) || ';dsq=;';
    Crystal_CrystalCtrl.ReportFileName( :Item('Control.CrystalReport1').interface,
    'C:\Sample_Rep.Rpt' );
    Set_Window_Property( Forms_Mdi_Window, Window_State,Maximize );
    Set_Window_Property( 'MAIN', Window_State, Maximize );
    :reptitle := 'Report Preview Window';
    numWinHandle := Crystal_CrystalCtrl.PrintReport( :Item('Control.CrystalReport1').interface );
    Set_Application_Property(Cursor_Style,'DEFAULT');
    END;NOTE: Change the report name and path according to your required file name and path in
    the "Crystal_CrystalCtrl.ReportFileName" method call. Also, the connection string shown
    assumes that you will use the current USER and PASSWORD for the Form.
    - To make the above Form generic so that you can run any Crystal report from it, then create
    a parameter for the report name and pass it to the Form using CALL_FORM from any other Form.
    Then just replace the file name with the passed parameter.
    -. Run the Form
    If its correct/helpful please mark it thanks.
    sarah
    Edited by: S@R@h on Nov 27, 2009 6:33 AM

  • Calling Crystal Reports from Oracle Forms 10G

    Hi everyone,
    I am trying to call a crystal report from Oracle Forms 10G.
    I have a button on my Form which when clicked calls a Crystal Report which the uaser then wants to save as a PDf file.
    Can someone please send me the code to do this and also the exact steps that are to be followed.
    Thanks
    Fm.

    Hi Andreas,
    I am trying to call the crystal report from an Oracle Form using a URL. No batch file is being used here.
    I am looking for a peice of code similar to run_product or run_report built in in Oracle which calls an Oracle report from an Oracle Form.
    Also I dont want to display the report on a screen or a window in Oracle Forms. I would like it to run just as we run an Oracle Report from an Oracle Form.
    Is that possible ? If yes please let me know the steps to do this.
    Thanks
    Faiz
    Edited by: IQ on May 13, 2011 11:38 AM

  • Calling a report from oracle form 10g

    how to call a report from oracle form 10g

    Please see the link:
    http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf

  • Exception when calling web service from Oracle forms 10g

    Hi All,
    I am trying to integrate Oracle Forms 10g(V 10.1.2.0.2.) with Web Services.
    There is a java class named 'authenticate' which is generated using Oracle JDeveloper.
    This class is included in the forms application by using "Import Java Class" feature.
    Forms built the following funtion based on that class:
    -- Method: authenticate (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    FUNCTION authenticate(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    message('here1');
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'mypackage/AuthenticatorWebServiceServiceStub',
    'authenticate', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
    message('here2');
    END;
    However when the above code is invoked it shows the message 'here1' on the form and then throws the following exception: java.lang.Exception: java.lang.ClassCastException
    Please suggest me what's wrong with the code. I appreciate your time and help.
    Thanks,
    Scott.

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Calling Word document from Oracle Forms 10g

    Hi all,
    I would like to call a Microsoft Word document from my Oracle Forms 10g.
    What would be the best way to do this?
    Thank you in advance.

    Have you tried something like
    WEB.SHOW_DOCUMENT('file:///<documentpath>','_blank');

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

  • 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

  • Calling web service from oracle forms 10g

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://gend:83/DesignService.svc?wsdl
    The service was developed by us.
    Calling the web service using JDeveloper works fine but when I complie in Oracle Forms it returns wrong number of types of arguments in call SENDHELLO.
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    xo ora_java.jobject;
    rv varchar2(2000);
    ex ora_java.jobject;
    str varchar2(100);
    BEGIN
    jo := GendServiceClient.new;
    rv := GendServiceClient.sendHello('Nora');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    message(Exception_.toString(ex));
    END;
    Any help/ideas on this is greatly appreciated. Thanks.
    Edited by: KE Nora Loera on Jun 1, 2012 1:24 PM

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Calling Report from Menu (Oracle Forms 10g)

    We have the applications in Forms6i & Reports 6i (Client Server) and migrating to Forms 10g and Reports 10g. We have the menu, from that menu we are calling all the forms and Reports. For especially Reports earlier we user RUN_PRODUCT but now 10g it is not working. How can call the report using RUN_REPORT_OBJECT
    Important things we have some dynamic parameters (input) to the each report. That means when i called the report from the menu i need to get first parameter form to take the parameters and then can be run the report.

    Here is the code to call report from menu in 10g
    DECLARE
    pl_id ParamList;
    repid REPORT_OBJECT;
    v_rep varchar2(100);
    v_server VARCHAR2(100);
    rep_status varchar2(100);
    v_host VARCHAR2(100);
    BEGIN
         select rep_server into v_server from reports_data;
         select machine into v_host from reports_data;
    pl_id := Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_id) THEN
         Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('tmpdata');           
    Add_Parameter(pl_id,'P_C_CODE',TEXT_PARAMETER,:GLOBAL.COMPANY);
    Add_Parameter(pl_id,'P_B_CODE',TEXT_PARAMETER,:GLOBAL.BRANCH);
         repid := find_report_object('REPORTOBJ');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_VOUCHER_ENTRY.RDF');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
              v_rep := RUN_REPORT_OBJECT(repid, pl_id);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   LOOP
                        rep_status := report_object_status(v_rep);
                             message('Running');
                   END LOOP;
              IF rep_status = 'FINISHED' or rep_status is NULL THEN
                   --Display report in the browser
                   WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
              ELSE
                   null;
         END IF;
    END;

  • Calling a Report from Oracle Forms 10g

    Hi Everyone,
    I need assistance.
    Am running Oracle Forms & reports 10g.
    My Form module is running just fine. Inside the the Form Module I added a button with a "When Button Pressed Trigger" that has the following code
    declare
         repid REPORT_OBJECT;
         v_rep VARCHAR2 (100);
    begin
         repid := FIND_REPORT_OBJECT ('REPORT49');
         v_rep := RUN_REPORT_OBJECT (repid);
    end;
    This compiles without any errors.
    At runtime when I press the Button from Forms, I get the following error;
    "FRM-41211: Integration error: SSL failure running another product"
    Please assist.
    Regards,
    Pascaline

    Hi user593321
    FRM-41211: Integration error: SSL failure running another product.
    Cause:     There is a problem detected when launching another product.
    Action:     Check the RUN_PRODUCT built-in.
    Level:     99
    Type:     Error
    Below a very useful links pls try them, i recommend the 2nd one:
    http://www.programmersheaven.com/mb/oracle/211184/211184/ReadMessage.aspx
    http://www.developpez.net/forums/showthread.php?t=292435
    Best Regards,
    Abdetu..

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

Maybe you are looking for

  • Mail app stopped working.

      Erased accounts.  when you try to add an email account it says :process com.htc.android mail has stopped unexpectedly.  what do I do?

  • Mail can't open Word attachments

    I did a clean install of Tiger and my apps. Things got messy however and I ended up just dragging some of my apps back over from my back up, --though at this point I can't remember which apps. Now when I receive an email with a Word doc attached, I g

  • Deployment of JSF Libraries to /WEB-INF/lib

    Good day. In our new web application we use three different JSF taglibs (richfaces, trinidad, tomahawk). All of them are managed as "JSF Libraries" (created in eclipse options->web->"JavaServer Faces Tools"->Libraries). To include jars from these lib

  • .Mac and iPhoto 6 access

    Hi, I want to make a gallery on my homepage but I get a message telling me I have to pay for the service. I have already subscribed for a year, punched in a username and password but apparently this is different from my Apple ID and therefore it is r

  • OBJ_TYPE AND OBJ_NAME x REAL PROGRAM NAME

    Hi Experts, With the corresponding entries in e071, I need fo find the specific report and use the command "READ REPORT" in my abap program. But when the OBJ_TYPE is not a program (<>PROG) - Ex. Function, Methods, i can't use the read report just usi