Help xsql

I have a big problem, this is the result when I try to run the demo of ORACLE XSQL Servlet (1.0) under Apache Jserv. My db is oracle8i Enterprise Edition.
XSQL-007: Cannot acquire a database connection to process page.
Eccezione IO: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12505)(ERROR_STACK=(ERROR= (CODE=12505)(EMFI=4))))
Can you help me ?
Thank you ,Marco
null

hi
i am not able to connect to the remote database
my xsqlconfig file is
<connection name="demo1">
<username>itrade</username>
<password>itrade</password>
<dburl>jdbc:oracle:thin:@itrade.itradeB2B:1521:itradeEnglish</dburl>
<driver>oracle.jdbc.driver.OracleDriver</driver>
</connection>
where itrade.itradeB2B is my connectstring
and my sid of the Remoteserver is itradeEnglish.
any where i have gone wrong
the error is
XSQL-007: Cannot acquire a database connection to process page.
I/O?????: The Network Adapter could not establish the connection
thanks
null

Similar Messages

  • Help XSQL Servelet

    Hi!
    Could any please help in XSQL SERVELET
    I downloaded the xsql servelet for genrating XML pages.
    But when I run the demo file that come with it, It gives me this error :
    " Oracle XSQL Servlet Page Processor 1.0.0.0.0
    XSQL-004: Could not acquire a database connection named: demo
    XSQL-007: Cannot acquire a database connection to process page"
    Even though I have set up a connection name Demo.
    I would really appreciate your help.
    Look forward to hearing from you soon
    Thanks
    Kaiser
    [email protected]

    hi
    i am not able to connect to the remote database
    my xsqlconfig file is
    <connection name="demo1">
    <username>itrade</username>
    <password>itrade</password>
    <dburl>jdbc:oracle:thin:@itrade.itradeB2B:1521:itradeEnglish</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    where itrade.itradeB2B is my connectstring
    and my sid of the Remoteserver is itradeEnglish.
    any where i have gone wrong
    the error is
    XSQL-007: Cannot acquire a database connection to process page.
    I/O?????: The Network Adapter could not establish the connection
    thanks
    null

  • Can not make XSQL servlet running under Jrun 3.1! need help

    Hi,
    I tried to run Oracle XSQL servlet under JRun 3.1,I did servlet mapping, such as
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <url-pattern>*.xsql</url-pattern>
    </servlet-mapping>
    I set classpath for XSQL related library such as oraclexsql.jar, xmlparserv2.jar,etc, I believe everything is setup correctly, however when I invoke .xsql page, I did not get data instead of getting sql text!, here is my xsql file content:
    <?xml version="1.0"?>
    <!-- reports.xsql: List of reports by user id -->
    <?xml-stylesheet type="text/xsl" href="Filter.xsl"?>
    <page connection="reports_8i" xmlns:xsql="urn:oracle-xsql">
         <dataform target="reportFilter.jsp" submit="Go">
    <xsql:set-session-param name="userid" value="{@userid}" ignore-empty-value="no"/>
         <xsql:include-param name="userid"/>
         <xsql:set-session-param name="bu_id" value="{@bu_id}" ignore-empty-value="no"/>
         <xsql:include-param name="bu_id"/>
         <xsql:set-session-param name="client_id" value="{@client_id}" ignore-empty-value="no"/>
         <xsql:include-param name="client_id"/>
         <item type="list" name="targetPage" label="Available Reports">
         <xsql:ref-cursor-function bind-params="userid">
                   reports_generation.getReportList(?)
              </xsql:ref-cursor-function>
              </item>
         </dataform>
    </page>
    What I got when I invoked this page is reports_generation.getReportList(?)!!
    It seems that JRun 3.1 did not understand xsql syntax, it means it can not find XSQL servlet related libraries, come on, I did set classpath.
    Does anyone has this experience to help me out? Highly appreicate you in advance.
    Thanks.

    i think i solved this problem by specifying the full path to javac...
    what must i do to avoid this?

  • Please Help me in finding XDK for XSQL Software

    In some Application (what I am devbeloping) I need to fetch data from Oracle 8i and embed it into an XML for further processing.
    I read that XSQL Server pages is capable to generate XML with data embedded in it. For this operation XDK is Required. I don't know where I can get the XDK software for Oracle 8i. Please help.
    Thanks in advance.
    Vivek.
    E-mail:- [email protected]

    Hi,
    914618 wrote:
    WITH mydata AS
    SELECT 1 emp_id, 'John Smith' emp_name FROM DUAL UNION ALL
    SELECT 2 emp_id, 'Steve Jobs' emp_name FROM DUAL UNION ALL
    SELECT 3 emp_id, 'Larry Allison' emp_name FROM DUAL
    SELECT emp_id, emp_name
    FROM mydata;
    after executing the above query the o/p I am getting is in the normal format like EMP_ID and EMP_NAME
    not according to my requirement like
    Emp Emp
    Id NameWhat are the results you reaally want? Do you want this?
    `   EMP_ID SPLIT_NAME
             1 John
               Smith
             2 Steve
               Jobs
             3 Larry
               AllisonIf so:
    SELECT  emp_id
    ,      REPLACE (emp_name, ' ', CHR (10))     AS split_name
    FROM      mydata
    ;The results above are 3 rows, not 6.
    What results would you want if emp_name contained 3 or more words? For example, if you add this to the sample data:
    SELECT 9 emp_id, 'Aung San Suu Kyi' emp_name FROM DUAL UNION ALL

  • XSQL/XSL help (iPlanet): Error processing XSLT stylesheet

    hello-
    i am running XSQL and XSL pages on an iPlanet web server and i am receiving the following error:
    XSQL-011: Error processing XSLT stylesheet: /xslt/page/xsl_page.xsl
    XSL-1002: Error while processing include XSL file (\xslt\util\other_xsl.xsl (The system cannot find the path specified)).
    here's the deal: other_xsl.xsl (the one it says it can't find) is there in the right place, but the web server is not looking from the document root (which IS set correctly on the web server). it is looking for the file starting at the current directory.
    for example, the server is processing /xslt/page/xsl_page.xsl. it is then looking for the include file using this path: /xslt/page/XSLT/UTIL/other_xsl.xsl --- instead of the correct /xslt/util/other_xsl.xsl.
    the include statement uses the full path starting from the web root (<xsl:include href="/xslt/util/other_xsl.xsl"/>)
    any help would be appreciated.

    thanks for the response. the /xslt/util directory is browsable by the web server, and using relative paths does work (that is one of the ways i discovered what was going on in the first place), but i am rebuilding a machine and redeploying an exisiting application-- the intention is to not re-write any code.
    the part that is most confusing is that the current code/directory structure works on the current box, but not on my rebuilt box. i have gone through every config file with a fine tooth comb. it appears that the current box and my build are set up exactly the same-- but, like i said, on one it reads the include-path from the document root, on the other from the current directory.
    so confusing.

  • HELP : Using XSQL programmatically

    Hi,
    I'd like to use XSQLRequest into a program, but the problem is what i want the XSQLRequest to process isn't a file but a buffer in memory such as a String.
    As XSQLRequest doesn't have a constructor with a String which contents a XSQL buffer
    and I can't create a file on the system because of performance.
    Thank you for your help

    I, too, am getting the error
    java.lang.RuntimeException: oracle.aurora.rdbms.ModifyPermissionException: In [email protected](byte[], int, int)
    under 8.1.7. My Java program ran correctly when executed from a client machine but as soon as I converted it to a Java stored procedure and loaded it into our 8.1.7 database, weird things started to happen.
    It is nice to know I'm not crazy.

  • Help me in writing XSQL

    Please find the XML file in a XMLTable at the end.
    Please help me out to extract the node value for the fragement <CUST_TRX_TYPE_NAME> and when the TRX_NUMBER value is 00037994.
    Thanks in Advance
    cheers
    anu...
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="sj-trx-line.xsl"?>
    <DOCUMENT>
    <TRX>
    <RA_INTERFACE_LINE>
    <MEMO_LINE_NAME> FREIGHT </MEMO_LINE_NAME>
    <TRX_NUMBER> 00037994 </TRX_NUMBER>
    <CUST_TRX_TYPE_NAME> SAN JOSE INVOICE </CUST_TRX_TYPE_NAME>
    </RA_INTERFACE_LINE>
    <RA_INTERFACE_LINE>
    <MEMO_LINE_NAME> SAN JOSE FREIGHT/TAX LINE </MEMO_LINE_NAME>
    <TRX_NUMBER> 00037995 </TRX_NUMBER>
    <CUST_TRX_TYPE_NAME> SAN JOSE INVOICE </CUST_TRX_TYPE_NAME>
    </RA_INTERFACE_LINE>
    </TRX>
    </DOCUMENT>

    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl"?>
    <xsql:query connection="demo"
    SELECT CUST_TRX_TYPE_NAME From table WHERE TRX_NUMBER ='00037994'
    </xsql:query>

  • BIND-PARAMS HELP PLEASE IN XSQL

    Hello All,
    I have 3 tables these are track, album and a join table called albumTrack I need to use bind-params to link album and track up with the join table so that when i select an album I can view all the tracks associated with that album. Here is my XSQL page:
    <xsql:query  rowset-element="albums" row-element="album">
    SELECT
    dbalbumid AS albumid,
    dbalbumname AS albumname
    FROM
    album
    </xsql:query>
    <xsql:query  rowset-element="albumTracks" row-element="albumTrack">
    SELECT
    dbalbumid AS albumId,
    dbalbumtrackid AS albumTrackId
    FROM
    albumTrack
    </xsql:query>
    <xsql:query  rowset-element="tracks" row-element="track">
    SELECT
    dbtrackid AS trackid,
    dbtrackname AS trackname
    FROM
    track
    </xsql:query>Edited by: user10711723 on 13-Jan-2009 11:22

    solved.

  • Help Install XSQL servlet on OAS 4.0.8.1

    We are having difficulties installing XSQL Servlet on our Oracle Application Server (4.0.8.1). Is there any documentation on how to complete this installation?
    Thanks in advance

    Bugs in 4.0.8.1 make running the XSQL Servlet unreliable with that release.
    I'd suggest trying the 4.0.8.2 release or using a combination of Apache + JServ to work with XSQL Servlet.
    Thanks.

  • XSQL version upgrade / help

    I want to upgrade from XSQL 1.0.4 to XSQL 9.2.0.5 on a AIX (unix) server.
    This is because I want to use some of the advanced features available in this upgrade.
    ( Eg: setting multiple parameters using xsql:set-page-params ...)
    But our server's base oracle version is Oracle 8.1.7.
    My doubt is weather I can upgrade the XSQL without changing my old oracle installation.
    What other upgrades would I have to make for this?
    Thanks in advance,
    Deepak

    You'd need to upgrade to the full, new set of Oracle XDK jar files that comes with XDK 9.2.0.5
    For example, you would need (from the ./lib directory of the XDK for Java 9.2.0.5 release...):
    xmlparserv2.jar
    oraclexsql.jar
    xsqlserializers.jar
    xsu12.jar
    at a minimum for things to work correctly.

  • Help! XSQL with IBM JVM and Websphere

    We are attempting to use XML/XSQL using IBM's JVM 1.2.2 and IBM Websphere 3.5.2 - when we attempt to execute a simple XSQL statement, we are receiving a Dr. Watson message stating that the JVM has an access violation.
    The XSQL queries have been successfully run under IIS using Sun's JVM.
    Any suggestions would be greatly appreciated - we are under the gun to get this working.
    Thanks in advance!

    Steve Muench kindly provided me with the answer to this problem:
    "We have repeatedly experienced problems with IBM's JIT compiler when using our Java-based XML components. They work fine with other Java VM's as you've seen, so IBM must have a bug in their JIT compiler.
    Disabling the JIT compiler has worked around the problem for 100% of the customers that has reported the trouble with IBM's JDK."
    We tried disabling the JIT compilier, and everything worked fine after that.
    Thanks, Steve!

  • Error while running a sample XSQL from XML bible book from Steve Muench

    I am running the sample XSQL code from Chapter 03, which deals with exporting XML and transform into SQL statements. I'm using JDeveloper and I believe I've setup libraries and HTML root directory etc. I'm getting the following error:
    XSQL-011 Error processing XSLT stylesheet.
    XSL-1009 Attribute xsl:version not found in xsl:stylesheet.
    Can I get some help in fixing this error?
    Thanks a lot,
    Murali
    null

    Hi,
    This is the example I took from Steve Muench's book.
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text"/>
    <xsl:template match="/">
    </xsl:template1>
    </xsl:stylesheet>
    As you can see, I do have the version=1.0 attribute. Why is it complaining still?

  • Error when try to call a pl/sql procedure from the .xsql file

    I tried to call a pl/sql procedure like this:
    <?xml version="1.0"?>
    <page connection="omtest5" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-owa>
    sampleowaxml.testone
    </xsql:include-owa>
    </page>
    but I got the following error message:
    <?xml version="1.0" ?>
    - <page>
    - <xsql-error action="xsql:include-owa">
    <statement>declare buf htp.htbuf_arr; param_names owa.vc_arr; param_values owa.vc_arr; rows integer := 32767; outclob CLOB;begin param_names(1) := 'HTTP_COOKIE'; param_values(1) := ''; param_names(2) := 'SERVER_NAME'; param_values(2) := 'mxfang-nt.us.oracle.com'; param_names(3) := 'SERVER_PORT'; param_values(3) := '80'; param_names(4) := 'SCRIPT_NAME'; param_values(4) := '/servlets/oracle.xml.xsql.XSQLServlet'; param_names(5) := 'PATH_INFO'; param_values(5) := '/xsql/test/myproject.xsql'; param_names(6) := 'HTTP_USER_AGENT'; param_values(6) := 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)'; owa.init_cgi_env(6,param_names,param_values); sampleowaxml.testone owa.get_page(buf,rows); dbms_lob.createtemporary(outclob,true,dbms_lob.session); for i in 1..rows loop dbms_lob.writeappend(outclob,length(buf(i)),buf(i)); end loop; ? := outclob; ? := DBMS_LOB.INSTR(outclob,CHR(10)&#0124; &#0124;CHR(10));end;</statement>
    <message>ORA-06550: line 3, column 3: PLS-00103: Encountered the symbol "OWA" when expecting one of the following: := . ( @ % ; The symbol ":=" was substituted for "OWA" to continue.</message>
    </xsql-error>
    - <xsql-error action="xsql:include-owa">
    <message />
    </xsql-error>
    </page>
    This error message is very similiar to the message that Shanthir posted on Jan, 21. I did run the dbmslob.sql, but it doesn't help. Anybody has ideas how to solve it?
    I used the PL/SQL web toolkit provided by OAS4.0.8.1. I believe oracle web agent is replaced by this toolkit.
    Thanks,
    Min
    null

    Hi,
    Glad that somebody else too got this problem. Well, as I had mentioned in my previous posting too, I think there are some procedures in the package, dbms_lob, like the writeappend, createtemporary etc.. which is not found in my dbms_lob.sql file, I am using 8.0.5, but I found these procedures in the 8i, I think it is becos of that.
    By the way if anybody got this solution and got any workaround, please help me too.
    I am still waiting for the solution to that.
    Shanthi

  • XSQL error when trying to insert record

    hi,
    I encounter a problem using INSERT statement in xsql:query action. If I try to use INSERT statement in my xsql page like this:
    <xsql:ze_action bean="TaskentryIn">
    <xsql:query>
    INSERT
    Grundtab( Datum,Startzeit,Endzeit)
    VALUES
    ('{@date}',{'@begin}','{@ende}')
    </xsql:query>
    </xsql:ze_action>
    I always get this xsql-error:
    Statement.executeQuery - No result sets were produced by 'INSERT...'
    So far so good, I think this shouldn't be an error rather a warning.
    But this is not my primary problem.
    Anyway the record is inserted in the DB. But since I call the above <xsql:query>, from within my own action handler, I call a sendRedirect() to my next page after the <xsql:query> tag was processed.
    After sendRedirect(), when I am on my next page, I check the DB for the inserted records, and it shows up that the insert was made two times, so I have two identically records in my DB.
    If I am not sendRedirect() to the next xsql page, then the insert is only made once. So I assume that there is a problem if an xsql-error occurs and afterwards a sendRedirect().
    I am using the same way to make my SELECT statements and I dont have any trouble with them. Only when I use INSERT.
    Any adive or help is appreciated.
    Peter

    <xsql:query> is only for queries.
    Use <xsql:dml> for a DML statement.

  • How to retrieve the outer parameter of a stored procedure in XSQL page

    I have to call a stored procedure in the xsql page that returns a resultset (ie. oracle table/record type) through an outer paramter. Is there any built-in xsql action tag available to get the parameter and present
    it in xml on the page? please help, thanks.

    You cant get two resultsets out of SP like this. The workaround is to merge and bring the resultsets.
    For this number of columns as well as corresponding datatypes have to be compatible. Also you will need one additional column which indicates resultset value. Then use this as filter to get your desired resultset out
    create procedure GetData as
    begin
    select 'resultset1' as Cat,*,.. N columns from Emp
    union all
    select 'resultset2' as Cat,*,.. N columns from Dept
    end
    create table #tmp1 (Ddeptid int, deptname varchar(500),Location varchar(100))
    Insert into #tmp1 (Ddeptid , deptname ,Location )
    Select column1,column2,column3
    from OPENROWSET('SQLOLEDB','Data Source=Server_name;Trusted_Connection=yes;
    Integrated Security=SSPI','Execute yourdb..GetData')
    WHERE Cat = 'resultset1'
    create table #tmp (empid int , ename varchar(500),DeptId int , salary int)
    Insert into #tmp (empId,ename,deptId,salary)
    Select column1,column2,column3, column4
    from OPENROWSET('SQLOLEDB','Data Source=Server_name;Trusted_Connection=yes;
    Integrated Security=SSPI','Execute yourdb..GetData')
    WHERE Cat = 'resultset2'
    also see
    http://sqlblogcasts.com/blogs/madhivanan/archive/2007/11/26/select-columns-from-exec-procedure-name-is-this-possible.aspx
    Another method is to populate table with relevant resultset within procedure itself and then select from the table directly outside.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for