ORA-31061: XDB error
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 64-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Productionnot sure what I am doing wrong here. (I don't use xml often so I'm sure it is something obvious)
ok created the following table and sequence
CREATE TABLE saved_queries
seq_cd NUMBER,
user_id VARCHAR2 (50 BYTE) NOT NULL,
query_name VARCHAR2 (200 BYTE) NOT NULL,
create_dt DATE NOT NULL,
last_update_dt DATE NOT NULL,
query_info SYS.XMLTYPE NOT NULL
ALTER TABLE saved_queries ADD (
CONSTRAINT SAVED_QUERIES_PK
PRIMARY KEY (SEQ_CD));
ALTER TABLE saved_queries ADD (
CONSTRAINT SAVED_QUERIES_UQ unique (user_id , query_name ));
CREATE SEQUENCE saved_queries_seq
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE;however when I try my insert
INSERT INTO saved_queries (seq_cd,
user_id,
query_name,
create_dt,
last_update_dt,
query_info)
VALUES (
saved_queries_seq.nextval,
'Bdellinger',
'My First Query',
SYSDATE,
SYSDATE,
sys.xmltype.
createxml (
'<query>
<DropDownListAssignedTo>Bryan Dellinger</DropDownListAssignedTo>
< DropDownListTaskStatus>In-Progress</DropDownListTaskStatus>
< DropDownListTaskStatus>Pending</DropDownListTaskStatus>
</query>'));I receive
ORA-31061: XDB error: XML event error
ORA-19202: Error occurred in XML processing
In line 3 of orastream:
LPX-00231: invalid character 32 (' ') found in a Name or Nmtokenthanks for your help
let me know if you need any more info.
Could it be the space after the '<' in this part:
< DropDownListTaskStatus>In-Progress</DropDownListTaskStatus>
< DropDownListTaskStatus>Pending</DropDownListTaskStatus>?
Similar Messages
-
CTAS causes ORA-31061: XDB error: XML event error
The query works, the CTAS fails:
CREATE TABLE Moocows AS
ERROR at line 1:
ORA-31061: XDB error: XML event error
ORA-19202: Error occurred in XML processing
In line 1 of orastream:
LPX-00245: extra data after end of document
CREATE TABLE Moocows AS
WITH
XML(Document)
AS
SELECT
--Amazon_PAPI.Get_Response(Amazon_PAPI.ItemLookup('032244047145', 'UPC', 'Toys', '5011363525517', 'EAN', 'Toys'))
--Amazon_PAPI.Get_Response(Amazon_PAPI.ItemLookup('032244047145', 'UPC', 'All', '5011363525517', 'EAN', 'All'))
Amazon_PAPI.Get_Response(Amazon_PAPI.ItemSearch('Hungry Hungry Hippos', 'All', '', '', '', 'Mastermind', 'All', '', '', ''))
FROM
Dual
SELECT
Items.Id,
Items.Code,
Items.Message,
Items.Isvalid,
Item.Id Item_Id,
Item.ASIN,
Item.DetailPageURL,
XMLAGG(Item.ItemLink) ItemLink,
Item.SmallImage_URL,
Item.SmallImage_Height,
Item.SmallImage_Height_Units,
Item.SmallImage_Width,
Item.SmallImage_Width_Units,
Item.MediumImage_URL,
Item.MediumImage_Height,
Item.MediumImage_Height_Units,
Item.MediumImage_Width,
Item.MediumImage_Width_Units,
Item.LargeImage_URL,
Item.LargeImage_Height,
Item.LargeImage_Height_Units,
Item.LargeImage_Width,
Item.LargeImage_Width_Units,
XMLAGG(Item.ImageSet) ImageSet,
XMLAGG(Item.Actor) Actor,
XMLAGG(Item.Artist) Artist,
Item.AspectRatio,
Item.AudienceRating,
XMLAGG(Item.AudioFormat) AudioFormat,
XMLAGG(Item.Author) Author,
Item.Binding,
Item.Brand,
XMLAGG(Item.CatalogNumberListElement) CatalogNumberListElement,
XMLAGG(Item.Category) Category,
Item.CEROAgeRating,
Item.ClothingSize,
Item.Color,
XMLAGG(Item.Creator) Creator,
XMLAGG(Item.Director) Director,
Item.EAN,
XMLAGG(Item.EANListElement) EANListElement,
Item.Edition,
XMLAGG(Item.EISBN) EISBN,
Item.EpisodeSequence,
Item.ESRBAgeRating,
XMLAGG(Item.Feature) Feature,
XMLAGG(Item.Format) Format,
Item.Genre,
Item.HardwarePlatform,
Item.HazardousMaterialType,
Item.IsAdultProduct,
Item.IsAutographed,
Item.ISBN,
Item.IsEligibileForTrade,
Item.IsMemorabilia,
Item.IssuesPerYear,
XMLAGG(Item.ItemDimensions) ItemDimensions,
Item.ItemPartNumber,
Item.Label,
XMLAGG(Item.Langauge) Langauge,
Item.LegalDisclaimer,
Item.ListPrice,
Item.MagazineType,
Item.Manufacturer,
Item.ManufacturerMaximumAge,
Item.ManufacturerMinimumAge,
Item.ManufacturerPartsWarrantyDesc,
Item.MediaType,
Item.Model,
Item.ModelYear,
Item.MPN,
Item.NumberOfDiscs,
Item.NumberOfIssues,
Item.NumberOfItems,
Item.NumberOfPages,
Item.NumberOfTracks,
Item.OperatingSystem,
Item.PackageDimensions_Height,
Item.PackageDimensions_Height_Units,
Item.PackageDimensions_Length,
Item.PackageDimensions_Length_Units,
Item.PackageDimensions_Weight,
Item.PackageDimensions_Weight_Units,
Item.PackageDimensions_Width,
Item.PackageDimensions_Width_Units,
Item.PackageQuantity,
Item.PartNumber,
XMLAGG(Item.PictureFormat) PictureFormat,
XMLAGG(Item.Platform) Platform,
Item.ProductGroup,
Item.ProductTypeName,
Item.ProductTypeSubcategory,
Item.PublicationDate,
Item.Publisher,
Item.RegionCode,
Item.ReleaseDate,
Item.RunningTime,
Item.SeikodoProductCode,
Item.Item_Size,
Item.SKU,
Item.Studio,
Item.SubscriptionLength,
Item.Title,
Item.TrackSequence,
Item.TradeInValue,
Item.UPC,
XMLAGG(Item.UPCListElement) UPCListElement,
Item.Warranty,
Item.WEEETaxValue
FROM
XMLTABLE
XMLNAMESPACES(DEFAULT 'http://webservices.amazon.com/AWSECommerceService/2011-08-01'),
'//OperationRequest/Errors/Error
| //Items'
PASSING
(SELECT Document FROM XML)
COLUMNS
Id FOR ORDINALITY,
Code VARCHAR2(0050) PATH 'Code',
Message VARCHAR2(4000) PATH 'Message',
IsValid VARCHAR2(005) PATH 'Request/IsValid',
Item XMLTYPE PATH 'Item'
) Items
LEFT JOIN
XMLTABLE
XMLNAMESPACES(DEFAULT 'http://webservices.amazon.com/AWSECommerceService/2011-08-01'),
'/Item'
PASSING
Items.Item
COLUMNS
Id FOR ORDINALITY,
ASIN VARCHAR2(0010) PATH 'ASIN',
DetailPageURL VARCHAR2(0256) PATH 'DetailPageURL',
ItemLink XMLTYPE PATH 'ItemLinks/ItemLink',
SmallImage_URL VARCHAR2(0256) PATH 'SmallImage/URL',
SmallImage_Height NUMBER(4) PATH 'SmallImage/Height',
SmallImage_Height_Units VARCHAR2(0006) PATH 'SmallImage/Height/@Units',
SmallImage_Width NUMBER(4) PATH 'SmallImage/Width',
SmallImage_Width_Units VARCHAR2(0006) PATH 'SmallImage/Width/@Units',
MediumImage_URL VARCHAR2(0256) PATH 'MediumImage/URL',
MediumImage_Height NUMBER(4) PATH 'MediumImage/Height',
MediumImage_Height_Units VARCHAR2(0006) PATH 'MediumImage/Height/@Units',
MediumImage_Width NUMBER(4) PATH 'MediumImage/Width',
MediumImage_Width_Units VARCHAR2(0006) PATH 'MediumImage/Width/@Units',
LargeImage_URL VARCHAR2(0256) PATH 'LargeImage/URL',
LargeImage_Height NUMBER(4) PATH 'LargeImage/Height',
LargeImage_Height_Units VARCHAR2(0006) PATH 'LargeImage/Height/@Units',
LargeImage_Width NUMBER(4) PATH 'LargeImage/Width',
LargeImage_Width_Units VARCHAR2(0006) PATH 'LargeImage/Width/@Units',
ImageSet XMLTYPE PATH 'ImageSets/ImageSet',
Actor XMLTYPE PATH 'ItemAttributes/Actor',
Artist XMLTYPE PATH 'ItemAttributes/Artist',
AspectRatio VARCHAR2(0020) PATH 'ItemAttributes/AspectRatio',
AudienceRating VARCHAR2(0020) PATH 'ItemAttributes/AudienceRating',
AudioFormat XMLTYPE PATH 'ItemAttributes/AudioFormat',
Author XMLTYPE PATH 'ItemAttributes/Author',
Binding VARCHAR2(0050) PATH 'ItemAttributes/Binding',
Brand VARCHAR2(4000) PATH 'ItemAttributes/Brand',
CatalogNumberListElement XMLTYPE PATH 'ItemAttributes/CatalogNumberList/CatalogNumberListElement',
Category XMLTYPE PATH 'ItemAttributes/Category',
CEROAgeRating VARCHAR2(0020) PATH 'ItemAttributes/CEROAgeRating',
ClothingSize VARCHAR2(0050) PATH 'ItemAttributes/ClothingSize',
Color VARCHAR2(0100) PATH 'ItemAttributes/Color',
Creator XMLTYPE PATH 'ItemAttributes/Creator',
Department VARCHAR2(0050) PATH 'ItemAttributes/Department',
Director XMLTYPE PATH 'ItemAttributes/Director',
EAN NUMBER(15) PATH 'ItemAttributes/EAN',
EANListElement XMLTYPE PATH 'ItemAttributes/EANList/EANListElement',
Edition VARCHAR2(0020) PATH 'ItemAttributes/Edition',
EISBN XMLTYPE PATH 'ItemAttributes/EISBN',
EpisodeSequence VARCHAR2(0020) PATH 'ItemAttributes/EpisodeSequence',
ESRBAgeRating VARCHAR2(0020) PATH 'ItemAttributes/ESRBAgeRating',
Feature XMLTYPE PATH 'ItemAttributes/Feature',
Format XMLTYPE PATH 'ItemAttributes/Format',
Genre VARCHAR2(0050) PATH 'ItemAttributes/Genre',
HardwarePlatform VARCHAR2(0020) PATH 'ItemAttributes/HardwarePlatform',
HazardousMaterialType VARCHAR2(0050) PATH 'ItemAttributes/HazardousMaterialType',
IsAdultProduct VARCHAR2(0005) PATH 'ItemAttributes/IsAdultProduct',
IsAutographed VARCHAR2(0005) PATH 'ItemAttributes/IsAutographed',
ISBN VARCHAR2(0013) PATH 'ItemAttributes/ISBN',
IsEligibileForTrade VARCHAR2(0005) PATH 'ItemAttributes/IsEligibileForTrade',
IsMemorabilia VARCHAR2(0005) PATH 'ItemAttributes/IsMemorabilia',
IssuesPerYear VARCHAR2(0050) PATH 'ItemAttributes/IssuesPerYear',
ItemDimensions XMLTYPE PATH 'ItemAttributes/ItemDimensions',
ItemPartNumber VARCHAR2(0255) PATH 'ItemAttributes/ItemPartNumber',
Label VARCHAR2(4000) PATH 'ItemAttributes/Label',
Langauge XMLTYPE PATH 'ItemAttributes/Languages/Langauge',
LegalDisclaimer VARCHAR2(4000) PATH 'ItemAttributes/LegalDisclaimer',
ListPrice VARCHAR2(0020) PATH 'ItemAttributes/ListPrice',
MagazineType VARCHAR2(0020) PATH 'ItemAttributes/MagazineType',
Manufacturer VARCHAR2(4000) PATH 'ItemAttributes/Manufacturer',
ManufacturerMaximumAge VARCHAR2(0050) PATH 'ItemAttributes/ManufacturerMaximumAge',
ManufacturerMinimumAge VARCHAR2(0050) PATH 'ItemAttributes/ManufacturerMinimumAge',
ManufacturerPartsWarrantyDesc VARCHAR2(4000) PATH 'ItemAttributes/ManufacturerPartsWarrantyDesc',
MediaType VARCHAR2(0020) PATH 'ItemAttributes/MediaType',
Model VARCHAR2(0100) PATH 'ItemAttributes/Model',
ModelYear NUMBER(4) PATH 'ItemAttributes/ModelYear',
MPN VARCHAR2(0255) PATH 'ItemAttributes/MPN',
NumberOfDiscs NUMBER(3) PATH 'ItemAttributes/NumberOfDiscs',
NumberOfIssues NUMBER(3) PATH 'ItemAttributes/NumberOfIssues',
NumberOfItems NUMBER(7) PATH 'ItemAttributes/NumberOfItems',
NumberOfPages NUMBER(4) PATH 'ItemAttributes/NumberOfPages',
NumberOfTracks NUMBER(3) PATH 'ItemAttributes/NumberOfTracks',
OperatingSystem VARCHAR2(20) PATH 'ItemAttributes/OperatingSystem',
PackageDimensions_Height NUMBER(6) PATH 'ItemAttributes/PackageDimensions/Height',
PackageDimensions_Height_Units VARCHAR2(0018) PATH 'ItemAttributes/PackageDimensions/Height/@Units',
PackageDimensions_Length NUMBER(6) PATH 'ItemAttributes/PackageDimensions/Length',
PackageDimensions_Length_Units VARCHAR2(0018) PATH 'ItemAttributes/PackageDimensions/Length/@Units',
PackageDimensions_Weight NUMBER(6) PATH 'ItemAttributes/PackageDimensions/Weight',
PackageDimensions_Weight_Units VARCHAR2(0018) PATH 'ItemAttributes/PackageDimensions/Weight/@Units',
PackageDimensions_Width NUMBER(6) PATH 'ItemAttributes/PackageDimensions/Width',
PackageDimensions_Width_Units VARCHAR2(0018) PATH 'ItemAttributes/PackageDimensions/Width/@Units',
PackageQuantity NUMBER(5) PATH 'ItemAttributes/PackageQuantity',
PartNumber VARCHAR2(0100) PATH 'ItemAttributes/PartNumber',
PictureFormat XMLTYPE PATH 'ItemAttributes/PictureFormat',
Platform XMLTYPE PATH 'ItemAttributes/Platform',
ProductGroup VARCHAR2(0050) PATH 'ItemAttributes/ProductGroup',
ProductTypeName VARCHAR2(4000) PATH 'ItemAttributes/ProductTypeName',
ProductTypeSubcategory VARCHAR2(50) PATH 'ItemAttributes/ProductTypeSubcategory',
PublicationDate VARCHAR2(20) PATH 'ItemAttributes/PubliucationDate',
Publisher VARCHAR2(0255) PATH 'ItemAttributes/Publisher',
RegionCode VARCHAR2(20) PATH 'ItemAttributes/RegionCode',
ReleaseDate VARCHAR2(20) PATH 'ItemAttributes/ReleaseDate',
RunningTime VARCHAR2(20) PATH 'ItemAttributes/RunningTime',
SeikodoProductCode VARCHAR2(50) PATH 'ItemAttributes/SeikodoProductCode',
Item_Size VARCHAR2(50) PATH 'ItemAttributes/Size',
SKU VARCHAR2(0255) PATH 'ItemAttributes/SKU',
Studio VARCHAR2(0255) PATH 'ItemAttributes/Studio',
SubscriptionLength VARCHAR2(20) PATH 'ItemAttributes/SubscriptionLength',
Title VARCHAR2(4000) PATH 'ItemAttributes/Title',
TrackSequence VARCHAR2(0100) PATH 'ItemAttributes/TrackSequence',
TradeInValue VARCHAR2(4000) PATH 'ItemAttributes/TradeInValue',
UPC NUMBER(12) PATH 'ItemAttributes/UPC',
UPCListElement XMLTYPE PATH 'ItemAttributes/UPCList/UPCListElement',
Warranty VARCHAR2(4000) PATH 'ItemAttributes/Warranty',
WEEETaxValue VARCHAR2(0100) PATH 'ItemAttributes/WEEETaxValue'
) Item
ON
1 = 1
GROUP BY
Items.Id,
Items.Code,
Items.Message,
Items.Isvalid,
Item.Id,
Item.ASIN,
Item.DetailPageURL,
Item.SmallImage_URL,
Item.SmallImage_Height,
Item.SmallImage_Height_Units,
Item.SmallImage_Width,
Item.SmallImage_Width_Units,
Item.MediumImage_URL,
Item.MediumImage_Height,
Item.MediumImage_Height_Units,
Item.MediumImage_Width,
Item.MediumImage_Width_Units,
Item.LargeImage_URL,
Item.LargeImage_Height,
Item.LargeImage_Height_Units,
Item.LargeImage_Width,
Item.LargeImage_Width_Units,
Item.AspectRatio,
Item.AudienceRating,
Item.Binding,
Item.Brand,
Item.CEROAgeRating,
Item.ClothingSize,
Item.Color,
Item.EAN,
Item.Edition,
Item.EpisodeSequence,
Item.ESRBAgeRating,
Item.Genre,
Item.HardwarePlatform,
Item.HazardousMaterialType,
Item.IsAdultProduct,
Item.IsAutographed,
Item.ISBN,
Item.IsEligibileForTrade,
Item.IsMemorabilia,
Item.IssuesPerYear,
Item.ItemPartNumber,
Item.Label,
Item.LegalDisclaimer,
Item.ListPrice,
Item.MagazineType,
Item.Manufacturer,
Item.ManufacturerMaximumAge,
Item.ManufacturerMinimumAge,
Item.ManufacturerPartsWarrantyDesc,
Item.MediaType,
Item.Model,
Item.ModelYear,
Item.MPN,
Item.NumberOfDiscs,
Item.NumberOfIssues,
Item.NumberOfItems,
Item.NumberOfPages,
Item.NumberOfTracks,
Item.OperatingSystem,
Item.PackageDimensions_Height,
Item.PackageDimensions_Height_Units,
Item.PackageDimensions_Length,
Item.PackageDimensions_Length_Units,
Item.PackageDimensions_Weight,
Item.PackageDimensions_Weight_Units,
Item.PackageDimensions_Width,
Item.PackageDimensions_Width_Units,
Item.PackageQuantity,
Item.PartNumber,
Item.ProductGroup,
Item.ProductTypeName,
Item.ProductTypeSubcategory,
Item.PublicationDate,
Item.Publisher,
Item.RegionCode,
Item.ReleaseDate,
Item.RunningTime,
Item.SeikodoProductCode,
Item.Item_Size,
Item.SKU,
Item.Studio,
Item.SubscriptionLength,
Item.Title,
Item.TrackSequence,
Item.TradeInValue,
Item.UPC,
Item.Warranty,
Item.WEEETaxValue
ORDER BY
Items.Id,
Item.Id;By using //, i am able to use the same query for both. Is there a better way?If using a single query is a must, then I guess it's OK.
Ideally, however, i would like the text of each (without tags), separated by commas.The fn:string-join() function can do that, e.g. :
ItemLinkDesc VARCHAR2(4000) PATH 'fn:string-join(ItemLinks/ItemLink/Description, ";")'But I'm not sure it's a good idea because you'll be losing the structured nature of the data.
Maybe it would be better to collect repeating elements into a collection of SQL object types, but again it all depends on how you want to use the data later.
So, following your advice, i removed the XMLAGGs and GROUP BY clause, but, again the query works, the CTAS does not:Strange...
Works for me :
SQL> select * from v$version;
BANNER
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
SQL>
SQL> CREATE TABLE Moocows AS
2 SELECT
3 Items.Id,
4 Items.Code,
5 Items.Message,
6 Items.Isvalid,
7 Item.Id Item_Id,
8 Item.ASIN,
9 Item.DetailPageURL,
10 Item.ItemLink,
11 Item.SmallImage_URL,
12 Item.SmallImage_Height,
13 Item.SmallImage_Height_Units,
14 Item.SmallImage_Width,
15 Item.SmallImage_Width_Units,
16 Item.MediumImage_URL,
17 Item.MediumImage_Height,
18 Item.MediumImage_Height_Units,
19 Item.MediumImage_Width,
20 Item.MediumImage_Width_Units,
21 Item.LargeImage_URL,
22 Item.LargeImage_Height,
23 Item.LargeImage_Height_Units,
24 Item.LargeImage_Width,
25 Item.LargeImage_Width_Units,
26 Item.ImageSet,
27 Item.Actor,
28 Item.Artist,
29 Item.AspectRatio,
30 Item.AudienceRating,
31 Item.AudioFormat,
32 Item.Author,
33 Item.Binding,
34 Item.Brand,
35 Item.CatalogNumberListElement,
36 Item.Category,
37 Item.CEROAgeRating,
38 Item.ClothingSize,
39 Item.Color,
40 Item.Creator,
41 Item.Director,
42 Item.EAN,
43 Item.EANListElement,
44 Item.Edition,
45 Item.EISBN,
46 Item.EpisodeSequence,
47 Item.ESRBAgeRating,
48 Item.Feature,
49 Item.Format,
50 Item.Genre,
51 Item.HardwarePlatform,
52 Item.HazardousMaterialType,
53 Item.IsAdultProduct,
54 Item.IsAutographed,
55 Item.ISBN,
56 Item.IsEligibileForTrade,
57 Item.IsMemorabilia,
58 Item.IssuesPerYear,
59 Item.ItemDimensions,
60 Item.ItemPartNumber,
61 Item.Label,
62 Item.Langauge,
63 Item.LegalDisclaimer,
64 Item.ListPrice,
65 Item.MagazineType,
66 Item.Manufacturer,
67 Item.ManufacturerMaximumAge,
68 Item.ManufacturerMinimumAge,
69 Item.ManufacturerPartsWarrantyDesc,
70 Item.MediaType,
71 Item.Model,
72 Item.ModelYear,
73 Item.MPN,
74 Item.NumberOfDiscs,
75 Item.NumberOfIssues,
76 Item.NumberOfItems,
77 Item.NumberOfPages,
78 Item.NumberOfTracks,
79 Item.OperatingSystem,
80 Item.PackageDimensions_Height,
81 Item.PackageDimensions_Height_Units,
82 Item.PackageDimensions_Length,
83 Item.PackageDimensions_Length_Units,
84 Item.PackageDimensions_Weight,
85 Item.PackageDimensions_Weight_Units,
86 Item.PackageDimensions_Width,
87 Item.PackageDimensions_Width_Units,
88 Item.PackageQuantity,
89 Item.PartNumber,
90 Item.PictureFormat,
91 Item.Platform,
92 Item.ProductGroup,
93 Item.ProductTypeName,
94 Item.ProductTypeSubcategory,
95 Item.PublicationDate,
96 Item.Publisher,
97 Item.RegionCode,
98 Item.ReleaseDate,
99 Item.RunningTime,
100 Item.SeikodoProductCode,
101 Item.Item_Size,
102 Item.SKU,
103 Item.Studio,
104 Item.SubscriptionLength,
105 Item.Title,
106 Item.TrackSequence,
107 Item.TradeInValue,
108 Item.UPC,
109 Item.UPCListElement,
110 Item.Warranty,
111 Item.WEEETaxValue
112 FROM
113 XMLTABLE
114 (
115 XMLNAMESPACES(DEFAULT 'http://webservices.amazon.com/AWSECommerceService/2011-08-01'),
116 '//OperationRequest/Errors/Error
117 | //Items'
118 PASSING get_document()
119 COLUMNS
120 Id FOR ORDINALITY,
121 Code VARCHAR2(0050) PATH 'Code',
122 Message VARCHAR2(4000) PATH 'Message',
123 IsValid VARCHAR2(005) PATH 'Request/IsValid',
124 Item XMLTYPE PATH 'Item'
125 ) Items
126 LEFT JOIN
127 XMLTABLE
128 (
129 XMLNAMESPACES(DEFAULT 'http://webservices.amazon.com/AWSECommerceService/2011-08-01'),
130 '/Item'
131 PASSING
132 Items.Item
133 COLUMNS
134 Id FOR ORDINALITY,
135 ASIN VARCHAR2(0010) PATH 'ASIN',
136 DetailPageURL VARCHAR2(0256) PATH 'DetailPageURL',
137 ItemLink XMLTYPE PATH 'ItemLinks/ItemLink',
138 SmallImage_URL VARCHAR2(0256) PATH 'SmallImage/URL',
139 SmallImage_Height NUMBER(4) PATH 'SmallImage/Height',
140 SmallImage_Height_Units VARCHAR2(0006) PATH 'SmallImage/Height/@Units',
141 SmallImage_Width NUMBER(4) PATH 'SmallImage/Width',
142 SmallImage_Width_Units VARCHAR2(0006) PATH 'SmallImage/Width/@Units',
143 MediumImage_URL VARCHAR2(0256) PATH 'MediumImage/URL',
144 MediumImage_Height NUMBER(4) PATH 'MediumImage/Height',
145 MediumImage_Height_Units VARCHAR2(0006) PATH 'MediumImage/Height/@Units',
146 MediumImage_Width NUMBER(4) PATH 'MediumImage/Width',
147 MediumImage_Width_Units VARCHAR2(0006) PATH 'MediumImage/Width/@Units',
148 LargeImage_URL VARCHAR2(0256) PATH 'LargeImage/URL',
149 LargeImage_Height NUMBER(4) PATH 'LargeImage/Height',
150 LargeImage_Height_Units VARCHAR2(0006) PATH 'LargeImage/Height/@Units',
151 LargeImage_Width NUMBER(4) PATH 'LargeImage/Width',
152 LargeImage_Width_Units VARCHAR2(0006) PATH 'LargeImage/Width/@Units',
153 ImageSet XMLTYPE PATH 'ImageSets/ImageSet',
154 Actor XMLTYPE PATH 'ItemAttributes/Actor',
155 Artist XMLTYPE PATH 'ItemAttributes/Artist',
156 AspectRatio VARCHAR2(0020) PATH 'ItemAttributes/AspectRatio',
157 AudienceRating VARCHAR2(0020) PATH 'ItemAttributes/AudienceRating',
158 AudioFormat XMLTYPE PATH 'ItemAttributes/AudioFormat',
159 Author XMLTYPE PATH 'ItemAttributes/Author',
160 Binding VARCHAR2(0050) PATH 'ItemAttributes/Binding',
161 Brand VARCHAR2(4000) PATH 'ItemAttributes/Brand',
162 CatalogNumberListElement XMLTYPE PATH 'ItemAttributes/CatalogNumberList/CatalogNumberListElement',
163 Category XMLTYPE PATH 'ItemAttributes/Category',
164 CEROAgeRating VARCHAR2(0020) PATH 'ItemAttributes/CEROAgeRating',
165 ClothingSize VARCHAR2(0050) PATH 'ItemAttributes/ClothingSize',
166 Color VARCHAR2(0100) PATH 'ItemAttributes/Color',
167 Creator XMLTYPE PATH 'ItemAttributes/Creator',
168 Department VARCHAR2(0050) PATH 'ItemAttributes/Department',
169 Director XMLTYPE PATH 'ItemAttributes/Director',
170 EAN NUMBER(15) PATH 'ItemAttributes/EAN',
171 EANListElement XMLTYPE PATH 'ItemAttributes/EANList/EANListElement',
172 Edition VARCHAR2(0020) PATH 'ItemAttributes/Edition',
173 EISBN XMLTYPE PATH 'ItemAttributes/EISBN',
174 EpisodeSequence VARCHAR2(0020) PATH 'ItemAttributes/EpisodeSequence',
175 ESRBAgeRating VARCHAR2(0020) PATH 'ItemAttributes/ESRBAgeRating',
176 Feature XMLTYPE PATH 'ItemAttributes/Feature',
177 Format XMLTYPE PATH 'ItemAttributes/Format',
178 Genre VARCHAR2(0050) PATH 'ItemAttributes/Genre',
179 HardwarePlatform VARCHAR2(0020) PATH 'ItemAttributes/HardwarePlatform',
180 HazardousMaterialType VARCHAR2(0050) PATH 'ItemAttributes/HazardousMaterialType',
181 IsAdultProduct VARCHAR2(0005) PATH 'ItemAttributes/IsAdultProduct',
182 IsAutographed VARCHAR2(0005) PATH 'ItemAttributes/IsAutographed',
183 ISBN VARCHAR2(0013) PATH 'ItemAttributes/ISBN',
184 IsEligibileForTrade VARCHAR2(0005) PATH 'ItemAttributes/IsEligibileForTrade',
185 IsMemorabilia VARCHAR2(0005) PATH 'ItemAttributes/IsMemorabilia',
186 IssuesPerYear VARCHAR2(0050) PATH 'ItemAttributes/IssuesPerYear',
187 ItemDimensions XMLTYPE PATH 'ItemAttributes/ItemDimensions',
188 ItemPartNumber VARCHAR2(0255) PATH 'ItemAttributes/ItemPartNumber',
189 Label VARCHAR2(4000) PATH 'ItemAttributes/Label',
190 Langauge XMLTYPE PATH 'ItemAttributes/Languages/Langauge',
191 LegalDisclaimer VARCHAR2(4000) PATH 'ItemAttributes/LegalDisclaimer',
192 ListPrice VARCHAR2(0020) PATH 'ItemAttributes/ListPrice',
193 MagazineType VARCHAR2(0020) PATH 'ItemAttributes/MagazineType',
194 Manufacturer VARCHAR2(4000) PATH 'ItemAttributes/Manufacturer',
195 ManufacturerMaximumAge VARCHAR2(0050) PATH 'ItemAttributes/ManufacturerMaximumAge',
196 ManufacturerMinimumAge VARCHAR2(0050) PATH 'ItemAttributes/ManufacturerMinimumAge',
197 ManufacturerPartsWarrantyDesc VARCHAR2(4000) PATH 'ItemAttributes/ManufacturerPartsWarrantyDesc',
198 MediaType VARCHAR2(0020) PATH 'ItemAttributes/MediaType',
199 Model VARCHAR2(0100) PATH 'ItemAttributes/Model',
200 ModelYear NUMBER(4) PATH 'ItemAttributes/ModelYear',
201 MPN VARCHAR2(0255) PATH 'ItemAttributes/MPN',
202 NumberOfDiscs NUMBER(3) PATH 'ItemAttributes/NumberOfDiscs',
203 NumberOfIssues NUMBER(3) PATH 'ItemAttributes/NumberOfIssues',
204 NumberOfItems NUMBER(7) PATH 'ItemAttributes/NumberOfItems',
205 NumberOfPages NUMBER(4) PATH 'ItemAttributes/NumberOfPages',
206 NumberOfTracks NUMBER(3) PATH 'ItemAttributes/NumberOfTracks',
207 OperatingSystem VARCHAR2(20) PATH 'ItemAttributes/OperatingSystem',
208 PackageDimensions_Height NUMBER(6) PATH 'ItemAttributes/PackageDimensions/Height',
209 PackageDimensions_Height_Units VARCHAR2(0018) PATH 'ItemAttributes/PackageDimensions/Height/@Units',
210 PackageDimensions_Length NUMBER(6) PATH 'ItemAttributes/PackageDimensions/Length',
211 PackageDimensions_Length_Units VARCHAR2(0018) PATH 'ItemAttributes/PackageDimensions/Length/@Units',
212 PackageDimensions_Weight NUMBER(6) PATH 'ItemAttributes/PackageDimensions/Weight',
213 PackageDimensions_Weight_Units VARCHAR2(0018) PATH 'ItemAttributes/PackageDimensions/Weight/@Units',
214 PackageDimensions_Width NUMBER(6) PATH 'ItemAttributes/PackageDimensions/Width',
215 PackageDimensions_Width_Units VARCHAR2(0018) PATH 'ItemAttributes/PackageDimensions/Width/@Units',
216 PackageQuantity NUMBER(5) PATH 'ItemAttributes/PackageQuantity',
217 PartNumber VARCHAR2(0100) PATH 'ItemAttributes/PartNumber',
218 PictureFormat XMLTYPE PATH 'ItemAttributes/PictureFormat',
219 Platform XMLTYPE PATH 'ItemAttributes/Platform',
220 ProductGroup VARCHAR2(0050) PATH 'ItemAttributes/ProductGroup',
221 ProductTypeName VARCHAR2(4000) PATH 'ItemAttributes/ProductTypeName',
222 ProductTypeSubcategory VARCHAR2(50) PATH 'ItemAttributes/ProductTypeSubcategory',
223 PublicationDate VARCHAR2(20) PATH 'ItemAttributes/PubliucationDate',
224 Publisher VARCHAR2(0255) PATH 'ItemAttributes/Publisher',
225 RegionCode VARCHAR2(20) PATH 'ItemAttributes/RegionCode',
226 ReleaseDate VARCHAR2(20) PATH 'ItemAttributes/ReleaseDate',
227 RunningTime VARCHAR2(20) PATH 'ItemAttributes/RunningTime',
228 SeikodoProductCode VARCHAR2(50) PATH 'ItemAttributes/SeikodoProductCode',
229 Item_Size VARCHAR2(50) PATH 'ItemAttributes/Size',
230 SKU VARCHAR2(0255) PATH 'ItemAttributes/SKU',
231 Studio VARCHAR2(0255) PATH 'ItemAttributes/Studio',
232 SubscriptionLength VARCHAR2(20) PATH 'ItemAttributes/SubscriptionLength',
233 Title VARCHAR2(4000) PATH 'ItemAttributes/Title',
234 TrackSequence VARCHAR2(0100) PATH 'ItemAttributes/TrackSequence',
235 TradeInValue VARCHAR2(4000) PATH 'ItemAttributes/TradeInValue',
236 UPC NUMBER(12) PATH 'ItemAttributes/UPC',
237 UPCListElement XMLTYPE PATH 'ItemAttributes/UPCList/UPCListElement',
238 Warranty VARCHAR2(4000) PATH 'ItemAttributes/Warranty',
239 WEEETaxValue VARCHAR2(0100) PATH 'ItemAttributes/WEEETaxValue'
240 ) Item
241 ON
242 1 = 1
243 ORDER BY
244 Items.Id,
245 Item.Id;
Table created -
ORA-31061 error while creating XMLType table with virtual column
I'm not calling it frustration ;)
but still... what about this one :
SQL> select * from v$version;
BANNER
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
SQL> create table test_virtual of xmltype
2 xmltype store as binary xml
3 virtual columns (
4 doc_id as (
5 xmlcast(
6 xmlquery('/root/@id'
7 passing object_value returning content)
8 as number
9 )
10 )
11 )
12 ;
Table created.Now, on the latest version :
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for 32-bit Windows: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL> create table test_virtual of xmltype
2 xmltype store as binary xml
3 virtual columns (
4 doc_id as (
5 xmlcast(
6 xmlquery('/root/@id'
7 passing object_value returning content)
8 as number
9 )
10 )
11 )
12 ;
passing object_value returning content)
ERROR at line 7:
ORA-00604: error occurred at recursive SQL level 1
ORA-31061: XDB error: dbms_xdbutil_int.get_tablespace_tab
ORA-06512: at "XDB.DBMS_XDBUTIL_INT", line 1002Is there something I should be aware of?
Right now, I'm just evaluating the version so I can't submit any SR.
Thanks for anyone trying to reproduce the issue.Just tested again on a new installation (64-bit server).
It works :
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL>
SQL> create table test_virtual of xmltype
2 xmltype store as binary xml
3 virtual columns (
4 doc_id as (
5 xmlcast(
6 xmlquery('/root/@id'
7 passing object_value returning content)
8 as number
9 )
10 )
11 );
Table created
Now I'll try to see what are the differences between the two installations.
Thanks Dan and Marco for looking into this.
Edited by: odie_63 on 2 mai 2012 15:51 -
I've upgraded database version *11.2.0.1* to *11.2.0.2* by DBUA, during upgrade this error came up.
ORA-31061: XDB error: XML event error
ORA-19202: Error occurred in XML processing
I chose Ignore then finally DBUA report all upgrade processes have been successful. This is my production database and it's now running fine but I'm worry that the error might cause further issues. Is there any idea or suggestion?... that the error might cause further issuesIt depends. If you don't use XDB (it's installed by default), you can ignore the error. Otherwise you have to find the 'XML event error' and to fix it. There should be more errors in the logfile, when XDB is upgraded.
Werner -
hi everybody ;
i have 9.2.0.7 db runs on SLES9 on host A. and i take full rman database backup to make a new database on different host ( host B ) with different file structure. ( sid is the same ) i had already 1 database on host B. after this duplicate now there are 2 database on host B.
i take daily full database rman backup on the new host for my new database and there is no problem. when i try to take extra full export backup i get an error ;
Dynamic link error: libxdb.so: cannot open shared object file: No such file or directory
*** 2010-08-05 09:46:12.868
ksedmp: internal or fatal error
ORA-00600: internal error code, arguments: [unable to load XDB library], [], [], [], [], [], [], []
as i search ; i have to stop the database and listener and set the LD_LIBRARY_PATH variable. how can i make this without make any mistake for the first database runs on Host B.
because 2 database must be up and running on host B. can you explaın these operation step by step ?
thank you ....craft wrote:
any idea ?
>any idea ?
your database is out off support you should consider to upgrade. ORA-00600 indicate for bug -
Hello!
After googling a lot, I really don't know what may have caused this problem when I'm shutting the DB, as It's a generic one.. Any suggestions?
I'm running oracle on version 10.2.0.3.0 on Win Server 2003 Enterprise SP2.
Part of the alert.log:
Mon Sep 26 07:00:49 2011
Starting background process EMN0
EMN0 started with pid=27, OS id=5192
Mon Sep 26 07:00:49 2011
Shutting down instance: further logons disabled
Mon Sep 26 07:00:50 2011
Stopping background process QMNC
Mon Sep 26 07:00:51 2011
Stopping background process CJQ0
Mon Sep 26 07:00:51 2011
Stopping background process MMNL
Mon Sep 26 07:00:52 2011
Stopping background process MMON
Mon Sep 26 07:00:53 2011
Shutting down instance (immediate)
License high water mark = 26
Mon Sep 26 07:00:53 2011
Stopping Job queue slave processes
Mon Sep 26 07:00:53 2011
Job queue slave processes stopped
Waiting for shared server 'S000' to die
Waiting for shared server 'S001' to die
Waiting for shared server 'S002' to die
Waiting for shared server 'S003' to die
Mon Sep 26 07:01:04 2011
Waiting for shared server 'S004' to die
Mon Sep 26 07:01:23 2011
All dispatchers and shared servers shutdown
Mon Sep 26 07:01:23 2011
alter database close normal
Mon Sep 26 07:01:24 2011
SMON: disabling tx recovery
SMON: disabling cache recovery
Mon Sep 26 07:01:24 2011
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
Thread 1 closed at log sequence 4300
Successful close of redo thread 1
Mon Sep 26 07:01:25 2011
Completed: alter database close normal
Mon Sep 26 07:01:25 2011
alter database dismount
Completed: alter database dismount
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
System State dumped to trace file c:\oracle\product\admin\teste\udump\teste_ora_5000.trc
Mon Sep 26 07:01:35 2011
Errors in file c:\oracle\product\admin\teste\udump\teste_ora_5000.trc:
*ORA-00600: internal error code, arguments: [LibraryCacheNotEmptyOnClose], [], [], [], [], [], [], []*Dump file c:\oracle\product\admin\teste\bdump\alert_teste.log
Mon Sep 26 07:09:49 2011
ORACLE V10.2.0.3.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows Server 2003 Version V5.2 Service Pack 2
CPU : 2 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:1617M/2047M, Ph+PgF:3114M/3437M, VA:1938M/2047M
Mon Sep 26 07:09:49 2011
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
Part of the file teste_ora_5000.trc:
FREELIST CHUNK COUNT:3192 OBJECT SIZE:36
LATCH:1 TOTAL SPACE: 114912
FREELIST CHUNK COUNT:3190 OBJECT SIZE:36
LATCH:2 TOTAL SPACE: 119016
FREELIST CHUNK COUNT:3306 OBJECT SIZE:36
BUCKET 10240:
LIBRARY OBJECT HANDLE: handle=341a4de8 mtx=341A4E9C(0) cdp=0
name=XDB.mime-mapping-type32_T
hash=bfce5ac8b2228d568d457016dd2a2800 timestamp=11-19-2006 11:07:38
namespace=TABL flags=KGHP/TIM/SML/[02000000]
kkkk-dddd-llll=0000-0000-0000 lock=0 pin=0 latch#=2 hpc=0132 hlc=0132
lwt=341A4E44[341A4E44,341A4E44] ltm=341A4E4C[341A4E4C,341A4E4C]
pwt=341A4E28[341A4E28,341A4E28] ptm=341A4E30[341A4E30,341A4E30]
ref=341A4E64[341A4E64,341A4E64] lnd=341A4E70[341A4D18,32B481F8]
LIBRARY OBJECT last freed from HPD addn data CBK
BUCKET 10240 total object count=1
BUCKET 40441:
LIBRARY OBJECT HANDLE: handle=341a4c90 mtx=341A4D44(0) cdp=0
name=XDB.mime-mapping34_COLL
hash=4fd0f011144ed13e64cf519ed06c9df9 timestamp=11-19-2006 11:07:38
namespace=TABL flags=KGHP/TIM/SML/[02000000]
kkkk-dddd-llll=0000-0000-0000 lock=0 pin=0 latch#=2 hpc=0004 hlc=0004
lwt=341A4CEC[341A4CEC,341A4CEC] ltm=341A4CF4[341A4CF4,341A4CF4]
pwt=341A4CD0[341A4CD0,341A4CD0] ptm=341A4CD8[341A4CD8,341A4CD8]
ref=341A4D0C[341A4D0C,341A4D0C] lnd=341A4D18[32B481F8,341A4E70]
LIBRARY OBJECT last freed from HPD addn data CBK
BUCKET 40441 total object count=1
ANONYMOUS LIST:
LIST OF HANDLES WITH DEPENDENTS:
LATCH=0 unpin_call_count=3072 hd_count=0 hd_unpinned_count=3284
LATCH=1 unpin_call_count=3069 hd_count=2 hd_unpinned_count=3263
341a4de8 -> 341a4c90
LATCH=2 unpin_call_count=3085 hd_count=0 hd_unpinned_count=3503
*** 2011-09-26 07:01:35.445
ksedmp: internal or fatal error
*ORA-00600: internal error code, arguments: [LibraryCacheNotEmptyOnClose], [], [], [], [], [], [], []*Current SQL information unavailable - no session.
----- Call Stack Trace -----
calling call entry argument values in hex
location type point (? means dubious value)
ksedst+38 CALLrel ksedst1+0 0 1
ksedmp+898 CALLrel ksedst+0 0
ksfdmp+14 CALLrel ksedmp+0 3
_kgerinv+140 CALLreg 00000000 B158D30 3
kgeasnmierr+19 CALLrel kgerinv+0 B158D30 9CB1F64 607AAD14 0
A19CDA4
__VInfreq__kglshu+4 CALLrel _kgeasnmierr+0 B158D30 9CB1F64 607AAD14 0
6 B158D30 4
kqlnfy+641 CALLrel kglshu+0 B158D30 0
_kscnfy+1334 CALLreg 00000000 18 0
ksmshu+273 CALLrel kscnfy+0
opistpreal+1038 CALLrel _ksmshu+0 0
opistp+267 CALLrel opistp_real+0 31 2 A19F68C
_opiodr+1099 CALLreg 00000000 31 2 A19F68C
_ttcpip+996 CALLreg 00000000 31 2 A19F68C 0
_opitsk+1080 CALL??? 00000000
opiino+1087 CALLrel opitsk+0 0 0
_opiodr+1099 CALLreg 00000000 3C 4 A19FC28
opidrv+819 CALLrel opiodr+0 3C 4 A19FC28 0
sou2o+45 CALLrel opidrv+0 3C 4 A19FC28
opimaireal+112 CALLrel _sou2o+0 A19FC1C 3C 4 A19FC28
opimai+92 CALLrel opimai_real+0 2 A19FC54
OracleThreadStart@ CALLrel opimai+0
4+726
77E6482C CALLreg 00000000
--------------------- Binary Stack Dump ---------------------
========== FRAME [1] (_ksedst+38 -> _ksedst1+0) ==========
Dump of memory from 0x0A19CC78 to 0x0A19CC88
A19CC70 0A19CC88 0040490B [.....I@.]
A19CC80 00000000 00000001 [........]
========== FRAME [2] (_ksedmp+898 -> _ksedst+0) ==========
Dump of memory from 0x0A19CC88 to 0x0A19CD48
A19CC80 0A19CD48 00403303 [H....3@.]
A19CC90 00000000 00000258 0A19CCA0 004238A0 [....X........8B.]
A19CCA0 0A19CCA8 0043CB08 0B1591B8 60731B40 [[email protected]`]
A19CCB0 0B1591BD 607AAD14 0000001B 00000000 [......z`........]
Thanks in advance!!Hi;
ORA-00600: internal error code, You are getting oracle internal error(ORA 600) which mean you could need to work wiht oracle support team. Please see below note, if its not help than i suggest log a sr:
Troubleshoot an ORA-600 or ORA-7445 Error Using the Error Lookup Tool [ID 153788.1]
Regard
Helios -
ORA-600 [17069] error while running catrelod.sql to downgrade 11g database
Hi,
We are downgrading our 11.2.0.2 database to 10.2.0.4. We have successfullly run catdwgrd.sql without any errors in 11g env. While running catrelod.sql in 10g env we are facing the following error:
SQL> @?/rdbms/admin/catrelod.sql
TIMESTAMP
COMP_TIMESTAMP RELOD__BGN 2013-04-24 20:15:39 2456407 72939
DOC>#######################################################################
DOC>#######################################################################
DOC> The following statement will cause an "ORA-01722: invalid number"
DOC> error if the database server version is not 10.0.0.
DOC> Shutdown ABORT and use a different script or a different server.
DOC>#######################################################################
DOC>#######################################################################
DOC>#
no rows selected
DOC>#######################################################################
DOC>#######################################################################
DOC> The following statement will cause an "ORA-01722: invalid number"
DOC> error if the database has not been opened for MIGRATE.
DOC>
DOC> Perform a "SHUTDOWN ABORT" and
DOC> restart using MIGRATE.
DOC>#######################################################################
DOC>#######################################################################
DOC>#
no rows selected
Session altered.
Session altered.
no rows selected
DECLARE
ERROR at line 1:
ORA-00600: internal error code, arguments: [17069], [0x170FB8CA8], [], [], [],
[], [], []I have checked the trace file in udump but it dint give any readable information.
Please find below environment details.
OS : RHEL 5 64 bit
11g Database : 11.2.0.2
10g Database : 10.2.0.4
Kindly assist.KR10822864 wrote:
Whenever an ORA-600 error is raised a trace file is generated and an entry written to the alert.log with details of the trace file location. Starting with Oracle Database 11g Release 1, the diagnosability infrastructure was introduced which places the trace and core files into a location controlled by the DIAGNOSTIC_DEST initialization parameter when an incident, such as an ORA-600 is created. For earlier versions, the trace file will be written to either USER_DUMP_DEST (if the error was caught in a user process) or BACKGROUND_DUMP_DEST (if the error was caught in a background process like PMON or SMON). The trace file contains vital information about what led to the error condition
please post 40 lines of alert log info .
MOS Note:ORA-600 [17069] "Failed to pin a library cache object after 50 attempts" [ID 39616.1]
"Look in the trace file for the text 'LIBRARY OBJECT HANDLE: handle=170fb8ca8'"
if not found any massages like above please raise [email protected].
Hi KR,
Thanks for your help. As suggested I have checked the trace file to search and found the below info. I suppose it is some kind of lock but not sure about it. Please let me know if the following makes sense:
SO: 0x21158a6e0, type: 3, owner: 0x211006f28, flag: INIT/-/-/0x00
(call) sess: cur 211572570, rec 211572570, usr 211572570; depth: 0
SO: 0x21158a9b8, type: 3, owner: 0x21158a6e0, flag: INIT/-/-/0x00
(call) sess: cur 211572570, rec 0, usr 211572570; depth: 1
SO: 0x1727a2618, type: 54, owner: 0x21158a9b8, flag: INIT/-/-/0x00
LIBRARY OBJECT PIN: pin=1727a2618 handle=170fb8ca8 mode=S lock=171243e98
user=211572570 session=211572570 count=1 mask=001d savepoint=0x43 flags=[00]
SO: 0x171243e98, type: 53, owner: 0x21158a9b8, flag: INIT/-/-/0x00
LIBRARY OBJECT LOCK: lock=171243e98 handle=170fb8ca8 mode=S
call pin=0x1727a2618 session pin=(nil) hpc=0000 hlc=0000
htl=0x171243f18[0x17278a310,0x17278a310] htb=0x17278a310 ssga=0x172789928
user=211572570 session=211572570 count=1 flags=PNC/[0400] savepoint=0x43
LIBRARY OBJECT HANDLE: handle=170fb8ca8 mtx=0x170fb8dd8(0) cdp=0
name=SYS.STANDARD
hash=51570e225ed8a9a803b7318f191e0a8d timestamp=04-18-2006 00:00:00
namespace=TABL flags=KGHP/TIM/SML/[02000000]
kkkk-dddd-llll=0000-001d-001d lock=S pin=S latch#=3 hpc=0004 hlc=0004
lwt=0x170fb8d50[0x170fb8d50,0x170fb8d50] ltm=0x170fb8d60[0x170fb8d60,0x170fb8d60]
pwt=0x170fb8d18[0x170fb8d18,0x170fb8d18] ptm=0x170fb8d28[0x170fb8d28,0x170fb8d28]
ref=0x170fb8d80[0x170fb8d80,0x170fb8d80] lnd=0x170fb8d98[0x170f05b50,0x170fa6858]
LIBRARY OBJECT: object=170e82de8
type=PCKG flags=EXS/LOC[0005] pflags=NST/IVR[0201] status=VALD load=0
DATA BLOCKS:
data# heap pointer status pins change whr
0 170e831f8 170e82fc0 I/P/A/-/- 0 NONE 00
SO: 0x21158e470, type: 5, owner: 0x21158a6e0, flag: INIT/-/-/0x00
(enqueue) CU-70E88BC0-00000001 DID: 0001-001F-00000004
lv: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 res_flag: 0x2
res: 0x17677adc8, mode: X, lock_flag: 0x0
own: 0x211572570, sess: 0x211572570, proc: 0x211006f28, prv: 0x17677add8
SO: 0x177f82c28, type: 59, owner: 0x21158a6e0, flag: INIT/-/-/0x00
cursor enqueue
child: 170e89348, flag: 53, number: 0
parent: 170e89738 -
ORA-00600: internal error code, arguments: [ktsircinfo_num1]
While taking export of a table received EXP error and while dropping/selecting the same gor ora-600 errors.
. . exporting table TEST4
EXP-00003: no storage definition found for segment(29, 371385)
SQL >Drop table test4 cascade;
ORA-00600: internal error code, arguments: [ktsircinfo_num1], [29], [29], [371385], [], [], [], []
sql> Desc test4;
ORA-00600: internal error code, arguments: [ktsircinfo_num1], [29], [29], [371385], [], [], [], []
I dont want to log TAR with oracle right now... I tried dropping and recreating Undo tablespace but still did not help much . Database version is 9204hi
read metalink ID - 153788.1
CHeers -
ORA-00600: internal error when delete master rows in a materialized view
I have a materialized view in 11g2 on Redhat 5, defined asCREATE MATERIALIZED VIEW mv_idty
PARALLEL BUILD IMMEDIATE REFRESH FAST ON COMMIT ENABLE QUERY REWRITE AS
select IDTY_NAME_FIRST,IDTY_NAME_MIDDLE,IDTY_NAME_LAST,IDTY_NAME_SUFFIX,IDTY_SSN,
IDTY_DR_LIC_NUM,IDTY_DR_LIC_STA,x.person_id,i.rowid i_rowid,x.rowid x_rowid
from idty i,person_x_idty x where x.idty_id=i.idty_id; I deleted a few rows from the master tables and get error13:58:48 SQL> delete idty where idty_id like 'test_row%' ;
7 rows deleted.
13:58:52 SQL> commit;
commit
ERROR at line 1:
ORA-12008: error in materialized view refresh path
ORA-00600: internal error code, arguments: [kkzfrfajv_markdml-1], [], [], [], [], [], [], [], [], [], [], [] I have other materialized views and they all delete master OK. This is the simplest one but causes problem. HELP!
Edited by: user13148231 on Aug 11, 2010 5:45 PMChecked note 743766.1. It is not 100% relevant as it is about import, but the query is usefulselect sowner, vname, mowner, master from sys.snap_reftime$It reveals the materialized view some how based on other schema.
Recreate the materialized view. problem solved. -
Hi All,
I had created a IR report based on a table and it was working with no issues. But after few days, when I try searching using the IR search bar it shows "ORA-20001: get_dbms_sql_cursor error ORA-00936: missing expression" error message. I don't see any debug messages or errors in the debug window. The Finder drop down is empty too, there are no columns displayed to filter.
When I recreate the IR report(new page) based on the same table, It works fine and there are no issues with the search. But the old IR report search doesnt work. I have not modified the any thing in the old report after initial creation. Report uses Primary key based on a sequence.
What might have caused this issue?
Is there a way to intercept the search query from IR report?
Apex version - 4.2.3.00.08.
Any help on this appreciated.
Thanks,
JaganHi MK, as I had mentioned in my post, I don't see any logs in the debug window, query tab.
Can you please guide me how to check the query logs on search?
Thanks,
Jagan -
ASM instance crash due to error ORA-27506: IPC error connecting to a port
Hi All,
Today the ASM instance goes down.
When i checked the alert log I found the below error.
ORA-27506: IPC error connecting to a port
ORA-27300: OS system dependent operation:sendmsg failed with status: 22
ORA-27301: OS failure message: Invalid argument
ORA-27302: failure occurred at: sskgxpsnd1
Please find the environment details.
OS : RHEL-5
DB: 11.1.0.7 2-node RAC
I want to know the root cause of this issue.
Please suggest.
Thanks and Regards,Hi,
Could you please upload cluster alert log and cssd.log?
regards,
Kishore -
ORA 600 [kkqvmRmViewFromLst1] error
Hi,
I am using Binary XML DB .
Here is the DB banner info.
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
"CORE 11.2.0.1.0 Production"
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
I am getting ORA 600 [kkqvmRmViewFromLst1] error while executing a query
SELECT AGTAB1.AGREEMENT_ID AS agreement_ID
FROM TNMAB_AGREEMENT_XML A ,
XMLTable('/Agreement'
PASSING A.AGREEMENT_XML COLUMNS AGREEMENT_ID VARCHAR2(20) path 'Identifier' ,
SHP_PTY_CUST_HOLDER XMLType PATH 'ShippingPartyGroups/ShippingParties/CustomerHolder' ,
NAMED_CUSTOMER_GROUPS XMLType PATH 'NamedCustomerGroups/NamedCustomer/SAP_IDs/StringWrappers' ) AGTAB1 ,
XMLTable('/Agreement'
PASSING A.AGREEMENT_XML COLUMNS NAMED_CUSTOMER_GROUPS XMLType PATH 'NamedCustomerGroups/NamedCustomer/SAP_IDs/StringWrappers' ) AGTAB2 ,
XMLTable('/CustomerHolder' PASSING AGTAB1.SHP_PTY_CUST_HOLDER
COLUMNS SAP_ID VARCHAR2(10) PATH 'SAP_ID') x2,
XMLTable('/StringWrappers'
PASSING AGTAB2.NAMED_CUSTOMER_GROUPS COLUMNS SAP_ID VARCHAR2(10) PATH 'SAP_ID') x3
WHERE (X2.SAP_ID IN ('3163494000') OR
X3.SAP_ID IN ('3163494000')) group by AGTAB1.AGREEMENT_ID
Please advise
ThanksI am getting ORA 600 [kkqvmRmViewFromLst1] error while executing a queryAn ORA 600 error is a untrapped oracle software error an should be dealt with by creating an SR (service request) via support.oracle.com
-
ORA-00600: internal error while running procedure in oracle 7.3.4
I am using Oracle 7.3.4 running on HP-Unix. While running a procedure, I am getting the following error.
ORA-00600: internal error code, arguments: [15419], [severe error during PL/SQL execution], [], [], [], [], [], []
ORA-06544: PL/SQL: internal error, arguments: [77102], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [77102]
Please suggest what could be the problem. Incidentally, the same procedure is running on another installation of Oracle 7.3.4. I am unable to find out what could be the difference between the 2 Oracle instances that is causing this problem.
Please help.
Thanks in advance.Are there any trace files created on the server?
Did you see if they have any more information?
Generally, these types of errors suggest contacting Oracle support to resolve the issue, but with the Oracle version you are using being already desupported, it would be an issue.
Alternatively, you could search metalink to see if there is any support note on this type of error. -
ORA-00607: Internal error occurred while making a change to a data block
hi
i hv use testing purpose oracle 10 Xe in unix
but when today i hv connect database following error occured
SQL> startup
ORACLE instance started.
Total System Global Area 83886080 bytes
Fixed Size 1257284 bytes
Variable Size 75497660 bytes
Database Buffers 4194304 bytes
Redo Buffers 2936832 bytes
Database mounted.
ORA-00607: Internal error occurred while making a change to a data block
ORA-00600: internal error code, arguments: [4193], [625], [640], [], [], [],
I hv check alert log , but no proper solution is given , how can start databaseDuh, and of course I missed the significance of
oracle 10 Xe in unix
XE is only supported for Linux - according to the downloads page that means "Debian, Mandriva, Novell, Red Hat and Ubuntu".
Oracle have not publically stated the reasons why XE is only available on Linux and Windows, but my guess is that it is something to do the Intel chip architecture. If this is so it would be possible for Oracle to port XE to run on Solaris for x86. But they have not done so yet.
Which means, alas, that you are unlikely to get any help for this one, because XE is not supported on any unix platform.
Good luck, APC -
Error while impdp: ORA-02374: conversion error loading table
Hi,
I am trying to convert the character set from WE8ISO8859P1 to AL32UTF8 using expdp/impdp. for this I first convert WE8ISO8859P1 to WE8MSWIN1252 in source DB to get rid of “lossy” data. I created new database(target) with character set AL32UTF8 and nls_length_semantics = ’CHAR’ and created all the tablespaces as in source DB with auoexend on. I took full export (expdp) of source DB excluding TABLESPACE,STATISTICS,INDEX,CONSTRAINT,REF_CONSTRAINT and imported using impdp to target DB. I found below error in the import log file:
ORA-02374: conversion error loading table "SCTCVT"."SPRADDR_CVT"
ORA-26093: input data column size (44) exceeds the maximum input size (40)
ORA-02372: data for row: CONVERT_STREET_LINE1 : 0X'20202020202020202020202020202020202020202020202020'
I checked with select query on both DBs with below results.
source DB:
04:58:42 SQL> select count(*) from "SCTCVT"."SPRADDR_CVT";
COUNT(*)
74553
target DB:
04:59:24 SQL> select count(*) from "SCTCVT"."SPRADDR_CVT";
COUNT(*)
74552
please suggest me a solution to this.
Thanks and Regards.
Edited by: user12045167 on May 9, 2011 10:39 PMThanks for your update maher.
09:15:53 SQL> desc "SCTCVT"."SPRADDR_CVT"
Name Null? Type
SPRADDR_PIDM NUMBER(8)
CONVERT_PIDM VARCHAR2(9 CHAR)
SPRADDR_ATYP_CODE VARCHAR2(2 CHAR)
CONVERT_ATYP_CODE VARCHAR2(2 CHAR)
SPRADDR_SEQNO NUMBER(2)
CONVERT_SEQNO VARCHAR2(2 CHAR)
SPRADDR_FROM_DATE DATE
CONVERT_FROM_DATE VARCHAR2(8 CHAR)
SPRADDR_TO_DATE DATE
CONVERT_TO_DATE VARCHAR2(8 CHAR)
SPRADDR_STREET_LINE1 VARCHAR2(30 CHAR)
CONVERT_STREET_LINE1 VARCHAR2(40 CHAR)
SPRADDR_STREET_LINE2 VARCHAR2(30 CHAR)
CONVERT_STREET_LINE2 VARCHAR2(40 CHAR)
SPRADDR_STREET_LINE3 VARCHAR2(30 CHAR)
CONVERT_STREET_LINE3 VARCHAR2(40 CHAR)
SPRADDR_CITY VARCHAR2(20 CHAR)
CONVERT_CITY VARCHAR2(25 CHAR)
SPRADDR_STAT_CODE VARCHAR2(3 CHAR)
CONVERT_STAT_CODE VARCHAR2(25 CHAR)
SPRADDR_ZIP VARCHAR2(10 CHAR)
CONVERT_ZIP VARCHAR2(15 CHAR)
SPRADDR_CNTY_CODE VARCHAR2(5 CHAR)
CONVERT_CNTY_CODE VARCHAR2(5 CHAR)
SPRADDR_NATN_CODE VARCHAR2(5 CHAR)
CONVERT_NATN_CODE VARCHAR2(5 CHAR)
SPRADDR_PHONE_AREA VARCHAR2(3 CHAR)
CONVERT_PHONE_AREA VARCHAR2(3 CHAR)
SPRADDR_PHONE_NUMBER VARCHAR2(7 CHAR)
CONVERT_PHONE_NUMBER VARCHAR2(7 CHAR)
SPRADDR_PHONE_EXT VARCHAR2(4 CHAR)
CONVERT_PHONE_EXT VARCHAR2(4 CHAR)
SPRADDR_STATUS_IND VARCHAR2(1 CHAR)
CONVERT_STATUS_IND VARCHAR2(1 CHAR)
SPRADDR_ACTIVITY_DATE DATE
CONVERT_ACTIVITY_DATE VARCHAR2(8 CHAR)
SPRADDR_USER VARCHAR2(30 CHAR)
CONVERT_USER VARCHAR2(30 CHAR)
SPRADDR_ASRC_CODE VARCHAR2(4 CHAR)
CONVERT_ASRC_CODE VARCHAR2(4 CHAR)
SPRADDR_DELIVERY_POINT NUMBER(2)
CONVERT_DELIVERY_POINT VARCHAR2(2 CHAR)
SPRADDR_CORRECTION_DIGIT NUMBER(1)
CONVERT_CORRECTION_DIGIT VARCHAR2(1 CHAR)
SPRADDR_CARRIER_ROUTE VARCHAR2(4 CHAR)
CONVERT_CARRIER_ROUTE VARCHAR2(4 CHAR)
SPRADDR_GST_TAX_ID VARCHAR2(15 CHAR)
CONVERT_GST_TAX_ID VARCHAR2(15 CHAR)
SPRADDR_REVIEWED_IND VARCHAR2(1 CHAR)
CONVERT_REVIEWED_IND VARCHAR2(1 CHAR)
SPRADDR_REVIEWED_USER VARCHAR2(30 CHAR)
CONVERT_REVIEWED_USER VARCHAR2(30 CHAR)
SPRADDR_DATA_ORIGIN VARCHAR2(30 CHAR)
CONVERT_DATA_ORIGIN VARCHAR2(30 CHAR)
SPRADDR_CVT_RECORD_ID NUMBER(8)
SPRADDR_CVT_STATUS VARCHAR2(1 CHAR)
SPRADDR_CVT_JOB_ID NUMBER(8)
so here we can see its value is 40 (CONVERT_STREET_LINE1 VARCHAR2(40 CHAR)).
shall i go ahead altering the column?
Maybe you are looking for
-
How to create a report based on a DataSet programatically
I'm working on a CR 2008 Add-in. Usage of this add-in is: Let the user choose from a list of predefined datasets, and create a totally empty report with this dataset attached to is. So the user can create a report based on this dataset. I have a data
-
The apps store tells me that my device is not compatible, but I had Firefox on the device prior to doing a factory data reset. How can I re-install Firefox?
-
Login Issues: Win7, Skype 6.14
Hi I've had login issues since just after I accepted a windows update last night. (no idea if that's just a coincidence?) I've read thru several other posts here, tried re-installing skype several times (also re-installed an older version), checked c
-
How many versions of the same app will Apple approve?
They have currently approved the free version but we are looking to limit features and make 2 paid versions as well.(ie. Lite, Gold Edition, Premium Edition) It is a social organization app.
-
Media Encoder cs6 download?
Flash typically comes with media encoder but my download of Flash CS 6 did not install CS6 media Encoder and I need it to create an flv file since Adobe stupidly deprecated the format in subsequent versions of Media Encoder. All links I've found so f