How to overcome ORA-19279 error
Hi,
I have oracle 11.2.2 and following xml is loaded in xmltype table and trying to retrive data and getting following error, please anyone could help me to fix this error
<?xml version="1.0" encoding="utf-8"?>
<agents count="1382">
<agent>
<name>Nancy Palmer</name>
<email>[email protected]</email>
<agentid>MLSL:00525350</agentid>
<officeid>58</officeid>
<website>http://www.nancypalmer.com</website>
<photo>https://sites.e-agents.com/Uploads/68/41/6841/Agents/agent_8418_NANCY_PALMER_COLOR_HEAD_SHOT_HIGH_QUALITY_2011.jpg</photo>
<phone_direct>6504344313</phone_direct>
<phone_cell>6504920200</phone_cell>
<mod_time>2012-08-31T05:15:06.933</mod_time>
</agent>
<agent>
<name>Genella Williamson</name>
<email>[email protected]</email>
<agentid>MLSL:00755754</agentid>
<officeid>58</officeid>
<website>http://www.apr.com/genella</website>
<photo>https://sites.e-agents.com/Uploads/68/41/6841/Agents/agent_8426_genella.jpg</photo>
<phone_direct>6504344319</phone_direct>
<phone_cell>6507870839</phone_cell>
<mod_time>2010-10-30T15:15:07.603</mod_time>
</agent>
<agent>
<name>Diana Langley</name>
<email>[email protected]</email>
<agentid>MLSL:01256202,SFAR:805608</agentid>
<officeid>50</officeid>
<website>http://www.apr.com/DLangley</website>
<photo>https://sites.e-agents.com/Uploads/68/41/6841/Agents/agent_7848_dlangley.jpg</photo>
<phone_direct/>
<phone_cell/>
<mod_time>2011-06-06T05:15:06.587</mod_time>
</agent>
</agents>
query usered to reterive data
SELECT count, NAME, email,
officeid, website,
photo, phone_direct,
phone_cell, mod_date
FROM TEMP_XML tx,
XMLTable('/agents'
PASSING tx.xml_data
columns count varchar2(30) path '@count',
NAME VARCHAR2(100) path 'agent/name',
email VARCHAR2(100) path 'agent/email',
officeid VARCHAR2(100) path 'agent/officeid',
website VARCHAR2(100) path 'agent/website',
photo VARCHAR2(100) path 'agent/photo',
phone_direct VARCHAR2(100) path 'agent/phone_direct',
phone_cell VARCHAR2(100) path 'agent/phone_cell',
mod_date VARCHAR2(100) path 'agent/mod_date'
recieved error
ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence
19279. 00000 - "XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence"
*Cause: The XQuery sequence passed in had more than one item.
*Action: Correct the XQuery expression to return a single item sequence.Thanks in advance
Best Regards,
use
SELECT count,
NAME,
email,
officeid,
website,
photo,
phone_direct,
phone_cell,
mod_date
FROM TEMP_XML tx,
XMLTable('agents' PASSING tx.xml_data
columns count varchar2(30) path '@count',
xml_part xmltype path '*') x,
XMLTable('agent' PASSING x.xml_part
columns NAME VARCHAR2(100) path 'name',
email VARCHAR2(100) path 'email',
officeid VARCHAR2(100) path 'officeid',
website VARCHAR2(100) path 'website',
photo VARCHAR2(100) path 'photo',
phone_direct VARCHAR2(100) path 'phone_direct',
phone_cell VARCHAR2(100) path 'phone_cell',
mod_date VARCHAR2(100) path 'mod_date') y
Similar Messages
-
How to resolve ORA-00001 Error in SQL Insert?
Hi all, I need your appreciated help.
I make a plsql procedure that is inserting a row according cursor value, I'm having oracle error ORA-00001: unique constraint (constraint_name) violated.
You may see this message if a duplicate entry exists at a different level: in RDBMS MySQL I have the syntax IGNORE to resolve this duplication error... and in Oracle ?
Thanks for your time and hints.
Miguelitouser6317803 wrote:
How to resolve ORA-00001 Error in SQL Insert?ORA-00001 means table has unique/primary key/index and you are trying to insert a row with key value that already exists in the table. I'll assume table COUNTRIES has primary key on COUNTRY_ID. Then change SQL to:
SQL = "INSERT INTO COUNTRIES(COUNTRY_ID,COUNTRY_NAME,REGION_ID) SELECT 'BZ','BLZ',3 FROM DUAL WHERE NOT EXISTS(SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ')"There is a good chance table COUNTRIES also has unique key/index on COUNTRY_NAME. If so use:
SQL = "INSERT INTO COUNTRIES(COUNTRY_ID,COUNTRY_NAME,REGION_ID) SELECT 'BZ','BLZ',3 FROM DUAL WHERE NOT EXISTS(SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ' OR COUNTRY_NAME = 'BLZ')"SY. -
ORA-19279 error extracting one-to-many sequence
I have an xml table built from a registered schema that I'm trying to extract data from using a view. The lowest level is a polygon with multiple vertices -- vertices number, latitude, and longitude. The xml file lists data as
POLYGON
SEQ_NUM
LAT
LON
SEQ_NUM
LAT
LON
SEQ_NUM
LAT
LON
/POLYGON
The method I use to extract the data returns an ORA-19279 error: "XQuery dymanic type mismatch: expected singleton sequence - got multi-item sequence." The error is pointing to the polygon data; however the polygon sequence tag in the xsd file has the attribute of maxOccurs="unbounded".
Below is the xsd file, a samlpe xml file and the Select statement I use.
ABC.xsd file:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="A_B_C">
<xs:complexType>
<xs:sequence>
<xs:element name="A">
<xs:complexType>
<xs:sequence>
<xs:element name="B">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="1A"/>
<xs:enumeration value="1B"/>
<xs:enumeration value="2A"/>
<xs:enumeration value="2B"/>
<xs:enumeration value="2C"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:choice>
<xs:element name="D" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="D_ID" type="xs:string">
</xs:element>
<xs:element name="D_UQ_ID" type="xs:string">
</xs:element>
<xs:element name="D_TIME">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:choice>
<xs:element name="F">
<xs:complexType>
<xs:sequence>
<xs:element name="F_TYPE" type="xs:string">
</xs:element>
<xs:element name="F_SUBTYPE" type="xs:string">
</xs:element>
<xs:element name="G" minOccurs="0">
<xs:complexType>
<xs:choice>
<xs:element name="H">
<xs:complexType>
<xs:sequence>
<xs:element name="H_TYPE" type="xs:string" minOccurs="0">
</xs:element>
<xs:element name="H_MODE" type="xs:string" minOccurs="0">
</xs:element>
<xs:element name="H_SHAPE" minOccurs="0">
<xs:complexType>
<xs:choice>
<xs:element name="POLYGON">
<xs:complexType>
{color:#ff0000}*<xs:sequence maxOccurs="unbounded">*{color}
<xs:element name="SEQ_NUM" type="xs:unsignedInt">
<xs:annotation>
<xs:documentation>sequence number in the polygon</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LAT" type="xs:float"/>
<xs:element name="LON" type="xs:float"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CIRCLE">
<xs:complexType>
<xs:sequence>
<xs:element name="LAT" type="xs:float"/>
<xs:element name="LON" type="xs:float"/>
<xs:element name="RAD" type="xs:float"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ELLIPSE">
<xs:complexType>
<xs:sequence>
<xs:element name="ORIENT">
<xs:simpleType>
<xs:restriction base="xs:float">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="360"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MAJ_AX" type="xs:float">
</xs:element>
<xs:element name="MIN_AX" type="xs:float">
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="E">
<xs:complexType/>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="C">
</xs:element>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
abc.xml file:
<?xml version="1.0" encoding="utf-8"?>
<A_B_C>
<A>
<B>1B</B>
</A>
<D>
<D_ID>D_0001</D_ID>
<D_UQ_ID>UQ_D_0001</D_UQ_ID>
<D_TIME>2007 FEB 11:11:11.11</D_TIME>
<F>
<F_TYPE>F_TYPE_TEST</F_TYPE>
<F_SUBTYPE>SUB_TEST</F_SUBTYPE>
<G>
<H>
<H_TYPE>Ipod</H_TYPE>
<H_MODE>SCANNING</H_MODE>
<H_SHAPE>
<POLYGON>
<SEQ_NUM>1</SEQ_NUM>
<LAT>10.1</LAT>
<LON>11.1</LON>
<SEQ_NUM>2</SEQ_NUM>
<LAT>20.2</LAT>
<LON>22.2</LON>
<SEQ_NUM>3</SEQ_NUM>
<LAT>30.3</LAT>
<LON>33.3</LON>
<SEQ_NUM>4</SEQ_NUM>
<LAT>40.4</LAT>
<LON>44.4</LON>
</POLYGON>
<CIRCLE>
<LAT>12.3</LAT>
<LON>45.6</LON>
<RAD>78.9</RAD>
</CIRCLE>
<ELLIPSE>
<ORIENT>99.90</ORIENT>
<MAJ_AX>111.10</MAJ_AX>
<MIN_AX>222.20</MIN_AX>
</ELLIPSE>
</H_SHAPE>
</H>
</G>
</F>
<E></E>
</D>
<D>
<D_ID>D_0002</D_ID>
<D_UQ_ID>UQ_D_0002</D_UQ_ID>
<D_TIME>2007 FEB 22:22:22.22</D_TIME>
<F>
<F_TYPE>F_TYPE_TEST</F_TYPE>
<F_SUBTYPE>SUB_TEST</F_SUBTYPE>
<G>
<H>
<H_TYPE>Ipod</H_TYPE>
<H_MODE>SCANNING</H_MODE>
<H_SHAPE>
<POLYGON>
<SEQ_NUM>1</SEQ_NUM>
<LAT>10.1</LAT>
<LON>11.1</LON>
<SEQ_NUM>2</SEQ_NUM>
<LAT>20.2</LAT>
<LON>22.2</LON>
<SEQ_NUM>3</SEQ_NUM>
<LAT>30.3</LAT>
<LON>33.3</LON>
<SEQ_NUM>4</SEQ_NUM>
<LAT>40.4</LAT>
<LON>44.4</LON>
</POLYGON>
<CIRCLE>
<LAT>12.3</LAT>
<LON>45.6</LON>
<RAD>78.9</RAD>
</CIRCLE>
<ELLIPSE>
<ORIENT>99.90</ORIENT>
<MAJ_AX>111.10</MAJ_AX>
<MIN_AX>222.20</MIN_AX>
</ELLIPSE>
</H_SHAPE>
</H>
</G>
</F>
<E></E>
</D>
<D>
<D_ID>D_0003</D_ID>
<D_UQ_ID>UQ_D_0003</D_UQ_ID>
<D_TIME>2007 FEB 33:33:33.33</D_TIME>
<F>
<F_TYPE>F_TYPE_TEST</F_TYPE>
<F_SUBTYPE>SUB_TEST</F_SUBTYPE>
<G>
<H>
<H_TYPE>Ipod</H_TYPE>
<H_MODE>SCANNING</H_MODE>
</H>
</G>
</F>
<E></E>
</D>
<D>
<D_ID>D_0004</D_ID>
<D_UQ_ID>UQ_D_0004</D_UQ_ID>
<D_TIME>2007 FEB 44:44:44.44</D_TIME>
<F>
<F_TYPE>F_TYPE_TEST</F_TYPE>
<F_SUBTYPE>SUB_TEST</F_SUBTYPE>
<G>
<H>
<H_TYPE>Ipod</H_TYPE>
<H_MODE>SCANNING</H_MODE>
<H_SHAPE>
<POLYGON>
<SEQ_NUM>1</SEQ_NUM>
<LAT>10.1</LAT>
<LON>11.1</LON>
<SEQ_NUM>2</SEQ_NUM>
<LAT>20.2</LAT>
<LON>22.2</LON>
<SEQ_NUM>3</SEQ_NUM>
<LAT>30.3</LAT>
<LON>33.3</LON>
<SEQ_NUM>4</SEQ_NUM>
<LAT>40.4</LAT>
<LON>44.4</LON>
</POLYGON>
<CIRCLE>
<LAT>12.3</LAT>
<LON>45.6</LON>
<RAD>78.9</RAD>
</CIRCLE>
<ELLIPSE>
<ORIENT>99.90</ORIENT>
<MAJ_AX>111.10</MAJ_AX>
<MIN_AX>222.20</MIN_AX>
</ELLIPSE>
</H_SHAPE>
</H>
</G>
</F>
<E></E>
</D>
<D>
<D_ID>D_0005</D_ID>
<D_UQ_ID>UQ_D_0005</D_UQ_ID>
<D_TIME>2007 FEB 55:55:55.55</D_TIME>
<F>
<F_TYPE>F_TYPE_TEST</F_TYPE>
<F_SUBTYPE>SUB_TEST</F_SUBTYPE>
</F>
<E></E>
</D>
<D>
<D_ID>D_0006</D_ID>
<D_UQ_ID>UQ_D_0006</D_UQ_ID>
<D_TIME>2007 FEB 66:66:66.66</D_TIME>
<F>
<F_TYPE>F_TYPE_TEST</F_TYPE>
<F_SUBTYPE>SUB_TEST</F_SUBTYPE>
<G>
<H>
<H_TYPE>Ipod</H_TYPE>
<H_MODE>SCANNING</H_MODE>
<H_SHAPE>
<POLYGON>
<SEQ_NUM>1</SEQ_NUM>
<LAT>10.1</LAT>
<LON>11.1</LON>
<SEQ_NUM>2</SEQ_NUM>
<LAT>20.2</LAT>
<LON>22.2</LON>
<SEQ_NUM>3</SEQ_NUM>
<LAT>30.3</LAT>
<LON>33.3</LON>
<SEQ_NUM>4</SEQ_NUM>
<LAT>40.4</LAT>
<LON>44.4</LON>
</POLYGON>
<CIRCLE>
<LAT>12.3</LAT>
<LON>45.6</LON>
<RAD>78.9</RAD>
</CIRCLE>
<ELLIPSE>
<ORIENT>99.90</ORIENT>
<MAJ_AX>111.10</MAJ_AX>
<MIN_AX>222.20</MIN_AX>
</ELLIPSE>
</H_SHAPE>
</H>
</G>
</F>
<E></E>
</D>
<D>
<D_ID>D_0007</D_ID>
<D_UQ_ID>UQ_D_0007</D_UQ_ID>
<D_TIME>2007 FEB 77:77:77.77</D_TIME>
<F>
<F_TYPE>F_TYPE_TEST</F_TYPE>
<F_SUBTYPE>SUB_TEST</F_SUBTYPE>
<G>
<H>
<H_TYPE>Ipod</H_TYPE>
<H_MODE>SCANNING</H_MODE>
</H>
</G>
</F>
<E></E>
</D>
<D>
<D_ID>D_0008</D_ID>
<D_UQ_ID>UQ_D_0008</D_UQ_ID>
<D_TIME>2007 FEB 88:88:88.88</D_TIME>
<F>
<F_TYPE>F_TYPE_TEST</F_TYPE>
<F_SUBTYPE>SUB_TEST</F_SUBTYPE>
<G>
<H>
<H_TYPE>Ipod</H_TYPE>
<H_MODE>SCANNING</H_MODE>
<H_SHAPE>
<POLYGON>
<SEQ_NUM>1</SEQ_NUM>
<LAT>10.1</LAT>
<LON>11.1</LON>
<SEQ_NUM>2</SEQ_NUM>
<LAT>20.2</LAT>
<LON>22.2</LON>
<SEQ_NUM>3</SEQ_NUM>
<LAT>30.3</LAT>
<LON>33.3</LON>
<SEQ_NUM>4</SEQ_NUM>
<LAT>40.4</LAT>
<LON>44.4</LON>
</POLYGON>
<CIRCLE>
<LAT>12.3</LAT>
<LON>45.6</LON>
<RAD>78.9</RAD>
</CIRCLE>
<ELLIPSE>
<ORIENT>88.80</ORIENT>
<MAJ_AX>111.10</MAJ_AX>
<MIN_AX>222.20</MIN_AX>
</ELLIPSE>
</H_SHAPE>
</H>
</G>
</F>
<E></E>
</D>
<C>TPS Report 4</C>
</A_B_C>
SELECT statement:
SELECT a_level.a_class
, d_level.D_UQ_ID
, d_level.D_TIME
, h_level.SEQ_NUM
, h_level.LAT
, h_level.LON
FROM ABC_XML,
XMLTABLE('/A_B_C'
PASSING ABC_XML.ABC_SPEC
COLUMNS
A_CLASS VARCHAR2(4000 BYTE) PATH '/A_B_C/A/B'
, D XMLTYPE PATH 'D'
) a_level,
XMLTABLE ('/D'
PASSING a_level.D
COLUMNS
D_UQ_ID varchar2(4000) PATH 'D_UQ_ID'
, D_TIME varchar2(4000) PATH 'D_TIME'
, POLYGON XMLTYPE PATH 'F/G/H/H_SHAPE/POLYGON'
) d_level
XMLTABLE('/POLYGON'
passing d_level.POLYGON
COLUMNS
SEQ_NUM NUMBER PATH 'SEQ_NUM'
, LAT NUMBER PATH 'LAT)'
, LON NUMBER PATH 'LON'
) h_level;
As you see I need to return data from three levels of data (a, d and h). I can remark out the bottom level (h_level) and the statement runs returning 8 rows from the xml file above (which is correct). The h_level XMLTABLE reference returns the ORA-19279 error. The full statement should return 20 rows of data.Yes. I looked at that string.
Never mind on this one. You helped solve the problem in another string
XMLTable 'For $i in ... return ROW' clause help needed -
How to overcome the certificate error?
Maximum Number Of Applications Are Getting certificate expired or error.how to overcome the problem.
To add with above, you can change the date back to 2008 or 2009 in clock settings before installation and when installation finished change it to current 2010. this will only work with "Certificate expired".
Previous Phones: 6600, 7610, 6230, 6230i, 1100, 1112, N70, N73, N95, N95 8GB, 5800XM, 5230, C5, iPhone 3GS, SE Xperia X10, N900, N8, SE Xperia Arc
Current Phones: Nokia N9, iPhone 4 -
How to troubleshoot ORA-04031 error?
I'm getting ORA-04031 errors such as the this one:
ORA-04031: unable to allocate 264 bytes of shared memory ("shared pool","unknown object","PCUR^a9c5b70f","kglob")
Here is the server's information:
OS: RHEL
MEMORY: 48 GB
There is another database on the same server.
Here is the information about the database which has the ORA-04031 errors:
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
Database size (sum of datafiles) is about 2 GB.
SGA_TARGET = 0
SGA_MAX_SIZE = 224M -- Since SGA_TARGET = 0, does SGA_MAX_SIZE still control the maximum size of SGA?
SHARED_POOL_SIZE = 128M
SHARED_POOL_RESERVED_SIZE = 6710886
LOG_BUFFER = 4890624
LARGE_POOL_SIZE = 0
DB_CACHE_SIZE = 64M
DB_BLOCK_SIZE = 8192
JAVA_POOL_SIZE = 24M
SESSION_CACHED_CURSORS = 50
STATISTICS_LEVEL = TYPICAL
MEMORY_TARGET = 0
MEMORY_MAX_TARGET = 0
CPU_COUNT = 16
SQL AREA has 57% GETHITRATIO, 39939 RELOADS, and 1885 INVALIDATIONS.
Should I just increase SHARED_POOL_SIZE?
Thanks for any help.is your post or mine more understandable?
SHARED_POOL_SIZE_FOR_ESTIMATE SHARED_POOL_SIZE_FACTOR ESTD_LC_SIZE ESTD_LC_MEMORY_OBJECTS ESTD_LC_TIME_SAVED ESTD_LC_TIME_SAVED_FACTOR ESTD_LC_LOAD_TIME ESTD_LC_LOAD_TIME_FACTOR ESTD_LC_MEMORY_OBJECT_HITS
124 .7561 6 526 342198 .991 3331 16.0918 705799
144 .878 26 2018 343203 .9939 2326 11.2367 2162766
164 1 46 3297 345322 1 207 1 2177631
184 1.122 66 4698 345433 1.0003 96 .4638 2179067
204 1.2439 86 6164 345438 1.0003 91 .4396 2179314
224 1.3659 101 7094 345440 1.0003 89 .43 2179379
244 1.4878 104 7324 345440 1.0003 89 .43 2179379
264 1.6098 104 7324 345440 1.0003 89 .43 2179379
284 1.7317 104 7324 345440 1.0003 89 .43 2179379
304 1.8537 104 7324 345440 1.0003 89 .43 2179379
324 1.9756 104 7324 345440 1.0003 89 .43 2179379
344 2.0976 104 7324 345440 1.0003 89 .43 2179379
12 rows selected.
SQL> -
Hi,
I am using Oracle 10G XE, and in our Application we happen to see ORA-00600 Oracle error,
Wed Sep 11 15:00:29 2013 Errors in file d:\orant\10gxe\app\oracle\admin\xe\udump\xe_ora_4564.trc:
ORA-00600: 内部エラー・コード、引数: [ktsircinfo_num1],[5],[5],[6275],[],[],[],[].......
how to we overcome this issue, any suggestion will be a great help...
Thanks,
Murali.If this is XE, Oracle support will not support it.
What else you see in xe_ora_4546.trc file. What are you trying to do when you get this error? is it crashing on some query?
this ORA 600 with the first argument you posted is a bug but different bug for different versions. Post some more details so people can help you. -
How to handle ORA-28001 error with JDBC thin driver ?
Dear reader,
As you all know, ORACLE returns error ORA-28001 upon a connection attempt when the user's password has expired.
Handling the error in OCI is quite simple, thanks to the function OCIPasswordChange(). However, I have not been able to find a JAVA equivalent in the Oracle JDBC library.
I have found a field called oracle.jdbc.driver.OracleDriver.set_new_password_string, and a field oracle.jdbc.OracleConnection.CONNECTION_PROPERTY_SET_NEW_PASSWORD, but I have really no idea on how to use them (if appropriate) so as to allow the user to change his/her password on the fly.
I greatly appreciate having any advice from anyone who happened to be faced with that problem.
Best regards.
Georges BREFORTHi,
according to Note [124970.1 Example: How to Change an Expired Password in JDBC?|https://metalink2.oracle.com/metalink/plsql/f?p=130:14:2181952130729466734::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,124970.1,1,1,1,helvetica] it's possible with JDBC Thick (OCI) driver only. -
How to fix ORA-01658 error message
Am trying to get a old bit of database code working and am getting the following errors with the following
REM **********************************************************************
CREATE TABLE gam_service ( /*gam_ser*/
service_group_id NUMBER(10) NOT NULL
CONSTRAINT gam_ser_fk_gam_sergrp REFERENCES gam_service_group (service_group_id)
ON DELETE CASCADE,
service_id NUMBER(10) NOT NULL,
service_name VARCHAR2(127) NOT NULL, /*length from GICS code*/
service_type CHAR(1) NOT NULL, /* Service type Gulp, socKet mp, Special client*/
server VARCHAR2(127) NOT NULL, /* Server name, e.g. "gulp" */
version VARCHAR2(20) NOT NULL, /*Required version number of server binary*/
parameters VARCHAR2(2000) NULL, /* parameters to start the service - could be binary */
cpu_power_level NUMBER(3) NULL, /* NULL for wildcard*/
os_type CHAR(1) NULL /* NULL for wildcard (Solaris2.4, winNt)*/
CONSTRAINT gam_ser_ostype CHECK (os_type IN (NULL, 'S', 'N')),
hardware_owner_type VARCHAR2(10) NULL /* NULL for wildcard (company name)*/
) TABLESPACE gam_tab STORAGE (INITIAL 25K NEXT 100K PCTINCREASE 100 MINEXTENTS 1 MAXEXTENTS unlimited)
CREATE UNIQUE INDEX gam_service_pk on gam_service (service_group_id, service_name)
TABLESPACE gam_ind
STORAGE (INITIAL 5K NEXT 20K PCTINCREASE 100 MINEXTENTS 1 MAXEXTENTS unlimited)
CREATE SEQUENCE gam_service_seq
INCREMENT BY 1
START WITH 1001
NOCYCLE
NOCACHE
NOORDER
here the error message
CREATE UNIQUE INDEX gam_service_pk on gam_service (service_group_id, service_name)
ERROR at line 1:
ORA-01658: unable to create INITIAL extent for segment in tablespace GAM_IND
i really hope some one can help me thanksYou just ran out of space in gam_ind tablespace. Contiguous space to be precise. Your INTITIAL extend needs 5K of contoguous space. And since you specified PCTINCREASE 100, need for contiguous space will double with each next extent. So most likely you ended up with a case where there is plenty of free space not no contiguous space of required size.
SY. -
How to solve ora-00054 error while drop the constraint
i am trying to drop the constraint for the table but it will give the below error.
ora-00054 resource busy and acquire.
can you please tell me solve this problem. but in my pc i am not using that table at any where in the system.
ALTER TABLE EIIS_JBWSTOCK
DROP CONSTRAINT CHK_TRAN_JOB_TYPE;
this is my code for alter table constraint.
thanksYou may find <sid, serial#> and kill the session.
SELECT c.owner,
c.object_name,
c.object_type,
b.SID,
b.serial#,
b.status,
b.osuser,
b.machine
FROM v$locked_object a, v$session b, dba_objects c
WHERE b.SID = a.session_id AND a.object_id = c.object_id; --You may add extra condition for your table.
ALTER SYSTEM KILL SESSION '<sid, serial#>' -
How to overcome Kill_process script error
I have downloaded the nokia device updater on my PC. while installing it is giving error code 1720 line 11 col 1 with messsage Kill_process script error . how can I resolve this problem
my suggestion is to try to install windows script 5.6 from here :
http://www.microsoft.com/downloads/details.aspx?FamilyID=c717d943-7e4b-4622-86eb-95a22b832caa&Displa...
and try to install the software again.
Fear not those who argue but those who dodge -
How to overcome Kill_process script error - 214721...
User of your NOKIA 6300 phone having the current Software on phone ver 5.57 and I want to update the phone software to new one which is currently available. I am using Windows XP Service Pack 3 while installing the update software of Nokia I am getting the under mentioned error
Kill_process script error - 2147217407
How to over come this problem.
/discussions/board/post?board.id=swupdate#Hi,
welcome to forum.
first read this carefully:
http://europe.nokia.com/A4577229
its about software update troubleshooting FAQ.
if you couldnt solve your problem i will help you.
NOKIA means:Night Of King In Alone -
Hi DBAs,
I'm trying to modify a column from number(10) to varchar2(15). But am getting ORA-1439 :column to be modified must
be empty to change datatype. I'm running oracle 9.2
Anyone knows what is the best method to overcome this?
Thanks in advance.Hi,
In order to do so, you must
* Create a new column of the good datatype.
* Update (transfer) the values
* Drop the old column
* Rename the new columnALTER TABLE myTable ADD ( newcol VARCHAR2(15) );
UPDATE MyTable SET newcol=oldcol;
ALTER TABLE myTable DROP COLUMN oldcol;
ALTER TABLE myTable RENAME COLUMN oldcol TO newcol;Regards,
Yoann. -
Information regarding how to overcome LIBGWT_CAT:1267 error is required
Hi,
We are using WLE5.0.1 along with Tuxedo6.5 .Sometimes the call from a CORBA Server
to a remote BEA tuxedo service is failing .Error in ULOG is :
132855.GWTDOMAIN.8237: LIBGWT_CAT:1267: ERROR: Unable to convert old stlye network
buffer. Error code 90.
At Times,The GWTDOMAIN server dumps core(Segmentation fault 11).
On restarting this GWTDOMAIN server the same call(ie sameinput data) to the remote
TUXEDO service passes.
As the clarification given for this error,we have checked up Product versions
and they are fine(ie TUXEDO Version 6.5forWLE5.0.1 on both domains ie where the
remote Tux service is running tux6.5and the local wledomain5.0.1 for tux6.5).
Does anybody have any info in overcoming this error?Hello,
Can you provide some source code so that I can better understand what you are trying to do? Also, can you provide the complete error message from the log file that you are getting? -
I'm having trouble getting subordinate tag data out of this structure:
<CASE_BATCH>
<CASEDETAIL>
<HEADER>
<PERSON_ID>214339</PERSON_ID>
</HEADER>
<ASSOC>
<AP_ID>166646</AP_ID>
<AP_NAME>
<LASTNAME>TEST</LASTNAME>
<FIRSTNAME>TEST</FIRSTNAME>
</AP_NAME>
</ASSOC>
<ASSOC>
<AP_ID>166647</AP_ID>
<AP_NAME>
<LASTNAME>TEST2</LASTNAME>
<FIRSTNAME>TEST2</FIRSTNAME>
</AP_NAME>
</ASSOC>
</CASEDETAIL>
</CASEBATCH>
One of the many XQueries I've tried is:
select b.*
from eachFile,
xmltable('/CASE_BATCH/CASEDETAIL'
passing eachfile.mytype
columns
extnum number PATH '/CASEDETAIL/HEADER/PERSON_ID') A,
xmltable('CASE_BATCH/CASEDETAIL'
passing eachfile.mytype
columns
extnum number PATH '/CASEDETAIL/HEADER/PERSON_ID',
id Number Path '/CASEDETAIL/ASSOC/AP_ID',
lastname varchar2(50) '/CASEDETAIL/ASSOC/AP_NAME/LASTNAME',
firstname varchar2(50) '/CASEDETAIL/ASSOC/AP_NAME/FIRSTNAME') b
where a.extnum = 214339 and
a.extnum = b.extnum
If I leave the b.extnum out of it the column and where clause, and set the xmlTable path down to 'CASE_BATCH/CASEDETAIL/ASSOC' and the b columns path as
'/ASSOC/PERSON_ID' then I return all data, regardless of where in the file it's located. That makes sense because I don't have the extnum in the where clause to filter out unrelated tags.
How can I make this work?Here is an example of using the XMLTable() function to create a master-detail view over multiple levels of your XML data. This PURCHASEORDER table can be found in the OE (order entry) sample schema when you create a new database instance with DBCA. Notice the passing clause (i.e., passing m.items ) in the second XMLTable() function.
Send me email (geoff dot lee at oracle dot com) directly if you still have problems.
Regards,
Geoff
SQL> create or replace view PO_MASTER_DETAIL_VIEW
2 as
3 select m.REFERENCE,m.REQUESTOR,m.USERID,m.COSTCENTER,item.*
4 from PO_SL_BIX_TABLE,
5 xmltable
6 ('/PurchaseOrder' passing object_value
7 COLUMNS
8 REFERENCE varchar2(30) path 'Reference',
9 REQUESTOR varchar2(128) path 'Requestor',
10 USERID varchar(10) path 'User',
11 COSTCENTER varchar2(4) path 'CostCenter',
12 ITEMS xmltype path 'LineItems'
13 ) m,
14 xmltable
15 ('/LineItems/LineItem' passing m.items
16 COLUMNS
17 ITEMNO number(38) path '@ItemNumber',
18 DESCRIPTION varchar2(1024) path 'Description',
19 PARTNO varchar2(56) path 'Part/@Id',
20 QUANTITY number(38) path 'Part/@Quantity',
21 UNITPRICE number(12,2) path 'Part/@UnitPrice'
22 ) item
23 /
View created.
SQL>
SQL> describe PO_MASTER_DETAIL_VIEW
Name Null? Type
REFERENCE VARCHAR2(30)
REQUESTOR VARCHAR2(128)
USERID VARCHAR2(10)
COSTCENTER VARCHAR2(4)
ITEMNO NUMBER(38)
DESCRIPTION VARCHAR2(1024)
PARTNO VARCHAR2(56)
QUANTITY NUMBER(38)
UNITPRICE NUMBER(12,2)
SQL> select REFERENCE, ITEMNO, PARTNO
2 from PO_MASTER_DETAIL_VIEW
3 where USERID = 'SBELL'
4 and PARTNO in ( '37429121726', '37429122129', '715515009058' )
5 /
REFERENCE ITEMNO PARTNO
SBELL-20021009123335280PDT 7 715515009058
SBELL-20021009123335280PDT 11 37429121726
SBELL-20021009123338304PDT 9 37429122129
SBELL-20021009123336331PDT 2 715515009058
SBELL-2002100912333763PDT 19 37429122129
SBELL-2002100912333601PDT 1 715515009058
SBELL-20021009123336532PDT 2 37429121726
SBELL-20021009123338204PDT 12 715515009058
8 rows selected. -
ORA-20000 error when executing background jobs in BI System
Hello Experts,
We newly installed NW2004s System. Few BI related background jobs are showing Error no: 4 or Error no: 3 in SM50. Also few BI related background jobs are giving error "ORA-20000 occurred when executing SQL statement (parse error offset=0)". Please let me know what does Error 4 or 3 mean in SM50 and how to resolve Ora-20000 error?
ThanksThis may be to do with insufficient authorization for the user (for creating statistics for example). Check OSS note 963760.
Maybe you are looking for
-
Creation of DSN for Text driver in Linux
Hi, I have created the DSN for Microsoft Text driver in windows and i have used this DSN in my java program. I am having database of text files. These text file data is delimited by comma. I want to create DSN for Text driver in Linux for use of my j
-
How to get the status of the method
Hi, I have created a services and method to start the processes. Method: #!/sbin/sh . /lib/svc/share/smf_include.sh case "$1" in 'start') /usr/local/proce start sleep 10 'stop') /usr/local/proce stop echo "Usage: $0 { start | stop }" exit 1 esac exit
-
Why can I no longer open .doc files with Word2011
I can no longer open .doc files with Word 2011. .docx files are not a problem. Everything stops responding as soon as I try to open a .doc file and I have to do a manual reboot (by holding the power button down). This seems to coincide with my upd
-
Help needed ASAP! Ext. DVD-RW Drive Question
I need help...I have a Mac Mini purchased in 2005 with just a CD-R (I didn't buy the SuperDrive model). I am wanting to connect a firewire DVD-RW drive to burn a slideshow created in iPhoto. However, I do not have iDVD on the machine, and when I try
-
Hi - still something of a novice in GB, this is a question about editing a radio show that I do on a weekly basis. I used to edit the shows (post-broadcast, just for archiving) with the free program Audacity. Audacity is a free/shareware program, a b