XML Basic Demo - ORA-31001: Invalid resource handle or path name
I have been attempting to install the xml basic demo into Oracle 9.2.0.3. The initial setup appears to go OK, but upon attempting to run '1.1 Make Directories' as the demo user (in my case: xdbdemouser/xdbdemouser), I get the following error message:
ERROR at line 1:
ORA-31001: Invalid resource handle or path name "/home/XDBDEMOUSER/"
ORA-06512: at "XDB.DBMS_XDB", line 168
ORA-06512: at line 5
If I run this script as system or xdb, it appears to work OK. Obviously, the xdbdemouser exists in the database....
Can anyone help ??
thx - matt
Did you run 0.0 and 0.1 before running this step. You must run resetDemo before starting the demo for the first time.
Similar Messages
-
Hi,
When i am trying to parse the xml document using XDB API. I passed the XML file path to the parse function and making use of that at below lines of code.
xmlparser.setBaseDir(prsr, dir);
xmlparser.parse (prsr, dir || '/' || file_in);
In thsi sceneraio it is giving the below error saying invalid path. But i am giving the right path. And even the file having all permission( 777).
Can any please help me why i am getting this error even if i mentioned the correct path? Is there anything related the permission grants?
ORA-31001: Invalid resource handle or path name "/apps/batchadm/files/test.xml"
ORA-06512: at "SYS.XDBURITYPE", line 11
ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 142
ORA-29280: invalid directory path
ORA-29280: invalid directory path
ORA-29280: invalid directory path
ORA-06512: at "XDB.DBMS_XMLPARSER", line 119
ORA-06512: at "SIGCAP.PARSE_DOCUMENT", line 11
Thanks,
shashiCould be privs on OS or database level. Check and see what happens if grant yourself the DBA role. Check if the database software owner (ps -ef | grep pmon) is allowed to write in that directory and/or create a file in that directory. Does the OS make use of ACL's (and/or is, for instance Secure, Linux used)....?
-
FTP-ing to XE: ORA-31001: Invalid resource handle or path name
Hi guys,
Hope you can help me out here. I get a very confusing message during trying to FTP a directory to the /i/ files in XE. The connectiopn works just fine, but when I try to send something to the folder I get the following message:
ORA-31001: Invalid resource handle or path name "/i/themes/eServices"
Any thoughts? Thanks!I haven't checked the docs, but it does remind me of the PL/SQL steps required to do similar things. Maybe you need to mkdir first (could it be XMKD? See below...)
C:\>ftp
ftp> open localhost 2100
Connected to XYZHOST.mycompany.com.
220- XYZHOST
Unauthorised use of this FTP server is prohibited and may be subject to civil an
d criminal prosecution.
220 XYZHOST FTP Server (Oracle XML DB/Oracle Database) ready.
User (XYZHOST.mycompany.com:(none)): sys
331 pass required for SYS
Password:
230 SYS logged in
ftp> pwd
257 "/" is current directory.
ftp> cd i
250 CWD Command successful
ftp> pwd
257 "/i" is current directory.
ftp> quote help
214- The following commands are recognized:
USER PORT RETR MSND* ALLO* DELE SITE* MKD XPWD
PASS PASV STOR MSOM* REST* CWD SYST XMKD CDUP
ACCT* TYPE APPE MSAM* RNFR XCWD STAT* RMD XCUP*
REIN* STRU MLFL* MRSQ* RNTO LIST HELP XRMD STOU
QUIT MODE MAIL* MRCP* ABOR NLST NOOP PWD
214 (*'s => unimplemented)
ftp> -
ORA-31001: Invalid resource handle or path name
I am using Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production.
I need to read xml contents from a file at D:\ on my windows system.
File name is test.xml.
I am using the system account as its a personal server.
I tried as follows:
SQL> CREATE DIRECTORY myxml AS 'D:';
SQL> declare
2 parser xmlparser.Parser;
3 begin
4 xmlparser.parse(parser,'myxml\test.xml');
5 end;
6 /
declare
ERROR at line 1:
ORA-31001: Invalid resource handle or path name "myxml\test.xml"
ORA-06512: at "SYS.XDBURITYPE", line 11
ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 142
ORA-29280: invalid directory path
ORA-29280: invalid directory path
ORA-29280: invalid directory path
ORA-06512: at "XDB.DBMS_XMLPARSER", line 120
ORA-06512: at line 4
D: is a FAT32 partition so Windows 7 offers no acl/permission restrictions. I have also tried from other different locations and the error is the same.
Please help me.907985 wrote:
SQL> CREATE DIRECTORY myxml AS 'D:';
ORA-29280: invalid directory path
ORA-06512: at "XDB.DBMS_XMLPARSER", line 120I haven't tried it, but perhaps it's as simple as error message implies. Try with at least one directory e.g. D:\ or D:\somefoldername in the directory object's path name. -
Invalid resource handle or path name "/cmshome"
I setup an cmsxdb.
a user is created but the following error occured.
"oracle.otnsamples.cmsxdb.exception.CMSAccessException: SQL Exception in getFolderContents for type : FOLDER while getting the list : oracle.jdbc.driver.OracleSQLException: ORA-29902: error in executing ODCIIndexStart() routine
ORA-31001: Invalid resource handle or path name "/cmshome" "
pls how to setup /cmshome
thxDan,
Did you follow the installation instructions in the Install.html file provided in the doc directory?
While configuring the application, did the following statement go through successfully :
SQL>@<SAMPLE_HOME>/sql/install.sql
Else, please post the error message.
This SQL script creates the '/cmshome' folder.
Note : This application works with Oracle9i v9.2.0.2 or higher Database Server only.
Regards
Pushkala -
OCCI Error - ORA-32102: invalid OCI handle
Hi,
I'm completely new to OCCI and Linux and trying to run the simple OCCI program given in oracle site (http://www.oracle.com/technology/tech/oci/occi/occibasic.html) to connect a remote Oracle DB server.
#include <iostream>
#include <occi.h>
using namespace std;
using namespace oracle::occi;
int main()
Environment* env = Environment::createEnvironment();
Connection* conn = env->createConnection("testdb", "testdb", "192.168.10.118:1521/ORADB"); // user, password, url
Statement* stmt = conn->createStatement();
stmt->setSQL("INSERT into FRUITS (fruit, amt) VALUES ('apple', 10)");
stmt->executeUpdate();
conn->terminateStatement(stmt);
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
return 0;
When I try to run it after compilation it gives the following error.
ORA-32102: invalid OCI handle
The error should be in the line: Connection* conn = env->createConnection("testdb", "testdb", "192.168.10.118:1521/ORADB");
I could track it by placing a cout<< there.
Why this is and how can I handle this error? Please post your experience.
ThanksHi,
I found the reason. It may due to the permission level of the user "testdb". When I tried with a different user it worked!
Thanks -
Ora-31001 invalid reference when enqueuing xmltype payload w/ dtd file ref
We're using AQ to store xmltype payloads in an Oracle 10gR2 DB.
We're able to enqueue normal XML payloads without issue, but recently we've attempted to enqueue XML with a DOCTYPE tag with reference to a dtd file. This results in an ora-31001 error stating the file reference for the dtd is invalid.
We've tried moving the dtd around, but are unsure what the oracle dbms thinks is the base dir for the file reference.
I've seen some documentation for xmldb that states the dtd must be located in reference to the xml doc, but as we are enqueueing an xmltype datatype in AQ I'm not sure how this can be applied. I've also seen documentation about using a dbms package to set the base url, but am also not sure how to apply it to this situation.
Anyone able to tell me where I can drop this dtd so that Oracle can reference it when parsing the xml during an enqueue?
Thanks!
TonySorry didn't receive email notification of your response, or I would have replied sooner. Seems like that is happening on the forums sometimes.
Here is a pl/sql block for enqueueing xml into a queue table with an xmltype payload:
BEGIN
declare
enqOpts dbms_aq.enqueue_options_t;
msgProps dbms_aq.message_properties_t;
enqMsgid raw(16);
begin
dbms_aq.enqueue(
queue_name => 'YOUR_QUEUE_NAME',
enqueue_options => enqOpts,
message_properties => msgProps,
payload => XMLType (
'<INSERT XML HERE>'),
msgid => enqMsgId);
commit;
END ;
END;
/ -
We are using the oracle::occi::Timestamp data type to format a timestamp. To create the Timestamp we need to call createEnvironment. We then want to clean up and terminateEnvironment, otherwise we leak memory. I'm receiving an ORA-32102 error and I'm not sure why. Has any one had experience with this? I'm calling timestamp.setNull() before calling terminateEnvironment(env). I am not creating any connections, statements, etc, just a Timestamp.
can you post the sample code?
-
Hi:
I am using 11gR1 on Windows Server 2003, and trying to setup XMLDB web services and got ora-31001. I Did :
begin
DBMS_NETWORK_ACL_ADMIN.DROP_ACL('localhost.xml');
dbms_network_acl_admin.create_acl(
acl => 'localhost.xml'
,description => 'ACL for 127.0.0.1'
,principal => 'myname'
,is_grant => true
,privilege => 'connect');
dbms_network_acl_admin.assign_acl('localhost.xml', '127.0.0.1');
end;
And got following errors:
ORA-31001: Invalid resource handle or path name "/sys/acls/localhost.xml"
ORA-06512: at "XDB.DBMS_XDB", line 331
ORA-06512: at "SYS.DBMS_NETWORK_ACL_ADMIN", line 392
ORA-06512: at line 2
It seems to be complaining about the default directory “/sys/acls”. How do I do it in Windows? It does not help even if I created a "c:\sys\acls"
Thanks in advnace for your help,
RichardThe security structure /issue it was refering too ("/sys/acls/localhost.xml") is not outside the database. It refers to the XDB repository WebDAV resource structures IN the database (so not on OS or otherwise) which are protected via access control lists. Also you need a database user / the database privileges to create and alter ACL settings. Those ACL's ACE's etc themself are stored in an XML file (your dealing with XMLDB, so what else ;-) ).
-
Invalid OCI handle when creating a Blob
I have an application that talks to an Oracle 11gR2 database. I am using the OCCI C++ library. I can call SPs with no problem when they do not contain a Blob. Now I need to pass in a Blob to a SP and I am getting an ORA-32102: invalid OCI handle exception thrown when I call blob->open(OCCI_LOB_WRITEONLY). This same style of code works when I call a SP that does not have a Blob parameter so naturally I am confused. What could be wrong with this?
Thanks,
Aaron
FYI, Here's the code segment in question
Statement *statement;
try {
// create the connection
statement = myconnection->createStatement();
// create the start timestamp
// create the end timestamp
// create the blob of data
blob = new Blob(myconnection);
blob->open(OCCI_LOB_WRITEONLY); // <---------------------------------------- here the exception ORA-32102 is thrown
blob->write(packSize,(uint8_t*)dataBlock,dataBlockSize);
blob->close();
// create statement and set input parameters
statement->setSQL("BEGIN network_analysis.update_network_ip(:1,:2,:3,:4,:5); END;");
statement->setInt(1,dbconnect->networkMetricId);
statement->setTimestamp(2,startTime);
statement->setTimestamp(3,endTime);
statement->setBlob(4,*blob); // setBlob 2nd parameter is a reference
statement->setInt(5,numEntries);
statement->executeUpdate();
} catch (SQLException &e) {
FATALF("%s",e.what());
myconnection->terminateStatement(statement); // free resource
delete blob;Edited by: user8859202 on Dec 16, 2009 12:16 PMUpdate, I found the answer which is streams must be used. The setBinaryStreamMode is used and after executeUpdate, I update the stream.
-
If createConnection hit "connection lost contact" then "invalid OCI handle"
I am facing a peculiar error with OCCI API :
The c++ application make use of OCCI API to interact with 10 different oracle DBs sequentially in loop, but the moment
pConn = pEnv->createConnection(a_usr, a_pass, a_connection) for 1 slow db is hit with "ORA-03135: connection lost contact" then
for all the remaining other db execution I get a constant error - "ORA-32102: invalid OCI handle" i.e
when the control moves to next db then "pConn = pEnv->createConnection" is successful for all the rest db but when
pRes = pStmt->executeQuery() is executed I get this - "ORA-32102: invalid OCI handle" standard error.
The rest of dbs are live, cross checked with SQLPLUS.
The OCCI resources and handlers are initialized in class and remains in memory till the end of the application. In healthy situation the application works fine for all10 dbs and handles all the ORA errors well except for this situation.
Question: When OCCI hit ORA-03135 error in createConnection method , does OCCI releases the memory (or handlers) ..? If yes then with the same "env" handler why OCCI succeeds in making the next connection and we have correct "con" handler, similarly "createStatement" is also successful but this same "statement" handler the executeQuery() fails with -invalid OCI handle ??
In healthy situation all logic works just fine, I am able to get the data that means sql queries and resultset handle code is perfect.
Thanks in advance,
VijayIf you haven't found a solution for this yet, could you post the entire section of code? Please use the code tag to post the code.
-
How to fix "ORA-31038:Invalid value ..." in a XML schema
Hello,
We are in 11gR2 :
select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionWe load XML files based on a registered XML schema.
Here is the top of our XML schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb"
xmlns="http://www.capgemini.com/xsd/projet.xsd"
targetNamespace="http://www.capgemini.com/xsd/projet.xsd"
elementFormDefault="unqualified"
blockDefault="#all">
<xsd:element name="WORKBENCH_PROJECT" xdb:defaultTable="WORKBENCH_PROJECT_TABLE">
<xsd:complexType xdb:maintainDOM="false">
<xsd:sequence>
<xsd:element ref="BaseCalendars"/>
<xsd:element ref="PoolResources"/>
<xsd:element ref="Projects"/>
</xsd:sequence>
...We experience error ORA-31038: Invalid number value ... at the load of the XML, when the focus goes to a string type attribute :
Here it is :
<Task
UID="AJ\'UF`2=_```)O0H;"P!```?P```0" earlyStart="2010-04-20T08:00:00" category="Run"
baseTime="2010-03-26T09:22:00" lateStart="2010-04-20T08:00:00" start="2010-04-20T08:00:00"
proxy="false" earlyFinish="2010-05-12T17:00:00" lateFinish="2010-05-12T17:00:00"
critical="true" status="2" shortName="OASIS 3.2" outlineLevel="4" baseFinish="2010-06-11T17:00:00"
finish="2010-05-12T17:00:00" summary="false" baseStart="2010-05-17T08:00:00" baselineDuration="20.0"
milestone="false" name="OASI 3.2.1 : Association d'un plan à un PFO" fixed="true"
locked="false" key="false" percComp="1.0" totalSlack="0.0" unplanned="false">
<Assignments>
<Assignment
status="2" actualWork="24.0" resourceID="SMOUFLIH" start="2010-04-20T08:00:00" baselineWork="0.0"
Here is the XML schema part where the load fails ( at the attribute *<xsd:attribute name="name" type="xsd:string"/>* ) :
<xsd:element name="Task" xdb:defaultTable="">
<xsd:complexType xdb:maintainDOM="false">
<xsd:sequence>
<xsd:element ref="Assignments" minOccurs="0"/>
<xsd:element ref="BaselineDetails" minOccurs="0"/>
<xsd:element ref="Constraints" minOccurs="0"/>
<xsd:element ref="Notes" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="UID"/>
<xsd:attribute name="taskID" type="xsd:string"/>
<xsd:attribute name="baseFinish" type="xsd:NMTOKEN"/>
<xsd:attribute name="baseStart" type="xsd:NMTOKEN"/>
<xsd:attribute name="baseTime" type="xsd:NMTOKEN"/>
<xsd:attribute name="baselineDuration" type="xsd:decimal"/>
<xsd:attribute name="category" type="xsd:string"/>
<xsd:attribute name="critical" type="xsd:string"/>
<xsd:attribute name="earlyFinish" type="xsd:NMTOKEN"/>
<xsd:attribute name="earlyStart" type="xsd:NMTOKEN"/>
<xsd:attribute name="finish" type="xsd:NMTOKEN"/>
<xsd:attribute name="fixed" type="xsd:string"/>
<xsd:attribute name="guidelines" type="xsd:string"/>
<xsd:attribute name="key" type="xsd:string"/>
<xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
<xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
<xsd:attribute name="lateFinish" type="xsd:NMTOKEN"/>
<xsd:attribute name="lateStart" type="xsd:NMTOKEN"/>
<xsd:attribute name="locked" type="xsd:string"/>
<xsd:attribute name="methodID" type="xsd:string"/>
<xsd:attribute name="milestone" type="xsd:string"/>
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="outlineLevel" type="xsd:integer"/>
<xsd:attribute name="percComp" type="xsd:decimal"/>
<xsd:attribute name="priority" type="xsd:string"/>
<xsd:attribute name="proxy" type="xsd:string"/>
<xsd:attribute name="shortName" type="xsd:string"/>
<xsd:attribute name="start" type="xsd:NMTOKEN"/>
<xsd:attribute name="status" type="xsd:integer"/>
<xsd:attribute name="summary" type="xsd:string"/>
<xsd:attribute name="totalSlack" type="xsd:double"/>
<xsd:attribute name="unplanned" type="xsd:string"/>
<xsd:attribute name="userText1" type="xsd:string"/>
<xsd:attribute name="userText2" type="xsd:string"/>
<xsd:attribute name="userText3" type="xsd:string"/>
<xsd:attribute name="userText4" type="xsd:string"/>
<xsd:attribute name="userText5" type="xsd:string"/>
We know how to fix it manually :
The workaround is to :
remove all "'" in each attribute called "name" But we suppose we need to amend the XML schema with a proper change. And we don't know how to do this.
The weird is that we've never noticed this error earlier on a 11gR1 DB... This error only occurs on our brand new 11.2.0.2
I hope it's clear enough for your understanding.
Do you have any advice ?
Thanks in advance,
OlivierWhat are your NLS Settings
SQL> select *
2 from nls_database_parameters
3 where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET');
PARAMETER SQL> select *
2 from nls_database_parameters
3 where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET');
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CHARACTERSET AL32UTF8
SQL>With my settings I do not see a problem with a cut-down test...
SQL> spool testcase.log
SQL> --
SQL> connect sys/oracle as sysdba
Connected.
SQL> --
SQL> set define on
SQL> set timing on
SQL> --
SQL> def USERNAME = CG
SQL> --
SQL> def PASSWORD = &USERNAME
SQL> --
SQL> -- def XMLDIR = &1
SQL> --
SQL> def USER_TABLESPACE = USERS
SQL> --
SQL> def TEMP_TABLESPACE = TEMP
SQL> --
SQL> drop user &USERNAME cascade
2 /
old 1: drop user &USERNAME cascade
new 1: drop user CG cascade
User dropped.
Elapsed: 00:00:01.72
SQL> grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
2 /
old 1: grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
new 1: grant create any directory, drop any directory, connect, resource, alter session, create view to CG identified by CG
Grant succeeded.
Elapsed: 00:00:00.01
SQL> alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
2 /
old 1: alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
new 1: alter user CG default tablespace USERS temporary tablespace TEMP
User altered.
Elapsed: 00:00:00.01
SQL> connect &USERNAME/&PASSWORD
Connected.
SQL> --
SQL> -- create or replace directory XMLDIR as '&XMLDIR'
SQL> -- /
SQL> var SCHEMAURL1 varchar2(256)
SQL> VAR XMLSCHEMA1 CLOB;
SQL> VAR INSTANCE1 CLOB;
SQL> --
SQL> set define off
SQL> --
SQL> alter session set events='31098 trace name context forever'
2 /
Session altered.
Elapsed: 00:00:00.00
SQL> begin
2 :SCHEMAURL1:= 'http://xmlns.example.com/testcase.xsd';
3 :XMLSCHEMA1 :=
4 '<?xml version="1.0" encoding="UTF-8"?>
5 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" attributeFormDefault="unqualified">
6 <xsd:element name="Task" xdb:defaultTable="TASK_TABLE">
7 <xsd:complexType xdb:maintainDOM="false">
8 <xsd:sequence>
9 <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
10 </xsd:sequence>
11 <xsd:attribute name="UID"/>
12 <xsd:attribute name="taskID" type="xsd:string"/>
13 <xsd:attribute name="baseFinish" type="xsd:NMTOKEN"/>
14 <xsd:attribute name="baseStart" type="xsd:NMTOKEN"/>
15 <xsd:attribute name="baseTime" type="xsd:NMTOKEN"/>
16 <xsd:attribute name="baselineDuration" type="xsd:decimal"/>
17 <xsd:attribute name="category" type="xsd:string"/>
18 <xsd:attribute name="critical" type="xsd:string"/>
19 <xsd:attribute name="earlyFinish" type="xsd:NMTOKEN"/>
20 <xsd:attribute name="earlyStart" type="xsd:NMTOKEN"/>
21 <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
22 <xsd:attribute name="fixed" type="xsd:string"/>
23 <xsd:attribute name="guidelines" type="xsd:string"/>
24 <xsd:attribute name="key" type="xsd:string"/>
25 <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
26 <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
27 <xsd:attribute name="lateFinish" type="xsd:NMTOKEN"/>
28 <xsd:attribute name="lateStart" type="xsd:NMTOKEN"/>
29 <xsd:attribute name="locked" type="xsd:string"/>
30 <xsd:attribute name="methodID" type="xsd:string"/>
31 <xsd:attribute name="milestone" type="xsd:string"/>
32 <xsd:attribute name="name" type="xsd:string"/>
33 <xsd:attribute name="outlineLevel" type="xsd:integer"/>
34 <xsd:attribute name="percComp" type="xsd:decimal"/>
35 <xsd:attribute name="priority" type="xsd:string"/>
36 <xsd:attribute name="proxy" type="xsd:string"/>
37 <xsd:attribute name="shortName" type="xsd:string"/>
38 <xsd:attribute name="start" type="xsd:NMTOKEN"/>
39 <xsd:attribute name="status" type="xsd:integer"/>
40 <xsd:attribute name="summary" type="xsd:string"/>
41 <xsd:attribute name="totalSlack" type="xsd:double"/>
42 <xsd:attribute name="unplanned" type="xsd:string"/>
43 <xsd:attribute name="userText1" type="xsd:string"/>
44 <xsd:attribute name="userText2" type="xsd:string"/>
45 <xsd:attribute name="userText3" type="xsd:string"/>
46 <xsd:attribute name="userText4" type="xsd:string"/>
47 <xsd:attribute name="userText5" type="xsd:string"/>
48 </xsd:complexType>
49 </xsd:element>
50 </xsd:schema>';
51 :INSTANCE1 :=
52 '<Task
53 UID="AJ\'UF`2=_```)O0H;"P!```?P```0" earlyStart="2010-04-20T08:00:00" category="Run"
54 baseTime="2010-03-26T09:22:00" lateStart="2010-04-20T08:00:00" start="2010-04-20T08:00:00"
55 proxy="false" earlyFinish="2010-05-12T17:00:00" lateFinish="2010-05-12T17:00:00"
56 critical="true" status="2" shortName="OASIS 3.2" outlineLevel="4" baseFinish="2010-06-11T17:00:00"
57 finish="2010-05-12T17:00:00" summary="false" baseStart="2010-05-17T08:00:00" baselineDuration="20.0"
58 milestone="false" name="OASI 3.2.1 : Association d'un plan A un PFO" fixed="true"
59 locked="false" key="false" percComp="1.0" totalSlack="0.0" unplanned="false"/>';
60 end;
61 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> set define on
SQL> --
SQL> declare
2 V_XML_SCHEMA xmlType := XMLType(:XMLSCHEMA1);
3 begin
4 DBMS_XMLSCHEMA.registerSchema
5 (
6 SCHEMAURL => :SCHEMAURL1,
7 SCHEMADOC => V_XML_SCHEMA,
8 LOCAL => TRUE,
9 GENBEAN => FALSE,
10 GENTYPES => TRUE,
11 GENTABLES => TRUE,
12 ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
13 );
14 end;
15 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.46
SQL> desc TASK_TABLE
Name Null? Type
TABLE of SYS.XMLTYPE(XMLSchema "http://xmlns.example.com/testcase.xsd" Element "Task") STORAGE Object-relational TYPE "Task3632_T"
SQL> --
SQL> insert into TASK_TABLE values ( XMLTYPE(:INSTANCE1))
2 /
1 row created.
Elapsed: 00:00:00.01
SQL> commit
2 /
Commit complete.
Elapsed: 00:00:00.09and am able to extract the value of the name attribute correct
SQL> select XMLCAST(XMLQUERY('/Task/@name' passing OBJECT_VALUE returning content) as VARCHAR2(64))
2 from TASK_TABLE
3 /
XMLCAST(XMLQUERY('/TASK/@NAME'PASSINGOBJECT_VALUERETURNINGCONTEN
OASI 3.2.1 : Association d'un plan A un PFO
Elapsed: 00:00:00.00Could you try this simplied test in your database...
Edited by: mdrake on Nov 30, 2010 8:36 PM -
ORA-00911:invalid character when loading an XML doc to the XMLType column
We have followed this code snippet: http://www.oracle.com/technology/sample_code/tech/java/codesnippet/xmldb/Example_Code.html#createclob
using the CLOB object to load an XML Document which has more 4000 characters to the XMLType column, we got the error -- ORA-00911:invalid character.
Sound likes an encoding issue? any suggestions would be appreciated.
BTW, we're able to use the TopLink's mapping -- Direct-to-Field to insert an XML String (<4000 characters) to the XMLType column.
Thanks!Try removing the semi-colon at the end of your statement. That is the cause of ORA-911 with DBMS_SQL.PARSE and EXECUTE IMMEDIATE, I don't see why ADO should be any different.
Cheers, APC -
ORA-28137: Invalid FGA audit Handler
I have an Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit running on AIX
I am being hit with the following error when querying a table :
SELECT * FROM ADM.TABLE_A;
ORA-28137: Invalid FGA audit Handler
select * from DBA_AUDIT_POLICIES gives me 9 tables in the ADM schema that we have auditing turned on. Selecting from any of those 9 tables being audited produces the above error. I looked in metalink oracle support but it has no mention of this error in the knowledge base. This forum has no earlier mention of this error too. Documentation wasn't helpful either. Hence just checking if anybody has any information on this error.PF_FUNCTION column in the DBA_AUDIT_POLICIES view had a non-existent function causing the statement failure
-
Handle null value in char infoobject -data type DATE(ora-01722 invalid num)
Hi,
We have a DSO with a info object in the Data fields. The char info object has the data type DATE and most often it has the null value. but some times it has data in it.
When ever we were trying to run a report on the DSO it throws a error as ORA- 01722 INVALID NUMBER.
we tried editing PSA data and placing 00000000 for null values - and had a message invalid date.
suggestions pls
Regards.Hello,
Please check the note given below
https://service.sap.com/sap/support/notes/1327167.
If null value is the problem, change the query setting for not to show the null values. Just add a filter in ZDAT to exclude "NULL"
Thanks
Nidhi
Maybe you are looking for
-
Hi, Anybody tell me why use RMAN CATALOG and what benifits if i have create catalog ?
-
Payment attachment print for ACH Vendors
Hi All, We have a requirement to print the payment adive (attachement) for every ACH payment run per vendor. The payment method country is US and ACH is the method. The program that is used in RFFOEDI1 for the payment methods. Please let me know if t
-
HI major diffrence in select-options and parameters
Hi, Can any one explain me the major diffrence between select options and parameters. I know that in select options we can give a range of values and in parameter one value. Thanks
-
ICloud Photo library storage optimisation
I cannot make this think work..! Open , close IPL buttons...! but ...! same storage in my iPhone and in my iCloud..!
-
Windows 2008 R2 - IPSEC Firewall Configuration
Hi, I want to open IPSEC between two servers with a firewall in between them. Both servers are Windows 2008 R2. I want to limit the IPSEC so that only data can flow from Intranet Server 1 to DMZ server1. (I don't want to allow DMZ server to initi