Archiving data as XML
Hi,
I'm trying to write an archive routine (On Oracle 9.0.1)which can extract account data and store it in an XML file. The file may be reloaded later if required. I've looked at the XML-SQL Utility and which seems to do the job but the file limitations with PL/SQL are causing problems (create dir etc). I could use the Java API although would prefer PL/SQL.
Also if I had 3 tables emp, address and account and was able to build the required sql for selection for each table could I store these 3 XML blocks within the 1 file and use XSU to parse the file and perform the required DBMS_XMLSave.insertXML on each block or is there a better way the achive a solution to this problem,
Many Thanks,
Trev.
i don't think you could reload this back into the grc system therefore you are stuck with raw text file dumps I think.
Similar Messages
-
Shared-library in OC4J - load data-sources.xml throws error
H
To share common libraries (framework.jar, JAXB jars, axis.jar, log4j, tibco*.jars)
across application(app1/app2/app3) in the OC4J container.
Currently all these jars are loaded with common jars separately application, a total 3 common
footprints of these jars.
1 - Placed all common jars under $J2EE_HOME/shared-lib folder, updated server.xml in $J2EE_HOME/config.
2 - Connecting Tibco queues using generic JMS resource adapter (connectors - JCA).
3 - Connecting to databases using data-sources.xml.
4 - With following entries in orion-application.xml
<imported-shared-libraries>
<import-shared-library name="my.shared.libraries" max-version="1.0"/>
</imported-shared-libraries> ---> Entry 1
<connectors path="oc4j-connectors.xml"/> ---> Entry 2
<data-sources path="data-sources.xml"/> ---> Entry 3
Getting the following error while deploying the code.
Error occurred initializing connectors. Exception is: Exception creating Manage
d DataSource ConnectorPropertySet. Exception: Error setting up resource adapter
for embedded resource archive inside application 'deployGood1'. ManagedConnecti
onFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl
' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML'
for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactor
yImpl for embedded resource archive inside application 'deployGood1'. Exception
is: java.lang.reflect.InvocationTargetException
However orion-application.xml
Option A
Entry 1 (imported-shared-libraries)
Entry 2 (connectors)
Works perfectly fine - however the Service complains of not finding the datasource JNDI
5 - If all jars are loaded separately with each application
With following entries in orion-application.xml
<library path="C:/soft/jar/framework.jar" />
<library path="C:/soft/jar/log4j-1.2.14.jar" />
<library path="C:/soft/jar/axis.jar"/>
<library path="C:/soft/jar/commons-discovery-0.2.jar"/>
<library path="C:/soft/jar/commons-logging-1.0.4.jar"/>
<library path="C:/soft/jar/fscontext.jar"/>
<library path="C:/soft/jar/gjra.jar"/>
<library path="C:/soft/jar/jax-qname.jar"/>
<library path="C:/soft/jar/jaxb-api.jar"/>
<library path="C:/soft/jar/jaxb-impl.jar"/>
<library path="C:/soft/jar/jaxb-libs.jar"/>
<library path="C:/soft/jar/jaxb-xjc.jar"/>
<library path="C:/soft/jar/jaxrpc.jar"/>
<library path="C:/soft/jar/jmxri.jar"/>
<library path="C:/soft/jar/jmxtools.jar"/>
<library path="C:/soft/jar/namespace.jar"/>
<library path="C:/soft/jar/providerutil.jar"/>
<library path="C:/soft/jar/relaxngDatatype.jar"/>
<library path="C:/soft/jar/saaj.jar"/>
<library path="C:/soft/jar/tibcrypt.jar"/>
<library path="C:/soft/jar/tibjms.jar"/>
<library path="C:/soft/jar/tibjmsadmin.jar"/>
<library path="C:/soft/jar/tibjmsapps.jar"/>
<library path="C:/soft/jar/tibrvjms.jar"/>
<library path="C:/soft/jar/wsdl4j-1.5.1.jar"/>
<library path="C:/soft/jar/wss4j-1.5.2.jar"/>
<library path="C:/soft/jar/xercesImpl.jar"/>
<library path="C:/soft/jar/xmlsec-1.4.0.jar"/>
<library path="C:/soft/jar/xsdlib.jar"/> -------> Entry 1
<connectors path="oc4j-connectors.xml"/> ---> Entry 2
<data-sources path="data-sources.xml"/> ---> Entry 3
This configuration works perfectly fine as expected, but this configuration defeats the
purpose of shared-library
Thanks
sunderH
To share common libraries (framework.jar, JAXB jars, axis.jar, log4j, tibco*.jars)
across application(app1/app2/app3) in the OC4J container.
Currently all these jars are loaded with common jars separately application, a total 3 common
footprints of these jars.
1 - Placed all common jars under $J2EE_HOME/shared-lib folder, updated server.xml in $J2EE_HOME/config.
2 - Connecting Tibco queues using generic JMS resource adapter (connectors - JCA).
3 - Connecting to databases using data-sources.xml.
4 - With following entries in orion-application.xml
<imported-shared-libraries>
<import-shared-library name="my.shared.libraries" max-version="1.0"/>
</imported-shared-libraries> ---> Entry 1
<connectors path="oc4j-connectors.xml"/> ---> Entry 2
<data-sources path="data-sources.xml"/> ---> Entry 3
Getting the following error while deploying the code.
Error occurred initializing connectors. Exception is: Exception creating Manage
d DataSource ConnectorPropertySet. Exception: Error setting up resource adapter
for embedded resource archive inside application 'deployGood1'. ManagedConnecti
onFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl
' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML'
for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactor
yImpl for embedded resource archive inside application 'deployGood1'. Exception
is: java.lang.reflect.InvocationTargetException
However orion-application.xml
Option A
Entry 1 (imported-shared-libraries)
Entry 2 (connectors)
Works perfectly fine - however the Service complains of not finding the datasource JNDI
5 - If all jars are loaded separately with each application
With following entries in orion-application.xml
<library path="C:/soft/jar/framework.jar" />
<library path="C:/soft/jar/log4j-1.2.14.jar" />
<library path="C:/soft/jar/axis.jar"/>
<library path="C:/soft/jar/commons-discovery-0.2.jar"/>
<library path="C:/soft/jar/commons-logging-1.0.4.jar"/>
<library path="C:/soft/jar/fscontext.jar"/>
<library path="C:/soft/jar/gjra.jar"/>
<library path="C:/soft/jar/jax-qname.jar"/>
<library path="C:/soft/jar/jaxb-api.jar"/>
<library path="C:/soft/jar/jaxb-impl.jar"/>
<library path="C:/soft/jar/jaxb-libs.jar"/>
<library path="C:/soft/jar/jaxb-xjc.jar"/>
<library path="C:/soft/jar/jaxrpc.jar"/>
<library path="C:/soft/jar/jmxri.jar"/>
<library path="C:/soft/jar/jmxtools.jar"/>
<library path="C:/soft/jar/namespace.jar"/>
<library path="C:/soft/jar/providerutil.jar"/>
<library path="C:/soft/jar/relaxngDatatype.jar"/>
<library path="C:/soft/jar/saaj.jar"/>
<library path="C:/soft/jar/tibcrypt.jar"/>
<library path="C:/soft/jar/tibjms.jar"/>
<library path="C:/soft/jar/tibjmsadmin.jar"/>
<library path="C:/soft/jar/tibjmsapps.jar"/>
<library path="C:/soft/jar/tibrvjms.jar"/>
<library path="C:/soft/jar/wsdl4j-1.5.1.jar"/>
<library path="C:/soft/jar/wss4j-1.5.2.jar"/>
<library path="C:/soft/jar/xercesImpl.jar"/>
<library path="C:/soft/jar/xmlsec-1.4.0.jar"/>
<library path="C:/soft/jar/xsdlib.jar"/> -------> Entry 1
<connectors path="oc4j-connectors.xml"/> ---> Entry 2
<data-sources path="data-sources.xml"/> ---> Entry 3
This configuration works perfectly fine as expected, but this configuration defeats the
purpose of shared-library
Thanks
sunder -
Archive Data on XI ...how it helps
Hi All,
I have read that xi message are saved in certain cluster tables. So if we archive data on xi server, some file willbe created on XI server machine.. does on arvching XI messages are deleted from cluster tables. how does arching help in reducing disk space.?No. of entries used in the table at runtime: Some of the table of SAP XI grow very quickly and can cause severe problem if no archiving / deletion takes place. In case the message volume increases retention times have to be adjusted according to the available database space. Furthermore erroneous messages remain in the database if not handled carefully.
The most important tables are:
SXMSPMAST, SXMSCLUR, SXMSPFRAWH and SXMSPFRAWD: These tables are cleaned up by archiving and deletion of xml messages. -
Hello out there
In our company we ara going to archive transactional data for the first time
I am going to create several ods:es . In those i am going to transfer data before archiving in r3.
Now my question. I will set a flag somewhere and if this is set i will be impossible to delete the data in the ods via rsa1 transaction
I hope this is possible but dont know how to do.
/7 StisseHi dear and welcome on board!
Is your doubt related to some possible authorization settings in order to avoid potential (undesired) deletions of this data ?
I think you can move these ODSs in a dedicated Infoarea and then avoid to assign access into it to anyone...
Otherwise, you can archive data in BW too !
Let me know your specific requirements (do you have to do some reporting on this archived data ?)...
Bye,
Roberto -
Pls Help me with steps to add data from xml file to SAP B1 through B1iSN.
Pls Help me with steps to add data from xml file to SAP B1 through B1iSN. I am getting stuck in xsl transformation. not able to understand where the mapping code needs to be added.
Pls explain me the steps for adding data from xml to B1 quotation step by step.
thanks and regards
PriyaHi,
Have you checked this: https://sap.na.pgiconnect.com/p45508295/?launcher=false&fcsContent=true&pbMode=normal ?
Thanks,
Gordon -
URGENT!!!! - Reading Archived Data from a Report.
Hi,
The data, prior to 15 months, of some tables (BSEG, BSAK),
used in the report YGF11347 has been archived.
Previously this report YGF11347 was run for vendor payment information for any time frame
through FBL1N. So any vendor line items from 2004, 2005, 2006 and current year,
all data elements were available to be extracted and displayed on the report.
Recently the Check Amount is missing when executing the report for payments made prior to
04/01/2006. This is because of archiving the data prior to 15 months.
My requirement is tht i need to display this archived data also in the report "YGF11347".
Can anyone please help me on this issue.
Regards,
Akratihi
good
check this link, hope this would help you to solve your problem.
http://www.ams.utoronto.ca/Assets/output/assets/ixos_637070.pdf.pdf
thanks
mrutyun^ -
Changing the default to location of Archiver data
Hi,
Is there any way that we can change the default location of the Archiver data. By default is goes to archives folder, i want it to goto some other folder.
Similarly when u take up the backup of site. i want it also to be stored in some other folder.
is it possible.???For archiver see My Oracle Support Note
How can I move the archive directory? (Doc ID 449054.1)
Not sure what you mean by a back up. There is no built in Disaster recovery tool for UCM. Standard system back ups (file system and DB) for restore should be used. -
903/902/BC4J can't get data-sources.xml conn pooling to work in production; help
I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
instance. I've had this problem since I started deploying in development on 902. So it's
some basic problem that I've not mastered.
I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml.
Have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from my BC4J ears,
and published the jndi jdbc source in my oc4j common data-sources.xml. I've tested that this is
the place controlling the conn URL/login passwd by commenting it out of config/data-sources.xml
and my BC4J apps then throw exceptions, can't get conn.
I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
-Djbo.doconnectionpooling=true
symptom
Connections are created and closed. Instead of being put back into the pool managed by oc4j,
what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
closed.
I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
being opened for each conn. ;( grrrrrrr
Does anyone have a clue as to why this is happening?
Thanks, curt
my data-sources.xml
<data-sources>
<data-source
class="com.evermind.sql.DriverManagerDataSource"
connection-driver="oracle.jdbc.driver.OracleDriver"
ejb-location="jdbc/DEVDS"
location="jdbc/DEVCoreDS"
name="DEVDS"
password="j2train"
pooled-location="jdbc/DEVPooledDS"
url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
username="jscribe"
xa-location="jdbc/xa/DEVXADS"
inactivity-timeout="300"
max-connections="50"
min-connections="40"
/>
</data-sources>I've run another test using local data-source.xml, that's packaged in the .ear. Still
pooling under BC4J doesn't work??
A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
I just tested so called local connection pooling, where I edited the data-sources.xml that
gets packaged in the ear, to include the min/max params and re-ran my test.
Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
new socket and not an old pooled conn socket.
???? What the heck??
Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
pool and not close the socket??
Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
Any thoughts on how to figure out what's not configed correctly or has a bug?
Thanks, curt -
How to add a data-source.xml to the project to config DB connections and to be SCM'ed
I'd like to explicitly manage a data-sources.xml for my JSP + BC4J project.
Any helps on getting the released Jdev to add a data-source.xml that would then
be what the .ear deploys to OC4J?
Thanks, curtI have a JSP + BC4J project:
So far my naive experiments to explicitely add data-sources.xml to a
project that is picked up by the deploy to .ear step and put in the
root of the .ear have failed.
Is this one of those gaps like the orion-application.xml file, that has no
solution at present?
Or is the back-door via adding an EJB component to my project, then deleting it??
Thanks, curt -
How to extract data from xml and insert into Oracle table
Hi,
I have a large xml file. which will have hundreds of the following transaction tags having column names and there values.
There is a table one of the schema with coulums "actualCostRate","billRate"....etc.
I need to extract the values of these columns and insert into the table
<Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuUK" chargeCode="LCOCD1" externalID="L-RESCODE_UK1-PROJ_UK_CNT_GBP-37289-8" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-12" transactionType="L" units="11" taskID="5017601" inputTypeCode="SALES" groupId="123" voucherNumber="ABCVDD" transactionClass="ABCD"/>
<Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuEU" chargeCode="LCOCD1" externalID="L-RESCODE_US1-PROJ_EU_STD2-37291-4" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-04" transactionType="L" units="4" taskID="5017601" inputTypeCode="SALES" groupId="124" voucherNumber="EEE222" transactionClass="DEFG"/>Re: Insert from XML to relational table
http://www.google.ae/search?hl=ar&q=extract+data+from+xml+and+insert+into+Oracle+table+&btnG=%D8%A8%D8%AD%D8%AB+Google&meta= -
How to insert the data from XML to a table
Hi,
I'm using Oracle 10g Express Edition
I need help in How to insert the data from XML file into the table.
Below is the example i'm working on..
I have create ridb user with below mentioned privileges:
Account Status Locked Unlocked
Default Tablespace: USERS
Temporary Tablespace: TEMP
User Privileges :
Roles:
CONNECT
RESOURCE
Direct Grant System Privileges:
CREATE DATABASE LINK
CREATE MATERIALIZED VIEW
CREATE PROCEDURE
CREATE PUBLIC SYNONYM
CREATE ROLE
CREATE SEQUENCE
CREATE SYNONYM
CREATE TABLE
CREATE TRIGGER
CREATE TYPE
CREATE VIEW
& table is created TRIALZIPCODES below mentioned is the DDL:
CREATE TABLE TRIALZIPCODES
STATE_ABBR VARCHAR2(20) NOT NULL
, ZIP_CODE NUMBER(10, 0) NOT NULL
, ZIP_CODE_EXT VARCHAR2(20)
Below is the XML FILE: which is stored in C:\OracleProject Folder
File name: trial.xml
<?xml version="1.0" ?>
<metadata>
- <Zipcodes>
- <mappings Record="4">
<STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
<ZIPCODE>94301</ZIPCODE>
</mappings>
- <mappings Record="5">
<STATE_ABBREVIATION>CO</STATE_ABBREVIATION>
<ZIPCODE>80323</ZIPCODE>
<ZIP_CODE_EXTN>9277</ZIP_CODE_EXTN>
</mappings>
</Zipcodes>
</metadata>
PL/SQL Procedure:which i'm trying to execute from SQLDeveloper
create or replace
PROCEDURE TRIAL AS
BEGIN
DECLARE
-- declare attributes
charString varchar2(80);
finalStr varchar2(4000) := null;
rowsp integer;
v_FileHandle UTL_FILE.FILE_TYPE;
l_context_handle dbms_xmlgen.ctxHandle;
insCtx DBMS_XMLStore.ctxType;
begin
-- DBMS_XMLGEN.setRowTag ( ctx IN ctxHandle, rowTag IN VARCHAR2);
-- DBMS_XMLGEN.setRowSetTag ( ctx IN ctxHandle, rowSetTag IN VARCHAR2);
-- the name of the table as specified in our DTD
DBMS_XMLGEN.SETROWSETTAG(l_context_handle,'zipcodes');
-- the name of the data set as specified in our DTD
DBMS_xmlgen.setRowTag(l_context_handle,'mappings');
-- for getting the output on the screen
dbms_output.enable(1000000);
-- open the XML document in read only mode
v_FileHandle := utl_file.fopen('c:/OracleProject','trial.xml', 'r');
loop
BEGIN
utl_file.get_line(v_FileHandle, charString);
exception
when no_data_found then
utl_file.fclose(v_FileHandle);
exit;
END;
dbms_output.put_line(charString);
if finalStr is not null then
finalStr := finalStr || charString;
else
finalStr := charString;
end if;
end loop;
-- for inserting the XML data into the table
insCtx := DBMS_XMLSTORE.NEWCONTEXT('RIDB.TRIALZIPCODES');
insCtx := DBMS_XMLSTORE.INSERTXML(insCtx, finalStr);
dbms_output.put_line('INSERT DONE '||TO_CHAR(rowsp));
DBMS_XMLStore.closeContext(insCtx);
END;
END TRIAL;
For the first time when i complied i got the errors as :
Procedure RIDB.PROCEDURE1@RIDB
Error(16,14): PLS-00201: identifier 'UTL_FILE' must be declared
Error(16,14): PL/SQL: Item ignored
Error(29,1): PLS-00320: the declaration of the type of this expression is incomplete or malformed
Error(29,1): PL/SQL: Statement ignored
Error(33,1): PL/SQL: Statement ignored
Error(33,19): PLS-00320: the declaration of the type of this expression is incomplete or malformed
Error(36,1): PL/SQL: Statement ignored
Error(36,17): PLS-00320: the declaration of the type of this expression is incomplete or malformed
So i logged in as sys & grant the permission to execute on UTL_FILE to ridb (user):
SQL Statement:
grant execute on utl_file to ridb
So, it got compiled successfully but when i execute it gives me error as:
Source does not have a runnable target.
What does this mean?
So I browse through forum & i got to know that i need to initial the UTL_FILE_DIR ="C:/OracleProject" in init.ora
So can i edit the init.ora with notepad.When i tried to do that it says permission denied
In my system it shows the init.ora file in path C:\oraclexe\app\oracle\product\10.2.0\server\config\scripts
but there is also other file initXETemp in the same path do i need to do the changes in it.
I have tried even editing the SPFILE as mentioned below:
C:\oraclexe\app\oracle\product\10.2.0\server\dbs\SPFILEEXE - I had edit this file using notepad & set the value of UTL_FILE_DIR ="C:/OracleProject". So next time when i restarted i'm unable to log on to the database.
So i had reinstall the software again.
Could you please let me know how to proceed..hi,
I have created the directory from sys database
CREATE or replace DIRECTORY XML_DIR2 AS 'C:\OracleProject';
& grant read,write access to the user
grant read,write on directory XML_DIR2 to RIDB;
& i had change the tag name in the xml file as shown below:
<?xml version = '1.0'?>
<metadata>
<Zipcodes>
<mappings Record="4">
<STABBRE>CA</STABBRE>
<ZIPCODE>94301</ZIPCODE>
</mappings>
<mappings Record="5">
<STABBRE>CO</STABBRE>
<ZIPCODE>80323</ZIPCODE>
<ZIPCODEEXT>9277</ZIPCODEEXT>
</mappings>
</Zipcodes>
</metadata>
TRIALZIPCODE table as shown below:
CREATE TABLE "RIDB"."TRIALZIPCODE"
( "STABBRE" VARCHAR2(20 BYTE),
"ZIPCODE" NUMBER(*,6) NOT NULL ENABLE,
"ZIPCODEEXT" NUMBER
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ;
I have tried two methods as shown below:
Procedure 1:
create or replace
PROCEDURE TRIAL_V2 AS
BEGIN
DECLARE
-- declare attributes
charString varchar2(80);
finalStr varchar2(4000) := null;
rowsp integer;
v_FileHandle UTL_FILE.FILE_TYPE;
l_context_handle dbms_xmlgen.ctxHandle;
insCtx DBMS_XMLStore.ctxType;
cnt NUMBER;
xmldoc xmltype := xmltype( bfilename('XML_DIR2','trialxml.xml'), nls_charset_id('AL32UTF8') );
--XML_DIR VARCHAR2(40) := 'C:\\OracleProject';
BEGIN
insCtx := DBMS_XMLStore.newContext('DEV.TRIALZIPCODES');
DBMS_XMLStore.setUpdateColumn(insCtx, 'STABBRE');
DBMS_XMLStore.setUpdateColumn(insCtx, 'ZIPCODE');
DBMS_XMLStore.setUpdatecolumn(insCtx, 'ZIPCODEEXT');
DBMS_XMLStore.setRowTag(insCtx, 'mappings');
cnt := DBMS_XMLStore.insertXML(insCtx, xmldoc);
DBMS_XMLStore.closeContext(insCtx);
END;
Procedure 1 was compiled with out errors but when i execute i got the error as :
Source does not have a runnable target.
Procedure 2_
CREATE OR REPLACE PROCEDURE TRIAL_V3 AS
BEGIN
DECLARE
-- declare attributes
charString varchar2(80);
finalStr varchar2(4000) := null;
rowsp integer;
v_FileHandle UTL_FILE.FILE_TYPE;
l_context_handle dbms_xmlgen.ctxHandle;
insCtx DBMS_XMLStore.ctxType;
cnt NUMBER;
xmldoc xmltype := xmltype( bfilename('XML_DIR2','trialxml.xml'), nls_charset_id('AL32UTF8') );
--XML_DIR VARCHAR2(40) := 'C:\\OracleProject';
BEGIN
INSERT INTO trialzipcode (STABBRE, ZIPCODE, ZIPCODEEXT)
SELECT extractvalue(x.column_value, 'mappings/STABBRE'),
extractvalue(x.column_value, 'mappings/ZIPCODE'),
extractvalue(x.column_value, 'mappings/ZIPCODEEXT')
FROM TABLE(
XMLSequence(
EXTRACT(
xmltype( bfilename('XML_DIR2','trialxml.xml'), nls_charset_id('AL32UTF8') ),
'metadata/Zipcodes/mappings'
) x
END;
END TRIAL_V3;
Procedure 2 was complied without errors but when i execute i got the error as:
Connecting to the database RIDB.
ORA-22288: file or LOB operation FILEOPEN failed
The system cannot find the file specified.
ORA-06512: at "SYS.DBMS_LOB", line 523
ORA-06512: at "SYS.XMLTYPE", line 287
ORA-06512: at "RIDB.TRIAL_V3", line 12
ORA-06512: at line 2
Process exited.
Disconnecting from the database RIDB.
Could you please let me know how to proceed... -
Reading the data from XML Source
Hi
i want to read the data from XML source file, and update the transaction information to another XML file. how we can do this in ADF, please help
Thanks
nidhiyou may use normal Java API to do that
http://www.javablogging.com/read-and-write-xml/ -
In PL-SQL archive data from a table to a file
I am currently developing a vb app where I need to archive data from a table to a file. I was hoping to do this with a stored procedure. I will also need to be able to retrieve the data from the file for future use if necessary. What file types are available? Thanks in advance for any suggestions.
What about exporting in an oracle binary format? The export files cannot be modifiable. Is there a way to use the export and import utility in PL/SQL?
null -
Error While viewing data on XML model- java.sql.SQLException: constante num
I am trying to read an XML file and I keep getting an error. At first it worked, and the it stopped working. I re-did everthing exactly as first time and I cannot get it work
Here is what I do :
1) Create Physical Architecture under the XML Technology.
a) we create a Data Server with these data:
Name: XML_SERIVA_TM_DES
Technology: XML
JDBC Driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
JDBC Url: jdbc:snps:xml?file=c:\Temp\hoy\CRM_CR_CURRENCY.xml&dtd=c:\Temp\hoy\ServiciosSerivaConsultasTypes0.xsd
b) We place the files xml and xsd files according to the JDBC provided in previous point.
We click on "Test Connection" and Connection is correct
c) We create a physical schema under the Data Server created in point a) , with these data:
Name: XML_SERIVA_TM_DES (After created the name is replaced by XML_SERIVA_TM_DES.Esquema)
Schema (Schema) : <No Definido> ( not sure of english value, it should be <Undefined>)
Schema (Work Schema) : <No Definido> ( not sure of english value, it should be <Undefined>)
Default :It is a checkbox , and it is ticked.
Under the "Context" tab, we add a logical schema named XML_SERIVA_TM for the "Desarrollo" Context
2) Create a Model On the Designer Navigator, we expand the "Models" panel
a) For Organization, We create a "Folder" Model. It is named "XML"
b) Under the Folder created in a), we create a new Model , with these data:
Name: XML_SERIVA_TM
Code: XML_SERIVA_TM
Technology: XML
Logical Schema: XML_SERIVA_TM
c) Do reverse-engineering.
In the Reverse tab of the model,
+ "Standard" is selected
+ Context: "Desarrollo"
+ The types of objects to reverse-engineer are: Table
In the Selective reverse tab, we select : New Datastores, Existing Datastores, Objects to reverse.
All the datastores that appear are checked
We click on Reverse Engineer in the toolbar menu
And the reverse engineer is done successfully and the datastores appear in the model panel
d) We try to test the reverse engineering by clicking on the datastores and select "View Data",
after click we get the folloging exception (running with Local agent) :
See com.borland.dx.dataset.DataSetException error code: BASE+66
com.borland.dx.dataset.DataSetException: constante numérica mal escrita
Chained exception:
java.sql.SQLException: constante numérica mal escrita
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCPreparedStatement.<init>(Unknown Source)
at org.hsqldb.jdbc.JDBCConnection.prepareStatement(Unknown Source)
at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.prepareStatement(SnpsXmlConnection.java:1192)
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.odi.core.datasource.dwgobject.support.OnConnectOnDisconnectDataSourceAdapter$OnDisconnectCommandExecutionHandler.invoke(OnConnectOnDisconnectDataSourceAdapter.java:200)
at $Proxy2.prepareStatement(Unknown Source)
at com.borland.dx.sql.dataset.Database.createPreparedStatement(Unknown Source)
at com.borland.dx.sql.dataset.o.a(Unknown Source)
at com.borland.dx.sql.dataset.o.d(Unknown Source)
at com.borland.dx.sql.dataset.o.f(Unknown Source)
at com.borland.dx.sql.dataset.QueryProvider.e(Unknown Source)
at com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source)
at com.borland.dx.dataset.StorageDataSet.refresh(Unknown Source)
at com.borland.dx.sql.dataset.QueryDataSet.refresh(Unknown Source)
at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.initialize(AbstractEditFrameGridBorland.java:624)
at com.sunopsis.graphical.frame.edit.AbstractEditFrameGridBorland.<init>(AbstractEditFrameGridBorland.java:864)
at com.sunopsis.graphical.frame.edit.EditFrameTableData.<init>(EditFrameTableData.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at oracle.odi.ui.editor.AbstractOdiEditor$1.run(AbstractOdiEditor.java:153)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.hsqldb.HsqlException: constante numérica mal escrita
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.ParserBase.read(Unknown Source)
at org.hsqldb.ParserBase.readThis(Unknown Source)
at org.hsqldb.ParserDQL.XreadFromClause(Unknown Source)
at org.hsqldb.ParserDQL.XreadTableExpression(Unknown Source)
at org.hsqldb.ParserDQL.XreadQuerySpecification(Unknown Source)
at org.hsqldb.ParserDQL.XreadSimpleTable(Unknown Source)
at org.hsqldb.ParserDQL.XreadQueryPrimary(Unknown Source)
at org.hsqldb.ParserDQL.XreadQueryTerm(Unknown Source)
at org.hsqldb.ParserDQL.XreadQueryExpressionBody(Unknown Source)
at org.hsqldb.ParserDQL.XreadQueryExpression(Unknown Source)
at org.hsqldb.ParserDQL.compileCursorSpecification(Unknown Source)
at org.hsqldb.ParserCommand.compilePart(Unknown Source)
at org.hsqldb.ParserCommand.compileStatement(Unknown Source)
at org.hsqldb.Session.compileStatement(Unknown Source)
at org.hsqldb.StatementManager.compile(Unknown Source)
at org.hsqldb.Session.execute(Unknown Source)
... 26 more
We also try to create an interface with the datastore of the model as source of the interface, and
get the same exact exception as above, when interfaces in executed either with no-agent(local) or with an agent.
Bellow I pasted the xsd schema and XML data:
CRM_CR_CURRENCY.xml
<?xml version = '1.0' encoding = 'UTF-8'?>
<m:indicadoresResponse xmlns:m="http://co/com/bancodecredito/eai/serviciosLinea/seriva">
<ns0:WS_ResultadoConsultaIndicadores xmlns:ns0="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl">
<ns0:Error>0</ns0:Error>
<ns0:Descripcion>Transacción exitosa</ns0:Descripcion>
<ns0:indicadores>
<ns0:fecha>2011-08-10 00:00:00.0</ns0:fecha>
<ns0:descripcion>VALORACION (TRM VIGENTE) UVR/UVR</ns0:descripcion>
<ns0:tipoIndicador>3</ns0:tipoIndicador>
<ns0:codigoIndicador>312</ns0:codigoIndicador>
<ns0:codigoVertice>0</ns0:codigoVertice>
<ns0:plazo>0</ns0:plazo>
<ns0:valor>196.9975</ns0:valor>
<ns0:comportamiento>1</ns0:comportamiento>
<ns0:formato>3</ns0:formato>
</ns0:indicadores>
</ns0:WS_ResultadoConsultaIndicadores>
</m:indicadoresResponse>
ServiciosSerivaConsultasTypes0.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://co/com/bancodecredito/eai/serviciosLinea/seriva" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://co/com/bancodecredito/eai/serviciosLinea/seriva" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s3="http://www.openuri.org/2006/12/wsdl/upgradedJWS" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" schemaLocation="resultado.xsd" />
<xs:element name="indicadoresResponse">
<xs:complexType>
<xs:sequence>
<xs:element ref="impl:WS_ResultadoConsultaIndicadores" xmlns:impl="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
resultado.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://co/com/bancodecredito/eai/serviciosLinea/seriva" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s3="http://www.openuri.org/2006/12/wsdl/upgradedJWS" xmlns:tns="http://co/com/bancodecredito/eai/serviciosLinea/seriva/impl" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="WS_ResultadoConsultaIndicadores">
<xs:complexType>
<xs:sequence>
<xs:element name="Error" type="xs:string" />
<xs:element name="Descripcion" type="xs:string" />
<xs:sequence maxOccurs="unbounded" minOccurs="0">
<xs:element name="indicadores">
<xs:complexType>
<xs:sequence>
<xs:element name="fecha" type="xs:string" />
<xs:element name="descripcion" type="xs:string" />
<xs:element name="tipoIndicador" type="xs:int" />
<xs:element name="codigoIndicador" type="xs:int" />
<xs:element name="codigoVertice" type="xs:int" />
<xs:element name="plazo" type="xs:int" />
<xs:element name="valor" type="xs:double" />
<xs:element name="comportamiento" type="xs:int" />
<xs:element name="formato" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
I really don't have any clue about what is happening. I have made sure files are in UTF-8 encoding. I don't know if any jar might be corrupted.You may sure have found the answer but it can help futur visitors:
Did you specified a Schema name for your physical schema ?
I had the same problem and no schema was set in my physical schema, when setting it, it must be OK. -
In data template xml , dataQuery not getting executed
hello i have the data template XML as :
name of the file XMLPDF.xml
<?xml version = "1.0" encoding="UTF-8" ?>
<dataTemplate name="XMLTEST" description = "testing the" Version = "1.0">
<properties>
<property name="xml_tag_case" value="upper" />
<property name="include_parameters" value="true"/>
<property name="include_null_Element" value="true"/>
</properties>
<parameters>
<parameter name="P1" dataType = "DATE"></parameter>
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[
SELECT CASH_RECEIPT_ID , AMOUNT , SET_OF_BOOKS_ID
FROM AR_CASH_RECEIPTS_ALL
WHERE STATUS = :P1
]]>
</sqlStatement>
</dataQuery>
<datastructure>
<group name = "G1" SOURCE = "Q1" groupFilter="">
<element name="CASH_RECEIPT" value ="CASH_RECEIPT"/>
<element name="AMOUNT" value="AMOUNT"/>
<element name="SET_OF_BOOKS_ID" value="SET_OF_BOOKS_ID"/>
</group>
</datastructure>
</dataTemplate>
Date Definition:
Name XMLPDF Code XMLPDF
Application Receivables Start Date 07-Jan-2011
Concurrent Program
registered the report output xml and used the seeded executable XDODTEXE
when i run the report output is:
<?xml version="1.0" encoding="UTF-8" ?>
- <XMLTEST>
<P1 />
</XMLTEST>
i do not see my query in the data template getting executed. i am expecting my 3 columns that i have defined in the query to be shown up in the output xml file.
I'd really appreciate if someone can help me here. Thanks a lot<?xml version = "1.0" encoding="UTF-8" ?>
<dataTemplate name="XMLTEST" description = "testing the" Version = "1.0">
<properties>
<property name="xml_tag_case" value="upper" />
<property name="include_parameters" value="true"/>
<property name="include_null_Element" value="true"/>
</properties>
<parameters>
<parameter name="P1" dataType = "CHARACTER"></parameter>
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[
SELECT CASH_RECEIPT_ID , AMOUNT , SET_OF_BOOKS_ID
FROM AR_CASH_RECEIPTS_ALL
WHERE STATUS = :P1
]]>
</sqlStatement>
</dataQuery>
<datastructure>
<group name = "G1" SOURCE = "Q1" groupFilter="">
<element name="CASH_RECEIPT" value ="CASH_RECEIPT"/>
<element name="AMOUNT" value="AMOUNT"/>
<element name="SET_OF_BOOKS_ID" value="SET_OF_BOOKS_ID"/>
</group>
</datastructure>
</dataTemplate>
i have modified the date datatype. im still seeing the same output. how do i change the element to be derived value? can you help me with the syntax.
Thanks!
Maybe you are looking for
-
I have Mac version 10.9. Adobe elements 12. New camera Nikon D4s. I have uploaded DNG plug in 8.4. Tried to convert my raw photos and it still does not work. How can I upload raw photos taken with my Nikon D4S so that I can edit these photos?
-
I will try to print from word to the Adobe printer. Sometimes it just freezes. I cannot select another printer. It's like all my printers are gone. Sometimes I get an "Unable to Connect" error and sometimes I get "1 document in printer queue". N
-
HUD disappeared (Ap 2)
Any ideas why the HUD doesn't appear even when the menu implies it is visible (i.e. it shows "Hide inspector HUD")? The other HUDs work fine. Thanks
-
Adobe Lightroom app won't open
I signed up for adobe cloud after my free trial of lightroom expired. I downloaded Lightroom and Photoshop and can not get either one to open. I can find the app on my computer, but when I try to open lightroom it goes back to the free trial start
-
EPM system security externalize
Hi Masters, Recently I have setup EPM system 11.1.2.4 for Essbase on my servers. As you all know this version doesn't support for standalone Essbase security and by default all the users/ groups would be maintained through shared services, I have a s