Permission denied in calling ssh file from job

hello
i tried to create program and a job to execute ssh file using sql i am using oracle 10g R2
as following :
begin
DBMS_SCHEDULER.create_program (
   program_name => 'START_SCRIPT_INVOIC',
   program_type => 'EXECUTABLE',
   program_action => 'root/[email protected]:/home/admin/services/fd_listener/INVOICStart.sh',
   number_of_arguments => 0,
   enabled => TRUE,
   comments => 'COMMENTS ABOUT THE SCRIPT ROLE');
dbms_scheduler.create_job 
  (job_name => 'START_SERVICE_INVOIC', 
   program_name=> 'START_SCRIPT_INVOIC', 
   enabled=>true, 
   auto_drop=>false, 
   comments=>'Job used to run the program START_SCRIPT');
end;
then i tried to start to exec the job as follow
BEGIN
dbms_scheduler.RUN_JOB('START_SERVICE_INVOIC');
END;
and give me this error :
>[Error] Script lines: 1-4 --------------------------
ORA-27369: job of type EXECUTABLE failed with exit code: Permission denied
ORA-06512: at "SYS.DBMS_ISCHED", line 150
ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
ORA-06512: at line 2 
please help me i need to execute  this urgently 

user11114041 wrote:
hello
i tried to create program and a job to execute ssh file using sql i am using oracle 10g R2
as following :
begin
DBMS_SCHEDULER.create_program (
   program_name => 'START_SCRIPT_INVOIC',
   program_type => 'EXECUTABLE',
   program_action => 'root/[email protected]:/home/admin/services/fd_listener/INVOICStart.sh',
   number_of_arguments => 0,
   enabled => TRUE,
   comments => 'COMMENTS ABOUT THE SCRIPT ROLE');
dbms_scheduler.create_job 
  (job_name => 'START_SERVICE_INVOIC', 
   program_name=> 'START_SCRIPT_INVOIC', 
   enabled=>true, 
   auto_drop=>false, 
   comments=>'Job used to run the program START_SCRIPT');
end;
then i tried to start to exec the job as follow
BEGIN
dbms_scheduler.RUN_JOB('START_SERVICE_INVOIC');
END;
and give me this error :
>[Error] Script lines: 1-4 --------------------------
ORA-27369: job of type EXECUTABLE failed with exit code: Permission denied
ORA-06512: at "SYS.DBMS_ISCHED", line 150
ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
ORA-06512: at line 2 
please help me i need to execute  this urgently
This is a forum of volunteers.  There is no "urgent" here.

