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.

Similar Messages

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

  • Difference between command line and Runtime.exec()

    Hi all.
    I'm coding some lines to call sqlldr program.
    System info:
    OS: Win2k server
    Java platform: JSK 1.4
    DBMS: Oracle 9i
    I've tested sqlldr in command line and it is OK. But when i call Runtime.exec("sqlldr user/pass@servicename control=mycontrol.ctl")
    the ErrorStream show that: Message 2100 not found,No message file for product=RDBMS ,facility=UL...
    So i had to put a String array which contained "ORACLE_HOME" as the second parameter of exec method. But there's another error appear:
    SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12560: TNS:protocol adapter error
    I checked tnsnames.ora and it's OK. I do the command line again and it's still OK. Why did Runtime.exec("...") method get Error.
    Does Someone solve it for me.
    Thanks so much.

    I'm having the similar/same issue.
    I'm trying to run SQLLdr from JAVA.
    From a command line, it works fine.. From within JAVA, I get..
    SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
    ORA-12640: Authentication adapter initialization failed.
    Did you find a solution to your problem?

  • 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

  • How can i install snow leopard on my mac G5 using a command line and booting from an external usb rom, since my disk i have is not a bootable media

    How can i install snow leopard on my mac G5 using a command line and booting from an external usb rom, since my disk i have is not a bootable media

    Hi.
    You simply can't. Snow Leopard is compiled in Intel binary only.
    Good Luck.

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

  • How to Install IHAT10.1.3 for both command line and web

    Hi,
    I am trying to install iHAT10.1.3 onto my linux x86 machine. However the instruction I am following in the README is not working for me. Can anyone give me an example of how to install and view iHat for command line and the web
    Cheers
    Jat

    What stage during the instructions are you encountering problems. Can you provide the error details if any?
    The 10.1.3 iHAT is only Web based using Flash at the client for displaying compopnents. Unlike the old iHAT, there is not thick client provided to invoke from the command line.
    null

  • Stored PL/SQL procedure

    Hi,
    we have a concurrent job (request) which is a stored PL/SQL procedure ? How can I see/edit a stored PL/SQL procedure ?
    Many thanks.

    View them with your favorite SQL tool like SQL Developer, PLSQL Developer, T.O.A.D., SQL Navigator, DBConsole, Grid Control, etc.
    SQL Developer is free, but you need to apply a filter to view apps code or it takes forever to load all of the apps packages.

  • I will starting afresh website in my iWeb, it shows only the head or the command line and the command new website is inactive - what do I need to start over

    Help........
    I will starting afresh website in my iWeb, when I start the program it only shows the head or the command line and the command new website is inactive - what do I need to start over - what have I done wrong

    Don't quite understand what you mean, but it says at the bottom that you are still using iWeb 08 so depending on what OSX you are running, you might consider upgrading to iWeb 09.  This works with Lion, Mountain Lion and Mavericks.
    Apple no longer sells iWeb so if you decide to upgrade, then you'll need to purchase iWeb by going to Amazon and buying the iLife 09 or 11 boxed sets, both of which contain iWeb 09.
    Install this on your Mac and it might solve your problems, or just ditch iWeb and start again with one of the newer programmes out there that are still being supported and updated, such as RapidWeaver, Sandvox, Freeway Pro/Express, Flux 4, WebAcapella 4 and EverWeb (http://www.everwebapp.com).

  • Using command-line util for wrapping SQL Server stored procedure

    Hi,
    The Database Adapter does not have native support for stored procedures in SQL Server. Hence, I intend to use the command-line utility that is described briefly in the DB Adapter guide, i.e. the thing that is invoked using "java oracle.tip.adapter.db.sp.artifacts.GenerateArtifacts <property file>".
    Has anyone used this before? And did you have any success?
    Any help appreciated.
    Thanks, Sjoerd

    Yet another correction ...
    My JD is installed to D:\JDS10gSOA; so ...
    I created a bat file with the following jars listed:
    java -cp D:\JDS10gSOA\integration\lib\DBAdapter.jar;D:\JDS10gSOA\integration\lib\bpm-infra.jar;D:\JDS10gSOA\integration\lib\orabpel.jar;D:\JDS10gSOA\lib\xmlparserv2.jar;D:\JDS10gSOA\lib\xschema.jar;D:\JDS10gSOA\toplink\jlib\toplink.jar;D:\JDS10gSOA\integration\lib\connector15.jar;D:\JDS10gSOA\jars\sqljdbc.jar oracle.tip.adapter.db.sp.artifacts.GenerateArtifacts %1
    Note the \jars\ folder I created and copied the MS jdbc driver in there; it's needed in a couple of other places as well.
    A sample properties file:
    ProductName=Microsoft SQL Server
    DriverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
    ConnectionString=jdbc:sqlserver://localhost\\SQLEXPRESS;databaseName=helloworlddb;user=hello;password=hello
    ProcedureName=helloWorldProc
    ServiceName=srv_helloWorldProc
    DatabaseConnection=eis/DB/helloworlddb
    Hope this helps.
    I have to agree the document is very vague on this; no good script or anything from oracle on getting this done - even though it's an integral part of SOA in my opinion.
    Regards

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

  • Passing value from ADF to BPEL, and to PL/SQL  procedure

    1. I have created BPEL which take 2 inputs and concatenate them.
    2. have created a PL/SQL procedure for invoking this BPEL( working fine).
    Now i need to create a simple ADF page which contain 2 text box, 2 for input and 1 for result(concatenate), this will take 2 inputs and send them into BPEL, this will invoke the BPEL process and perform the necessary concatenate function...
    in addition to this, i am passing code into PL/SQL procedure ...
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/OrderImportDemo">
    <ns1:InputRequest>
    <ns1:FirstName>abcdef</ns1:FirstName>
    <ns1:LastName>aaaaaa</ns1:LastName>
    </ns1:InputRequest>
    </soap:Body>
    </soap:Envelope>';
    this code will take vaule from BPEL and run properly.
    can you please help me,

    thanks for help, but the problem is diff.
    i don't have any schema, what i want i need to create a adf page that will contain 3 tent field, 2 for input and 1 for output. when i will enter 2 input field and click on ok button, this will invoke BPEL, BPEL will take these 2 inputs and do the concat on this and send back to adf with result.

  • How do I install XCode on Lion with Command Line and UNIX development support?

    I installed Xcode via the App Store in Lion.  I try to install Macports, latest relase but get this error messagE:
    "Xcode is not installed, or was installed with UNIX Development (10.5+) or Command Line Support (10.4) deselected."
    I am not presented with an option for selecting or deselecting different parts of Xcode, does anyone know how I can make sure I have these above
    parts installed on Lion?

    where would it have put the installer?  I goto /Developer/Applications and run Xcode and it says I have version 3.2.5(1760).  I looked in Downloads and didn't see an installer.

  • Why not all jars picked up by ojdeloy and how to generate build.xml from command line and not JDEV GUI - quick question

    Hi All
    We have 11.1.1.7 ojdeploy to compile our app.
    We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation.
    eg:
      <path id="classpath">
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/a.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/b.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/c.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/d.jar"/>
    </path>
    Log Output -
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/bin/javac
    [ora:ojdeploy] -g
      [ora:ojdeploy] -Xlint:all
      [ora:ojdeploy] -Xlint:-cast
    [ora:ojdeploy] -Xlint:-empty
      [ora:ojdeploy] -Xlint:-fallthrough
      [ora:ojdeploy] -Xlint:-path
      [ora:ojdeploy] -Xlint:-serial
      [ora:ojdeploy] -Xlint:-unchecked
      [ora:ojdeploy] -source 1.6
      [ora:ojdeploy] -target 1.6
      [ora:ojdeploy] -verbose
      [ora:ojdeploy] -encoding Cp1252
      [ora:ojdeploy] -classpath
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/resources.jar:
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/rt.jar:
      [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/jsse.jar:
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/a.jar"/>
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/c.jar"/>
    1- Is it because it depends on how jpr or jws are configured ?
    2- How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?

    The first  warning is happening because you're stating drivers for input devices without need. You haven't disabled hotplug so evdev gets used instead of kbd. This is normal, and you should change the driver line from kbd to evdev so that whatever options (if any) you've specified for the keyboard get parsed.
    The second warning is about you not installing acpid.
    The third I have no idea about, but look at the synaptics wiki. None of the (WW) are related to your video card.
    And every card that has 2 or more output ports show up as "two cards". You also don't need to specify the pci port in xorg.conf. edit: this is the general case with laptops, might be different for desktops.
    When I do lspci -v I get:
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
    I/O ports at d0f0 [size=8]
    Memory at c0000000 (32-bit, prefetchable) [size=256M]
    Memory at dff00000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0
    Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
    Capabilities: <access denied>
    And it doesn't matter if it errs in trying to sli up with it self. That's just not a possibility.
    Last edited by gog (2009-10-15 23:59:49)

Maybe you are looking for

  • Sound output channel keeps switching by itself every few seconds

    Hey guys, I have this sound output issue with my Macbook pro 2010 September version that every once in a while, the audio output would keep swapping between headphone, digital output and the speakers when NO headphone or digital output or what so eve

  • What would cause my autofill to stop working?

    I have an iPad 2 with wi-fi and 3G.  I also have an iPad 1 with just wi-fi.  Both iPads are 64 GB. I am the sole user and both iPads were brand new when I received them. Can someone please help me? I have broken both my hands in the past and I am sur

  • Posting for TDS

    Hello, can anybody tell me the all entry require for TDS(like first we do invoicing,then at the time of creation of remittance challan, have to process the open items, getting the line items as withholding tax etc.) i am confused with these enteries.

  • Putaway strategy for rack storage and floor

    HI we have define one warehouse room as One Storage Type. its rack storage . Storage unit managed . in each storage bin one Su (pallet) can be placed. Some times we keep stocks (on pallets) on the floor (Pallets in one layer). No of Pallets(SU) is de

  • Error CHARVAL_MSG  Bdocs

    I am having some errors in smw01 on CHARVAL_MSG Bdocs , the error states : SMW3  Technical error occured: Service , BDoc type OBJCHARACTERIS, Message Object already subscribed. Bulk SMO8 Service that caused the error: CRM_CHARVAL_MSG_MSA Error overvi