XSQL Pages via Oracle XSQL Command Line in Batch program

When I try to call the XSQL Command Line utility in a batch file
it throws a java.lang.UnsatisfiedLinkError. Anyone have any
ideas what is wrong?

Nevermind I solved the problem.

Similar Messages

  • Xsql command line and stored PL/SQL procedures

    I have an xsql servlet that calls a stored procedure in an Oracle 8.1.7 DB to generate XML. The servlet then uses a custom action handler to write the XML output to a file on the webserver.
    This system works just fine through a web page interface. I am interesting in using the xsql command line interface to run the servlet as a nightly cron to keep the xml file up to date.
    It seems that the xsql command line interface cannot execute stored procedures.
    The xsql file is:
    <?xml version="1.0"?>
    <page connection="studev" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-owa subj="AR" bind-params="subj">
    studev.CTLGDSET.P_ADD_DEPT_DRIVER(?);
    </xsql:include-owa>
    <xsql:write-to-file file="{@subj}.xml" dir="{@dir}" base-tag="/page/SUBJECT/"/>
    </page>and the output written to the file is
    <?xml version = '1.0'?>
    <page xmlns:xsql="urn:oracle-xsql">
    <xsql:include-owa subj="AR" bind-params="subj">
    studev.CTLGDSET.P_ADD_DEPT_DRIVER(?);
    </xsql:include-owa>
    <xsql:write-to-file file="{@subj}.xml" dir="{@dir}" base-tag="/page/SUBJECT/"/>
    </page>Any comments or suggestions would be much appreciated.
    -Eric Dalquist

    Ok. I looked into the problem. The issue is that the Action Handler for <xsql:include-owa> conditionally passes on information about cookies and such to the OWA package context if you happen to be using XSQL through the Servlet interface.
    If you are not using XSQL through the servlet interface, things still work, but the class that implements the include-owa action handler still has a load-time dependency on the "servlet.jar" (even if you don't end up using it).
    So, the workaround is to add a copy of the Servlet SDK jar file "servlet.jar" to your CLASSPATH of the XSQL Command Line utility, and it works fine.
    XSQL 9.0.2 Beta (due out this week I believe on OTN) has been tested with FOP 0.18.1, but XSQL 1.0.4.3 Production and XSQL 9.0.1 production should both work with 0.18.1 as well.

  • XSQL Command-Line, parameters with blanks

    Is it possible to use XSQL Command-Line with parameters containing blanks (space characters).
    In an URL parameter spaces can be encoded with "+" or "%20", but this does'nt seem to work with XSQL Command-Line parameters.
    -- Peter

    I can't make this work on Unix (solaris), but I can see it is a shell script problem, not a XSQL problem.
    The normal syntax for Unix shell script would be
    $ script.sh foo="one two"
    but the standard Oracle-supplied xsql unix shell script sets environment and passes all command-line parameters to the java program with
    oracle.xml.xsql.XSQLCommandLine $*
    and thereby the quotes disappear.
    The problem is not really big, since I could just do
    oracle.xml.xsql.XSQLCommandLine test.xsql "foo=one two"
    after setting classpath. Anyway, if anybody knows how to make the xsql script work with quoted parameters, let me know.
    -- Peter

  • XSQL Command Line Utility

    How do I access XSQL Command Line Utility as mentioned in the document like
    xsql <inputfile.xsql> <outputfile.xml>
    Thanx in advance...

    Look in ./xsql/bin with the 0.9.9.1 distribution. There is an xsql.bat and an xsql shell script to make this easier.
    In general, you need to:
    Make sure the following five entries
    are in your CLASSPATH
    ./xsql/lib/oraclexsql.jar
    ./xsql/lib/oraclexmlsql.jar
    ./xsql/lib/classes111.zip
    ./xsql/lib/xmlparserv2.jar
    ./xsql/lib
    Then run:
    java oracle.xml.xsql.XSQLCommandLine
    null

  • Using the Oracle Repository Command Line Tool under Linux

    I have to use the command lines of Linux for SCM commands(like repcmd,
    set workarea, checkin etc...)
    should I have to install something?
    I have documentation for using the oracle repository command line Toll
    for Windows and Unix, but I didn't found anything about using the oracle
    repository command line Tool for Linux.

    JDeveloper runs excellent on Linux and is supposed to be able to use the repository, but that's a GUI...

  • XSQL DTD, XSQL command line, XSL parameters

    I have three quick XSQL questions:
    1. Is there a DTD available for XSQL? I'd like to feed it to Emacs' PSGML mode (http://www.lysator.liu.se/projects/about_psgml.html). What do you other Emacsers use to edit XSQL and XSL files?
    2. XSQL is working fine under Apache/jserv, but the command line isn't finding my DB connections as defined in XSQLConfig.xml:
    XSQL-004: Could not acquire a database connection named: lcbean@isis
    Does this mean XSQL couldn't find the connection description, or couldn't connect to it after finding it? It does use CLASSPATH to locate XSQLConfig.xml, right?
    3. I'm trying to use parameters in an XSL stylesheet as follows:
    <html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
    <xsl:param name="store_code" select="'999'"/>
    <head><title>Test</title></head>
    <body><p><xsl:value-of select="$store_code"/></p></body>
    </html>
    But I keep getting:
    XSL-1031: Variable not defined: 'store_code'
    What am I missing?
    null

    [list=1]
    [*]No. Since XSQL action elements are allowed to appear anywhere in any well-formed XML document, you cannot really describe this in a DTD.
    [*]This means you put a connection="lcbean@isis" attribute on the document element of your XSQL page, but that it could not find a <connectiondef> for that name in XSQLConfig.xml (which is found successfully if it got this far!).
    [*] See Section 11.5 in the XSLT 1.0 specification. <xsl:param> must appear immediately at the top of a template before any literal result elements. This means that <xsl:param> cannot be used in a "simple-form" stylesheet. You can either use <xsl:variable> instead, or you'll have to change to the full-form of the <xsl:stylesheet> and place the <xsl:param> at the top-level of the stylesheet, outside of any <xsl:template>.
    [list]

  • XSQL command line parameters

    I have a situation where I am generating some XML from a query in an XSQL and I want to use some command line parameters. This ony seems to work inside queries, e.g. given the command line "xsql quote.xsql quotetype=carhire quotenum=123" this will substitute 123 for "{@quotenum}" given the command line and leave "{@quotetype}" untouched.
    <pre>
    <quote type="{@quotetype}">
    <xsql:query>
    select price from quotes where number={@quotenum}
    </xsql:query>
    </quote>
    </pre>
    Is there a way to substitute the {@quotetype} part in XSQL?

    I'm already using XSLT and I've put <xsl:param name="type"> in the stylesheet, but references to $type don't seem to get any result, e.g.
    <xsl:value-of select="$type"/> is blank
    and
    <xsl:if test="$type='carhire'">
    <xsl:text>car hire</xsl:text>
    </xsl:if>
    doesn't generate any output either, so either I've got my syntax for parameters wrong, or the parameters don't get passed from the XSQL front end to the XSLT back end.

  • Xsql command-line hangs after inserting

    Hi,
    i try to insert 1200 xml documents with a batch file and the xsql command. The problem is that the command hangs sometimes. If I restart it with the the last document, works it fine again. But after 10 or 15 documents hangs it again. Whats the problem. I'm using xdk 9.0.0.1 with XSQL 1.0.4.3.

    I found the error by my self. I've installed the 9.0.0.2A beta version. This version has this error. After the installation of 9.0.0.1 it works fine.

  • Errors when packaging extension via Extension Manager Command Line

    Hi all,
    I am attempting to package an Adobe Fireworks extension via the CS6 Extension Manager command line tool:
    /Applications/Adobe\ Extension\ Manager\ CS6/Adobe\ Extension\ Manager\ CS6.app/Contents/MacOS/Adobe\ Extension\ Manager\ CS6 -suppress -package product="Fireworks CS6" mxi="name.mxi" mxp="name.mxp"
    I get the following error:
    error: +++ Assert in file /export/home/coretech/source/daily/extendscript/scriptobjects/build/xcode24/../../source/ bridgetalk/source/SoBridgeTalk.cpp, line 117
    +++ BridgeTalk::InitTerm::exit() has already been called.
    Debugger() was called!
    Does anyone have any suggestions on how to proceed?
    Best,
    Dmitriy

    1. There is no "product" attribute in package command. Please remove it.
    2. Why do you still package mxp? MXP has some limitations and is no longer supported in Extension Manager CC. You should package ZXP instead.
    3. Extension Manager CS6 can't sign extension during package. We have a new free product called Adobe Exchange Packager which can package and sign extensions. You can sign in http://www.adobeexchange.com/ and go to Resources page to download it. The current version in this page can't package extension based on existing mxi file. The latest version meets your requirement and will be available in a couple of days.

  • Making bat file in Window Mobile - Oracle application command line

    I have Windows mobile 6.I have installed Cre-ME+, & command line.In the command line we need to type below command & execute to load oracle Mobile Application.
    Command is : \Windows\CrEme\bin\CrEme.exe -Of -classpath \Windows\CrEme\lib\AWTclasses.zip;\XONTMWA\lib\j4205328.zip oracle.apps.mwa.awt.client.StartGUI
    This is working fine.
    But proble is making bat/cmd file to excute this application, without type each & everytime.
    I know that window mobile won't support bat/cmd file extension. But there may be any other ways.
    Please tell me how can i create the bat/cmd file in windows mobile 6.
    Please anybody help me out from this issue.
    I am looking forward your reply.
    Thanks in advance.
    Regards;
    Piraba
    Edited by: user10702520 on Jan 6, 2012 5:06 AM

    We use a third party application (AppCenter) on our Motorola devices. It's a lock down tool that can present only specific application to the user, and can auto-launch the command line (<filename.lnk> in our scenario).
    -Vince

  • Running reports via command-line with /batch option

    Hi,
    I have created a batch file which runs, and exports the results of 7 different discoverer reports with /batch option.
    Contents of batch file:
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input1.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input2.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input3.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input4.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input5.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input6.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input7.txt"
    Sample of a cmd file the bacth file runs:....
    /connect user/password@oraprd /apps_responsibility "BIS Super User"
    /open "H:\Projects\DRP Import Modelling\Dev\Intransit Extract.dis"
    /sheet 1 /export xls "H:\Projects\DRP Import Modelling\automation\Intransit Input.xls" /batch
    The batch file runs ok and processes each report in sequence, and creates the excel export one after the other.
    However, I need to process the 7 reports in parallel, so changed the batch file to process in own thread :
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input1.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input2.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input3.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input4.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input5.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input6.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input7.txt"
    The reports kick off at the same time and I can see 7 dis4usr.exe processes running via task manager
    Problem:
    The first reports runs and exports ok.
    All the others dis4usr.exe processing stops with the following error pop-up:
    ! Could not open file. OK
    Question:
    Can you only process reports sequentially via command line mode with /batch option?
    If not...what am I missing...its driving me insane :)
    All asistance is greatly appreciated. Thanks

    Ladies and gentlemen.....I have solved my problemo!
    The reason why the rest of the reports were getting the 'could not open file.' error was due to the fact that each discoverer instance launched was
    trying to access the same standard log file simultaneously.
    I modified each cmd file to write logging info to individual files: eg
    /logfile "H:\Projects\DRP Import Modelling\Automation\input2_log.txt"
    Now that's there's no contention with logging, the reports are firing off beautifully in parallel :)
    I am definitely having a beer this evening!
    Thanks for everyone's input...kept me on the righteous path :)

  • Enable AFP File Sharing via ARD through command line?

    Anyone know how to enable AFP file sharing on a remote Leopard client using ARD? I had been sending Unix Commands to do most of my changes, but cannot figure out how to enable AFP file sharing through a unix command. I've tried running /usr/sbin/AppleFileServer but that doesn't seem to do the trick. Any ideas?

    Howdy, Space Ranger!
    I'd recommend checking out the following documentation to get filesharing going without interrupting a current user.
    Apple Remote Desktop Administrator’s Guide
    http://images.apple.com/remotedesktop/pdf/ARD3_AdminGuide.pdf
    Page 145:
    Executing a Single UNIX Command
    Using the UNIX Command window, you can send a single command to the selected
    client computers. The command is executed using the bash shell.
    To execute a single UNIX command:
    1 Select a computer list in the Remote Desktop window.
    2 Select one or more computers in the selected computer list.
    3 Choose Manage > Send UNIX Command.
    4 Type or paste the command.
    If your command is a multi-line script, enter each command on its own line. If you want
    to break up a single-line command for better readability, use a backslash (\) to begin a
    new line.
    5 Set the permissions used to execute the command.
    You can choose the currently logged-in user, or choose the name of another user on
    the client computers.
    6 Click Send.
    For information regarding Terminal commands that can be useful (this is for 10.3 and later, but the relevant command does work in 10.8):
    Mac OS X Server Command-Line Administration
    http://manuals.info.apple.com/en_US/MacOSXSrvr10.3_CommandLineAdminGuide.pdf
    Page 65:
    Commands you can use to create share points and manage AFP, NFS, Windows (SMB), and FTP services in Mac OS X Server.
    Share Points
    You can use the sharing tool to list, create, and modify share points.
    Best regards,
    Allen

  • System.out  View Console via Unix box/ Command Line

    I am dumping messages to System.out. When I package it and run it as a service, I can drop this to an out file. When I just run the jar file from the windows command line or from a Unix box it runs silently. Is there a way to have the System.out dropped to a file in this scenario or better yet shown on screen?
    Once I run the jar file how do I kill it without killing the process?
    Thanks

    Fanbladeus02 wrote:
    "Killing a jar file..." I don't want to kill the Jar file itself, but I do want to stop it from running after I launch it.Then you mean you want to kill the process which is using the jar file.
    >
    Example from my unix prompt I do something like this:
    java -jar -classpath </home/user/jarprog/> /home/user/jarprog/JARPROG.jar jarprog.Main.java
    I don't see any output, it just drops to the next open prompt. This means the program has finished. It could have started another one which does the real work, but you have no control over it.
    I assume java is still running my jar file somewhere. (My first thought was) That is very unlikely unless the writers of the code have gone to great lengths to hide another running process from you. (But reading further this appears to be the case)
    How do I stop it? Find the process with "ps" and send it a kill signal.
    Once I start the program how do I interact with it to stop it?ctrl-C, but you cannot kill it after the prompt has returned because its not running any more. (it started another process and then bailed)
    Similiarly in Windows, I run it from the command line it drops to the next "c:\". I look in task manager and see java running. It appears your program starts another java process in the background.
    I look in the database that it is updating and the records are flying in. If I end the process, the records stop flying in (DUH). Again how do I interact with it to gracefully end the process?It appears that whoever wrote the program has gone to some lengths to prevent you from doing that. I would ask them.

  • C++ command line SQL Database program

    Hello,
    I need to write a C++ command line program that Inserts, Deletes, Updates
    and Selects records from a Microsoft SQL Server Database. I'd really like
    to simply open a recrodset like this:
    connectStr=_T("ODBC;Provider=MSDASQL;Driver={SQL
    Server};Server=192.168.1.2;Database=EOS;Uid=sa;Pwd​=sa;");
    db.Open(NULL,FALSE,FALSE,connectStr,TRUE);
    CRecordset rs(&db);
    SQLstring="SELECT * FROM Subscribers WHERE LocationCode='" + buildingStr +
    "-" + apartmentStr + "';";
    rs.Open(CRecordset::forwardOnly,_T(SQLstring));
    The above works great and returns the records. I can movefirst, movenext,
    blah, blah. But, I need to be able to Insert, Update and delete like this
    too:
    CString SQLinsert="INSERT INTO
    Changes(LocationCode,Gr
    p,Tap,TapType,ChangeDate)VALUES('" + buildingStr +
    "-" + apartmentStr + "','" + groupStr + "','" + tapStr + "','" + taptypeStr
    + "','11-10-02');";
    rs.Open(CRecordset::dynaset,_T(SQLinsert));
    I get an unhandled exception 0xE067363. I know this is a lot to
    swallow, but can someone give me some tips or maybe suggest a better way to
    do it. I'm very fluent in both C++ and SQL, I'm just stuck. You now how it
    is.
    Thanks alot,
    Eric Kowalewski

    Hi,
    Thank You very much. Your tips helped me out a great deal!!!
    Eric
    "Elton Wells" wrote in message
    news:50650000000500000001B40000-1031838699000@exch​ange.ni.com...
    > There are a few different ways to insert data into your database via
    > ADO. Off the top of my head, a common way to do INSERTs is to build
    > your INSERT INTO statement as you did in your example, but then pass
    > the statement to the Execute method of your Connection object.
    > Another thing that you could do is call AddNew on the Recordset
    > object, add your values into the current Recordset, then call Update
    > on the Recordset. For some good ADO C++ examples, I recommend that
    > you check out
    >
    href="http://msdn.microsoft.com/library/default.as​p?url=/library/e
    n-us/ado27
    0/htm/mdmscadocodeexamp...
    on MSDN - it has example C++
    > code for most of the common ADO properties and methods.
    >
    > - Elton

  • Acrobat 9 - Use Optimize PDF from command-line or batch

    one can use the functionality optimize pdf from the command line or a batch script?
    thanks

    I found the solution. With the batch sequence i create the pdf optimization, and use the plug-in Autobatchtool (from the partner evermap) to run this batch from command-line. Thanks for you help

Maybe you are looking for