Error - executing oraclexmlsqlload.bat file

Hi,
I have downloaded XML SQL Utility.
I have set the path(JDK path and oracle xml sql utility path) in env.bat file. Now when I try to execute oraclexmlsqlload.bat file, it is getting executed to a point where it says "creating function" and then I get this error...
ORA-12203: TNS:unable to connect to destination.
can any one advice me on this error pls.
I have JDK setup right and JDBC is able to connect to the database.
Thanks in advance.
vik
null

If you are using the application model, you can add return code 1 as a success in the
Return Codes tab of the deployement type. If not you can catch the exit code 1 in your batch file and return a 0 instead.
My Blog: http://www.petervanderwoude.nl/
Follow me on twitter: pvanderwoude

Similar Messages

  • How can I execute a  .bat  file from inside a java application

    I have a .bat file which contains an executable file(.exe) and some input and output file names. What commands can I use to execute this bat file from my java application.

    After raeding tkleisas' reply; i am trying to invoke another application (which can be invoked from the command line) by using a batch file and trying Runtime.exec for executing a batch file.
    My current code is:
    Runtime runtime = Runtime.getRuntime();
    Process trialProcess;
    trialProcess = runtime.exec("cmd.exe /C start C:\\guns.bat /B");
    And my guns.bat looks like:
    cd C:\CALPUFF
    echo trial
    start calpuff.exe CALPUFF.INP
    This is not working for me and i get the following in the error stream of the trialProcess:
    Error :
    The system cannot execute the specified program.
    Process finished with exit code 1
    Has anyone come across something like this and know what's wrong with this one??
    thnx

  • Not able to execute startEclipse.bat file in Eclipse (Oracle utilities SDK)

    In Eclipse installation, i am not able to run "startEclipse.bat" file in this path "C:\SPLSDK\SDK\shortcuts" which comes under Oracle Utilities Software Development Kit 4.0.0.
    once i start installing startEclipse.bat, i get a error message "windows cannot find /eclipse.exe, make sure you typed correctly and try again"
    and how do i find the eclipse.exe on the installables? also in error message it shows backslash "/"eclipse.exe while executing "startEclipse.bat" file.
    jdk and hibernate paths are located in "c:\spl". Is that fine?
    And When I click “eclipse” in this path “C:\SPLSDK\SDK4.0.0.4\eclipse\eclipse-jee-galileo-SR2-win32\eclipse”, I get error "java runtime or jdk should be available in order to run eclipse. and no JVM was found after searching for the folder "C:\SPLSDK\SDK\4.0.0.4\_jvm\bin\javaw.exe" ". I have installed Jdk in “C:\spl\jdk1.6.0_18”. And to install Eclipse, should I change the path of installing jdk to support Eclipse installation?
    what could be the reason?
    Please give me suggession that how to install eclipse?
    Regards
    Vijaya

    Please help. Its urgent.

  • Executing a .bat file from java code

    Im writing a utility and i need to be able to create and execute a .bat file from my program. I can create the .bat file fine but when i try to execute it nothing happens. I tried to use the following line of code to try to execute the .bat file (called make.bat) :
    try
    String parameterString = "\"C:\\WINNT\\System32\\cmd.exe\" C:\\ITS_Test\\make.bat";
    Runtime.getRuntime().exec(parameterString);
    catch (Exception e)
    System.out.println(e);
    The Runtime.getRuntime()exec() method worked fine when trying to execute an excel file but for some reason it dosen't want to work for the DOS prompt. Any ideas?

    Thanks everyone for all the replies.
    I have tried all the above with no luck. Im using netbeans, does anyone think that it could be a problem with the IDE.
    I tired the following code :
    String parameterString = "cmd.exe /C \"C:\\ITS_Test\\make.bat\"";
    Process pr = Runtime.getRuntime().exec(parameterString);
    pr.waitFor();
    This code does not throw any exceptions but just hangs. I also tried:
    String [] parameterString = {"cmd", "/c", "C:\\ITS_Test\\make.bat"};
    Process pr = Runtime.getRuntime().exec(parameterString);
    pr.waitFor();
    and:
    String parameterString = "\"C:\\WINNT\\System32\\cmd.exe\" \"C:\\ITS_Test\\make.bat\"";
    Process pr = Runtime.getRuntime().exec(parameterString);
    pr.waitFor();
    with the same result. Does anyone know why it just hangs and nothing happens (no exceptions thrown)?

  • JDBC error in OracleXMLSQLload.bat

    I get the following error when trying to run OracleXMLSQLload.bat as part of the XML SQL installation on WinNT (Oracle 8.1.6 personal edition)
    SQL error while connecting with oci8 driver to localdw: oracle.aurora.server.tools.loadjava.ToolsException: The JDBC OCI8 Driver is not installed properly, use -thin to try the JDBC Thin driver: no ocijdbc8 in shared library path
    could not open connection.
    The above error comes when trying to execute the following statement in the batch file:
    call loadjava -r -v -u "amber/amber@localdw" xmlparserv2.jar
    Also, do I need to run initjvm.sql to use the xmlgen.getXML function on the server side.
    null

    Resending with email address-
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by amberkumar:
    I get the following error when trying to run OracleXMLSQLload.bat as part of the XML SQL installation on WinNT (Oracle 8.1.6 personal edition)
    SQL error while connecting with oci8 driver to localdw: oracle.aurora.server.tools.loadjava.ToolsException: The JDBC OCI8 Driver is not installed properly, use -thin to try the JDBC Thin driver: no ocijdbc8 in shared library path
    could not open connection.
    The above error comes when trying to execute the following statement in the batch file:
    call loadjava -r -v -u "amber/amber@localdw" xmlparserv2.jar
    Also, do I need to run initjvm.sql to use the xmlgen.getXML function on the server side.
    <HR></BLOCKQUOTE>
    null

  • Error while deployment BAT file

    When deployment BAT file i have an error with description "1" and Message ID "10006". Therefore bat file has been successfully executed on client computer.
    The customer asks reports of deployment so i can't show report with errors only))
    Can anybody give an advise with this situation?
    If answer is helpful, please mark as answer or hit the green arrow on the left.

    If you are using the application model, you can add return code 1 as a success in the
    Return Codes tab of the deployement type. If not you can catch the exit code 1 in your batch file and return a 0 instead.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Executing 2 bat files in a single java program

    I have 2 bat files named batch1.bat & batch2.bat these 2 files has to run one after the other.I has written the code as bellow:
    When i execute it it runs the first batch file named batch1.bat and exit. it is not running the second batch file.
    can anybody please help me.
    String[] command = {
                              "C:\\windows\\system32\\cmd.exe", "/y", "/c",
                              "C:\\SelfAutomate\\BestDeploy\\com\\batchfile\\batch1.bat", "C:\\SelfAutomate\\BestDeploy\\com\\batchfile\\batch2.bat"};
                     //String[] command =  new String[3];
                   //command[0] = "cmd.exe";
                   //command[1] = "/C";
                   //command[2] = "C:\\SelfAutomate\\BestDeploy\\com\\batchfile\\batch1.bat";
                   //command[3] = "cmd.exe";
                   //command[3] = "C:\\SelfAutomate\\BestDeploy\\com\\batchfile\\batch2.bat";
                   //command[5] =
                   //command[6] = "ant";
                  Process p = Runtime.getRuntime().exec(command);
                  BufferedReader stdInput = new BufferedReader(new
                            InputStreamReader(p.getInputStream()));
                  BufferedReader stdError = new BufferedReader(new
                            InputStreamReader(p.getErrorStream()));
                  // read the output from the command
                  String s = null;
                  System.out.println("Here is the standard output of the command:\n");
                  while ((s = stdInput.readLine()) != null) {
                       System.out.println(s);
                  // read any errors from the attempted command
                  System.out.println("Here is the standard error of the command (if any):\n");
                  while ((s = stdError.readLine()) != null) {
                       System.out.println(s);Thanks

    So what? It wouldn't run two batch files on a command shell, either. You need to call them separately. The way you do it, you just pass the name of the second batch to the first as an argument.

  • Java virtual machine error: in running bat file!!!

    Hi experts!
    I have encounterd a problem . Could not figure out why I am having this. I hope at least I will get a clue /suggestion from any of you.
    I am creating a bat file from my java Application. Then I double click on the newly created bat file to run that. It gives me Java virtual machine launcher error:" could not find the main class, Progam will exit". I have a VB script, that also create the same bat file. but I dont have problem running that file manually. Even if I create the bat file manually(by typing), it ran well. It shows the error mesage only when I create bat file from my java Application. Instead of running the bat file manually, I tried to run it through my java application too(by Runtime.exec() ). But it shows me the same error msg.
    Why am I getting java virtual machine launcher error when I tried to run my bat file that is created from java Application? ANy clue? Please suggest me about how to resolve this.
    Regards

    Probably because (despite what you say) the contents of the bat file created by your Java application aren't the same as the contents of those other bat files.Yes contents are same. I create the bat file from my java Application. then I am trying to run that bat file manually. It gives me the specified error. But if I create the bat file manually (with the same content) and then run it manually. It works well.
    Any clue/suggestion

  • Executing the .bat file under java

    Hi,
    I have a batch file which will do some useful stuffs
    like compilation of jar file, deploying the ejb's under
    WebLogic container etc.
    I called the batch file under windows environment, it
    used to display the console without any processing
    on it.But similar stuff with shell script works fine on
    Linux OS.
    How do I execute the batch file from Runtime?

    We use
    Runtime.getRuntime().exec("c:\\path\\to\\batch.bat");
    If that doesn't work, try "cmd /c c:\\path\\to\\batch.bat".
    You might have to capture the output from the process from Java to make sure it works correctly. And yes, the downside is that it will bring up an empty command prompt when you run it under Windows 95,98,Me... not a lot you can do about that, it's avoidable under NT,2K,XP with a bit of trickery though.

  • How to Execute a BAT file

    Hi,
    I have to  execute .bat file , for this i writen the code as below,  i tried with 3 FM's.
    but am unable to run bat file, missing anything ?
      *data : begin of i_command occurs 0,
            txt(255),
           end of i_command,
           rbuff(10).
    *CONCATENATE 'rename' 'hari.txt' 'kris.txt'
                  into  I_COMMAND-txt  SEPARATED BY SPACE.
    APPEND I_COMMAND.
    CALL FUNCTION 'WS_DOWNLOAD'
          EXPORTING
               FILENAME = 'c:\ren.bat'
          TABLES
               DATA_TAB = I_COMMAND.
    CALL FUNCTION 'WS_EXECUTE'
          EXPORTING
               PROGRAM = 'c:\ren.bat'
          IMPORTING
               RBUFF   = RBUFF.
    *CALL FUNCTION 'GUI_EXEC'
          EXPORTING
           COMMAND  = 'CMD /C '
           PARAMETER = 'c:\ren.bat'.
    CALL FUNCTION 'GUI_RUN'
           EXPORTING
            COMMAND  = 'C:\ren.bat '.
    Thanks in advance,
    hari

    Hi,
    CALL METHOD cl_gui_frontend_services=>execute
      EXPORTING
        application            = 'cmd'
        parameter              = ' '   " here pass the required parameter
      EXCEPTIONS
        cntl_error             = 1
        error_no_gui           = 2
        bad_parameter          = 3
        file_not_found         = 4
        path_not_found         = 5
        file_extension_unknown = 6
        error_execute_failed   = 7
        synchronous_failed     = 8
        not_supported_by_gui   = 9
        OTHERS                 = 10.
    If useful, please reward
    Regards,
    Vijay

  • Using FDM can we execute the .bat file

    Hi,
    I am trying to automate the load process, ie I want to load data through FDM into essbase and once the data is loaded I want to run a bat file through which in the essbase the agg scripts will run.
    So Can I write it in the Aftload a script to call the .bat file which has the agg scripts in it.
    Is it possible to do?
    Can anyone help me giving idea to me on this?
    Thanks,

    If i may, i would like some help on this subject.
    i tried both methods and they both work from the WB. but as soon as i tried to use them on the web, nothing happens. i tried to write that in an event or as a stand alone task in task flow but no results
    API.DataWindow.Utilities.mShellAndWait CStr("C:\Hyperion\products\FinancialDataQuality\SharedComponents\export.bat"), 0
    this bat file works as a cmd, a bat in win explorer or in the WB, but i can not seem to find a way to include it in a script that i can use from the web. i tried batch, Importaction,...any suggestion?

  • Package giving error when executed through bat file

    The packages successfully execute in SQL Server Data Tools but when I use DTEXEC to execute it gives me the following error:
    "To run a SSIS package outside of SQL Server Data Tools you must install Send Mail Task of Integration Services or higher .
    I tried 5 different packages and all of them showed similar error except the send mail task is replaced by different other tasks of those packages.

    Go to start-> run
    Type Services.msc. It will launch services window.
    Check for a service named SQL Server Integration Services with or without version number. If its present it means SSIS is installed. Also make sure its started and is in running state.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to run Executables or .bat files from Java?

    Hi!
    I need to open a Web Browser from Java App.
    Please, help me to do this without calling JNI
    -or-
    provide me with sample which works with
    Runtime.execute() method.
    I have done full permission:
    grant
         permission java.security.AllPermission "","";
    };Thank You in advance!

    To run any command from java code, the method is
    Runtime.getRuntime().exec( myCommandString )
    Where, myCommandString is something like "/full/pathname/command".
    If the pathname contains spaces, e.g. "c:\program files\windows\notepad", then enclose it in quotes within the quoted string. Or pre-tokenize them into elements of an array and call exec(String[] cmd) instead of exec(String cmd).
    From JDK1.3 there are two new overloaded Runtime.exec() methods. These allow you to specify starting directory for the child process.
    Note, there is a gotcha associated with reading output from commands. When the runtime exec's the process, it passes to it 3 streams, for stdin, stdout, and stderr; the out and err are buffered but the buffer size isn't very big. When your process runs, it reads (if needed) from in, and writes to out and err.
    If it doesn't write more than the buffer-size, it can run to completion.
    But if it tries to write more data to one or the other stream than the buffer can hold, the write blocks, and your process hangs, waiting for you to empty the buffer so it can write some more.
    So after the exec call, get the streams, and read from them in a loop until they both hit end-of-stream (don't block on either one, just read whatever is available from each, each loop iteration).
    Then when the streams have ended, call the process.waitFor() method to let it finish dying.
    Now, here is a code snippet how you achieve this.
    String strCommand = "cmd.exe /c " + strCommand;
    boolean bWait = true;
    //execute the command
    try
         Runtime r = Runtime.getRuntime();
         Process pr = r.exec(strCommand);
         Process pr = r.exec(callAndArgs);
         BufferedInputStream bis =new BufferedInputStream(pr.getInputStream ());
         int c=0;
         /** Outlet for IO for the process **/
         while (c!=-1)
              c=bis.read();
         /**Now wait for the process to get finished **/
         if(bWait == true)
              pr.waitFor();
              pr.destroy();
    catch(Exception e)
         System.out.println("Could not execute process " + strCommand);
         return(false);

  • Errors executing oraclexmlsqlload.csh

    Hi,
    customer is trying to install XSU and the follow errors is happening:
    oraclexmlsqlload.csh
    #loadjava -r -v -u $USER_PASSWORDxmlparserv2.jar
    creating :oracle/xml/parser/v2/mesg/XMLErrorMesg_da_DK.properties
    Error while creatingresource
    oracle/xml/parser/v2/mesg/XMLErrorMesg_da_DK.prope
    rties
    ORA-29506:invalid query derived from USING clause
    ORA-00942: table or view does notexist
    creating : xmlparser_2.0.2.7_production
    Error while creating resourcexmlparser_2.0.2.7_production
    ORA-29506: invalid query derived from USINGclause
    ORA-00942: table or view does not exist
    resolver :
    Error while resolving class oracle/xml/async/ResourceManager
    ORA-00904: invalid column name
    Error while resolving class oracle/xml/parser/v2/XMLUCS2Reader
    ORA-00904: invalid column name
    Please any information is very welcome.
    Thanks in advance.
    Rogerio.

    Check for the availability of your Oracle JVM.
    IMO you has to re-run the initjvm.sql script of your database, because it failed at installation time.
    Best regards, Marcelo.

  • Problem executing .bat file from within Java class

    I'm stumped: I have no problem executing a .bat file that sets classpaths and executes a Java jar, but when I try to execute other executables first and then the .jar, my application hangs and since the DOS box doesn't come up over my GUI, I can't see what's going on.
    This works:
    public void execute() throws Exception {
    String s = "c:\\cs47auxs\\omnijar\\omni.bat";
    Process p = Runtime.getRuntime().exec("\"" + s + "\"");
    p.waitFor();
    JOptionPane.showMessageDialog(frame,
    "The Database Has Been Successfully Reloaded.",
    "Information Message",
    JOptionPane.INFORMATION_MESSAGE);
    Here's the .bat 'omni.bat'
    set JAVA_HOME=c:\j2sdk1.4.2_04\bin
    %JAVA_HOME%\java -jar C:\CS47AUXS\OMNILOADJAR\OmniLoad.jar
    This doesn't work:
    public void execute() throws Exception {
    String s = "c:\\cs47auxs\\omnijar\\jobomni.bat";
    Process p = Runtime.getRuntime().exec("\"" + s + "\"");
    p.waitFor();
    JOptionPane.showMessageDialog(frame,
    "The Database Has Been Successfully Reloaded.",
    "Information Message",
    JOptionPane.INFORMATION_MESSAGE);
    Here's the .bat file 'jobomni.bat'
    SET NETX_HOME=C:\CS47AUXS
    SET COBOL_HOME=C:\CS47AUXS\OFFLINE
    CD %NETX_HOME%
    CALL SET-NETX.CMD
    CD %COBOL_HOME%
    SSBPPC10 JOBOMNI X
    SET JH=C:\J2SDK1.4.2_04\BIN
    SET OMNI_HOME=C:\CS47AUXS\OMNILOADJAR
    CD %OMNI_HOME%
    %JH%\java -jar omniload.jar
    Can anyone shed some light here? Even when I execute the application from the command line the new DOS box doesn't become visible nor can I see any errors. If I could just get that visibility, I could probably figure out what is going wrong.

    Same problem with me as well.... Badly looking for a solution...
    I predict the following:
    - If your batch file has pretty less number of dos/shell commands then it gets executed fine with exec() and proc.waitFor();
    - If you increase the number of dos/shell commands in the bat file then try executing it then it definately hangs at proc.waitFor();
    Even "cmd.exe /C C:\\test.bat" hangs... if the commands are more...
    Is this some sort of bug? or am i doing anything wrong? I tried searching for solution on the net and search forums... but couldnt find a solution for the same.. not sure where i missed, what i missed...
    Incase some one finds a solution.. do post it here...
    Message was edited by:
    amadas

Maybe you are looking for

  • Problems with Ai opening (in Windows 7)

    After Ai installation, I tried to open it. Unfortunately, the window opens and after some seconds closes. No error messages occur. I've tried to reinstall application. Nothing changed – still not opening. Does anyone have any suggestions? Thanks!

  • Abt business area

    Hi Friends, I am new in sdn community. i hv one quiery related to business area. Client has two plants and two  business area both have same customer/vendor. If they purchased  raw material for both plants. suppose- client has purchased Rs10000  for

  • Chunking and Tomcat Servlets

    HI all, I've got a method which transmits data to a java servlet. I;ve added Java 1.5's chunking capability on the client and it works on 1 machine with no problems. Yet a whole lot of others break... Client side: URLConnection con = null; con = serv

  • Search for a word

    I have a sentence... and a word array.. sentence[0] = "The Sun is the star at the center of the Solar System" words_array[] = { "center"}; i am searching the sentence for the word center.... if it founds return that word "center"... I attahced sample

  • Setting Colour Point with curves CS4

    Hi, I use CS4 and I want to do some colour correction so I use the colour sampler to select areas I want to change ie Highlights to around 242 but I want to place a sample point for midtones on the RGB channels at the same time, to do this I understa