error ORA-00000 normal outcome

Hello everyone,

I have a table named:

PA_MASTER_ANALYSIS_VALUES

Identification number
Paren_Id Number
Value Varchar2 (100)

I add 2 data blocks based on the same named Table: PA_MASTER_ANALYSIS_VALUES1 (Parent block), PA_MASTER_ANALYSIS_VALUES2 (child block)

Can I make the relationship between data blocks so that:

PA_MASTER_ANALYSIS_VALUES2. Parent_Id = PA_MASTER_ANALYSIS_VALUES1.ID

I compile and run the form with no problems.but when I try to fill the first record in the first block and go the second record without saving, the suspended form then the message is displayed with the error ora-00000 normal outcome. And even if I save then go to the second record and return to the first record displayed the same problem.

I don't write except before insert triggers triggers that would fill the Id field using Nvl (Max (Id), 0) + 1.
I'm using Oracle Forms 10 g on windows Xp OS.

Any ideas please?

Hi Awad,

It comes to SQL and PL/SQL Forum.

And yours is a question related to Oracle Forms.

Enter the question as 'Response' and open a new Thread in the Forum below, so you can get better answers.

{forum: id = 82}

Thank you
Shankar

Tags: Database

Similar Questions

  • Using Merge in oracle 11g this error SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    whenever I run this code I get this error

    SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    30926 00000 - "impossible to get a stable set of rows in the source tables.

    * Cause: A stable set of rows could not be achieved due to the large dml

    activity or one not deterministic where clause.

    * Action: Remove any non deterministic of the clauses and reissue of the dml.

    Don't know wht goes wrong!


    SQL:

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR) and (d.COMPANY_CODE = s.COMPANY_CODE)))

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from VENDORS_ACTIVE_DATE where COMPANY_CODE = 2) s

    full outer join (select * provider where COMPANY_CODE = 2) d

    on (d.COMPANY_CODE = s.COMPANY_CODE AND s.COMPANY_CODE = 2)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    UPDATE SET s.VENDOR = d.VENDOR

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (SELLER, COMPANY_CODE)

    VALUES (d.VENDOR, d.COMPANY_CODE)

    Work request: (deleted the duplicate data in tables (source and target))

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.ACTIVEDATE, s.ACTIVEDATE) ACTIVEDATE.

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR))

    - AND D.ACTIVEDATE = S.ACTIVEDATE

    and NVL (d.ACTIVEDATE, trunc (sysdate)) = NVL (s.ACTIVEDATE, trunc (sysdate))

    and (d.COMPANY_CODE = s.COMPANY_CODE)

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from suppliers where COMPANY_CODE = 2) d

    full outer join (select * from vendors_active_date where COMPANY_CODE = 2) s

    on (d.COMPANY_CODE = s.COMPANY_CODE and s.vendor = d.vendor)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.VENDOR = s.VENDOR AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    S.ACTIVEDATE = UPDATE SET d.ACTIVEDATE

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (VENDOR, ACTIVEDATE, COMPANY_CODE)

    VALUES (d.VENDOR, d.ACTIVEDATE, d.COMPANY_CODE)

  • APP - PO - 14142:PO_MOAC_UTILS. Initialize-000: ORA-0000: normal, R12.2.4 EBS

    Hello

    We get the following when error access purchase order summary in the responsibility of the federal Government to purchase, United States. Please help on this issue.

    APP - PO - 14142:PO_MOAC_UTILS. Initialize-000: ORA-0000: normal, success

    Cause: A SQL error has occurred in PO_MOAC_UTILS. Initialize. The SQL error is ORA - 0000:norma, of success.

    Action: Take note of the error number and the actions that you were trying to perform. Contact your system administrator for more information.

    EBSR1224.png

    Please help on this.

    Thank you

    Jeremy.

    Hi all

    Now I'm able to access purchase order summary in the responsibility of the federal Government to purchase, United States.

    Invalid objects compiled after creating synonymous then issues resolved.

    Now, we have still a few invalid objects.

    SQL > alter package apps. AP_MASS_ADDITIONS_CREATE_PKG compile body;

    WARNING: The bodies of Package modified with compilation errors.

    SQL > show errors

    Errors for BODY of PACKAGE applications. AP_MASS_ADDITIONS_CREATE_PKG:

    LINE/COL ERROR

    -------- -----------------------------------------------------------------

    361/5 PL/SQL: statement ignored

    361/17 PL/SQL: ORA-00942: table or view does not exist

    560/7 PL/SQL: statement ignored

    793/17 PL/SQL: ORA-00942: table or view does not exist

    860/5 PL/SQL: statement ignored

    860/17 PL/SQL: ORA-00942: table or view does not exist

    1061/7 PL/SQL: statement ignored

    1298/17 PL/SQL: ORA-00942: table or view does not exist

    1373/6 PL/SQL: statement ignored

    1377/12 PL/SQL: ORA-00942: table or view does not exist

    1388/1 PL/SQL: statement ignored

    LINE/COL ERROR

    -------- -----------------------------------------------------------------

    1394/10 PL/SQL: ORA-00942: table or view does not exist

    1412/5 PL/SQL: statement ignored

    1416/14 PL/SQL: ORA-00942: table or view does not exist

    Thank you

    Jeremy.

  • SQL error: ORA-31038: invalid number '420,05' when extracting data from XML

    Hello everyone ,

    J’ai créé dieting

    DBMS_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 advance

    Carlos

    in 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: ORA-00979: not a GROUP BY

    Hi team,

    I am trying to execute the query

    SELECT DISTINCT comp.company_name |' -' || COMP.contract_number AS 'company_name '.

    , UPPER (bh.first_name) AS 'budget_holder '.

    , INITCAP (sup.first_name) |' -' || SUP. Surname AS 'supervisor '.

    , INITCAP (emp.status) AS "Department".

    , INITCAP (emp.first_name |) » '|| EMP. Surname) AS "employee."

    r.employee_id

    , emp.paaf_number AS 'paaf_num '.

    , emp.employee_payroll_number AS 'payroll_num '.

    , emp.discipline AS 'discipline '.

    , NVL (SUM (tg.week_day1), 0) AS "day 1".

    , NVL (SUM (tg.week_day2), 0) AS "day 2".

    , NVL (SUM (tg.week_day3), 0) AS day '3 '.

    , NVL (SUM (tg.week_day4), 0) AS "day4.

    , NVL (SUM (tg.week_day5), 0) AS "day5".

    , NVL (SUM (tg.week_day6), 0) AS "day6.

    , NVL (SUM (tg.week_day7), 0) AS "day 7".

    r.valid_from

    r.valid_to

    Tw_roster_data r

    JOIN tw_employee emp

    ON emp.employee_id = r.employee_id

    JOIN tg tw_timesheet_stage

    ON tg.employee_id = r.employee_id

    AND tg.week_commencing = r.valid_from

    JOIN the tw_contracting_company comp

    ON comp.contracting_company_id = r.contracting_company_id

    JOIN tw_supervisor sup

    ON sup.supervisor_id = tg.supervisor_id

    JOIN tw_budget_holder bh

    ON bh.budget_holder_id = sup.budget_holder_id

    WHERE r.contracting_company_id = 101

    AND r.VALID_FROM = January 31, 2015.

    AND r.VALID_TO = February 6, 2015"

    Group of r.employee_id, comp.company_name, bh.first_name,

    EMP.paaf_number, emp.employee_payroll_number, emp.discipline,

    r.valid_from, r.valid_to;

    But still the error below

    Error in the command line: 1 column: 17

    Error report-

    SQL error: ORA-00979: not a GROUP BY expression

    00979 00000 - "not a GROUP BY expression"

    Can help.

    Hello

    When to use analytical function oracle other columns used based on the analysis, must be included in the GROUP BY Clause

    SELECT expression1, expression2, ... expression_n,
      aggregate_function (expression)
    FROM tables
    WHERE conditions
    GROUP BY expression1, expression2, ... expression_n;
    

    SQL 101: Seen are medium and other aggregate data

      SELECT DISTINCT
             comp.company_name || ' - ' || comp.contract_number AS "company_name",
             UPPER (bh.first_name) AS "budget_holder",
             INITCAP (sup.first_name) || ' - ' || sup.surname AS "supervisor",
             INITCAP (emp.status) AS "department",
             INITCAP (emp.first_name || ' ' || emp.surname) AS "employee",
             r.employee_id,
             emp.paaf_number AS "paaf_num",
             emp.employee_payroll_number AS "payroll_num",
             emp.discipline AS "discipline",
             NVL (SUM (tg.week_day1), 0) AS "day1",
             NVL (SUM (tg.week_day2), 0) AS "day2",
             NVL (SUM (tg.week_day3), 0) AS "day3",
             NVL (SUM (tg.week_day4), 0) AS "day4",
             NVL (SUM (tg.week_day5), 0) AS "day5",
             NVL (SUM (tg.week_day6), 0) AS "day6",
             NVL (SUM (tg.week_day7), 0) AS "day7",
             r.valid_from,
             r.valid_to
        FROM tw_roster_data r
             JOIN tw_employee emp
                ON emp.employee_id = r.employee_id
             JOIN tw_timesheet_stage tg
                ON tg.employee_id = r.employee_id
                   AND tg.week_commencing = r.valid_from
             JOIN tw_contracting_company comp
                ON comp.contracting_company_id = r.contracting_company_id
             JOIN tw_supervisor sup
                ON sup.supervisor_id = tg.supervisor_id
             JOIN tw_budget_holder bh
                ON bh.budget_holder_id = sup.budget_holder_id
       WHERE     r.contracting_company_id = 101
             AND r.VALID_FROM = '31-JAN-2015'
             AND r.VALID_TO = '06-FEB-2015'
    GROUP BY
    comp.contract_number
    ,comp.company_name
    ,bh.first_name
    ,sup.first_name
    ,sup.surname
    , emp.status
    ,emp.first_name
    ,emp.surname
    r.employee_id,
    emp.paaf_number,
    emp.employee_payroll_number,
    emp.discipline,
     r.valid_from,
     r.valid_to;
    
  • The execution of the trigger, 01403 error. 00000 - "no data found".

    Hi guys, Pl/Sql

    When we try to run after initiation, as 01403 error. 00000 - "no data found".

    Trigger is

    CREATE OR REPLACE TRIGGER SYNC_OUGR_USER_ADDRESS

    AFTER INSERT ON OUGR_USER_ADDRESS FOR EACH LINE

    DECLARE

    P_CD_ADDR_TYPE OUGR_USER_ADDRESS. TYPE % CD_ADDR_TYPE;

    P_AD_CITY OUGR_USER_ADDRESS. TYPE % AD_CITY;

    CITY OF P_NM_NAME. TYPE % NM_NAME;

    P_FL_OVERSEAS OUGR_USER_ADDRESS. TYPE % FL_OVERSEAS;

    P_AD_COUNTRY OUGR_USER_ADDRESS. TYPE % AD_COUNTRY;

    P_TEMP_CITY VARCHAR2 (10);

    P_CD_CODE REF_COUNTRY_CODE. TYPE % CD_CODE;

    BEGIN

    P_CD_ADDR_TYPE: =: NEW. CD_ADDR_TYPE;

    P_FL_OVERSEAS: =: NEW. FL_OVERSEAS;

    P_AD_CITY: =: NEW. AD_CITY;

    P_AD_COUNTRY: =: NEW. AD_COUNTRY;

    SELECT LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' '))) IN THE DOUBLE P_TEMP_CITY; -to check if the value is numeric

    SELECT NM_NAME IN THE P_NM_NAME OF THE CITY WHERE ID_TOWN = P_AD_CITY;

    SELECT CD_CODE INTO P_CD_CODE FROM REF_COUNTRY_CODE WHERE CD_CODE = P_AD_COUNTRY;

    IF P_CD_ADDR_TYPE ('ma', 'PA') THEN

    IF P_TEMP_CITY IS NULL THEN

    P_AD_CITY: = P_NM_NAME;

    ON THE OTHER

    P_AD_CITY: = P_AD_CITY;

    END IF;

    ON THE OTHER

    P_AD_CITY: = P_NM_NAME;

    END IF;

    IF P_FL_OVERSEAS = "Y" THEN

    P_AD_COUNTRY: = P_CD_CODE;

    ON THE OTHER

    P_AD_COUNTRY: = P_AD_COUNTRY;

    END IF;

    INSERT INTO OUGR_USER_ADDRESS@TO_GVRS

    (ID_ADDRESS,

    CD_ADDR_TYPE,

    AD_UNIT,

    AD_NUM,

    AD_STR1,

    AD_STR2,

    AD_CITY,

    AD_COUNTY,

    AD_ST,

    AD_COUNTRY,

    AD_ZIP5,

    AD_ZIP4,

    FL_AD_RURAL,

    FL_OVERSEAS,

    TM_STAMP

    )

    VALUES (: NEW.ID_ADDRESS,)

    : NEW. CD_ADDR_TYPE,

    : NEW. AD_UNIT,

    : NEW. AD_NUM,

    : NEW. AD_STR1,

    : NEW. AD_STR2,

    P_AD_CITY,

    : NEW. AD_COUNTY,

    : NEW. AD_ST,

    P_AD_COUNTRY,

    : NEW. AD_ZIP5,

    : NEW. AD_ZIP4,

    : NEW. FL_AD_RURAL,

    : NEW. FL_OVERSEAS,

    : NEW. TM_STAMP

    );

    END SYNC_OUGR_USER_ADDRESS;

    /

    Greatly appreciate your help in this regard.

    Thanks in advance.

    Kind regards

    REDA

    Hi, Raj,

    Instead of

    SELECT LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' '))) IN THE DOUBLE P_TEMP_CITY; -to check if the value is numeric

    SELECT NM_NAME IN THE P_NM_NAME OF THE CITY WHERE ID_TOWN = P_AD_CITY;

    SELECT CD_CODE INTO P_CD_CODE FROM REF_COUNTRY_CODE WHERE CD_CODE = P_AD_COUNTRY;

    You can say:

    P_TEMP_CITY: = LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' ')));

    SELECT MIN (NM_NAME)

    IN P_NM_NAME

    OF THE CITY

    WHERE ID_TOWN = P_AD_CITY;

    SELECT MIN (CD_CODE)

    IN P_CD_CODE

    OF REF_COUNTRY_CODE

    WHERE CD_CODE = P_AD_COUNTRY;

    You don't need the double table much in PL/SQL.

    When you use an aggregate function (MIN, as above) without a clause GROUP BY, the result set is guaranteed to have exactly 1 row.  This also avoids the error (ORA-01422) TOO_MANY_ROWS, which is probably impossible in this example.

  • SQL error: ORA-01031: insufficient privileges

    I am trying to create a view. I logged as a DBA. Please suggest.

    create or replace view tspace_vw as

    SELECT tablespace_name,

    Total_Size 'Total_Size (MB).

    Free_space "Free_Space (MB).

    (Total_size - free_space) "USED_SPACE (MB).

    round (((Total_size-Free_Space)/Total_size) * 100, 2) | ' %' "% USED.

    DE)

    SELECT a.tablespace_name,

    Round(sum(a.bytes)/1024/1024,2) Total_Size,.

    Round(sum(b.free_bytes)/1024/1024,2) free_space

    FROM dba_data_files a, (SELECT file_id, SUM (bytes) free_bytes

    FROM dba_free_space

    GROUP BY file_id

    ) b

    WHERE a.file_id = b.file_id

    and nom_tablespace not in ('SYSTEM', 'SYSAUX', 'UNDOTBS1', 'TEMP')

    GROUP BY a.tablespace_name

    )

    ORDER BY nom_tablespace;

    ================================================

    SQL error: ORA-01031: insufficient privileges

    01031 00000 - "insufficient privileges".

    978487 wrote:

    I am trying to create a view. I logged as a DBA. Please suggest.

    SQL error: ORA-01031: insufficient privileges

    01031 00000 - "insufficient privileges".

    You must grant the right to SELECT user views the two system.

    >

    Grant select on dba_data_files Scott;

    Grant select on dba_free_space Scott;

    >

    I'm assuming that "connected is a DBA" means that you granted the DBA role to the user. But you need to grant privileges directly so that they are able to create a view.

    See CREATE VIEW in the doc of the SQL language

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_8004.htm

    >

    The owner of the schema containing the view must have the necessary privileges to either select, insert, update, or delete rows from all tables or views on which the opinion is based. The owner must grant these privileges directly, rather than through a role.

    >

  • Error ORA-29874 with XMLIndex

    So, I am creating a XMLIndex in Oracle 11.2.0.3.0 by following the instructions here:

    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e16659/xdb_indexing.htm#BCGJCEAF

    I have a table defined as follows:
    CREATE TABLE book_master OF XMLTYPE XMLTYPE STORE AS SECUREFILE BINARY XML;
    I ran the following to try to create a structured index:
    CREATE INDEX my_xmlindex_ix ON book_master (OBJECT_VALUE) INDEXTYPE IS XDB.XMLIndex PARAMETERS ('PATH TABLE path_tab');
    
    BEGIN
       DBMS_XMLINDEX.registerParameter(
          'myparam',
          'ADD_GROUP GROUP gdm_record
             XMLTable gdm_idx_tab 
             XmlNamespaces(''http://www.mrbook.com/BookFormat/PropertyLicHdr'' AS "plh",
                      ''http://www.mrbrook.com/InventoryData'' AS "invtdata", 
                      ''http://www.mrbook.com/BookFormat/Identity'' AS "idty",
                      ''http://www.mrbook.com/BookFormat/LiteraryCloneReferences'' AS "lclone",
                          ''http://www.mrbook.com/TradeInfo'' AS "trd",
                      ''http://www.mrbook.com/'' AS "book"),
             ''/invtdata:inventory''
               COLUMNS
                    book_id    RAW(16)     PATH ''@BOOK_ID'',
                    title_txt  VARCHAR(64) PATH ''plh:LIC/plh:TITLE'',
                    subj_txt   VARCHAR(64) PATH ''plh:LIC/plh:SUBJ'',
                    
                    target_mkt NUMBER(13,0) PATH ''plh:LIC/plh:MKT_NBR'',
                    
                    catg NUMBER(7,0) PATH ''idty:BOOK_INFO/idty:CATG'',
                    lang_code NUMBER(7,0) PATH ''idty:BOOK_INFO/idty:lang_code'',
                    out_of_stock_reas NUMBER(7,0) PATH ''/idty:BOOK_INFO/idty:OUT_OF_STOCK_REAS'',
                    
                    sucsr_title VARCHAR2(64) PATH ''idty:BOOK_INFO/idty:SUCSR_TITLE'',
                    sucsr_subj_txt VARHCAR2(64) PATH ''idty:BOOK_INFO/idty:SUCSR_SUBJ_TXT'',
                    
                    orig_copy_ref VARCHAR2(64) PATH ''lclone:ORIG_COPY_REF/lclone:REF[child::lclone:REF_TYP_CD="160"]/lclone:TITLE'',
                    orig_subj_txt VARCHAR2(64) PATH ''lclone:ORIG_COPY_REF/lclone:REF[child::lclone:REF_TYP_CD="160"]/lclone:SUBJ_TXT'',
                    
                    last_upd_dt TIMESTAMP PATH ''node()[local-name()="LAST_UPD_DT"]'',
                    
                    catg_ref_code  NUMBER(7) PATH ''idty:BOOK_INFO/idty:BOOK_ENTR[child::idty:BOOK_REF=1]/idty:CATG_REF_CD'',
                    catg_code VARCHAR2(48) PATH ''//idty:BOOK_INFO/idty:BOOK_ENTR[child::idty:BOOK_REF=1]/idty:CATG_CODE'',
                    
                    book_trade_info  XMLType   PATH ''trd:book_trade_info'' VIRTUAL
                    
                XMLTable trd_book_ix 
             XmlNamespaces(''http://www.mrbook.com/BookFormat/PropertyLicHdr'' AS "plh",
                      ''http://www.mrbrook.com/InventoryData'' AS "invtdata", 
                      ''http://www.mrbook.com/BookFormat/Identity'' AS "idty",
                      ''http://www.mrbook.com/BookFormat/LiteraryCloneReferences'' AS "lclone",
                          ''http://www.mrbook.com/TradeInfo'' AS "trd",
                      ''http://www.mrbook.com/'' AS "book"),
                   ''/trd:TRADE_ENTR'' PASSING book_trade_info
                COLUMNS
                    trd_yrmoday  VARCHAR2(6) PATH ''@TRD_DT_YRMODAY''
            ');
    END;
    
    ALTER INDEX book_xmlindex_ix PARAMETERS('PARAM myparam3');
    When I run the present, I have the following error:
    anonymous block completed
    Error starting at line 69 in command:
    ALTER INDEX my_xmlindex_ix PARAMETERS('PARAM myparam')
    Error report:
    SQL Error: ORA-29874: warning in the execution of ODCIINDEXALTER routine
    ORA-29960: line 1, ORA-44749: Missing PATH for the COLUMN.
    29874. 00000 -  "warning in the execution of ODCIINDEXALTER routine"
    *Cause:    A waring was returned from the ODCIIndexAlter routine.
    *Action:   Check to see if the routine has been coded correctly
               Check the user defined warning log tables for greater details.
    I checked three times and I PATH statements in the XMLTable command. I also tried to search the forums for "Path missing XMLIndex column", but I don't see anything. Does anyone have an idea how to fix this?

    Thank you...

    Edited by: KnightOfBlueArmor to add the definition of the table on March 26, 2013 14:09

    See the typo on the type of data?

    sucsr_subj_txt VARHCAR2(64) PATH ''idty:BOOK_INFO/idty:SUCSR_SUBJ_TXT'',
    

    You will have after the first error correction.

    Then, you will hit it:

    ORA-19276: XPST0005 - XPath step specifies an invalid element/attribute name: (trd:TRADE_ENTR trd='http://www.mrbook.com/TradeInfo')
    

    That one is because the element root spent the 2nd XMLTable is 'trd:book_trade_info', but you specify "/ trd:TRADE_ENTR" in the main XQuery, where the static error found.
    Specify the correct XQuery from the root node, for example

    ''/trd:book_trade_info/trd:TRADE_ENTR'' PASSING book_trade_info
    

    or what is the true XPath.

    Then it should be OK and the parameter added correctly.

    No doubt you will become a few more errors during execution, some of them because of inconsistencies in path expressions, for example

    idty:BOOK_INFO/idty:lang_code
    //idty:BOOK_INFO/idty:BOOK_ENTR[child::idty:BOOK_REF=1]/idty:CATG_CODE
    /idty:BOOK_INFO/idty:OUT_OF_STOCK_REAS
    

    I let you discover them (if any) ;)

    Published by: odie_63 on March 26, 2013 23:09

  • Get the error ora-02021

    I'm trying to truncate a table but oracle throws the error ORA-02021: DDL operations are not allowed on a remote database.

    02021, 00000, "DDL operations are not allowed on a remote database"
    * Cause: An attempt was made to use a DDL operation on a remote database.
    For example, "CREATE TABLE tablename@remotedbname... ».
    * Action: To change the remote database structure, you must connect to the
    remote database with the appropriate privileges.


    I'm pretty sure you have the appropriate privileges.

    You can even call a procedure:
    dbms_utility.exec_ddl_statement@DB_LINK exec ('your stmt');

  • SQL error: ORA-00910: specified length too long for its data type

    Using Oracle 11.2.0.1 on Oracle Linux 5.8 x 64

    I try to install Zabbix http://www.zabbix.com and uses the Oracle database as the data store. The script of the diagram provided below does not work.
    CREATE TABLE maintenances (
         maintenanceid            number(20)                                NOT NULL,
         name                     nvarchar2(128)  DEFAULT ''                ,
         maintenance_type         number(10)      DEFAULT '0'               NOT NULL,
         description              nvarchar2(2048) DEFAULT ''                ,
         active_since             number(10)      DEFAULT '0'               NOT NULL,
         active_till              number(10)      DEFAULT '0'               NOT NULL,
         PRIMARY KEY (maintenanceid)
    );
    When I run it, I get
    Error at Command Line:5 Column:42
    Error report:
    SQL Error: ORA-00910: specified length too long for its datatype
    00910. 00000 -  "specified length too long for its datatype"
    *Cause:    for datatypes CHAR and RAW, the length specified was > 2000;
               otherwise, the length specified was > 4000.
    *Action:   use a shorter length or switch to a datatype permitting a
               longer length such as a VARCHAR2, LONG CHAR, or LONG RAW
    According to the oracle documentation for nvarchar2 limit is 4000. What am I missing here?

    "4000 bytes is the ultimate maximum." You can say 4000 * characters *, but it will always be limited to 4000 * bytes *. "
    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:1224836384599 #201073000346459201\

    "The maximum length of the column is determined by the definition of national character set. The width of the character NVARCHAR2 data specifications match the number of characters. The authorized maximum column size is 4000 bytes. »
    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/sql_elements001.htm#SQLRF50976

    Furthermore, you treat numbers as STRINGS, remove the quotes around your zero.

  • SQL error: ORA-01873: the interval leading precision is too small

    Hello

    My requirement is to get the current timestamp in the format microsec Epoch.

    I am trying to execute the following query

    Select (CAST (((current_timestamp-TO_DATE (1er janvier 1970 00:00:00 ', ' 'JJ-MM-AAAA HH24:MI:SS)) * 24 * 60 * 60 * 1000000) AS varchar (32))) as "dt" from dual;))

    I get the following error
    Error from the 1 in the command line:
    Select (CAST (((current_timestamp-TO_DATE (1er janvier 1970 00:00:00 ', ' 'JJ-MM-AAAA HH24:MI:SS)) * 24 * 60 * 60 * 1000000) AS varchar (32))) as double 'dt'))
    Error report:
    SQL error: ORA-01873: the interval leading precision is too small
    01873 00000 - "the interval leading precision is too small."
    * Cause: The precision of the interval leading is too small to store the
    specified interval.
    * Action: Increase the accuracy of foreground of the interval or specify a
    meantime, with smaller leading precision.

    But if I tried to do
    Select (CAST (((sysdate-TO_DATE (1er janvier 1970 00:00:00 ', ' 'JJ-MM-AAAA HH24:MI:SS)) * 24 * 60 * 60 * 1000000) AS varchar (32))) as "dt" from dual;))
    works fine, but I get the bad epochtime sysdate has no time zone information.

    Please help me how to do the first query to work so that I can get the current_timestamp change to gmt and convert it in time.
    Please let me know if there is another way to get the Epochtime.

    Depending on whether you want to or not to include the fraction of a second use:

    with t as (
               select  current_timestamp at time zone 'gmt' - to_timestamp_tz('01/01/1970 00:00:00 GMT','MM-DD-YYYY HH24:MI:SS TZR') interval_diff,
                       cast(current_timestamp at time zone 'gmt' as date) - to_date('01/01/1970 00:00:00', 'MM-DD-YYYY HH24:MI:SS') num_diff
                 from  dual
              )
    select  cast(
                 (
                  (
                   (
                    extract(day from interval_diff) * 24 + extract(hour from interval_diff)
                   ) * 60 + extract(minute from interval_diff)
                  ) * 60 + extract(second from interval_diff)
                 ) * 1000000
                 AS varchar(32)
                ) as "ts",
            cast(num_diff * 24 * 60 * 60 * 1000000 AS varchar(32)) as "dt"
      from t
    / 
    
    ts                   dt
    -------------------- --------------------
    1336237158093000     1336237158000000
    
    SQL>  
    

    SY.

  • Error ORA-01830 drives me crazy

    I've not found anything relevant online to my question so I'll try here. To set this up, I'm still in the learning I'll phase of Oralce, so be gentle please.

    I run this query:

    Update fascor_load
    Set order_status_id = 18
    where load_date < to_date('06-APR-01','DD-MON-YY');.

    He has in turn triggers:

    create or replace
    relaxation Fascor_Load_BUR
    before the update on Fascor_Load
    for each line

    declare
    closed whole;
    Date of Current_Date_Time;

    Start
    Select order_status_id from firm order_status where description = "CLOSED";
    Select to_char (sysdate,' HH24 LUN-JJ-AA "") in the double Current_Date_Time;

    If: old. Order_Status_ID <>: new. Order_Status_ID and
    : new. Order_Status_ID = closed and
    : new. Load_Completion_Date is null then

    -Insert Current Date/time in the field of Load_Completion_Date
    : new. Load_Completion_Date: = Current_Date_Time;
    end if;
    end;


    When you run the query, I get:


    ************************************************************
    Error from the 1 in the command line:
    Update fascor_load
    Set order_status_id = 18
    where load_date < to_date('06-APR-01','DD-MON-YY')
    Error report:
    SQL error: ORA-01830: date format picture ends before converting all of the input string
    ORA-06512: at "EIS_EMERY. FASCOR_LOAD_BUR', line 7
    ORA-04088: error during execution of trigger ' EIS_EMERY. FASCOR_LOAD_BUR'
    01830 00000 - "date format picture ends before converting all of the input string.
    * Cause:
    * Action:
    *************************************************************

    Someone has ideas on what exactly the cause this problem? I thought that perhaps that is the data type of Load_Completion_Date, which is of type 'Date', so I dropped the column and then tried to add it again but this time by putting a mask on it, but it would not get in shape the type date when adding the column.

    I'm lost on this and it seems to simple.

    927300 wrote:
    For me, the result is:

    18 APRIL 12

    Select TO_CHAR (sysdate,'YYYY-MM-DD HH24:MI:SS) twice;

    do high instead
    It is strictly a matter of presentation of data; also known as the formatting!

  • Error ORA-00904 on merger

    Hi all

    I try to execute the following statement, but I am getting error ORA-00904 fr.
    If I replace the clause on a very simple ("A" = "B") as he works.
    I tried to use concat() instead of | without success and I think I tried all the other options, but nothing works.

    Any idea? I'm not :-(


    Concerning
    Thomas


    Fehler beim Start line 1 in command:
    merge into dest SH_SCRIPT_ITEM_INFO
    using (select * from SH_SCRIPT_SOURCE CBC where to_date (src.) DWH_EXPORT_DATE) = to_date (SYSDATE-5))
    on (src.ORGANIZATION |) CBC. SOURCE_CODE | CBC. SKU = dest.ORGANIZATION | dest. SOURCE_CODE | dest. SKU)
    when matched, then update game
    dest. ADVANCE_ORDER_QUANTITY = SH_SCRIPT_SOURCE. ADVANCE_ORDER_QUANTITY,
    dest. ADVANCE_ORDER_START_QUANTITY = SH_SCRIPT_SOURCE. ADVANCE_ORDER_START_QUANTITY,
    dest. ADVANCE_ORDERS = SH_SCRIPT_SOURCE. ADVANCE_ORDERS,
    dest. AUTO_DELIVERY_QUANTITY = SH_SCRIPT_SOURCE. AUTO_DELIVERY_QUANTITY,
    dest. AUTO_DELIVERY_RATE = SH_SCRIPT_SOURCE. AUTO_DELIVERY_RATE,
    dest. CANCELLATION_QUANTITY = SH_SCRIPT_SOURCE. CANCELLATION_QUANTITY,
    dest. CHANNEL_CODE = SH_SCRIPT_SOURCE. CHANNEL_CODE,
    dest. CREATED = SH_SCRIPT_SOURCE. CREATED,
    dest. DURATION = SH_SCRIPT_SOURCE. DURATION,
    dest. EXPOSURE = SH_SCRIPT_SOURCE. EXHIBITIONS,
    dest. EZ_PAY_QUANTITY = SH_SCRIPT_SOURCE. EZ_PAY_QUANTITY,
    dest. EZ_PAY_RATE = SH_SCRIPT_SOURCE. EZ_PAY_RATE,
    dest. FIRST_INSTALMENT = SH_SCRIPT_SOURCE. FIRST_INSTALMENT,
    dest. ITEM_STATUS = SH_SCRIPT_SOURCE. ITEM_STATUS,
    dest. ITEM_TYPE = SH_SCRIPT_SOURCE. ITEM_TYPE,
    dest. LAST_MODIFIED = SH_SCRIPT_SOURCE. LAST_MODIFIED,
    dest. MULTI_QUANTITY_RATE = SH_SCRIPT_SOURCE. MULTI_QUANTITY_RATE,
    dest. NEW_NAME_ORDERS = SH_SCRIPT_SOURCE. NEW_NAME_ORDERS,
    dest. NUMBER_OF_INSTALMENTS = SH_SCRIPT_SOURCE. NUMBER_OF_INSTALMENTS,
    dest. PRICE_CODE = SH_SCRIPT_SOURCE. PRICE_CODE,
    dest. PROMO_CODES = SH_SCRIPT_SOURCE. PROMO_CODES,
    dest. QVC_PRICE = SH_SCRIPT_SOURCE. QVC_PRICE,
    dest. SALES_PRICE = SH_SCRIPT_SOURCE. SALES_PRICE,
    dest. COMMANDS IS SH_SCRIPT_SOURCE. ORDERS,
    dest. START_DATE_TIME = SH_SCRIPT_SOURCE. START_DATE_TIME,
    dest. START_DATE_TIME_2 = SH_SCRIPT_SOURCE. START_DATE_TIME_2,
    dest. START_QUANTITY = SH_SCRIPT_SOURCE. START_QUANTITY,
    dest. STOP_DATE_TIME = SH_SCRIPT_SOURCE. STOP_DATE_TIME,
    dest. SUBSEQUENT_INSTALMENTS = SH_SCRIPT_SOURCE. SUBSEQUENT_INSTALMENTS,
    dest. TOTAL_AMOUNT = SH_SCRIPT_SOURCE. TOTAL_AMOUNT,
    dest. TOTAL_AMOUNT_PHYSICAL = SH_SCRIPT_SOURCE. TOTAL_AMOUNT_PHYSICAL,
    dest. TOTAL_AMOUNT_WAITLIST = SH_SCRIPT_SOURCE. TOTAL_AMOUNT_WAITLIST,
    dest. WAITLIST_ORDERS = SH_SCRIPT_SOURCE. WAITLIST_ORDERS,
    dest. WAITLIST_QUANTITY = SH_SCRIPT_SOURCE. WAITLIST_QUANTITY,
    dest. WAITLIST_START_QUANTITY = SH_SCRIPT_SOURCE. WAITLIST_START_QUANTITY
    Delete where CBC. TRANSACTION_TYPE = "DEL".
    When not equal then insert)
    ADVANCE_ORDER_QUANTITY,
    ADVANCE_ORDER_START_QUANTITY,
    ADVANCE_ORDERS,
    AUTO_DELIVERY_QUANTITY,
    AUTO_DELIVERY_RATE,
    CANCELLATION_QUANTITY,
    CHANNEL_CODE,
    CREATED,
    DURATION,
    EXHIBITIONS,
    EZ_PAY_QUANTITY,
    EZ_PAY_RATE,
    FIRST_INSTALMENT,
    ITEM_STATUS,
    ITEM_TYPE,
    LAST_MODIFIED,
    MULTI_QUANTITY_RATE,
    NEW_NAME_ORDERS,
    NUMBER_OF_INSTALMENTS,
    ORGANIZATION,
    PRICE_CODE,
    PROMO_CODES,
    QVC_PRICE,
    SALES_PRICE,
    ORDERS,
    SKU,
    SOURCE_CODE,
    START_DATE_TIME,
    START_DATE_TIME_2,
    START_QUANTITY,
    STOP_DATE_TIME,
    SUBSEQUENT_INSTALMENTS,
    TOTAL_AMOUNT,
    TOTAL_AMOUNT_PHYSICAL,
    TOTAL_AMOUNT_WAITLIST,
    WAITLIST_ORDERS,
    WAITLIST_QUANTITY,
    WAITLIST_START_QUANTITY)
    values)
    SH_SCRIPT_SOURCE. ADVANCE_ORDER_QUANTITY,
    SH_SCRIPT_SOURCE. ADVANCE_ORDER_START_QUANTITY,
    SH_SCRIPT_SOURCE. ADVANCE_ORDERS,
    SH_SCRIPT_SOURCE. AUTO_DELIVERY_QUANTITY,
    SH_SCRIPT_SOURCE. AUTO_DELIVERY_RATE,
    SH_SCRIPT_SOURCE. CANCELLATION_QUANTITY,
    SH_SCRIPT_SOURCE. CHANNEL_CODE,
    SH_SCRIPT_SOURCE. CREATED,
    SH_SCRIPT_SOURCE. DURATION,
    SH_SCRIPT_SOURCE. EXHIBITIONS,
    SH_SCRIPT_SOURCE. EZ_PAY_QUANTITY,
    SH_SCRIPT_SOURCE. EZ_PAY_RATE,
    SH_SCRIPT_SOURCE. FIRST_INSTALMENT,
    SH_SCRIPT_SOURCE. ITEM_STATUS,
    SH_SCRIPT_SOURCE. ITEM_TYPE,
    SH_SCRIPT_SOURCE. LAST_MODIFIED,
    SH_SCRIPT_SOURCE. MULTI_QUANTITY_RATE,
    SH_SCRIPT_SOURCE. NEW_NAME_ORDERS,
    SH_SCRIPT_SOURCE. NUMBER_OF_INSTALMENTS,
    SH_SCRIPT_SOURCE.ORGANIZATION,
    SH_SCRIPT_SOURCE. PRICE_CODE,
    SH_SCRIPT_SOURCE. PROMO_CODES,
    SH_SCRIPT_SOURCE. QVC_PRICE,
    SH_SCRIPT_SOURCE. SALES_PRICE,
    SH_SCRIPT_SOURCE. ORDERS,
    SH_SCRIPT_SOURCE. SKU,
    SH_SCRIPT_SOURCE. SOURCE_CODE,
    SH_SCRIPT_SOURCE. START_DATE_TIME,
    SH_SCRIPT_SOURCE. START_DATE_TIME_2,
    SH_SCRIPT_SOURCE. START_QUANTITY,
    SH_SCRIPT_SOURCE. STOP_DATE_TIME,
    SH_SCRIPT_SOURCE. SUBSEQUENT_INSTALMENTS,
    SH_SCRIPT_SOURCE. TOTAL_AMOUNT,
    SH_SCRIPT_SOURCE. TOTAL_AMOUNT_PHYSICAL,
    SH_SCRIPT_SOURCE. TOTAL_AMOUNT_WAITLIST,
    SH_SCRIPT_SOURCE. WAITLIST_ORDERS,
    SH_SCRIPT_SOURCE. WAITLIST_QUANTITY,
    SH_SCRIPT_SOURCE. WAITLIST_START_QUANTITY)
    where src. TRANSACTION_TYPE = "INS".
    Fehler bei Befehlszeile:3 Spalte:43
    Fehlerbericht:
    SQL-Fehler: ORA-00904: "SRC". "' SKU ': ungultiger Bezeichner
    00904, 00000 - '% s: invalid identifier '.
    * Cause:
    * Action:

    Published by: user8339462 on 20.02.2012 03:18

    Thanks for posting the descrptions of src and dest...

    There is a sku may be misspelled possiibility...
    or you have packed columns with double quotation marks ("")

  • SQL error: ORA-01779: cannot modify a column that matches a key examine

    Hi all

    The requirement is that I have two tables s_party_d and S_CONTACT_d. the need to update the column name with FST_NAME | ',' | Last_name when column rowid in both tables are equal. I used the query previously below: -.

    Update
    (select
    E1. Name,
    e.FST_NAME,
    Select
    Of
    s_party_d e1,
    E S_CONTACT_d
    where
    E1. Game of ROW_ID = e.ROW_ID)
    name = FST_NAME | ',' | LAST_NAME;

    But I get the error message when executing the query

    Error in the command line: 31 column: 3
    Error report:
    SQL error: ORA-01779: cannot modify a column that is mapped to a table not preserved key
    01779 00000 - 'impossible to change a column that is mapped to a non-preserved table at key'
    * Cause: An attempt was made to insert or update columns in a join finds out who
    map to a table not kept the key.
    * Action: Change the directly underlying base tables.

    Can U please tell me why this error and how to solve?

    Thank you
    Mathon

    Mathon wrote:

    So, I have to look into some other method... I can't achieve this using a single update statement...

    Well, no matter what you do you need to decide what FST_NAME | ',' | Name to use. As I already pointed out for each line of the line of the s_party_d table there are several rows in table S_CONTACT_d. Again, you must yo decide what S_CONTACT_d table row you want to use. For example:

    update s_party_d e1
       set e1.name = (
                      select  max(e.FST_NAME) ||', '|| max(e.LAST_NAME)
                        from  S_CONTACT_d e
                        where e1.ROW_ID=e.ROW_ID
                     )
     where e1.ROW_ID in (
                         select  e.ROW_ID
                           from  S_CONTACT_d e
                        )
    /
    

    SY.

  • RMAN-04004: recovery catalog database error: ORA-12170: TNS: connect the ti

    Hello:

    Last night ' RMAN backup error: ' RMAN-04004: recovery catalog database error: ORA-12170: TNS: Connect timeout.

    I can sqlplus to the target database and the catalog database. The listener is in place. What is the problem? What should I check?

    Thanks in advance for your help.

    in the oratest/orapass@rmandb1 CATALOG,.

    rmandb1 is the name of the service. normally the name of the service and the name of db are kept same.

    check rmandb1 tnsping where you try to run ' RMAN TARGET / CATALOG oratest/orapass@rmandb1 "command.

    as optput will get the ip address of the server on which db is resident, no port, Protocol

    as

    ---------

    [Oracle@RAC3 ~] $ tnsping orcl

    AMT Ping utility for Linux: Version 10.2.0.5.0 - Production on December 23, 2011 21:12:20

    Copyright (c) 1997, 2010, Oracle. All rights reserved.

    Use settings files:
    /opt/app/Oracle/product/DB/10.2.1/network/admin/SQLNET.ora

    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = rac3.rajesh.com) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
    OK (10 ms)
    -------------------------------

    Here the HOST = rac3.rajesh.com is the present db Server

    Published by: Rajesh.Rathod on December 23, 2011 07:43

Maybe you are looking for

  • Delay of receipt of message on MBP with OS 10.11.2

    I'm new to Mac so please, if it's normal, just tell me. After as a reboot, or even leaving messages of suspension does not receive messages "instantly", but after some time (after two hours). Then, everything is normal. To clarify, I have not used me

  • Upgrading my Ram

  • PXI-5412 - discontinuities and dynamically modify the frequency with niFgen nodes of property

    I'm trying to find a way to eliminate discontinuities and change frequency/amplitude on the fly.  Is there a simple way to do this? Basically, my ultimate goal is as so: Table: Start Stop Freq Freq dt 1                          100                   

  • You cannot change the administrator rights

    The biggest problem that I have without having administrative access is that I can't uninstall programs, updated ones I use or change my display settings. I never did nothing for my computer and am the administrator, this problem just happened on its

  • IPv6 on IPv4 VTI ipsec traffic

    Hello I have a VTI ipsec on ipv4 I use for LAN traffic between sites. Something like: interface Tunnel0 IP 172.16.1.1 255.255.255.0 tunnel source 80.80.80.1 tunnel destination 90.90.90.1 ipv4 IPsec tunnel mode protection of IPsec profile vti_profile