Generating XML Using the XSU Command Line  : connection error

I've been trying run the sample provided by the XSU doc to extract data from a table and present it in XML format. By I've been getting this connection error.
My DB version : Oracle9i Enterprise Edition Release 9.2.0.1.0
C:\>java OracleXML getXML -user "scott/tiger" "select * from emp"
Exception in thread "main" java.lang.UnsatisfiedLinkError: make_c_state
at oracle.jdbc.oci8.OCIDBAccess.make_c_state(Native Method)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:397)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at OracleXML.getConnection(OracleXML.java:1214)
at OracleXML.To_XML(OracleXML.java:1014)
at OracleXML.ExecuteGetXML(OracleXML.java:917)

Hi,
Check the solution for this problem from
Re: Oracle Driver classes12.zip  oci8   Error
You cna even check the link for more information
http://technet.oracle.com//tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
Regards,
Anupama

Similar Messages

  • Including files/resources using the ADT command line

    Hi all,
    I'm trying to get file support into my ADT helper tool before I release an update.  I am still having problems.
    According to the Adobe docs on the subject, the following commands can be used:
    -C "path/to/new/working/directory" [files and folders to include]
    -e [files and folders to include] [package directory to add these to]
    The following example works fine for me:
    // This changes the working directory to my audio resources folder, and then packages the file 'track.mp3' into the root folder of my application package.
    -C "C:\\resources\audio" "track.mp3"
    Hoiwever using -e option in any way generates an error:
    // This copies the file 'sfx.mp3' from the current working directory to the application package subdirectory 'lib'
    -e sfx.mp3 lib
    This also causes an error:
    // Change the working directory to resources/audio and then copy the file called 'sfx.mp3' to the 'lib' subfolder of the application package. Error.
    -C "C:\\resources\audio" -e sfx.mp3 lib
    The error in both cases is:
    File does not exist: sfx.mp3
    Any ideas how I can use the -e option?  Does the working directory not come in to it - do i always have to use an absolute path to my file?
    Thanks in advance,
    Peter

    Not sure if it will help in your situation, but I just include files by adding the filepath at the end of my adt command line (no -e or -c). Eg (included files or bolded):
    "C:\Program Files (x86)\Java\jre6\bin\java" -jar C:\Users\t.randall\Documents\AIRSDK\AIR_3.0\lib\adt.jar -package -target ipa-ad-hoc -storetype pkcs12 -keystore ..\..\Deployment\CareerBox.p12 -storepass pass -provisioning-profile ..\..\Deployment\CareerBox.mobileprovision ..\..\CareerBox.ipa CareerBox_iPhone-app.xml CareerBox_iPhone.swf AppIconsForPublish\Icon29x.png AppIconsForPublish\Icon57x.png AppIconsForPublish\[email protected] AppIconsForPublish\Icon512x.png AppIconsForPublish\Icon48x.png AppIconsForPublish\Icon72x.png Default.png [email protected] Default-Landscape~ipad.png Data\Cards.xml Data\CareerCards.xml

  • How to use the telnet command line in Labview

    Hi, someone can help me, I need to use a Telnet session in Labview but without using the http protocol, in this application I can only access the Telnet session using command line, here is an example of how I can access:
    From my computer, click on Start, then Run and then type in CMD.
    In the command line enter “telnet 192.168.0.1 5454” (without the quote marks) to bring up a blank DOS screen with a blinking cursor.
    Type “AT” and press the ENTER key, you should receive an “OK” response.
    Type in capital letters “AT+CMAR=1234” (without the quote marks)

    I had a similar situation and here is what I did...
    In MAX (Measurement and Automation eXplorer)
    Select Devices and Interfaces
    Select VISA TCP/IP Resources
    Create a new resource
    Select Manual Entry of Raw Socket
    Enter the IP address and port (23 is the standard telnet port)
    Give it a name. (VISA Ailas)
    Now this "Device" will show up in the VISA drop down just like any other VISA device.
    Use the VISA read and write just like you were communicating through a com port.
    Since Telnet does not have a stop bit like serial, make sure you enable the termination character.
    On your VISA reads set the number of characters to a big number, then VISA will read until it gets the termination character.
    See my attached snippet of my Telnet read vi
    Message Edited by RTSLVU on 06-16-2010 01:49 PM
    Message Edited by RTSLVU on 06-16-2010 01:50 PM
    Attachments:
    telnet.png ‏40 KB
    max1.png ‏33 KB
    max2.png ‏31 KB

  • DateFormat on XSU command line

    Hello,
    can anybody indicate how the usage of the parameter dateFormat on the XSU command line is intended to be used (maybe a small example ?) ?
    Thanks in advance
    Christoph Wahrenberger

    You can refer to the Java Date Format documents:
    http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html

  • The -profile command line switch is not passed to the windows 7 jumplist properly.

    I start Firefox with a shortcut like this one: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe -no-remote -profile SomeProfileButNotTheDefaultOne -win7appid SomeUniqueAppId".
    When pinning to the Windows 7 taskbar, the jumplist items "New Tab" and "New Window" ignore the given command line parameter -profile and open a new tab or window with the default profile instead of the given one.
    The program itself handles the parameters correctly; alas, the jumplist entries do not. Is there any way to convince the jumplist to use the given command line parameters as well?

    As I said: "The program itself handles the parameters correctly." -profile (lowercase) itself works fine. Apperently the jumplist ignores ''any'' command line parameter but starts a new process with the "-browser" parameter.

  • How can I import eex files into Applications EUL from the unix command line

    How can I import *.eex and *.dis files into an Applications EUL from the unix command line?
    Thanks

    Hi
    The simple answer is you either have to use the client tool DIS51ADM to import files using the command line (Discoverer Admin is a windows only client tool), or the Java command line which needs a browser.
    In theory if you have a browser running on your Unix box you may be able to use the Java command line to make this work.
    Best wishes
    Michael

  • Generating XMLs using queries

    Hi All,
    We have a situation as in where we have to generate a XML out of Oracle UCM. I want to know is there any way where i can generate XML using the reaultset of some query.
    Any inputs will be useful..
    Thanks.

    Hi!
    In IdocScript, you can work with the resultset and generate XML as you want ....
    You could also make your own java component that would generate XML.
    Romain.

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • How to append the declaration tags to generated xml using Xquery

    Hi,
      How to append the declaration tags to generated xml using Xquery.generated XML is like
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Here I want to append the <?xml version="1.0" encoding="ISO-8859-1"?> and the result xml should be
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Can anybody help to do this.
    Thanks
    Mani

    First assign this element to a temp variable
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Now in XQuery expression create a new variable
    <?xml version="1.0" encoding="ISO-8859-1"?>
    $temp

  • Export to PDF - Can a single report (rpt file) create multiple PDF files using the export command?

    Post Author: markeyjd2
    CA Forum: Exporting
    Greetings forum members,
    My question is, in its entirety: Can a single report (rpt file) create multiple PDF files using the export command, ideally one PDF file per DB record?
    In my case; I have a Crystal Report that reads data from a DB table containing ~ 500 records.  When I export the report to a PDF file, I get one PDF file, with ~ 500 pages.
    What I would like to do is export the report to ~ 500 individual PDF files; One file per DB record.  The file names would be based on the table's primary key.
    Is this possible?

    Post Author: Micha
    CA Forum: Exporting
    Hi,
    you need some lines of code, but its easy. Dependend on how to start the generation of your 500 PDFs, you can write an ASP page and start it via Web Browser, or a Windows Script and start it via scheduled job...
    Here's an abstract of the ASP code I use:
    First, you create a recordset (here: "rsc") which gives you the list of ID fields you want to export, then you create CrystalRuntime.Application object, then you loop through the recordset, open your report (here: "oRpt") and set login info. Then set the selectionformula, so that the report displays only the data of the current ID, e.g.:
      oRpt.RecordSelectionFormula = "(" & oRpt.RecordSelectionFormula & ") AND {myTab.myVal}=" & rsc("myVal")
    Then you export the report, move to the next record in recordset, and repeat the loop until recordset.EOF. Then you close recordset and connection.
    Micha

  • Generate xml using FOR XML PATH from table with hierarchy

    I need to create xml from a table like:
    EL1 EL2 EL3 Attr01 Attr02 Attr03 Attr04
    E10,    ,    ,a,b,c,d
    E10,E1010,    ,a,b,c,d
    E10,E1010,E101010,a,b,c,d
    E10,E1010,E101020,a,b,c,d
    E10,E1010,E101030,a,b,c,d
    E10,E1020,    ,a,b,c,d
    E10,E1020,E102010,a,b,c,d
    E20,    ,    ,a,b,c,d
    E20,E2010,    ,a,b,c,d
    E20,E2010,E201010,a,b,c,d
    E20,E2020,    ,a,b,c,d
    E20,E2020,E202010,a,b,c,d
    E20,E2020,E202020,a,b,c,d
    The hierarchy is EL1--EL2--EL3, and the 3 columns should be elements of xml;
    The other for columns Attr01,Attr02,Attr03,Attr04 should be attributes of xml;
    The actual table could have more than 500 rows(there are many values for El1,EL2,and EL3). 
    The expected xml should like:
    <root>
      <E10 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
        <E1010 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
          <E101010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
          <E101020 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
          <E101030 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
        </E1010>
        <E1020 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
          <E102010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
        </E1020>
      </E10>
      <E20 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
        <E2010 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
          <E201010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
        </E2010>
        <E2020 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
          <E202010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
          <E202020 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
        </E2020>
      </E20>
    </root>
    I create a sample Src table:
    CREATE TABLE Src
    EL1 VARCHAR(10),
    EL2 VARCHAR(10),
    EL3 VARCHAR(10),
    Attr01 VARCHAR(10),
    Attr02 VARCHAR(10),
    Attr03 VARCHAR(10),
    Attr04 VARCHAR(10)
    GO
    INSERT INTO Src
    (EL1,EL2,EL3,Attr01,Attr02,Attr03,Attr04
     SELECT 'E10','','','a','b','c','d'
     UNION SELECT 'E10','E1010','','a','b','c','d'
     UNION SELECT 'E10','E1010','E101010','a','b','c','d'
     UNION SELECT 'E10','E1010','E101020','a','b','c','d'
     UNION SELECT 'E10','E1010','E101030','a','b','c','d'
     UNION SELECT 'E10','E1020','','a','b','c','d'
     UNION SELECT 'E10','E1020','E102010','a','b','c','d'
     UNION SELECT 'E20','','','a','b','c','d'
     UNION SELECT 'E20','E2010','','a','b','c','d'
     UNION SELECT 'E20','E2010','E201010','a','b','c','d'
     UNION SELECT 'E20','E2020','','a','b','c','d'
     UNION SELECT 'E20','E2020','E202010','a','b','c','d'
     UNION SELECT 'E20','E2020','E202020','a','b','c','d'
    GO
    I tried to use FOR XML PATH to generate xml for the sample data. When the records increase to a few hundreds, it's not a good idea.
    Here is my script:
    SELECT
    (SELECT Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E101010'
    FOR XML PATH('E101010'),TYPE
    ) AS 'node()'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E101020'
    FOR XML PATH('E101020'),TYPE
    ) AS 'node()'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E101030'
    FOR XML PATH('E101030'),TYPE
    ) AS 'node()'
    FROM Src
    WHERE EL2 = 'E1010' AND (EL1 <>'' AND EL3 ='')
    FOR XML PATH('E1010'),TYPE
    ) AS 'node()'--1010
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E102010'
    FOR XML PATH('E102010'),TYPE
    ) AS 'node()'
    FROM Src
    WHERE EL2 = 'E1020' AND (EL1 <>'' AND EL3 ='')
    FOR XML PATH('E1020'),TYPE
    ) AS 'node()'--1020
    FROM Src
    WHERE EL1 = 'E10' AND (EL2 ='' AND EL3 ='')
    FOR XML PATH('E10'),TYPE) 'node()'
    ,(SELECT Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E201010'
    FOR XML PATH('E201010'),TYPE
    ) AS 'node()'
    FROM Src
    WHERE EL2 = 'E2010' AND (EL1 <>'' AND EL3 ='')
    FOR XML PATH('E2010'),TYPE
    ) AS 'node()'--2010
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E202010'
    FOR XML PATH('E202010'),TYPE
    ) AS 'node()'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E202020'
    FOR XML PATH('E202020'),TYPE
    ) AS 'node()'
    FROM Src
    WHERE EL2 = 'E2020' AND (EL1 <>'' AND EL3 ='')
    FOR XML PATH('E2020'),TYPE
    FROM Src
    WHERE EL1 = 'E20' AND (EL2 ='' AND EL3 ='')
    FOR XML PATH('E20'),TYPE) AS 'node()'
    FOR XML PATH(''),ROOT('root')
    If I get a few hundreds of rows, how huge the script should be. Does anyone have better solution for this? Thanks.
    Tao

    wBob,
    Thanks! And sorry for late feedback.
    The XSD requires the xml structures like the following
    <Schools>
    <School01>Some school</School01>
    <School02>Some other school</School02>
    </Schools>
    I have to use the number in the element name. 
    Right now I just use the nested FOR XML PATH, although I have to write thousand lines code.
    Thanks anyway.
    Tao
    Tao

  • Adding Wireless Profile XML In TS or Command Line in SCCM

       I have exported my wireless profile to an XML file and have created a package and tried from the command line in TS but keep getting errors (0x00000001 or 0x80004005). The command line I've been using is netsh wlan add profile filename="<Profilename>"
    I have to be missing something. Does anyone have any ideas?

    Now I'm with you :)
    My way of doing it is that i have my scripts included in the toolkit package (we do use integrated MDT). 
    Therefore i need a use toolkit befor i riun my script. 
    After that I just use a run command line step with Cscript.exe "myscriptname".
    Sccm is running as system so it should have all permissions it needs.
    By the way, you are not trying to do a gpupdate by chance? That will not work (at least not in 2007)

  • How to compile an .air app from the ADT command line?

    Hi,
    I would like to compile an .air app from the ADT command line.
    Does anybody have an example?
    I don't know how to add the AIR SDK path and a folder to it.
    Is there a generator for the command line availabble?
    Thanks

    Correction: it seems that Applescripts and some similar scripts can be called from the command line using "osascript scriptname". I don't speak automator but you might like to try it. osascript seems to come with severe limitations though, for instance it doesn't allow user interaction such as dialogue boxes.

  • Error during executing the tp command 'tp Connect DEV...

    Dear All,
       There is error when I SPAM support package SAPKB70010.(SAP ECC6.0)
       Info:
       Import phase 'CHECK_REQUIREMENTSS'
       \HOSTNAME\SAPMNT\trans\bin\TPPARAM
       Error during executing the tp command 'tp connect DEV...'
       TP return cod:'0208', tp message:'error in transportprofil (param missing,unknow..'tp output
       sapmnt\trans\bin\TPPARAM could not be opened.
      EXIT
      ERROR:
    System: Parameter SAPEVTPATH not set. Batch jobs cannot be started.
      Error in
    hostname\sapmnt\trans\bin\TPPARAM: transdir not set.
      tp return code Summary:
      TOOLS:Hightest return code of single steps was:0
      ERRORS: Highest tp internal error was:0208
    My environment:
    Win2003 X64
    Oracle 10.2
    SAP ECC 6.0  Basis 700  09
    Kernel patch num:254
    How to solve the issue?
    Thank you very much!

    Hi
    2 possible problems.
    1) tp is using the wrong profile
    2) the profile is not complete
    For 1, specify the profile when using the tp command e.g. tp connect dr1
    pf='/usr/sap/trans/DR1/bin/TPPARAM'
    For 2 you need to edit the TPPARAM file and insert the correct values e.g.
    DR1/sapevtpath = /usr/sap/$(system)/SYS/exe/run/sapevt or you can add
    it into the command line with the -D option
    At the command prompt enter 'tp connect' and the help file will be
    displayed for that command with the available options
    Cheers
    Nirav Kundaria

  • Applescript MySQL interface (No... not using the shell command)

    I'm a windows guy, so please be gentle if I sound noobish.
    I'm trying to automate an export of the System Profiler info to a MySQL database directly, and I was hoping to get applescript to parse the info from the XML and push it into MySQL.
    Now I know that Applescript can manipulate MySQL by using shell commands for the MySQL command line client, but I was hoping that someone knew of a native applescript interface.

    There's MacSQL http://www.macupdate.com/info.php/id/21293 that will give an alternative route into MySQL. I don't know whether it's any better than using shell scripts.

Maybe you are looking for

  • AV cable or S-video cable

    Hi, I was wondering if there is really any difference in the video quality of an AV cable and a S-video cable. Also, wouldn't the sound not work with the S-video cable? Thanks. Mac Mini   Mac OS X (10.4.6)  

  • After reboot the password is not asked

    Hi All I have just installed ArchLinux for the first time, using the beginners guide After installing it, configuring it, generating the master key required for pacman updated, I run: pacman -Syu After some of the things have been installed, I did ge

  • Mail folder is 400GB overnight. Even after cleanup is back to 100GB

    Hello, My Mail folder became 400GB+ overnight, without any intervention or setting changes (today my comp just gave a warning that I have 50MB left of my 1TB HD!?! After looking at all the folders, I saw that Mail was eating up all that space) I went

  • Disabling an item dynamically

    Hi I am using APEX on oracle 10g XE. and am absolutely new to this tool. I need to disable a set of input fields, based on the drop down value.( This drop down tem is right now set with 'Select with Submit' option. ) Depending on the value chosen by

  • Having problems with USB cable, please HELP!

    While trying to download aim/aol I was having problems with my USB cable and my phone being connected, it was like they were showing they were conneted but when I tried to download aim it said no drivers were recognised. My phone was giving me the op