Javadoc of oracle.xdb package ?

Hi,
I want to ask where can I download the standard javadoc of oracle.xdb package ?
Thanks for your attention.
Trevor

Hi,
I want to ask where can I download the standard javadoc of oracle.xdb package ?
Thanks for your attention.
Trevor

Similar Messages

  • Javadoc on oracle.jms package

    Hi !
    Can anyone give me a pointer to a complete javadoc on the oracle.jms package

    It is located in <your JDev home>\jdev\doc\ohj\bc4jjavadoc.zip.
    Btw, I've downloaded the DocLinks extension from
    http://otn.oracle.com/products/jdev/htdocs/partners/addins/exchange/content.html
    which helps me a lot.
    Sascha Herrmann
    GE Medical Systems

  • Where can i find oracle.xdb.XMLType?

    Hello all!
    Plz someone can help me?
    Thx very much!

    Hi,
    You cand find it in oracle.xdb package.
    For this you need to download the Oracle XDK.
    You can download Oracle XDK for java @
    http://otn.oracle.com/software/tech/xml/xdk_java/index.html
    and Oracle XDK for C++ @
    http://otn.oracle.com/software/tech/xml/xdk_cpp/index.html
    JN

  • Missing oracle/xdb/XMLType

    Hi,
    I am developing simple java class to try xsu.
    I am using jdev 10.1.2.1.
    I have done java class to generate xml using OracleXMLQuery.
    It works fine.
    I have done java class to save data from xml using OracleXMLSave.
    It doesn't work!
    The code is simple:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:db10g2","hr","hr");
    OracleXMLSave sav = new OracleXMLSave(conn, "DEPARTMENTS");
    sav.insertXML(sav.getURL("file://c:/xmldb/insertDEPT.xml"));
    sav.close();
    during runtime at line "sav.insertXML(sav.getURL("file://c:/xmldb/insertDEPT.xml"));"
    I got an exception:
    java.lang.NoClassDefFoundError: oracle/xdb/XMLType
         at model.TESTXML_2.main(TESTXML_2.java:20)
    Exception in thread "main" Process exited with exit code 1.
    Jdev has access to all jars in ORACLE_HOME\LIB.
    What is wrong ?
    I don't know where I can find such package oracle.xdb.
    regards,
    Cezary

    You need xdb.jar in $ORACLE_HOME/rdbms/jlib

  • Javadoc for oracle java classes

    Hi there!
    Is there anywhere a Javadoc for all Oracle Java Packages? I've found a Javadoc for oracle.forms.Jdapi, but it would be useful to get a Javadoc for all Oracle classes
    thx
    Christian

    Hi,
    some of teh JavDocs are contained in the JDeveloper online help, others are available in the documentation
    http://download-uk.oracle.com/docs/cd/B31017_01/web.htm
    If you are aftre Forms related Javadocs, the Oracle Forms UI docs are not published
    Frank

  • To use Entity Bean or Oracle stored Package?

    Currently, in my project, Weblogic8.1 and Oracle is used, but lots of business logic is implemented using Oracle stored Packages, many of these packages have a package level readonly lookup table(like index-by table or nested table), which is populated with data from database, once the package is called, and is accessed very often in subsequent calls of stored procedures.
    Since, in Weblogic server, a connection pool is maintained, and those package level lookup tables would be stored as session data in oracle PGA, I'm afraid this might cause oracle database server to be overloaded.
    to fully take advantage of middleware cache service that weblogic provide, should I move those business logic out of oracle and implement them using like read only entity bean?
    any help appreciated!

    Its very hard to say without knowing the usage patterns of the data. It sounds like you have a lot of read-only entities. These could be spread around a WLS cluster, therefore there is more scalability and performance with this option. However, I would not neccessarily rewrite business logic from SP into EJB just for middle-tier caching.
    If its a DB intensive app with lots of SQL, then if the calls are within SP's, there is only 1 call from WLS and the DBA ought o be able to tune the DB usin read-ahead and other DBA semantics. If there is locality of reference in the data, again, DB can use read-ahead better than WLS, although RO cache in middle is more scalable than DBMS.
    I wouldnt rewrite business logic from SP to EJB/Entity beans to take advantage of cache, especially if there is no locality of read-only reference to data. Oracle could do this better in my opinion, especially if SP's already exist
    Need for information on the usage patterns of the data - how is it CRUD'd.
    I would use-case the steel threads and put them under test load to see if the SP's really are an issue, since this is an architecture decision. What state is the project at? Live/Dev? Inception?

  • Error Missing class: oracle.xdb.XMLType with xdb.jar in JDeveloper 10.1.3

    I am using JDeveloper 10.1.3 and get the following error when executing the web service proxy with my call to the web service( this web service is using class OracleXMLSave with method insertXML):
    I have included the xdb.jar in my project properties libraries of the web service project and added a file group with xdb.jar to the properties of the webservices.deploy. What else needs to be done? This worked in JDeveloper 10.1.2.
    THE ERROR after running proxy in log window:
    java.rmi.ServerException:
    start fault message:
    caught exception while handling request: caught exception while handling request: oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: oracle.xdb.XMLType
         Dependent class: dbdata2package.DBDataOperations
         Loader: DBData2WSApp-DBData2Operations-WS.web.WebServices:0.0.0
         Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBData2WSApp-DBData2Operations-WS/WebServices/WEB-INF/classes/
         Configuration: WEB-INF/classes/ in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBData2WSApp-DBData2Operations-WS\WebServices\WEB-INF\classes
    The missing class is available from the following locations:
         1. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-webservice-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-webservice-WS\WebServices\WEB-INF\lib)
         This code-source is available in loader DBDataWSApp-webservice-WS.web.WebServices:0.0.0.
         2. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-DBDataOperations-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-DBDataOperations-WS\WebServices\WEB-INF\lib)
         This code-source is available in loader DBDataWSApp-DBDataOperations-WS.web.WebServices:0.0.0.
    :end fault message
         at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:545)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:390)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
         at dbdata2packageproxy.runtime.DBData2WSSoapHttp_Stub.insertData(DBData2WSSoapHttp_Stub.java:80)
         at dbdata2package.DBData2WSSoapHttpPortClient.insertData(DBData2WSSoapHttpPortClient.java:54)
         at dbdata2package.DBData2WSSoapHttpPortClient.main(DBData2WSSoapHttpPortClient.java:34)
    Process exited with exit code 0.

    Hi,
    actually you increment the index
    pstmt.setString(++idx,inrecord.getCommentID());
    which means you never have an index of 0 but always start with 1
    Frank

  • How do I get unicode characters out of an oracle.xdb.XMLType in Java?

    The subject says it all. Something that should be simple and error free. Here's the code...
    String xml = new String("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<x>\u2026</x>\n");
    XMLType xmlType = new XMLType(conn, xml);
    conn is an oci8 connection.
    How do I get the original string back out of xmlType? I've tried xmlType.getClobVal() and xmlType.getString() but these change my \u2026 to 191 (question mark). I've tried xmlType.getBlobVal(CharacterSet.UNICODE_2_CHARSET).getBytes() (and substituted CharacterSet.UNICODE_2_CHARSET with a number of different CharacterSet values), but while the unicode characters are encoded correctly the blob returned has two bytes cut off the end for every unicode character contained in the original string.
    I just need one method that actually works.
    I'm using Oracle release 11.1.0.7.0. I'd mention NLS_LANG and file.encoding, but I'm setting the PrintStream I'm using for output explicitly to UTF-8 so these shouldn't, I think, have any bearing on the question.
    Thanks for your time.
    Stryder, aka Ralph

    I created analogic test case, and executed it with DB 11.1.0.7 (Linux x86), which seems to work fine.
    Please refer to the execution procedure below:
    * I used AL32UTF8 database.
    1. Create simple test case by executing the following SQL script from SQL*Plus:
    connect / as sysdba
    create user testxml identified by testxml;
    grant connect, resource to testxml;
    connect testxml/testxml
    create table testtab (xml xmltype) ;
    insert into testtab values (xmltype('<?xml version="1.0" encoding="UTF-8"?>'||chr(10)||'<x>'||unistr('\2026')||'</x>'||chr(10)));
    -- chr(10) is a linefeed code.
    commit;
    2. Create QueryXMLType.java as follows:
    import java.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import oracle.xdb.XMLType;
    import java.util.*;
    public class QueryXMLType
         public static void main(String[] args) throws Exception, SQLException
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              OracleConnection conn = (OracleConnection) DriverManager.getConnection("jdbc:oracle:oci8:@localhost:1521:orcl", "testxml", "testxml");
              OraclePreparedStatement stmt = (OraclePreparedStatement)conn.prepareStatement("select xml from testtab");
              ResultSet rs = stmt.executeQuery();
              OracleResultSet orset = (OracleResultSet) rs;
              while (rs.next())
                   XMLType xml = XMLType.createXML(orset.getOPAQUE(1));
                   System.out.println(xml.getStringVal());
              rs.close();
              stmt.close();
    3. Compile QueryXMLType.java and execute QueryXMLType.class as follows:
    export PATH=$ORACLE_HOME/jdk/bin:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export CLASSPATH=.:$ORACLE_HOME/jdbc/lib/ojdbc5.jar:$ORACLE_HOME/jlib/orai18n.jar:$ORACLE_HOME/rdbms/jlib/xdb.jar:$ORACLE_HOME/lib/xmlparserv2.jar
    javac QueryXMLType.java
    java QueryXMLType
    -> Then you will see U+2026 character (horizontal ellipsis) is properly output.
    My Java code came from "Oracle XML DB Developer's Guide 11g Release 1 (11.1) Part Number B28369-04" with some modification of:
    - Example 14-1 XMLType Java: Using JDBC to Query an XMLType Table
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb11jav.htm#i1033914
    and
    - Example 18-23 Using XQuery with JDBC
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb_xquery.htm#CBAEEJDE

  • Trying to get UTF-8 data in and out of an oracle.xdb.XMLType

    I need to be able to put unicode text into an oracle.xdb.XMLType and
    then get it back out. I'm so close but it's still not quite working.
    Here's what I'm doing...
    // create a string with one unicode character (horizontalelipsis)
    String xmlString = new String(
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
    "<utf8>\n" +
    " <he val=\"8230\">\u2026</he>\n" +
    "</utf8>\n");
    // this is an oci8 connection
    Connection conn = getconnection();
    // this works with no exceptions
    XMLType xmlType = XMLType.createXML(conn, xmlString);
    // this is the problem here - BLOB b does not contain all the bytes
    // from xmlType. It seems to be short 2 bytes.
    BLOB b = xmlType.getBlobVal(871);
    String xmlTypeString = new String(b.getBytes(1L, (int) b.length()), "UTF-8");
    PrintStream out = new PrintStream(System.out, true, "UTF-8");
    out.print(xmlTypeString);
    out.close();
    What I get from this is this...
    <?xml version="1.0" encoding="UTF-8"?>
    <utf8>
    <he val="8230">[utf-8 bytes]</he>
    </utf8
    In the above, [utf-8 bytes] represents the correctly encoded UTF-8 bytes that
    were returned. But the output is missing the final closing bracket and the
    newline at the end. It seems that no matter what second argument I give b.getBytes(),
    it always returns the above. Even
    It seems that this code...
    BLOB b = xmlType.getBlobVal(871);
    always returns a BLOB that contains a few bytes short of what it should contain.
    What am I doint wrong? I'm sure I'm missing something here.
    Thanks much for your help.
    Here's info about the environment I'm working in.
    ============================ SYSTEM INFORMATION ============================
    SQL*Plus: Release 11.1.0.7.0 - Production on Fri May 15 11:54:34 2009
    select * from nls_database_parameters
    where parameter='NLS_CHARACTERSET'
    returns...
    WE8ISO8859P1
    select * from nls_database_parameters
    where parameter='NLS_NCHAR_CHARACTERSET'
    returns...
    AL16UTF16
    The operating system I'm working with is...
    SunOS hostname 5.10 Generic_120011-14 sun4u sparc SUNW,Netra-T12

    WE8ISO8859P1 does not support the ellipsis character. It is a WE8MSWIN1252 character. I wonder if your problem may have something to do with internal conversion to/from XML character reference (&#x2026). Unfortunately, I have no time to test. Please, try to use a simple loop and System.out.print to print all bytes of the return value of b.getBytes(1L, (int) b.length()). Also, check the value of b.length().
    -- Sergiusz

  • Oracle XDB XML requires 10 times the space

    Issue:
    Oracle XDB uses a lot of disk space. I persisted 10000 records of 24kb each.
    Expected size = 24kb * 10000 = 235 MB
    Actual size = 2.1G for XMLType table & 633M for CLOB table. Tablespace showed utilization of 91%.
    Pls suggest ways to reduce disk usage ?
    XMLTYPE table –
    Structure = CREATE TABLE mytable OF XMLType XMLTYPE store AS SECUREFILE BINARY XML
    Record size = 24kb ( xml measured as bytes )
    Rows = 10000
    Size of table space on file system (.dbf) = 2.1 GB
    CLOB Table –
    Structure = Create table mytable ( event CLOB)
    Record size = 24kb ( xml measured as bytes )
    Rows = 10000
    Size of table space on file system (.dbf) = 633 MB
    So a CLOB is about 2X and XMLType is 10X.
    Is this expected? Can XMLType be tweeked to use less space?

    The size of the datafile does not necessarily reflect the size of the object(s) within. How did you load the data? Did you perform any updates?
    What is the value of bytes in user_segments for the table and the lob segment? How many extents have been allocated to each segment? Try running these queries before the data load against empty tables and then again after the load and note the diff in sizes.
    select tablespace_name, segment_name, segment_type, blocks, bytes from user_segments order by tablespace_name, segment_name;
    select * from user_extents order by tablespace_name, segment_name, extent_id;What are the attributes of the tablespaces that contain the table and lob segment? Extent sizes, extent allocation method?
    select * from user_tablespaces;
    select * from user_lobs;

  • Oracle.xdb.XMLType extract function

    I have an external java program that connect to the database using a thick connection so I can use the methods extract and existsNode available with the XMLType from oracle.xdb.XMLType.
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection(jdbc:oracle:oci8:@,"user","pwd");
    It works fine from the program. When I load the java function in the SQL database I use the default connection
    conn = DriverManager.getConnection("jdbc:default:connection:");
    and the extract function gives the error java.sql.SQLException.
    Is there a way to define the native connection as thin or thick because that was the error I was getting from the client program when I was using thin connection
    Thanks
    Mirette

    Please try and avoid duplicate posts...

  • Can i create any procedure or function inside a oracle reserve package?

    Hi!
    Can i create any procedure or function inside a oracle reserve package. Suppose, I want to create a function called x in the dbms_output package. Can i do that? Or can i extend the features of this package and create/derived a function from it like we extend any class in JAVA. I'm not sure - whether this is at all possible. I'll be waiting for your reply.
    Thanks in advance.
    Satyaki De.

    No, but you can write a wrapper package and use that instead of using the Built-In package directly. So, instead of calling DBMS_OUTPUT, you call your own Package.
    Steven Feuerstein wrote a wrapper for DBMS_OUTPUT, called P:
    Re: DBMS_OUTPUT.PUT_LINE

  • Class oracle.sql.OPAQUE not found in class oracle.xdb.XMLType

    I have the following code written in java in a unix box and this is the error I get when compiling the code. I am not able to find which specific jar or class file I need, Kindly help.
    XMLHelper.java:0: Class oracle.sql.OPAQUE not found in class oracle.xdb.XMLType.
    ^
    1 error
    OracleResultSet orst = .... some code to get data
    orst.next();
    //either of the following 2 lines give the same error
    //XMLType dXml = XMLType.createXML(orst.getOPAQUE(1)) ;
    XMLType dXml = (XMLType)orst.getObject(i);
    xmlDoc = dXml.getDOM();
    Please help

    Hello,
    from the little information in your post i would say try to import oracle.sql.*, oracle.jdbc.* and oracle.xdb.*. Make sure your project can access the following libraries ojdbc14.jar and xdb.jar.
    Regards, Marc

  • Oracle DBMS_RAND package install on NT

    How do you install the Oracle DBMS_RAND package on NT. Oracle 8i is installed on and NT box and I'm not familiar with the tools in this environment. Like - is there such a thing as svrmgrl? If there is then how do I get there on a Windows NT box?
    Thanks for any input
    JR Myint

    I hope you are looking for the package DBMS_RANDOM (and not DBMS_RAND). It should already be installed. If you
    do not see this package installed then you can run ${ORACLE_HOME}/rdbms/admin/dbmsrand.sql script to create
    this package (you must run this script under user SYS).
    Oracle8i should have SVRMGRL (Oracle Server Manager) installed (file SVRMGRL.EXE). You can go to DOS window and
    type SVRMGRL at the DOS prompt to get Server Manager.
    SQL> desc dbms_random
    PROCEDURE INITIALIZE
    Argument Name                  Type                    In/Out Default?
    VAL                            BINARY_INTEGER          IN
    FUNCTION NORMAL RETURNS NUMBER
    FUNCTION RANDOM RETURNS BINARY_INTEGER
    PROCEDURE SEED
    Argument Name                  Type                    In/Out Default?
    VAL                            BINARY_INTEGER          IN
    PROCEDURE SEED
    Argument Name                  Type                    In/Out Default?
    VAL                            VARCHAR2                IN
    FUNCTION STRING RETURNS VARCHAR2
    Argument Name                  Type                    In/Out Default?
    OPT                            CHAR                    IN
    LEN                            NUMBER                  IN
    PROCEDURE TERMINATE
    FUNCTION VALUE RETURNS NUMBER
    FUNCTION VALUE RETURNS NUMBER
    Argument Name                  Type                    In/Out Default?
    LOW                            NUMBER                  IN
    HIGH                           NUMBER                  IN
    SQL>

  • JMS Enqueue/Dequeue without using oracle.jms package

    Hi,
    Is it possible to successfully enqueue/dequeue messages from Oracle AQ using JMS which only uses the classes under javax.jms package, not the classes under oracle.jms package. If possible, can anybody please provide some step by step example.
    Thanks

    You can get the connection factory and the queue from an application server's jndi. Create a resource provider reference in oc4j and get them from there. Read the oc4j services guide, oems (jms) chapter for how to do that.
    I think if you are not using an application server you can also get the connection factory and queue from an ldap directory. check out Aq user guide for that.

Maybe you are looking for

  • Screen exit in badi FTR_CUSTOMER_EXTENT for tcode FTR_EDIT

    Hi, I need to add new tab to standard screen interest rate instrument (SAP t-code FTR_EDIT).  In the new tab i need to add input parameter to save customised field in table vtbfha. I'm using SAP ECC6. When searching for any user exit or badi, i found

  • 9.2.0.2 on AIX 5.3

    Hi, is 9.2.0.2 on AIX 5.3 supported by Oracle ? In Installation Guide Part No. A96167-01 AIX 5.1 is requiered. Many thanks.

  • JAVA NATIVE COMPILER

    Hello, Is there a compiler for compiling my JAVA program in native code for win32 and Linux(x86).(free or not) I use SWING for the interface. Best regards

  • Placing an object/photo over gutter in two page layout in Pages???

    So here's my issue. I'm new to pages and need all the help I can get. I have a two page layout and I'm trying to place a large photo across the gutter so that it will show on both pages. It will let me create the object and place a picture in it but

  • Installing RSAT 8.1 with Cloudvolumes 2.7

    Hello Everybody. I'm trying to install RSAT 8.1 for our sysadmin on windows 8.1 , but it fails. It seems that  the installer package is able to see that it's being installed on a second volume: Processing 1 of 1 - Adding package Microsoft-Windows-Rem