Oracle XMLType deleteXML problem
Hi,
I am new using oracle xmltype, got a idiot problem when call deleteXML with xpath. I am hoping I can get help here. Code below describes how I did and what is the problem/
BTW, My oracle is
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
Thanks in advance.
Zhuang Zuo
software developer
[email protected]
===================================
-- step 1. create a table
create table XML_TABLE
uname varchar2(50),
xml_col xmltype
-- step 2. insert data
insert into xml_table
(uname, xml_col)
values (
'z1',
xmltype
<root>
<nodes>
<node attr="a" />
<node attr="b" />
</nodes>
</root>
-- step3. query data
select uname,
extract (xml_col, '/root') root,
extract (xml_col, '/root/nodes') nodes,
extract (xml_col, '/root/nodes/node') node,
extract (xml_col, '/root/nodes/node[@attr="a"]') node_a,
extract (xml_col, '/root/nodes/node[@attr="b"]') node_b
from xml_table
all above return data as expected.
-- "root" returns:
<root>
<nodes>
<node attr="a"/>
<node attr="b"/>
</nodes>
</root>
-- "nodes" returns:
<nodes>
<node attr="a"/>
<node attr="b"/>
</nodes>
-- "node" returns:
<node attr="a"/>
<node attr="b"/>
-- "node_a" returns:
<node attr="a"/>
-- "node_b" returns:
<node attr="b"/>
-- no problem so far
-- step 4. delete a node with xpath using update/deleteXML
update xml_table
set xml_col = deleteXML (xml_col, '/root/nodes/node[@attr="a"]')
where existsnode (xml_col, '/root/nodes/node[@attr="a"]') = 1
problem occurs here, showing in next step
-- step5. repeat step3, query data using same sql in step 3
--"root" returns data as expected:
<root>
<nodes>
<node attr="b"/>
</nodes>
</root>
--"nodes" returns data as expected:
<nodes>
<node attr="b"/>
</nodes>
--"node_a" return NO data, as expected
--however, "node", "node_b" return NO data either, even though "root" and "nodes" return correct data
why?
PLEASE HELP ....
Edited by: user10382724 on Apr 17, 2012 8:54 AM
Hi,
Looks like there's an issue with XML updating functions used over binary XMLType.
This thread describes a similar problem : {thread:id=1091574}
A possible workaround is the NO_XML_QUERY_REWRITE hint, but it's probably worth submitting the problem to Oracle Support anyway.
Similar Messages
-
hi
can any body help me?
i have installed oracle developer 10g with oracle 8i database
when i run any form including the test.fmx
it always ask to install JInitiator although it has been installed (appears in the control panel and in c:\program file\oracle folder)
another problem appears after completing the installtion of JInitiator
the browser views the HTML tags of the form not execute it
so does any body have any idea???From the Windows Start menu, choose Run, type regedit, and click OK.
Expand the registry nodes HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE.
Make a backup copy of this key by right-clicking it and selecting Export from the context menu.
Select one of the HOME nodes beneath the ORACLE node (the one for Developer Suite). Ensure that you have opened the correct node by verifying that the key FORMS90_PATH exists in that node.
From the Registry Editor menu, select Edit > New > String Value. Type in the name FORMS90_HIDE_OBR_PARAMS.
Double-click FORMS90_HIDE_OBR_PARAMS and in the Value data field enter false, then click OK.
Close the registry editor.
Now when you run a form from Forms Builder, it should show parameters, including userid, in the URL, but it should run fine.
15. Set the path for Forms Builder to locate icons:
a) Double-click the UI_ICON key to open it for editing.
b) For the value data, append the path to the .gif file that you will use for the
button icon, which is the \icons subdirectory of your lab directory. Separate this
path from the remainder of the string with a semicolon; for example:
;e:\labs\lab\icons, then click OK. -
Oracle Report Printing problem
Dear All,
i m using below code on button in oracle forms 6i problem is that when i click on button report should be print
on network printer but it's print blank page however network printer is not my default printer when i set default printer
to this network printer its working fine.
and also its working when i set mode=character and network printer is not default printer but when i set mode=default or bitmap and notwork printer is not default then its print blank page.
DECLARE
p_list PARAMLIST;
BEGIN
p_list := get_parameter_list('importdata');
IF NOT Id_Null(p_list) THEN
Destroy_Parameter_List('importdata');
END IF;
p_list := Create_Parameter_List('importdata');
Add_Parameter(p_list,'P_IGM_NO',TEXT_PARAMETER,'10117/11');
Add_Parameter(p_list,'P_INDEX_NO',TEXT_PARAMETER,'498');
Add_Parameter(p_list,'P_CHR_NO',TEXT_PARAMETER,'CL-APL100/011');
Add_Parameter(p_list,'P_CONTAINER_NO',TEXT_PARAMETER,'APHU6305929');
Add_Parameter(p_list,'P_USER',TEXT_PARAMETER,'ALI');
Add_Parameter(p_list,'P_BAL_QTY',TEXT_PARAMETER,0);
Add_Parameter(p_list, 'PARAMFORM', TEXT_PARAMETER, 'NO');
Add_Parameter(p_list,'DESTYPE',TEXT_PARAMETER,'PRINTER');
Add_Parameter(p_list,'DESNAME',TEXT_PARAMETER,'\\192.168.1.67\epson');
RUN_PRODUCT(REPORTS,'\\ORASERV\Atlas6I\Import\System\Reports\abc.rep',
SYNCHRONOUS,
RUNTIME,
FILESYSTEM,
p_list,
NULL);
END;i have made one oracle 6i reports. its is quite wide.when i run the report it shrink into too small font.
and i increse it font size it by pressing + button on menu bar it looks okay.
>
The + button only causes a zoom in on the screen. It is not affecting the actual layout.
>
but the problem is that when i take print out of it ,it's printout comes in its intial format(in small font) evenif i choose different type of paper size or different orientation . it's printout is coming in too small font.
pl tell me how to overcome this problem>
The report rendering engine tries to fit the report page into the physical page size. This results in shrinking of font size,etc.
To fix
a) reduce the content on the report to something reasonable for printing.(Std paper sizes and orientation)
b) change the page size selection. Of course, you will need a printer and paper of the size you set.
Cheers, -
Oracle 10G connection problem
I launch my db with the following script:
su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/dbstart"
su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl start"
Here is the output:
SQL*Plus: Release 10.1.0.2.0 - Production on Fri Feb 27 22:17:51 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> Connected to an idle instance.
SQL> ORACLE instance started.
Total System Global Area 188743680 bytes
Fixed Size 778036 bytes
Variable Size 162537676 bytes
Database Buffers 25165824 bytes
Redo Buffers 262144 bytes
Database mounted.
Database opened.
SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
Database "orcl" warm started.
LSNRCTL for Linux: Version 10.1.0.2.0 - Production on 27-FEB-2004 22:17:59
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.1.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.1.0.2.0 - Production
System parameter file is /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
xe)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.1.0.2.0 - Production
Start Date 27-FEB-2004 22:17:59
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
xe)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
But when i try to connect with sqlplus:
oracle@xavan_fixe oracle $ sqlplus
SQL*Plus: Release 10.1.0.2.0 - Production on Ven. Févr. 27 22:19:32 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Enter user-name: scott
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directoryWhen you go to get connection you have to set the ORACLE_SID enviroment variable or use the service name in the string to get connection.
Joel Pérez -
How to map CMP field to an Oracle XMLType?
How can we map a WLS700 EJB2.0 CMP field to an Oracle XMLType?
Is there some special configuration needed in the deployment descriptors?
Thanx,
NicoHi
System will prospose the existing object..just check if that the relavent and meaning ful object....if not create your own infoobject and map it...its not mandatory to use the proposed one..as its not the standard one..
Create a new object and include in the infosource and then map in transfer rule
Regards
Ram
Message was edited by: Ram -
When I try to use the Oracle XMLType class out of their XDB package in the following
manner:
// Convert the inventory details XML string into XMLType
XMLType t_inventoryDetails = XMLType.createXML(t_connection, aNewProduct.getInventoryDetails());
I get the following error:
SEVERE: A Throwable Exception occured:: [weblogic.jdbc.wrapper.PoolConnection_or
acle_jdbc_driver_OracleConnection]
java.lang.ClassCastException: weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_d
river_OracleConnection
at oracle.jdbc.driver.OracleConnection.unwrapCompletely(Loracle.jdbc.Ora
cleConnection;)Loracle.jdbc.driver.OracleConnection;(OracleConnection.java:5090)
at oracle.jdbc.driver.OracleConnection.physicalConnectionWithin(Ljava.sq
l.Connection;)Loracle.jdbc.internal.OracleConnection;(OracleConnection.java:5141
at oracle.sql.TypeDescriptor.setPhysicalConnectionOf(Ljava.sql.Connectio
n;)V(TypeDescriptor.java:494)
at oracle.sql.TypeDescriptor.<init>(Loracle.sql.SQLName;Ljava.sql.Connec
tion;)V(TypeDescriptor.java:147)
at oracle.sql.OpaqueDescriptor.<init>(Loracle.sql.SQLName;Ljava.sql.Conn
ection;)V(OpaqueDescriptor.java:151)
at oracle.sql.OpaqueDescriptor.createDescriptor(Ljava.lang.String;Ljava.
sql.Connection;)Loracle.sql.OpaqueDescriptor;(OpaqueDescriptor.java:86)
at oracle.xdb.XMLType.<init>(Ljava.sql.Connection;Ljava.lang.String;)V(X
MLType.java:496)
at oracle.xdb.XMLType.createXML(Ljava.sql.Connection;Ljava.lang.String;)
Loracle.xdb.XMLType;(XMLType.java:593)
My assumption is that XMLType does not like the wrapper WebLogic implemented in
8.1. Has anyone used the Oracle XMLType successfully from within WebLogic? If
so, how do you convert the XML document into the Object class?
Perry HoekstraHi Joe,
Both these properties are configured:
Test Reserved Connections
Test Released Connections
Another point which I should have mentioned earlier is that we use OCI drivers. Are there any configuration while making the connection pool or in the tnsnames.ora (failover option) that we need to additionally select in order to make this work?
What would also be helpful is if you can redirect me to any documentation on this type of scenario.
Appreciate your help.
Thanks,
VD -
Hi!
I am currently trying to use Oracles XMLType with EJBs. Preferrably I would like to use CMP. Although the documentation http://e-docs.bea.com/wls/docs81/jdbc_drivers/oracle.html#1067224
says that XMLType is mapped to a CLOB, I get an error
ORA-00932: inconsistent datatypes: expected NUMBER got CLOB
when trying to update it. (I marked the bean as dbms-column-type OracleClob). If I do not mark it as OracleClob, I get an SQLException invalid type sqlType=2007 .
Is there another way to make XMLType work?
Thanks so much,
Hans-Peter Stoerr
PS: We are using Bea Weblogic Portal 8.1, but might migrate to 9. The driver is the oracle thin driver with oracle 9.2.Hi Brian,
Im not sure whats the issue with using DB Triggers. You could possibly have another
column(s) for created_by and updated_by and still use triggeres for the create_time
and update_time.
Inheritance would make it better if u have multiple tables which need the same
behaviour but the above solution maybe the easy one.
-Raj
"Brian Preston" <[email protected]> wrote:
>
Our DB has 4 'audit' columns : create_date, created_by, last_update_date,
last_updated_by.
We're currently not using ejbs, just J2SE, servlets & jsps, but I'm looking
into
using ejbs.
Is there any kind of design pattern for this? I've been searching the
newsgroups
about this. I can't use DB triggers because our application connects
to the DB
as the same user, regardless of the application user.
I'm trying to use inheritance as well, have a 'base' object that has
these audit
columns and have all the ejbs extend that base class.
Another issue is how would I trigger setting these columns? Do I have
to store
all the column values in ejbLoad and compare them in ejbStore? I've also
read
a little about the javax.ejb.SessionSynchronization interface, can I
use that?
Thanks,
Brian Preston -
How to migrate Sybase 12 TEXT column to Oracle XMLType column
The Migration Workbench does not appear to support mapping a Sybase TEXT column to an Oracle XMLType column. What is the best way to workaround this limitation?
- RonCLOB?
-
Oracle 11g Installation problems
Hi there, Im a new Oracle's user, and I am trying to install Oracle 11g in my computer I have Windows Vista SP2 32bits, but I have a lot of problems.
The program send me various messages of Warnings and Errors so I couldnt finished the complete instalation and configuration.
Somebody can help me with some of this errors.
This are the errors: (In Spanish)
ORA-31011: Fallo en el analisis de XML
ORA-19202: Se ha producido un error en el procesamiento
ORA-06512: en "SYS.XMLTYPE", linea 272
ORA-06512: en "XDB.XDB_CONFIGURATION", linea 69
ORA-06512: en "XDB.DBMX_XDB", linea 209
ORA-06512: en "XDB.XDB_CONFIGURATION", linea 92
La configuración de Enterprise Manager ha fallado debido al
siguiente error:
Error al iniciar Database Control
Consulte el archivo log en C:\oraclecfgtoollogsdbca\orc\emConfig.log para obtener mas información
Posteriormente, puede reintentar la configuración de esta base de datos con
Enterprise Manager ejecutando manualmente el archivo de comandos C:\oracle\product\11.1.0\db_1\bin\emca
nstaller ha instalado productos en el grupo de componentes "Oracle Windows Interfaces".
Para soportar un desarrollo perfecto en Microsoft Visual Studio con la base de datos Oracle,
Oracle recomienda descargar e instalar la última versión de
"Oracle Developer Tools for Visual Studio .NET" de Oracle Technology Network.
I will aprecciatte your help.
Thank you!user12191943 wrote:
I have Windows Vista SP2 32bitsPlease specifiy WHICH edition of Vista. Oracle does have many problems with Vista Home. -
XMLType - client problem on reading XML?
When I execute this function in my 9.2.0.7.0 database:
create or replace function get_study_xml (p_study_id in number)
return xmltype is xml_doc xmltype;
begin
execute immediate '
select xmlelement(
...lots of code...
from XML_STUDY_VIEW where STUDY_ID = '||p_study_id||'' into xml_doc;
return xml_doc;
end get_study_xml;I get the following error with a 9.2.0.1.0 client:
ORA-03118: two-task coroutine has invalid stateAnd the following error with a 9.2.0.3.0 client:
ORA-21500: internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]And finally the following error with a 9.2.0.7.0 client:
ORA-24909: call in progress. Current operation cancelledI've done lots of investigation, and so far I've deduced the following:
* It works fine on a PC with a 10g client
* The function returns the XMLType successfully (it seems)
* On all clients, the error occurs not on returning the XMLType, but on trying to read the XML within.
I am trying to do this via Delphi components from Allround Automations (makers of PL/SQL Developer). I don't know how to output the XML to DBMS Output, so could do with some help there. If I could test it without using Allround's components, I could isolate the problem.
I suspect the problem is not with the components though but with the OCI/client, because the same components work fine on 10g client.
If someone could help give some suggestions, including how I could try to output the XML in SQL*Plus, it would be greatly appreciated.
Best regards,
Gary
I don't know if it's relevent, but it may be worth noting that the SQL statement I've commented out is fairly massive, but even if I query data that produces a tiny XML object (i.e. hardly any data), it still fails. The full function is below, so you can see what I'm doing:
create or replace function get_study_xml (p_study_id in number)
return xmltype is xml_doc xmltype;
begin
execute immediate '
select xmlelement(
"STUDY",
xmlforest(STUDY_ID, '||columnsforest('XML_STUDY_VIEW')||')
select xmlagg(
xmlelement(
"STUDYHEADING",
xmlforest('||columnsforest('XML_STUDYHEADING_VIEW')||')
from XML_STUDYHEADING_VIEW where STUDY_ID = '||p_study_id||'
select xmlelement(
"TESTSUBSTANCE",
xmlforest('||columnsforest('XML_TESTSUBSTANCE_VIEW')||')
from XML_TESTSUBSTANCE_VIEW where STUDY_ID = '||p_study_id||'
select xmlagg(
xmlelement(
"STRAIN",
xmlforest('||columnsforest('XML_STRAIN_VIEW')||')
from XML_STRAIN_VIEW where STUDY_ID = '||p_study_id||'
select xmlagg(
xmlelement(
"POSITIVECONTROL",
xmlforest('||columnsforest('XML_POSCTRL_VIEW')||')
from XML_POSCTRL_VIEW where STUDY_ID = '||p_study_id||'
select xmlagg(
xmlelement(
"SOLVENT",
xmlforest('||columnsforest('XML_SOLVENT_VIEW')||')
from XML_SOLVENT_VIEW where STUDY_ID = '||p_study_id||'
select xmlagg(
xmlelement(
"POSTFIX",
xmlforest('||columnsforest('XML_POSTFIX_VIEW')||')
from XML_POSTFIX_VIEW where STUDY_ID = '||p_study_id||'
select xmlagg(
xmlelement(
"EXPERIMENTFOLDER",
xmlforest(FOLDER_ID,'||columnsforest('XML_EXPTFOLDER_VIEW')||'),(
select xmlagg(
xmlelement(
"EXPERIMENT",
xmlforest(EXPT_ID,'||columnsforest('XML_EXPERIMENT_VIEW')||'),(
select xmlagg(
xmlelement(
"EXPERIMENTHEADING",
xmlforest('||columnsforest('XML_EXPTHEADING_VIEW')||')
from XML_EXPTHEADING_VIEW h where h.EXPT_ID = e.EXPT_ID
select xmlagg(
xmlelement(
"EXPERIMENTSTRAIN",
xmlforest('||columnsforest('XML_EXPTSTRAIN_VIEW')||'),(
select xmlagg(
xmlelement(
"PLATE",
xmlforest('||columnsforest('XML_EXPTPLATE_VIEW')||'),(
select xmlagg(
xmlelement("POSTFIX",CODE_ID)
from XML_PLATEPOSTFIX_VIEW x where x.PLATE_ID = p.PLATE_ID
and x.FOLDER_ID = f.FOLDER_ID
from XML_EXPTPLATE_VIEW p where p.EXPT_ID = e.EXPT_ID
and p.STRAIN_CODE = s.STRAIN_CODE
and p.PLATE_TYPE = 0
from XML_EXPTSTRAIN_VIEW s where s.EXPT_ID = e.EXPT_ID
from XML_EXPERIMENT_VIEW e where e.STUDY_ID = '||p_study_id||'
and f.folder_id = e.folder_id
select xmlagg(
xmlelement(
"CONTROL",
xmlforest('||columnsforest('XML_CONTROL_VIEW')||'),(
select xmlagg(
xmlelement(
"CONTROLPLATE",
xmlforest('||columnsforest('XML_CONTROLPLATE_VIEW')||'),(
select xmlagg(
xmlelement("POSTFIX",CODE_ID)
from XML_PLATEPOSTFIX_VIEW x where x.PLATE_ID = p.PLATE_ID
and x.FOLDER_ID = f.FOLDER_ID
from XML_CONTROLPLATE_VIEW p where p.CONTROL_ID = c.CONTROL_ID
and p.PLATE_TYPE > 0
from XML_CONTROL_VIEW c where c.STUDY_ID = '||p_study_id||'
and f.folder_id = c.folder_id
from XML_EXPTFOLDER_VIEW f where f.STUDY_ID = '||p_study_id||'
from XML_STUDY_VIEW where STUDY_ID = '||p_study_id||'' into xml_doc;
return xml_doc;
end get_study_xml;This may be related to bug 3396162 but I'm not sure I fully understand the implications of this bug, or the cirumstances under which it can arise.
Getting back to the basic problem. Can you reproduce the problem with by calling your PL/SQL from a 9.2.0.7.0 SQL*PLUS.
I'm not familar with Delphi. Is it Java or 'C' based. Is it using an OCI connection. If so does it bind to the latest Oracle Installation or does it embed the Oracle OCI components. If the later do you know which version of OCI is embedded ?
WRT to dumping to DBMS_OUTPUT the following is a somewhat of a work in progress...
create or replace package XDB_XML_OUTPUT_10200
AUTHID CURRENT_USER
as
procedure put_xml(myXML XMLType);
procedure processNode(INDENT VARCHAR2, NODE DBMS_XMLDOM.DOMNODE);
end;
create or replace package body XDB_XML_OUTPUT_10200
as
currentLine CLOB;
wipBuffer CLOB;
printBuffer CLOB;
currentNode pls_integer;
elementClosed boolean;
procedure outputBuffer(buffer in out nocopy CLOB)
as
begin
dbms_output.put_line(buffer);
dbms_lob.trim(buffer,0);
end;
procedure putNode(INDENT varchar2, NODE DBMS_XMLDOM.DOMNODE)
as
byteCount pls_integer;
begin
if (currentNode = DBMS_XMLDOM.ELEMENT_NODE) then
outputBuffer(currentLine);
end if;
byteCount := length(INDENT);
dbms_lob.writeAppend(currentLine,byteCount,INDENT);
dbms_lob.trim(printBuffer,0);
dbms_xmldom.writeToCLOB(node,printBuffer);
dbms_lob.append(currentLine,printBuffer);
end;
procedure putAttribute(NODE DBMS_XMLDOM.DOMNODE)
as
buffer varchar2(32767);
byteCount pls_integer;
begin
dbms_lob.trim(printBuffer,0);
dbms_xmldom.writeToCLOB(node,printBuffer);
dbms_lob.trim(wipBuffer,0);
buffer := ' ' || DBMS_XMLDOM.GETNODENAME(NODE) || '="';
byteCount := length(buffer);
dbms_lob.writeAppend(wipBuffer,byteCount,buffer);
dbms_lob.append(wipBuffer,printBuffer);
byteCount := 1;
dbms_lob.writeAppend(wipBuffer,byteCount,'"');
dbms_lob.append(currentLine,wipBuffer);
end;
procedure putAttributes(ATTRS DBMS_XMLDOM.DOMNAMEDNODEMAP)
as
ATTRNODE DBMS_XMLDOM.DOMNODE;
begin
for i in 0..DBMS_XMLDOM.GETLENGTH(ATTRS)-1 loop
ATTRNODE := DBMS_XMLDOM.ITEM(ATTRS,I);
putAttribute(ATTRNODE);
end loop;
end;
procedure printText(NODE DBMS_XMLDOM.DOMNODE)
as
byteCount pls_integer;
buffer varchar2(1);
begin
buffer := '>';
byteCount := length(buffer);
dbms_lob.writeAppend(currentLine,byteCount,buffer);
dbms_lob.trim(printBuffer,0);
dbms_xmldom.writeToCLOB(NODE,printBuffer);
dbms_lob.append(currentLine,printBuffer);
currentNode := DBMS_XMLDOM.TEXT_NODE;
end;
procedure startElement(INDENT varchar2, NODE DBMS_XMLDOM.DOMNODE, ATTRS DBMS_XMLDOM.DOMNAMEDNODEMAP)
as
byteCount pls_integer;
buffer varchar2(32767);
begin
if (not elementClosed) then
buffer := '>';
byteCount := 1;
dbms_lob.writeAppend(currentLine,byteCount,buffer);
end if;
elementClosed := false;
-- Start a new Element : Flush the buffer
outputBuffer(currentLine);
dbms_lob.trim(wipBuffer,0);
buffer := INDENT || '<' || DBMS_XMLDOM.GETNODENAME(NODE);
byteCount := length(buffer);
dbms_lob.writeAppend(currentLine,byteCount,buffer);
putAttributes(ATTRS);
currentNode := DBMS_XMLDOM.ELEMENT_NODE;
end;
procedure endElement(INDENT varchar2, NODE DBMS_XMLDOM.DOMNODE)
as
byteCount pls_integer;
buffer varchar2(32767);
begin
if (elementClosed) then
outputBuffer(currentLine);
buffer := INDENT || '</' || DBMS_XMLDOM.GETNODENAME(NODE) || '>';
byteCount := length(buffer);
dbms_lob.writeAppend(currentline,byteCount,buffer);
else
if (currentNode = DBMS_XMLDOM.ELEMENT_NODE) then
buffer := '/>';
byteCount := length(buffer);
dbms_lob.writeAppend(currentline,byteCount,buffer);
else
buffer := '</' || DBMS_XMLDOM.GETNODENAME(NODE) || '>';
byteCount := length(buffer);
dbms_lob.writeAppend(currentline,byteCount,buffer);
end if;
end if;
currentNode := DBMS_XMLDOM.ELEMENT_NODE;
elementClosed := true;
end;
procedure processChildren(INDENT varchar2, NODE DBMS_XMLDOM.DOMNODE)
as
CHILDREN DBMS_XMLDOM.DOMNODELIST;
CHILD DBMS_XMLDOM.DOMNODE;
begin
CHILDREN := DBMS_XMLDOM.GETCHILDNODES(NODE);
for i in 0..DBMS_XMLDOM.GETLENGTH(CHILDREN)-1 loop
CHILD := DBMS_XMLDOM.ITEM(CHILDREN,I);
processNode(INDENT , CHILD);
end loop;
end;
procedure processNode(INDENT VARCHAR2, NODE DBMS_XMLDOM.DOMNODE)
as
newIndent varchar2(256) := INDENT || ' ';
begin
-- ENTITY_REFERENCE_NODE
-- ENTITY_NODE
-- DOCUMENT_TYPE_NODE
-- DOCUMENT_FRAGMENT_NODE
-- NOTATION_NODE
if (DBMS_XMLDOM.GETNODETYPE(NODE) = DBMS_XMLDOM.COMMENT_NODE) then
putNode(INDENT,NODE);
end if;
if (DBMS_XMLDOM.GETNODETYPE(NODE) = DBMS_XMLDOM.PROCESSING_INSTRUCTION_NODE ) then
putNode(INDENT,NODE);
end if;
if (DBMS_XMLDOM.GETNODETYPE(NODE) = DBMS_XMLDOM.CDATA_SECTION_NODE) then
putNode(INDENT,NODE);
end if;
if (DBMS_XMLDOM.GETNODETYPE(NODE) = DBMS_XMLDOM.TEXT_NODE) then
printText(NODE);
end if;
if (DBMS_XMLDOM.GETNODETYPE(NODE) = DBMS_XMLDOM.ATTRIBUTE_NODE) then
putAttribute(NODE);
end if;
if (DBMS_XMLDOM.GETNODETYPE(NODE) = DBMS_XMLDOM.ELEMENT_NODE) then
startElement(INDENT,NODE,DBMS_XMLDOM.GETATTRIBUTES(NODE));
processChildren(newIndent, NODE);
endElement(INDENT,NODE);
end if;
if (DBMS_XMLDOM.GETNODETYPE(NODE) = DBMS_XMLDOM.DOCUMENT_NODE) then
processChildren(INDENT,NODE);
end if;
end;
procedure put_xml(myXML XMLType)
as
doc DBMS_XMLDOM.DOMDOCUMENT;
begin
DBMS_LOB.createTemporary(currentLine,true,DBMS_LOB.SESSION);
DBMS_LOB.createTemporary(wipBuffer,true,DBMS_LOB.SESSION);
DBMS_LOB.createTemporary(printBuffer,true,DBMS_LOB.SESSION);
doc := DBMS_XMLDOM.NEWDOMDOCUMENT(myXML);
processNode('#',DBMS_XMLDOM.MAKENODE(doc));
outputBuffer(currentLine);
DBMS_LOB.freeTemporary(printBuffer);
DBMS_LOB.freeTemporary(wipBuffer);
DBMS_LOB.freeTemporary(currentLIne);
end;
end;
/ -
Writing Session EJB or BMP access Oracle XMLType
Hi,
Has anyone sucessfully implemented EJBs with Oracle 9i new feature, XMLType
object? The one criteria is to allow large XML document to be inserted or
retreived. Large document means total characters more than 4000.
Thanks.
Danny.All,
Forgot to mention that it's already configured using Oracle thin driver.
As I mentioned before, the rmi exception is probably due to the dataLookup
since it's not getting the connection directly from Oracle. Instead, it's
calling WL's dataSource.
How to figure out the casting problem??
Thanks in advance.
Danny.
"Danny" <[email protected]> wrote in message
news:[email protected]...
Thanks.
After moving the classes12.zip before the weblogic.jar, I encounteranother
problem.
java.lang.ClassCastException: weblogic.jdbc.rmi.SerialConnection
at
oracle.jdbc.driver.OracleConnection.physicalConnectionWithin(OracleConnectio
n.java:5043)
at oracle.sql.CLOB.createTemporary(CLOB.java:960)
at ... ...DBConnect.getCLOB(DBConnect.java:120)
Any idea?
Regards,
Danny.
"Ryan LeCompte" <[email protected]> wrote in message
news:[email protected]...
Hello Danny,
Yes, it appears so. Have you tried moving your classes12.zip (from yourOracle
installation) before the weblogic.jar in the classpath? This should pickup the
Oracle API before the WebLogic API and thus should work. Let us know ifyou have
any further problems.
Best regards,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
"Danny" <[email protected]> wrote:
Hi Ryan,
Please find attached logging message.
I suspect it is trying to use Weblogic's CLOB instead of Oracle's.
Thanks.
Danny.
"Ryan LeCompte" <[email protected]> wrote in message
news:[email protected]...
Hello Danny,
Could you paste any exceptions or describe in more detail what
"failed"
means
in this case? More information would be more helpful.
Best regards,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
"Danny" <[email protected]> wrote:
Thanks Ryan,
The example shows how to use JDBC connection directly. Another
option
is to
use Weblogic's TX connection pool. In fact, I've tried this butfailed.
The idea of using Weblogic's connection pool is to have Weblogichandle
or
the pooling and transction since the rest of app are calling it.Let
me
know if you have tried it with no error.
Cheers,
Danny.
"Ryan LeCompte" <[email protected]> wrote in message
news:[email protected]...
Hey Danny!
To see how to access Oracle's XMLType via JDBC (which you'll be
utilizing
in your
BMPs), refer to the following code example:
http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/9i_jdbc/XMLType
S
ample/XMLTypeSample.java.html
Best regards,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
"Danny" <[email protected]> wrote:
Hi,
Has anyone sucessfully implemented EJBs with Oracle 9i new
feature,
XMLType
object? The one criteria is to allow large XML document to be
inserted
or
retreived. Large document means total characters more than 4000.
Thanks.
Danny.
begin 666 CLOB.log
M:F%V87@N96IB+E1R86YS86-T:6]N4F]L;&5D8F%C:TQO8V%L17AC97!T:6]N
M.B!%2D(@17AC97!T:6]N.CH@:F%V82YL86YG+DYO4W5C:$UE=&AO9$5R<F]R
M#0HN+BX@+BXN($1"0V]N;F5C="YG971#3$]"*$1"0V]N;F5C="YJ879A.C$R
M,"D-"@T*#0HO+RHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
M*BHJ*BHJ*BHJ*BHJ*@T*:6UP;W)T(&IA=F$N:6\N5W)I=&5R.PT*:6UP;W)T
M(&IA=F$N:6\N4F5A9&5R.PT*:6UP;W)T(&IA=F$N=71I;"XJ.PT*:6UP;W)T
M(&IA=F$N<W%L+E-13$5X8V5P=&EO;CL-"FEM<&]R="!J879A+G-Q;"Y"871C
M:%5P9&%T945X8V5P=&EO;CL-"FEM<&]R="!J879A+G-Q;"Y297-U;'13970[
M#0II;7!O<G0@:F%V82YS<6PN4F5S=6QT4V5T365T841A=&$[#0II;7!O<G0@
M:F%V82YS<6PN0V]N;F5C=&EO;CL-"FEM<&]R="!J879A+G-Q;"Y3=&%T96UE
M;G0[#0II;7!O<G0@:F%V82YS<6PN4')E<&%R9613=&%T96UE;G0[#0II;7!O
M<G0@:F%V87@N<W%L+D1A=&%3;W5R8V4[#0II;7!O<G0@;W)A8VQE+G-Q;"Y#
M3$]".PT*:6UP;W)T(&]R86-L92YJ9&)C+D]R86-L95)E<W5L=%-E=#L-"FEM
M<&]R="!J879A>"YN86UI;F<N*CL-"@T*<'5B;&EC(&-L87-S($1"0V]N;F5C
M="![#0H@('!R:79A=&4@<W1A=&EC(&9I;F%L(%-T<FEN9R!D<TYA;64@/2 B
M:61X1&%T85-O=7)C92([#0H-"B @<'5B;&EC(%-T<FEN9R!E>&5C=71E6$U,
M475E<GDH4W1R:6YG('%U97)Y+"!3=')I;F<@<W1R:6YG*2!T:')O=W,@17AC
M97!T:6]N>PT*(" @($-,3T(@8VQO8B ](&YU;&P[#0H-"B @(" O+R!'971S
M('1H92!#;VYN96-T:6]N#0H@(" @0V]N;F5C=&EO;B!C;VYN(#T@*$-O;FYE
M8W1I;VXI(&=E=$-O;FYE8W1I;VXH*3L-"B @(" O+R!);FET:6%L:7IE('-T
M871E;65N="!/8FIE8W0-"B @("!0<F5P87)E9%-T871E;65N="!P<W1M=" ]
M(&YU;&P[#0H@(" @+R\@26YI=&EA;&EZ92!297-U;'13970-"B @("!297-U
M;'13970@<G,@/2!N=6QL.PT*(" @($]R86-L95)E<W5L=%-E="!O<G,@/2!N
M=6QL.PT*#0H@(" @4F5A9&5R(')E861E<CL-"@T*(" @("\O($YO(&]F(&)Y
M=&5S(')E860@96%C:"!T<FEP('1O(&1A=&%B87-E#0H@(" @:6YT(&)Y=&5S
M<F5A9#TP.PT*(" @("\O($)U9F9E<B!T;R!H;VQD('1H92!#3$]"(&1A=&$-
M"B @("!3=')I;F="=69F97(@8VQO8D1A=&$@/2!N97<@4W1R:6YG0G5F9F5R
M*"D[#0H-"B @("!T<GE[#0H@(" @(" O+R!'970@=&AE('-T871E;65N="!/
M8FIE8W0-"B @(" @('!S=&UT(#T@8V]N;BYP<F5P87)E4W1A=&5M96YT*'%U
M97)Y*3L-"@T*+R\@(" @("!I9B H<W1R:6YG+G-T87)T<U=I=&@H(CP_>&UL
M('9E<G-I;VX]7"(Q+C!<(C\^(BDI>PT*(" @(" @+R\@0W)E871E('1H92!#
M3$]"(&%N<R!S970@:70@:6X@=&AE(%!R97!A<F5D4W1A=&5M96YT+@T*(" @
M(" @+R\@5&AI<R!I<R!D;VYE(&%S('1H92!834P@8V%N(&)E(&UO<F4@=&AA
M;B T,# P(&-H87)A8W1E<G,-"B @(" @("\O('=H:6-H(&ES(&$@;&EM:70@
M9F]R('1H92!1=65R>0T*(" @(" @("!C;&]B(#T@=&AI<RYG971#3$]"*'-T
M<FEN9RP@8V]N;BD[#0H@(" @(" @('!S=&UT+G-E=$]B:F5C="@Q+"!C;&]B
M*3L-"B\O(" @(" @?65L<V5[#0H@(" @(" @("\O(%-E=',@=&AE('!A<F%M
M971E<B!T;R!T:&4@<')E<&%R9613=&%T96UE;G0-"B\O(" @(" @("!P<W1M
M="YS971/8FIE8W0H,2P@<W1R:6YG*3L-"@T*+R\@(" @("!]#0H-"B @(" @
M("\O($5X96-U=&4@=&AE('%U97)Y#0H@(" @("!B;V]L96%N(&ES4F5S=6QT
M4V5T(#T@<'-T;[email protected]*#0H@(" @("!I9B H:7-297-U;'13
M970I>PT*(" @(" @(" O+R!4:&ES(&UE86YS('1H870@82!297-U;'13970@
M:&%S(&)E96X@<F5T<FEE=F5D(&9O<B!T:&ES('%U97)Y#0H@(" @(" @(')S
M(#T@<'-T;70N9V5T4F5S=6QT4V5T*"D[#0H@(" @("!]#0H-"B @(" @("\O
M($EN:71I86QI>F5S('1H92!/<F%C;&4@4F5S=6QT4V5T+@T*(" @(" @;W)S
M(#T@*$]R86-L95)E<W5L=%-E="D@<G,[#0H-"B @(" @('=H:6QE*&]R<RYN
M97AT*"DI>PT*(" @(" @(" O+R!'971S('1H92!(5$U,(')E='5R;F5D(&EN
M(&$@0TQ/0@T*(" @(" @("!C;&]B(#T@;W)S+F=E=$-,3T(H,2D[#0H@(" @
M("!]#0H-"B @(" @("\O($]P96X@=&AE('-T<F5A;2!T;R!R96%D(&1A=&$-
M"B @(" @(')E861E<B ](&-L;V(N9V5T0VAA<F%C=&5R4W1R96%M*"D[#0H-
M"B @(" @("\O("!"=69F97(@<VEZ92!I<R!F:7AE9"!U<VEN9R!T:&4@9V5T
M0G5F9F5R4VEZ92@I(&UE=&AO9"!W:&EC:"!R971U<FYS#0H@(" @(" O+R @
M=&AE(&]P=&EM86P@8G5F9F5R('-I>F4@=&\@<F5A9"!D871A(&9R;VT@=&AE
M($Q/0@T*(" @(" @8VAA<EM=(&-H87)B=69F97(@/2!N97<@8VAA<EMC;&]B
M+F=E=$)U9F9E<E-I>F4H*5T[#0H-"B @(" @("\O($ME97 @<F5A9&EN9R!F
M<F]M('1H92!#3$]"(&%N9"!A<'!E;F0@:70@=&\@=&AE(%-T<FEN9T)U9F9E
M<B!T:6QL#0H@(" @(" O+R!T:&5R92!I<R!N;R!M;W)E('1O(')E860-"B @
M(" @('=H:6QE*"AB>71E<W)E860]<F5A9&5R+G)E860H8VAA<F)U9F9E<BDI
M(3T@+3$I#0H@(" @(" @(&-L;V)$871A+F%P<&5N9"AC:&%R8G5F9F5R+# L
M8GET97-R96%D*3L-"@T*(" @(" @+R\@0VQO<V4@=&AE(&EN<'5T('-T<F5A
M;0T*(" @(" @<F5A9&5R+F-L;W-E*"D[#0H-"B @(" @(')E='5R;B!C;&]B
M1&%T82YT;U-T<[email protected]*(" @('UC871C:"A344Q%>&-E<'1I;VX@<W%L
M97AP*7L-"B @(" @('-Q;&5X<"YP<FEN=%-T86-K5')A8V4H*3L-"B @(" @
M('1H<F]W(&YE=R!344Q%>&-E<'1I;VXH<W%L97AP+F=E=$UE<W-A9V4H*2D[
M#0H@(" @?0T*(" @(&-A=&-H*$5X8V5P=&EO;B!E>' I>PT*(" @(" @97AP
M+G!R:6YT4W1A8VM4<F%[email protected]*(" @(" @=&AR;W<@;F5W($5X8V5P=&EO
M;BAE>' N9V5T365S<V%G92@I*3L-"B @("!]#0H@(" @9FEN86QL>7L-"B @
M(" @('1R>7L-"B @(" @(" @9G)E94-,3T(H8VQO8BD[#0H@(" @(" @(&EF
M("AR<R A/2!N=6QL*7L-"B @(" @(" @("!R<RYC;&][email protected]*(" @(" @
M("!]#0H@(" @(" @(&EF("AO<G,@(3T@;G5L;"E[#0H@(" @(" @(" @;W)S
M+F-L;W-E*"D[#0H@(" @(" @('T-"B @(" @(" @:68@*'!S=&UT("$](&YU
M;&PI>PT*(" @(" @(" @('!S=&UT+F-L;W-E*"D[#0H@(" @(" @('T-"B @
M(" @(" @:68@*&-O;FX@(3T@;G5L;"E[#0H@(" @(" @(" @8V]N;BYC;&]S
[email protected]*(" @(" @("!]#0H@(" @("!](&-A=&-H*%-13$5X8V5P=&EO;B!S
M<6QE>' I>PT*(" @(" @(" @<W%L97AP+G!R:6YT4W1A8VM4<F%[email protected]*
M(" @(" @(" @=&AR;W<@;F5W(%-13$5X8V5P=&EO;BAS<6QE>' N9V5T365S
M<V%G92@I*3L-"B @(" @('T-"B @("!]#0H@('T-"B @<'5B;&EC($-,3T(@
M9V5T0TQ/0BA3=')I;F<@8VQO8D1A=&$L($-O;FYE8W1I;VX@8V]N;BD@=&AR
M;W=S(%-13$5X8V5P=&EO;GL-"B @("!#3$]"('1E;7!#;&]B(#T@;G5L;#L-
M"B @("!T<GE[#0H@(" @(" O+R!)9B!T:&4@=&5M<&]R87)Y($-,3T(@:&%S
M(&YO="!Y970@8F5E;B!C<F5A=&5D+"!C<F5A=&4@;F5W#0H@(" @("!T96UP
M0VQO8B ]($-,3T(N8W)E871E5&5M<&]R87)Y*&-O;FXL('1R=64L($-,3T(N
M1%52051)3TY?4T534TE/3BD[#0H@(" @(" O+R!/<&5N('1H92!T96UP;W)A
M<GD@0TQ/0B!I;B!R96%D=W)I=&4@;6]D92!T;R!E;F%B;&4@=W)I=&EN9PT*
M(" @(" @=&5M<$-L;V(N;W!E;BA#3$]"+DU/1$5?4D5!1%=2251%*3L-"B @
M(" @("\O($=E="!T:&4@;W5T<'5T('-T<F5A;2!T;R!W<FET90T*(" @(" @
M5W)I=&5R('1E;7!#;&]B5W)I=&5R(#T@=&5M<$-L;V(N9V5T0VAA<F%C=&5R
M3W5T<'5T4W1R96%M*"D[#0H@(" @(" O+R!7<FET92!T:&4@9&%T82!I;G1O
M('1H92!T96UP;W)A<GD@0TQ/0@T*(" @(" @=&5M<$-L;V)7<FET97(N=W)I
M=&4H8VQO8D1A=&$I.PT*(" @(" @+R\@1FQU<V@@86YD(&-L;W-E('1H92!S
M=')E86T-"B @(" @('1E;7!#;&]B5W)I=&5R+F9L=7-H*"D[#0H@(" @("!T
M96UP0VQO8E=R:71E<BYC;&][email protected]*(" @(" @+R\@0VQO<V4@=&AE('1E
M;7!O<F%R>2!#3$]"#0H@(" @("!T96UP0VQO8BYC;&][email protected]*(" @(" @
M<F5T=7)N('1E;7!#;&]B.PT*(" @('T@8V%T8V@H4U%,17AC97!T:6]N('-Q
M;&5X<"E[#0H@(" @("!F<F5E0TQ/0BAT96UP0VQO8BD[#0H@(" @("!S<6QE
M>' N<')I;G13=&%C:U1R86-E*"D[#0H@(" @("!T:')O=R!N97<@4U%,17AC
M97!T:6]N*'-Q;&5X<"YG971-97-S86=E*"DI.PT*(" @('T-"B @("!C871C
M:"A%>&-E<'1I;VX@97AP*7L-"B @(" @(&9R965#3$]"*'1E;7!#;&]B*3L-
M"B @(" @(&5X<"YP<FEN=%-T86-K5')A8V4H*3L-"B @(" @('1H<F]W(&YE
M=R!344Q%>&-E<'1I;VXH97AP+F=E=$UE<W-A9V4H*2D[#0H@(" @?0T*("!]
M#0H@('!R:79A=&4@=F]I9"!F<F5E0TQ/0BA#3$]"(&-L;V(I('1H<F]W<R!3
M44Q%>&-E<'1I;VY[#0H@(" @=')Y>PT*(" @(" @8VQO8BYF<F5E5&5M<&]R
M87)Y*"D[#0H@(" @?6-A=&-H*%-13$5X8V5P=&EO;B!S<6QE>' I>PT*(" @
M(" @<W%L97AP+G!R:6YT4W1A8VM4<F%[email protected]*(" @(" @=&AR;W<@;F5W
M(%-13$5X8V5P=&EO;BAS<6QE>' N9V5T365S<V%G92@I*3L-"B @("!]#0H@
M('T-"B @<'5B;&EC($-O;FYE8W1I;VX@9V5T0V]N;F5C=&EO;B@I('1H<F]W
M<R!344Q%>&-E<'1I;VX@>PT*(" @($1A=&%3;W5R8V4@9',@/2!G971$871A
M4V]U<F-E*&1S3F%M92D[#0H@(" @<F5T=7)N(&1S+F=E=$-O;FYE8W1I;VXH
M*3L-"B @?0T*#0H@('!U8FQI8R!#;VYN96-T:6]N(&=E=$-O;FYE8W1I;VXH
M4W1R:6YG(&1S3F%M92D@=&AR;W=S(%-13$5X8V5P=&EO;B![#0H@(" @1&%T
M85-O=7)C92!D<R ](&=E=$1A=&%3;W5R8V4H9'-.86UE*3L-"B @("!R971U
M<FX@9',N9V5T0V]N;F5C=&EO;[email protected]*("!]#0H-"B @<')I=F%T92!$871A
M4V]U<F-E(&=E=$1A=&%3;W5R8V4H4W1R:6YG(&1S3F%M92D@=&AR;W=S(%-1
M3$5X8V5P=&EO;B![#0H@(" @1&%T85-O=7)C92!D<R ](&YU;&P[#0H@(" @
M=')Y('L-"B @(" @($-O;G1E>'0@:6,@/2!N97<@26YI=&EA;$-O;G1E>'0H
M*3L-"B @(" @(&1S(#T@*$1A=&%3;W5R8V4I(&EC+FQO;VMU<"AD<TYA;64I
M.PT*(" @('T@8V%T8V@@*$YA;6EN9T5X8V5P=&EO;B!E*2![#0H@(" @("!E
M+G!R:6YT4W1A8VM4<F%[email protected]*(" @(" @=&AR;W<@;F5W(%-13$5X8V5P
M=&EO;BAE+F=E=$UE<W-A9V4H*2D[#0H@(" @?0T*(" @(')E='5R;B!D<SL-
)"B @?0T*?0T*
`
end -
Oracle 10g Installation Problem on SUSE Linux 10
Hello Friends,
I want to install SAP Solution Manager 7.0 with Oracle 10g on SUSE Linux 10.0.
But, while starting the Installation i am getting following Errors.
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1,
asianux-2 or SuSE-10
Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-04-22_03-59-38PM. Please wait ...
Error in writing to directory /tmp/OraInstall2009-04-22_03-59-38PM. Please ensure that this directory is
writable and has atleast 60 MB of disk space. Installation cannot continue.
: Success
I have checked the Permissions and the Size of /tmp Directory, which is as followed:
drwxr-xr-x 11 root root 0 2009-04-22 21:19 sys
drwxrwxrwt 52 root root 1824 2009-04-22 16:00 tmp
drwxr-xr-x 15 root root 408 2009-04-19 14:43 usr
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda10 2104376 73112 2031264 4% /tmp
I am starting the Oracle 10g Installation within orasm7 User which is a member of dba, users, disk groups.
The directories which are created upon starting the Oracle Installation in /tmp directory are having the situations as followed:
drwxr-xr-x 3 orasm7 dba 128 2009-04-21 18:41 OraInstall2009-04-21_06-41-14PM
drwxr-xr-x 3 orasm7 dba 128 2009-04-21 18:41 OraInstall2009-04-21_06-41-25PM
drwxr-xr-x 3 orasm7 dba 128 2009-04-22 15:59 OraInstall2009-04-22_03-59-38PM
The Oracle Installation log is as follwoed:
Using paramFile: /home/MyData/51031676/database/install/oraparam.ini
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1, asianux-2 or SuSE-10
Passed
All installer requirements met.
The commandline for unzip:
/home/MyData/51031676/database/install/unzip -qqq ../stage/Components/oracle.swd.jre/1.4.2.0.8
/1/DataFiles/\*.jar -d /tmp/OraInstall2009-04-22_03-59-38PM
I have set DISPLAY variable in this way before starting Installation:
DISPLAY=$HOSTNAME:0.0
export DISPLAY
I tried to search the solution over the internet for this kind of problem, but i am not able to find its solution. Even i tried to start the Orale installation using this parameter: ./runInstaller ignoreSysPrereqs, but still it is giving the same unexpected error.
I have a doubt on File/Directory permissions which are created for Installation in /tmp. The umask setiing of the system is 0022.
Please, help me for this issue.
Thanks & Regards,
Bhavik G. ShroffHi Markus,
How are you ?
Thank you very much for your reply.
I was executing wrong runInstaller file. RUNINSTALLER is right file for starting the execution. But still i am facing the same error, which is as followed.
Preparing response files. Please wait:
======================================
Working on /home/MyData/51031676/database/SAP/SVRCUSTOM.RSP
/home/MyData/51031676/database/SAP/SVRCUSTOM.RSP --> /tmp/.orainst_rsp.27450: Done
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1, asianux-2 or SuSE-10
Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM. Please wait ...
Error in writing to directory /home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM. Please ensure that
this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
: Success
SHROFF:~ # cd /home/orasm7/tmpora/
SHROFF:/home/orasm7/tmpora # ll
total 0
drwxr-xr-x 3 orasm7 dba 128 Apr 22 17:25 OraInstall2009-04-22_05-25-26PM
SHROFF:/home/orasm7/tmpora # cd OraInstall2009-04-22_05-25-26PM/
SHROFF:/home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM # ll
total 4
drwxr-xr-x 2 orasm7 dba 304 Apr 22 17:25 images
-rwxr-xr-x 1 orasm7 dba 504 Apr 22 17:25 installActions2009-04-22_05-25-26PM.log
SHROFF:/home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM #
I have a doubt on tmp_netca_file & tmp_dbca_file variable.
Please give your suggestion for the same.
Regards,
Bhavik G. Shroff
Edited by: Bhavik G. Shroff on Apr 22, 2009 2:10 PM -
Oracle 10g installation problem on RHEL4
hi,
I am installing oracle 10g on red hat linux. I read the complete documentation and the mailing lists and have installed all the required RPMs.
When I start install, I get the following three errors:
error in invoking target 'install' of makefile
'u/01/app/oracle/ctx/lib/ins_ctx.mk'.
error in invoking target 'agent nmo nmb' of makefile
'u/01/app/oracle/ctx/lib/ins_sysman.mk'.
error in invoking target 'all_no_orcl' of makefile
'u/01/app/oracle/ctx/lib/ins_rdbms.mk'.
This error is popped up when the link part is going on. I am installing the standard edition and have done all the possible things mentioned in the documentation.
Can someone pls help me understand where is the problem
thanx in advance,
jayeshi had the same sequence of errors on installing (10g on Redhat AS4)
The first error (INFO: /usr/bin/ld: crt1.o: No such file: No such file or directory
) is solved by installing the following package (you need the glibc-devel i386 package installed as well as the x86_64 version)
up2date --arch=i386 glibc-devel
The second error, I am currently stuck at (error in invoking target agent nmo nmb...of makefile ins_sysman.mk)
INFO: /app/oracle/oracle/product/10.2.0/db_1/lib32//libnls10.a(lmsagb.o)(.text+0xa3): In function `lmsagbcmt':
: undefined reference to `SltsPrRead'
/app/oracle/oracle/product/10.2.0/db_1/lib32//libnls10.a(lmsagb.o)(.text+0x10a):
Any ideas, people, please?
Cheerio,
Nic -
OracleAS 10g Installation Problem on RedHat AS 3.0
Hi
I need to install OracleAS 10g on RedHat AS 3.0 and it seems that I need a patch (Patch 3006854) and the installation is impossible without it.I just started using oracleAS 10g and I dont have any metalink id.
I think something is wrong here.
a free trial version with a commercial patch !!!
can any one please help me out.
regards yashardear fredrik
I tried to install it according to the installation guid on http://www.oracle-base.com/articles/10g/OracleAS10gInstallationOnRedHatAS3.php as you see it asked for installation of a patch.
and yes I tried to install it without installing this patch and I got an error saying that I am missing a file named ld.so in /etc.I thought it might be connected to that patch.
beside when I was looking for the solution to my problem I saw many people having the same problem and asking the exact same question.
please notify about any solution that you think might help me solving this problem. I am in a hurry
regards yashar -
Oracle 10g Installation Problem in HP-UX 11.31
Hi
I am installing ERP 2005 SR2 on HP-UX 11.31 OS with ORACLE database. When I am running ./RUNINSTALLER getting following error. Error Log as follows
Using paramFile: /oracle/stage/102_64/database/install/oraparam.ini
Checking installer requirements...
Checking operating system version: must be B.11.23. Actual B.11.31
Failed <<<<
Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2008-07-16_11-26-39AM/installActions2008-07-16_11-26-39AM.log
When I look into oraparam.ini file from given path found entries as follows
[Certified Versions]
#You can customise error message shown for failure through CERTIFIED_VERSION_FAILURE_MESSAGE
Solaris=5.6,5.7,5.8,5.9
Linux=redhat-2.1AS
HPUX=B.11.23
Decunix=V5.1A,V5.1
AIX=5.1.0.0
[HPUX-B.11.23-required]
#PATCHES required by JRE and Product, /usr/sbin/swlist -l patch gets list of patches on system
PATCHES=
#PACKAGES required by JRE and Product, /usr/sbin/swlist -l product gets list of packages on system
PACKAGES=
#Patch bundles required for Oracle.
#/usr/sbin/swlist -l bundle gives list of bundles.
#Each item should follow the format "bundle:version"
#ex.,GOLDBASE11i:B.11.11.0106.9,GOLDAPPS11i:B.11.11.0106.9
BUNDLE=
#Minimum swap space required by OUI, Increase it if your product installation so requires
SWAP_SPACE=250
TEMP_SPACE=250
BUNDLE_FAILURE_MESSAGE=Some patch bundles were not found on the system. Please verify if the system is at a higher bundle level.
Please let me know how to overcome this problem.
Regards
JayakarHi ,
If anyone come across this kind of errors don't try to perform any workaround which is not recommended by sap as later in post installation steps there will be errors so please go through below SAP note as it has some workarounds recommends by SAP
Note 980426 - Oracle 10.2 Software installation on new operating systems
Shanaka.
Maybe you are looking for
-
On my Apple Tv, the movies are not downloading, what next?
I have used Apple TV for over a month, choose a movie and it downloads, today it is not doing, despite having tried so many things, even checking the credit card setting. Feel very frustrated.... Any advice on how to have the movies downloading again
-
Opinions on where to locate an Airport Extreme with a XServe
I've been laying out a new network scheme for a soon to arriving Mac Server and an Airport Extreme. There are 2 ways that this can be done: 1. Cable Modem to a DMZ setup on the Xserve, and the Airport Extreme used in bridge mode. The Xserve would the
-
Line wrapping and font styles?
Hi, If I have a piece of text which I would like to see line wrapped, and font styled, how should I do that? javax.swing.JTextArea has the capabilities to set line wrapping to on. javax.swing.JTextPane has the capabilities to set font styles like bol
-
I'm trying to query the WSUS DB using the Query Database activity to run some cleanup scripts on a schedule. The initial catalog is different than in a typical DB instance because, according to what I've read, its not a full version of SQL. Its a ski
-
Import video with audio question
When I start a new project and import a video with audio, then drag to the timeline , it puts the latter on audio 4 track instead of track 1. Why is it skipping 3 tracks?