Select from partition problem

hi all,
hope i'm in the right forum. i have 2 databases sitting in 2 separate machines. 1 installed with Oracle 9i and 1 with Oracle 10g. I'm trying to select a partitioned table in 9i remotely (from the 10g db). In order to do that, I've created a synonym in 10g pointing to the partitioned table in 9i.
In 9i, if i do a select "select count(*) from tableA partition (p1)", i'm able to grab the correct count of the partition. But when i use the same select statement in 10g, it's grabbing all the data of the table, sum of all partitions. it looks like the partition qualifier specified in the select statement has no effect. Can i know what is the problem? hope to get some response a.s.a.p. tq
regards,
ykl

I did recreate your same situation, and actually the result is the same. I get that result when using a synonym. If I use <table name>@<db link> instead of synonym, then the result is different :
ORA-14100: partition extended table name cannot refer to a remote object
(internal unpublished bug 3076633, fixed in 10.2)
In my case I can solve the problem using partition key, instead of partition name, that is
SQL> select count(*) from <partition table synonym> where <partition key> = <value>;
instead of
SQL> select count(*) from <partition table synonym> partition(<partition name>);
Paul

Similar Messages

  • Selecting from partition is taking too much time

    The SEARCH_MEMBE_PROVIDER_ROLLUP is partitioned with range-list partition
    ROLLUP_ID --range (about 30 partitions ) and other column with list subpartitioned (about 48)
    *indexes on columns
    b-tree global index on ROLLUP_ID
    bitmap local index on ROLLUP_ID, MEMBERONE_ID_1010
    bitmap local index on MEMBERONE_ID_1010*
    I could not figured it out as some partition's data is coming fast and some partition's data is not coming at all(taking 18 minutes)
    any help would be greatly appreciated and please let me know if need more information
    Please see the following information
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for HPUX: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> explain plan for SELECT COUNT (1)
      2  FROM (SELECT LY.MEMBERONE_ID_1010
      3          FROM (SELECT *
      4                  FROM (SELECT dr.*
      5                          FROM MEMBERONE_last1year dr)) ly
      6         WHERE 1 = 1
      7               AND LY.MEMBERONE_ID_1010 IN (SELECT RP.MEMBERONE_ID_1010
      8                                              FROM SEARCH_MEMBE_PROVIDER_ROLLUP RP
      9                                             WHERE RP.rollup_id = 7));
    Explained.
    SQL> @utlxplp
    PLAN_TABLE_OUTPUT
    Plan hash value: 677376773
    | Id  | Operation                       | Name                           | Rows  | Bytes | Cost  | Pstart| Pstop |
    |   0 | SELECT STATEMENT                |                                |     1 |    18 |    84 |       |       |
    |   1 |  SORT AGGREGATE                 |                                |     1 |    18 |       |       |       |
    |   2 |   NESTED LOOPS SEMI             |                                |   154K|  2707K|    84 |       |       |
    |   3 |    INDEX FULL SCAN              | IX1_MEMBERONE_LAST1YEAR        |  2701K|    20M|    75 |       |       |
    |   4 |    PARTITION RANGE SINGLE       |                                | 64749 |   632K|    84 |     7 |     7 |
    |   5 |     PARTITION LIST ALL          |                                | 64749 |   632K|    84 |     1 |    48 |
    |   6 |      BITMAP CONVERSION TO ROWIDS|                                | 64749 |   632K|    84 |       |       |
    |*  7 |       BITMAP INDEX SINGLE VALUE | IX3_SEARCH_MEMBE_PROVIDER_ROLL |       |       |       |   289 |   336 |
    Predicate Information (identified by operation id):
       7 - access("RP"."ROLLUP_ID"=7 AND "DR"."MEMBERONE_ID_1010"="RP"."MEMBERONE_ID_1010")
    Note
       - cpu costing is off (consider enabling it)
    23 rows selected.
    *THE ABOVE QUERY is taking more than 18 minutes*
    ========================
    *THE BELOW QUERY is taking not even two seconds*
    SQL> SELECT COUNT (1)
      2  FROM (SELECT LY.MEMBERONE_ID_1010
      3          FROM (SELECT *
      4                  FROM (SELECT dr.*
      5                          FROM MEMBERONE_last1year dr)) ly
      6         WHERE 1 = 1
      7               AND LY.MEMBERONE_ID_1010 IN (SELECT RP.MEMBERONE_ID_1010
      8                                              FROM SEARCH_MEMBE_PROVIDER_ROLLUP RP
      9                                             WHERE RP.rollup_id = 11));
      COUNT(1)
        131575
    Elapsed: 00:00:01.53
    SQL> explain plan for SELECT COUNT (1)
      2  FROM (SELECT LY.MEMBERONE_ID_1010
      3          FROM (SELECT *
      4                  FROM (SELECT dr.*
      5                          FROM MEMBERONE_last1year dr)) ly
      6         WHERE 1 = 1
      7               AND LY.MEMBERONE_ID_1010 IN (SELECT RP.MEMBERONE_ID_1010
      8                                              FROM SEARCH_MEMBE_PROVIDER_ROLLUP RP
      9                                             WHERE RP.rollup_id = 11));
    Explained.
    Elapsed: 00:00:00.03
    SQL> @utlxplp
    PLAN_TABLE_OUTPUT
    Plan hash value: 3092271485
    | Id  | Operation                 | Name                         | Rows  | Bytes | Cost  | Pstart| Pstop |    TQ  |IN-OUT| PQ Distrib |
    |   0 | SELECT STATEMENT          |                              |     1 |    18 |    80 |       |       |        |      |            |
    |   1 |  SORT AGGREGATE           |                              |     1 |    18 |       |       |       |        |      |            |
    |   2 |   PX COORDINATOR          |                              |       |       |       |       |       |        |      |            |
    |   3 |    PX SEND QC (RANDOM)    | :TQ10002                     |     1 |    18 |       |       |       |  Q1,02 | P->S | QC (RAND)  |
    |   4 |     SORT AGGREGATE        |                              |     1 |    18 |       |       |       |  Q1,02 | PCWP |            |
    |*  5 |      HASH JOIN RIGHT SEMI |                              | 70780 |  1244K|    80 |       |       |  Q1,02 | PCWP |            |
    |   6 |       PX RECEIVE          |                              |   208K|  2034K|     6 |       |       |  Q1,02 | PCWP |            |
    |   7 |        PX SEND HASH       | :TQ10001                     |   208K|  2034K|     6 |       |       |  Q1,01 | P->P | HASH       |
    |   8 |         PX BLOCK ITERATOR |                              |   208K|  2034K|     6 |     1 |    48 |  Q1,01 | PCWC |            |
    |*  9 |          TABLE ACCESS FULL| SEARCH_MEMBE_PROVIDER_ROLLUP |   208K|  2034K|     6 |   481 |   528 |  Q1,01 | PCWP |            |
    |  10 |       BUFFER SORT         |                              |       |       |       |       |       |  Q1,02 | PCWC |            |
    |  11 |        PX RECEIVE         |                              |  2701K|    20M|    75 |       |       |  Q1,02 | PCWP |            |
    |  12 |         PX SEND HASH      | :TQ10000                     |  2701K|    20M|    75 |       |       |        | S->P | HASH       |
    |  13 |          INDEX FULL SCAN  | IX1_MEMBERONE_LAST1YEAR      |  2701K|    20M|    75 |       |       |        |      |            |
    Predicate Information (identified by operation id):
       5 - access("DR"."MEMBERONE_ID_1010"="RP"."MEMBERONE_ID_1010")
       9 - filter("RP"."ROLLUP_ID"=11)
    Note
       - cpu costing is off (consider enabling it)
    30 rows selected.
    Elapsed: 00:00:00.54
    SQL> spool offthanks again

    Hi
    1) there are two major differences between the plans: serial vs parallel and NESTED LOOPS SEMI vs HASH JOIN SEMI
    2) NESTED LOOPS look like a bad choice here, and it also looks like the optimizer badly underestimates it's real cost. Which is a bit odd, because it knows that the outer rowsource has 2701K, i.e. the inner operation would have to be executed 2701K times. Looks like an optimizer glitch, which brings us to the point that Dan has already raised here: you shouldn't be running on an old unsupported version
    3) regarding serial vs parallel: it could be due to difference in session settings (ALTER SESSION ENABLE/DISABLE PARALLEL QUERY)
    4) the two plans have different values of the filter against rollup_id (7 vs 11), so one possible reason for different behavior is the histogram on SEARCH_MEMBE_PROVIDER_ROLLUP.rollup_id. If you can reproduce the issue on a test database, re-gather stats on this table without histograms (method_opt=>'for all columns size 1', no_invalidate=>false) and see if the problem goes away
    Best regards,
    Nikolay

  • Open cursor for string and select from partition (cannot bind)

    Hi,
    i don't manage to use a bind variable for a select ... from ... PARTITION(...).
    It doesn't work to use something like
    open cur for 'select ... from ... PARTITION(:1) where ...' using 'NDAY_20120301';So i have to create the cursor string with string functions each time i change the partition.
    But that means, that the string changes each time.
    Doesn't that prevent from re-use in library_cache?
    best regards,
    Frank

    >
    So i have to create the cursor string with string functions each time i change the partition.
    But that means, that the string changes each time.
    >
    Yes it does.
    Doesn't that prevent from re-use in library_cache?
    >
    Yes it does.
    So why do you care? Unless you have large numbers of partitions what difference does it make? Bind variables are useful to keep Oracle from doing hard parses of queries that are basically the same but use different filter values. Such as an INSERT statement that uses different values FOR EACH ROW rather
    You are just constructing the main (non-filter) part of the query one time and need a single value for the entire query regardless of how many rows - that isn't really a use case for bind variables and isn't going to provide any real benefit.
    So the real question is why do you even care about something that wouldn't provide any benefit to you even if you could do it?
    Looks like you just want to 'roll your own' parallel processing rather that use, and pay for, Oracle's parallel functionality.
    If each partition uses its own tablespace you could filter on the FILE Id of the ROWIDs since the file number will be different for each tablespace and datafile.
    1. Determine the list of file numbers for each partitions tablespace.
    2. Use a WHERE DBMS_ROWID.ROWID_RELATIVE_FNO (ROWID) = :n filter (or use IN (:n1, :n2))to filter rows based on file number(s) for the partition you want
    See DBMS_ROWID.ROWID_RELATIVE_FNO in the PL/SQL Packages and Types doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_rowid.htm#i1004259

  • Select  from partition, will it work ?

    Hi, I have a partiotined TT_table:
    CREATE TABLE RYBATEMP.T_STAT
    ( ACTDATE DATE,
    COL_LIST, FORMAT_LIST..
    TABLESPACE "RYBA_DATA" PARTITION BY RANGE
    ("ACTDATE" )
    ( PARTITION "D_20100901" VALUES LESS THAN (TO_DATE(' 2010-09-02 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) ....
    I just want somehow to check that the following select will directly refer to wanted partition as expected not browsing thru whole table:
    SELECT COL_LIST FROM T_STAT WHERE
    ACTDATE >= to_date('01-SEP-10 00:00:00','DD-Mon-YY HH24:MI:SS') AND
    ACTDATE <= to_date('01-SEP-10 21:01:16','DD-Mon-YY HH24:MI:SS')
    This time on date parameter confuses me, even after reading thru defintionis where partition difined with HH:MI:SS format. Is there anay way to track it in Plan or something, never did it on Oracle.
    Will it take greater/less/ signs ?
    Thanks
    Trent

    Hi Trent,
    Yes you will be able how things work with partitions in the explain plans.
    I don't know your version but a few explanations in 9.2 for example :
    http://download.oracle.com/docs/cd/B10500_01/server.920/a96533/ex_plan.htm#7211
    If you want to know how to have complete trace etc. (example in 10.2) :
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm
    (notice partitioning does not avoid the need of indexes)
    Best regards
    Phil

  • Dynamic select a partition

    People,
    I have a question regarding selecting from partitions.
    For my internship I need to write a program with APEX to retrieve ad-hoc data from a data-warehouse.
    The large tables are split into partitions of each about 500k records. Names are given according to the key they split(: partition_200912, as 2009 December).
    This is also the main select criteria of the ad-hoc data, a period. What I want to is something like:
    select * from table1 partition('partition_' || :PERIODSELECT), table2 partition('partition_' || :PERIODSELECT) where table1.id = table2.id
    However oracle does not accept this kind of naming.
    How can I make the selection of a partition dynamic?(Without hard-code it into a case statement since I don't want to add a case every month)
    Greetings, Olaf

    Your approach is wrong. Partitioning is a physical feature of the database. It has no place in SQL from the (logical) application layer.
    Does the application layer know whether the table is a hash table or an index organised table? Perhaps a clustered table? No. There's absolutely no need for the application layer to know the physical storage structures used by the database. And partitioning is a physical storage structure feature.
    Code plain normal application SQL - the Oracle CBO (Cost Based Optimiser) has all the intelligence and physical storage information required to make a proper decision on how to apply partition pruning to that application SQL.

  • A select from internal partition crashes Oracle

    I have the following INTERNAL partitioned table and local index by BUREAU_CODE:
    CREATE TABLE fin_mea (
        fin_mea_uid                    NUMBER NOT NULL,
        fiscal_month_uid               NUMBER NOT NULL,
        fiscal_year_uid                NUMBER NOT NULL,
        bureau_code                    VARCHAR2(3) NOT NULL,
        main_acct_code                 VARCHAR2(4),
        sub_acct_code                  VARCHAR2(3),
        net_amt                        NUMBER(23,2))
      PARTITION BY RANGE (fiscal_month_uid)
      INTERVAL (1)
      (PARTITION fmea_initial VALUES LESS THAN (200501) );
    CREATE INDEX fin_mea_bureau_idx ON fin_mea (bureau_code  ASC) LOCAL;
    When I try to select rows from non-existing partition with a condition which uses indexed column Oracle crashes with 'End of communication channel' error:
    SELECT * FROM fin_mea partition for (201301) a where a.bureau_code = 'ZZZ'
    The following one works even no rows selected:
    select * from (SELECT * FROM fin_mea partition for (201301)) a  where a.bureau_code = 'ZZZ';
    If I delete index then first query works with no problem:
    SELECT * FROM fin_mea partition for (201301) a where a.bureau_code = 'ZZZ'
    Is this a bug or am I doing something wrong?
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0

    The following is the full script. I renamed field names and removed tablespace section.
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 19 18:23:38 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> drop table fin_mea;
    Table dropped.
    SQL> CREATE TABLE tfs.fin_mea (
      2      fin_mea_uid          NUMBER NOT NULL,
      3      field2               NUMBER NOT NULL,
      4      fiscal_month_uid     NUMBER NOT NULL,
      5      field4               NUMBER NOT NULL,
      6      field5               NUMBER NOT NULL,
      7      field6               NUMBER NOT NULL,
      8      field7               NUMBER NOT NULL,
      9      field8               VARCHAR2(24) NOT NULL,
    10      field9               NUMBER NOT NULL,
    11      bureau_code          VARCHAR2(3) NOT NULL,
    12      field11              VARCHAR2(3),
    13      field12              VARCHAR2(3),
    14      field13              NUMBER(4),
    15      field14              NUMBER(4),
    16      field15              VARCHAR2(1),
    17      field16              VARCHAR2(4),
    18      field17              VARCHAR2(3),
    19      field18              NUMBER(4),
    20      field19              NUMBER(4),
    21      field20              NUMBER(5),
    22      field21              VARCHAR2(3),
    23      field22              VARCHAR2(2),
    24      field23              NUMBER(4),
    25      net_amt              NUMBER(23,2))
    26    PARTITION BY RANGE (fiscal_month_uid)
    27    INTERVAL (1)
    28    (PARTITION fmea_initial VALUES LESS THAN (200501) )
    29    PCTFREE     10
    30    INITRANS    1
    31    MAXTRANS    255
    32    NOCACHE
    33    MONITORING
    34    NOPARALLEL
    35    LOGGING
    36  /
    Table created.
    SQL>
    SQL> CREATE INDEX tfs.fin_mea_org_idx ON tfs.fin_mea LOCAL
      2    (bureau_code  ASC
      3    )
      4    PCTFREE     10
      5    INITRANS    2
      6    MAXTRANS    255
      7    NOPARALLEL
      8    LOGGING
      9  /
    Index created.
    SQL>
    SQL> SELECT * FROM fin_mea partition for (201301) a where a.bureau_code = 'ZZZ';
    SELECT * FROM fin_mea partition for (201301) a where a.bureau_code = 'ZZZ'
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel

  • Insert problem using a SELECT from table with a index by function TRUNC

    I came across this problem when trying to insert from a select statement, the select returns the correct results however when trying to insert the results into a table, the results differ. I have found a work around by forcing an order by on the select, but surely this is an Oracle bug as how can the select statements value differ from the insert?
    Platform: Windows Server 2008 R2
    Oracle 11.2.3 Enterprise edition
    (I have not tried to replicate this on other versions)
    Here are the scripts to create the two tables and source data:
    CREATE TABLE source_data
      ID                 NUMBER(2),
      COUNT_DATE       DATE
    CREATE INDEX IN_SOURCE_DATA ON SOURCE_DATA (TRUNC(count_date, 'MM'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120101', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120102', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120103', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120201', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120202', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120203', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120301', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120302', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120303', 'YYYYMMDD'));
    CREATE TABLE result_data
      ID                 NUMBER(2),
      COUNT_DATE       DATE
    );Now run the select statement:
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM')You should get the following:
    1     2012/02/01
    1     2012/03/01
    1     2012/01/01Now insert into the results table:
    INSERT INTO result_data
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM');Select from that table and you get:
    1     2012/03/01
    1     2012/03/01
    1     2012/03/01The most recent month is repeated for each row.
    Truncate your table and insert with the following statement and the results should now be correct:
    INSERT INTO result_data
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM')
    ORDER BY 1, 2;If anyone has encountered this behavior before could you please let me know, I can't see that I am making a mistake as the selects results are correct they should not differ from what is being inserted.
    Edited by: user11285442 on May 13, 2013 5:16 AM
    Edited by: user11285442 on May 13, 2013 6:15 AM

    Hi,
    welcome to the forum. I cannot reproduce the same behavior.
    Could you please post the SQLPlus output while executing all commands, like it has been done by S10390?
    Also post the output of the following command:
    SELECT * FROM v$version;When you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Formatted code is easier to read.
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Oracle External Table SELECT FROM problem from workstation

    At Solaris Oracle database server console.
    Created directory on the Solaris server as Oracle owner.
    As SYS created oracle directory object on that Solaris directory
    Granted read/write to SCHEMA_OWNER on that oracle directory object.
    Using OS Oracle user, moved a tab-delimited flat file into the Solaris directory.
    Logged on a SCHEMA_OWNER using SQLPLUS on the Solaris database server.
    Ran external table script in SQLPLUS.
    External table was created.
    Ran Select * from ext_table.
    Appropriate dataset returned.
    So at the Oracle Solaris server console,
    the create external table script worked without errors,
    and a select from statement on the external table worked without errors.
    Move to developer workstation:
    Logged on as SCHEMA_OWNER using SQLPLUS on Windows workstation.
    TNSNAMES of course points to the Solaris database server.
    Ran the external table script in SQLPLUS.
    External table was created.
    Ran Select * from ext_table.
    This failed with these errors:
    ORA29913 error executing ODCIEXTTABLEOPEN callout
    ORA29400 data cartridge error
    cant open logfile.log
    OS permission denied
    ORA06512 sys.oracle_loader line 19
    So how can I select from external tables from a windows workstation?
    Any guidance on this problem would be appreciated.

    Thank you for your response.
    I am not creating the external table on the workstation.
    In both cases,
    from the Solaris console
    and from the Windows workstation
    the external table is being created on the Solaris file system
    in an Oracle Directory object
    running an SQL script from SQLPLUS prompt.
    The external table creator, schema owner, has read and write permissions
    granted by SYS on the oracle directory object.
    The problem is:
    Logged in as the schema owner,
    you can select * from ext_table from the Solaris console SQLPLUS,
    but you can not select * from ext_table from the Windows workstation SQLPLUS.
    You can DROP TABLE ext_table from the Windows workstation SQLPLUS.
    You just cannot select * from ext_table from the Windows workstation SQLPLUS.
    I guess as a test,
    I can drop from the ext_table creation script the references
    to discardfile, badfile, and logfile,
    and remove this other file objects from the equation...
    which appears to be a file permissions problem.

  • Problem in selection from data base with RANGE-TABLE.

    Dear folks,
                   I am facing weird problem with range table in selection query.I have problem with bold part of code.Here when i give input to both ranges r_salesno,r_brandid then and the selection occurs ,when i put black in one of those it does not work.I haev passed Empty table to range if no inpiut in elements..although it does not work..I dont know why it is happening...By the i m using this code in Webdynpro ABAP.Please help points will be awarded..
    if  Stru_Cn_Selcrtr-ca_slsrl is not initial.
        wa_salesno-sign = 'I'.
        wa_salesno-option = 'EQ'.
        wa_salesno-LOW = Stru_Cn_Selcrtr-ca_slsrl.
        APPEND wa_salesno TO r_salesno.
        CLEAR : wa_salesno .
      else.
        wa_salesno-sign = 'I'.
        wa_salesno-option = 'EQ'.
        wa_salesno-LOW = space.
        APPEND wa_salesno TO r_salesno.
         CLEAR : wa_salesno .
      endif.
      if  Stru_Cn_Selcrtr-ca_brand is not initial.
        wa_brandid-sign = 'I'.
        wa_brandid-option = 'EQ'.
        wa_brandid-LOW = Stru_Cn_Selcrtr-ca_brand.
        APPEND  wa_brandid TO  r_brandid.
        CLEAR :  wa_brandid .
      else.
        wa_brandid-sign = 'I'.
        wa_brandid-option = 'EQ'.
         wa_brandid-LOW = space.
        APPEND wa_brandid  TO  r_brandid.
        CLEAR : wa_brandid  .
      endif.
    *If any of these are given then select data accordingly.
        <b>select * from ZNSLVWHDIMMD_LCL
                 into corresponding fields of table IT_VIEW
                 WHERE SALESRLNO in  r_salesno
    *             and   CREATEDBY in It_crtby_selopt
    *            and   STARTDATE in It_validfrm_selopt
    *             and   ENDDATE   in It_validto_selopt
    *             and  STATUS     in It_status_selopt1
                 and   BRANDID   in r_brandid.
    *             and   MODELNO   in It_model_selopt.</b>

    Hello Nirad
    Your coding is problematic. I assume that field SALESRLNO (of table ZNSLVWHDIMMD_LCL) probably means sales number (or sales order) and, thus, must not be empty. If this is correct then the first IF statement is probably wrong:
    if  Stru_Cn_Selcrtr-ca_slsrl is not initial.
        wa_salesno-sign = 'I'.
        wa_salesno-option = 'EQ'.
        wa_salesno-LOW = Stru_Cn_Selcrtr-ca_slsrl.
        APPEND wa_salesno TO r_salesno.
        CLEAR : wa_salesno .
      else.
        REFRESH: r_salesno.  " means: select all sales numbers
    " NOTE: If you fill the range like below this means that only sales order
    "            with no sales number (= ' ', space) should be select.
    " Thus, there will never be any sales order selected.
    *   wa_salesno-sign = 'I'.
    *   wa_salesno-option = 'EQ'.
    *   wa_salesno-LOW = space.
    *   APPEND wa_salesno TO r_salesno.
    *    CLEAR : wa_salesno .
      endif.
    The same logic applies to the second IF statement. If you want to select all BRANDID if none has been provided as selection criteria then code:
      if  Stru_Cn_Selcrtr-ca_brand is not initial.
        wa_brandid-sign = 'I'.
        wa_brandid-option = 'EQ'.
        wa_brandid-LOW = Stru_Cn_Selcrtr-ca_brand.
        APPEND  wa_brandid TO  r_brandid.
        CLEAR :  wa_brandid .
      else.
        REFRESH: r_brandid.  " means: select all BRANDID
    *    wa_brandid-sign = 'I'.
    *    wa_brandid-option = 'EQ'.
    *     wa_brandid-LOW = space.
    *    APPEND wa_brandid  TO  r_brandid.
    *    CLEAR : wa_brandid  .
      endif.
    Regards
      Uwe

  • Batch changes don't function. Apt 3.2. From simple commands like "rotate clockwise" to "lift and stamp" the command only affects to the last image in the group selected. Similar problems? Solutions?

    Batch changes don't function. From simple commands like "rotate clockwise" to "lift and stamp" the command only affects to the last image in the group selected. Similar problems? Solutions? Suggestions? Thanks, Bruce

    Glad it helped. Everyone has been bitten by this at one time or another. Fortunately you only get bit once
    Well if you haven't already read it two or three times the User manual is really very good. Apple really did a nice job with it. The on-line version is nice because it is searchable.
    After that the Apple Pro Training Series book Aperture 3 is very useful. Its basically split into three parts. The library, adjustments and sharing. In addition if you get all the way through it you can take the Certification test and become, well certified.
    Rwboyer who posts here on and off has a good site and a couple of ebooks that I found useful.
    good luck

  • PROBLEM WITH Select * from table_name with JDBC

    Hello,
    I am using thin driver. The problem that i am having is as
    follows.
    when i execute select * from any_table_name from within java
    code i only get FIRST row back. I am using Employee.java example.
    Is there something else i should do?
    Alex
    null

    Hi Alex,
    I am writing a client application with Java. Everything works
    really well, but - same problem as you had (I know, you solved it
    - that's why I'm writing :) - reading only first column. Actually
    it works fine on its own, but when embedded in my java app -
    that's when I get the first column displayed.
    Also executing "select * from emp;" gives me a sequence of
    numbers (displayed in columns) 20, 30, 30 etc, which are in fact
    present as one of the columns when running this query without
    java.
    I appreciate your help!
    Malgosia
    Alex Korneyev (guest) wrote:
    : Hello,
    : I am using thin driver. The problem that i am having is as
    : follows.
    : when i execute select * from any_table_name from within java
    : code i only get FIRST row back. I am using Employee.java
    example.
    : Is there something else i should do?
    : Alex
    null

  • Performance problem with select from _DIFF view

    Hi,
    we have a versioned table with more then one million records. We use the DBMS_WM.SetDiffVersions procedure and select from DIFF view to get data differences between two workspaces. The problem is that the select from the DIFF view is very slow. I takes more than 15 minutes. Has anybody an idea why it consumes so much time? Is there any way how to improve it?
    Thanks and regards
    Ondrej

    Hi,
    This can be due to any number of things, but is typically caused by an inefficient optimizer plan. Make sure that statistics on the _LT table have been recently analyzed.
    Also the following information would be useful:
    1. What is the relationship of the workspaces that you are trying to compare (parent/child, children of the same parent, etc) ?
    2. How many and of what type dml are being performed in the workspaces ?
    3. What version of Workspace Manager are you using and what is the version of the database ?
    4. What is the time needed to select from the _DIFF view based on the primary key ?
    Regards,
    Ben

  • Procedure with select from mysql db link problem

    Hi,
    first of all Oracle is new to me so if there are better ways to do this every suggestion would help.
    My problem is simple i cant use select from dblink inside a procedure.
    In Oralce SQL Developer 1.5.5:
    Im using oracle 11g and mysql 5.5.13 with mysql odbc 5.1
    in both db the user is root
    CREATE PUBLIC DATABASE LINK "MYSQL"
    CONNECT TO "root" IDENTIFIED BY "****"
    AUTHENTICATED BY "root" IDENTIFIED BY "****"
    USING 'mysql';
    select * from t1@mysql;
    run; -> result OK
    select "MAXID" from t1@mysql where "TNAME"='first';
    run; -> result OK
    create or replace
    PROCEDURE T1_IDS_PROC AS
    maxi number;
    BEGIN
    select "MAXID" into maxi from t1@mysql where "TNAME"='first';
    END T1_IDS_PROC;
    compile -> not working:
    Fehler(7,3): PL/SQL: SQL Statement ignored
    Fehler(7,47): PL/SQL: ORA-00904: "TNAME": unknown identifier
    How to solve this?

    Thanks for replay,
    yes the owner of the procedure can acces the remote table.
    I can use
    select count(*) into i from t1@mysql
    inside the procedure, but if i use specific columns inside the select i cant compile.
    Why i need double quote?
    I dont know if i need them but i read some tutorial for dblink to mysql and there was explanied
    Oracle use upercase names and Mysql is case sensitive for odbc 5.1 so i have to double qoute mysql names.
    But with or without double qoute it dont work inside procedures ;(

  • Problems managing select * from views

    Here a nice sample..
    I have a registered schema and a database with 8000 records.
    Create view first_search_view as
    select extractvalue(XML_CONTENT,'/word/@class') class,
    extractValue(xml_content, '/word/*/lemma/text()') lemma,
    extractValue(xml_content, '/word/*/adverb/form/w/text()') adverb_form,
    extractValue(xml_content, '/word/*/derivation/prebasuf/w/text()') derprebasuf,
    extractValue(xml_content, '/word/*/sense/comword/prebasuf/w/text()') comprebasuf,
    extract(xml_content, '/word/*/sense/collocation/pattern/w/text()').getstringval() colpattern,
    extract(xml_content, '/word/*/idiomExpr/pattern/w/text()') idiompattern,
    extract(xml_content, '/word/*/sense/model/realisation/modpattern/w/text()').getstringval() modpattern,
    extract(xml_content, '/word/*/sense/*/definition/w/text()').getstringval() definition,
    extract(xml_content, '/word/*/sense/description/characteristic/quality/w/text()').getstringval() descquality
    from xml_words
    all ok and infact
    SQL> desc first_search_view;
    Name Null? Type
    CLASS VARCHAR2(4000 CHAR)
    LEMMA VARCHAR2(4000)
    ADVERB_FORM VARCHAR2(4000)
    DERPREBASUF VARCHAR2(4000)
    COMPREBASUF VARCHAR2(4000)
    COLPATTERN VARCHAR2(4000)
    IDIOMPATTERN SYS.XMLTYPE
    MODPATTERN VARCHAR2(4000)
    DEFINITION VARCHAR2(4000)
    DESCQUALITY VARCHAR2(4000)
    But then, when I try to run just:
    Create table first_search as
    select *
    from first_search_view
    The answer is
    ERROR at line 3:
    ORA-19010: Cannot insert XML fragments
    I remove the XMLtype field... I think that it is probably the problem.
    Create table first_search as
    select lemma, adverb_form, DERPREBASUF, COMPREBASUF, COLPATTERN, MODPATTERN, DEFINITION, DESCQUALITY
    from first_search_view
    from first_search_view
    ERROR at line 3:
    ORA-19025: EXTRACTVALUE returns value of only one node
    but if I run the select....
    select lemma, adverb_form, DERPREBASUF, COMPREBASUF, COLPATTERN, MODPATTERN, DEFINITION, DESCQUALITY
    from first_search_view
    It is executed!!!
    There is something wrong.... Really I cannot understand the reason of this.
    Anyone could calrify what could be wrong?
    Stefano

    Stefano, since you did not post the latest xml instance, i have taken the one posted in your previous thread .
    So becuase of which i have to change the XPATH for "idiompattern" column to get some data.
    I too had the same problem as you have posted. But when i added a GetStringVal() method to the expression, it converts it to varchar data type and you are able to create the table. Also you can do GetClobVal if the string has chance to exceed 4000 characters. Later you can convert this to XMLTYPE when ever required.
    declare
      l_xml_data CLOB :=
      '<word class="adjective" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://words.xsd">
      <adjective id="de.a.warm.1">
      <lemma>warm</lemma>
      <morphology>
      <rawData>warm - wärmer - wärmst-</rawData>
      </morphology>
      <sense>
      <adjectiveSubsense>
      <definition>
      <rawData>Warm bedeutet, dass etwas eine relativ hohe Temperatur hat, aber nicht heiß ist.</rawData>
      </definition>
      <translation>
      <rawData>caldo</rawData>
      </translation>
      <example>
      <rawData>Angenehm warme Sommertemperaturen zwischen 24 und 26 Grad werden in der kommenden Woche erwartet. Es ist nicht übermäßig heiß, aber trotzdem warmes Badewetter.</rawData>
      </example>
      </adjectiveSubsense>
      <adjectiveSubsense>
      <definition>
      <rawData>Warm verwendet man für Essen, das gekocht und noch warm (1) ist.</rawData>
      </definition>
      <translation>
      <rawData>caldo</rawData>
      </translation>
      <example>
      <rawData>Das Essen steht auf dem Tisch! Würdest du bitte zu Tisch kommen, solange das Essen noch warm ist!~Ich komm ja gleich, ich muss nur noch schnell das Kapitel fertig lesen!</rawData>
      </example>
      </adjectiveSubsense>
      <insertElement target="field">de.a.warm.1.f1</insertElement>
      <collocation>
      <pattern>
      <rawData>jemdm. ist warm</rawData>
      </pattern>
      <translation>
      <rawData>qualcuno ha caldo</rawData>
      </translation>
      <example>
      <rawData>#Mir #ist #warm. Ich werde meinen Pullover ausziehen!</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>etw. ist angenehm warm</rawData>
      </pattern>
      <translation>
      <rawData>qualcosa è bello caldo</rawData>
      </translation>
      <example>
      <rawData>Der Tee ist nicht mehr zu heiß. #Er #ist #angenehm #warm und gerade richtig zum Trinken.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>es ist warm</rawData>
      </pattern>
      <translation>
      <rawData>fa caldo</rawData>
      </translation>
      <example>
      <rawData>Kaum scheint nach dem Sommergewitter wieder die Sonne, #ist #es sofort wieder #warm.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>ein warmes Bad nehmen</rawData>
      </pattern>
      <translation>
      <rawData>farsi un bagno caldo</rawData>
      </translation>
      <example>
      <rawData>Ich bin völlig durchnässt und erfroren nach Hause gekommen. Dann #habe ich #ein #warmes #Bad #genommen, um mich wieder aufzuwärmen.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>warm essen</rawData>
      </pattern>
      <translation>
      <rawData>fare un pasto caldo</rawData>
      </translation>
      <example>
      <rawData>In diesem Restaurant ist die Küche bis 23 Uhr geöffnet und man kann #warm #essen.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>etw. warm stellen</rawData>
      </pattern>
      <translation>
      <rawData>mettere in caldo qualcosa</rawData>
      </translation>
      <example>
      <rawData>Herr Tieser hat sich zum Abendessen verspätet und seine Familie hat mit dem Essen nicht auf ihn gewartet. Sie #haben ihm #das #Risotto jedoch #warm #gestellt.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>warmes Wasser</rawData>
      </pattern>
      <translation>
      <rawData>acqua calda</rawData>
      </translation>
      <example>
      <rawData>Die Hausverwaltung weist die Parteien darauf hin, dass wegen Reparaturarbeiten morgen zwischen 9 und 12 Uhr #das #warme #Wasser abgestellt wird.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>warme Tage, warme Luft, ein warmes Klima, ein warmer Winter, ein warmer Sommer ...</rawData>
      </pattern>
      <translation>
      <rawData>giornate calde, aria calda, un clima caldo, un inverno caldo, un''esate calda ...</rawData>
      </translation>
      <example>
      <rawData>Ich habe seit drei Tagen Kopfschmerzen. Vermutlich liegt das am Föhn und #dieser #warmen #Luft, die ich nicht vertrage.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>eine warme Mahlzeit, enie warme Speise, ein warmes Essen ...</rawData>
      </pattern>
      <translation>
      <rawData>un pasto caldo, un piatto caldo, un pasto caldo ...</rawData>
      </translation>
      <example>
      <rawData>Nachdem ich in den letzten Tagen immer nur Salat gegessen habe, freue ich mich heute wieder darauf, #eine #warme #Speise zu genießen.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>warme und kalte Küche</rawData>
      </pattern>
      <translation>
      <rawData>piatti caldi e freddi</rawData>
      </translation>
      <example>
      <rawData>Die Cafeteria der Uni bietet durchgehend #warme #Küche an.</rawData>
      </example>
      </collocation>
      </sense>
      <sense>
      <adjectiveSubsense>
      <definition>
      <rawData>Warm bedeutet, dass etwas so ist, dass es vor Kälte schützt.</rawData>
      </definition>
      <translation>
      <rawData>caldo</rawData>
      </translation>
      <example>
      <rawData>Die Schuhverkäuferin preist die neue Ware an: Die gefütterten Winterschuhe sind sehr warm. Sie werden nie wieder kalte Zehen bekommen!</rawData>
      </example>
      </adjectiveSubsense>
      <insertElement target="field">de.a.warm.1.f2</insertElement>
      <collocation>
      <pattern>
      <rawData>etw. hält warm</rawData>
      </pattern>
      <translation>
      <rawData>qualcosa tiene caldo</rawData>
      </translation>
      <example>
      <rawData>Die selbst gestrickten Socken sind zwar kratzig, aber #sie #halten ausgesprochen #warm!</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>sich warm anziehen</rawData>
      </pattern>
      <translation>
      <rawData>mettersi indumenti caldi~coprirsi bene</rawData>
      </translation>
      <example>
      <rawData>#Zieh #dich #warm an, wenn du bei dem Sturm hinausgehst, sonst verkühlst du dich noch!</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>sich warm zudecken</rawData>
      </pattern>
      <translation>
      <rawData>coprirsi bene</rawData>
      </translation>
      <example>
      <rawData>Nach der Gutenachtgeschichte macht Vati das Licht aus, #deckt #mich #warm #zu und wünscht mir süße Träume.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>warm angezogen sein</rawData>
      </pattern>
      <translation>
      <rawData>indossare vestiti caldi, essere coperto bene</rawData>
      </translation>
      <example>
      <rawData>Bei diesen arktischen Temperaturen ist es wichtig, dass man #warm #angezogen #ist, wenn man das Haus verlässt.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>warm eingepackt sein</rawData>
      </pattern>
      <translation>
      <rawData>essere imbacuccato, essere coperto bene</rawData>
      </translation>
      <example>
      <rawData>Die Kinder spielen auf dem Kinderspielplatz. Sie #sind wegen des kalten Wetters sehr #warm #eingepackt und haben Mütze, Schal und Handschuhe an.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>warme Kleidung</rawData>
      </pattern>
      <translation>
      <rawData>indumenti caldi</rawData>
      </translation>
      <example>
      <rawData>Ab Jänner ist die #warme Winterkleidung bereits im Ausverkauf und die Frühlingsmode erscheint in den Schaufenstern.</rawData>
      </example>
      </collocation>
      </sense>
      <sense>
      <adjectiveSubsense>
      <definition>
      <rawData>Warm bedeutet freundlich und dass es von Herzen kommt.</rawData>
      </definition>
      <translation>
      <rawData>caldo~caloroso</rawData>
      </translation>
      <example>
      <rawData>Frau Hanse ist eine warme Frau. Sie interessiert sich immer ehrlich für das Wohlbefinden ihrer Nachbarn und ihr Mitgefühl kommt von Herzen.</rawData>
      </example>
      </adjectiveSubsense>
      <insertElement target="field">de.a.warm.1.f3</insertElement>
      <collocation>
      <pattern>
      <rawData>ein warmes Herz</rawData>
      </pattern>
      <translation>
      <rawData>un cuore caldo</rawData>
      </translation>
      <example>
      <rawData>Auf Anne kann man immer zählen. Sie hat #ein #warmes #Herz, hört einem immer zu und ist bei jedem Spass dabei. Sie ist eine gute Freundin.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>warme Worte</rawData>
      </pattern>
      <translation>
      <rawData>parole calorose</rawData>
      </translation>
      <example>
      <rawData>#Die #warmen, verständnisvollen #Worte taten meiner Seele gut und munterten mich wieder auf.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>ein warmer Händedruck</rawData>
      </pattern>
      <translation>
      <rawData>una calorosa stretta di mano</rawData>
      </translation>
      <example>
      <rawData>#Mit #einem #warmen #Händedruck verabschiedeten sich die beiden Freunde herzlich voneinander.</rawData>
      </example>
      </collocation>
      </sense>
      <sense>
      <adjectiveSubsense>
      <definition>
      <rawData>Warm verwendet man für Farben und Licht, die kräftig sind und warm (1a) wirken und die eine angenehme Antmosphäre verbreiten.</rawData>
      </definition>
      <translation>
      <rawData>caldo</rawData>
      </translation>
      <example>
      <rawData>Die Farbpalette wird in kalte und warme Farben eingeteilt. Rot und orange sind zum Beispiel warme Farben.</rawData>
      </example>
      </adjectiveSubsense>
      <insertElement target="field">de.a.warm.1.f4</insertElement>
      <collocation>
      <pattern>
      <rawData>etw. spendet warmes Licht</rawData>
      </pattern>
      <translation>
      <rawData>qalcosa emette una luce calda</rawData>
      </translation>
      <example>
      <rawData>#Die #flackernde #Kerze #spendet #warmes #Licht und taucht den Raum in eine behagliche Atmosphäre.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>warme Farben</rawData>
      </pattern>
      <translation>
      <rawData>colori caldi</rawData>
      </translation>
      <example>
      <rawData>Der Innenarchitekt empfiehlt dem jungen Ehepaar, #warme #Farben für das Kinderzimmer zu wählen, da sie ein Bedürfnis nach Harmonie wecken.</rawData>
      </example>
      </collocation>
      <collocation>
      <pattern>
      <rawData>ein warmes Braun, ein warmes Rot ...</rawData>
      </pattern>
      <translation>
      <rawData>un marrone caldo, un rosso caldo ...</rawData>
      </translation>
      <example>
      <rawData>Der Sonnenuntergang war sehr romantisch. #Das #warme #Rot der Sonne hat sich im Meer gespiegelt. Schließlich ist sie wie ein großer Ball am Horizont verschwunden.</rawData>
      </example>
      </collocation>
      </sense>
      <sense>
      <adjectiveSubsense>
      <definition>
      <rawData>Warm bedeutet, dass die Kosten für die Heizung bei der Miete schon dabei ist.</rawData>
      </definition>
      <translation>
      <rawData>riscaldamento incluso</rawData>
      </translation>
      <example>
      <rawData>Roland erkundigt sich beim Vermieter über die Mietkosten. Dieser erklärt ihm, dass die Wohnung 800 Euro im Monat warm kostet.</rawData>
      </example>
      </adjectiveSubsense>
      <insertElement target="field">de.a.warm.1.f5</insertElement>
      <collocation>
      <pattern>
      <rawData>das Zimmer, die Wohnung ... kostet x Euro warm</rawData>
      </pattern>
      <translation>
      <rawData>la camera, l''appartamento ... costa x euro riscaldamento incluso</rawData>
      </translation>
      <example>
      <rawData>Ich habe ein neues Zimmer gemietet. Die Kosten für die Heizung sind schon inklusive. Es kostet also 300 Euro warm.</rawData>
      </example>
      </collocation>
      </sense>
      <derivation>
      <prebasuf>
      <rawData>auf_wärm_en</rawData>
      </prebasuf>
      <translation>
      <rawData>(ri)scaldare</rawData>
      </translation>
      </derivation>
      <derivation>
      <prebasuf>
      <rawData>die Er_wärm_ung</rawData>
      </prebasuf>
      <translation>
      <rawData>il riscaldamento</rawData>
      </translation>
      </derivation>
      <derivation>
      <prebasuf>
      <rawData>er_wärm_en</rawData>
      </prebasuf>
      <translation>
      <rawData>(ri)scaldare, appassionare</rawData>
      </translation>
      </derivation>
      <derivation>
      <prebasuf>
      <rawData>vor_wärm_en</rawData>
      </prebasuf>
      <translation>
      <rawData>preriscaldare</rawData>
      </translation>
      </derivation>
      <derivation>
      <prebasuf>
      <rawData>die Wärme</rawData>
      </prebasuf>
      <translation>
      <rawData>il caldo, il calore</rawData>
      </translation>
      </derivation>
      <derivation>
      <prebasuf>
      <rawData>wärmen</rawData>
      </prebasuf>
      <translation>
      <rawData>(ri)scaldare</rawData>
      </translation>
      </derivation>
      <idiomExpr>
      <pattern>
      <rawData>sich warm machen</rawData>
      </pattern>
      <explanationDE>
      <rawData>vor dem Sport oder vor einem Wettbewerb Gymnastik machen, um die Muskeln aufzulockern</rawData>
      </explanationDE>
      <explanationIT>
      <rawData>fare ginnastica per scigliere i muscoli prima di una gara sportiva</rawData>
      </explanationIT>
      <translation>
      <rawData>riscaldarsi, fare riscaldamento</rawData>
      </translation>
      <example>
      <rawData>In einer halben Stunde beginnt der Wettkampf. Davor muss ich #mich noch #warm #machen.</rawData>
      </example>
      </idiomExpr>
      <idiomExpr>
      <pattern>
      <rawData>sich warm reden</rawData>
      </pattern>
      <explanationDE>
      <rawData>beim Reden seine Befangenheit, Zurückhaltung verlieren</rawData>
      </explanationDE>
      <explanationIT>
      <rawData>vincere la timidezza e la riservatezza e iniziare a parlare con scorrevolezza</rawData>
      </explanationIT>
      <translation>
      <rawData>sciogliersi, sciogliere la lingua</rawData>
      </translation>
      <example>
      <rawData>Mein Vortrag war sehr gut. Nach nur fünf Minuten #hatte ich #mich #warm #geredet und dann habe ich über eine halbe Stunde fließend geredet.</rawData>
      </example>
      </idiomExpr>
      <idiomExpr>
      <pattern>
      <rawData>mit jemdm./etw. (nicht) warm werden</rawData>
      </pattern>
      <comment>
      <rawData>umgangssprachlich</rawData>
      </comment>
      <explanationDE>
      <rawData>mit jemdm./etw. (nicht) vertraut werden und (nicht) sympathisch finden</rawData>
      </explanationDE>
      <explanationIT>
      <rawData>(non) acquisire familiarità con qualcuno/qualcosa</rawData>
      </explanationIT>
      <translation>
      <rawData>(non) entrare in confidenza con qualcuno/(non) prendere confidenza con qualcosa</rawData>
      </translation>
      <example>
      <rawData>Zu Claudia habe ich noch immer kein herzliches Verhältnis gefunden. Ich #werde einfach #nicht #warm #mit #ihr.</rawData>
      </example>
      </idiomExpr>
      </adjective>
      </word>';
    begin
      insert into xml_table values(1, xmltype(l_xml_data));
    end;
    Create or replace view first_search_view as
    select extractvalue(xml_data,'/word/@class') class,
      extractValue(xml_data, '/word/*/lemma/text()') lemma,
      extractValue(xml_data, '/word/*/adverb/form/w/text()') adverb_form,
      extractValue(xml_data, '/word/*/derivation/prebasuf/w/text()') derprebasuf,
      extractValue(xml_data, '/word/*/sense/comword/prebasuf/w/text()') comprebasuf,
      extract(xml_data, '/word/*/sense/collocation/pattern/w/text()').getstringval() colpattern,
    extract(xml_data, '/word/*/idiomExpr/pattern').GetClobVal() idiompattern,
      extract(xml_data, '/word/*/sense/model/realisation/modpattern/w/text()').getstringval() modpattern,
      extract(xml_data, '/word/*/sense/*/definition/w/text()').getstringval() definition,
      extract(xml_data, '/word/*/sense/description/characteristic/quality/w/text()').getstringval() descquality
    from xml_table
    create table test_xml_table
    as
    select * from first_Search_view
    SQL> desc first_search_View
    Name                                                  Null?    Type
    CLASS                                                          VARCHAR2(4000)
    LEMMA                                                          VARCHAR2(4000)
    ADVERB_FORM                                                    VARCHAR2(4000)
    DERPREBASUF                                                    VARCHAR2(4000)
    COMPREBASUF                                                    VARCHAR2(4000)
    COLPATTERN                                                     VARCHAR2(4000)
    IDIOMPATTERN                                                   CLOB
    MODPATTERN                                                     VARCHAR2(4000)
    DEFINITION                                                     VARCHAR2(4000)
    DESCQUALITY                                                    VARCHAR2(4000)
    SQL> desc test_xml_table
    Name                                                  Null?    Type
    CLASS                                                          VARCHAR2(4000)
    LEMMA                                                          VARCHAR2(4000)
    ADVERB_FORM                                                    VARCHAR2(4000)
    DERPREBASUF                                                    VARCHAR2(4000)
    COMPREBASUF                                                    VARCHAR2(4000)
    COLPATTERN                                                     VARCHAR2(4000)
    IDIOMPATTERN                                                   CLOB
    MODPATTERN                                                     VARCHAR2(4000)
    DEFINITION                                                     VARCHAR2(4000)
    DESCQUALITY                                                    VARCHAR2(4000)
    SQL> set linesize 200
    SQL> column class format a20
    SQL> column idiompattern format a70
    SQL>
    SQL> select class,  idiompattern from test_xml_table
      2  /
    CLASS                IDIOMPATTERN
    adjective            <pattern>
                           <rawData>sich warm machen</rawData>
                         </pattern>
                         <pattern>
                           <rawData>sich warm reden</rawData>
                         </pattern>
                         <pattern>
                           <rawData>mit jemdm./etw. (nicht) warm werden</rawData>
                         </pattern>
    SQL>

  • Problem selecting from VIEW

    Hi All,
    I have to select from a maintenance view which is well defined (in ABAP DDIC).
    The problem is :
    <b>
    System is throwing a error saying the view is NOT defined in ABAP DDIC.
    </b>
    What can be the possible reason for this.
    Can we <b>NOT</b> select from maintainance views ?
    Please advice.
    Regards,
    Anirban

    HI,
      There is no harm in making use of view ...
    Can you please let us know the view which you are making use of ??
    Regards,
    Santosh

Maybe you are looking for

  • Using the same object in two actors at the same time

    Hello, I'm in doubt.  In my application, for example i have three Hardware classes - Database, DAQ1, DAQ2. Database class has one main method (except initialization methods) - Log Measure. DAQ1 class also has one method - Get Voltage, and DAQ2 class

  • How to index occurrences in the array

    Hi Is there a way how we can index each occurrence in the array? It seems that search ID Array  is once and I cannot figure out how to do it. Please advise Thanks in advance  Clement Solved! Go to Solution.

  • Too Long

    I arrived at the Atlanta Apple Store at 6:45AM; I walked out at 5:00PM. We noticed, when we got to the fron of the line (around 3:00 PM EDT), that Apple was servicing 12 customers/hour (4 people let in every 20 minutes). That was just pathetic. I'm f

  • Automated install scheme fails with stty: no such

    Hello, Can someone please help me out with my crafty scheme? I want to do a mass deployment of SunMC agents using both Jumpstart and web based deployment via N1SPS. I have gone so far as to have read the install guide for Sun MC 4 and it is already o

  • Upgrade to XI

    We have upgraded our environment to Acrobat Pro XI. We also use Sharepoint 2010. When using the "Save to an online account" function to save to a Sharepoint library we get the following error: "You cannot save to this location. Please choose another