Similar Messages

  • Permission Denied when calling a method from VB using WebLogic 8.1.2 JCOM

    Hi,
    We are calling an java/ejb methods from VB using WebLogic JCOM 8.1 SP2. But
    using JCOM, we are getting a error Permission denied when called from VB. We think
    that we should update pathch jintegra 2.0 or 2.1 in WebLogic 8.1.2 the to solve
    this issue, because we faced the same problen "permission denied" when we used
    JINTEGRA(third party software). Once we installed the JINTEGRA 2.1 it solved the
    issue.
    So, can anyone help on regard to this issue of "Permission denied" in WebLogic
    JCOM 8.1 SP2.
    Thanks & Regards
    Raghu

    I too am experiencing the jCOM error: "Run-time error '70': Permission Denied". The problem appears to be related to a Microsoft Security Patch KB835732 (MS04-011 which, as you indicated, has been fixed in J-Integra v2.1 (FYI, jCOM 8.1 is based on J-Integra 1.5.4, see J-Integra/jCOM versions.
    Did you ever get a resolution concerning 8.1 SP2? 8.1 SP3 is available now but I don't see any mention of jCOM updates in the WebLogic 8.1 What's New documention. I can't immediately upgrade (trying to stay on same version as a few other developers I work with) but I am hoping it is resolved in SP3.

  • Remote XML causes Exception Permission denied to call method XMLHttpRequest.open

    Im using google page creator to host my domain, they don't
    allow javascript or xml files (the correct mime type/content type
    isnt presented so the browser just downloads the file). They do
    however support html. I have uploaded the main html page to their
    and the javascript files and xml files to my isp that allow .js
    & .xml. However, when I call it I get a nice exception.
    Exception caught while loading
    http://www.logics.eclipse.co.uk/portfolio.xml:
    Permission denied to call method XMLHttpRequest.open.
    Any ideas how to get this working - full source to test is at
    http://www.logics.co.uk/test.html
    Cheers
    Chris
    Full source:
    <script type="text/javascript" src="
    http://www.logics.eclipse.co.uk/xpath.js"></script>
    <script type="text/javascript" src="
    http://www.logics.eclipse.co.uk/SpryData.js"></script>
    <script type="text/javascript">
    var dsCategories = new Spry.Data.XMLDataSet("
    http://www.logics.eclipse.co.uk/portfolio.xml",
    "portfolios/portfolio/site", { distinctOnLoad: true, sortOnLoad:
    "site" });
    var dsPortfolio = new Spry.Data.XMLDataSet("
    http://www.logics.eclipse.co.uk/portfolio.xml",
    "portfolios/portfolio");
    </script>
    <div spry:region="dsCategories dsPortfolio"
    class="SpryHiddenRegion">
    <div spry:repeat="dsCategories">
    <div>{dsCategories::site}</div>
    <div spry:repeat="dsPortfolio"
    spry:test="'{dsCategories::site}' == '{dsPortfolio::site}'"
    spry:setrow="dsPortfolio"><a href="{dsPortfolio::screenshot}"
    target="_blank"><img src="{dsPortfolio::thumbnail}"
    style="border: none;" alt=""/></a></div>
    </div>
    </div>

    I'm getting really frustrated by the inability to pull files
    from another domain. I downloaded DW and am testing with Spry to
    pull property info from a remote site which has dynamic xml files.
    It seems incredibly silly to allow http requests to load data if
    you can't do it across domains. I just don't see the point. I just
    checked your test url fingersuk and I see you stil don't have a
    fix.
    It seems pointless to me that you need to set up a CF or PHP
    script to pull the remote files to your local server as a proxy!
    Surely that defeats the purpose of the whole Spry http request
    idea. It's creating more work instead of saving it. Maybe I'm
    missing something, it's late and I'm tired and frustrated!
    Is it possible to use a domain policy XML file or something
    with Spry to include an IP in a sites 'trusted realm'?
    btw, the link posted by ajpowellatl is dead,
    cheers,
    Mike

  • Spry and Permission denied to call method XMLHttpRequest.open

    hi all,
    I'm using Spry to call an RSS feed and display on a webpage.
    I'm running this locally on my computer for testing measures and it
    works fine in IE but i'm getting a message saying "Permission
    denied to call method XMLHttpRequest.open" when using FF.
    I googled around a bit and found that it has to do something
    with FF's cross domain security, but nothing much more than that. I
    was just wondering if anyone would be able to point me to a good
    resource that explains the issue more and how to fix it, keeping it
    in mind that i want to fix it using Dreamweaver's Spry
    options.

    5h4k42u1u wrote:
    > if i'd use the spry tables with an RSS feed, it'll work
    with IE but not with
    > FF, but then when i try it with a local XML file, it'll
    work with FF but not
    > IE? In fact, why does it have trouble at all with the
    local file, there should
    > be no cross domains to worry about, right?
    You're right that there should be no problem with a local
    file, but
    without seeing the XML file and your code, it's impossible to
    say what's
    causing the problem. I think your best bet is to post a more
    detailed
    question in the Spry forum.
    http://www.adobe.com/go/labs_spry_pr1_forum
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Call .bat file from java code

    I need to call an application that uses a .bat file to execute from a java program. Is that possible?
    This is the .bat file:
    importcli.exe ciaf2735 C:\Importcli\files\SAI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\CI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\SC2735*.txt  
    importcli.exe db1800 C:\Importcli\files\*.mdb

    magaupe wrote:
    I need to call an application that uses a .bat file to execute from a java program. Is that possible?
    This is the .bat file:
    importcli.exe ciaf2735 C:\Importcli\files\SAI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\CI2735*.txt  
    importcli.exe ciaf2735 C:\Importcli\files\SC2735*.txt  
    importcli.exe db1800 C:\Importcli\files\*.mdb
    Hmmm, I wonder what would happen if there were a web search engine and you could research like this:
    [http://www.google.com/search?hl=en&q=call+.bat+file+from+java]

  • How to call java files from different directories

    hi, how do i call java files from a different directory??
    let say i got partA.java, and i need to include functions from partB.java which is in a different folder. how can i do that?

    Chicon wrote:
    Hi nuttynibbles,
    Before the class declaration in partA.java, you must have an import statement like :
    import someDirectory.partB;
    public class partA {
    ... and before you ask... you'll probably want to read through this http://java.sun.com/docs/books/tutorial/java/package/index.html

  • I wants to call .Exe file from Java Programme

    I wants to call .Exe file from Java programme. Please give answer with example. This very urgent. Help me

    hi
    u can use Runtime.exec() method in java.lang package
    to execute exe files
    regards
    pnp

  • How to Call .XDO file From Java Program

    Hi,
    I have developed a report in using BI Publisher version 10.1.3.
    I created the report and it only created XDO files. If I want to call XDO file from Java program how I can do that.
    What are the APIs available to do that.
    Thanks
    -Ashutosh

    Hi,
    the JavaAPI didn't work with the xdo-Files. But you can create a proxy stub for the Web Service API of BI Publisher which uses the xdo's in the repository.
    regards
    Rainer

  • Permission denied while opening a file.

    Hi,
    I have a program, in which I am trying to open local system file.
    When I give the link as http://www.googlestepper.blogspot.com , it actually connects and opens the URL; whereas and when I give the link as file:///d:/test.txt, it does not open and says 'Permission denied' from a message box.
    More in detail:
    The flow is between JS, PHP and a text file (text file contains two columns; the first is like name and the second is like value where the value is a link: http or file... name-value pair). When user types the name in a text box and presses 'Enter' key, it locates the appropriate value (here link: http or file) from the text file and opens the link. Link opens for http only, but not for file:///, it says 'Permission denied'. I am using Apache.
    Please help me in solving the problem.
    Thanks and regards,
    Leslie Prabakar Ruphas V

    I'll call you Ralph,
    There is a strange a little rule in webservers that says "thou shalt not allow access to the file system!"... It's a security thing... It means that no matter what a hacker does within your server s/he shouldn't have permits to see anything outside of that webserver... so compromised doesn't mean pants-down-hello-world.
    You can't turn it off, and if you could then you really wouldn't want to, and if you figure out how to turn it off flick me your IP address and I'll empty your bank accounts for you. Point taken?
    So what do you do instead? Publish your html page in or under your tomcat's webapps folder, and access it's via it's url.

  • Permission denied - unable to "compress" file

    Hi I have a weird scenario which I would need help on.
    SunOS mysvr 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-880
    I have a user "myuat" which belongs to a group "pc"
    # id
    uid=30008(myuat) gid=101(pc)
    and in /etc/group
    pc::101:otheruat,myuat
    I am running a compress command to compress a file in a directory and I get permission denied
    # cd /myprod/mycor/mycom/myarch
    # compress mytxtcom.20080804
    mytxtcom.20080804: Permission denied
    # ls -l mytxtcom.20080804
    ----rwx---+ 1 myuat pc 239268 Aug 5 00:23 mytxtcom.20080804*
    # getfacl mytxtcom.20080804
    # file: mytxtcom.20080804
    # owner: myuat
    # group: pc
    user::---
    group::rwx #effective:rwx
    group:hmis:r-- #effective:r--
    mask:rwx
    other:---
    # getfacl /myprod/mycor/mycom/myarch
    # file: /myprod/mycor/mycom/myarch
    # owner: root
    # group: pc
    user::---
    group::rwx #effective:rwx
    group:hmis:r-x #effective:r-x
    mask:rwx
    other:---
    I noticed that if I chown from:
    ----rwx---+ 1 myuat pc 239268 Aug 5 00:23 mytxtcom.20080804*
    TO:
    ----rwx---+ 1 root pc 239268 Aug 5 00:23 mytxtcom.20080804*
    then I will be able to compress the file, why? I wonder why "myuat" id is not able to compress file eventhough it belongs to same group?
    ----rwx---+ 1 myuat pc 42120 Aug 5 00:23 mytxtcom.20080804.Z*
    Any idea? Please help.
    Thanks

    Were you the root user when you compressed the file?
    It looks like the user 'myuat' does not have permission to write to the '/myprod/mycor/mycom/myarch' directory. You need to have write permission to the directory in order to compress a file in it, even if you have permission to write to the file itself.

  • Call Excel file from Forms10g

    Dear friends,
    I've list of excel VBA file which generated the report. All the reports are used world wide and the tough job is whenever any modifications done, need to send the .xls file for more than 200 users.
    I'm trying to bring them under one roof. Is there is any possibilities to call those excel files via Forms and access through internet. We use 10g forms, so looking for the possiblities. I dont want to upload or send data to excel, just call the excel macro file from different destinations.
    Pls. share your suggesstions..
    Thanks in advance..
    Rgds,
    DL

    hi friends,
    i'm calling the forms from the server. now it is fetching the excel path, but couldnt open the excel file. I doubt whether system is looking for excel.exe in server or local machine
    declare
    searchType VARCHAR2(10);
    extHandler VARCHAR2(100);
    exePath VARCHAR2(512);
    Extension varchar2(5) := 'xls';
    X NUMBER;
    AppID PLS_INTEGER;
    BEGIN
    -- Do the registry lookup for the extension
    extHandler := Client_Win_API_Environment.Read_Registry
    ('HKEY_CLASSES_ROOT\'||'.XLS',chr(0),True);
    -- Then see what executable the handler invokes:
    exePath := Client_Win_API_Environment.Read_Registry
    ('HKEY_CLASSES_ROOT\'||extHandler||'\shell\Open\command', chr(0),True);
    :exepath:= nvl(exePath,'no value');
    X:= INSTR(exepath,'EXCEL.EXE');
    X:= X+9;
    :EXEPATH := SUBSTR(EXEPATH, 1, X)||' "g:/risk/xls/rsk_position_report.xls"';
    AppID := DDE.App_Begin('"C:\Program Files\Microsoft Office\OFFICE11/excel.exe" "g:/itops/risk/xls/rsk_position_report.xls"' ,DDE.APP_MODE_MAXIMIZED);
    exception
    when others then
    :exepath:=sqlerrm;
    END;
    this is throwing me 106500: non-ORACLE exception
    any idea?
    Rgds,
    DL

  • Permission Denied error generating XML file

    We’re using ODI to write out files to a Windows CIFS file system through an agent installed on the ODI Unix server. In order to do this, we had to create the agent using a user ID that had permission to write to the Windows file system. For writing out flat files, this worked great; we have no problems at all.
    However, for writing out XML files to the file system, we’re getting an error that says Permission Denied. We do NOT get the error if we write the XML to a Unix directory, only if we attempt to write it to the CIFS file system. I have two questions:
    1.     Is ODI able to execute against a Windows CIFS file system from UNIX to generate XML files?
    2.     If so, is there a list of permissions required on the fileshare that the ODI needs to generate the XML?
    Below is the exact error we’re getting:
    0 : null : java.sql.SQLException: Could not save the file /mdm_conversion/TST/2.lsm because a class java.io.IOException occurred and said: Permission denied
    Has anyone ever performed something like this or encountered a similar problem?

    Hi,
    I found the issue and corrected it. :)
    This was happened only because of the Version problem of Report Builder with Oracle Applications.
    Reports Builder 10g is not compatiblie with Oracle Applications 11.5.10.
    Oracle 11.5+ will always expect the RDF from Reports 6i version. Because of this, the endocing was damaged.
    You can observe in the earlier post as encoding="&Endoding". Here +&Encoding should be replaced by some encoding mechanism like "UTF-8".+
    Finally corrected the version and got the Output as expected.
    Thanks !

  • How to call external files from java?

    How to call external files in java. For example how to call a *.pdf file to open in its default editor(say Acrobat), or a *.html file to open in the default browser or a *.txt file in a notepad etc..,
    In my program i have *.chm (Compiled Windows HTML Help) help file. how to open it in its default editor it?

    Jayarathina_Madharasan wrote:
    no one answered my questionHi what wrong did i do...basically insulted all the volunteers here who took the time to consider your question and try to offer you help. Other than that, you did nothing wrong.
    From JavaRanch :
    And even if an answer doesn't solve your problem, even if it should totally miss the point - the best thing to do to motivate others to continue trying to help you is showing respect and gratitude for the investment of time that was put into dealing with your issue.
    Edited by: Encephalopathic on Apr 14, 2008 10:01 AM

  • Calling jar file from jsp - serious problem !

    Hi there, I'm trying to call a jar from a jsp file. I need an import clause in my jsp, to the class I want to use.
    I'm using eclipse, and while i"m writing "<%= " and the begining of my class name , he autocompletes it and automatically puts an import of my class in the top of the html. It is very convenient , but the problem is that he underling the class name (in the impot: <%@page import="myClass"%>), and I get "The import myClass cannot be resolved" error.
    I got an advice to put my class in a package, since it was in a default package. I did it. But now I have 2 problems:
    1. I can't run my jar in command window: java - jar myJar.jar. in gives me: Exception in thread "main" java.lang.NoClassDefFoundError....
    2. I still get an error - "The import myClass cannot be resolved" in the jsp, although I threw the old jar (that his class I want to use was out of package), and brought a new jar after creating it.
    I hope I managed to clarify myself. I'll be thankful of any help !!!

    Hi MSoldier.
    There are two ways to do this:
    1) You use the java.lang.Runtime classes to start the java application in your JAR file, just like you would have done it from the command line. The Runtime class has three different exec() methods that can be used to run any program just like you would from the command line. Remember, using this method you will have to write everything just like if you run your Java application from the command line, incl. classpath etc. This way your Java application will be run as a separate process. When the application finishes the process is shutdown and the resources (RAM etc.) taken by it freed, just like when you shutdown any other application.
    2) You can open the JAR file yourself from inside the JSP page, look inside the META-INF file to find the main class, and then calls the main class main method. There is an example of how to do this in the Java Tutorial available from Sun under the JAR files track. Check these links :
    The Java Tutorial at Sun
    http://java.sun.com/docs/books/tutorial/
    The JAR File Tutorial at Sun
    http://java.sun.com/docs/books/tutorial/jar/index.html
    Opening JAR Files via the Java JAR File API
    http://java.sun.com/docs/books/tutorial/jar/api/index.html
    Note however, if you have just created some classes that you want to use from inside your JSP pages, and not a separate application that needs to be run separately, you should just include the JAR file with your custom classes inside the WEB-INF/lib directory. These classes are then automatically available to your JSP pages, just like the rest of the Java API.
    I hope this answers your questions,
    Kind Regards,
    Jakob Jenkov
    Software Architect
    Jenkov Development
    www.jenkov.com

  • How to call HTML file from forms 6i

    Please can any one told me how i can call HTML file placed in my computer in specific path from forms 6i
    i tried web.show_Document('file path','_blank');
    but it doesn't work with me i don't know why and it doesn't give me any error
    thanks

    thanks you for your reply
    but it still not working with me
    i tried this
    host('iexplore C:\PPF\UserManual\index.htm');
    is it true, any advice

Maybe you are looking for

  • R12: Disable Field Quantity and Unit Price in Line Item (AR)

    Hello, Is there a setup in Oracle Receivables - Transactions where I can disable the field "Quantity" and "Unit Price" on the form for line item? I don't have Order Management nor Inventory setup in this environment. Note: In AP invoices, these field

  • JEditorPane & HTML Parser

    I am creating a Swing application. It's main purpose is to help disabled person to handle the webpages. In the first half of the screen, the webpage is displayed, and in the second half of the screen the url links (those in the first half of the scre

  • Why does iPad 2 only have a 16 GB option?

    Why does iPad 2 only have a 16 GB option?

  • Apex on OEL 64 bit

    Is Apex 4.0.2 availaible on Oracle Enterprise Linux 5 for 64 bit?Is it supportbale on that platform? Karim Edited by: user13653962 on Jul 26, 2011 4:51 AM

  • Help me out in HR module

    Hi, I am facing a problem in PP01 transaction. For a position there is Task group relationship. Basically this relationship shoul be shown in maintain overview screen when I select All in Time period. But it is not showing up when I go to maintain ov