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
Similar Messages
-
Error message "one or more sequences cannot be opened"
Premiere won't open a saved file - error message "one or more sequences cannot be opened" - no options given.
This has happened several times, after Premiere crashes. Has anyone had this same problem, or know what to do about it?FAQ: Why are some codecs and sequence presets missing from my installation of Premiere Pro?
-
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 -
Ora - 1555 error with one query
Hi
We are getting ora-1555 error for particularly one query.I am providing the details
1.Database version : 9.2.0.8
2.Database size : 1354 gb
3.Undo tablespace size : 118 GB
4.Undo retention is 18000 secs
SELECT
distinct poi.company_code po_comp_code, poi.customer_number po_customer_number, poi.purchase_order_number, poi.purchase_order_line_item, poi.purchase_order_sub_item_1, poi.purchase_order_sub_item_2, poi.material_status, dt.company_code del_company_code, dt.site_code del_site_code, dt.delivery_number FROM PURGEWORKPO pw JOIN PurchaseOrderItem poi ON (poi.company_code = pw.purchase_order_company_code AND poi.customer_number = pw.purchase_order_customer_number AND poi.purchase_order_number = pw.purchase_order_number ) JOIN MaterialReceipt mr ON (mr.purchase_order_company_code = pw.purchase_order_company_code AND mr.purchase_order_customer_no = pw.purchase_order_customer_number AND mr.purchase_order_number = pw.purchase_order_number) JOIN ReceivingItem ri ON (ri.company_code = mr.company_code AND ri.site_code = mr.site_code AND ri.receiving_number = mr.receiving_number AND ri.package_number = mr.package_number) JOIN DeliveryTicket dt ON (dt.company_code = ri.del_company_code AND dt.site_code = ri.del_site_code AND dt.delivery_number = ri.delivery_number) WHERE pw.purge_session_id = ? AND (( poi.material_status <> 7) OR (DT.CONFIRMED_DATE NOT between ? AND
?)) I am providing some part of the query which is used for purging the data.This query is failing with ora -1555 after Please let us know what action need to be taken.since undo tablespace size and retention time has enough values
Thanks
PVuser10719327 wrote:
Hi
We are getting ora-1555 error for particularly one query.I am providing the details
1.Database version : 9.2.0.8
2.Database size : 1354 gb
3.Undo tablespace size : 118 GB
4.Undo retention is 18000 secs
SELECT
distinct poi.company_code po_comp_code, poi.customer_number po_customer_number, poi.purchase_order_number, poi.purchase_order_line_item, poi.purchase_order_sub_item_1, poi.purchase_order_sub_item_2, poi.material_status, dt.company_code del_company_code, dt.site_code del_site_code, dt.delivery_number FROM PURGEWORKPO pw JOIN PurchaseOrderItem poi ON (poi.company_code = pw.purchase_order_company_code AND poi.customer_number = pw.purchase_order_customer_number AND poi.purchase_order_number = pw.purchase_order_number ) JOIN MaterialReceipt mr ON (mr.purchase_order_company_code = pw.purchase_order_company_code AND mr.purchase_order_customer_no = pw.purchase_order_customer_number AND mr.purchase_order_number = pw.purchase_order_number) JOIN ReceivingItem ri ON (ri.company_code = mr.company_code AND ri.site_code = mr.site_code AND ri.receiving_number = mr.receiving_number AND ri.package_number = mr.package_number) JOIN DeliveryTicket dt ON (dt.company_code = ri.del_company_code AND dt.site_code = ri.del_site_code AND dt.delivery_number = ri.delivery_number) WHERE pw.purge_session_id = ? AND (( poi.material_status <> 7) OR (DT.CONFIRMED_DATE NOT between ? AND
?)) I am providing some part of the query which is used for purging the data.This query is failing with ora -1555 after Please let us know what action need to be taken.since undo tablespace size and retention time has enough values
do NOT have COMMIT inside LOOP!
only have single COMMIT after all rows have been DELETED -
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. -
Error relationship one to many
I'm having a problem using JPA (toplink) / Jaybird with a relationship for many:
Call the methods:
EmpresaFacadeRemote empresa = (EmpresaFacadeRemote) ic.lookup("br.teste.app.beans.EmpresaFacadeRemote");
empresa.createEmpresa(jtfRasaoSocial.getText(), jtfNomeFantasia.getText(), jtfCpfCnpj.getText(), jtfRgInscEstadual.getText());
empresa.addMeioContato(meiosContatoList);package br.teste.app.beans;
<strong>Session Beans:</strong>
import br.teste.app.entidades.MeioContato;
import br.teste.app.entidades.Pessoa;
import java.util.List;
import javax.ejb.Stateful;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceContextType;
* @author kurumin
@Stateful
public class EmpresaFacade implements EmpresaFacadeRemote {
@PersistenceContext(type=PersistenceContextType.TRANSACTION)
private EntityManager em;
public Pessoa createEmpresa(String rasaoSocial, String nomeFantasia, String cnpj, String inscricaiEstadual) {
this.empresa = new Pessoa(rasaoSocial, nomeFantasia, cnpj, inscricaiEstadual,"EM",'J');
em.persist(empresa);
return empresa;
public Pessoa createEmpresa(Pessoa empresa, List<MeioContato> meiosContatoList) {
this.empresa = empresa;
empresa.setMeioContatoCollection(meiosContatoList);
em.persist(empresa);
return empresa;
public void addMeioContato(List<MeioContato> meiosContatoList) {
this.empresa.setMeioContatoCollection(meiosContatoList);
em.merge(empresa);
private Pessoa empresa;
<strong>Entity Beans</strong>
package br.teste.app.entidades;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
* @author kurumin
@Entity
@Table(name = "PESSOA")
@NamedQueries({@NamedQuery(name = "Pessoa.findByCodigo", query = "SELECT p FROM Pessoa p WHERE p.codigo = :codigo")})
public class Pessoa implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "CODIGO", nullable = false)
private Integer codigo;
@Column(name = "NOME", nullable = false)
private String nome;
@Column(name = "APELIDO")
private String apelido;
@Column(name = "CPF_CNPJ", nullable = false)
private String cpfCnpj;
@Column(name = "RG_INSCRICAO")
private String rgInscricao;
@Column(name = "ORGAO_EXPEDIDOR")
private String orgaoExpedidor;
@Column(name = "UF")
private String uf;
@Column(name = "FOTO_LOGOMARCA")
private String fotoLogomarca;
@Column(name = "TIPO", nullable = false)
private String tipo;
@Column(name = "TIPO_PESSOA", nullable = false)
private char tipoPessoa;
@Column(name = "DATA_CADASTRO")
@Temporal(TemporalType.DATE)
private Date dataCadastro;
@Column(name = "OBSERVACAO")
private String observacao;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "pessoaCodg")
private Collection<MeioContato> meioContatoCollection;
public Pessoa() {
public Pessoa(String nome, String apelido, String cpfCnpj, String rgInscricao,
String orgaoExpedidor, String uf, String tipo, char tipoPessoa) {
this.nome = nome;
this.apelido = apelido;
this.cpfCnpj = cpfCnpj;
this.rgInscricao = rgInscricao;
this.orgaoExpedidor = orgaoExpedidor;
this.uf = uf;
this.tipo = tipo;
this.tipoPessoa = tipoPessoa;
public Pessoa(String nome, String apelido, String cpfCnpj, String rgInscricao,
String tipo, char tipoPessoa) {
this.nome = nome;
this.apelido = apelido;
this.cpfCnpj = cpfCnpj;
this.rgInscricao = rgInscricao;
this.tipo = tipo;
this.tipoPessoa = tipoPessoa;
public Integer getCodigo() {
return codigo;
public void setCodigo(Integer codigo) {
this.codigo = codigo;
public String getNome() {
return nome;
public void setNome(String nome) {
this.nome = nome;
public String getApelido() {
return apelido;
public void setApelido(String apelido) {
this.apelido = apelido;
public String getCpfCnpj() {
return cpfCnpj;
public void setCpfCnpj(String cpfCnpj) {
this.cpfCnpj = cpfCnpj;
public String getRgInscricao() {
return rgInscricao;
public void setRgInscricao(String rgInscricao) {
this.rgInscricao = rgInscricao;
public String getOrgaoExpedidor() {
return orgaoExpedidor;
public void setOrgaoExpedidor(String orgaoExpedidor) {
this.orgaoExpedidor = orgaoExpedidor;
public String getUf() {
return uf;
public void setUf(String uf) {
this.uf = uf;
public String getFotoLogomarca() {
return fotoLogomarca;
public void setFotoLogomarca(String fotoLogomarca) {
this.fotoLogomarca = fotoLogomarca;
public String getTipo() {
return tipo;
public void setTipo(String tipo) {
this.tipo = tipo;
public char getTipoPessoa() {
return tipoPessoa;
public void setTipoPessoa(char tipoPessoa) {
this.tipoPessoa = tipoPessoa;
public Date getDataCadastro() {
return dataCadastro;
public void setDataCadastro(Date dataCadastro) {
this.dataCadastro = dataCadastro;
public String getObservacao() {
return observacao;
public void setObservacao(String observacao) {
this.observacao = observacao;
public Collection<MeioContato> getMeioContatoCollection() {
return meioContatoCollection;
public void setMeioContatoCollection(Collection<MeioContato> meioContatoCollection) {
this.meioContatoCollection = meioContatoCollection;
@Override
public int hashCode() {
int hash = 0;
hash += (codigo != null ? codigo.hashCode() : 0);
return hash;
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Pessoa)) {
return false;
Pessoa other = (Pessoa) object;
if ((this.codigo == null && other.codigo != null) || (this.codigo != null && !this.codigo.equals(other.codigo))) {
return false;
return true;
@Override
public String toString() {
return "br.teste.app.entidades.Pessoa[codigo=" + codigo + "]";
package br.teste.app.entidades;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
* @author kurumin
@Entity
@Table(name = "MEIO_CONTATO")
@NamedQueries({@NamedQuery(name = "MeioContato.findByMeioContato", query = "SELECT m FROM MeioContato m WHERE m.meioContato = :meioContato")})
public class MeioContato implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "MEIO_CONTATO", nullable = false)
private String meioContato;
@Column(name = "TIPO", nullable = false)
private String tipo;
@Column(name = "RESPONSAVEL")
private String responsavel;
@Id
@Column(name = "DESCRICAO", nullable = false)
private String descricao;
@Column(name = "SETOR")
private String setor;
@JoinColumn(name = "PESSOA_CODG", referencedColumnName = "CODIGO")
@ManyToOne
private Pessoa pessoaCodg;
public MeioContato() {
public MeioContato(String tipo, String meioContato, String setor, String resposavel, String descricao) {
this.descricao = descricao;
this.meioContato = meioContato;
this.tipo = tipo;
this.responsavel = resposavel;
this.setor = setor;
public String getMeioContato() {
return meioContato;
public void setMeioContato(String meioContato) {
this.meioContato = meioContato;
public String getTipo() {
return tipo;
public void setTipo(String tipo) {
this.tipo = tipo;
public String getResponsavel() {
return responsavel;
public void setResponsavel(String responsavel) {
this.responsavel = responsavel;
public String getDescricao() {
return descricao;
public void setDescricao(String descricao) {
this.descricao = descricao;
public String getSetor() {
return setor;
public void setSetor(String setor) {
this.setor = setor;
public Pessoa getPessoaCodg() {
return pessoaCodg;
public void setPessoaCodg(Pessoa pessoaCodg) {
this.pessoaCodg = pessoaCodg;
@Override
public int hashCode() {
int hash = 0;
hash += (descricao != null ? descricao.hashCode() : 0);
return hash;
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof MeioContato)) {
return false;
MeioContato other = (MeioContato) object;
if ((this.descricao == null && other.descricao != null) || (this.descricao != null && !this.descricao.equals(other.descricao))) {
return false;
return true;
@Override
public String toString() {
return "br.teste.app.entidades.MeioContato[descricao=" + descricao + "]";
<font color="#ff0000">Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544665. violation of PRIMARY or UNIQUE KEY constraint "UNQ_PESSOA_CPF" on table "PESSOA"
Error Code: 335544665
Call: INSERT INTO PESSOA (CODIGO, UF, FOTO_LOGOMARCA, APELIDO, TIPO, RG_INSCRICAO, TIPO_PESSOA, NOME, DATA_CADASTRO, ORGAO_EXPEDIDOR, OBSERVACAO, CPF_CNPJ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
bind => [null, null, null, kjkjk, EM, jkjljlj, J, julkjlkjl, null, null, null, jkjkj222]</font>
Another way to call the methods:
EmpresaFacadeRemote empresa = (EmpresaFacadeRemote) ic.lookup("br.teste.app.beans.EmpresaFacadeRemote");
private Pessoa entidadePessoa = new Pessoa(jtfRasaoSocial.getText(), jtfNomeFantasia.getText(), jtfCpfCnpj.getText(), jtfRgInscEstadual.getText(),"EM",'J');
empresa.createEmpresa(entidadePessoa,meiosContatoList);
package br.teste.app.beans;<br />
<br />
<strong>Session Beans:</strong><br />
<br />
import br.teste.app.entidades.MeioContato;<br />
import br.teste.app.entidades.Pessoa;<br />
import java.util.List;<br />
import javax.ejb.Stateful;<br />
import javax.persistence.EntityManager;<br />
import javax.persistence.PersistenceContext;<br />
import javax.persistence.PersistenceContextType;<br />
<br />
/**<br />
*<br />
* @author kurumin<br />
*/<br />
@Stateful<br />
public class EmpresaFacade implements EmpresaFacadeRemote {<br />
@PersistenceContext(type=PersistenceContextType.TRANSACTION)<br />
private EntityManager em;<br />
<br />
public Pessoa createEmpresa(String rasaoSocial, String nomeFantasia, String cnpj, String inscricaiEstadual) {<br />
this.empresa = new Pessoa(rasaoSocial, nomeFantasia, cnpj, inscricaiEstadual,"EM",'J');<br />
em.persist(empresa);<br />
return empresa;<br />
}<br />
<br />
public Pessoa createEmpresa(Pessoa empresa, List<MeioContato> meiosContatoList) {<br />
this.empresa = empresa;<br />
empresa.setMeioContatoCollection(meiosContatoList);<br />
em.persist(empresa);<br />
return empresa;<br />
}<br />
<br />
public void addMeioContato(List<MeioContato> meiosContatoList) {<br />
this.empresa.setMeioContatoCollection(meiosContatoList);<br />
em.merge(empresa);<br />
}<br />
<br />
private Pessoa empresa;<br />
<br />
}<br />
<br />
<strong>Entity Beans</strong><br />
<br />
<br />
package br.teste.app.entidades;<br />
<br />
import java.io.Serializable;<br />
import java.util.Collection;<br />
import java.util.Date;<br />
import javax.persistence.CascadeType;<br />
import javax.persistence.Column;<br />
import javax.persistence.Entity;<br />
import javax.persistence.Id;<br />
import javax.persistence.NamedQueries;<br />
import javax.persistence.NamedQuery;<br />
import javax.persistence.OneToMany;<br />
import javax.persistence.Table;<br />
import javax.persistence.Temporal;<br />
import javax.persistence.TemporalType;<br />
<br />
/**<br />
*<br />
* @author kurumin<br />
*/<br />
@Entity<br />
@Table(name = "PESSOA")<br />
@NamedQueries({@NamedQuery(name = "Pessoa.findByCodigo", query = "SELECT p FROM Pessoa p WHERE p.codigo = :codigo"), @NamedQuery(name = "Pessoa.findByNome", query = "SELECT p FROM Pessoa p WHERE p.nome = :nome"), @NamedQuery(name = "Pessoa.findByApelido", query = "SELECT p FROM Pessoa p WHERE p.apelido = :apelido"), @NamedQuery(name = "Pessoa.findByCpfCnpj", query = "SELECT p FROM Pessoa p WHERE p.cpfCnpj = :cpfCnpj"), @NamedQuery(name = "Pessoa.findByRgInscricao", query = "SELECT p FROM Pessoa p WHERE p.rgInscricao = :rgInscricao"), @NamedQuery(name = "Pessoa.findByOrgaoExpedidor", query = "SELECT p FROM Pessoa p WHERE p.orgaoExpedidor = :orgaoExpedidor"), @NamedQuery(name = "Pessoa.findByUf", query = "SELECT p FROM Pessoa p WHERE p.uf = :uf"), @NamedQuery(name = "Pessoa.findByFotoLogomarca", query = "SELECT p FROM Pessoa p WHERE p.fotoLogomarca = :fotoLogomarca"), @NamedQuery(name = "Pessoa.findByTipo", query = "SELECT p FROM Pessoa p WHERE p.tipo = :tipo"), @NamedQuery(name = "Pessoa.findByTipoPessoa", query = "SELECT p FROM Pessoa p WHERE p.tipoPessoa = :tipoPessoa"), @NamedQuery(name = "Pessoa.findByDataCadastro", query = "SELECT p FROM Pessoa p WHERE p.dataCadastro = :dataCadastro"), @NamedQuery(name = "Pessoa.findByObservacao", query = "SELECT p FROM Pessoa p WHERE p.observacao = :observacao")})<br />
public class Pessoa implements Serializable {<br />
private static final long serialVersionUID = 1L;<br />
@Id<br />
@Column(name = "CODIGO", nullable = false)<br />
private Integer codigo;<br />
@Column(name = "NOME", nullable = false)<br />
private String nome;<br />
@Column(name = "APELIDO")<br />
private String apelido;<br />
@Column(name = "CPF_CNPJ", nullable = false)<br />
private String cpfCnpj;<br />
@Column(name = "RG_INSCRICAO")<br />
private String rgInscricao;<br />
@Column(name = "ORGAO_EXPEDIDOR")<br />
private String orgaoExpedidor;<br />
@Column(name = "UF")<br />
private String uf;<br />
@Column(name = "FOTO_LOGOMARCA")<br />
private String fotoLogomarca;<br />
@Column(name = "TIPO", nullable = false)<br />
private String tipo;<br />
@Column(name = "TIPO_PESSOA", nullable = false)<br />
private char tipoPessoa;<br />
@Column(name = "DATA_CADASTRO")<br />
@Temporal(TemporalType.DATE)<br />
private Date dataCadastro;<br />
@Column(name = "OBSERVACAO")<br />
private String observacao;<br />
@OneToMany(cascade = CascadeType.ALL, mappedBy = "pessoaCodg")<br />
private Collection<MeioContato> meioContatoCollection;<br />
<br />
public Pessoa() {<br />
}<br />
<br />
public Pessoa(String nome, String apelido, String cpfCnpj, String rgInscricao,<br />
String orgaoExpedidor, String uf, String tipo, char tipoPessoa) {<br />
this.nome = nome;<br />
this.apelido = apelido;<br />
this.cpfCnpj = cpfCnpj;<br />
this.rgInscricao = rgInscricao;<br />
this.orgaoExpedidor = orgaoExpedidor;<br />
this.uf = uf;<br />
this.tipo = tipo;<br />
this.tipoPessoa = tipoPessoa; <br />
}<br />
<br />
public Pessoa(String nome, String apelido, String cpfCnpj, String rgInscricao,<br />
String tipo, char tipoPessoa) {<br />
this.nome = nome;<br />
this.apelido = apelido;<br />
this.cpfCnpj = cpfCnpj;<br />
this.rgInscricao = rgInscricao;<br />
this.tipo = tipo;<br />
this.tipoPessoa = tipoPessoa;<br />
}<br />
<br />
public Integer getCodigo() {<br />
return codigo;<br />
}<br />
<br />
public void setCodigo(Integer codigo) {<br />
this.codigo = codigo;<br />
}<br />
<br />
public String getNome() {<br />
return nome;<br />
}<br />
<br />
public void setNome(String nome) {<br />
this.nome = nome;<br />
}<br />
<br />
public String getApelido() {<br />
return apelido;<br />
}<br />
<br />
public void setApelido(String apelido) {<br />
this.apelido = apelido;<br />
}<br />
<br />
public String getCpfCnpj() {<br />
return cpfCnpj;<br />
}<br />
<br />
public void setCpfCnpj(String cpfCnpj) {<br />
this.cpfCnpj = cpfCnpj;<br />
}<br />
<br />
public String getRgInscricao() {<br />
return rgInscricao;<br />
}<br />
<br />
public void setRgInscricao(String rgInscricao) {<br />
this.rgInscricao = rgInscricao;<br />
}<br />
<br />
public String getOrgaoExpedidor() {<br />
return orgaoExpedidor;<br />
}<br />
<br />
public void setOrgaoExpedidor(String orgaoExpedidor) {<br />
this.orgaoExpedidor = orgaoExpedidor;<br />
}<br />
<br />
public String getUf() {<br />
return uf;<br />
}<br />
<br />
public void setUf(String uf) {<br />
this.uf = uf;<br />
}<br />
<br />
public String getFotoLogomarca() {<br />
return fotoLogomarca;<br />
}<br />
<br />
public void setFotoLogomarca(String fotoLogomarca) {<br />
this.fotoLogomarca = fotoLogomarca;<br />
}<br />
<br />
public String getTipo() {<br />
return tipo;<br />
}<br />
<br />
public void setTipo(String tipo) {<br />
this.tipo = tipo;<br />
}<br />
<br />
public char getTipoPessoa() {<br />
return tipoPessoa;<br />
}<br />
<br />
public void setTipoPessoa(char tipoPessoa) {<br />
this.tipoPessoa = tipoPessoa;<br />
}<br />
<br />
public Date getDataCadastro() {<br />
return dataCadastro;<br />
}<br />
<br />
public void setDataCadastro(Date dataCadastro) {<br />
this.dataCadastro = dataCadastro;<br />
}<br />
<br />
public String getObservacao() {<br />
return observacao;<br />
}<br />
<br />
public void setObservacao(String observacao) {<br />
this.observacao = observacao;<br />
}<br />
<br />
public Collection<MeioContato> getMeioContatoCollection() {<br />
return meioContatoCollection;<br />
}<br />
<br />
public void setMeioContatoCollection(Collection<MeioContato> meioContatoCollection) {<br />
this.meioContatoCollection = meioContatoCollection;<br />
}<br />
<br />
@Override<br />
public int hashCode() {<br />
int hash = 0;<br />
hash += (codigo != null ? codigo.hashCode() : 0);<br />
return hash;<br />
}<br />
<br />
@Override<br />
public boolean equals(Object object) {<br />
// TODO: Warning - this method won't work in the case the id fields are not set<br />
if (!(object instanceof Pessoa)) {<br />
return false;<br />
}<br />
Pessoa other = (Pessoa) object;<br />
if ((this.codigo == null && other.codigo != null) || (this.codigo != null && !this.codigo.equals(other.codigo))) {<br />
return false;<br />
}<br />
return true;<br />
}<br />
<br />
@Override<br />
public String toString() {<br />
return "br.teste.app.entidades.Pessoa[codigo=" + codigo + "]";<br />
}<br />
<br />
}<br />
<br />
<br />
package br.teste.app.entidades;<br />
<br />
import java.io.Serializable;<br />
import javax.persistence.Column;<br />
import javax.persistence.Entity;<br />
import javax.persistence.Id;<br />
import javax.persistence.JoinColumn;<br />
import javax.persistence.ManyToOne;<br />
import javax.persistence.NamedQueries;<br />
import javax.persistence.NamedQuery;<br />
import javax.persistence.Table;<br />
<br />
/**<br />
*<br />
* @author kurumin<br />
*/<br />
@Entity<br />
@Table(name = "MEIO_CONTATO")<br />
@NamedQueries({@NamedQuery(name = "MeioContato.findByMeioContato", query = "SELECT m FROM MeioContato m WHERE m.meioContato = :meioContato"), @NamedQuery(name = "MeioContato.findByTipo", query = "SELECT m FROM MeioContato m WHERE m.tipo = :tipo"), @NamedQuery(name = "MeioContato.findByResponsavel", query = "SELECT m FROM MeioContato m WHERE m.responsavel = :responsavel"), @NamedQuery(name = "MeioContato.findByDescricao", query = "SELECT m FROM MeioContato m WHERE m.descricao = :descricao"), @NamedQuery(name = "MeioContato.findBySetor", query = "SELECT m FROM MeioContato m WHERE m.setor = :setor")})<br />
public class MeioContato implements Serializable {<br />
private static final long serialVersionUID = 1L;<br />
@Column(name = "MEIO_CONTATO", nullable = false)<br />
private String meioContato;<br />
@Column(name = "TIPO", nullable = false)<br />
private String tipo;<br />
@Column(name = "RESPONSAVEL")<br />
private String responsavel;<br />
@Id<br />
@Column(name = "DESCRICAO", nullable = false)<br />
private String descricao;<br />
@Column(name = "SETOR")<br />
private String setor;<br />
@JoinColumn(name = "PESSOA_CODG", referencedColumnName = "CODIGO")<br />
@ManyToOne<br />
private Pessoa pessoaCodg;<br />
<br />
public MeioContato() {<br />
}<br />
<br />
public MeioContato(String tipo, String meioContato, String setor, String resposavel, String descricao) {<br />
this.descricao = descricao;<br />
this.meioContato = meioContato;<br />
this.tipo = tipo;<br />
this.responsavel = resposavel;<br />
this.setor = setor;<br />
}<br />
<br />
public String getMeioContato() {<br />
return meioContato;<br />
}<br />
<br />
public void setMeioContato(String meioContato) {<br />
this.meioContato = meioContato;<br />
}<br />
<br />
public String getTipo() {<br />
return tipo;<br />
}<br />
<br />
public void setTipo(String tipo) {<br />
this.tipo = tipo;<br />
}<br />
<br />
public String getResponsavel() {<br />
return responsavel;<br />
}<br />
<br />
public void setResponsavel(String responsavel) {<br />
this.responsavel = responsavel;<br />
}<br />
<br />
public String getDescricao() {<br />
return descricao;<br />
}<br />
<br />
public void setDescricao(String descricao) {<br />
this.descricao = descricao;<br />
}<br />
<br />
public String getSetor() {<br />
return setor;<br />
}<br />
<br />
public void setSetor(String setor) {<br />
this.setor = setor;<br />
}<br />
<br />
public Pessoa getPessoaCodg() {<br />
return pessoaCodg;<br />
}<br />
<br />
public void setPessoaCodg(Pessoa pessoaCodg) {<br />
this.pessoaCodg = pessoaCodg;<br />
}<br />
<br />
@Override<br />
public int hashCode() {<br />
int hash = 0;<br />
hash += (descricao != null ? descricao.hashCode() : 0);<br />
return hash;<br />
}<br />
<br />
@Override<br />
public boolean equals(Object object) {<br />
// TODO: Warning - this method won't work in the case the id fields are not set<br />
if (!(object instanceof MeioContato)) {<br />
return false;<br />
}<br />
MeioContato other = (MeioContato) object;<br />
if ((this.descricao == null && other.descricao != null) || (this.descricao != null && !this.descricao.equals(other.descricao))) {<br />
return false;<br />
}<br />
return true;<br />
}<br />
<br />
@Override<br />
public String toString() {<br />
return "br.teste.app.entidades.MeioContato[descricao=" + descricao + "]";<br />
}<br />
<br />
}<br />
<br />
<br />
<font color="#ff0000">Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException<br />
Internal Exception: org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544665. violation of PRIMARY or UNIQUE KEY constraint "UNQ_PESSOA_CPF" on table "PESSOA"<br />
Error Code: 335544665<br />
Call: INSERT INTO PESSOA (CODIGO, UF, FOTO_LOGOMARCA, APELIDO, TIPO, RG_INSCRICAO, TIPO_PESSOA, NOME, DATA_CADASTRO, ORGAO_EXPEDIDOR, OBSERVACAO, CPF_CNPJ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)<br />
bind => [null, null, null, kjkjk, EM, jkjljlj, J, julkjlkjl, null, null, null, jkjkj222]</font><br />
<br />
<br />
<br />
Another way to call the methods:
<br />
<br />
EmpresaFacadeRemote empresa = (EmpresaFacadeRemote) ic.lookup("br.teste.app.beans.EmpresaFacadeRemote");<br />
private Pessoa entidadePessoa = new Pessoa(jtfRasaoSocial.getText(), jtfNomeFantasia.getText(), jtfCpfCnpj.getText(), jtfRgInscEstadual.getText(),"EM",'J');<br />
empresa.createEmpresa(entidadePessoa,meiosContatoList);<font color="#ff0000">Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544347. validation error for column PESSOA_CODG, value "*** null ***"
Error Code: 335544347
Call: INSERT INTO MEIO_CONTATO (DESCRICAO, RESPONSAVEL, TIPO, SETOR, MEIO_CONTATO, PESSOA_CODG) VALUES (?, ?, ?, ?, ?, ?)
bind => [(74)3611-3308), João da Silva, Residêncial, Compras, Residêncial, null]
Query: InsertObjectQuery(br.teste.app.entidades.MeioContato[descricao=(74)3611-3308)])</font>Why when you call this method and gives this error, is as provider of persitência were trying to insert the object Pessoa again?!?!
Note: The object is persisted in the same person now!
public Pessoa createEmpresa(Pessoa empresa, List<MeioContato> meiosContatoList) {
this.empresa = empresa;
this.empresa.setMeioContatoCollection(meiosContatoList);
em.persist(this.empresa);
return this.empresa;
{code}<br /><br /><br /><br /><br /><br />{color:#ff0000}Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException<br /><br />Internal Exception: org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544665. violation of PRIMARY or UNIQUE KEY constraint "PK_PESSOA" on table "PESSOA"<br /><br />Error Code: 335544665<br /><br />Call: INSERT INTO PESSOA (CODIGO, UF, FOTO_LOGOMARCA, APELIDO, TIPO, RG_INSCRICAO, TIPO_PESSOA, NOME, DATA_CADASTRO, ORGAO_EXPEDIDOR, OBSERVACAO, CPF_CNPJ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)<br /><br /> bind => [68, null, null, lkjlkjlkjl, EM, jljljljljl, J, jjljljl, null, null, null, jljljlk]<br /><br />{color}<br /> -
The ORA-12154 error again (one DB fine, the other not)
Hi,
I have 2 DBs on my PC with the same home. There is only 1 tnsnames.ora in my oracle folder (excluding 2 samples). My tnsnames.ora looks like this:
# 10.2.0\db_1\network\admin\tnsnames.ora
TNTDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oocl-dird)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = tntdb)
TEST02 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oocl-dird)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TEST02)
EXTPROC_CONNECTION_DATA = ..My sqlnet.ora:SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZNAMES)listener.ora:SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = oocl-dird)(PORT = 1521))
)I can connect to tntdb. I can't connect to TEST02 using @TEST02. I can connect using @oocl-dird:1521/TEST02 though (same values as the tns)
Whats the reason? How to fix? :ssb92075 wrote:
open Command Window & issue following OS commands
lsnrctl status
lsnrctl serviceStatus:
Service "+ASM_XPT" has 1 instance(s).
Instance "+asm", status BLOCKED, has 1 handler(s) for this service...
Service "+asm" has 1 instance(s).
Instance "+asm", status BLOCKED, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "TEST02XDB" has 1 instance(s).
Instance "test02", status READY, has 1 handler(s) for this service...
Service "TEST02_XPT" has 1 instance(s).
Instance "test02", status READY, has 1 handler(s) for this service...
Service "test02" has 1 instance(s).
Instance "test02", status READY, has 1 handler(s) for this service...
Service "tntdb" has 1 instance(s).
Instance "tntdb", status READY, has 1 handler(s) for this service...
Service "tntdbXDB" has 1 instance(s).
Instance "tntdb", status READY, has 1 handler(s) for this service...
Service "tntdb_XPT" has 1 instance(s).
Instance "tntdb", status READY, has 1 handler(s) for this service...
The command completed successfullyService:Services Summary...
Service "+ASM_XPT" has 1 instance(s).
Instance "+asm", status BLOCKED, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "+asm" has 1 instance(s).
Instance "+asm", status BLOCKED, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "TEST02XDB" has 1 instance(s).
Instance "test02", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: OOCL-DIRD, pid: 1472>
(ADDRESS=(PROTOCOL=tcp)(HOST=oocl-dird)(PORT=1037))
Service "TEST02_XPT" has 1 instance(s).
Instance "test02", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:11 refused:0 state:ready
LOCAL SERVER
Service "test02" has 1 instance(s).
Instance "test02", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:11 refused:0 state:ready
LOCAL SERVER
Service "tntdb" has 1 instance(s).
Instance "tntdb", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:8 refused:0 state:ready
LOCAL SERVER
Service "tntdbXDB" has 1 instance(s).
Instance "tntdb", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: OOCL-DIRD, pid: 2364>
(ADDRESS=(PROTOCOL=tcp)(HOST=oocl-dird)(PORT=1038))
Service "tntdb_XPT" has 1 instance(s).
Instance "tntdb", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:8 refused:0 state:ready
LOCAL SERVERMike -
Hello,
How can I improve the XQuery below in order to obtain a minimised return to escape from both errors ORA-19279 and ORA-01706?
XQUERY for $book in fn:collection("oradb:/HR/TB_XML")//article let $cont := $book/bdy where $cont [ora:contains(text(), "(near((The,power,Love),10, TRUE))") > 0] return $book
ERROR:
ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence
- got multi-item sequence
XQUERY for $book in fn:collection("oradb:/HR/TB_XML")//article let $cont := $book/bdy where $cont [ora:contains(., "(near((The,power,Love),10, TRUE))") > 0] return $book//bdy
/*ERROR:
ORA-01706: user function result value was too large
Regards,
Daianebelow query works for 1 iteration . but for multiple sets i am getting following error .
When you want to present repeating groups in relational format, you have to extract the sequence of items in the main XQuery expression.
Each item is then passed to the COLUMNS clause to be further shredded into columns.
This should work as expected :
select x.*
from abc t
, xmltable(
xmlnamespaces(
default 'urn:swift:xsd:fin.970.2011'
, 'urn:swift:xsd:mtmsg.2011' as "ns0"
, '/ns0:FinMessage/ns0:Block4/Document/MT970/F61a/F61'
passing t.col1
columns F61ValueDate Varchar(40) Path 'ValueDate'
, DebitCreditMark Varchar(40) Path 'DebitCreditMark'
, Amount Varchar(40) Path 'Amount'
, TransactionType Varchar(40) Path 'TransactionType'
, IdentificationCode Varchar(40) Path 'IdentificationCode'
, ReferenceForTheAccountOwner Varchar(40) Path 'ReferenceForTheAccountOwner'
, SupplementaryDetails Varchar(40) Path 'SupplementaryDetails'
) x ; -
Hi ,
I executed the below query in database version 11.2.0.3.0, it throws the error like "ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence"
with PAYMENT_XML as (
select XMLTYPE(
'<Document>
<pain.002.001.02>
<GrpHdr>
<MsgId>CITIBANK/20091204-PSR/4274</MsgId>
<CreDtTm>2009-12-04T09:36:00</CreDtTm>
</GrpHdr>
<OrgnlGrpInfAndSts>
<OrgnlMsgId>10002</OrgnlMsgId>
<OrgnlMsgNmId>pain.001.001.02</OrgnlMsgNmId>
<OrgnlNbOfTxs>20</OrgnlNbOfTxs>
<OrgnlCtrlSum>7000</OrgnlCtrlSum>
<GrpSts>PART</GrpSts>
<StsRsnInf>
<AddtlStsRsnInf>ACK - FILE PARTIALLY SUCCESSFUL</AddtlStsRsnInf>
</StsRsnInf>
</OrgnlGrpInfAndSts>
<OrgnlGrpInfAndSts>
<OrgnlMsgId>10001</OrgnlMsgId>
<OrgnlMsgNmId>pain.001.001.02</OrgnlMsgNmId>
<OrgnlNbOfTxs>202</OrgnlNbOfTxs>
<OrgnlCtrlSum>9000</OrgnlCtrlSum>
<GrpSts>PART</GrpSts>
<StsRsnInf>
<AddtlStsRsnInf>ACK - FILE PARTIALLY SUCCESSFUL</AddtlStsRsnInf>
<AddtlStsRsnInf>Formated</AddtlStsRsnInf>
</StsRsnInf>
</OrgnlGrpInfAndSts>
</pain.002.001.02>
</Document>') as OBJECT_VALUE1
from dual
select R.*
from PAYMENT_XML,
XMLTABLE(
'for $COMP in $COMPANY/Document/pain.002.001.02
for $DEPT at $DEPTIDX in $COMP/OrgnlGrpInfAndSts
return <RESULT>
<NAME>{fn:data($COMP/GrpHdr/MsgId)}</NAME>
$DEPT/OrgnlMsgId,
$DEPT/OrgnlNbOfTxs,
$DEPT/OrgnlCtrlSum,
$DEPT/GrpSts,
$DEPT/StsRsnInf/AddtlStsRsnInf
</RESULT>'
passing OBJECT_VALUE1 as "COMPANY"
columns
NAME VARCHAR(10) path 'NAME',
OrgnlMsgId VARCHAR2(24) path 'OrgnlMsgId',
ORGNLNBOFTXS VARCHAR2(24) path 'OrgnlNbOfTxs',
ORGNLCTRLSUM NUMBER path 'OrgnlCtrlSum',
GRPSTS VARCHAR2(24) path 'GrpSts',
ADDTLSTSRSNINF VARCHAR2(40) path 'AddtlStsRsnInf'
) r
Errors comes this part :
<StsRsnInf>
<AddtlStsRsnInf>ACK - FILE PARTIALLY SUCCESSFUL</AddtlStsRsnInf>
<AddtlStsRsnInf>Formated</AddtlStsRsnInf>
</StsRsnInf>
if i put the single statement for this xml element <AddtlStsRsnInf> it works fine if more than one element comes it raised the error.
i want the output like the below format : want to merge the element value with (, comma) delimiter with single coloumn value
NAME
ORGNLMSGID
ORGNLNBOFTXS
ORGNLCTRLSUM
GRPSTS
ADDTLSTSRSNINF
CITIBANK/2
10002
20
7,000
PART
ACK - FILE PARTIALLY SUCCESSFUL
CITIBANK/2
10001
202
9,000
PART
ACK - FILE PARTIALLY SUCCESSFUL, Formated
Thanks is advance for reply
Thanks,
ChidamTry with XQuery string-join() function :
ADDTLSTSRSNINF VARCHAR2(40) path 'string-join(AddtlStsRsnInf, ", ")' -
One Surface Pro giving 0x8004005 error when looking for task sequence.
This is only happening with one of many Surface Pro's
I am unsure what would cause this, booting from USB in a hub with USB Network Adapter.
<![LOG[LOGGING: Finalize process ID set to 812]LOG]!><time="19:45:17.874+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="816" file="tslogging.cpp:1495">
<![LOG[==============================[ TSBootShell.exe ]==============================]LOG]!><time="19:45:17.874+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="816"
file="bootshell.cpp:1052">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="19:45:17.874+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="816" file="util.cpp:963">
<![LOG[Debug shell is enabled]LOG]!><time="19:45:17.874+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="816" file="bootshell.cpp:1063">
<![LOG[Waiting for PNP initialization...]LOG]!><time="19:45:17.874+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820" file="bootshell.cpp:60">
<![LOG[RAM Disk Boot Path: MULTI(0)DISK(0)RDISK(0)PARTITION(1)\SOURCES\BOOT.WIM]LOG]!><time="19:45:17.874+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820"
file="configpath.cpp:186">
<![LOG[WinPE boot path: D:\SOURCES\BOOT.WIM]LOG]!><time="19:45:17.890+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820" file="configpath.cpp:211">
<![LOG[Booted from removable device]LOG]!><time="19:45:17.890+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820" file="configpath.cpp:241">
<![LOG[Found config path D:\]LOG]!><time="19:45:17.890+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820" file="bootshell.cpp:545">
<![LOG[Booting from removable media, not restoring bootloaders on hard drive]LOG]!><time="19:45:17.890+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820" file="bootshell.cpp:579">
<![LOG[D:\WinPE does not exist.]LOG]!><time="19:45:17.890+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820" file="bootshell.cpp:596">
<![LOG[D:\_SmsTsWinPE\WinPE does not exist.]LOG]!><time="19:45:17.890+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820" file="bootshell.cpp:610">
<![LOG[Executing command line: wpeinit.exe -winpe]LOG]!><time="19:45:17.890+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820" file="bootshell.cpp:857">
<![LOG[The command completed successfully.]LOG]!><time="19:45:23.907+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820" file="bootshell.cpp:939">
<![LOG[Starting DNS client service.]LOG]!><time="19:45:23.907+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820" file="bootshell.cpp:663">
<![LOG[Executing command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:D:\]LOG]!><time="19:45:24.414+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820"
file="bootshell.cpp:857">
<![LOG[The command completed successfully.]LOG]!><time="19:45:24.414+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="820" file="bootshell.cpp:939">
<![LOG[==============================[ TSMBootStrap.exe ]==============================]LOG]!><time="19:45:24.492+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604"
file="tsmbootstrap.cpp:1129">
<![LOG[Command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:D:\]LOG]!><time="19:45:24.492+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604"
file="tsmbootstrap.cpp:1130">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="19:45:24.492+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="util.cpp:963">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\TSRESNLC.DLL']LOG]!><time="19:45:24.492+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="resourceutils.cpp:169">
<![LOG[Adding SMS bin folder "X:\sms\bin\x64" to the system environment PATH]LOG]!><time="19:45:24.492+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604"
file="tsmbootstrap.cpp:963">
<![LOG[Failed to open PXE registry key. Not a PXE boot.]LOG]!><time="19:45:24.492+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmbootstrap.cpp:844">
<![LOG[Media Root = D:\]LOG]!><time="19:45:24.508+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="tsmbootstrap.cpp:1000">
<![LOG[WinPE boot type: 'Ramdisk:SourceIdentified']LOG]!><time="19:45:24.508+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmbootstrap.cpp:779">
<![LOG[Failed to find the source drive where WinPE was booted from]LOG]!><time="19:45:24.508+480" date="01-17-2014" component="TSMBootstrap" context="" type="2" thread="604" file="tsmbootstrap.cpp:1036">
<![LOG[Executing from Media in WinPE]LOG]!><time="19:45:24.508+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="tsmbootstrap.cpp:1041">
<![LOG[Verifying Media Layout.]LOG]!><time="19:45:24.508+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="tsmediawizardcontrol.cpp:1581">
<![LOG[MediaType = BootMedia]LOG]!><time="19:45:24.508+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="tsmediawizardcontrol.cpp:2565">
<![LOG[PasswordRequired = false]LOG]!><time="19:45:24.508+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="tsmediawizardcontrol.cpp:2591">
<![LOG[Found network adapter "ASIX AX88772 USB2.0 to Fast Ethernet Adapter" with IP Address 10.0.192.203.]LOG]!><time="19:45:24.508+480" date="01-17-2014" component="TSMBootstrap" context="" type="0"
thread="604" file="tsmbootstraputil.cpp:474">
<![LOG[Running Wizard in Interactive mode]LOG]!><time="19:45:24.508+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="tsmediawizardcontrol.cpp:2766">
<![LOG[Loading Media Variables from "D:\sms\data\variables.dat"]LOG]!><time="19:45:24.524+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="tsremovablemedia.cpp:322">
<![LOG[no password for vars file]LOG]!><time="19:45:24.542+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmediawizardcontrol.cpp:247">
<![LOG[Activating Welcome Page.]LOG]!><time="19:45:24.542+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmediawelcomepage.cpp:131">
<![LOG[Loading bitmap]LOG]!><time="19:45:24.542+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="tsmbootstrap.cpp:1228">
<![LOG[WelcomePage::OnWizardNext()]LOG]!><time="19:47:18.401+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmediawelcomepage.cpp:340">
<![LOG[Loading Media Variables from "D:\sms\data\variables.dat"]LOG]!><time="19:47:18.401+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="tsremovablemedia.cpp:322">
<![LOG[no password for vars file]LOG]!><time="19:47:18.401+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmediawizardcontrol.cpp:247">
<![LOG[Spawned thread 1020 to download policy.]LOG]!><time="19:47:18.401+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="tsmediawelcomepage.cpp:405">
<![LOG[Entering TSMediaWizardControl::GetPolicy.]LOG]!><time="19:47:18.401+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="tsmediawizardcontrol.cpp:527">
<![LOG[Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00350031004100300031003600420036002D0046003000440045002D0034003700350032002D0042003900370043002D003500340045003600460033003800360041003900310032007D00']LOG]!><time="19:47:18.401+480"
date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="environmentscope.cpp:284">
<![LOG[Environment scope successfully created: Global\{51A016B6-F0DE-4752-B97C-54E6F386A912}]LOG]!><time="19:47:18.401+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020"
file="environmentscope.cpp:659">
<![LOG[Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00420041003300410033003900300030002D0043004100360044002D0034006100630031002D0038004300320038002D003500300037003300410046004300320032004200300033007D00']LOG]!><time="19:47:18.401+480"
date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="environmentscope.cpp:284">
<![LOG[Environment scope successfully created: Global\{BA3A3900-CA6D-4ac1-8C28-5073AFC22B03}]LOG]!><time="19:47:18.401+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020"
file="environmentscope.cpp:659">
<![LOG[Setting LogMaxSize to 1000000]LOG]!><time="19:47:18.401+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:555">
<![LOG[Setting LogMaxHistory to 1]LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:556">
<![LOG[Setting LogLevel to 0]LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:557">
<![LOG[Setting LogEnabled to 1]LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:558">
<![LOG[Setting LogDebug to 1]LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:559">
<![LOG[UEFI: true]LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:569">
<![LOG[Loading variables from the Task Sequencing Removable Media.]LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:584">
<![LOG[Loading Media Variables from "D:\sms\data\variables.dat"]LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsremovablemedia.cpp:322">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="util.cpp:963">
<![LOG[Setting SMSTSLocationMPs TS environment variable]LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSMediaGuid TS environment variable]LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSBootMediaPackageID TS environment variable]LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSBootMediaSourceVersion TS environment variable]LOG]!><time="19:47:18.417+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSBrandingTitle TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSCertSelection TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSCertStoreName TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSDiskLabel1 TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSHTTPPort TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSHTTPSPort TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSIISSSLState TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSMediaPFX TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSMediaSetID TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSMediaType TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSPublicRootKey TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSRootCACerts TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSSiteCode TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSSiteSigningCertificate TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSSupportUnknownMachines TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSTimezone TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSUseFirstCert TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSx64UnknownMachineGUID TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Setting _SMSTSx86UnknownMachineGUID TS environment variable]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:604">
<![LOG[Root CA Public Certs=]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:615">
<![LOG[Missing root CA environment variable from variables file]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:621">
<![LOG[Support Unknown Machines: 1]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:632">
<![LOG[Custom hook from X:\\TSConfig.INI is ]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:675">
<![LOG[No hook is found to be executed before downloading policy]LOG]!><time="19:47:18.432+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:699">
<![LOG[Authenticator from the environment is empty.]LOG]!><time="19:47:18.448+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:838">
<![LOG[Need to create Authenticator Info using PFX]LOG]!><time="19:47:18.448+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:850">
<![LOG[Initialized CStringStream object with string: 1A069864-04BE-4B67-B83D-10B87060836D;2014-01-18T03:47:18Z.]LOG]!><time="19:47:18.526+480" date="01-17-2014" component="TSMBootstrap" context="" type="0"
thread="1020" file="stringstream.cpp:101">
<![LOG[Using user-defined MP locations: http://CA1AP03P.cameco.com]LOG]!><time="19:47:18.526+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:911">
<![LOG[Set authenticator in transport]LOG]!><time="19:47:18.526+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="libsmsmessaging.cpp:7751">
<![LOG[Set media certificates in transport]LOG]!><time="19:47:18.557+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="libsmsmessaging.cpp:9558">
<![LOG[IP: 10.0.192.203 10.0.192.0]LOG]!><time="19:47:18.557+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="libsmsmessaging.cpp:9579">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: CA1AP03P.cameco.com:80 GET /SMS_MP/.sms_aut?MPLOCATION&ir=10.0.192.203&ip=10.0.192.0]LOG]!><time="19:47:18.573+480" date="01-17-2014" component="TSMBootstrap"
context="" type="1" thread="1020" file="libsmsmessaging.cpp:8621">
<![LOG[Request was succesful.]LOG]!><time="19:47:19.715+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="libsmsmessaging.cpp:8956">
<![LOG[Default CSP is Microsoft Enhanced RSA and AES Cryptographic Provider]LOG]!><time="19:47:19.715+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020"
file="libcrypt.cpp:1914">
<![LOG[Default CSP Type is 24]LOG]!><time="19:47:19.715+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="libcrypt.cpp:1915">
<![LOG[New settings:]LOG]!><time="19:47:19.715+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:925">
<![LOG[ site=CA1,CA1, MP=http://CA1AP03P.cameco.com, ports: http=80,https=443]LOG]!><time="19:47:19.715+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020"
file="tsmediawizardcontrol.cpp:927">
<![LOG[ certificates are received from MP.]LOG]!><time="19:47:19.715+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="tsmediawizardcontrol.cpp:931">
<![LOG[Set authenticator in transport]LOG]!><time="19:47:19.715+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="libsmsmessaging.cpp:7751">
<![LOG[Preparing Client Identity Request.]LOG]!><time="19:47:19.747+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="tspolicy.cpp:583">
<![LOG[ Setting transport.]LOG]!><time="19:47:19.747+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="tspolicy.cpp:586">
<![LOG[ Setting SourceID = 1A069864-04BE-4B67-B83D-10B87060836D.]LOG]!><time="19:47:19.747+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020"
file="tspolicy.cpp:590">
<![LOG[ Setting site code = CA1.]LOG]!><time="19:47:19.762+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="tspolicy.cpp:595">
<![LOG[Can not find DeploymentType in file TsmBootstrap.ini or the file doesn't exist. This is not running on Windows To Go.]LOG]!><time="19:47:19.762+480" date="01-17-2014" component="TSMBootstrap" context=""
type="1" thread="1020" file="utils.cpp:1314">
<![LOG[ Setting SMBIOS GUID = 3F9CD3F3-201B-D0BE-FB7A-B6EE09756535.]LOG]!><time="19:47:20.419+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020"
file="tspolicy.cpp:623">
<![LOG[ Adding MAC Address 00:50:B6:4D:18:2D.]LOG]!><time="19:47:20.450+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="tspolicy.cpp:642">
<![LOG[Executing Client Identity Request.]LOG]!><time="19:47:20.450+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="tspolicy.cpp:666">
<![LOG[Requesting client identity]LOG]!><time="19:47:20.450+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="1020" file="libsmsmessaging.cpp:5760">
<![LOG[Setting message signatures.]LOG]!><time="19:47:20.465+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="libsmsmessaging.cpp:1297">
<![LOG[Setting the authenticator.]LOG]!><time="19:47:20.465+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="libsmsmessaging.cpp:1327">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: CA1AP03P.cameco.com:80 CCM_POST /ccm_system/request]LOG]!><time="19:47:20.465+480" date="01-17-2014" component="TSMBootstrap" context="" type="1"
thread="1020" file="libsmsmessaging.cpp:8621">
<![LOG[Request was succesful.]LOG]!><time="19:47:20.512+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="libsmsmessaging.cpp:8956">
<![LOG[pNext != NULL, HRESULT=80004005 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,1972)]LOG]!><time="19:47:20.512+480" date="01-17-2014" component="TSMBootstrap" context="" type="0"
thread="1020" file="libsmsmessaging.cpp:1972">
<![LOG[reply has no message header marker]LOG]!><time="19:47:20.512+480" date="01-17-2014" component="TSMBootstrap" context="" type="3" thread="1020" file="libsmsmessaging.cpp:1972">
<![LOG[DoRequest (sReply, true), HRESULT=80004005 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,5868)]LOG]!><time="19:47:20.512+480" date="01-17-2014" component="TSMBootstrap" context="" type="0"
thread="1020" file="libsmsmessaging.cpp:5868">
<![LOG[Failed to get client identity (80004005)]LOG]!><time="19:47:20.512+480" date="01-17-2014" component="TSMBootstrap" context="" type="3" thread="1020" file="libsmsmessaging.cpp:6163">
<![LOG[oClientIdentity.RequestClientIdentity(), HRESULT=80004005 (e:\qfe\nts\sms\framework\tscore\tspolicy.cpp,668)]LOG]!><time="19:47:20.512+480" date="01-17-2014" component="TSMBootstrap" context="" type="0"
thread="1020" file="tspolicy.cpp:668">
<![LOG[Failed to read client identity (Code 0x80004005)]LOG]!><time="19:47:20.512+480" date="01-17-2014" component="TSMBootstrap" context="" type="3" thread="1020" file="tspolicy.cpp:668">
<![LOG[TS::Policy::GetClientIdentity (&httpTransport, sSiteCode.c_str(), sMediaGuid.c_str(), sClientGUID, sNetbiosName, bUnknown, sServerName, sServerRemoteName, sImportedClientIdentity), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,965)]LOG]!><time="19:47:20.512+480"
date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="tsmediawizardcontrol.cpp:965">
<![LOG[Exiting TSMediaWizardControl::GetPolicy.]LOG]!><time="19:47:20.512+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="1020" file="tsmediawizardcontrol.cpp:1378">
<![LOG[pWelcomePage->m_pTSMediaWizardControl->GetPolicy(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawelcomepage.cpp,303)]LOG]!><time="19:47:20.512+480" date="01-17-2014" component="TSMBootstrap"
context="" type="0" thread="1020" file="tsmediawelcomepage.cpp:303">
<![LOG[Setting wizard error: An error occurred while retrieving policy for this computer (0x80004005). For more information, contact your system administrator or helpdesk operator.]LOG]!><time="19:47:20.512+480" date="01-17-2014"
component="TSMBootstrap" context="" type="0" thread="604" file="tsmediawizardcontrol.cpp:1547">
<![LOG[WelcomePage::OnWizardNext()]LOG]!><time="19:47:20.512+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmediawelcomepage.cpp:340">
<![LOG[Skipping Confirmation Page.]LOG]!><time="19:47:20.512+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmediaconfirmationpage.cpp:170">
<![LOG[Skipping Task Sequence Selection Page.]LOG]!><time="19:47:20.528+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmediataskselectionpage.cpp:118">
<![LOG[Skipping Variables Selection Page.]LOG]!><time="19:47:20.544+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmediavariablesselectionpage.cpp:155">
<![LOG[Skipping Resolve Progress Page.]LOG]!><time="19:47:20.544+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmediaresolveprogresspage.cpp:96">
<![LOG[Activating Finish Page.]LOG]!><time="19:47:20.544+480" date="01-17-2014" component="TSMBootstrap" context="" type="0" thread="604" file="tsmediafinishpage.cpp:107">
<![LOG[Loading bitmap]LOG]!><time="19:47:20.544+480" date="01-17-2014" component="TSMBootstrap" context="" type="1" thread="604" file="tsmbootstrap.cpp:1228">
<![LOG[Executing command line: X:\windows\system32\cmd.exe /k]LOG]!><time="19:47:52.061+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="816" file="bootshell.cpp:857">
<![LOG[The command completed successfully.]LOG]!><time="19:47:52.061+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="816" file="bootshell.cpp:939">
<![LOG[Successfully launched command shell.]LOG]!><time="19:47:52.061+480" date="01-17-2014" component="TSBootShell" context="" type="1" thread="816" file="bootshell.cpp:430">I've seen this on a few of the Surface Pro 3's we got in recently. It is because you need to update the date/time in the OS. The easiest way to do this is to
(1) Make sure you have command support enabled in your boot image.
(2) Before you start your image process from the boot image, press (Fn + F8)
(3) At the command prompt, check your date/time.
(4.a) Type cd x:\windows\system32
(4.b) Type date the current date is displayed, it's most likely off. It will prompt you to change the date using the mm-dd-yy format, change to the current date there, press enter
(4.c) Type the Time the current time is displayed (24 hour time), key in the current time press enter
(5) Start your imaging process, all should be well
Excellent advice!!! For me, even though I had already booted the OS on my SP3, fully updated the firmware and restarted about 6 different times, I still would get a failure when the Boot image started to load. I followed these instructions and I was good to
good. I'm just floored to see that my date and time were off by 3 days and 11 hrs, even though my OS was correct. I'm flabbergasted that this was the case. Thanks for the post! Helped me a lot! -
ORA-19279: Query dynamic type mismatch: expected singleton sequence
Hi,
I have my xml stored in the table 'xml_table’
The content of XML is a follows:
<COMPANY NAME="ABC">
<DEPARTMENT_NAME>Paris</DEPARTMENT_NAME>
<ADDRESS>Rue de nevers</ADDRESS>
<DEPARTMENT_NAME>London</DEPARTMENT_NAME>
<ADDRESS>Northampton Square</ADDRESS>
</COMPANY>
I would like to query the xml to get the output like that:
COMPANY_NAME | DEPARTMENT_NAME | ADDRESS
ABC | Paris | rue de nevers
ABC | London | Northampton Square
However when I execute the query:
SELECT t.company_name, t.address, t.department_name
FROM xml_table p,
XMLTable('/COMPANY' PASSING p.OBJECT_VALUE
COLUMNS company_name PATH '@NAME',
address VARCHAR2(100) PATH '/COMPANY/ADDRESS',
department_name VARCHAR2(100) PATH '/COMPANY/DEPARTMENT_NAME') t
I am getting error:
ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence
What can be wrong with the query? Howe should it be modified to get desired output?
Thank for help
GroxyAs was mentioned... Enclosing the tags for each department in a DEPARTMENT tag would make this easier and more effiecient but here's an alternative approach if modifying the XML is not an option
SQL> with COMPANY_XML as
2 (
3 select XMLTYPE(
4 '<COMPANY NAME="ABC">
5 <DEPARTMENT_NAME>Paris</DEPARTMENT_NAME>
6 <ADDRESS>Rue de nevers</ADDRESS>
7 <DEPARTMENT_NAME>London</DEPARTMENT_NAME>
8 <ADDRESS>Northampton Square</ADDRESS>
9 </COMPANY>') as OBJECT_VALUE from dual
10 )
11 select R.*
12 from COMPANY_XML,
13 XMLTABLE
14 (
15 'for $COMP in $COMPANY/COMPANY
16 for $DEPT at $DEPTIDX in $COMP/DEPARTMENT_NAME
17 return <RESULT>
18 <NAME>{fn:data($COMP/@NAME)}</NAME>
19 {
20 $COMP/DEPARTMENT_NAME[$DEPTIDX],
21 $COMP/ADDRESS[$DEPTIDX]
22 }
23 </RESULT>'
24 passing OBJECT_VALUE as "COMPANY"
25 ) r
26 /
COLUMN_VALUE
<RESULT><NAME>ABC</NAME><DEPARTMENT_NAME>Paris</DEPARTMENT_NAME><ADDRESS>Rue de
nevers</ADDRESS></RESULT>
<RESULT><NAME>ABC</NAME><DEPARTMENT_NAME>London</DEPARTMENT_NAME><ADDRESS>Northa
mpton Square</ADDRESS></RESULT>This above step creates a document for all tags with a particular index and then we can apply a columns cause to get the results..
SQL> with COMPANY_XML as
2 (
3 select XMLTYPE(
4 '<COMPANY NAME="ABC">
5 <DEPARTMENT_NAME>Paris</DEPARTMENT_NAME>
6 <ADDRESS>Rue de nevers</ADDRESS>
7 <DEPARTMENT_NAME>London</DEPARTMENT_NAME>
8 <ADDRESS>Northampton Square</ADDRESS>
9 </COMPANY>') as OBJECT_VALUE from dual
10 )
11 select R.*
12 from COMPANY_XML,
13 XMLTABLE
14 (
15 'for $COMP in $COMPANY/COMPANY
16 for $DEPT at $DEPTIDX in $COMP/DEPARTMENT_NAME
17 return <RESULT>
18 <NAME>{fn:data($COMP/@NAME)}</NAME>
19 {
20 $COMP/DEPARTMENT_NAME[$DEPTIDX],
21 $COMP/ADDRESS[$DEPTIDX]
22 }
23 </RESULT>'
24 passing OBJECT_VALUE as "COMPANY"
25 columns
26 NAME VARCHAR(10),
27 DEPARTMENT_NAME VARCHAR2(24),
28 ADDRESS VARCHAR2(24)
29 ) r
30 /
NAME DEPARTMENT_NAME ADDRESS
ABC Paris Rue de nevers
ABC London Northampton Square
SQL> -
Hello all,
I can't open a PP project without this error message appearing:
"The preset used by one or more sequences in this project requires third-party components that could not be located. These sequences will be modified to use a custom sequence setting instead. To continue editing using the original preset, quit the application without saving the project, reinstall any third-party components that are required and reopen the project".
What I had been doing before this occurred was editing a PP project using ProRes sequences and multi-camera editing. Multi-camera was not working very well and after a few attempts to fix that I gave up and finished the job cutting 3 layers of video instead. AME refused to render the three finished sequences of over 1hr duration so rendered final videos from the PP sequences.
I tried deleting plists for AME, PP and QT, repairing disc permissions and rebooting but there was no improvement.
Client is satisfied for now but will want to come back to this job at a later date so decided to uninstall and re-install AME and PP in the hope both would be ready to work properly when needed again. AME works fine in conjunction with a different PP project but now I can't open the PP project in question without the above error message appearing.
Having searched the net it would seem that the problem may be caused by ProRes but I haven't been able to find a definitive solution for the problem. Does anyone know either:
1. How to fix this?
2. If I chose the "modified using a custom sequence setting", can I be sure that my sequences will look the same even if they don't use ProRes? The final deliverable format will be mp4 so as long as the overall look doesn't change then I can afford a change in the edit codec. It's just that with three sequences over an hour long, I don't want days of work to be ruined.
Other older PP projects of mine open and work fine.
Premiere Pro CC 8.2.0
Media Encoder CC 8.2.0.54
OSX 10.10.2
Any help would be greatly appreciated.
Duncan.Adobe web chat come up with a solution.
Open the PP project.
Export your sequence or project as a Final Cut Pro XML file.
Set up a new PP project.
Import the Final Cut Pro XML file.
This will get you back up an running.
Since getting back to editing this project I have found that some things will be lost or change in using XML:
You will lose position key framing, black video clips, dissolve fx, audio levels, audio dynamic fx, the ability to open a multi camera clip and change the camera view.
You will keep cut points, crop fx.
Not perfect but only took a couple of hours to save 3 days work. -
Error: ORA-16778: redo transport error for one or more databases
Hi all
I have 2 database servers"Primary database and physical standby" in test environment( before going to Production)
Before Dataguard broker configuration , DG setup was running fine , redo was being applied and archived on phy standby.
but while enabling configuration i got "Warning: ORA-16607: one or more databases have failed" listener.ora & tnsnames.ora are updated with global_name_DGMGRL
Please help me how can i resolve this issue .Thanks in advance.
[oracle@PRIM ~]$ dgmgrl
DGMGRL for Linux: Version 10.2.0.1.0 - Production
Copyright (c) 2000, 2005, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect sys
Password:
Connected.
DGMGRL> show configuration
Configuration
Name: test
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
Warning: ORA-16607: one or more databases have failed
DGMGRL> show database
show database
^
Syntax error before or at "end-of-line"
DGMGRL> remove configuration
Warning: ORA-16620: one or more databases could not be contacted for a delete operation
Removed configuration
DGMGRL> exit
[oracle@PRIM ~]$ connect sys/sys@prim as sysdba
bash: connect: command not found
[oracle@PRIM ~]$ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:52:30
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
[oracle@PRIM ~]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:52:48
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 08-OCT-2006 19:52:48
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PRIM_DGMGRLL" has 1 instance(s).
Instance "PRIM", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@PRIM ~]$ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:54:46
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
[oracle@PRIM ~]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:54:59
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
[oracle@PRIM ~]$ dgmgrl
DGMGRL for Linux: Version 10.2.0.1.0 - Production
Copyright (c) 2000, 2005, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect /
Connected.
DGMGRL> create configuration test as
primary database is PRIM
connect identifier is PRIM
;Configuration "test" created with primary database "prim"
DGMGRL> add database STAN as
connect identifier is STAN
maintained as physical;Database "stan" added
DGMGRL> show configuration
Configuration
Name: test
Enabled: NO
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
DISABLED
DGMGRL> enable configuration
Enabled.
DGMGRL> show configuration
Configuration
Name: test
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
Warning: ORA-16607: one or more databases have failed
DGMGRL> show database verbose prim
Database
Name: prim
Role: PRIMARY
Enabled: YES
Intended State: ONLINE
Instance(s):
PRIM
Properties:
InitialConnectIdentifier = 'prim'
LogXptMode = 'ASYNC'
Dependency = ''
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '180'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '30'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '/u01/app/oracle/oradata/STAN, /u01/app/oracle/oradata/PRIM'
LogFileNameConvert = '/u01/app/oracle/oradata/STAN, /u01/app/oracle/oradata/PRIM'
FastStartFailoverTarget = ''
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName = 'PRIM'
SidName = 'PRIM'
LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521))'
StandbyArchiveLocation = '/u01/app/oracle/flash_recovery_area/PRIM/archivelog/'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.arc'
LatestLog = '(monitor)'
TopWaitEvents = '(monitor)'
Current status for "prim":
Error: ORA-16778: redo transport error for one or more databases
DGMGRL> show database verbose stan
Database
Name: stan
Role: PHYSICAL STANDBY
Enabled: YES
Intended State: ONLINE
Instance(s):
STAN
Properties:
InitialConnectIdentifier = 'stan'
LogXptMode = 'ASYNC'
Dependency = ''
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '180'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '30'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '/u01/app/oracle/oradata/PRIM, /u01/app/oracle/oradata/STAN'
LogFileNameConvert = '/u01/app/oracle/oradata/PRIM, /u01/app/oracle/oradata/STAN'
FastStartFailoverTarget = ''
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName = 'STAND'
SidName = 'STAN'
LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=STAND)(PORT=1521))'
StandbyArchiveLocation = '/u01/app/oracle/flash_recovery_area/STAN/archivelog/'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.arc'
LatestLog = '(monitor)'
TopWaitEvents = '(monitor)'
Current status for "stan":
Error: ORA-12545: Connect failed because target host or object does not exist
DGMGRL>This:
Current status for "stan":
Error: ORA-12545: Connect failed because target host or object does not exist
says that your network setup is not correct. You need to resolve that first.
As for Broker setup steps how about the doc or our Data Guard 11g Handbook?
It's 3 DGMGRL commands so I am not sure what 'steps' you need?
Larry -
SQL functions extract and XMLSequence for a one-to-many (1:N) relationship
I have have the following XML document loaded into a XMLType table. I'd like to retrieve the lineitem id together with the purchaseorder id and report id. How would the query look like? I've tried a lot but this one-to-many relationship is killing me.
Many thanks!
<report id=...>
<purchaseorder id=...>
<lineitems>
<lineitem id=...>...</lineitem>
<lineitem id=...>...</lineitem>
<lineitem id=...>...</lineitem>
</lineitems>
</purchaseorder>
<purchaseorder id=...>
<lineitems>
<lineitem id=...>...</lineitem>
</lineitems>
</purchaseorder>You can easily modify the above query to your needs:
SQL> with qry as (
2 select t.column_value.extract('/report/@id') report_id,
3 t.column_value.extract('/report/purchaseorder') purchaseorder,
4 t.column_value.extract('/report/purchaseorder/lineitems/*') lineitems
5 from table(xmlsequence(xmltype('<document>
6 <chapter>
7 <report id="1">
8 <purchaseorder id="1">
9 <lineitems>
10 <lineitem id="1">Item 11</lineitem>
11 <lineitem id="2">Item 12</lineitem>
12 <lineitem id="3">Item 13</lineitem>
13 </lineitems>
14 </purchaseorder>
15 <purchaseorder id="2">
16 <lineitems>
17 <lineitem id="1">Item 21</lineitem>
18 </lineitems>
19 </purchaseorder>
20 </report>
21 <report id="2">
22 <purchaseorder id="1">
23 <lineitems>
24 <lineitem id="1">Item 31</lineitem>
25 <lineitem id="2">Item 32</lineitem>
26 </lineitems>
27 </purchaseorder>
28 <purchaseorder id="2">
29 <lineitems>
30 <lineitem id="1">Item 41</lineitem>
31 <lineitem id="2">Item 42</lineitem>
32 </lineitems>
33 </purchaseorder>
34 </report>
35 </chapter>
36 </document>'
37 ).extract('/document/chapter/*'))) t)
38 select q.report_id,
39 q1.column_value.extract('/purchaseorder/@id') purchase_id,
40 q2.column_value.extract('/lineitem/@id') lineitem_id,
41 q2.column_value.extract('/lineitem/text()') lineitem
42 from qry q,
43 table(xmlsequence(q.purchaseorder)) q1,
44 table(xmlsequence(q1.extract('/purchaseorder/lineitems/*'))) q2
45 /
REPORT_ID PURCHASE_ID LINEITEM_ID LINEITEM
1 1 1 Item 11
1 1 2 Item 12
1 1 3 Item 13
1 2 1 Item 21
2 1 1 Item 31
2 1 2 Item 32
2 2 1 Item 41
2 2 2 Item 42
8 rows selected.
SQL> -
Hello everyone :
I can't switchover to primary. following is error and information.
RHEL 6.3 x86-64
Oracle database 11.2.0.3.0 Enterprise edition
Primary database = orclprmy
Standby database = orclstby1
##### /etc/hosts on orclstby1
[root@orclstby1 admin]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.50.211 ttprmy
192.168.50.212 orclstby1
### DG broker error
DGMGRL for Linux: Version 11.2.0.3.0 - 64bit Production
Copyright (c) 2000, 2009, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
Connected.
DGMGRL> show configuration;
Configuration - TTDGConfig1
Protection Mode: MaxPerformance
Databases:
orclstby1 - Primary database
Error: ORA-16778: redo transport error for one or more databases
orclprmy - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
ERROR
DGMGRL>
########### listener.ora on orclstby1
[root@orclstby1 admin]# cat listener.ora
# listener.ora Network Configuration File: /u2/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = orclstby1)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME=orcl)
(SID_NAME = orclstby1)
(ORACLE_HOME = /u2/oracle/product/11.2.0/dbhome_1)
(SID_DESC =
(GLOBAL_DBNAME=orclstby1)
(SID_NAME = orclstby1)
(ORACLE_HOME = /u2/oracle/product/11.2.0/dbhome_1)
(SID_DESC =
(GLOBAL_DBNAME=orclstby1_DGMGRL)
(SID_NAME = orclstby1)
(ORACLE_HOME = /u2/oracle/product/11.2.0/dbhome_1)
ADR_BASE_LISTENER = /u2/oracle
############## tnsnames.ora on orclstby1
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.212)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orcl))
orclprmy =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.211)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orclprmy))
orclprmy_DGMGRL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.211)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orclprmy_DGMGRL))
orclstby1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.212)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orclstby1))
orclstby1_DGMGRL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.212)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = orclstby1_DGMGRL))
##### alert log on orclstby1.
Fatal NI connect error 12504, connecting to:
(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=)(CID=(PROGRAM=oracle)(HOST=orclstby1)(USER=oracle)))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.50.211)(PORT=1521)))
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.3.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
Time: 06-SEP-2013 13:19:55
Tracing not turned on.
Tns error struct:
ns main err code: 12564
TNS-12564: TNS:connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
There is problem in alert log.
In the /etc/hosts file. The standby server (orclstby1) ip is 192.168.50.212. but alert log is 192.168.50.211.
Is any idea?
Thanks for help.
消息编辑者为:user4914135#### on primary database
SQL> select dest_name,status,target,archiver,schedule, valid_type,valid_role,db_unique_name,error from v$archive_dest;
DEST_NAME STATUS TARGET ARCHIVER SCHEDULE VALID_TYPE VALID_ROLE DB_UNIQUE_NAME
ERROR
LOG_ARCHIVE_DEST_1 VALID LOCAL ARCH ACTIVE ALL_LOGFILES ALL_ROLES orclprmy
LOG_ARCHIVE_DEST_2 VALID REMOTE LGWR PENDING ALL_LOGFILES PRIMARY_ROLE orclstby1
LOG_ARCHIVE_DEST_3 INACTIVE LOCAL ARCH INACTIVE ALL_LOGFILES ALL_ROLES NONE
#### on standby database
SQL> select dest_name,status,target,archiver,schedule, valid_type,valid_role,db_unique_name,error from v$archive_dest;
DEST_NAME STATUS TARGET ARCHIVER SCHEDULE VALID_TYPE VALID_ROLE DB_UNIQUE_NAME
ERROR
LOG_ARCHIVE_DEST_1 VALID PRIMARY ARCH ACTIVE ALL_LOGFILES ALL_ROLES orclstby1
LOG_ARCHIVE_DEST_2 ERROR STANDBY LGWR PENDING ONLINE_LOGFILE PRIMARY_ROLE orclprmy
ORA-12504: TNS:listener was not given the SERVICE_NAME in
CONNECT_DATA
LOG_ARCHIVE_DEST_3 INACTIVE PRIMARY ARCH INACTIVE ALL_LOGFILES ALL_ROLES NONE
#### log_archive_dest on primary database
SQL> show parameter log_archive_dest
NAME TYPE VALUE
log_archive_dest string
log_archive_dest_1 string location=/u3/arch/orcl vali
d_for=(ALL_LOGFILES,ALL_ROLES)
db_unique_name=orclprmy
log_archive_dest_10 string
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string
log_archive_dest_2 string service="orclstby1", LGWR ASYNC
NOAFFIRM delay=0 optional comp
ression=disable max_failure=0
max_connections=1 reopen=300 d
b_unique_name="orclstby1" net_ti
meout=30, valid_for=(all_logfi
les,primary_role)
log_archive_dest_20 string
log_archive_dest_21 string
log_archive_dest_22 string
#### log_archive_dest on standby database
SQL> show parameter log_archive_dest
NAME TYPE VALUE
log_archive_dest string
log_archive_dest_1 string location=/u3/arch/orclstby1 vali
d_for=(ALL_LOGFILES,ALL_ROLES)
db_unique_name=orclstby1
log_archive_dest_10 string
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string
log_archive_dest_2 string service=orclprmy ASYNC valid_for
=(ONLINE_LOGFILE,PRIMARY_ROLE)
db_unique_name=orclprmy
log_archive_dest_20 string
log_archive_dest_21 string
log_archive_dest_22 string
log_archive_dest_23 string
log_archive_dest_24 string
log_archive_dest_25 string
#### spfile on standby database
</u2/oracle/product/11.2.0/dbhome_1/dbs> strings spfileorclstby1.ora
orcl.__db_cache_size=1040187392
orclstby1.__db_cache_size=1090519040
orcl.__java_pool_size=16777216
orclstby1.__java_pool_size=16777216
orcl.__large_pool_size=16777216
orclstby1.__large_pool_size=16777216
orcl.__oracle_base='/u2/oracle'#ORACLE_BASE set from environment
orclstby1.__oracle_base='/u2/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=536870912
orclstby1.__pga_aggregate_target=536870912
orcl.__sga_target=1610612736
orclstby1.__sga_target=161061273
orcl.__shared_io_pool_size=0
orclstby1.__shared_io_pool_size=0
orcl.__shared_pool_size=503316480
orclstby1.__shared_pool_size=469762048
orcl.__streams_pool_size=16777216
orclstby1.__streams_pool_size=0
*.archive_lag_target=0
*.audit_file_dest='/u2/oracle/admin/orclstby1/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u2/oracle/oradata/orclstby1/control01.ctl','/u2/oracle/fast_recovery_area/orclstby1/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_file_nam
e_convert='orcl','orclstby1'
*.db_name='orcl'
*.db_recovery_file_dest='/u2/oracle/fast_recovery_area'
*.db_recovery_file_dest_size=5218762752
*.db_unique_name='orclstby1'
*.deferred_segment_creation=FALSE
*.dg_broker_start=TRUE
*.diagnostic_dest='/u2/oracle'
*.fal_client='orclstby1'
*.fal_server='orclprmy'
*.log_archive_config='dg_config=(orclprmy,orclstby1)'
*.log_archive_dest_1='location=/u3/arch/orclstby1 valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=orclstby1'
*.log_archive_dest_2='ser
vice=orclprmy ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=orclprmy'
*.log_archive_dest_state_2='ENABLE'
orcl.log_archive_format='orcl_%t_%s_%r.arc'
*.log_archive_format='orclstby1_%t_%s_%r.arc'
orclstby1.log_archive_format='orclstby1_%t_%s_%r.arc'
*.log_archive_max_processes=4
*.log_archive_min_succeed_dest=1
orcl.log_archive_trace=0
orclstby1.log_archive_trace=0
*.log_file_name_convert='orcl','orclstby1'
*.open_cursors=300
*.pga_aggregate_target=536870912
*.processes=
1500
*.remote_login_passwordfile='EXCLUSIVE'
*.sessions=1655
*.sga_target=1610612736
*.standby_file_management='AUTO'
*.undo_tablespace='UNDOTBS1'
</u2/oracle/product/11.2.0/dbhome_1/dbs>
Thank you for your help.
Maybe you are looking for
-
Open and Save dialogue boxes are useless
I have recently moved from Windows to Mac after being told I would never look back and I am already 'looking back' somewhat in terms of the OS. I work with photos and graphics and I'm on the move a lot so went for a Mac Book Pro Retina with SSD and I
-
Oracle Critical Patch Update July 2009 for Oracle BEA Releases
Hi All, Researching in metalink about CPU's for WLS 9.1 I found Oracle Support Note #835668.1. Table 9 of this document lists minimum product requirements for WebLogic server. According to this table WLS 9.1 should have a minimum version of 9.2MP3. I
-
Set transaction use roll back segmet
Hi all: I have lot of packages with the statement set transaction use roll back segment RBS_BIG.I am working on upgrade project and using undo tablespaces. Is there a quick way to grep the this statement from all the packages and remove off.Does the
-
[solved] KDE4 AltF2 no "Run Command" option, only works with menu apps
Well, in Kubuntu, when I pressed Alt F2, and typed 'kdesudo nvidia-settings' (for example), which wasn't in the menu, there was an option to simply run the command (like with GNome, KDE3, and pretty much everything else), but on here, it doesn't show
-
I kow this topic has been posted but there seems to be no resolution to it. I am having the same problem. After deploying the JDev Auction example to Tomcat, I get an error 500: unable to compile ...oracle.jbo.common.appmgr.*. Which jar/zip needs to