ORA-35563 when maintaining dimension in AWM

Hello

When it comes to managing a dimension in AWM, I get the error: ORA-35563: (XSRWLD17) multiple values exist for an attribute of this dimension member.

Rejected records, I have 101 lines whose entries such as:

ALIAS_4 = 'TRIP_PATTERN_LVL_142' AND ALIAS_5 = 142 AND ALIAS_6 = 'ROUTE_LVL_ 47'

Where should I start looking?

* If it helps, the dimension has 3 levels (lets call them a, b, c) and a hierarchy with levels in the order (highest to lowest): a - > b-> c

Thank you

Mark

The AwM team has developed a plug-in simple data validation that can be interesting to try to help identify the

questions of dimension table of source you get when your construction.

It may be worth trying to see if the data validator of AwM extension will help you identify your problems of data in your dimension source table.

The link below is the download page where you can get the extension of data validator AwM.

Oracle OLAP downloads: Software & samples

The download is a jar file that you can simply copy a subdirectory where you installed the client AwM.

You just need to update the awm.properties file informing AwM you use plug-ins.

You can do this by selecting tools-> Configuration in the main menu in minutes and ensuring

Enable Plug-ins and set the plug-ins directory (if you have not already done so).

Tools-> configuration will give you a lot of options, but you only need to update the plug-ins as

an example:

To run the plugin Data Validation, simply select the dimension of the analytic workspace that you and

Select the menu as shown below. If you don't see a menu option for the Validation of the analytical data Workspace xxxx

This means that the minutes did not find the plug-in. Please verify that the Configuration of the tools is configured correctly

for plug-ins and the directory name is correct and the Validation of the downloaded data is here.

The plug-in will ask you if you want to automatically load and run with the analytic workspace - just select YES.

Once the plug-in is displayed, you will get a screen like this:

You can run the following validation reports:

If all goes well, you will get useful information on data problems. It's worth a try, because it should not take too long for the installation and

run.

Tags: Business Intelligence

