ORA-31000: Resource 'string' is not an XDB schema document
ORA-31000: Resource '<ACCOUNT><EMPLOYEE><empid>2109</empid><sal>10000</sal></EMP
LOYEE><EMPLOYEE><empid>2109</empid><sal>10000</sal></EMPLOYEE><EMPLOYEE><empid>2
109</empid><sal>10000</sal></EMPLOYEE><EMPLOYEE><empid>2109</empid><sal>10000</s
al></EMPLOYEE><EMPLOYEE><empid>2109</empid><sal>10000</sal></EMPLOYEE><ACCOUNT>'
is not an XDB schema document
this a output that i get. i have populated this string from table and passing it as:
xmlvar := xmltype('ROOT',str_xmlstring);
the function returns the string directly but gives the above output.
Hello mgralike,
Thanks for your link but for me this combination is valid with the getClobVal :
Registers the schema specified as a CLOB
DBMS_XMLSCHEMA.REGISTERSCHEMA(
schemaurl IN VARCHAR2,
schemadoc IN CLOB,
local IN BOOLEAN := TRUE,
gentypes IN BOOLEAN := TRUE,
genbean IN BOOLEAN := FALSE,
force IN BOOLEAN := FALSE,
owner IN VARCHAR2 := NULL,
options IN PLS_INTEGER := 0);
May be It is not working properly in my case.
Witch combination do you use it to register schema in a XMLTYPE column ?
Similar Messages
-
ORA-31000: Resource '' is not an XDB schema document
I have registered HTNG_HotelRoomStatusSearchRQ.xsd with Oracle and am attempting use this schema. I have attached the original xsd, results of
SELECT * FROM user_xml_schemas where SCHEMA_URL = 'HTNG_HotelRoomStatusSearchRQ.xsd' and the block I use to test. It is all labeled in the text document attached.
Please advise.
Thank youHi Odie,
The error occurs on line 52
[Error] Execution (4: 3): ORA-31000: Resource '' is not an XDB schema document ORA-06512: at line 52
IF l_xmltype.isschemabased () = 0
THEN
RAISE non_registered_schema;
END IF;
I get the same exception regardless of the clob I use.
declare
x_RoomStatus CLOB := '<?xml version="1.0" encoding="UTF-8"?>
<HTNG_HotelRoomStatusSearchRQ
xmlns="http://htng.org/2011B"
xmlns:ota="http://www.opentravel.org/OTA/2003/05"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://htng.org/2014B HTNG_HotelRoomStatusSearchRQ.xsd"
TimeStamp="2011-08-24T09:30:47Z">
<PropertyInfo ChainCode="STARWOOD" HotelName="Westin San Diego" BrandCode="WESTIN" HotelCode="2134" HotelCodeContext="CRES"/>
<Room>
<RoomType Floor="12"/>
<HKStatus>VACANT_DIRTY</HKStatus>';
xy_roomstatus clob :='<?xml version="1.0" encoding="UTF-8"?>
<HTNG_HotelRoomStatusSearchRQ EchoToken="6c19dbf8-351b-471f-a33b-be8701eb67ae" TimeStamp="2011-08-24T09:30:47Z" Version="1.0" Target="Production" xmlns="http://htng.org/2011B" xmlns:ota="http://www.opentravel.org/OTA/2003/05">
<PropertyInfo ChainCode="STARWOOD" HotelName="Westin San Diego" BrandCode="WESTIN" HotelCode="2134" HotelCodeContext="CRES"/>
<Room>
<RoomType Floor="12"/>
<HKStatus>VACANT_DIRTY</HKStatus>
</Room>
</HTNG_HotelRoomStatusSearchRQ>';
BEGIN
l_xmltype := xmltype (xy_roomstatus);
v_schema_to_validate := l_xmltype.getrootelement () || '.xsd';
IF l_xmltype.isschemabased () = 0
THEN
RAISE non_registered_schema;
END IF;
end;
Thank you -
Ora-31000 not an XDB schema document error WHY???
I have registered a xmlschema as following
FIRSTLY
I create a procedure schemas as
create or replace procedure schemas is
begin
declare
doc varchar2(1000) := '<schema
targetNamespace="http://localhost/po.xsd"
xmlns:po="http://localhost/po.xsd"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb">
<complexType name="PurchaseOrderType">
<sequence>
<element name="PONum" type="decimal"/>
<element name="Company">
<simpleType>
<restriction base="string">
<maxLength value="100"/>
</restriction>
</simpleType>
</element>
<element name="Item" maxOccurs="1000">
<complexType>
<sequence>
<element name="Part">
<simpleType>
<restriction base="string">
<maxLength value="1000"/>
</restriction>
</simpleType>
</element>
<element name="Price" type="float"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
<element name="PurchaseOrder" type="po:PurchaseOrderType"/>
</schema>';
begin
dbms_xmlschema.registerSchema('http://localhost/po.xsd', doc);
end;
end schemas;
SECONDLY
I execute the schemas procedure as
"exec schemas;"
and the return value show is successful
THIRDLY
I want to create a table based on this registered schema as
"create table po_tab(
id number,
po sys.XMLType
xmltype column po
XMLSCHEMA "http://localhost/PO.xsd"
element "PurchaseOrder";
But the return value is
"ORA-31000: the 'http://localhost/PO.xsd' is not an XDB schema document "
WHY?????XML is case sensitive.. You used ''http://localhost/po.xsd' when registering the schema and "http://localhost/PO.xsd" when attempting to create the table. Which database version are you working with
-
Registering an XML Schema (schema.xsd is not an XDB schema document)
Hello there,
I'm trying to work with XML DB for a few days now, so far i didn't do anything really usefull to me, but i managed to do some general things reading these forums and the documentation. Now however, i encounter this error registering an XML Schema:
ERROR at line 1:
ORA-31000: Resource 'www.ariase.com.xsd' is not an XDB schema document
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 82
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 102
ORA-06512: at line 8I'm registering it with the following code:
DBMS_XMLSCHEMA.registerSchema('www.ariase.com.xsd', XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').getClob(),TRUE,TRUE,FALSE,TRUE);and this is the schema i'm registering:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
<xs:element name="ariase" xdb:defaultTable="ARIASE">
<xs:complexType xdb:maintainDOM="false">
<xs:sequence>
<xs:element name="ligne" type="typeLigne" xdb:SQLName="LIGNE"/>
<xs:element name="debit" type="typeDebit" xdb:SQLName="DEBIT"/>
<xs:element name="central" type="typeCentral" xdb:SQLName="CENTRAL"/>
<xs:element name="technologies" type="typeTechnologies" xdb:SQLName="TECHNOLOGIES"/>
<xs:element name="reseaux" type="typeReseaux" xdb:SQLName="RESEAUX"/>
<xs:element name="degroupage" type="typeDegroupage" xdb:SQLName="DEGROUPAGE"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- Complex types -->
<xs:complexType name="typeLigne" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_LIGNE">
<xs:sequence>
<xs:element name="numero" type="typeNumero"/>
<xs:element name="longeur" type="xs:string"/>
<xs:element name="affaiblissement" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeDebit" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_DEBIT">
<xs:sequence>
<xs:element name="adsl2" type="xs:string"/>
<xs:element name="adsl" type="xs:string"/>
<xs:element name="readsl" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeCentral" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_CENTRAL">
<xs:sequence>
<xs:element name="code" type="xs:string"/>
<xs:element name="nom" type="xs:string"/>
<xs:element name="lieu" type="xs:string"/>
<xs:element name="lignes" type="xs:string"/>
<xs:element name="densite" type="xs:string"/>
<xs:element name="dslam" type="xs:string"/>
<xs:element name="plaque" type="xs:string"/>
<xs:element name="couvertures" type="typeCouvertures"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeCouvertures" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_COUVERTURES">
<xs:sequence maxOccurs="unbounded">
<xs:element name="comunne" type="typeComunne"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeComunne" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_COMUNNE">
<xs:sequence>
<xs:element name="nom" type="xs:string"/>
<xs:element name="couverture" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeTechnologies" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_TECHNOLOGIES">
<xs:sequence maxOccurs="unbounded">
<xs:element name="technologie" type="typeTechnologie"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeTechnologie" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_TECHNOLOGIE">
<xs:sequence>
<xs:element name="nom" type="xs:string"/>
<xs:element name="central" type="xs:string"/>
<xs:element name="ligne" type="xs:string"/>
<xs:element name="reponse" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeReseaux" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_RESEAUX">
<xs:sequence maxOccurs="unbounded">
<xs:element name="reseau" type="typeReseau"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeReseau" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_RESEAU">
<xs:sequence>
<xs:element name="nom" type="xs:string"/>
<xs:element name="adsl" type="xs:string"/>
<xs:element name="adsl2" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeDegroupage" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_DEGROUPAGE">
<xs:sequence maxOccurs="unbounded">
<xs:element name="fournisseur" type="typeFournisseur"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="typeFournisseur" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_FOURNISSEUR">
<xs:sequence>
<xs:element name="nom" type="xs:string"/>
<xs:element name="totale" type="xs:string"/>
<xs:element name="tv" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<!-- Simple types -->
<xs:simpleType name="typeNumero">
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{10}"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>I'm using Oracle XE 2.1.0.00.39. Does this all look a bit OK, or am i way off here. I already managed to register the schema when it had a different name, and when it was in a different folder, so now i don't know what i'm doing wrong.
Also i'd like to know what the best way is to insert 10.000s of XML documents in the database, is it possible to 'upload' them to the server, or will i always have to use an INSERT query to do this?
I hope i gave enough information.
Regards,
StijnTHis looks wrong to me
XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').
xdburitype() is used to reference an XML document that already been loaded into the XDB repository.
You can load the document using FTP or WEBDAV or BFILENAME to any folder that already exists and you have write access to. By default this will probably be '/public' unless you have loaded the xdb_utilities package which is posted in this forum and create a '/home' folder for your user. For instance if you loaded the XSD into '/public' your code would look something like this..
xdburitype('/public/www.ariase.com').getClob()
However that would typically generate an error like this
'SQL> exec DBMS_XMLSCHEMA.registerSchema('www.ariase.com.xsd', XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').getClob(),TRUE,TR
UE,FALSE,TRUE);
BEGIN DBMS_XMLSCHEMA.registerSchema('www.ariase.com.xsd', XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').getClob(),TRUE,TRUE,F
ALSE,TRUE); END;
ERROR at line 1:
ORA-31001: Invalid resource handle or path name
"D:\Stage\Results\XSD_Target\www.ariase.com.xsd"
ORA-06512: at "SYS.XDBURITYPE", line 4
ORA-06512: at line 1
SQL>The error message you are seeing implies that the schema you are registering contains an import or include element with a schemalocation attribute that references 'www.ariase.com.xsd'
Eg
SQL> begin
2 DBMS_XMLSCHEMA.registerSchema('www.ariase.com1.xsd',
3 '<?xml version="1.0" encoding="UTF-8"?>
4 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attri
5 <xs:include schemaLocation="www.ariase.com.xsd"/>
6 <xs:element name="root" type="xs:short">
7 <xs:annotation>
8 <xs:documentation>Comment describing your root element</xs:documentation
9 </xs:annotation>
10 </xs:element>
11 </xs:schema>',
12 TRUE,TRUE,FALSE,TRUE);
13 end;
14
15
16 /
begin
ERROR at line 1:
ORA-31000: Resource 'www.ariase.com.xsd' is not an XDB schema document
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 3
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 14
ORA-06512: at line 2
SQL> -
ORA-31000: Resource 'example_name.xsd' is not an XDB schema document
Morning,
I'm running 11gr2 on OEL 5. I recently joined a project where a lot of work has already been done by a previous dba and xmldb is fairly new to me. I'm trying to register a new xml schema but keep getting the above error. The error is referencing a resource that I'm not even declaring in my statement. See statement below.
BEGIN
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://localhost/xsd/test/collection_test.xsd',
SCHEMADOC => bfilename('XSD_TEST','collection_test.xsd'),
CSID => nls_charset_id('AL32UTF8'));
END;
I've used the FORCE=True option which has worked but then the error shows up again when trying to create a table. I queried the schema url and found that nothing was mapped to it so I deleted it as so:
DBMS_XMLSCHEMA.DELETESCHEMA('http://localhost/xsd/test/collection_test.xsd', DBMS_XMLSCHEMA.DELETE_CASCADE_FORCE);
This worked just fine. Problem now is, I'm still getting the same error when registering schema or creating a table. I thought maybe I could purge t he schema from the database now but I can't query the schema ID to do so. I feel I am stuck now. I've tried to look up solutions online for a day now to no avail. All help is GREATLY appreciated (and rewarded). Thanks!!I don't expect to be able to give you the answer you seek, but I'll ask a couple of questions to help others along.
1) What is your error message? That is useful
2) What does collection_test.xsd look like? Can you post it (or a portion of it, including any includes/imports and all namespaces)?
Reproducible test cases are always nice as they show others what is going on and give a starting point for reproducing/fixing the error. -
ORA-20011: Approximate NDV failed: ORA-31000: Resource Error in Oracle 11g
Hi Friends,
I am using Oracle 11.2.0.1 on linux (x64) and i am getting the following messages in Alert Log / Trace Log.
Please let me know the fix.
Alert Log:
GATHER_STATS_JOB encountered errors. Check the trace file.
Errors in file /u01/app/oracle/diag/rdbms/oraht01/oraht01/trace/oraht01_j001_30852.trc:
ORA-20011: Approximate NDV failed: ORA-31000: Resource '' is not an XDB schema document
ORA-06512: at "XDB.XDB$ACL_PKG_INT", line 18
Trace File entries:
----- Guard Frame Metadata Dump -----
----- Java Stack -----
ORA-20011: Approximate NDV failed: ORA-31000: Resource '' is not an XDB schema document
ORA-06512: at "XDB.XDB$ACL_PKG_INT", line 18
*** 2013-01-21 22:00:36.397
GATHER_STATS_JOB: GATHER_TABLE_STATS('"XDB"','"XDB$ACL"','""', ...)
ORA-20011: Approximate NDV failed: ORA-31000: Resource '' is not an XDB schema document
ORA-06512: at "XDB.XDB$ACL_PKG_INT", line 18
Regards,
DBHi Friends,
Thanks for the info but the referred Thread and the Metalink Notes : 1290722.1 or 1305127.1 doesn't help me.
Trace File :
*** 2013-01-21 22:00:29.760
*** SESSION ID:(28.36753) 2013-01-21 22:00:29.760
*** CLIENT ID:() 2013-01-21 22:00:29.760
*** SERVICE NAME:(SYS$USERS) 2013-01-21 22:00:29.760
*** MODULE NAME:(DBMS_SCHEDULER) 2013-01-21 22:00:29.760
*** ACTION NAME:(ORA$AT_OS_OPT_SY_1144) 2013-01-21 22:00:29.760
SQL> SELECT JOB_NAME,STATUS,ADDITIONAL_INFO FROM DBA_SCHEDULER_JOB_RUN_DETAILS WHERE JOB_NAME = 'ORA$AT_OS_OPT_SY_1144';
JOB_NAME
STATUS
ADDITIONAL_INFO
ORA$AT_OS_OPT_SY_1144
SUCCEEDED
The job show completed but i want to avoid this issue in the Alert.
Regards,
DB -
ORA-31000 when register schema in oracle 10g
I am trying to register a schema in oracle10g rel2. The schema contain "<xs:include schemaLocation="papiNetCommonDefsV2R31.xsd"/>" and papiNetCommonDefsV2R31.xsd is successfully registered in Oracle repository. But i am still getting the error as
1 begin
2 dbms_xmlschema.registerSchema
3 ('http://localhost:8080/home/xdb/xsd/PurchaseOrderV2R31.xsd',
4 xdburitype('/home/xdb/xsd/PurchaseOrderV2R31.xsd').getCLOB(),
5 FALSE,
6 TRUE,
7 FALSE,
8 TRUE
9 );
10* end;
SQL> /
begin
ERROR at line 1:
ORA-31000: Resource 'papiNetCommonDefsV2R31.xsd' is not an XDB schema document
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 20
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 31
ORA-06512: at line 2.
I can view 'papiNetCommonDefsV2R31.xsd' when i run the query - select schema_url from user_xml_schemasHi Glyn,
Can you create a script that recreates the problem?
I have a similiar problem, but can not recreate the exact operations sequance that cause the ORA-07445.
Avi. -
DICOM packaged application install error - XDB schema error
Hi, I have worked through the install readme for the DICOM packaged application and on installing the DICOM_demo_installer.sql supporting objects I get an error when trying to create the table dicom_archive
ORA-31000: Resource 'http://xmlns.oracle.com/ord/meta/dia_demo' is not an XDB schema document
Any pointers appreciated.9503657 (In lieu of your actual name - Please give your name in future),
Where are you trying to install this packaged application (DB Version, DB Edition (EE / SE / SE1 / XE), DB Options, localhost / hosted environment)?
There are specific requirements specified in the readme.txt file provided in the zip file.
There are very specific installation instructions also provided in the readme.txt file.
Unlike most packaged applications this one requires various scripts be run prior to installing the actual application into APEX.
So could you please specify the steps taken to get to this error.
Regards,
David -
Urgent: help me on: ORA-01756: quoted string not properly terminated
I got the following error message when I tried to insert a record into database.
Please help me in this regard. I need to insert upto 2000 bytes.
insert into activity_reason values(1733214, 3234, 23,'P54I8N',to_date('04/19/2006','MM/DD/YYYY'),NULL, NULL, NULL, 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd1600', NULL, NULL, NULL, NULL);
ERROR:
ORA-01756: quoted string not properly terminated
table desc:
SQL> desc activity_reason;
Name Null? Type
CASE_ACTIVITY_ID NOT NULL NUMBER(10)
REASON_CDE NOT NULL NUMBER(5)
QUESTION_ID NOT NULL NUMBER(10)
OPER_ID NOT NULL CHAR(8)
LAST_UPD_TMS DATE
COMMENT_TXT_1 VARCHAR2(240)
COMMENT_TXT_2 VARCHAR2(240)
COMMENT_TXT_3 VARCHAR2(240)
COMMENT_TXT_4 VARCHAR2(2000)
LETTER_TXT_1 VARCHAR2(240)
LETTER_TXT_2 VARCHAR2(2000)
PATIENT_LETTER_TXT_1 VARCHAR2(240)
PATIENT_LETTER_TXT_2 VARCHAR2(2000)Hi,
It's work fine on my 9.2.0.4 database.
SQL> create table activity_reason
2 (CASE_ACTIVITY_ID NUMBER(10) NOT NULL,
3 REASON_CDE NUMBER(5) NOT NULL,
4 QUESTION_ID NUMBER(10) NOT NULL,
5 OPER_ID CHAR(8) NOT NULL,
6 LAST_UPD_TMS DATE,
7 COMMENT_TXT_1 VARCHAR2(240),
8 COMMENT_TXT_2 VARCHAR2(240),
9 COMMENT_TXT_3 VARCHAR2(240),
10 COMMENT_TXT_4 VARCHAR2(2000),
11 LETTER_TXT_1 VARCHAR2(240),
12 LETTER_TXT_2 VARCHAR2(2000),
13 PATIENT_LETTER_TXT_1 VARCHAR2(240),
14 PATIENT_LETTER_TXT_2 VARCHAR2(2000));
Table created.
SQL>
SQL> insert into activity_reason values(1733214, 3234, 23,'P54I8N',to_date('04/19/2006','MM/DD/YYYY'),NULL, NULL, NULL, 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd1600', NULL, NULL, NULL, NULL);
1 row created.
SQL> What is your db version ?
Nicolas. -
ORA-01756: quoted string not properly terminated (using (q) operator
Hi
I tried this example but giving the error
select q'( it's done )' from dualbut the following is working
select q'( it''s done )' from dualIf i need to use it''s done then what is the use of (q) operator
Thanks..
Edited by: josh1612 on May 10, 2010 11:09 PMWhat is your database version ? Q-quote operator introduced in Oracle 10g and see the example, you might be facing this error.
This is in SQL *PLUS V 9.2.0.1.0
SQL> select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> select q'( it's done )' from dual;
ERROR:
ORA-01756: quoted string not properly terminated
SQL*Plus: Release 10.2.0.1.0 - Production on Tue May 11 12:58:12 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn hr/hr
Connected.
SQL> select q'( it's done )' from dual;
Q'(IT'SDONE
it's doneEdited by: Saubhik on May 11, 2010 12:28 AM -
ORA-06502 character string buffer too small, works in query not procedure
The following query works prefect as a single query:
with t as (select steroid_start_date as the_date from treatments where patientid = 1378 and visitnumber = 0)
select max(case when instr(mon, '/') > 0 then NULL else mon end) mon,
max(case when instr(yr, '/') > 0 then NULL else yr end) yr
from ( select the_date, substr(the_date, nvl(last_pos,1), pos-1) mon, substr(the_date, pos+1) yr
from ( select t.*,
instr(the_date, '/', 1, lvl) pos,
lag(instr(the_date, '/', 1, lvl))
over (
partition by the_date
order by instr(the_date, '/', 1, lvl)
) last_pos
from t, (
select 1 lvl
from dual
UNION ALL
select 2 lvl
from dual
) b
where instr(the_date, '/', 1, lvl) > 0
);I have a procedure contains:
CREATE OR REPLACE PROCEDURE update_steroid_start_date(patid number, visit number)
IS
mon varchar2(3);
yr varchar2(3);
date1 varchar2(12);
insert_date varchar2(12);
BEGIN
select steroid_start_date into date1 from treatments where patientid = patid and visitnumber = visit;
with t as (select date1 the_date from dual)
select max(case when instr(mon, '/') > 0 then NULL else mon end),
max(case when instr(yr, '/') > 0 then NULL else yr end) into mon, yr
from ( select the_date, substr(the_date, nvl(last_pos,1), pos-1) mon, substr(the_date, pos+1) yr
from ( select t.*,
instr(the_date, '/', 1, lvl) pos,
lag(instr(the_date, '/', 1, lvl))
over (
partition by the_date
order by instr(the_date, '/', 1, lvl)
) last_pos
from t, (
select 1 lvl
from dual
UNION ALL
select 2 lvl
from dual
) b
where instr(the_date, '/', 1, lvl) > 0
);when I try to execute this procedure, I am getting ORA-06502 character string buffer too smal on the line
with t as (select date1 the_date from dual)why is that? I am trying to break user input 1/2000, sometimes junk (1/ , /2000), and apply some logic so they will be 01/01/2000, NULL, 01/01/2000
Edited by: OracleNoob on Feb 17, 2009 10:58 AMHi,
That error occurs when the variables that are being set are too short to hold the entire value being selected.
Either make the variables longer, or the columns shorter.
If you need mnore help, post
(1) The version of Oracle (and any other relevant software) you're using
(2) A little sample data (just enough to show what the problem is) from all the relevant tables
(3) The results you want from that data
(4) Your formatted code
(5) The full error message(s), including line number
Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
Formatted tabular output is okay for (3) and essential for (4). Type {code} before and after the tabular text, to preserve spacing. -
ORA-26744: STREAMS capture process "STRING" does not support "STRING"
Hi All,
I have configured oracle streams using Note "How To Setup One-Way SCHEMA Level Streams Replication [ID 301431.1]" at schema level
All the changes are getting reflected perfectly and was running smooth, but today suddenly I faced the below error and capture is aborted
ORA-26744: STREAMS capture process "STREAM_CAPTURE" does not support "AMSATMS_PAWS"."B_SEARCH_PREFERENCE" because of the following reason:
ORA-26783: Column data type not supported
Couple of suggestions on forum are to add a negative ruleset, please suggest me how do i add a negative rule set and if this is added to negative ruleset then how the changes to this table will reflect in target database...?
Please help me...
ThanksI do not have any idea why it treats your XMLTYPE stored as CLOB like a XMLTYPE binary. From the doc, we read :
http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/ap_restrictions.htm#BABGIFEA
Unsupported Data Types for Capture Processes
A capture process does not capture the results of DML changes to columns of the following data types:
* SecureFile CLOB, NCLOB, and BLOB
* BFILE
* ROWID
* User-defined types (including object types, REFs, varrays, and nested tables)
* XMLType stored object relationally or as binary XML <----------------------------
* The following Oracle-supplied types: Any types, URI types, spatial types, and media types
A capture process raises an error if it tries to create a row LCR for a DML change to a column of
an unsupported data type. When a capture process raises an error, it writes the LCR that caused
the error into its trace file, raises an ORA-26744 error, and becomes disabled. For your support
NOTE:556742.1 - Extended Datatype Support (EDS) for Streams
to exclude the table:
NOTE:239623.1 - How To Exclude A Table From Schema Capture And Replication When Using Schema Level Streams Replication
Sound like a specific patch. You did not stated which version of Oracle you are running. -
Good afternoon! I have a problem with creating a wallet for TDE.
Oracle Version 11.2.0.2.0.
SQLNET.ORA is :
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ADR_BASE = /app/oracle
# TO SWITCH OFF ORACLE ADR FEATURE
# DIAG_ADR_ENABLED=off
DIAG_SIGHANDLER_ENABLED=FALSE
DIAG_RESTRICTED=TRUE
TRACE_LEVEL_SERVER=admin
TRACE_LEVEL_CLIENT=admin
TRACE_DIRECTORY_SERVER=/app/oracle/product/11.2.0/db_1/network/log
TRACE_DIRECTORY_CLIENT=/app/oracle/product/11.2.0/db_1/network/log
TRACE_FILE_CLIENT=cli
TRACE_FILE_SERVER=srv
TRACE_UNIQUE_CLIENT=off
SQLNET.EXPIRE_TIME = 10
SQLNET.INBOUND_CONNECT_TIMEOUT = 20
SQLNET.ENCRYPTION_SERVER = REQUESTED
SQLNET.ENCRYPTION_CLIENT = REQUESTED
SQLNET.CRYPTO_SEED = 'KakdlkLAKMXM0000sdsdsadadeffdmsdmdkmdv'
SQLNET.ENCRYPTION_TYPES_SERVER= (AES256,RC4_256,3DES112,DES)
SQLNET.CRYPTO_CHECKSUM_SERVER = REQUESTED
SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER = (SHA1,MD5)
ENCRYPTION_WALLET_LOCATION =
(SOURCE=
(METHOD=file)
(METHOD_DATA=
(DIRECTORY=/app/oracle/admin/orcl/wallet)
I've creted wallet by command :
alter system set encryption key identified by "sdsdsdsds";
After that i can close and reopen this wallet , it's ok. But i can't create crypted tablaspace :
CREATE TABLESPACE RMD DATAFILE '/oradata/orcl/TDE.dbf' SIZE 600M
AUTOEXTEND ON NEXT 100M MAXSIZE 2000M
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K ENCRYPTION USING 'AES256' DEFAULT STORAGE (ENCRYPT);
i've got an error ORA-28374: typed master key not found in wallet
My wallet looks like :
Requested Certificates:
Subject: CN=oracle
User Certificates:
Oracle Secret Store entries:
ORACLE.SECURITY.DB.ENCRYPTION.ASSSDSeFDX08Evy6Mco2yhXsAsdsdsdsdsdefdfdfdfddfddfdfdfAAAA
ORACLE.SECURITY.DB.ENCRYPTION.MASTERKEY
Trusted Certificates:
As i uderstood there should be also entry like ORACLE.SECURITY.TS.ENCRYPTION. But why this didn't created into wallet by command : alter system set encryption key identified by "sdsdsdsds" ?
Thanks!
Edited by: user5819915 on 13-Jan-2012 03:25Hi there,
first, "SQLNET.CRYPTO_SEED = 'KakdlkLAKMXM0000sdsdsadadeffdmsdmdkmdv" is no longer needed, the DB creates a seed itself and ignores this string.
Then, on to TDE ...: These things happen if you had a wallet before, and that wallet was deleted; now if you create a new wallet, the TS MK is missing. Looks like you didn't encrypt any data yet. You might see if you get https://updates.oracle.com/download/8682102.html for your DB version; apply the patch, decrypt all data, cycle through all log files and then create a new wallet. That might work, but I can't promise.
Peter -
ORA-12514: TNS:listener does not currently know of service requested
While connecting "sqlplus SYSADM/SYSADM@HCM" I am getting the below error:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Installation background:
Windows 7 l(64-bit) laptop.
Created linux virtualbox to installl peoplesoft VM templates.
so far installed: Oracle11gR2.vdi and HCMDB.vdi on the linux virtualbox.
Followed the steps exactly what it is in the link below: Got the above error in page 4 of the link at connecting to database via sqlplus.
http://bloggingaboutoracleapplications.org/running-oracle-vm-templates-oracle-enterprise-linux-guide-part-1-7/
Below provided initHCM.ora, tnsnames.ora, listerner.ora and some responses I tried. I could not figure out what causing the issue even after researching in web.
Your help would be highly appreciated.
tnsnames.ora:
=============
# tnsnames.ora Network Configuration File:
HCM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hcmdb91)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = HCM)
Listener.ora:
=============
# listener.ora Network Configuration File:
/u01/app/oracle/product/11.2.0.x/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hcmdb91)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
initHCM.ora:
============
DB_FILES =256
OPEN_CURSORS = 1000
db_block_size = 8192
remote_login_passwordfile = NONE
undo_tablespace=PSUNDOTS
NLS_LENGTH_SEMANTICS=CHAR
# Cache and I/O
#db_block_size=
db_file_multiblock_read_count=16
# Database Identification
# db_domain=us.oracle.com
# db_name=
# Diagnostics and Statistics
#background_dump_dest=
#core_dump_dest=
#user_dump_dest=
# Job Queues
job_queue_processes=10
# Processes and Sessions
processes=150
# SGA Memory
sga_target=287309824
# Security and Auditing
#audit_file_dest=
#remote_login_passwordfile=EXCLUSIVE
# Shared Server
dispatchers="(PROTOCOL=TCP) (SERVICE=XDB)"
# Sort, Hash Joins, Bitmap Indexes
pga_aggregate_target=95420416
# System Managed Undo and Rollback Segments
undo_management=AUTO
#undo_tablespace=
unnestsubquery=false
# Miscellaneous
compatible=11.2.0.2.0
control_files=(/u01/app/oracle/oradata/HCM/control01.ctl)
DB_NAME=HCM
[oracle@hcmdb91 ~]$ tnsping hcm
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013
07:40:37
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
hcmdb91)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME =
HCM)))
OK (20 msec)
[oracle@hcmdb91 ~]$
[oracle@hcmdb91 ~]$ tnsping hcm
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013
07:40:37
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
hcmdb91)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME =
HCM)))
OK (20 msec)
[oracle@hcmdb91 ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:41:32
Copyright (c) 1991, 2010, Oracle. All rights reserved.
TNS-01106: Listener using listener name LISTENER has already been started
[oracle@hcmdb91 ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:42:20
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hcmdb91)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 28-MAR-2013 07:29:21
Uptime 0 days 0 hr. 13 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/u01/app/oracle/product/11.2.0.x/db_1/network/admin/listener.ora
Listener Log File
/u01/app/oracle/product/11.2.0.x/db_1/log/diag/tnslsnr/hcmdb91/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hcmdb91.example.com
)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
[oracle@hcmdb91 ~]$ lsnrctl services
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:42:44
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hcmdb91)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@hcmdb91 ~]$
[oracle@hcmdb91 ~]$ sqlplus SYSADM/SYSADM@HCM
SQL*Plus: Release 11.2.0.2.0 Production on Thu Mar 28 07:44:25 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in
connect descriptor
My guess is that the database service "HCM" is not up and running but not sure how to make up and running. Even I could not find it listed in the linux services list.
Note: Able to login sqlplus using "sqlplus sys/sys as sysdba" but failing to access database table as "select * from PSRECDEFN;"
thanks
Espii.
Edited by: 995437 on Mar 28, 2013 6:52 AM
Edited by: 995437 on Mar 28, 2013 6:59 AMHi Nicolas,
I have no luck and the error still persists.
I have set the "export ORACLE_SID=HCM" from root user and oracle user too.
I guess, I have already loaded database when I ran the "cd /opt/oracle/psft/vm
./oraclevm-template.sh"
The outcome of the above script as similar as below:
Creating
ovm_configure_pre
CreateVirtualEnvironment
/u01/scripts/db-reconfig.sh: line 238: ovm_set_password: command not found
/u01/scripts/db-reconfig.sh: line 239: ovm_configure_network: command not found
INFO:
Starting Oracle database reconfiguration.
Oracle Database Configuration
This will configure on-boot properties of Oracle Database.
The following questions will determine whether the database should be
starting upon system boot, the ports it will use.
Press <Enter> to accept the defaults.
Do you want to relink binaries? (y/n) [n] y
Specify a port that will be used for the database listener [1521]:
Do you want Oracle Database to be started on boot (y/n) [y]:y
Wrote to /etc/sysconfig/oracle11g
Relinking Oracle Binaries...
Oracle Relinking Completed Successfully
Logs: /home/oracle/relink.log
Running orainstRoot.sh and root.sh...
set 2GB tmpfs
Enabling Oracle Database service
Configuration Completed Successfully.
Enter the name of the database SID [TESTDB]:HCM
ORACLE instance started.
Total System Global Area 288104448 bytes
Fixed Size 2225832 bytes
Variable Size 104859992 bytes
Database Buffers 176160768 bytes
Redo Buffers 4857856 bytes
Control file created.
Database altered.
Tablespace altered.
Tablespace altered.
Tablespace altered.
1 row updated.
160 rows updated.
Commit complete.
Kumar - I have found no sqlnet.ora file exist in the $ORACLE_HOME/NETWORK/ADMIN
Edited by: 995437 on Mar 28, 2013 9:15 AM -
Format of the initialization string does not conform to specification starting at index 97.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Format of the initialization string does not conform to specification starting at index 97.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.Hello,
The Windows Desktop Perfmon and Diagnostic tools forum is to discuss performance monitor (perfmon), resource monitor (resmon), and task manager, focusing on HOW-TO, Errors/Problems, and usage scenarios.
Since your post is off-topic, I am moving it to the
off topic forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})
Maybe you are looking for
-
Hooking up my Ipod to my New Calibur!
Ok so I just bought a new Dodge Calibur, it has an AUX plug in it for my Iopd, but I didn't get anything to plug the Ipod into it, nothing, so now I'm stuck with an Ipod and new car, but I can't listen to my Ipod from my car, I can't find anywhere th
-
F Keyboard shortcuts disabled on Mac OS 10.5.4 in Indesign CS3
Hi , I have this same problem with My Mac Laptop at Home and my Mac at work. The default F keyboard shortcuts no longer work. For example, if I wanted to bring up the paragraph styles panel which is F11 I get the volume control for the Mac. I have tr
-
Oracle BPEL Designer with JDev
Can I suggest that the JDev BPEL designer checks for process name validity BEFORE all other error checking? Otherwise, a poor developer might find that their entire project is unusable because they've introduced a period in the project name... Still,
-
Why does the system need two average costs - 'Average' and 'Average Rates'?
Hello Gurus! The documentation does give definitions for 'Average' and 'Average Rates' cost types, but at a very basic level. http://docs.oracle.com/cd/A60725_05/html/comnls/us/cst/settask.htm I would like to know why the system needs two costs? How
-
How to create portal pages for GUI data updates
Hi, We have a simple (seems) requirement to develop a portal page to provide GUI for users to update oracle tables. No valdiations or any anything, just plain inserts into the table. How do i approach this from step1. ( I have the portal installed an