Launching schedular through java or any external job

Is it possible to manually start the schedule through my java code or any external source which is not part of Oracle SES?
Thanks.

The schedule launching is controlled by internal PL/SQL API (see $OH/search/admin/eq0crw.pkh-start_schedule) so the problem comes down to the invocation of these APIs. Note that direct use of internal API is not supported by Oracle.
Steve Yang
SES Development

Similar Messages

  • Dynamic Java bean classes for XSD using JAVA (not any external batch or sh)

    Hi,
    How can we generate dynamic Java bean classes for XSD (dynamically support All XSD at runtime)?
    Note: - Through java code via only needs to generate this process. (Not using any xjc.bat or xjc.sh from JAXB).
    Thanks

    Muthu wrote:
    How can we generate dynamic Java bean classes for XSD (dynamically support All XSD at runtime)?
    Pretty sure you can't. Probably can do a lot of them with years of work.
    And can probably can do a resonable subset suitable for the business at hand with only a moderate effort.
    Note: - Through java code via only needs to generate this process. (Not using any xjc.bat or xjc.sh from JAXB).The Sun jdk, not jre, comes with the java compiler as part of it. You can create in memory class (I believe in memory) based on java code you create.
    I believe BCEL alllows the same thing (in memory) but you start with byte codes.
    You could just create a dynamic meta data solution as well, via maps and generic methods. Not as fast though.

  • Getting Sql Exception while using JDBC/ODBC to Excel 2007 through Java

    Iam getting the SQLexception by trying to connect using JDBC/ODBC to Excel 2007 through Java. Any Guys can tell abt this problem. java.sql.SQLException: [Microsoft][ODBC Excel Driver] External table is not in the expected format.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at InteractWithExcel.main(InteractWithExcel.java:13)

    From [Google Groups|http://groups.google.co.uk/group/sybase.public.powerbuilder.general/browse_frm/thread/97fbab02a5e6d45b]
    To use Excel as a datasource, you need to defined a named range in the spreadsheet, with the first row containing the column names.

  • Xml through java

    Hi,
    I want to have xml processing through java. can any one provide links for the same.
    I want the matter to be covering from basic to advanced topiccs.
    Thanks
    Rupesh

    First hit on "java XML" from Google. Type it in yourself, you lazy oik.

  • How to send any laguage msg to mobile through java

    Hello friends ,
    i need to send msg which will may be in any language.
    can i do so through java ?
    also is it jms is helpful for this ? or i need to use other package ?

    You'll need to find some sort of online SMS gateway that will inject a SMS message into the mobile phone network for you. I have no experience of these. The mobile phone network is not the internet: you can't access it directly.
    Such a service may or may not be free, and may only support specific telecom networks.
    Try searching for "web service to send sms" using your favourite search engine. When I tried this it came up with several companies offering this service, using a "web service" API (i.e. XML over HTTP).
    You can certainly access web services using Java; there are APIs designed for this purpose. Some are listsed at
    [http://java.sun.com/webservices/|http://java.sun.com/webservices/]
    Nigel

  • Any reason why external jobs hang?

    Hi
    I'm in two minds as to whether this as an XE database problem or a general Scheduler problem so I'm trying my luck on this forum first.
    Details: Database XE, Centos O/S
    Problem
    I can schedule all the different types of jobs and all except external jobs(job_type EXECUTABLE) do run. With external jobs, they just never complete running. It's not like they are doing anything either.
    - Selecting from USER_SCHEDULER_RUNNING_JOBS while an external job is running just never comes back.
    - Checking what's going on in v$session reveals an ACTIVE status and EVENT "JS external job".
    - The xe_J00X os process doesn't seem to be doing anything. However, if I terminate(kill) it, it won't die except with kill -9, which frees up the database.
    I have searched and tried a number of ideas but I haven't been able to resolve this.
    So far
    - I have tried the Metalink notes for setting permissions to nobody user.
    - I have added #!/bin/ksh or #!/bin/bash to the shell scripts
    - Implemented externaljob.ora
    The results are the same. External jobs just hang, no error message, nothing.
    I'd appreciate help if you can.
    Thank you.
    Siphiwe

    Hi,
    This is helpful and I can add some further comments.
    - The Metalink notes were intended for normal SE/EE Oracle installs, there is no guarantee that they will work on XE. In fact your experiment shows that setting the permissions as in the Metalink note does not work on XE since nobody does not have access to the libclntsh.so.10.1 library (file and directory permissions are slightly different in XE) . You should ignore the Metalink notes and leave the original install permissions.
    - because there is no extjobo executable, external jobs in the SYS schema will not work (although doing "cp extjob extjobo" should fix this) . This is a known filed bug.
    - because the Metalink note does not work, all external jobs will run as the Oracle user. This is a security risk that should be taken into account whenever granting the CREATE EXTERNAL JOB system privilege to a user.
    I can confirm that on an rpm installation of oracle-xe the following works for me when run as sys
    -- test case for an external job on Oracle XE
    create user testusr identified by testusr ;
    grant create session, resource, create job, create external job to testusr;
    connect testusr/testusr
    begin
    dbms_scheduler.create_job('job1','executable','/bin/sleep',1,
    enabled=>false);
    dbms_scheduler.set_job_argument_value('job1',1,'10');
    dbms_scheduler.enable('job1');
    end;
    select * from all_scheduler_running_jobs;
    select * from all_scheduler_job_run_details;
    The job does run successfully and runs for 10 seconds as expected. I suggest you try this test case out after removing the pj files and fixing the permissions on extjob back to
    -r-xr-xr-x 1 oracle dba 32068 Feb 19 2006 extjob*
    Hope this helps,
    Ravi.
    null

  • Java web start fails to launch application when java cache is off

    Hi,
    there's no problem when java cache is used but when java cache isn't used, my application fails to launch via jws (jnlp).
    the following is the error
    java.lang.NullPointerException
    at java.util.jar.JarVerifier.mapSignersToCodeSource(Unknown Source)
    at java.util.jar.JarVerifier.mapSignersToCodeSources(Unknown Source)
    at java.util.jar.JarVerifier.getCodeSources(Unknown Source)
    at java.util.jar.JarFile.getCodeSources(Unknown Source)
    at java.util.jar.JavaUtilJarAccessImpl.getCodeSources(Unknown Source)
    at com.sun.deploy.cache.DeployCacheJarAccessImpl.getCodeSources(Unknown Source)
    at com.sun.javaws.security.SigningInfo.getCommonCodeSignersForJar(Unknown Source)
    at com.sun.javaws.security.SigningInfo.check(Unknown Source)
    at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
    at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.launch(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    this is the jnlp file
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" version="1.0" codebase="http://11.4.100.41" href="secuiNXG.jnlp">
    <information>
    <title>secuiNXG U start GUI</title>
    <vendor>secui.com Ltd.</vendor>
    <homepage href="/"/>
    <icon href="web_login_ci.gif"/>
    <shortcut online="true">
    <desktop/>
    <menu submenu="secuiNXG U"/>
    </shortcut>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+" initial-heap-size="50m" max-heap-size="250m" />
    <jar href="SES.jar"/>
    <jar href="skin_alloy.jar"/>
    <jar href="Borders.jar"/>
    <jar href="informa.jar"/>
    <jar href="jaxen-1.1-beta-12.jar"/>
    <jar href="jcelements.jar"/>
    <jar href="jctable.jar"/>
    <jar href="jdom.jar"/>
    <jar href="log4j-1.2.14.jar"/>
    <jar href="jnlp.jar"/>
    <jar href="jxl.jar"/>
    </resources>
    <application-desc main-class="secui.firewall.SecuiLogin">
    <argument>11.4.100.41:80</argument>
    </application-desc>
    </jnlp>Test Environment
    JRE : 1.6.0_19
    O/S : Windows 7 (32 bit)
    Browser : IE8
    I checked for other versions of jre but not using java cache didn't cause any problems.
    I checked for the release note of update 19 but I have no clue.
    Is there any way to launch java application without using java cache?

    greencosmos wrote:
    ..I had a problem changing the cache location. The button for this action is disabled. I can't figure out how to enable it.On my system, it is enabled when the 'cache files' box is checked, and disabled when it isn't.
    1) Without changing the location I assumed that deleting the cached files could be a similar job, so I clicked "Delete Files..." and deleted with all checkboxes checked.I am not convinced that would entirely clear the cache, but have done no specific tests to check.
    2) I unchecked "Keep temporary files on my computer".So it was checked when you were trying to change the cache location?
    3) Applied all the changes.
    4) I launched your demo.
    Result - It was launched without any prompt.
    I revisited the page with the URL and successfully launched the app. again.The application launched just fine, but no prompt.
    If you follow those (links and) steps I outlined exactly, does the file service demo launch twice for you?I'm sorry I don't exactly understand your question. .. Your description is enough to convince me that answer is 'yes'.
    ..I tried twice and it launched twice, but not twice at the same time(it launched once at a time).Surprise, surprise. That is the first mention in this thread of 'same time'/'simultaneously'. Care to share the other defining factors that you forgot to mention, or is guessing part of the 'fun' of helping?
    But still I'm having problems with launching my application.
    I assume that it could be jnlp syntax problem. The "main=true" subelement is missing.It is a good idea to validate the launch files of JWS based launches that are failing for any reason. For that purpose, I offer JaNeLA.
    Having said that, a missing main='true' will not be detected by JaNeLA, since it is not a compulsory attribute. ..But check them anyway.

  • How to change system time through java program

    Hi
    I want to know, how to change system time through java program.
    give me a idia with example.
    Thanks

    There isn't any core Java API for this. Use JNI or call an external process with Runtime.exec().
    ~

  • Sqlldr through Java Stored Proc

    I am loading data from sqlldr through a java stored proc that executes command
    strings. My string executes in windows through the command window just fine and I can see the data but If I run the sqlldr through java then I must exit my session and relog in to see the data. Any help is appreciated.
    Thanks, Larry

    I am loading data from sqlldr through a java stored proc Any reason for using java stored proc, instead of directly running sqlldr or using EXTERNAL TABLES?

  • 11g R2 Remote External Job Setup

    Have followed all of the instructions in the guide for remote external jobs. Running into the following error when trying to register a remote agent with the database:
    ./schagent -registerdatabase atlantic 16021
    Agent Registration Password ? ********
    ERROR: Connecting to: http://atlantic:16021/remote_scheduler_agent/register_agent. java.io.IOException: Server returned HTTP response code: 401 for URL: http://atlantic:16021/remote_scheduler_agent/register_agent2
    If from that same machine I run the following - telnet atlantic 16021 - I get 'Connected to atlantic'.
    When logged into the database named stage on atlantic, I can run the following query:
    select dbms_xdb.gethttpport() from dual;
    This produces 16021. Has anyone gotten this error message or something similar? I've only ever seen success in every guide, but something about my implementation must be off or different. I'm not sure what details will be helpful here, but willing to provide anything that would be pertinent.
    Thanks!
    Dan Berry

    Hi Ravi,
    We re-ran prvtrsch.plb and reset the password. Still given the same error. I can see that the dbms_isched_remote_access package was created in the database, and the it has references to procedures owned by the remote_scheduler_agent user. Is there any way to verify that the registration procedure is available via http? Also, I'm unsure if this makes a difference or not, but when we specify host during registration, we are using atlantic. Atlantic is our physical hardware where several databases reside. The database we want to register with is called stage and the port we set for xdb is 16021. It is the only place where this port is being used. When we register is it fine to say the host is atlantic and the port is 16021, or do we need to find a way to expose stage?
    Thanks,
    Dan

  • Launching applications (use Java or is it possible in C)

    I'm a very newbie programmer in university still...
    In any case i'm only fimilar with C, C++ and Java. I'm trying to create a program that takes arguments from the command line, then launches the program identified in the command line.
    I know I can launch programs from java applications with: Runtime.getRuntime().exec
    but i'm not sure how a Java program would recieve arguments from the command line.
    I was thinking C or C++ might be more feasible, however i don't know how to lauch applications from within either language. I hear it's pretty easy to do what i'm asking with Visual Basic (but as I said I don't know it).
    Any help?
    Thanx in advance.

    but i'm not sure how a Java program would recieve
    arguments from the command line.Strange as it might sound, through the arguments of the main method:
    public static void main(String arguments[])

  • I want to do rpc programming through java how can i do it?

    i want to do rpc programming through java how can i do it? any classes for it? i am not goin to use rmi its an assignment for us in syllabe help is strongly needed

    So, you are in a class. You are a student, your job is to learn something. Unless your instructor has failed horribly in his/her duty, then you are failing in your duty as a student.
    Your lack of even trying hurts me personally as a life-long student, I find your post ill-advised.
    Please, do not post to these forums anymore. Thank you.

  • Controlling Browser through Java

    Hi All,
    I have a question , is there any way we can controll browser(IE) through java(swing) application.
    In our application we need to launch two different IE browsers by clicking two buttons
    My question is if Button A is clicked browser with yahoo.com need to launch if button B is clicked msn.com should launch
    subsiquently if button A is clicked application should check weather yahoo.com is running if running then it should bring the browser with yahoo.com to front and if button B is clicked again the app. should bring msn.com to front
    if you can give me some example code that would be great

    Ok, I've got an answer for you, but its kind of lengthy. This code comes from Carnegie Mellon University, all thanks where due.
    import java.io.IOException
    public class BrowserControl
       public static void displayURL(String url)
         boolean windows = isWindowsPlatform();
         String cmd = null;
         try
            if (windows)
               cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
               Process p = Runtime.getRuntime().exec(cmd);
            else
               cmd = UNIX_PATH + " " UNIX_FLAG + " (" + url + ")";
               Process p = Runtime.getRuntime().exec(cmd);
               try
                  int exitCode = p.waitFor();
                  if (exitCode != 0)
                     cmd = UNIX_PATH + " " + url;
                     p = Runtime.getRuntime().exec(cmd);
                catch (InterruptedException x)
                   System.err.println("Error bringing up browser");
                   System.err.println("Caught: " + x);
          catch(IOException x)
             System.err.println("Could not invoke browser");
             System.err.println("Caught: " + x);
       public static boolean isWindowsPlatform()
          String os = System.getProperty("os.name");
          if (os != null && startsWith(WIN_ID));
             return true;
          else
             return false;
       private static final String WIN_ID = "Windows";
       private static final String WIN_PATH = "rundll32";
       private static final String WIN_FLAG = "url.dll,FileProtocolHandler";
       private static final String UNIX_PATH = "netscape";
       private static final String UNIX_FLAG = "-remote openURL";
    }This is a real general class, it can be used in alot more specific instances (aka windows or UNIX specific) which might cut down on alot of the system checking codes. The important parts are the static Strings at the very end and putting some URL into the url variable via some textfield or other input method.
    As far as the technicalities of opening two different browser windows....I'm not sure on that. But I hope the above code helps.
    PS This code is from a hard copy printout, so there might be some minor syntax errors in my typing.

  • Mini DisplayPort to VGA isn't working. It won't recognize any external monitor. It worked just fine with my older spring 2011 MacBook Pro running Snow Leopard, but now with my brand new 2012 MacBook Pro running Mountain Lion, it no longer works

    I just bought a new MacBook Pro this summer and was all excited. But I'm very frustrated right now because I can't connect to any external monitors through VGA. My thunderbolt (DisplayPort Mini) to HDMI works just fine, but when I try with my other connector to go from Thunderbolt (DisplayPort Mini) to VGA, Nothing works. my screen goes blue and changes size like it recognized something but nothing is ever detected on the external moniter or projector. I'm not sure what is wrong but it's very frustrating. I'm just very depressed that it worked just fine with my 2-year-old MacBook Pro but isn't working now. I'm running OS X 10.8.2. I just upgraded yesterday from 10.8.1 but that upgrade did nothing to fix my problem. Can anyone help? Thanks

    I am haveing this exact same issue. I have plugging in 3 monitors and tried two different VGA to mini displayport and nothing is working. I recently bought a Acer monitor and it work for an hour and now it back to doing the same thing.
    When I plug the VGA adapter in to the monitor the monitor think its not connected to a computer then when disconnecting the VGA adapter the monitor thinks it is connected to a computer.
    NEED SOME HELP!!! at the point of all my hair is pulled out.
    ^^^
    that is the same problem i am having! if anyone can help that would be great i'm losing my mind over here

  • Can i use ANY external CD/DVD drive with the NEW mac mini?

    We just got the newest Mac Mini and want to get an external drive for importing and burning CD's and DVD's.
    Can we use ANY external CD/DVD drive or do we NEED to use the "Apple MacBook Air SuperDrive."
    Thanks
    Eliot

    Maybe.
    I've had some situations where a non-Apple DVD drive would not do a particular job.  When I tried the same project with the Apple SuperDrive everything worked perfectly.
    This is an area where I would not try to save money.
    http://store.apple.com/us/product/MC684ZM/A

Maybe you are looking for