Similar Questions

  • ORA-1403 when change the type of file to APEX_APPLICATION_TEMP_FILES browser storage

    Hi all

    I'm new to APEX.  I use APEX 5.0 and try in site APEX Oracle using load data wizard to download the csv file.

    I managed to download data when the browser file storage type is obsolete WWV_FLOW_FILES.

    However, when I change the type of storage of Table APEX_APPLICATION_TEMP_FILES, system will prompt ORA-1403 when I click 'Next' to the Source of data loading page.

    Exception logging: Sqlerrm: ORA-01403: no Backtrace data: ORA-06512: at the "APEX_050000.WWV_FLOW_DATA_UPLOAD", line 564 ORA-06512: to the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 975 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 1172 ORA-06512: to the 'APEX_050000.WWV_FLOW_PLUGIN', line 2017 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS", line 188

    Someone able to guide how to diagnose this problem?

    Thank you, Dorothy

    DorothySG wrote:

    I'm new to APEX.  I use APEX 5.0 and try in site APEX Oracle using load data wizard to download the csv file.

    I managed to download data when the browser file storage type is obsolete WWV_FLOW_FILES.

    However, when I change the type of storage of Table APEX_APPLICATION_TEMP_FILES, system will prompt ORA-1403 when I click 'Next' to the Source of data loading page.

    Exception logging: Sqlerrm: ORA-01403: no Backtrace data: ORA-06512: at the "APEX_050000.WWV_FLOW_DATA_UPLOAD", line 564 ORA-06512: to the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 975 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 1172 ORA-06512: to the 'APEX_050000.WWV_FLOW_PLUGIN', line 2017 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS", line 188

    Someone able to guide how to diagnose this problem?

    It's bug #21478903: error when changing from APEX_APPLICATION_TEMP_FILES to download files

    Use the deprecated option for now.

  • I am not able to create the dimension in awm

    Hello

    I am not able to create the dimension in awm.

    Error:

    The transaction is not pensionable: "an error has occurred on the server.
    Class of error: failure of the Express
    Server error descriptions:
    DPR: failed to create the server-side, generic cursor at TxsOqDefinitionManager::generic < CommitRoot >
    INI: XOQ-01801: CREATE a privilege is required for the 'PRODUCT' schema 'OLAP' object., generic TxsOqTopLevelObject::lockExclusive
    "
    at oracle.olap.awm.dataobject.dialog.PropertyViewer.doCreateAction (unknown Source)
    at oracle.olap.awm.dataobject.dialog.CreateDialogHostActionThread.doAction (unknown Source)
    at oracle.olap.awm.ui.dialog.ThreadedDialogActionThread.run (unknown Source)

    He tells this schema user u to connect have create table privilege.

    Connect as sys as sysdba and grant create table privilege to your schema user.

    This command occurs

    GRANT CREATE TABLE ;

    Mark correct or useful if this can help,

    Kind regards
    Rayan Vieira

  • get ORA-01403: when it should not

    Hello, I apologize in advance for my spelling, name (takes 6 hours to change) and the headaches you migth get, however,.
    I bring you the following code and test results:
    -----------------------------------------------------------
    -The procedure that throws the error.
    -----------------------------------------------------------
    create or replace
    procedure P_COLEGAS(x in number) as
    ctipo varchar2(20);
    asd varchar2(20);
    
    cursor curnombre is
    select nombre from unidad,elemento where (elemento.id_elem=unidad.id_elem and unidad.tipo=ctipo and elemento.ciudad=asd);
    
    begin
    select unidad.tipo, elemento.ciudad into ctipo,asd from unidad,elemento where unidad.id_elem=x and elemento.id_elem=x;
    for blah in curnombre loop
    DBMS_OUTPUT.PUT_LINE('nombre unidad: '||blah.nombre||' ');
    end loop;
    end;
    -what i get when executing the procedure-
    Error que empieza en la línea 1 del comando:
    exec p_colegas(19)
    Informe de error:
    ORA-01403: no data found
    ORA-06512: at "BD00.P_COLEGAS", line 9
    ORA-06512: at line 1
    01403. 00000 - "no data found"
    *Cause:
    *Action:
    -----------------------------------------------------------
    -the real problem-
    -----------------------------------------------------------
    in the case of this procedure I had to write
    (1)
    select unidad.tipo into ctipo from unidad where unidad.id_elem=x;
    (2)
    select elemento.ciudad into asd from elemento where elemento.id_elem=x;
    Instead the single query I wrote, we get the following:
    (1) wonderful works, gets only error when there is no match for x.
    (2) throws the error that I was before.

    However when I do the following query in the spreadsheet and run it:
    (3)
    select elemento.ciudad from elemento where elemento.id_elem=x;
    I get what I expect to get 1 row 1 column. (Yes it has data)
    Note: (3) the only difference is that I remove the clause, and x is the same number that I used when I run the procedure.

    -----------------------------------------------------------
    --------------------the question------------------------
    -----------------------------------------------------------
    Why in the procedure, the failure of the (2) query to retrieve the data, the same which data the query (3) doesn't fail to pick up?
    I get ORA-01403, when I shouldn't?
    is there a work around for this problem?

    -----------------------------------------------------------
    --------------------what i try------------------------------
    -----------------------------------------------------------
    Nestled the request with its own handle exception error, get the same results, a few screenshots of the error with a different treatment.

    used tool: sql developer

    ----------
    -Example of data-
    ----------
    tested the procedure with the following sample data in a new workspace, make the same mistake.
    --------------------------------------------------------
    --  DDL for Table ELEMENTO
    --------------------------------------------------------
    
      CREATE TABLE "ELEMENTO" 
       (     "ID_ELEM" NUMBER, 
         "CIUDAD" VARCHAR2(20), 
         "TIPO" CHAR(1), 
         "X" NUMBER, 
         "Y" NUMBER, 
         "FECHAHORA_CREACION" TIMESTAMP (6)
       ) ;
    /
    --------------------------------------------------------
    --  DDL for Table UNIDAD
    --------------------------------------------------------
    
      CREATE TABLE "UNIDAD" 
       (     "ID_ELEM" NUMBER, 
         "PORCENTAJE_SALUD" NUMBER, 
         "NOMBRE" VARCHAR2(20), 
         "TIPO" VARCHAR2(20)
       ) ;
    /
    REM INSERTING into ELEMENTO
    SET DEFINE OFF;
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (12,'Infernalia','U',10,10,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (15,'Infernalia','U',10,7,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (19,'Infernalia','U',15,9,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (23,'Infernalia','U',16,8,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (27,'Infernalia','C',15,10,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (52,'Humania','U',26,10,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (58,'Humania','U',24,9,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (62,'Humania','U',27,11,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (64,'Humania','C',25,8,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (78,'GruntVille','U',47,32,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (84,'GruntVille','U',42,28,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (89,'GruntVille','U',43,29,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (91,'GruntVille','C',44,37,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (29,'Infernalia','C',16,7,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (90,'GruntVille','U',49,36,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    REM INSERTING into UNIDAD
    SET DEFINE OFF;
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (12,100,'Grang','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (15,100,'Krout','Médico');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (19,100,'Warf','Obrero');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (23,100,'Puaj','Obrero');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (52,100,'Marcelus','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (58,100,'Claudius','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (62,100,'Arturius','Obrero');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (78,100,'Klaknot','Médico');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (84,100,'Staisht','Médico');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (89,100,'Bjorkson','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (90,100,'Sknot','Médico');
    --------------------------------------------------------
    --  Constraints for Table ELEMENTO
    --------------------------------------------------------
    
      ALTER TABLE "ELEMENTO" ADD CONSTRAINT "ELEMENTO_CHK1_TIPO" CHECK (TIPO IN ('U', 'C')) ENABLE;
     
      ALTER TABLE "ELEMENTO" ADD CONSTRAINT "ELEMENTO_PK" PRIMARY KEY ("ID_ELEM") ENABLE;
     
      ALTER TABLE "ELEMENTO" MODIFY ("ID_ELEM" NOT NULL ENABLE);
     
      ALTER TABLE "ELEMENTO" MODIFY ("CIUDAD" NOT NULL ENABLE);
     
      ALTER TABLE "ELEMENTO" MODIFY ("TIPO" NOT NULL ENABLE);
     
      ALTER TABLE "ELEMENTO" MODIFY ("X" NOT NULL ENABLE);
     
      ALTER TABLE "ELEMENTO" MODIFY ("Y" NOT NULL ENABLE);
     
      ALTER TABLE "ELEMENTO" MODIFY ("FECHAHORA_CREACION" NOT NULL ENABLE);
    /
    --------------------------------------------------------
    --  Constraints for Table UNIDAD
    --------------------------------------------------------
    
      ALTER TABLE "UNIDAD" MODIFY ("ID_ELEM" NOT NULL ENABLE);
     
      ALTER TABLE "UNIDAD" MODIFY ("PORCENTAJE_SALUD" NOT NULL ENABLE);
     
      ALTER TABLE "UNIDAD" MODIFY ("NOMBRE" NOT NULL ENABLE);
     
      ALTER TABLE "UNIDAD" MODIFY ("TIPO" NOT NULL ENABLE);
     
      ALTER TABLE "UNIDAD" ADD CONSTRAINT "UNIDAD_PK" PRIMARY KEY ("ID_ELEM") ENABLE;
    /
    --------------------------------------------------------
    --  Ref Constraints for Table ELEMENTO
    --------------------------------------------------------
    
    --------------------------------------------------------
    --  Ref Constraints for Table UNIDAD
    --------------------------------------------------------
    
      ALTER TABLE "UNIDAD" ADD CONSTRAINT "UNIDAD_ELEMENTO_FK1" FOREIGN KEY ("ID_ELEM")
           REFERENCES "ELEMENTO" ("ID_ELEM") ENABLE;
     
    /
    Edited by: 975362 04:47 12/06/2012

    Published by: BluShadow on December 6, 2012 12:51
    addition of {noformat}
    {noformat} tags for readability of code/data.  Please read {message:id=9360002} and learn to do this yourself in future.
    
    Edited by: 975362 on 06-12-2012 05:44 AM
    added example data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    This is because you use X as the parameter to the procedure, and X is a column in the table :)

    So use a table alias in the query or use another name for the parameter.

    Published by: ascheffer on December 6, 2012 15:04

  • ORA-39250 - when it provides the TBS guidelines transportable export version parameter.

    Try to expdp/impdp transportable tablespace of source 11.2.0.1.0 - 64-bit RedHat to destination 11.1.0.6.0 - 64-bit RedHat 5.6 5.6.

    Getting ORA-39250 when providing the version parameter:

    expdp userid = "system / *' directory = mon_repertoire transport_tablespaces = some_tbs_to_export = some_tbs_dumpfile.dmp log = some_tbs_dumpfile.log version = 11.1" dumpfile

    Export: Release 11.2.0.1.0

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39001: invalid argument value
    ORA-39250: use the version to downgrade a portable work is not supported

    How to export this transportable tablespace to agree to import in the 11.1.0.6.0?

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39001: invalid argument value
    ORA-39250: use the version to downgrade a portable work is not supported

    How to export this transportable tablespace to agree to import in the 11.1.0.6.0?

    My source also version 11.2.0.1.0.

    11 GR 1 binary material allows to connect to the database of GR 11, 2.

    House of 11 GR 1 matter of export and

    $expdp system/***@11gR2_db = mon_repertoire transport_tablespaces = some_tbs_to_export dumpfile directory = some_tbs_dumpfile.dmp log = some_tbs_dumpfile.log

    See also * compatibility and New features when transporting Tablespaces with export and import [291024.1 ID] *.

    Published by: CKPT on 20 March 2012 21:07

  • URGENT, URGENT - "APP-FND-01926, WHEN-LOGON-CHANGED, ORA-06508" when trying

    Hi all;

    When I try to open forms I have this error:

    "APP-FND-01926, WHEN-LOGON-CHANGED, ORA-06508" when trying to connect.

    Anyone have idea?

    Thank you

    Double wire...

    URGENT, URGENT - "APP-FND-01926, WHEN-LOGON-CHANGED, ORA-06508" when trying
    URGENT, URGENT - "APP-FND-01926, WHEN-LOGON-CHANGED, ORA-06508" when trying

  • ORA-13000: number of dimensions is out of reach when you use SDO_GEOM. RELATE

    Dear everybody

    I try to drive what polygons covering the same area to determine separate polygons. This is so I can then have a copy of a polygon in a new table and delete all the polygons in doubles in the current table.

    I ran as follows everything first to check something:
    SELECT SDO_GEOM.RELATE
       (A.geographical_coordinates,
        'DETERMINE',
        B.geographical_coordinates,
        0.05) relationship
     FROM MAP_INDEX A,
          MAP_INDEX B
    where A.geographical_coordinates is not NULL
    and B.geographical_coordinates is not NULL;
    but I got the error message:
    Error starting at line 1 in command:
    SELECT DISTINCT A.mi_prinx,
    SDO_GEOM.RELATE
       (A.geographical_coordinates,
        'EQUAL',
        B.geographical_coordinates,
        0.05)
     FROM MAP_INDEX A,
          MAP_INDEX B
    where A.geographical_coordinates is not NULL
    and B.geographical_coordinates is not NULL
    Error report:
    SQL Error: ORA-13000: dimension number is out of range
    ORA-06512: at "MDSYS.SDO_GEOM", line 70
    ORA-06512: at "MDSYS.SDO_GEOM", line 2647
    13000. 00000 -  "dimension number is out of range"
    *Cause:    The specified dimension is either smaller than 1 or greater than
               the number of dimensions encoded in the HHCODE.
    *Action:   Make sure that the dimension number is between 1 and the maximum
               number of dimensions encoded in the HHCODE.
    Then, I tried the following:
    SELECT DISTINCT A.mi_prinx,
    SDO_GEOM.RELATE
       (A.geographical_coordinates,
        'EQUAL',
        B.geographical_coordinates,
        0.05)
     FROM MAP_INDEX A,
          MAP_INDEX B
    where A.geographical_coordinates is not NULL
    and B.geographical_coordinates is not NULL
    which produces the following error message:
    Error starting at line 1 in command:
    SELECT 
    SDO_GEOM.RELATE
    (A.geographical_coordinates,
     'EQUAL',
     B.geographical_coordinates,
     0.05) relationship
      FROM MAP_INDEX A,
           MAP_INDEX B
    Error report:
    SQL Error: ORA-13050: unable to construct spatial object
    ORA-06512: at "MDSYS.SDO_3GL", line 4
    ORA-06512: at "MDSYS.MD2", line 771
    ORA-06512: at "MDSYS.SDO_GEOM", line 2622
    ORA-06512: at "MDSYS.SDO_GEOM", line 2649
    13050. 00000 -  "unable to construct spatial object"
    *Cause:    This is an internal error.
    *Action:   Contact Oracle Support Services.
    Does anyone have an idea as to what I might hurt? The original polygons have been created in MapInfo Professional 8 and I work at 10.2 g

    I think that Imust be something wrong. I looked in SDO_GEOM_VALIDATE but once again produce the same error as the first message. I already created a spatial index and inserted values in USER_SDO_GEOM_METADATA view.

    I was able to get the following to work, I was testing the examples online just to see if I could produce a result on an sdo function:
     SELECT NAME_OF_FEATURE, SDO_GEOM.SDO_AREA(GEOGRAPHICAL_COORDINATES,M.DIMINFO)
    FROM MAP_INDEX, user_sdo_geom_metadata M
    WHERE M.TABLE_NAME='MAP_INDEX' AND M.COLUMN_NAME='GEOGRAPHICAL_COORDINATES'
    AND geographical_coordinates is not null;
    When I drew my polygons in MapInfo, they are likely to be gone in part outside the dimension values inserted in USER_SDO_GEOM_METADATA limit. Who is likely to be the cause of my problems or something else?

    If this is the cause, is far from Oracle or MapInfo installation so that anything drawn outside the area of the dimension is cut off.

    Kind regards

    Tim

    Hi Tim,.

    Since Oracle Oracle 8.1.6 suggested the use of 4-digit SDO_GTYPE values, which encode the number of dimensions in geometry. Examples of 4-digit SDO_GTYPES 2001 for one point 2D, 3001 for a 3D point, 2002 for a 2D linestring, 3002 for 3D linestring, 2003 for a 2D polygon and 3003 for a 3D polygon... Compare these values to a single digit from 1 to a point, a linestring 2 and 3 for a polygon.

    My guess is that at least some of your data is loaded using SDO_GTYPE values to a single digit, and service Oracle does not know the dimensionality of the data (is a peak identified by 2, 3 or 4 numbers?). You can check this by a:

    Select distinct a.geographical_coordinates.sdo_gtype from MAP_INDEX;

    If all of the values returned are single-digit values, then you know that's the problem.

    You have a few options.

    You can have Oracle automatically correct data migration data:
    execute sdo_migrate.to_current ('MAP_INDEX', 'GEOGRAPHICAL_COORDINATES');

    This will not define only the SDO_GTYPE properly but will fix also to any ring rotation problems (ensures the outer rings is stored in the anti-clockwise and the inner rings is stored in a clockwise direction), it will set the control problems ring (ensure an outside ring is followed by its inner rings) and it will be appropiately set of values in the SDO_ELEM_INFO_ARRAY.

    After that, you should be good to go. However, if you use a tool to update the data, and it resets the information back, the problem will continue to torment you. You should check with your provider if this is the case.

    Another option is to modify the query for a different signature, which uses the SDO_GEOM_METADATA to get the dimensionality of the data. Rather than write the query that you have, you want to change it to:

    SELECT SDO_GEOM. RELATE
    (A.geographical_coordinates,
    C.DIMINFO,
    "DETERMINE."
    B.geographical_coordinates,
    Relationship C.DIMINFO)
    OF MAP_INDEX,.
    B MAP_INDEX,
    C USER_SDO_GEOM_METADATA
    WHERE A.geographical_coordinates is not NULL
    and B.geographical_coordinates is not NULL
    and C.TABLE_NAME = 'MAP_INDEX'
    and C.COLUMN_NAME = 'GEOGRAPHICAL_COORDINATES';

    So either of those who should solve the problem, you see, but none of those who are the best way to accomplish what you want to do.

    If I were you, I would follow the first set of directions (migrate your data), make sure that I have a spatial index on my table:
    Select index_name
    of user_sdo_index_info
    where table_name = 'MAP_INDEX ';

    If no row is returned, create the index:
    create index MAP_INDEX_SIDX on MAP_INDEX (GEOGRAPHICAL_COORDINATES)
    indexType is mdsys.spatial_index;

    You can use SDO_JOIN to perform a self-join:
    http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28400/sdo_operat.htm#BGEDJIBF
    using the SAME mask. Note the section on optimization of self-joins.

    If you don't have too much data, it could be a start to do what you want:

    create the table dups_rowids as
    Select / * + ordered * / a.rowid rowid1, b.rowid rowid2
    MAP_INDEX a,.
    MAP_INDEX B
    where (a.geographical_coordinates, b.geographical_coordinates) SDO_EQUALS = 'TRUE'
    and a.rowid <> b.rowid.

    create table nodup_rowid (noduprid VARCHAR2 (24));
    create table dup_rowid (duprid VARCHAR2 (24));

    Set serveroutput on;
    declare
    Modou varchar2 (24);
    rowidb varchar2 (24);
    rowidt varchar2 (24);
    is of type Ref cursor myCursor;
    acursor myCursor;
    cursor c1 is select rowid1, rowid2 from dups_rowids;
    Start
    for r c1 loop
    Modou: = r.rowid1;
    rowidb: = r.rowid2;
    rowidt: = NULL;

    Open acursor for ' select duprid in the dup_rowid where duprid =: modou ' using modou;
    extract the acursor in rowidt;
    If rowidt is null
    then
    immediately execute "insert into nodup_rowid values (: modou)" using modou;
    immediately execute "insert into dup_rowid values (: modou)" using modou;
    run immediately "committed."
    end if;
    close acursor;
    rowidt: = NULL;

    Open acursor for ' select duprid in the dup_rowid where duprid =: rowidb' using rowidb;
    extract the acursor in rowidt;
    If rowidt is null
    then
    run immediately ' insert into dup_rowid values (: rowidb) "using rowidb;
    run immediately "committed."
    end if;
    close acursor;
    end loop;
    end;
    /

    Your final table would then have the geometries of the original table, which had no match:

    create the table MAP_INDEX_NODUPS
    in select * from MAP_INDEX where rownum<>

    insert into MAP_INDEX_NODUPS
    (select *)
    of MAP_INDEX
    where ROWID not in
    (by selecting ROWID1 in DUPS_ROWIDS)) ;

    more alone geometries that were equal:
    insert into MAP_INDEX_NODUPS
    (select *)
    of MAP_INDEX
    where ROWID in
    (by selecting ROWID1 in NODUP_ROWID);

    I hope this helps.

  • Conversion error when loading Dimension data

    Hi all

    I learn AWM, follow the steps mentioned in the documentation of the OBE.

    When I try to load the data in a dimension using dimension keep option in AWM it throws error as

    * "INI: error creating a generic Manager definition to TxsOqConnection::generic < BuildProcess > INI: XOQ-01600: OLAP DML error" ORA-35564: cannot convert the VARCHAR2 type (225) for the type DATETIME. "while executing DML"SYS. " AWXML! R11_LOAD_DIM('D_DATE.) CALENDER_MONTH. LEVEL ' SYS. AWXML! ___R11_LONG_ARG_VALUE (SYS. AWXML! ___R11_LONG_ARG_DIM 1) 'MATCH' 'YES' 'NO' ' D_DATE. LONG_DESCRIPTION. ATTRIBUTE ' ' D_DATE. SHORT_DESCRIPTION. ATTRIBUTE ' ' D_DATE. CALENDER_MONTH_LONG_DESCRIPT. ATTRIBUTE ' ' D_DATE. CALENDER_MONTH_SHORT_DESCRIP. ATTRIBUTE ' ' D_DATE. CALENDER_DATE_HIE. (HIÉRARCHIE ') ', generic TxsOqStdFormCommand::executeINI: 01601 XOQ: error loading of the Dimension of Cube data «GLOBAL_AW.» D_DATE' in the analytical, generic workspace to TxsOqStdFormCommand::execute. "

    I use AWM 11.2.0.2.0B and Oracle DB 11.2.0.1.0. Here is the structure of the table of DIM_TIME,

    DATE_KEY NUMBER (12.0)
    DATE_NUMBER NUMBER (18.0)
    DATE_CAPTION VARCHAR2 (225 BYTE)
    DATE_LONG_CAPTION VARCHAR2 (225 BYTE)
    DAY_CAPTION VARCHAR2 (225 BYTE)
    MONTH VARCHAR2 (225 BYTE)
    YMD_HYPEN VARCHAR2 (225 BYTE)
    DMY_SLASH VARCHAR2 (225 BYTE)
    DATE OF DATE_DTM
    CALENDER_YEAR NUMBER (18.0)
    CALENDER_MONTH NUMBER (18.0)
    CALENDER_MONTH_CAPTION VARCHAR2 (225 BYTE)
    CALENDER_WEEK NUMBER (18.0)
    CALENDER_DAY VARCHAR2 (225 BYTE)
    CALENDER_QUARTER NUMBER (18.0)
    FINANCIAL_YEAR NUMBER (18.0)
    FINANCIAL_QUARTER NUMBER (18.0)
    FINANCIAL_QUARTER_CAPTION VARCHAR2 (225 BYTE)
    DATE OF PRIOR_DATE
    DATE NEXT_DATE
    DATE OF FIRST_OF_MONTH
    DATE OF LAST_OF_MONTH
    DATE OF START_OF_WEEK
    LAST_OF_WEEK TANK (18 BYTES)
    WORKING_DAY VARCHAR2 (1 BYTE)
    PUBLIC_HOLIDAY VARCHAR2 (1 BYTE)
    PUBLIC_HOLIDAY_NAME VARCHAR2 (225 BYTE)

    I created a D_DATE in AWM dimension with the following levels,

    ALL_YEARS
    CALENDER_YEAR
    CALENDER_QUARTER
    CALENDER_MONTH
    CALENDER_DATE

    and the hierarchy created in the same order as shown above. Here is the mapping for these levels,

    ALL_YEARS
    Member = "All_Years."
    Long description = "all years".
    Short Description = "all years".

    CALENDER_YEAR
    Member = GLOBAL. "" DIM_TIME ". CALENDER_YEAR
    Long description GLOBAL =. "" DIM_TIME ". CALENDER_YEAR
    Short Description = GLOBAL. "" DIM_TIME ". CALENDER_YEAR

    CALENDER_QUARTER
    Member = GLOBAL. "" DIM_TIME ". CALENDER_QUARTER
    Long description GLOBAL =. "" DIM_TIME ". CALENDER_QUARTER
    Short Description = GLOBAL. "" DIM_TIME ". CALENDER_QUARTER

    CALENDER_MONTH
    Member = GLOBAL. "" DIM_TIME ". CALENDER_MONTH
    Long description GLOBAL =. "" DIM_TIME ". CALENDER_MONTH_CAPTION
    Short Description = GLOBAL. "" DIM_TIME ". CALENDER_MONTH_CAPTION

    CALENDER_DATE
    Member = GLOBAL. "" DIM_TIME ". DATE_KEY
    Long description GLOBAL =. "" DIM_TIME ". DATE_DTM
    Short Description = GLOBAL. "" DIM_TIME ". DATE_DTM

    You could someone please help me solve this problem?

    Thanks and greetings
    M trehout

    As you can see, the attributes of the description of long and short are both defined as the DATE. The simplest solution would be to redefine (e.g. using AWM) to be VARCHAR2 of sufficient length. Go to the 'Détails' tab for each attribute change the data type. Once done, check the change by describing the view again once. The load should go afterwards.

  • ORA-31603 when you attempt to get the ddl for tablespace

    Running Oracle 11 g 2 on Oracle's Linux

    In my schema, I created a package that includes a procedure that will retrieve the DOF for a given tablespace.  However, the line ' DBMS_METADATA. GET_DDL ('TABLESPACE', '< target tablespace >') returns an ORA-31603 complain the tablespace is not in my diagram.  Specifically, "ORA-31603: object"< tablespace >"TABLESPACE type not found in the schema «< myschema >»»

    It is confusing because I thought no tablespaces were related to patterns.  I checked my pattern has all privileges such as SELECT_ANY_DICTIONARY and run it on DBMS_METADATA.  I can run this command directly in SQL Developer without problem.  It is only when I try to run the procedure that the error appears.  The package belongs my diagram and I try to run it from a SQL Developer session open in my diagram.

    I searched an ora-31603 and "tablespaces" in the center of knowledge and found nothing.

    Jim Wolfe

    Hello

    Documentation:

    DBMS_METADATA

    Security model

    The views of the subject of the Oracle metadata model implement the security as follows:

    • Unprivileged users can see the metadata only their own items.
    • SYSand users with SELECT_CATALOG_ROLE can see all objects.
    • Unprivileged users can also retrieve public synonyms, privileges granted system their and object privileges granted to them or by them to others. It also includes the privileges granted to the PUBLIC .
    • If callers request objects they are not privileged to retrieve, no exception is raised; quite simply, the object is not found.
    • If unprivileged users are granted some form of access to an object in another schema, they will be able to recover the grant through the metadata API specification, but not the actual metadata of the object.
    • Stored in the roles of packages definers-rights, procedures and functions (such as SELECT_CATALOG_ROLE ) are disabled. Therefore, such a PL/SQL program can only to search metadata for objects in its own schema. If you want to write a PL/SQL program that extracts the metadata for the objects in another schema (based on the possession of the appellant of SELECT_CATALOG_ROLE ), you must bring the emission rights Summoners.

    Kind regards

    Juan M

  • ORA-01424 when filtering on NVARCHAR column

    Hello world

    We have configured our database to Oracle 11 g using the AL32UTF8 character to test our software in English and Chinese. All our VARCHAR2 columns were changed to NVARCHAR2, and we have strange behavior when trying to query a table with the LIKE operator and an escape character. We get the error "'ORA-01424: missing or illegal character that follows the escape character" but only in certain environments and development using ADODB. "


    The structure of the table:

    Name                                      Null?    Type

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

    ID NOT NULL INTEGER

    NAME NVARCHAR2 (100) NOT NULL

    OBJNAME NVARCHAR2 (50)

    The query

    SQL > SELECT AI_STRUCTURE. OBJNAME, AI_STRUCTURE.ID, AI_STRUCTURE. AI_SINFRASTRUCTURE TSTAMP WHERE (AI_STRUCTURE. AS OBJNAME & PARAM ESCAPE '!') ;

    Enter the value of param: ' I! _LOOKUPFIELD! _ %'

    ORA-01424: missing or illegal character that follows the escape character

    First of all, using NVARCHAR2 when your database character set AL32UTF8 is unnecessary and not recommended. NVARCHAR2 has limited support for some features of RDBMS. Second, it is difficult to say what could be the problem. It can be caused by some bad conversion characters defined in the environment of ADODB or some syntactic transformation performed on SQL text by ADODB. In the second case, the use of a variable binding might help.

    Thank you

    Sergiusz

  • Why ORA-01103 when create controlfile for extreme synchronization?

    Hi all! I have a small question: I created on the cluster of production on a single node of the control for the extreme instance of sync file:

    ALTER DATABASE CREATE FAR SYNC INSTANCE CONTROLFILE AS ' / data / control01.ctl';

    I copied it to the instance far sync (name far_sync). I also changed the pfile file (pfile used in production, has changed all far_sync instance), copied the password file.

    When I start the instance of far_sync, I get:

    Total System Global Area 1, 2827E + 11 bytes

    Bytes of size 4666648 fixed

    Variable of size 1, 2348E + 10 bytes

    Database buffers 1, 1570E + 11 bytes

    Redo buffers 225406976 bytes

    ORA-01103: Datenbankname 'RC' in Kontrolldatei ist nicht "FAR_SYNC".

    So easy that I wrote is it not to create the instance of synchronization up to now.

    I googled for samples in the HowTo

    Any idea?

    Thank you very much

    Greetings from Berlin

    Micha

    Hello

    who is this doc?

    Which is as you mentioned the name? db_name or db_unique_name.

    dataguard db_name enviroinment must be same as well side and db_unique_name must be different.  I'm not German

    ORA-01103: Datenbankname 'RC' in Kontrolldatei ist nicht "FAR_SYNC" <=>ORA-01103: name 'RC' in the control of the database file is not "FAR_SYNC".

    in fact the error was clear

    db_name, in the controlfile is not equal db_name in the pfile file

    Please see the following documents for name standart

    Creation of a database of physical standby

    Extreme sync

    Yasin.

  • Export a JPEG, maintaining dimensions even.

    I'm creating work for Society6. They want the popular jpeg quality with the dimensions of specific pixels for each product. When I go to export to JPEG, the pixel dimensions change. What I'm doing wrong here?

    I know I'm on something simple here... I could also save for web and which preserves the dimensions, but that reduces the quality of the image when printing through their system? I'm confused. I don't like any of jpegs, I wish that they would accept all files HAVE!

    Any help on that would be great, thanks!

    Kristen Britain,

    You can do full quality images with save for Web, just use maximum and check the relevant Otimization (hidden) in the window to the size of the Image.

  • [11g] ORA-22993 when extracted xmltype great values in the outbreak of the BIU as a CLOB in another table

    [I ask nicely for a few comments for this question.

    Someone else can reproduce it with the test below?

    Is my code invalid or false?

    Or what is the problem here?

    -Thank you

    Frank

    ]

    Hello

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    CORE Production 11.2.0.3.0

    AMT for Linux: Version 11.2.0.3.0 - Production

    NLSRTL Version 11.2.0.3.0 - Production

    Trigger Before Insert or Update to a table, I invoke a PL/SQL package function to check the size of an xmltype column (passing as IN OUT NOCOPY).

    PL/SQL functions retrieves the xmltype. GetClobVal(), check its size, and when it is beyond a limit, he tries to insert the data into another table (GTT - global temporary table).

    Finally, it changes the value of the value of the column of xmltype to the shorter XML (just by referring to the corresponding record in the TWG).

    But the Insert SQL in the TWG operation strike ORA-22993: specified input is greater than the amount actual source.

    I don't know why this happens. In the internet I only find references on importing files in lob/clob.

    Anyone have the same problem?

    I know that you prefer to have a sample program to demonstrate the problem - I'll try to post one, but it will take time.

    But maybe someone can help me based on the information above already.

    -Thanks a lot!

    Best regards

    Frank

    I have reproduced the issue.

    It must be a bug.

  • Error ORA-00979 when you run the SQL in Oracle 11.2.0.3

    Hi Oracle Experts,


    I am trying to execute a SQL statement which consist of 2-3 levels of inline queries. Part of this SQL statement is as below:
    SELECT
          "SAMPLE_RESULT"."PROPERTYID",
          "SAMPLE_RESULT"."QUALIFIER",
          ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
          AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
          TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt,
          TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd') sortdate
          STD.stdev,
          getCL.cl
        FROM
          (
            SELECT
              ROUND(stddev(INS.avg_result),2) stdev
            FROM
              (
                SELECT
                  "SAMPLE_RESULT"."PROPERTYID",
                  "SAMPLE_RESULT"."QUALIFIER",
                  ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
                  AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt
                FROM
                  "SAMPLE",
                  "SAMPLE_RESULT",
                  "ACTIVITY"
                WHERE
                  (
                    "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
                  )
                AND
                  (
                    "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (
                    sample.sampleid, sample_result.testid, sample_result.propertyid
                    )
                  )
                AND
                  (
                    "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
                  )
                AND
                  (
                    ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
                  )
                AND
                  (
                    ACTIVITY.LOCATIONID = 'S-5003C'
                  )
                AND
                  (
                    SAMPLE.EVENTID <> 'AD-HOC'
                  )
                AND
                  (
                    "SAMPLE"."SAMPLESTATUS" = 'L'
                  )
                AND
                  (
                    TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE
                    (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(
                    :StartDate,'dd-Mon-RRRR')) + 6
                  )
                AND
                  (
                    SAMPLE_RESULT.PROPERTYID = 'GCV'
                  )
                GROUP BY
                  SAMPLE_RESULT.PROPERTYID,
                  SAMPLE_RESULT.QUALIFIER,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy')
              )
              INS
          )
          STD,
          (
            SELECT
              ROUND(AVG(INS.avg_result),2) cl
            FROM
              (
               SELECT
                  "SAMPLE_RESULT"."PROPERTYID",
                  "SAMPLE_RESULT"."QUALIFIER",
                  ROUND(AVG(SAMPLE_RESULT.RESULT),2) avg_result,
                  AVG(DECODE(SAMPLE.QUALITYSTATUS, 'P', 1,'F', 5)) qltystatus,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy') sampledt
                FROM
                 "SAMPLE",
                  "SAMPLE_RESULT",
                  "ACTIVITY"
                WHERE
                  (
                    "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
                  )
                AND
                  (
                    "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (
                    sample.sampleid, sample_result.testid, sample_result.propertyid
                    )
                  )
                AND
                  (
                    "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
                  )
                AND
                  (
                    ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
                  )
                AND
                  (
                    ACTIVITY.LOCATIONID = 'S-5003C'
                  )
                AND
                  (
                    SAMPLE.EVENTID <> 'AD-HOC'
                  )
                AND
                  (
                    "SAMPLE"."SAMPLESTATUS" = 'L'
                  )
                AND
                  (
                    TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE
                    (TO_CHAR(:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(
                    :StartDate,'dd-Mon-RRRR')) + 6
                  )
                AND
                  (
                    SAMPLE_RESULT.PROPERTYID = 'GCV'
                  )
                GROUP BY
                  SAMPLE_RESULT.PROPERTYID,
                  SAMPLE_RESULT.QUALIFIER,
                  TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy')
              )
              INS
    
          )
          getCL,
          "SAMPLE",
          "SAMPLE_RESULT",
          "ACTIVITY"
        WHERE
          (
            "SAMPLE"."SAMPLEID" = "SAMPLE_RESULT"."SAMPLEID"
          )
        AND
          (
            "SAMPLE_RESULT"."TESTINSTANCE" = fn_max_instance (sample.sampleid,
            sample_result.testid, sample_result.propertyid)
          )
        AND
          (
            "SAMPLE"."ACTIVITYID" = "ACTIVITY"."ACTIVITYID"
          )
        AND
          (
            ACTIVITY.VARIANTID IN ('Sales Gas','Contaminants End')
          )
        AND
          (
            ACTIVITY.LOCATIONID = 'S-5003C'
          )
        AND
          (
            SAMPLE_RESULT.PROPERTYID IN ('GCV','SG','T. Sulphur','Dew Point',
            'HC Dew Pts')
          )    
        AND
          (
           TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR
            (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate,
            'dd-Mon-RRRR')) + 6
          )
        GROUP BY "SAMPLE_RESULT"."PROPERTYID", "SAMPLE_RESULT"."QUALIFIER", TO_CHAR("SAMPLE"."SAMPLEDT",'dd-Mon-yyyy'), TO_CHAR("SAMPLE"."SAMPLEDT",'rrrr-mm-dd'),
        
          STD.stdev,
          getCL.cl
      )
    When I run the level the lowest and second lowest level inline queries statements, which consists of a select field of data and functions, there is no error and capable of generating the result.

    But when I run the statement which refer to the alias of queries inline (STD, getCL), it prompted an error ORA-00979 not a group by expression. This happened only Oracle 11.2.0.3. If I run the statement in another version of Oracle (11 GR 1 material and below), I am able to generate the result.

    Please advice how can I fix this problem.

    Published by: xysOra on 29 April 2013 19:37

    It seems that this should be the "SAMPLE" TO_CHAR conversions "" SAMPLEDT ".

    You seem to be willing to cut the time part of SAMPLEDT. The best way to do so is TRUNC (SAMPLEDT).

    In each of the groups of clauses, replace TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TRUNC ('SAMPLE'. (' "SAMPLEDT") and completely remove the TO_CHAR ('SAMPLE'. ("' SAMPLEDT ',"dd-mm-rrrr") in the last group of.

    Replace in selection lists, TO_CHAR ('SAMPLE'. ("' SAMPLEDT ', 'dd-Mon-yyyy') with TO_CHAR (TRUNC ('SAMPLE'. ((' ' SAMPLEDT '), 'dd-Mon-yyyy') and replace TO_CHAR ("SAMPLE". "SAMPLEDT", "dd-mm-rrrr") with TO_CHAR (TRUNC ("SAMPLE" ".")) " "" "SAMPLEDT"), "dd-mm-rrrr").

    These changes can take you the ORA-00979 not one group by expression.

    Also the date manipulation is wrong — you do implicit conversions to date using default formats, when what you seem to want is to truncate the time part. Instead of

     TO_DATE(TO_CHAR(SAMPLE.SAMPLEDT,'dd-mon-yyyy')) BETWEEN TO_DATE(TO_CHAR
            (:StartDate,'dd-Mon-RRRR')) AND TO_DATE(TO_CHAR(:StartDate,
            'dd-Mon-RRRR')) + 6
    

    use

     TRUNC(SAMPLE.SAMPLEDT) BETWEEN TRUNC(:StartDate) AND TRUNC(:StartDate) + 6
    

    I hope this helps.
    David

  • ORA-28500 and ORA-02063 when querying sql server tables.

    Hello

    I am getting below error when querying (also with oracle reports) talbes of MS SQL 2008 database who have more lines. There is no problem with tables with less number of lines.
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    ORA-02063: preceding line from SQLSERVER

    When I asked "select *"Areas"@sqlserver;", it is retriving 195 lines and then the display above error.» This table contains 10716 lines.

    Here are the details of our environment:

    Database Oracle 11 G RAC (2 knots) on RHEL 5 64 Bit, MS SQL 2008

    ODBC. INI
    [oracle@proddb1 ~] $ cat /etc/odbc.ini
    [ODBC data sources]
    MSSQL = MS SQL Server

    [mssql]
    Driver=/opt/Microsoft/SQLNCLI/lib64/libsqlncli-11.0.so.1790.0
    Database = Ksa_Fakieh_SFA
    LogonID = OracleUser
    Password=0r@cle999
    Server = SJSQLV01.fakiehgroup.com
    QuotedId = YES
    AnsiNPW = YES
    [ODBC]
    IANAAppCodePage = 4
    Trace = 0
    UseCursorLib = 0
    UseCursorLib = 0


    INIT FILE:

    [oracle@proddb1 ~] $ cat $ORACLE_HOME/hs/admin/initDG4ODBC.ora
    # This is an example of initialization file of the agent that contains the HS settings
    # necessary for the database to ODBC gateway

    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = mssql
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_FDS_SUPPORT_STATISTICS = FALSE
    HS_LANGUAGE = AMERICAN_AMERICA. AR8MSWIN1256
    HS_NLS_NCHAR = UCS2
    #
    # ODBC specific environment variables
    #
    Set ODBCINI=/etc/odbc.ini
    #


    Listener.ora:

    # ###############################################################

    #

    TRACE_FILE_LISTENER_PRODDB1 = fakieh1

    LISTEN_DG4ODBC =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP (PORT = 1511))(HOST = proddb1.fakiehgroup.com))
    )
    )
    SID_LIST_LISTEN_DG4ODBC =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = u01/oracle/fakieh/db/tech_st/11.1.0) (SID_NAME = DG4ODBC)
    (ENV="LD_LIBRARY_PATH=/usr/lib64:/u01/oracle/fakieh/db/tech_st/11.1.0/lib')
    (PROGRAM = dg4odbc)
    )
    )

    #
    # Definition of RAC database listener
    #

    LISTENER_PRODDB1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADRESSE = (PROTOCOL = TCP) (HOST = proddb1 - vip.fakiehgroup.com) (PORT = 1521)(IP = FIRST)))
    (ADDRESS_LIST =
    (ADRESSE = (PROTOCOL = TCP) (HOST = proddb1) (PORT = 1521)(IP = FIRST)))
    )
    )

    SID_LIST_LISTENER_PRODDB1 =
    (SID_LIST =
    (SID_DESC = (ORACLE_HOME = /u01/oracle/fakieh/db/tech_st/11.1.0)(SID_NAME = fakieh1))
    )

    STARTUP_WAIT_TIME_LISTENER_PRODDB1 = 0
    CONNECT_TIMEOUT_LISTENER_PRODDB1 = 10
    TRACE_LEVEL_LISTENER_PRODDB1 = OFF

    LOG_DIRECTORY_LISTENER_PRODDB1 = /u01/oracle/fakieh/db/tech_st/11.1.0/network/admin
    LOG_FILE_LISTENER_PRODDB1 = fakieh1
    TRACE_DIRECTORY_LISTENER_PRODDB1 = /u01/oracle/fakieh/db/tech_st/11.1.0/network/admin
    TRACE_FILE_LISTENER_PRODDB1 = fakieh1
    ADMIN_RESTRICTIONS_LISTENER_PRODDB1 = WE
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER_PRODDB1 = OFF


    IFile=/U01/Oracle/Fakieh/DB/tech_st/11.1.0/Network/admin/fakieh1_proddb1/listener_ifile.ora


    Thank you
    Mohammed.

    Mohammed,
    Without seeing the tracing information, it is difficult to say why this problem occurs.
    However, could you add the following to the file initDG4ODBC.ora gateway -.

    HS_RPC_FETCH_REBLOCKING = OFF
    HS_FDS_FETCH_ROWS = 1

    and try to select it again again SLQPLUS session and see if the same problem occurs?

    Kind regards
    Mike

Maybe you are looking for