Information in CSQ on SQL
Does anyone know where in SQL I can find - calls in queue and the oldest in the queue.
I checked "RtCSQsSummary", but it is always empty.
Any ideas?
Joel
Any ideas.
If you connect to the CRS Admin, then click Tools instant real time Config (in IPCCX 4 x) you write data enabled? If you do not have that table will be empty.
Tags: Cisco Support
Similar Questions
-
Information required for generated SQL
Hello
I've done a few odi projects. In most of the RT operation when I check the operator code I saw that:
Insert into... .in 1 = 1;
or
Select... Of... where 1 = 1;
Does that mean 1 = 1?
There is no variable when or where condition.
Please years
Thank youHi Sarah Perreault,.
1 = 1 is a condition that is always true, and which is sometimes used in queries.
ODI uses in the generated code to valid questions with or without filters. Adding a filter will add a string: 'AND filter_condition.
Without filter:
select * from table where 1 = 1 ;
which is the same as select * from table;
Add a filter:
select * from table where 1 = 1 and col1 = 42 ;
Always-false conditions are also sometimes used by SQL developers. If you want to duplicate a table structure without duplicating the data:
create table2 as select * from table1 where 1 = 2;
Any line that is not returned, so some rows in the new table, but the structure is the same :).
It will be useful.
Kind regards
JeromeFr -
Cannot install SQL Server Express 2008 R2 on Spanish Windows 7 Professional N
My system is a Windows 7 Professional N (32 - bit) in SPANISH. I installed Visual Studio Express Web 2012 using the download Web site. Since it does not create databases or data projects, I decided to install SQL Server Express R2 2008.
So, I used Microsoft Web Platform install 4.0 which is on my system and selected 'SQL Server Express R2 2008', first 'Add' (add because it is in Spanish) then selected "Instalar' (installation).Have downloaded SQL Server Express R2 2008 happened for some time. Then it asked me to enter the password for the "sa" user I wanted to use it, so I chose 'Continue' and it went to install.After a while I got an error saying dialogue in Spanish this (translated):X follows products has NOT been installed.
SQL Server Express 2008 R2This product has not been installed correctly. The language of installation selected for SQL Express does not coincide with the language of the Format of the system. In Control Panel, go to the regional language Configuration & Format, click the Formats tab and update the language format and try to install again.The journal says:Believing information: 0: remote file has not changed, using local cached files: C:\Users\XXXX\AppData\Local\Microsoft\Web platform Installer\82214040.xmlBelieving information: 0: get the file http://go.microsoft.com/?linkid=9752395 sidesBelieving information: 0: http://go.microsoft.com/?linkid=9752395 responded with 302Believing information: 0: response headers:HTTP/1.1 302 foundCache-Control: privateContent-Length: 203Content-Type: text/html; charset = utf-8Expires on: kills, 20 Sep 2012 20:38:36 GMTLocation: http://www.microsoft.com/web/handlers/WebPI.ashx?command=getatomfeedwithavgratingqueryServer: Microsoft-IIS/7.5X-AspNet-Version: 2.0.50727X-Powered-By: ASP.NETDate: Kills, 20 Sep 2012 20:39:36 GMT
Believing information: 0: sides file loaded successfullyBelieving information: 0: adding product SQL Server Express 2008 R2 (SQLExpress) to cartBelieving information: 0: authentication in mixed mode using SQLBelieving information: 0: adding product "SQLExpress".Believing information: 0: current installation of setting 1Believing information: 0: starting install sequenceBelieving information: 0: use cached the file to C:\Users\XXXX\AppData\Local\Microsoft\Web platform Installer\installers\SQLExpress\daf34b0ffcbc8be086aafddeafc4e98d2da3295c\SQLEXPR32_x86_ESN.exe instead of download from http://go.microsoft.com/fwlink/?LinkID=186782&clcid=0xc0aInformation believing: 0: EXE command from product "SQL Server Express 2008 R2. "" CommandLine is: ' C:\Users\XXXX \AppData\Local\Microsoft\Web Platform Installer\installers\SQLExpress\daf34b0ffcbc8be086aafddeafc4e98d2da3295c\SQLEXPR32_x86_ESN.exe/q/action = install/features = SQL/InstanceName = SQLEXPRESS SQLSVCACCOUNT = /SQLSVCStartupType 'NT AUTHORITY\Network Service' = auto /AddCurrentUserAsSqlAdmin /ENABLERANU = 1/hideconsole/IACCEPTSQLSERVERLICENSETERMS/SECURITYMODE = SQL /SAPWD = ' * ' "." Process ID: 3672Believing information: 0: Install exit for the "SQL Server Express 2008 R2" is-2067529714 product codeError of believing: 0: Install return code product "SQL Server Express 2008 R2" is failure (El idioma instalacion para SQL Express chosen coincide con el formato del sistema idioma.) In Control Panel el, vaya al dialogo config cuadro y actualice el idioma del formato e idioma, elija pestana Formatos, regional brings nuevo realize the instalacion)Believing information: 0: product SQL Server Express 2008 R2 is installedBelieving information: 0: current increase install 2The first time it was OK as my language & format in this Panel was Spanish. I went and he changed to English (United States) and tried again. Same mistake. Rebooted the system, checked the English language format (notice that does NOT change the language of the current WIndows user interface) and tried to install SQL Server Express 2008 R2 with WebPI but no luck.Why is it not possible to install SQL Server Express 2008 R2 in a Spanish installation of Windows 7 during installation of Visual Studio 2012 without problem?Hello D.E.G.T_,
It would be preferable for you to post in the forums TechNet for SQL Server.
http://social.technet.Microsoft.com/forums/en-us/SQLExpress/threadsMembers of the community would be better able to advice you.
Thank you
Marilyn
-
SQL error: ORA-31038: invalid number '420,05' when extracting data from XML
Hello everyone ,
J’ai créé dietingDBMS_XMLSCHEMA. REGISTERSCHEMA (SCHEMAURL = > 'OrdenDetalle.xsd', SCHEMADOC = > ' <? xml version = "1.0" encoding = "UTF?) 8 "? >
" < xs: schema xmlns: XS =" http://www.w3.org/2001/XMLSchema ">
< xs: element name = "Monsigniore" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Quantity" type = "Integer" / >
< xs: element name = "FechaCreacion" type = "xs: DateTime" / >
< xs: element name = "Version" type = "xs: String" / >
< xs: ELEMENT ref = "News" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "News" >
< xs: complexType >
< xs: Choice >
< xs: element name = "OrdenCompra" type = "T_OrdenCompra" / >
< / xs: Choice >
< / xs: complexType >
< / xs: element >
< name XS: complexType = "T_OrdenCompra" >
< xs: SEQUENCE >
< xs: element name = "Code" type = "xs: String" / >
< xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoEstado" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoLicitacion" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Description" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoTipo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Type" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TipoMoneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "State" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoEstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Fechas" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TieneItems" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "PromedioCalificacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CantidadEvaluacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Well" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Freighters" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalNeto" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "PorcentajeIva" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Impuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Financing" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TipoDespacho" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FormaPago" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Comprador" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Proveedor" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Items" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< xs: element name = "Items" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Quantity" type = "Integer" / >
< xs: element name = "News" >
< xs: complexType >
< xs: SEQUENCE >
< xs: ELEMENT ref = "Item" minOccurs = "0" maxOccurs = "unbounded" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< name XS: complexType = "OrdenCompraBusqueda" >
< xs:complexContent >
< xs:extension base = "T_OrdenCompra" >
< / xs:extension >
< / xs:complexContent >
< / xs: complexType >
< xs: element name = "Item" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Correlativo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoCategoria" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Category" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoProducto" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Product" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EspecificacionComprador" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EspecificacionProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Quantity" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Moneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
"< xs: element name ="PrecioNeto"type ="XS: Decimal"minOccurs ="0"maxOccurs ="1"/ >
< xs: element name = "TotalCargos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalDescuentos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalImpuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Fechas" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "FechaCreacion" type = "xs: DateTime" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaEnvio" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaAceptacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaCancelacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaUltimaModificacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Comprador" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "CodigoOrganismo" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreOrganismo" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RutUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoUnidad" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Activity" type = "xs: String" nillable = "true" / >
< xs: element name = "DireccionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "ComunaUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RegionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Proveedor" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Code" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Activity" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoSucursal" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RutSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Address" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Comuna" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Region" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< / xs: Schema >
', LOCAL = > true, GENTYPES = > false, GENBEAN = > false, GENTABLES = > false,
FORCE = > false, OPTIONS = > DBMS_XMLSCHEMA. REGISTER_BINARYXML, OWNER = > USER);
I have a table with one xml domain.
CREATE TABLE XML_Orden_Detalle (Fecha_GET date default current_date not null,
Fecha_Ordenes number not null,
Correlativo_Ordenes number not null,
Codigo_Orden varchar2 (20) not not null primary key,
Cant_Item,
Date of InicioProceso,
Date of FinProceso,
Xmltype Orden_Detalle not null)
Orden_Detalle XMLTYPE COLUMN
STORE AS BINARY XML
XMLSCHEMA " " http://xmlns.Oracle.com/xdb/schemas/CCS_XML/OrdenDetalle.xsd "" "
ELEMENT "command";
I inserted data like that, without any Errors:" < Command containing = ' http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance ">
< Number > 1 < / quantity >
< FechaCreacion > 2015-05-28T 12: 10:26.947000 < / FechaCreacion >
v1 < version > < / Version >
< Return >
< OrdenCompra xsi: type = "OrdenCompraBusqueda" >
3879-2661-SE14 < code > < / code >
< Number > PSP DAEM 2014. COFFEE BREAK PARA FRINGE OP21838 < / number >
< CodigoEstado > 6 < / CodigoEstado >
3902 5-on 14 < CodigoLicitacion > < / CodigoLicitacion >
< Description > PSP DAEM 2014. COFFEE BREAK PARA FRINGE OP21838 < / description >
< CodigoTipo > 8 < / CodigoTipo >
< Type > SE < / Type >
< TipoMoneda > CLP < / TipoMoneda >
Is < State > < / Estado >
< CodigoEstadoProveedor > 4 < / CodigoEstadoProveedor >
Is < EstadoProveedor > < / EstadoProveedor >
< Fechas >
< FechaCreacion > 2014-12-29T 17: 43:32.287000 < / FechaCreacion >
< FechaEnvio > 2014-12-31T 10: 32:35.480000 < / FechaEnvio >
< FechaAceptacion > 2015 - 01-01 T 21: 03:03.660000 < / FechaAceptacion >
< FechaCancelacion xsi: Nil = "true" / >
< FechaUltimaModificacion > 2014-12-29T 17: 51:00.000000 < / FechaUltimaModificacion >
< / Fechas >
< TieneItems > 1 < / TieneItems >
< PromedioCalificacion > 5 < / PromedioCalificacion >
< CantidadEvaluacion > 1 < / CantidadEvaluacion >
< Well > 0 < / well >
cargo <>0 < / cargo >
< TotalNeto > 53782 < / TotalNeto >
< PorcentajeIva > 19 < / PorcentajeIva >
< Impuestos > 10218 < / Impuestos >
< total > 64000 < / Total >
< Financing > 1140569 < / financing >
< Country > CL < / Pais >
< TipoDespacho > 12 < / TipoDespacho >
< FormaPago > 2 < / FormaPago >
< comprador >
< CodigoOrganismo > 118069 < / CodigoOrganismo >
< NombreOrganismo > Ilustre municipalidad of Bulnes < / NombreOrganismo >
< RutUnidad > 69.141.200 - 8 < / RutUnidad >
< CodigoUnidad > 4799 < / CodigoUnidad >
Daem < NombreUnidad > < / NombreUnidad >
< Actividad / >
< DireccionUnidad > VICTOR BIANCHI Nº415 < / DireccionUnidad >
Bulnes < ComunaUnidad > < / ComunaUnidad >
< RegionUnidad > Region del Biobio < / RegionUnidad >
< Country > CL < / Pais >
Antonella Brunetti < NombreContacto > < / NombreContacto >
Adquisiciones < CargoContacto > < / CargoContacto >
< FonoContacto > 56-42-2204053-2204054 < / FonoContacto >
< MailContacto > [email protected] < / MailContacto >
< / comprador >
< Proveedor >
< Code > 275020 < / code >
Luis < number > < / number >
< Activity > MANUFACTURING OF PAN, BLOCK PANADERIA Y PRODUCTOS < / activity >
< CodigoSucursal > 280820 < / CodigoSucursal >
Luis < NombreSucursal > < / NombreSucursal >
< RutSucursal > 5.940.940 - 9 < / RutSucursal >
< Address > Carlos Palacios 125 < / address >
Bulnes < Comuna > < / Comuna >
Region del Biobio < region > < / region >
< Country > CL < / Pais >
< NombreContacto > Luis Leonardo Valdés Landero < / NombreContacto >
Gerente < CargoContacto > < / CargoContacto >
< FonoContacto > (56) (42) 631498 < /FonoContacto >
< MailContacto > [email protected] < / MailContacto >
< / Proveedor >
elements <>
< Quantity > 7 < / quantity >
< Return >
< item >
< Correlativo > 1 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > 3 LITROS BEBIDAS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 10 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 1550 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 15500 < / Total >
< / point >
< item >
< Correlativo > 2 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > DEEMED OF 1 1/2 LITYROS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 10 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 1150 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 11500 < / Total >
< / point >
< item >
< Correlativo > 3 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > PACKAGES SERVILLETAS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 8 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 170 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 1360 < / Total >
< / point >
< item >
< Correlativo > 4 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > pounds OF AZÚCAR < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 5 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 580 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 2900 < / Total >
< / point >
< item >
< Correlativo > 5 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > NESCAFE < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 2 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 3900 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 7800 < / Total >
< / point >
< item >
< Correlativo > 6 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > CAJAS OF TE 20 BOWL < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 5 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 340 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 1700 < / Total >
< / point >
< item >
< Correlativo > 7 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
TRITON GALLETAS < EspecificacionComprador > < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 31 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto >420,05< / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 13021,550000000001 < / Total >
< / point >
< / News >
< / object >
< / OrdenCompra >
< / News >
< / Monsigniore >
However when I extract data, for example:
Select *.
from xmltable (to_char (' / Monsigniore/news/OrdenCompra/Items/News/Item[1] ''))
passage (select Orden_Detalle
of xml_Orden_Detalle
where Fecha_Ordenes = 20150101 and Correlativo_ordenes = 83)
path of columns Correlativo varchar2 (15) 'Correlativo '.
, Path of varchar2 (15) CodigoCategoria 'CodigoCategoria '.
, Path Categoria Varchar2 (100 CHAR) "category.
, Path of varchar2 (15) CodigoProducto 'CodigoProducto '.
, Path of Producto Varchar2 (100 CHAR) 'product '.
, Path of the EspecificacionComprador Varchar2 (100 CHAR) "EspecificacionComprador".
, Path of the EspecificacionProveedor Varchar2 (100 CHAR) "EspecificacionProveedor".
, Amount varchar2 (15) path 'amount '.
, Path of the Moneda Varchar2 (16 CHAR) "Moneda".
, Path of varchar2 (15) PrecioNeto 'PrecioNeto '.
, Path of varchar2 (15) TotalCargos 'TotalCargos '.
, Path of varchar2 (15) TotalDescuentos 'TotalDescuentos '.
, Path of varchar2 (15) TotalImpuestos 'TotalImpuestos '.
, Path of varchar2 (15) total 'Total '.
);
delivery the following error:
Informed of error:
SQL error: ORA-31038: Valor number no valido: "420,05."
«31038 00000 - "value not valid %s: \"%s\»»
* Cause: The text in the XML document does not represent a valid
value given the data type and other constraints in the schema.
* Action: Make sure the value specified in the XML documents is valid
regarding the data type and other constraints in the schema.
Note that extract le agenda [1] but the reported error is à la point [7]
Please If anyone can Help me with le solution for no report error
Thank you very much in advanceCarlosin Chile, the decimal point are ', 'no'.', the xml data table is OK for us
You do not understand.
Regardless of the locale, numeric values limited by a type of data XS: Decimal must use a point in a correct XML representation, otherwise, the document is not valid by the XSD.
(3) TO_CHAR (...) the code is part of a procedure
Again, do NOT build a dynamic path like that.
Why not just move through the records returned by the query (if you need close at all)?
FOR rec in)
SELECT x.*
From your_table t
XMLTABLE (...) x
)
LOOP
END LOOP;
What is the role of the v_CantItems variable? Paging?
Whence its value?
-
SQL error on vmo_workflowtoken 22001
I have a workflow that extracts inventory information and fills a SQL database. He travels 20 VMs or more and then throws the following error:
05 2013-08-09:09:47.488 - 0400 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 22001
05 2013-08-09:09:47.488 - 0400 error data truncation [JDBCExceptionReporter]
05 2013-08-09:09:47.488 - 0400 WARN [JDBCExceptionReporter] SQL Error: 8152, SQLState: 22001
05 2013-08-09:09:47.488 - 0400 binary or error string [JDBCExceptionReporter] would be truncated.
05 2013-08-09:09:47.488 - 0400 WARN [WorkflowRuntimeServiceImpl] unable to update the symbolic content workflow for the id '8a809d523fc5422201404e98146404b8 '.
org.springframework.dao.DataIntegrityViolationException: could not execute the batch update JDBC; SQL [update vmo_workflowtoken set businessstate =?, currentitemstate =?, enddate =?, globalstate =?, itemdisplaynamestack =?, itemnamestack =?, itemstackfordisplay =?, runningpassword =?, runningusername =?, startdate =?, taskid =?, title =?, wfexecutionstack =? where id =?]; nested exception is org.hibernate.exception.DataException: could not execute JDBC batch update
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:648)
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:104)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:403)
at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:58)
at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:163)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
to $Proxy197.saveAndFlush (Unknown Source)
at com.vmware.o11n.service.impl.WorkflowRuntimeServiceImpl.updateWorkflowTokenWithContent(WorkflowRuntimeServiceImpl.java:880)
at sun.reflect.GeneratedMethodAccessor876.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
to $Proxy203.updateWorkflowTokenWithContent (Unknown Source)
at com.vmware.o11n.service.factory.VcoFactoryFacade.updateWorkflowTokenWithContent(VcoFactoryFacade.java:1078)
at sun.reflect.GeneratedMethodAccessor6605.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.vmware.o11n.service.security.AccessRightsInterceptor.invoke(AccessRightsInterceptor.java:92)
at com.vmware.o11n.service.security.AccessRightsInterceptor.invoke(AccessRightsInterceptor.java:81)
at com.vmware.o11n.service.factory.LocalVSOFactoryInvocationHandler.invokeOperation(LocalVSOFactoryInvocationHandler.java:211)
at com.vmware.o11n.service.factory.LocalVSOFactoryInvocationHandler.doInvoke(LocalVSOFactoryInvocationHandler.java:254)
at com.vmware.o11n.service.factory.LocalVSOFactoryInvocationHandler.invoke(LocalVSOFactoryInvocationHandler.java:140)
to $Proxy261.updateWorkflowTokenWithContent (Unknown Source)
at ch.dunes.model.client.VSOFactoryClient.updateWorkflowTokenWithContent(VSOFactoryClient.java:1904)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.checkpointWorkflowToken(WorkflowHandler.java:853)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.handleWorkflowTokenNextStep(WorkflowHandler.java:553)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.executeToken(WorkflowHandler.java:461)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.handleTokenExecution(WorkflowHandler.java:387)
at $200 (WorkflowHandler.java:86) ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.access
to ch.dunes.workflow.engine.mbean.helper.WorkflowHandler$ 1.execute(WorkflowHandler.java:303)
at ch.dunes.model.ar.AccessRightsTemplate.executeWithAccessRights(AccessRightsTemplate.java:16)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.doExecute(WorkflowHandler.java:299)
at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.run(WorkflowHandler.java:203)
to java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)
to java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.hibernate.exception.DataException: could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:102)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:185)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:960)
at sun.reflect.GeneratedMethodAccessor811.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
to org.springframework.orm.jpa.SharedEntityManagerCreator$ SharedEntityManagerInvocationHandler.invoke (SharedEntityManagerCreator.java:240)
to $Proxy89.flush (Unknown Source)
at org.springframework.data.jpa.repository.support.SimpleJpaRepository.flush(SimpleJpaRepository.java:379)
at org.springframework.data.jpa.repository.support.SimpleJpaRepository.saveAndFlush(SimpleJpaRepository.java:344)
at sun.reflect.GeneratedMethodAccessor810.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
to org.springframework.data.repository.core.support.RepositoryFactorySupport$ QueryExecutorMethodInterceptor.executeMethodOn (RepositoryFactorySupport.java:368)
to org.springframework.data.repository.core.support.RepositoryFactorySupport$ QueryExecutorMethodInterceptor.invoke (RepositoryFactorySupport.java:349)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:155)
... more than 40
Caused by: java.sql.BatchUpdateException: truncation of data
at net.sourceforge.jtds.jdbc.JtdsStatement.executeBatch(JtdsStatement.java:947)
at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeBatch(CachedPreparedStatement.java:478)
at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:519)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
... more than 62
05 08-2013 09:09:47.488 - 0400 ERROR [WorkflowHandler] unexpected error during the processing of a workflow transition
java.lang.RuntimeException: error...
*****************************
He is not related to a particular VM, so I don't know where is the problem. Any ideas?
I see that there are 2 elements scripts containing "Extract information from the virtual machine - SL" Workflow "/" ("' Get CPU / memory ' and ' Get network / IP '").
You can try to rename to something without ' / '.
-
Using SQL Server with ADF BC and getting Houston - 29114 ADFContext aren't Setup error
Hello... I work with ADF BC and my connection is with a MS SQL Server database. I added the sqljdbc4.jar in my template project, and can't seem to connect with the DB and build an Entity/View/AppMod infrastructure. However, once I deploy the application on the integrated WebLogic Server I get errors when ADF BC tries to connect. I added a POJO supported data control and tried to debug but PPR reports an error when my key to call the code stripped of JDBC:
Houston-29114 ADFContext is not configured to process this exception messages. Use the code of exception stack trace and error to investigate the root cause of this exception. Root cause error code is Houston-29000. Error messages settings are {0 = java.lang.NoClassDefFoundError, 1 = com/microsoft/sqlserver/jdbc/SQLServerException}
ADF_FACES-60097: for more information, see the error log of the server for an entry beginning with: ADF_FACES - Exception during the PPR, #1 60096:Server
Seems to me that the POT is not in the classpath on the WLS. What is the problem? If Yes... How would have added that JAR, sqljdbc4.jar, the path of the WLS class. I've done through the deployment of models, and he saw in the META-INF/lib directory that has been deployed.
Thanks for any help!
Do not apply the JDBC JAR (s) in the archives of application deployment. You must add the JAR to the classpath WLS JDBC (s). Change the commEnv.cmd/sh for this script:
Using JDBC with WebLogic Server - 11g Release 1 (10.3.6) drivers
Note that WLS is pre-configured with a number of brand WebLogic DataDirect JDBC drivers (including a SQLServer driver), so you can use it instead of adding a new driver if the DataDirect driver meets your needs:
Using WebLogic brand DataDirect drivers - 11g Release 1 (10.3.6)
WLS 10.3.5 documentation provides more detailed information:
Dimitar
-
Extract data from a different node in SQL
Hi friends,
First of all:
I have a small but annoying problem. I have create a Bank application that needs to retrieve data in a file entry, and, according to this information, to execute some stored procedures (create a new customer, create a new account, create a transaction for an account).BANNER 1 Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production 2 PL/SQL Release 11.2.0.3.0 - Production 3 CORE 11.2.0.3.0 Production 4 TNS for Linux: Version 11.2.0.3.0 - Production 5 NLSRTL Version 11.2.0.3.0 - Production
For example: the input file contains a few new customers (FirstName, LastName, SocialSecurityNumber, birthday, address and PhoneNo), for each customer account at least 1 create 1 or more operations (the amount of the transaction) for each account.
Let me be more precise. It is a XML in an input file:
This input file must start the following:<?xml version="1.0" encoding="ISO-8859-1"?> <doc> <PERS_INFO> <lastname>John</lastname> <firstname>Doe</firstname> <social_security_no>1800325171545</social_security_no> <birthday>25/03/1980</birthday> <address>Principal, 15</address> <phoneno>0040722222222</phoneno> <acc> <transaction>200</transaction> <transaction>150</transaction> <transaction>-23</transaction> </acc> <acc> <transaction>450</transaction> </acc> <acc> <transaction>800</transaction> <transaction>320</transaction> <transaction>-125</transaction> </acc> </PERS_INFO> <PERS_INFO> <lastname>Smith</lastname> <firstname>Pop</firstname> <social_security_no>2851211173377</social_security_no> <birthday>11/12/1985</birthday> <address>FirstAvenue, 20</address> <phoneno>0040744444444</phoneno> <acc> <transaction>444</transaction> <transaction>550</transaction> </acc> <acc> <transaction>113</transaction> <transaction>-50</transaction> <transaction>89</transaction> </acc> <acc> <transaction>300</transaction> </acc> </PERS_INFO> </doc>
-create 2 new clients (using a stored procedure Pr_Add_New_Cust):
1 John Doe / 1800325171545 / 25.03.1980 / main, 15 / 0040722222222
2 Smith Pop / 2851211173377 / 11.12.1985 / FirstAvenue, 20 / 0040744444444
-for John Doe I create 3 new account (using a stored procedure Pr_Add_New_Account):
-account 1 - for this account, I have to create 3 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 200, $ 150 DEPOSIT, WITHDRAW $ 23
-account 2 - for this account, I need to create 1 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 450
-count of 3 - for this account, I have to create 3 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 800, DEPOSIT $ 320, WITHDRAWAL $ 125
-for Smith Pop I create 3 new account (using a stored procedure Pr_Add_New_Account):
-account 1 - for this account, I need to create 2 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 444, DEPOSIT $ 550
-account 2 - for this account, I have to create 3 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 113, WITHDRAW $50, DEPOSIT $ 89
-count of 3 - for this account, I need to create 1 new operations (using a stored procedure Pr_Create_New_Trans): DEPOSIT $ 300
Well, I think to do that by loading this XML into a table of staging pre - INS_STG1 - (the part of loading is not an issue at the moment) and by analyzing the XML code in order to get my (insert) in the second staging table INS_STG2 the information required to initiate these procedures.
Something like that (at the moment I only insert customer information since I do not know how to get on the floor):
This procedure is based on the SQL query that I'm starting to fold with in order to understand how to get the information from XML using SQL (the XML is hardcoded)DECLARE TYPE ty_rec_1 IS RECORD (v_cust_firstname VARCHAR2(32), v_cust_lastname VARCHAR2(32), v_cust_persnumcode VARCHAR2(32), v_cust_birthday VARCHAR2(32), v_cust_address VARCHAR2(32), v_cust_phoneno VARCHAR2(32)); TYPE ty_cur_1 IS REF CURSOR RETURN ty_rec_1; TYPE ty_arr_rec_1 IS TABLE OF ty_rec_1 INDEX BY PLS_INTEGER; cur_1 ty_cur_1; arr_rec_1 ty_arr_rec_1; my_xml xmltype; N_BULK_SIZE NUMBER := 1000; BEGIN SELECT xml_column INTO my_xml FROM INS_STG1; OPEN cur_1 FOR SELECT extractvalue(column_value, '/PERS_INFO/firstname') "v_cust_firstname", extractvalue(column_value, '/PERS_INFO/lastname') "v_cust_lastname", extractvalue(column_value, '/PERS_INFO/social_security_no') "v_cust_persnumcode", extractvalue(column_value, '/PERS_INFO/birthday') "v_cust_birthday", extractvalue(column_value, '/PERS_INFO/address') "v_cust_address", extractvalue(column_value, '/PERS_INFO/phoneno') "v_cust_phoneno" FROM TABLE(XMLSequence(my_xml.extract('/doc/PERS_INFO'))) t; LOOP FETCH cur_1 BULK COLLECT INTO arr_rec_1 LIMIT N_BULK_SIZE; EXIT WHEN arr_rec_1.COUNT() = 0; FORALL n_idx1 IN 1..arr_rec_1.COUNT() INSERT INTO INS_STG2 (cust_firstname, cust_lastname, cust_persnumcode, cust_birthday, cust_address, cust_phoneno) VALUES (arr_rec_1(n_idx1).v_cust_firstname, arr_rec_1(n_idx1).v_cust_lastname, arr_rec_1(n_idx1).v_cust_persnumcode, arr_rec_1(n_idx1).v_cust_birthday, arr_rec_1(n_idx1).v_cust_address, arr_rec_1(n_idx1).v_cust_phoneno); END LOOP; CLOSE cur_1; COMMIT; END;
My problem is that this query will only at the first level (the level of the customer). I don't know how to get to the second and third level (transactions/account).SELECT extractvalue(column_value, '/PERS_INFO/firstname') "First Name", extractvalue(column_value, '/PERS_INFO/lastname') "Last Name", extractvalue(column_value, '/PERS_INFO/social_security_no') "Social Security No", extractvalue(column_value, '/PERS_INFO/birthday') "Birth-day", extractvalue(column_value, '/PERS_INFO/address') "Address", extractvalue(column_value, '/PERS_INFO/phoneno') "Phone No" FROM TABLE(XMLSequence( XMLTYPE( '<?xml version="1.0" encoding="ISO-8859-1"?> <doc> <PERS_INFO> <lastname>John</lastname> <firstname>Doe</firstname> <social_security_no>1800325171545</social_security_no> <birthday>25/03/1980</birthday> <address>Principal, 15</address> <phoneno>0040722222222</phoneno> <acc> <transaction>200</transaction> <transaction>150</transaction> <transaction>-23</transaction> </acc> <acc> <transaction>450</transaction> </acc> <acc> <transaction>800</transaction> <transaction>320</transaction> <transaction>-125</transaction> </acc> </PERS_INFO> <PERS_INFO> <lastname>Smith</lastname> <firstname>Pop</firstname> <social_security_no>2851211173377</social_security_no> <birthday>11/12/1985</birthday> <address>FirstAvenue, 20</address> <phoneno>0040744444444</phoneno> <acc> <transaction>444</transaction> <transaction>550</transaction> </acc> <acc> <transaction>113</transaction> <transaction>-50</transaction> <transaction>89</transaction> </acc> <acc> <transaction>300</transaction> </acc> </PERS_INFO> </doc>').extract('/doc/PERS_INFO'))) t;
Now, this query return:
and I want him back like this:Doe John 1800325171545 25/03/1980 Principal, 15 0040722222222 Pop Smith 2851211173377 11/12/1985 FirstAvenue, 20 0040744444444
What I do for this SQL query to get the result at the transaction level (as in the second table)? This XML can be improved as well. If another structure service for my purpose, please let me know.Doe John 1800325171545 25/03/1980 Principal, 15 0040722222222 1 200 Doe John 1800325171545 25/03/1980 Principal, 15 0040722222222 1 150 Doe John 1800325171545 25/03/1980 Principal, 15 0040722222222 1 -23 Doe John 1800325171545 25/03/1980 Principal, 15 0040722222222 2 450 Doe John 1800325171545 25/03/1980 Principal, 15 0040722222222 3 800 Doe John 1800325171545 25/03/1980 Principal, 15 0040722222222 3 320 Doe John 1800325171545 25/03/1980 Principal, 15 0040722222222 3 -125 Pop Smith 2851211173377 11/12/1985 FirstAvenue, 20 0040744444444 1 444 Pop Smith 2851211173377 11/12/1985 FirstAvenue, 20 0040744444444 1 550 Pop Smith 2851211173377 11/12/1985 FirstAvenue, 20 0040744444444 2 113 Pop Smith 2851211173377 11/12/1985 FirstAvenue, 20 0040744444444 2 -50 Pop Smith 2851211173377 11/12/1985 FirstAvenue, 20 0040744444444 2 89 Pop Smith 2851211173377 11/12/1985 FirstAvenue, 20 0040744444444 3 300
Thank you!Like [url http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions061.htm#SQLRF06173] extractvalue is frowned upon in your version, you need to switch to another method, as shown in the documentation.
Go further with that, here's a starter SQL which gives you the desired result
WITH INS_STG1 AS (SELECT XMLTYPE('
John Doe 1800325171545 25/03/1980 Principal, 150040722222222 200 150 -23 450 800 320 -125 Smith Pop 2851211173377 11/12/1985 FirstAvenue, 200040744444444 444 550 113 -50 89 300 product
FIRST_NAME BIRTH_DAY ACC_RN TRANS -------------------- ---------- ---------- ---------- Doe 25/03/1980 1 200 Doe 25/03/1980 1 150 Doe 25/03/1980 1 -23 Doe 25/03/1980 2 450 Doe 25/03/1980 3 800 Doe 25/03/1980 3 320 Doe 25/03/1980 3 -125 Pop 11/12/1985 1 444 Pop 11/12/1985 1 550 Pop 11/12/1985 2 113 Pop 11/12/1985 2 -50 Pop 11/12/1985 2 89 Pop 11/12/1985 3 300
Now... There are probably a better way to XQuery to shoot that turned off, but I'll keep this better than me for someone of XQuery example.
I'll also include is it possible that all this work could be done in a single SQL statement, as indicated by
[url http://odieweblog.wordpress.com/2012/05/10/how-to-load-xml-data-into-multiple-tables/] How to: Load XML data in multiple tables -
Problem with SQL report to modify data
Hi all
I don't know that I'm writing this question in the right page or not. But my question is: I have a column in my table which is of type varchar. Data in this column are as Fallows:
257414/45y
194662223445 8877/j7tg
.....
I wanted to know, is anyway I can show this data in my report without any / or - fallow:
25741445y
1946622234458877j7tg
Just for your information, this is a sql report.
Thank youI read your question because how do you remove both the ' / ' and '-' characters. If true do as follows:
Select REPLACE(REPLACE('194662223445-8877/j7tg','/'),'-','') from DUAL
At the end of the statement where ") of the DOUBLE appears, these two single quote characters have no space between them. That means replace NULL for the characters you want to replace.
You can test the statement leaving from DOUBLE. Once satisfied, change it to 'from MyTable '.
I don't know what to tell you on the TTITLE. It of what I used and always works to print a title.
-
PL/SQL: Cursor with list filling can do IF EXISTS on Table
Here's my problem. The DB I work with is a database of events (network events). I have a task to take a list of nodes of 2600 and see whether these nodes exist in a set of events that would be with a certain WHERE clause. On my first pass, I did WHERE AND NŒUD clause in (list of 2600 nodes). Well you can put only 1,000 items in a list so I've divided into 3 reports and served while a UNION all between them. This used 15% of the resources of the db and ran for hours and the Group dba like me to find a better way. They would prefer that I use PL/SQL.
I am new to pl/sql (but not programming or SQL). So the first thing I've done is just figure out how to get my list in a Varray, which I then went to a table because I couldn't find examples, after hours and hours of searching the Web,.
referencing a Varray with SQL syntax.
START CODE sample 1 *.
DECLARE
DECLARE
TYPE NodeList IS TABLE OF VARCHAR2 (255);
Node NodeList: = NodeList ('node1', node2', [.. .list of 2597 nodes..], 'node2600')
BEGIN
dbms_output. Enable (1000000);
FOR i IN Nodes.FIRST... Nodes.LAST
LOOP
DBMS_OUTPUT. Put_line (' relevant points: ' |) Nodes (i));
END LOOP;
END
END CODE Sample 1 *.
The pseudo-code I'm envisioning goes something like this:
IF one of these nodes (nodes of 2600 list),
There are in the nodes for this WHERE clause (which is taken from the event db table).
then print the records (of the events in the event db table) that contains the nodes (ie the list nodes).
I think I found an example with 2 sliders, but I can't find this example once again. And anyway, I can't figure out how to get my list in a cursor. I have many examples of how to complete a cursor on a select statement against a database.
I tried this but it did not work:
START the CODE sample 2 *.
DECLARE
DECLARE
TYPE NodeList IS TABLE OF VARCHAR2 (255);
Node NodeList: = NodeList ('node1', node2', [.. .list of 2597 nodes..], 'node2600')
CURSOR MOM_OVO_NODES IS
SELECT the node
OF NodeList
ORDER BY node;
BEGIN
dbms_output. Enable (1000000);
FOR nodelist_rec IN MOM_OVO_NODES
LOOP
dbms_output.put_line (' relevant nodes: ' | nodelist_rec.) Node);
END LOOP;
END
END CODE sample 2 *.
Is there a way to get this list in a slider? Or I think about this correctly?
BradBrad Bueche wrote:
Here's my problem. The DB I work with is a database of events (network events). I have a task to take a list of nodes of 2600 and see whether these nodes exist in a set of events that would be with a certain WHERE clause. On my first pass, I did WHERE AND NŒUD clause in (list of 2600 nodes). Well you can put only 1,000 items in a list so I've divided into 3 reports and served while a UNION all between them. This used 15% of the resources of the db and ran for hours and the Group dba like me to find a better way. They would prefer that I use PL/SQL.PL/SQL is probably going to be a slower solution, then SQL. It's almost always.
Your best bet would be to maintain a table of nodes. You can then use a single SQL query with an IN WHERE clause as:
WHERE node in (SELECT node FROM node_table)
Or you can use a join (the method preferred honestly, gives Oracle more optimization options).
If you don't want to maintain a table of node, you can always create a global temporary Table or the external Table that could be loaded prior to running your report.
If you have tried these methods, and it is still too low or high intensity of resources, then we should look at the SQL and chorus only. See the PL/SQL FAQ's for more information on setting the SQL statements.
-
The analysis of the VARCHAR2 column data to extract information
Hi guys,.
Let me give the information of DB first:
SQL > select * from v version $;
BANNER
--------------------------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
AMT for Solaris: release 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
My problem is: the interface of the application sends a large chain in VARCHAR2 (4000 BYTES) field. The string it sends is a bit like this-
I want to analyze the text and put in separate columns. Number of writes: maybe more than 3; its 3 up there. But the basic structure is the same. What is the best way to analyze this in PL/SQL code? I want something like<strong>Crit:</strong> Some text. <br><strong>Distinguished</strong> (points 3):Some comment text1. <blockquote> </blockquote><strong>Crit:</strong> Some other text.<br><strong>Distinguished</strong> (points 3):Some comment text2. <blockquote> </blockquote><strong>Crit:</strong> Some more text. <br><strong>Distinguished</strong> (points 3):Some comment text3. <blockquote> </blockquote><strong>Overall comments:</strong><br> Final text!!
Table 1 Crit Points Comment Some text 3 Some comment text1. Some other text 3 Some comment text2. Some more text 3 Some comment text3.
Let me know if you need more information.Table 2 Overall comments Final text!!
Thank you.It could be a few slightly neater ways to do it with the REGULAR expression functions, but this will do what ypu want to:
TABLE 1:
WITH t AS (SELECT 'Crit: Some text.
Distinguished (points 3):Some comment text1.
Distinguished (points 3):Some comment text2.
Distinguished (points 3):Some comment text3.
Final text!!' string FROM dual) SELECT SUBSTR(REGEXP_SUBSTR(string,'Crit:[^<]+', 1, level), 15) "Crit", SUBSTR(REGEXP_SUBSTR(string,'points [^\)]+', 1, level), 8) "Points", SUBSTR(REGEXP_SUBSTR(string,'\):[^<]+', 1, level), 3) "Comments" FROM t CONNECT BY LEVEL <= (LENGTH(string) - LENGTH(REPLACE(string, 'Crit:')))/5TABLE2:
WITH t AS (SELECT 'Crit: Some text.
Distinguished (points 3):Some comment text1.
Distinguished (points 3):Some comment text2.
Distinguished (points 3):Some comment text3.
Final text!!' string FROM dual) SELECT SUBSTR(string, INSTR(string, '', -1) + 8, INSTR(string, '', -1) - INSTR(string, '', -1) - 8) "Overall", SUBSTR(string, INSTR(string, '
', -1) + 4) "Final" FROM t -
"IN STORE" partitioning information
Hello
I have trying to find where the information ' save in ' which had been given for the partitions.
There is no info about it in USER_PART_TABLES, USER_TAB_PARTITIONS.
The information can be collected by dbms.metadata but I need this info from another view...
Any comments?
Thank you
EvrenDaniel,
I think that the information for every store that has been clarified in 11g is not always exposed by DBA_ views *. The USER_TAB_PARTITIONS view tells you only storage of the already created partitions. However, this information can be retrieved by querying the tables directly sys. A new table appeared in 11g to keep this information to organize this information - INSERT_TSN_LIST$. The SQL code I posted earlier should give you the information you need.
Thank you
Lachaux... -
Passage of tables through multiple functions and PL/SQL procedures
I am now a great application of PL/SQL. There is a main procedure which is initially called who subsequently passes information to other PL/SQL functions and procedures. Ultimately an error code and the string is passed to PUT_LINE so it can be displayed. I want to be able to do is to have a table that stores an error code and a string for every error it then go through each of the procedures and functions. This would mean passing these codes and the strings of a function to a function within the pl/sql application. What would be the best way to implement this and is it possible to move heavy or folders to other PL/SQL functions? Thank you.Here is a simulation->
satyaki> satyaki>select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod PL/SQL Release 10.2.0.3.0 - Production CORE 10.2.0.3.0 Production TNS for 32-bit Windows: Version 10.2.0.3.0 - Production NLSRTL Version 10.2.0.3.0 - Production Elapsed: 00:00:00.20 satyaki> satyaki> satyaki>create or replace type n_array is table of number; 2 / Type created. Elapsed: 00:00:07.10 satyaki> satyaki>CREATE OR REPLACE PROCEDURE Get_Array(array_in IN n_array, 2 array_out OUT n_array) 3 IS 4 BEGIN 5 array_out := n_array(); 6 FOR i IN 1..array_in.count 7 LOOP 8 array_out.extend; 9 array_out(i) := array_in(i) * 2; 10 END LOOP; 11 END Get_Array; 12 / Procedure created. Elapsed: 00:00:00.89 satyaki> satyaki> satyaki>Create or Replace Procedure Set_Array(myArray IN n_array) 2 is 3 i number(10); 4 rec emp%rowtype; 5 w n_array:=n_array(1200,3200); 6 bucket n_array := n_array(); 7 Begin 8 Get_Array(w,bucket); 9 10 for i in 1..myArray.count 11 loop 12 select * 13 into rec 14 from emp 15 where empno = myArray(i); 16 dbms_output.put_line('Employee No:'||rec.empno||' Name:'||rec.ename); 17 for j in 1..bucket.count 18 loop 19 dbms_output.put_line('Commission Sub Type: '||bucket(j)); 20 end loop; 21 end loop; 22 End Set_Array; 23 / Procedure created. Elapsed: 00:00:01.33 satyaki> satyaki> satyaki>select * from emp; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- 9999 SATYAKI SLS 7698 02-NOV-08 55000 3455 10 7777 SOURAV SLS 14-SEP-08 45000 3400 10 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 7566 JONES MANAGER 7839 02-APR-81 2975 20 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 7782 CLARK MANAGER 7839 09-JUN-81 4450 10 7788 SCOTT ANALYST 7566 19-APR-87 3000 20 7839 KING PRESIDENT 17-NOV-81 7000 10 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 7876 ADAMS CLERK 7788 23-MAY-87 1100 20 EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- 7900 JAMES CLERK 7698 03-DEC-81 950 30 7902 FORD ANALYST 7566 03-DEC-81 3000 20 13 rows selected. Elapsed: 00:00:00.28 satyaki> satyaki>declare 2 v n_array:=n_array(9999,7777); 3 begin 4 Set_Array(v); 5 end; 6 / Employee No:9999 Name:SATYAKI Commission Sub Type: 2400 Commission Sub Type: 6400 Employee No:7777 Name:SOURAV Commission Sub Type: 2400 Commission Sub Type: 6400 PL/SQL procedure successfully completed. Elapsed: 00:00:00.15 satyaki> satyaki>
Kind regards.
LOULOU.
-
Insertion and extraction of data from a database by USING SQL Developer al32UTF8
Hi guys,.
Before I post my questions, I think it's better for me to give you guys my first understandings so that it is easier to understand where / if I have gone wrong...
I use Windows XP and Oracle 10 g
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Non-unicode client - a client program that needs to use the code page of the operating system for the mapping of unicode data retrieved from the database as well as the support to display/insert characters from the code page to the database.
For example sqlplusw.exe
Therefore, when you use a non-unicode client
(1) we define the code page of the OS (Control Panel - regional and language of the parameter - advance - the language for non-unicode programs) to the code page that contain the characters that we will view/insert.
(2) we also defined the NLS_LANG characterset on the character set of code page, that we'll insert so that when we do an insert (for example in thai), oracle will and automatic conversion to Unicode can take place. This is also true when recover us the database unicode data so that the correct character set conversion can take place.
INSERTION OF
THAI->-> UNICODE conversion
RECOVERY OF
THAI <-conversion <-UNICODE
I hope that my basic understanding is correct up to this point.
---------------------------------------------------------------------------------------------------------------
Unicode client - a client program that supports display/inserting unicode characters without the need to set the code page of the operating system (Control Panel - regional and language setting - control - language for non-unicode programs advance)
For example isqlplus http or SQL Developer
However,.
(1) there are still set the NLS_LANG so that the correct conversion can take place between the client and the database.
For example, when the recovery if we set NLS_LANG value ZHS16GBK (Chinese) character and store data in Unicode in the database is for example (THAI), then the conversion would be a mistake.
It's a supported unicode client, then the NLS_LANG character set should be set to UNICODE as well.
---------------------------------------------------------------------------------------------------------------------------
Those are my questions
* Important - please help if you're busy and don't have the time to answer the remaining questions
(* Q1) if I had to use a unicode client, what should I put my character NLS_LANG set?
AMERICAN_AMERICA. UTF8?
(* T2) where can I put the NLS_LANG information of character in SQL Developer, I know there is a metalink for setting NLS_LANG using isqlplus but I cant seem to google each led for SQL developer.
Q3) is my basic understanding of up to this point? If no, please explain in a term more widespread that I'm really not familiar with character sets code page, unicode and fonts, glyphs...
A unicode client (Q4) didn't need to refer to the OS codepage (regional and language updates), y at - it a code page UNICODE for the customer to refer to, or is there an available window API?
Q5), there are still set the NLS_LANG so that the correct conversion can take place between the customer and the > > database.
For example, when recovery if we set NLS_LANG value ZHS16GBK (Chinese) character and the data store in > > unicode in the database is for example (THAI), then the conversion would be erroneous.
--------------------------------------------------------------------------------------------------------------------------
Thank you for spending the time to read my questions and I hope to hear soon tips from you guys.
Million thanks again for sharing.
Best regards
Noob, but eager to learnThe requirement to always set NLS_LANG is not true for JDBC, which ignores the NLS_LANG altogether. Java programs extract the textual data in string variables, which uses Unicode UTF-16 by design. JDBC defines the conversion of character sets so that data is converted between UTF - 16 and the database or the national character set.
The obligation to set NLS_LANG is not generally true for the OIC, either. The first call to a problem of the BEAK may be OCIEnvNlsCreate(). This call has two parameters that allow the caller to set the character set to use for the text of VARCHAR2/TANK/LONG/CLOB/statement and the character set to be used for NCHAR/NVARCHAR2/NCLOB. Only if these character sets is specified as 0, character set NLS_LANG is used. Also, the OIC programs can specify different character for each binding sets or set the variable (i.e. the buffer input/output). Note: The OIC programs always use NLS_LANG to initialize the language settings and the territory for the client program and the database session. Only the character set can be specified is OCIEnvNlsCreate().
OCIEnvNlsCreate() can specify the client character set to UTF-16 (platform boutien) format. This is not possible with NLS_LANG.
Various interfaces based on the BEAK, such as ODBC Oracle and .NET for the ODP, explicitly initialize OCI with character set Unicode and therefore ignore the NLS_LANG character set as well.
Thnx,
Sergiusz -
Hi experts:
I know that foglight 4 was support. In my case, there is a large customer used Foglight 4 for a long time. So can not install 5 Foglight immediately.
But unfortunately, the customer will have integration of foglight 4 to another system.
We need to the docs on API or Foglight 4 docs.
DB information managed (oacle DB2 SQL Server) and managed Middleware (weblogic, websphere MQ) is necessary.
Such as:
DB:
used tablespace, Redo log space, CMS and so on
Middleware:
Wating JVM, JMS, JDBC, and so on
We would like to know how integrating these Foglight 4 imforation.
Where can I find documentation?
Thank you very much!
You can pull down the documentation foglight 4 from the site of Dell support as a starting point.
David Mendoza
Foglight Consultant
-
Migration of TMS PE installation tool
Hi all
I have a problem:
I installed the SMT Server 13.2.2.Then I want to install the tool PE. I have the type of credentials of all necessary data and identification information as identification information of MSD and SQL Remote Server on the installation of the progress of this tool of PE. Whenever this error pops up "Please check the SQL protocols.There are 4 parameters on the site SQL what we could to set:= Shared memory: enabled?= Named Pipes: enabled?= TCP/IP: enabled?= VIA: enabled?the 4 parameters must be defined on the PE tool can be installed successfully or to connect to the remote SQL database SQL database?We cannot install the tool of PE.THX for your commentsGreat and no problem, please set this resolved thread then :)
Sent by Cisco Support technique iPhone App
Maybe you are looking for
-
using a NI4070 multimeter and I see the max connection is 300 kHz by respect it. But I don't understand how to set the min and max, acFrequency according to the sampling frequency or speed reading. 6 1/2 digits resolution, the speed can vary from 0.
-
Presario SR5130NX bad video embedded - does not start
I have a Compaq Presario SR5130NX equipped with a LCD HP vp17 using the onboard video. It is Windows Vista. The PC won't POST. There is no display at all with the exception of a brief message on the LCD indicating no video signal on a port, but there
-
Desktop icons and windows taskbar does not load
My friend has problems with his computer. Yesterday, his computer was when the power has jumped. When the power came back and she has restarted his computer, his office without icons or the windows task bar. She can see his wallpaper and that's it
-
Computer says it's 'stop' at all times.
I can't do anything - control, alt, del does not work. Start button does not work. The screen just says 'close', as it is now for 2 days! I tried to turn off the power when I turn it back on it just says-'computer shuts down. Nothing will work when i
-
print walks onto the page when printing business cards
When I print multiple sheets of business cards printing the page begins to wander to the top of the sheet. If I only print one page at a time, this isn't a problem. How can I fix? I have an Officejet Pro e8100 printer works wirelessly on a Win 7