XMLParser for PL/SQL - Error

I am using XML parser for PL/SQL in oracle 8.1.7 DB.
When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below.
SQL> exec domsample('/u01/usr/oracle/sso','family.xml','errors.txt');
BEGIN domsample('/u01/usr/oracle/sso','family.xml','errors.txt'); END;
ERROR at line 1:
ORA-29540: class oracle/xml/parser/plsql/XMLParserCover does not exist
ORA-06512: at "PACKMGR.XMLPARSERCOVER", line 0
ORA-06512: at "PACKMGR.XMLPARSER", line 57
ORA-06512: at "PACKMGR.DOMSAMPLE", line 72
ORA-06512: at line 1
What need to be done to rectify the above problem.
when i do the following validation check
SQL> select substr(dbms_java.longname(object_name),1,30) as class, status
2 from all_objects
3 where object_type = 'JAVA CLASS'
4 and object_name = dbms_java.shortname('oracle/xml/parser/v2/DOMParser');
from all_objects
ERROR at line 2:
ORA-29540: class oracle/aurora/rdbms/DbmsJava does not exist
I get the above error. Pls. Advice

This should be that you haven't load the xmlparserv2.jar into the DB schema. You can load the java libs using loadjava command

Similar Messages

  • NLS support in xmlparser for pl/sql??

    Hi,
    I am not able to create a DOMNode with NLS-Text between the tags of the node. I am using the Oracle xml parser for pl/sql. All I need to do is create the node - "<wish>Good Morning</wish>". The value - "Good Morning" needs to come from a variable of type nvarchar2. A call to the function xmldom.createTextNode gives the following compile time error - PLS-00561: character set mismatch on value for parameter 'DATA', which literally means that the "DATA" formal parameter takes in only a varchar2 and not an nvarchar2. I could not find any other function to create a text node, which accepts an nvarchar2 data. Does this mean that the xmlparser for pl/sql does not support NLS? Please help.
    Thanks in advance,
    Vincent Morris.
    Procedure used for creating the node:
    create or replace procedure create_mynode is
    nls_text nvarchar2(50);
    doc xmldom.DOMDocument;
    node xmldom.DOMNode;
    element xmldom.DOMElement;
    text xmldom.DOMText;
    text_node xmldom.DOMNode;
    dummy xmldom.DOMNode;
    begin
    /* code for getting a DOMDocument into the variable doc
    nls_text:=n'Good Morning';
    element:=xmldom.createElement(doc, 'wish');
    node:=xmldom.makeNode(element);
    text:=xmldom.createTextNode(doc, nls_text); -- ERROR ON THIS LINE
    text_node:=xmldom.makeNode(text);
    dummy:=xmldom.appendChild(node,text_node);
    /* code for printing the tagname and value of the node contained in the variable 'node'
    end;

    declare
    doc xmldom.DOMDocument;
    nl xmldom.DOMNodeList;
    n xmldom.DOMNode;
    t xmldom.DOMNode;
    val VARCHAR2(30);
    begin
    doc := xmlparser.getDocument(p);
    nl := xmldom.getElementsByTagName(doc, '*');
    n := xmldom.item(nl, 1);
    t := xmldom.getFirstChild(n);
    val := UPPER(xmldom.getNodeValue(t));
    end;

  • Installing xmlparser for PL/SQL.

    I am installing the newest version of the Oracle xmlparser for
    PL/SQL, version 1.0.2.0.0, and I have a question. How can I
    install this tool into the database so that all users have access
    to the many objects it creates? In affect, I want to do a "public"
    installation rather than install it under multiple users.
    If this is not possible, then what commands to I need to
    execute to give public access to objects like "JAVA CLASS",
    etc.
    Thanks,
    - Jai

    I too would like to know. I just installed the XML Utilities and the only user who can see all of the code is SYSTEM.

  • XMLParser for PL/SQL ORA-20100 Problem

    I am using XML parser for PL/SQL in Oracle9i Enterprise Edition Release 9.0.1.1.1
    When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below.
    SQL> execute domsample('c:\xml', 'family.xml', 'errors.txt');
    begin domsample('c:\xml', 'family.xml', 'errors.txt'); end;
    ORA-20100: Error occurred while parsing: No such file or directory
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 22
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 79
    ORA-06512: at "COMMODITYBACKCONNECT.DOMSAMPLE", line 80
    ORA-06512: at line 1
    What need to be done to rectify the above problem.
    when i do the following validation check
    SQL>
    SQL> select substr(dbms_java.longname(object_name),1,30) as class, status
    2 from all_objects
    3 where object_type = 'JAVA CLASS'
    4 and object_name = dbms_java.shortname('oracle/xml/parser/v2/DOMParser')
    5 ;
    CLASS STATUS
    oracle/xml/parser/v2/DOMParser VALID
    oracle/xml/parser/v2/DOMParser VALID
    Please advice to how remove the following error:
    ORA-20100: Error occurred while parsing: No such file or directory

    Hi, I have run into the same problem. I think the parser is looking for c:\XML on your sever instead of your local drive. Try creating a dir on the server called \xml and rerunning the script. I don't know whether it will fix your problem, as i am sitting with the same thing, but it is a step in the right direction. Also check your separators. If you are running unix servers use / instead of \

  • XMLParser for PL/SQL

    I am using XML parser for PL/SQL in Oracle9i Enterprise Edition Release 9.0.1.1.1
    When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below.
    SQL> execute domsample('c:\xml', 'family.xml', 'errors.txt');
    begin domsample('c:\xml', 'family.xml', 'errors.txt'); end;
    ORA-20100: Error occurred while parsing: No such file or directory
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 22
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 79
    ORA-06512: at "COMMODITYBACKCONNECT.DOMSAMPLE", line 80
    ORA-06512: at line 1
    What need to be done to rectify the above problem.
    when i do the following validation check
    SQL>
    SQL> select substr(dbms_java.longname(object_name),1,30) as class, status
    2 from all_objects
    3 where object_type = 'JAVA CLASS'
    4 and object_name = dbms_java.shortname('oracle/xml/parser/v2/DOMParser')
    5 ;
    CLASS STATUS
    oracle/xml/parser/v2/DOMParser VALID
    oracle/xml/parser/v2/DOMParser VALID
    Please advice to how remove the following error:
    ORA-20100: Error occurred while parsing: No such file or directory

    This should be that you haven't load the xmlparserv2.jar into the DB schema. You can load the java libs using loadjava command

  • XMLParser for PL/SQL ORA-20100

    I am using XML parser for PL/SQL in Oracle9i Enterprise Edition Release 9.0.1.1.1
    When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below.
    SQL> execute domsample('c:\xml', 'family.xml', 'errors.txt');
    begin domsample('c:\xml', 'family.xml', 'errors.txt'); end;
    ORA-20100: Error occurred while parsing: No such file or directory
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 22
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 79
    ORA-06512: at "COMMODITYBACKCONNECT.DOMSAMPLE", line 80
    ORA-06512: at line 1
    What need to be done to rectify the above problem.
    when i do the following validation check
    SQL>
    SQL> select substr(dbms_java.longname(object_name),1,30) as class, status
    2 from all_objects
    3 where object_type = 'JAVA CLASS'
    4 and object_name = dbms_java.shortname('oracle/xml/parser/v2/DOMParser')
    5 ;
    CLASS STATUS
    oracle/xml/parser/v2/DOMParser VALID
    oracle/xml/parser/v2/DOMParser VALID
    Please advice to how remove the following error:
    ORA-20100: Error occurred while parsing: No such file or directory

    Hi, I have run into the same problem. I think the parser is looking for c:\XML on your sever instead of your local drive. Try creating a dir on the server called \xml and rerunning the script. I don't know whether it will fix your problem, as i am sitting with the same thing, but it is a step in the right direction. Also check your separators. If you are running unix servers use / instead of \

  • Using XMLParser for PL/SQL

    I am using DBMS_XMLParser in Oracle 10g to parse an XML. The code is as follows:
    CREATE OR REPLACE procedure xml_main is
    P DBMS_XMLPARSER.Parser;
    DOC CLOB;
    v_xmldoc DBMS_XMLDOM.DOMDocument;
    v_out CLOB;
    BEGIN
    P := DBMS_XMLPARSER.newParser;
    DBMS_XMLPARSER.setValidationMode(p, FALSE);
    DOC := '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <com.welligent.Student.BasicStudent.Create>
    <ControlAreaSync messageCategory="com.welligent.Student" messageObject="BasicStudent" messageAction="Create" messageRelease="1.0" messagePriority="1" messageType="Sync">
    <Sender>
    <MessageId>
    <SenderAppId>com.openii.SyncRouter</SenderAppId>
    <ProducerId>a72af712-90ea-43be-b958-077a87a29bfb</ProducerId>
    <MessageSeq>53</MessageSeq>
    </MessageId>
    <Authentication>
    <AuthUserId>Router</AuthUserId>
    </Authentication>
    </Sender>
    <Datetime>
    <Year>2001</Year>
    <Month>3</Month>
    <Day>23</Day>
    <Hour>13</Hour>
    <Minute>47</Minute>
    <Second>30</Second>
    <SubSecond>223</SubSecond>
    <Timezone>6:00-GMT</Timezone>
    </Datetime>
    </ControlAreaSync>
    <DataArea>
    <NewData>
    <BasicStudent mealCode="" usBorn="Yes" migrant="No" workAbility="No" ellStatus="">
    <StudentNumber>052589F201</StudentNumber>
    <ExternalIdNumber>1234567890</ExternalIdNumber>
    <StateIdNumber>123456</StateIdNumber>
    <Name>
    <LastName>Lopez</LastName>
    <FirstName>Maria</FirstName>
    <MiddleName>S</MiddleName>
    </Name>
    <Gender>Female</Gender>
    <BirthDate>
    <Month>1</Month>
    <Day>1</Day>
    <Year>1995</Year>
    </BirthDate>
    <Race>Hispanic</Race>
    <Ethnicity>Hispanic</Ethnicity>
    <PrimaryLanguage>English</PrimaryLanguage>
    <HouseholdLanguage>Spanish</HouseholdLanguage>
    <Address>
    <Street>123 Any Street</Street>
    <ApartmentNumber>12-D</ApartmentNumber>
    <City>Los Angeles</City>
    <County>Los Angeles</County>
    <State>CA</State>
    <ZipCode>90071</ZipCode>
    </Address>
    </BasicStudent>
    </NewData>
    </DataArea>
    </com.welligent.Student.BasicStudent.Create>';
    DBMS_XMLPARSER.PARSECLOB ( P, DOC );
    v_xmldoc := DBMS_XMLPARSER.getDocument(P);
    printElementAttributes(v_xmldoc);
    exception
    when DBMS_XMLDOM.INDEX_SIZE_ERR then
    raise_application_error(-20120, 'Index Size error');
    when DBMS_XMLDOM.DOMSTRING_SIZE_ERR then
    raise_application_error(-20120, 'String Size error');
    when DBMS_XMLDOM.HIERARCHY_REQUEST_ERR then
    raise_application_error(-20120, 'Hierarchy request error');
    when DBMS_XMLDOM.WRONG_DOCUMENT_ERR then
    raise_application_error(-20120, 'Wrong doc error');
    when DBMS_XMLDOM.INVALID_CHARACTER_ERR then
    raise_application_error(-20120, 'Invalid Char error');
    when DBMS_XMLDOM.NO_DATA_ALLOWED_ERR then
    raise_application_error(-20120, 'Nod data allowed error');
    when DBMS_XMLDOM.NO_MODIFICATION_ALLOWED_ERR then
    raise_application_error(-20120, 'No mod allowed error');
    when DBMS_XMLDOM.NOT_FOUND_ERR then
    raise_application_error(-20120, 'Not found error');
    when DBMS_XMLDOM.NOT_SUPPORTED_ERR then
    raise_application_error(-20120, 'Not supported error');
    when DBMS_XMLDOM.INUSE_ATTRIBUTE_ERR then
    raise_application_error(-20120, 'In use attr error');
    END;
    CREATE OR REPLACE procedure printElementAttributes(doc DBMS_XMLDOM.DOMDocument) is
    nl DBMS_XMLDOM.DOMNODELIST;
    len1 NUMBER;
    len2 NUMBER;
    n DBMS_XMLDOM.DOMNODE;
    e DBMS_XMLDOM.DOMELEMENT;
    nnm DBMS_XMLDOM.DOMNAMEDNODEMAP;
    attrname VARCHAR2(100);
    attrval VARCHAR2(100);
    text_value VARCHAR2(100):=NULL;
    n_child DBMS_XMLDOM.DOMNODE;
    BEGIN
    -- get all elements
    nl := DBMS_XMLDOM.getElementsByTagName(doc, '*');
    len1 := DBMS_XMLDOM.getLength(nl);
    -- loop through elements
    FOR j in 0..len1-1 LOOP
    n := DBMS_XMLDOM.item(nl, j);
    e := DBMS_XMLDOM.makeElement(n);
    DBMS_OUTPUT.PUT_LINE(DBMS_XMLDOM.getTagName(e) || ':');
    -- get all attributes of element
    nnm := DBMS_XMLDOM.getAttributes(n);
    n_child:=DBMS_XMLDOM.getFirstChild(n);
    text_value:=DBMS_XMLDOM.getNodeValue(n_child);
    dbms_output.put_line('val='||text_value);
    IF (DBMS_XMLDOM.isNull(nnm) = FALSE) THEN
    len2 := DBMS_XMLDOM.getLength(nnm);
    dbms_output.put_line('length='||len2);
    -- loop through attributes
    FOR i IN 0..len2-1 LOOP
    n := DBMS_XMLDOM.item(nnm, i);
    attrname := DBMS_XMLDOM.getNodeName(n);
    attrval := DBMS_XMLDOM.getNodeValue(n);
    dbms_output.put(' ' || attrname || ' = ' || attrval);
    END LOOP;
    dbms_output.put_line('');
    END IF;
    END LOOP;
    END printElementAttributes;
    While executing the xml_main proc from an anonymous block, I am getting the following error:
    ORA-04063: package body "XDB.DBMS_XMLPARSER" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "XDB.DBMS_XMLPARSER"
    ORA-06512: at "BALB.XML_MAIN", line 9
    ORA-06512: at line 2
    I've checked that the XDB is installed in my database by running the below query and getting the output
    select comp_name, version, status
    from dba_registry
    where comp_name like '%XML%';
    COMP_NAME VERSION STATUS
    Oracle XML Database 10.2.0.2.0 VALID
    1 row selected.
    Please let me know a way out to resolve it?

    Ramesh,
    Have you referred to the samples provided in the 8.1.7 doc section at :
    http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/appdev.817/a86030/adx24pap.htm
    In the above page, the link, "Using XML Parser for PL/SQL Examples in sample/" has sample code on using the
    xmlparser, xmldom and xslprocessor packages. These samples are provided as demos with the XDK s/w that
    normally gets installed in your ORACLE817_HOME/xdk directory.
    Hope that helps.
    -Srinivas

  • Addt for cs4 SQL error

    Hi there,
    When creating a registration page using addt for CS4 I get the following error when I subit the registration form:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' id TEXT)' at line 1
    ('id' in this recordset is actually NUMERIC)
    I've got a feeling this is an error somewhere in the toolbox libraries.
    I have a similiar registration form on another site that I created with the previous version of ADDT and that works fine. However, if I copy all that code across into the site using the updated library I get the same above error.
    Has anybody come across this?

    Hi Gunter, thanks for replying.
    <br />(Incidentally, this code is also erroneously inserted ABOVE the class and connection includes so it doesn't work until I manually move the includes above the code.)
    <br />
    <br />*** FULL DEBUG TRACE ***
    <br />Error:
    <br />Internal error.
    <br />Developer Details:
    <br />tNG_fields.getFakeRecordset:
    <br />SQL error: Error creating temporary table:
    <br />You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' user_id TEXT)' at line 1
    <br />SQL:
    <br />CREATE TEMPORARY TABLE KT_fakeRS_20090307 (username TEXT, password TEXT, firstname TEXT, lastname TEXT, email TEXT, date TEXT, active TEXT, key TEXT, user_id TEXT) (FIELDS_FAKE_RS_ERROR)
    <br />tNG Execution Trace - VIEW
    <br />
    <br /> * tNG_insert.executeTransaction
    <br /> o STARTER.Trigger_Default_Starter
    <br /> o tNG_insert.doTransaction
    <br /> + BEFORE.Trigger_Default_FormValidation
    <br /> + BEFORE.Trigger_Registration_CheckUniqueUsername
    <br /> + BEFORE.Trigger_Registration_CheckPassword
    <br /> + BEFORE.Trigger_Registration_PrepareActivation
    <br /> + tNG_insert.prepareSQL
    <br /> + tNG_insert.executeTransaction - execute sql*
    <br /> + ERROR.Trigger_Default_Insert_RollBack
    <br /> * tNG_insert.getRecordset
    <br /> * tNG_insert.getFakeRsArr
    <br /> * tNG_insert.getLocalRecordset
    <br /> * tNG_insert.getFakeRecordset*
    <br />
    <br />*** CODE GENERATED BY USER REGISTRATION WIZARD *********
    <br />
    <br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_japanga = new KT_connection($japanga, $database_japanga);<br />?>
    <br />
    <br /><?php<br />//start Trigger_CheckPasswords trigger<br />//remove this line if you want to edit the code by hand<br />function Trigger_CheckPasswords(&$tNG) {<br />  $myThrowError = new tNG_ThrowError($tNG);<br />  $myThrowError->setErrorMsg("Passwords do not match.");<br />  $myThrowError->setField("password");<br />  $myThrowError->setFieldErrorMsg("The two passwords do not match.");<br />  return $myThrowError->Execute();<br />}<br />//end Trigger_CheckPasswords trigger<br /><br />//start Trigger_WelcomeEmail trigger<br />//remove this line if you want to edit the code by hand<br />function Trigger_WelcomeEmail(&$tNG) {<br />  $emailObj = new tNG_Email($tNG);<br />  $emailObj->setFrom("{KT_defaultSender}");<br />  $emailObj->setTo("{email}");<br />  $emailObj->setCC("");<br />  $emailObj->setBCC("");<br />  $emailObj->setSubject("Welcome");<br />  //FromFile method<br />  $emailObj->setContentFile("includes/mailtemplates/welcome.html");<br />  $emailObj->setEncoding("ISO-8859-1");<br />  $emailObj->setFormat("HTML/Text");<br />  $emailObj->setImportance("Normal");<br />  return $emailObj->Execute();<br />}<br />//end Trigger_WelcomeEmail trigger<br /><br />//start Trigger_ActivationEmail trigger<br />//remove this line if you want to edit the code by hand<br />function Trigger_ActivationEmail(&$tNG) {<br />  $emailObj = new tNG_Email($tNG);<br />  $emailObj->setFrom("{KT_defaultSender}");<br />  $emailObj->setTo("{email}");<br />  $emailObj->setCC("");<br />  $emailObj->setBCC("");<br />  $emailObj->setSubject("Activation");<br />  //FromFile method<br />  $emailObj->setContentFile("includes/mailtemplates/activate.html");<br />  $emailObj->setEncoding("ISO-8859-1");<br />  $emailObj->setFormat("HTML/Text");<br />  $emailObj->setImportance("Normal");<br />  return $emailObj->Execute();<br />}<br />//end Trigger_ActivationEmail trigger<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$formValidation->addField("username", true, "text", "", "3", "12", "Please enter a name between 3 and 12 characters.");<br />$formValidation->addField("password", true, "text", "", "6", "12", "Please enter a passsword between 6 and 12 characters.");<br />$formValidation->addField("firstname", true, "text", "", "3", "15", "Please enter your first name.");<br />$formValidation->addField("lastname", true, "text", "", "3", "15", "Please enter your last name (3-15 chars).");<br />$formValidation->addField("email", true, "text", "email", "", "", "Please enter a valid email. ");<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />// Make an insert transaction instance<br />$userRegistration = new tNG_insert($conn_japanga);<br />$tNGs->addTransaction($userRegistration);<br />// Register triggers<br />$userRegistration->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$userRegistration->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$userRegistration->registerTrigger("END", "Trigger_Default_Redirect", 99, "{kt_login_redirect}");<br />$userRegistration->registerConditionalTrigger("{POST.password} != {POST.re_password}", "BEFORE", "Trigger_CheckPasswords", 50);<br />$userRegistration->registerTrigger("AFTER", "Trigger_WelcomeEmail", 40);<br />$userRegistration->registerTrigger("AFTER", "Trigger_ActivationEmail", 40);<br />// Add columns<br />$userRegistration->setTable("users");<br />$userRegistration->addColumn("username", "STRING_TYPE", "POST", "username");<br />$userRegistration->addColumn("password", "STRING_TYPE", "POST", "password");<br />$userRegistration->addColumn("firstname", "STRING_TYPE", "POST", "firstname");<br />$userRegistration->addColumn("lastname", "STRING_TYPE", "POST", "lastname");<br />$userRegistration->addColumn("email", "STRING_TYPE", "POST", "email");<br />$userRegistration->addColumn("date", "DATE_TYPE", "POST", "date");<br />$userRegistration->setPrimaryKey("user_id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rsusers = $tNGs->getRecordset("users");<br />$row_rsusers = mysql_fetch_assoc($rsusers);<br />$totalRows_rsusers = mysql_num_rows($rsusers);<br />?>
    <br /><?php require_once('Connections/japanga.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_japanga = new KT_connection($japanga, $database_japanga);<br />?>

  • Error whilst installing XMLParser for PL/SQL

    Oracle 8.1.6, AIX
    While installing the java archive named xmlparserv2.jar, I constantly get the message:
    ORA-29547: Java system class not available: oracle/aurora/rdbms/Compiler
    can somebody tell me why? I've tried to check my classpatch in all the ways I could think of, but nothing worked. is this class supposed to be in the rdbms or in the classpath.
    If so, in which archive?

    Have you run the initjvm.sql file after creating the database.
    The script can be run manually (as SYS) (located in ORACLE_HOME/rdbms/admin). When this script is run, it loads the required java classes the database.
    After this run another script initplsj.sql (located in ORACLE_HOME/rdbms/admin).

  • Custom Error Pages (Not for PL/SQL Errors)

    Hi,
    How can I make my own error page for when I branch to an invalid page?
    I caught this example:
    http://djmein.blogspot.com/2007/04/custom-error-handling-in-apex.html
    But I beleive it is only for handling exceptions thrown in PL/SQL and this cannot be applied here.
    Anyone know?

    I'm struggling on this also. Anyone have the solution as well?

  • Probs with XMLParser for PL/SQL

    Oracle 8.1.6, Solaris.
    XMLParser v 1.0.2.
    While loading the java archive named xmlparserv2.jar with the loadjava command, I constantly get the message
    ORA-29547: Java system class not available: oracle/aurora/rdbms/Compiler
    for some classes
    can somebody tell me why?
    I've pointed my CLASSPATH to the aurora.zip archive, but it won't work!
    Please help, thanx!

    It sounds like you have not properly run initjvm.sql to initialize the Oracle 8i JVM.
    This needs to be done first before LoadJava will work.
    Oracle XML Team
    null

  • Nees for better SQL error handling???

    Hello everybody!
    I am having problems with identifying the reason why SQLExceptions are thrown. What I mean is that the reason is stored in the sql state and the sql code variables. As far as I know, this sql code may be platform dependent which makes the whole mechanism somehow hard to use.
    I simply miss sublasses of the SQLException like - DuplicateEntrySQLException, ForeignKeyConstraintFailureSQLException, ...
    - I think this approach would be far too way natural and obvious.
    My question is: does anybody know about a package or something like that which would implement a kind of "re-thrower" class which would consume the SQLException, inspect it and based on the exception's state it would throw a nice exception in the sense described above?
    Thank you!
    Cheers,
    Miro

    Why not check the data beforehand only?
    Normally I have a validate method in which I run a check on the data submitted by the user. there I see if the Data is violating any of the foriegn key, unique constraints or length of the field.
    I don't insert the data first into the DB without any validation.
    If you don't do this, then there is no way for you to know whether the problem occurred because of the data provided by the user or because the DB is having system level or n/w level problem.
    On the fly analysis is not possible because a DB (ex. oracle, sql server) each is capable of throwing ten thousand kind of errors. you really can't translate it by a package.
    So the best way to handle your situation is that validate the data first. If there is a problem report it to the user. If validation suceeds then go ahead with the insert, update command.
    If the user still gets an SQLException then it assume a system level error and display message like "Foo Portal is temporarily unavailable. Kindly call 4343343 in case of emergency"
    Test your system pretty well specially the validation logic so that you don't display the sys unavailable message when the DB is available but the data has errors.
    hope this helps.
    regards,
    Abhishek.

  • Contents in XMLParser for PL/SQL

    How do you get the contents between tags in a XML document?
    example:
    <ejb name="My bean">
    <maximum-pool-size>20</maximum-pool-size>
    </ejb>
    I want the "20"-value.
    How do your extract this from a node in a DOM tree?
    thanx.

    declare
    doc xmldom.DOMDocument;
    nl xmldom.DOMNodeList;
    n xmldom.DOMNode;
    t xmldom.DOMNode;
    val VARCHAR2(30);
    begin
    doc := xmlparser.getDocument(p);
    nl := xmldom.getElementsByTagName(doc, '*');
    n := xmldom.item(nl, 1);
    t := xmldom.getFirstChild(n);
    val := UPPER(xmldom.getNodeValue(t));
    end;

  • Receiving SQL Error: INTERNAL_ERROR  while executing the query

    Dear All,
    I am receiving the below error while executing a query.
    SQL Error: INTERNAL_ERROR
    Diagnosis
    The database system registered an SQL error. As available, the error number and a description are included in the short text. Possible causes for SQL errors include:
    Overflow of database objects such as buffers, temporary tablespaces, rollback segments or data containers/tablespaces.
    ->These problems can generally be eliminated by system administrators.
    Missing generated database objects such as tables or views based on inconsistent or inactive InfoCubes or InfoObjects. Examples of this include the view of the fact table for an InfoCube or the attribute SID table (X/Y table) of a characteristic.
    -> These problems can generally be eliminated by a BW administrator.
    SQL requests with incorrect content.
    -> Problems of this type are generally programming errors.
    System Response
    Procedure
    Contact your system administrator.
    Procedure for System Administration
    If there is no error description, look for one in the reference from the database producer.
    Decide on the correct category for the SQL error and check if it can be eliminated. Generally the error can also be found in the syslog (transaction sm21). From there, transactions sm51 and sm50, the developer's trace log of the work process can be determined and the erroneous statement can be viewed in the log. This procedure is described in SAP Note 568768.
    Notification Number DBMAN 257 
    I verified the table spaces and also done RSRV Repair of InfoObjects and InfoCubes and didnt find any error. But I am receiving this error for one particular month and remaining months are executing fine. Any ideas why i am receiving this error.
    Regards
    Ravi Y

    OSS Note 1305568:
    Symptom
    A data mart query that
    you want to execute within a data transfer process (DTP), for example, terminates with the
    SQL error -1013 "Too many order columns".
    The following is displayed in the monitor log of the data transfer process:
    Error while extracting from source xxxxxx (type InfoProvider)
    Message number RSBK 242
    Exception CX_SQL_EXCEPTION occurred (program:
    CL_SQL_STATEMENT==============CP, include:
    CL_SQL_STATEMENT==============CM004, line: 32).
    Message number RS_EXCEPTION 000
    SQL error: POS(3306) Too many order columns
    Message number DBMAN 257
    Error reading the data of InfoProvider xxxxxx
    Message number DBMAN 305
    You have already implemented Note 1065380.
    Other terms
    CX_SQL_EXCEPTION, message number, RS_EXCEPTION 000, DBMAN 257,  RSBK 242,
    RS_EXCEPTION 000
    Reason and Prerequisites
    The MaxDB internal limit of 4016 bytes or 128 fields for GROUP BY columns was exceeded.
    Solution
    When you implement these corrections, no aggregation is performed for the data (GROUP BY) if the limits of the MaxDB database have been exceeded.
    The limit values for the aggregation bahavior can also be manually reduced if there are problems with the default values.
    Two RSADMIN parameters are provided for this.
    MAXDB_MAX_GROUP_BY_FLDS is the maximum number of GROUP BY fields. The default value is 128.
    MAXDB_MAX_GROUP_BY_LEN is the maximum total length of the GROUP BY fields. The default value is 4000.
    SAP NetWeaver BI 7.00
               Import Support Package 21 for SAP NetWeaver BI 7. 00 (SAPKW70021) into your BI system. The Support Package is available when Note 1270629"SAPBINews NW 7.00 BI Support Package 21", which describes this Support Package in more detail, is released for customers.

  • Displaying full sql error text?

    I'm using getErrorCode() and getMessage() to display the following for an sql error
    SQL error: SQLCODE: -551, SQLSTATE: 42501, SQLERRMC: auth-id ;operation;object-name
    The SQLERRMC only has the auth-id, operation and object-name. How do I build this error message without doing it manually (detect 551 and build the error string)?
    auth-id DOES NOT HAVE THE PRIVILEGE TO PERFORM OPERATION operation ON OBJECT object-name

    Write an abstract DataAccessException class for your data that wraps a java.sql.SQLException and subclass it for this particular database.Then have the concrete class do the work of checking the SQL error code and state and put out a nicer error message.
    That's what Rod Johnson recommends in his "Expert 1-On-1 J2EE".

Maybe you are looking for

  • Error while compile a form In R12

    Hi all, I am tryng to compile a Form in R12, But it is showing below error [applmgr@apps US]$ frmcmp_batch.sh module=XXDARXTWMAI.fmb userid=apps/apps@VIS Module_Type=FORM Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production) Forms 10.1 (Form Com

  • How can I connect to the database using the Oracle Remote Diagnostic Agent?

    Now I try to study RDA on Windows XP platform,when I run 'rda.cmd',there is a question 'Enter password for 'SYSTEM@'',what is the answer? Because I didn't know how to connect to database,there are many error messages - RDA-00510: SQL execution disabl

  • Can't start database 8.1.7.1 on Mandrake 8.0

    Hi all, I had some trouble getting the installer to work, but applied the patches listed on the Mandrake site (glibc 2.2). The installer worked fine until it tried to create the starter database. It got to 80% and hung. Trying to start the database m

  • X240 Projector Issue

    Hi Guys, X240 will not work correctly on any Mitsubishi Electric XD490U projector. I know this is one of the older projectors we have but I don't understand why it would be playing up. The X240's all work perfectly fine on all our other projectors ju

  • X800xt vga or 9800xt pro adc+dvi ?

    Hi Yesterday, I received a second hand X800XT that I plugged in my PowerMac (2x2GHz). First deception, it had a DVI and a VGA port, not a DVI+ADC as the 9600 I used to have until then. I worked a moment but never could get a DVI signal. I however got