Query not giving any result

SQL> set long 2000
SQL> select * from v$version;
select username from dba_users where username like '%KRO%';
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 IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
NLSRTL Version 10.2.0.4.0 - Production
SQL>
USERNAME
SUPRKRON
KRONREAD
SQL>
select sum(bytes/1024/1024/1024) from dba_segments where owner='SUPRKRON'SQL> ;
SUM(BYTES/1024/1024/1024)
3.62319946
SQL> select sum(bytes/1024/1024/1024) from dba_segments where owner='KRONREAD';
SUM(BYTES/1024/1024/1024)
-------------------------

user11919409 wrote:
SQL> set long 2000
SQL> select * from v$version;
select username from dba_users where username like '%KRO%';
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 IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
NLSRTL Version 10.2.0.4.0 - Production
SQL>
USERNAME
SUPRKRON
KRONREAD
SQL>
select sum(bytes/1024/1024/1024) from dba_segments where owner='SUPRKRON'SQL> ;
SUM(BYTES/1024/1024/1024)
3.62319946
SQL> select sum(bytes/1024/1024/1024) from dba_segments where owner='KRONREAD';
SUM(BYTES/1024/1024/1024)
-------------------------OK, KRONREAD does not own any objects.
a READONLY schema?

Similar Messages

  • Basic NOT EXISTS query not returning any results

    DB Version: 10gR2
    One of our tables in the test schema is having less number of columns than the PROD shema.
    To determine which are missing columns in this table in Test schema i did the following.
    -----In Test Schema
    CREATE TABLE XYZ2
    (COL1 NUMBER);        ----------only one column
    SQL > CREATE TABLE tables_test_list AS SELECT TABLE_NAME,COLUMN_NAME FROM USER_TAB_COLS;
    Table created.--- In the prod schema
    SQL> CREATE TABLE XYZ2
      2  (COL1 NUMBER,
      3  COL2 NUMBER       ----------- same table name with an extra column
      4  );
    Table createdAnd from the PROD schema i execute the following SQL to determine what are the columns that are missing in the TEST schema
    select column_name from User_Tab_Cols  outer
    where table_name='XYZ2'
    and not exists (select 1 from TEST_SCHEMA.tables_test_list inner where outer.TABLE_NAME=inner.TABLE_NAME )But the above query is not returning any results. Any idea why?

    Actually, the example from the link I posted earlier:
    [email protected]> (
      2  select 'IN T1, NOT T2', column_name,data_type,data_length
      3    from user_tab_columns
      4   where table_name = 'T1'
      5  MINUS
      6  select 'IN T1, NOT T2', column_name,data_type,data_length
      7    from user_tab_columns
      8   where table_name = 'T2'
      9  )
    10  UNION ALL
    11  (
    12  select 'IN T2, NOT T1', column_name,data_type,data_length
    13    from user_tab_columns
    14   where table_name = 'T2'
    15  MINUS
    16  select 'IN T2, NOT T1', column_name,data_type,data_length
    17    from user_tab_columns
    18   where table_name = 'T1'
    19  )
    20  /

  • Group by Query not giving desired results

    Hi,
    I've a requirement to find minimum month based on status:
    The following query is giving error :
    SELECT
              b.app_name,
              DECODE (a.status,
              'C','Closed',
              'O','Open',
              'F','Future',
              'W','Pending',
              'N','Not Opened') decode_status
              MIN(a.period_name)
    FROM     table a,
         table b
    WHERE     a.app_id     =     b.app_id
    AND          b.app_name      =     'NAME1'
    AND          a.book_id     =     &book_id
    AND          a.status      =      'O'
    GROUP BY      b.app_name,
              DECODE (a.status,
              'C','Closed',
              'O','Open',
              'F','Future',
              'W','Pending',
              'N','Not Opened') decode_status
    for ex: in the above query if I've four records with status 'O' and period_name as 'May-12', 'Jun-12','Jul-12' ,'Aug-12' then I need to pick 'May'
    Thanks,
    Kiran

    Hi, Kiran,
    user518071 wrote:
    Hi,
    I've a requirement to find minimum month based on status:
    The following query is giving error :
    SELECT
              b.app_name,
              DECODE (a.status,
              'C','Closed',
              'O','Open',
              'F','Future',
              'W','Pending',
              'N','Not Opened') decode_status
              MIN(a.period_name)
    FROM     table a,
         table b
    WHERE     a.app_id     =     b.app_id
    AND          b.app_name      =     'NAME1'
    AND          a.book_id     =     &book_id
    AND          a.status      =      'O'
    GROUP BY      b.app_name,
              DECODE (a.status,
              'C','Closed',
              'O','Open',
              'F','Future',
              'W','Pending',
              'N','Not Opened') decode_status
    for ex: in the above query if I've four records with status 'O' and period_name as 'May-12', 'Jun-12','Jul-12' ,'Aug-12' then I need to pick 'May'
    Thanks,
    KiranIt looks like you're almost there.
    If period_name is a DATE, then
    MIN (a.period_name)is finidng the earliest period name, such as 5 May 2012 17:03:49. If you just want to see 'May 2012', then change that to
    TO_CHAR ( MIN (a.period_name)
            , 'Mon YYYY'
            )If a.period_name is a VARCHAR2, then change it to a DATE. The best way to do this is permanently. There is no reason to store date information in VARCHAR2 columns. Oracle supplies DATE columns; there's no extra cost for using them. DATE columns were designed for storing date information, use them to do that.
    if you must keep your date information in VARCHAR2 a column, then use TO_DATE in the query. It will be slow, and you'll have run-time errors if any of the information is in the wrong format. That's what happens when you store date information in VARCHAR2 columns.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.
    See the forum FAQ {message:id=9360002}

  • Query not executing any results

    Hi,
    I have created a Custom Virtual Cube with a custom function module. This Cube displays data when i check it through the transaction code - LISTCUBE.
    I have a query which has to be executed on this Virtual Cube. When i execute this Query , it does not display any data at all. It always displays "No applicable data found".
    I have tried with the combination of inputs for which the data is available in the cube. but still it gives "No applicable data found".
    Can someone suggest me what i have to do to correct this problem.
    Thanks
    Maddy

    Hi Maddy,
    I also encountered similar problem in BI 7.0, which doesn't happen in BW 3.5, though I was using Basic Cube, not Virtual Cube. I could finally work it out. Here are the steps I used:
    - Right click on the InfoCube > choose "Manage".
    - In the "Requests" tab, click the traffic light button in the "Request Status" column, set it to "Status OK".
    - The "Request for Reporting Available" column will show the "Request is available for reporting" icon automatically.
    - Try to execute your query again.
    Hope this might be relevant to your situation as well.
    Regards,
    arie

  • MIX sale return problem(query not giving required result)

    i have written following query which is running sucessfully.the concept behind this query is to get a exact quantity of sold items after subtracting the sale return from the sale.now the problem is that when user take sale return against invoice then this query providing ok result but when user take sale return against MIX items not knowing exactly the invoice then query is not showing result means not subtracting MIX sale from sale.please help me to get required result from this query.
    i m using oracle 9i with developer 6i
    select s.price,s.item_code,S.DESCR,
    sum(decode(d.MONno,01,NVL(S.QTY,0),0)) JAN,
    sum(decode(d.MONno,02,NVL(S.QTY,0),0)) FEB,
    sum(decode(d.MONno,03,NVL(S.QTY,0),0)) MAR,
    sum(decode(d.MONno,04,NVL(S.QTY,0),0)) APR,
    sum(decode(d.MONno,05,NVL(S.QTY,0),0)) MAY,
    sum(decode(d.MONno,06,NVL(S.QTY,0),0)) JUN,
    sum(decode(d.MONno,07,NVL(S.QTY,0),0)) JULY,
    sum(decode(d.MONno,08,NVL(S.QTY,0),0)) AUG,
    sum(decode(d.MONno,09,NVL(S.QTY,0),0)) SEP,
    sum(decode(d.MONno,10,NVL(S.QTY,0),0)) OCT,
    sum(decode(d.MONno,11,NVL(S.QTY,0),0)) NOV,
    sum(decode(d.MONno,12,NVL(S.QTY,0),0)) DEC,
    sum(S.qty) TU
    FROM
    (select nvl(sales_detail.qty,0)+NVL(sales_detail.bonus,0) as qty,
    sales_detail.item_code AS ITEM_CODE,stock_reg.price price,
    stock_reg.descr AS descr,
    s_date as sale_date FROM
    SALES_DETAIL,SALES_HEADER,STOCK_REG
    WHERE SALES_DETAIL.S_ID = SALES_HEADER.S_ID AND
    SALES_DETAIL.STOCKCODE = STOCK_REG.STOCKCODE AND
    STOCK_REG.COMCODE=:COM AND
    STOCK_REG.GROUPID = :GID
    UNION ALL
    SELECT -1*QTY,ITEM_CODE,PRICE,DESCR,SALE_DATE FROM
    (select nvl(sales_detailR.qty,0)+NVL(sales_detailR.bonus,0) as qty,
    sales_detailR.item_code AS ITEM_CODE,stock_reg.price as price,
    stock_reg.descr AS descr,
    RETURN_date as sale_date FROM
    SALES_DETAILR,SALES_HEADERR,STOCK_REG
    WHERE SALES_DETAILR.SR_ID = SALES_HEADERR.SR_ID AND
    SALES_DETAILR.STOCKCODE = STOCK_REG.STOCKCODE AND
    STOCK_REG.COMCODE=:COM AND
    STOCK_REG.GROUPID = :GID
    UNION ALL
    select  -1nvl(sales_detailR.qty,0)+NVL(sales_detailR.bonus,0) as qty,*
    sales_detailR.item_code AS ITEM_CODE,stock_reg.price as price,
    stock_reg.descr AS descr,
    RETURN_date as sale_date  FROM
    SALES_DETAILR,SALES_HEADERR,STOCK_REG
    WHERE SALES_DETAILR.SR_ID = SALES_HEADERR.SR_ID AND
    SALES_DETAILR.STOCKCODE = STOCK_REG.STOCKCODE AND
    SALES_HEADERR.S_ID = 'MIX' AND
    STOCK_REG.COMCODE=:COM AND
    STOCK_REG.GROUPID = :GID)) S,
    (select level as MONno
    from dual
    connect by level <= 12) d
    where d.MONno = to_char(s.sALE_date, 'MM') AND trunc(S.SALE_DATE,'MONTH') BETWEEN TO_DATE(:FDATE,'MMYY') AND TO_DATE(:TDATE,'MMYY')
    GROUP BY S.ITEM_CODE,S.DESCR,S.PRICE
    ORDER BY S.DESCR ASC

    Gaurav,
    Can you print all the binding variables and update the ouput here.
    And I didn't get this date format 'dd-mon-rrrr', normally it will be like 'dd-mon-yyyy' right?
    Thanks,
    With regards,m
    Kali.
    OSSI.

  • Query not showing any results - Urgent

    Hi all,
    I am running a query on the project dates (0PS_C05), although there is data in the cube , the query says no applicable data found, although there is no filter for the object ( Origin - 0DATE_SRCE ) in the query definition , but when the query is run , It is shown as filtered by value 1, can there be any hidden filters.
    Thanks

    Hi,
    Another way to check is to create a copy of the query. Now on the copied version, simply remove the keyfigures/chars one by one as you execute the query.
    One way or the other, you will see the culprit filter in your query...
    If helpful, please grant points...
    Regards,
    --Jkyle

  • Query not giving the correct result

    select Project_id, contractno
    from elf_transactions
    where(rtrim(contractno),rtrim(project_id)) not in
    (select rtrim(contractno),rtrim(projectid)
    from contract_proj
    where report_month='1-May-2007' )
    when I m firing this query, it is not giving correct result to me, it also select the recorts which are matches in both the table
    i want to fine out those contract, with projectid which are not in contract_proj table
    Please help me in this regard

    CREATE TABLE ELF_TRANSACTIONS
    VENDOR_ORDER_REF VARCHAR2(60 BYTE),
    BT_SUB_CON_REF VARCHAR2(10 BYTE),
    PR_NO VARCHAR2(15 BYTE),
    PO_NO VARCHAR2(15 BYTE),
    PR_PO_DESCR VARCHAR2(200 BYTE),
    ONE_IT_PROG VARCHAR2(50 BYTE),
    BT_DEL_MANAGER_NAME VARCHAR2(40 BYTE),
    DELIVERY_TYPE VARCHAR2(5 BYTE),
    ACTUAL_DEP_DATE DATE,
    ASSOC_ASG_BR_QUE VARCHAR2(50 BYTE),
    PRE_AVG_P1_P2_INC_CNT NUMBER(3),
    POST_P1_P2_INC NUMBER(3),
    PERC_GROWTH_POST_REL NUMBER(3),
    VENDOR_DEL_MANAGER VARCHAR2(50 BYTE),
    REPORT_MONTH DATE,
    COMMENTS VARCHAR2(200 BYTE),
    PROJECT_ID VARCHAR2(20 BYTE),
    CONTRACTNO VARCHAR2(15 BYTE),
    CONTRACT_TYPE NVARCHAR2(15),
    IDUNO VARCHAR2(10 BYTE),
    STATUS VARCHAR2(10 BYTE),
    DESCRIPTIONCODEDELIVERABLE VARCHAR2(255 BYTE),
    UNIQUEID VARCHAR2(255 BYTE),
    LOCK_RECORD CHAR(1 BYTE),
    VERIFIED CHAR(1 BYTE),
    VERIFIED_BY VARCHAR2(40 BYTE),
    BT_VERIFIED CHAR(1 BYTE),
    BT_VERIFIED_BY VARCHAR2(40 BYTE)
    CREATE TABLE CONTRACT_PROJ
    CONTRACTNO VARCHAR2(10 BYTE),
    PROJECTID VARCHAR2(20 BYTE),
    IDUNO VARCHAR2(10 BYTE),
    CH_EMPID VARCHAR2(8 BYTE),
    CHNAME VARCHAR2(40 BYTE),
    GH_EMPID VARCHAR2(8 BYTE),
    GHNAME VARCHAR2(40 BYTE),
    PM_EMPID VARCHAR2(8 BYTE),
    PMNAME VARCHAR2(40 BYTE),
    SPM_EMPID VARCHAR2(8 BYTE),
    SPMNAME VARCHAR2(40 BYTE),
    PRJ_MONTH DATE,
    BT_CONTRACT CHAR(1 BYTE)
    REPORT_MONTH     COMMENTS     PROJECT_ID     CONTRACTNO     CONTRACT_TYPE     IDUNO     STATUS     DESCRIPTIONCODEDELIVERABLE     UNIQUEID
    06/01/2007 00:00:00          1287     TML007452               OPEN     Delivery of CRs DM CD and NSI     N/A
    06/01/2007 00:00:00          1280     TML007452               OPEN     Delivery of CRs H&W OOR and WLTO     N/A
    06/01/2007 00:00:00          1231     TML007452               OPEN     Delivery of CRs H&W OOR WLTO     
    06/01/2007 00:00:00          1097     TML007679               OPEN     High Level Roadmap for Global Services and Wholesale with Feasibility study into BTR access to Switc     N/A
    06/01/2007 00:00:00          405     TML007942               OPEN     RTRCC DEVELOPMENT -Q107     
    06/01/2007 00:00:00          405     TML007919               OPEN     WLR3 DEVELOPMENT-Q107     
    06/01/2007 00:00:00          1170     TML008439               OPEN     R-510     
    CONTRACTNO     PROJECTID     IDUNO     CH_EMPID     CHNAME     GH_EMPID     GHNAME     PM_EMPID     PMNAME     SPM_EMPID     SPMNAME     PRJ_MONTH     BT_CONTRACT
    MBT003060     176     BT06     8694     Soman Sameer Surendra     1054     Bhadti Shripad Shivram     1054     Bhadti Shripad Shivram     1420     Rao Darbhamulla Kameswara     05/01/2007 00:00:00     N
    MBT003842     1156     BT12     19992     Kalle Ajit Ashutosh     1539     Padgaonkar Shailesh Vishwanath     13948     Khunte Milind Vasant     16426     Kulkarni Vinay     05/01/2007 00:00:00     Y
    MBT004677     458     BT09     20275     Mundassery George     5044     Kamalapurkar Leena Shrinivas     12849     Dave Ajay Yogeshchandra     2017     KIRKIRE SONAL MADHUKAR     05/01/2007 00:00:00     N
    MBT004695     362     BT13     20276     Ghosh Sankar     2624     Avachat Jagdish Vasantrao     13592     Pal Sudipta     2624     Avachat Jagdish Vasantrao     05/01/2007 00:00:00     N
    MBT004826     VITRIA     BT09     20275     Mundassery George     26099     Saha Debendra Kumar     28134     Hinge Anand Sharad     12777     Karandikar Sumedh Vidyadhar     05/01/2007 00:00:00     Y
    MBT004924     1027     BT03     1451     Tillu Ashirwad     15693     Devaraj Daniel G     6867     Jadhav Satyajit Ramesh     15693     Devaraj Daniel G     05/01/2007 00:00:00     N
    MBT004927     1025     BT05     4436     Kelkar Subhash Manohar     20379     Gore Sujeet Narayan     13704     Vignesh Chandrasekaran     4347     BIJNORI REHANA GULAMWARIS     05/01/2007 00:00:00     N
    MBT004927     1092     BT05     4436     Kelkar Subhash Manohar     15094     Jain Jitendra     13350     Bokil Shripad Raghunath     9511     Markande Balchandra Narayan     05/01/2007 00:00:00     N
    MBT004927     1213     BT09     20275     Mundassery George     19996     Vege Sridhar     16401     Sibgathulla Mohammed     19996     Vege Sridhar     05/01/2007 00:00:00     N

  • Search Query not showing up results

    Hi ,
    I m firing a UCM query using the UCM admin console ,something like xLanguage <contains> `it-IT`,but it is not returning any results,although the content matching this condition exists in the content server in Released state.I have also rebuild the search indexes.
    I m not seeing any errors in the logs as well.
    Can anyone tell me what might be going wrong here and what more can i do to debug this.

    If this is Oracle Text Search, you might be hitting a stop word. ('It' would likely be considered a stop word.)
    Try searching using Repository Manager. If the document returns, then in the web ui, try enclosing the search phrase in braces
    xLanguage <contains> `{it-IT}`

  • Bing based federated result sources not returning any results for non-English languages

    I have a result source with this query:
    http://www.bing.com/search?q={?searchterms}  language:fr site:msdn.microsoft.com&format=rss&count=50&first={startIndex}
    This used to give me 40-50 results for common terms like download, blog etc.
    From today (7/14) IST, this source does not return any results. There are no results if I execute this query directly in IE either.
    Same behavior observed for: language:es, language:de etc.
    I do however get results as expected for language:en.
    Any idea what the issue might be?

    Hi Swapnil,
    According to your description, my understanding is that no results returned when searching with non-English in the Result Source query.
    I tested the same scenario per your post and I got the same results as you got.
    I recommend to change the language:fr in the Result Source query to be lang=fr to see if the issue still occurs.
    More references:
    http://kbdump.com/sharepoint-2013-opensearch-search-twitter-facebook-wikipedia-page/
    http://richardstk.com/2013/11/08/sharepoint-2013-federated-search-to-bing/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • XQuery not returning any results when doc contains ENTITY refs

    Dear Forum members,
    I am a bdbxml newbie so please be gentle.
    I am trying to run xqueries against a TEI P5 document on bdxml 2.4.13 using Oxygen 9 (I'm also using Python and the API - it's not working either)
    My XML contains transcripts of poems written in medieval Welsh. There are a lot of Entity references which I am including at the start of the document as:
    <?oxygen RNGSchema="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/teilite.rng" type="xml"?>
    <!DOCTYPE TEI [
    <!ENTITY aacute     "&#x00E1;"> <!-- LATIN SMALL LETTER A WITH ACUTE -->
    <!ENTITY Aacute     "&#x00C1;"> <!-- LATIN CAPITAL LETTER A WITH ACUTE -->
    <!ENTITY acirc     "&#x00E2;"> <!-- LATIN SMALL LETTER A WITH CIRCUMFLEX -->
    <!ENTITY Acirc     "&#x00C2;"> <!-- LATIN CAPITAL LETTER A WITH CIRCUMFLEX -->
    <!ENTITY agrave     "&#x00E0;"> <!-- LATIN SMALL LETTER A WITH GRAVE -->
    <!ENTITY Agrave     "&#x00C0;"> <!-- LATIN CAPITAL LETTER A WITH GRAVE -->
    <!ENTITY aring     "&#x00E5;"> <!-- LATIN SMALL LETTER A WITH RING ABOVE -->
    <!ENTITY Aring     "&#x00C5;"> <!-- LATIN CAPITAL LETTER A WITH RING ABOVE -->
    <!ENTITY atilde     "&#x00E3;"> <!-- LATIN SMALL LETTER A WITH TILDE -->
    <!ENTITY Atilde     "&#x00C3;"> <!-- LATIN CAPITAL LETTER A WITH TILDE -->
    <!ENTITY auml     "&#x00E4;"> <!-- LATIN SMALL LETTER A WITH DIAERESIS -->
    <!ENTITY Auml     "&#x00C4;"> <!-- LATIN CAPITAL LETTER A WITH DIAdERESIS -->
    <!ENTITY aelig     "&#x00E6;"> <!-- LATIN SMALL LETTER AE -->
    <!ENTITY AElig     "&#x00C6;"> <!-- LATIN CAPITAL LETTER AE -->
    <!ENTITY ccedil     "&#x00E7;"> <!-- LATIN SMALL LETTER C WITH CEDILLA -->
    <!ENTITY Ccedil     "&#x00C7;"> <!-- LATIN CAPITAL LETTER C WITH CEDILLA -->
    <!ENTITY eth     "&#x00F0;"> <!-- LATIN SMALL LETTER ETH -->
    <!ENTITY ETH     "&#x00D0;"> <!-- LATIN CAPITAL LETTER ETH -->
    <!ENTITY eacute     "&#x00E9;"> <!-- LATIN SMALL LETTER E WITH ACUTE -->
    <!ENTITY Eacute     "&#x00C9;"> <!-- LATIN CAPITAL LETTER E WITH ACUTE -->
    <!ENTITY ecirc     "&#x00EA;"> <!-- LATIN SMALL LETTER E WITH CIRCUMFLEX -->
    <!ENTITY Ecirc     "&#x00CA;"> <!-- LATIN CAPITAL LETTER E WITH CIRCUMFLEX -->
    <!ENTITY egrave     "&#x00E8;"> <!-- LATIN SMALL LETTER E WITH GRAVE -->
    <!ENTITY Egrave     "&#x00C8;"> <!-- LATIN CAPITAL LETTER E WITH GRAVE -->
    <!ENTITY euml     "&#x00EB;"> <!-- LATIN SMALL LETTER E WITH DIAERESIS -->
    <!ENTITY Euml     "&#x00CB;"> <!-- LATIN CAPITAL LETTER E WITH DIAERESIS -->
    <!ENTITY iacute     "&#x00ED;"> <!-- LATIN SMALL LETTER I WITH ACUTE -->
    <!ENTITY Iacute     "&#x00CD;"> <!-- LATIN CAPITAL LETTER I WITH ACUTE -->
    <!ENTITY icirc     "&#x00EE;"> <!-- LATIN SMALL LETTER I WITH CIRCUMFLEX -->
    <!ENTITY Icirc     "&#x00CE;"> <!-- LATIN CAPITAL LETTER I WITH CIRCUMFLEX -->
    <!ENTITY igrave     "&#x00EC;"> <!-- LATIN SMALL LETTER I WITH GRAVE -->
    <!ENTITY Igrave     "&#x00CC;"> <!-- LATIN CAPITAL LETTER I WITH GRAVE -->
    <!ENTITY iuml     "&#x00EF;"> <!-- LATIN SMALL LETTER I WITH DIAERESIS -->
    <!ENTITY Iuml     "&#x00CF;"> <!-- LATIN CAPITAL LETTER I WITH DIAERESIS -->
    <!ENTITY ntilde     "&#x00F1;"> <!-- LATIN SMALL LETTER N WITH TILDE -->
    <!ENTITY Ntilde     "&#x00D1;"> <!-- LATIN CAPITAL LETTER N WITH TILDE -->
    <!ENTITY oacute     "&#x00F3;"> <!-- LATIN SMALL LETTER O WITH ACUTE -->
    <!ENTITY Oacute     "&#x00D3;"> <!-- LATIN CAPITAL LETTER O WITH ACUTE -->
    <!ENTITY ocirc     "&#x00F4;"> <!-- LATIN SMALL LETTER O WITH CIRCUMFLEX -->
    <!ENTITY Ocirc     "&#x00D4;"> <!-- LATIN CAPITAL LETTER O WITH CIRCUMFLEX -->
    <!ENTITY ograve     "&#x00F2;"> <!-- LATIN SMALL LETTER O WITH GRAVE -->
    <!ENTITY Ograve     "&#x00D2;"> <!-- LATIN CAPITAL LETTER O WITH GRAVE -->
    <!ENTITY oslash     "&#x00F8;"> <!-- CIRCLED DIVISION SLASH -->
    <!ENTITY Oslash     "&#x00D8;"> <!-- LATIN CAPITAL LETTER O WITH STROKE -->
    <!ENTITY otilde     "&#x00F5;"> <!-- LATIN SMALL LETTER O WITH TILDE -->
    <!ENTITY Otilde     "&#x00D5;"> <!-- LATIN CAPITAL LETTER O WITH TILDE -->
    <!ENTITY ouml     "&#x00F6;"> <!-- LATIN SMALL LETTER O WITH DIAERESIS -->
    <!ENTITY Ouml     "&#x00D6;"> <!-- LATIN CAPITAL LETTER O WITH DIAERESIS -->
    <!ENTITY szlig     "&#x00DF;"> <!-- LATIN SMALL LETTER SHARP S -->
    <!ENTITY thorn     "&#x00FE;"> <!-- LATIN SMALL LETTER THORN -->
    <!ENTITY THORN     "&#x00DE;"> <!-- LATIN CAPITAL LETTER THORN -->
    <!ENTITY uacute     "&#x00FA;"> <!-- LATIN SMALL LETTER U WITH ACUTE -->
    <!ENTITY Uacute     "&#x00DA;"> <!-- LATIN CAPITAL LETTER U WITH ACUTE -->
    <!ENTITY ucirc     "&#x00FB;"> <!-- LATIN SMALL LETTER U WITH CIRCUMFLEX -->
    <!ENTITY Ucirc     "&#x00DB;"> <!-- LATIN CAPITAL LETTER U WITH CIRCUMFLEX -->
    <!ENTITY ugrave     "&#x00F9;"> <!-- LATIN SMALL LETTER U WITH GRAVE -->
    <!ENTITY Ugrave     "&#x00D9;"> <!-- LATIN CAPITAL LETTER U WITH GRAVE -->
    <!ENTITY uuml     "&#x00FC;"> <!-- LATIN SMALL LETTER U WITH DIAERESIS -->
    <!ENTITY Uuml     "&#x00DC;"> <!-- LATIN CAPITAL LETTER U WITH DIAERESIS -->
    <!ENTITY yacute     "&#x00FD;"> <!-- LATIN SMALL LETTER Y WITH ACUTE -->
    <!ENTITY Yacute     "&#x00DD;"> <!-- LATIN CAPITAL LETTER Y WITH ACUTE -->
    <!ENTITY yuml     "&#x00FF;"> <!-- LATIN SMALL LETTER Y WITH DIAERESIS -->
    <!ENTITY lab "<">
    <!ENTITY rab ">">
    <!ENTITY amp "&amp;">
    <!ENTITY dash "-">
    <!ENTITY delta "d">
    <!ENTITY macron "-">
    <!ENTITY mdash "-">
    <!ENTITY nbsp "">
    <!ENTITY pound "">
    <!ENTITY cdb "c">
    <!ENTITY ddb "d">
    <!ENTITY ldb "l">
    <!ENTITY rdb "r">
    <!ENTITY udb "u">
    <!ENTITY umac "u">
    <!ENTITY wacute "w">
    <!ENTITY wcirc "w">
    <!ENTITY Wcirc "W">
    <!ENTITY ycirc "y">
    <!ENTITY Ycirc "Y">
    <!ENTITY vbar "vbar">
    ]>
    <TEI xmlns="http://www.tei-c.org/ns/1.0">
    <teiHeader>
    <fileDesc>
    <titleStmt>
    <title>...
    When I try an run a simple xquery like //TEI I'm not get any results. However, if I hack the XML source to remove all entity references, remove the ENTITY declarations and reload the document into bdbxml then the xqueries work. Can anyone offer any insght into why this situation may have arisen and how I might get around it? It seems as if the presence of the ENTITY declarations is somehow effecting the internal index...
    all help appreciated,
    AL

    Big thanks to John,
    I've been a typical newbie and not really understood everything implied by John's very helpful answer in this thread. Now that I now understand how to reference namespaces correctly, John's previous answer really does hit the mark.
    Big thanks
    Here is the working code. The important thing to remember for any other newbies is to always preface the query with the namespace - which I was not doing.
    declare namespace tei="http://www.tei-c.org/ns/1.0";
    doc("source.xml")//tei:body
    or
    declare namespace tei="http://www.tei-c.org/ns/1.0";
    doc("source.xml")//tei:head
    etc.

  • Xquery does not return any results on 10.2.0.4, does work on 10.2.0.5

    I have a Xquery statement that works as expected on Oracle 10.2.0.5 but does not return any results on Oracle 10.2.0.4.
    Is this the result of a badly written query? A bug in 10.2.0.4?
    Is there a way to rewrite the query so that is does work on 10.2.0.4?
    Testcode:
    declare
       l_xml xmltype;
       -- Select layers with TileMatrixSet EPSG:28992
       cursor c_layer(p_xml xmltype) is
          select t.*
            from xmltable(xmlnamespaces(default 'http://www.opengis.net/wmts/1.0'
                                       ,'http://www.opengis.net/ows/1.1' as "ows"
                                        ,'http://schemas.opengis.net/gml' as "gml"
                                        ,'http://www.w3.org/1999/xlink' as "xlink"
                                        ,'http://www.w3.org/2001/XMLSchema-instance' as "xsi")
                          ,'for $d in //Layer[TileMatrixSetLink/TileMatrixSet="EPSG:28992"] return $d' passing
                          p_xml columns title varchar2(100) path 'ows:Title'
                          ,format varchar2(100) path 'Format'
                          ,style xmltype path 'Style') as t;
    begin
       l_xml := xmltype.createxml('<?xml version="1.0" encoding="UTF-8"?>
    <Capabilities xmlns="http://www.opengis.net/wmts/1.0"
    xmlns:ows="http://www.opengis.net/ows/1.1"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd"
    version="1.0.0">
    <Contents>
      <Layer>
        <ows:Title>brtachtergrondkaart</ows:Title>
        <ows:Identifier>brtachtergrondkaart</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
      <Layer>
        <ows:Title>top10nl</ows:Title>
        <ows:Identifier>top10nl</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
      <Layer>
        <ows:Title>bgt</ows:Title>
        <ows:Identifier>bgt</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
    </Contents>
    </Capabilities>');
       for r_layer in c_layer(l_xml)
       loop
          dbms_output.put_line(r_layer.title);
       end loop;
    end;Result on 10.2.0.5:
    brtachtergrondkaart
    top10nl
    bgt

    This one's strange indeed.
    I can reproduce on 10.2.0.4 and one of the following seems to fix it :
    1) Specifying the column list in the SELECT, instead of t.* :
       -- Select layers with TileMatrixSet EPSG:28992
       cursor c_layer(p_xml xmltype) is
          select t.title, t.format, t.style
            from xmltable(or,
    2) Using an extended FLWOR expression :
    for $d in //Layer
    where $d/TileMatrixSetLink/TileMatrixSet = "EPSG:28992"
    return $dMaybe you've already noticed but the problem only occurs within a PL/SQL context.
    The same query run from SQL is OK.

  • Query not returning any rows?

    hi experts,
    My query running long but not returning any result. i have data , no locks on the tables.
    i have bigger ( hardware ) database on different server , where I can get results with same query.
    Can you tell me what are the DB settings i have to look at to resolve this issue?
    ( any sql query that can monitor these parameters ?)
    (the tabels involved in this query has 33milliions, 2millions, 7 milllions )
    Thanks ..
    Edited by: 642877 on Sep 21, 2011 6:46 PM

    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE     11.2.0.2.0     Production"
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    ==========================================================
    Plan hash value: 3185710999
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
    | 0 | SELECT STATEMENT | | 3 | 423 | 24592 (2)| 00:05:45 | | |
    | 1 | HASH GROUP BY | | 3 | 423 | 24592 (2)| 00:05:45 | | |
    | 2 | NESTED LOOPS | | | | | | | |
    | 3 | NESTED LOOPS | | 3 | 423 | 24591 (2)| 00:05:45 | | |
    | 4 | NESTED LOOPS | | 3 | 345 | 24585 (2)| 00:05:45 | | |
    | 5 | NESTED LOOPS | | 1 | 84 | 21916 (2)| 00:05:07 | | |
    | 6 | NESTED LOOPS | | 1 | 67 | 21915 (2)| 00:05:07 | | |
    | 7 | PARTITION LIST ALL | | 2 | 60 | 21913 (2)| 00:05:07 | 1 | 11 |
    |* 8 | TABLE ACCESS FULL | ART_CRDT_ACCT_FACT | 2 | 60 | 21913 (2)| 00:05:07 | 1 | 11 |
    |* 9 | TABLE ACCESS BY INDEX ROWID| ART_PRTFOL_GRP_DIM | 1 | 37 | 1 (0)| 00:00:01 | | |
    |* 10 | INDEX UNIQUE SCAN | ART_PRTFOL_GRP_DIM_INDEX1 | 1 | | 0 (0)| 00:00:01 | | |
    | 11 | TABLE ACCESS BY INDEX ROWID | W_MONTH_D | 1 | 17 | 1 (0)| 00:00:01 | | |
    |* 12 | INDEX UNIQUE SCAN | UQ_W_MONTH_D | 1 | | 0 (0)| 00:00:01 | | |
    | 13 | PARTITION LIST ITERATOR | | 3 | 93 | 2669 (2)| 00:00:38 | KEY | KEY |
    |* 14 | TABLE ACCESS FULL | ACCT_CLTRL_RLTNP | 3 | 93 | 2669 (2)| 00:00:38 | KEY | KEY |
    |* 15 | INDEX UNIQUE SCAN | UQ_ART_CLTRL_DIM | 1 | | 1 (0)| 00:00:01 | | |
    | 16 | TABLE ACCESS BY INDEX ROWID | CLTRL_DIM | 1 | 26 | 2 (0)| 00:00:01 | | |
    -------------------------------------------------------------------------------------------------------------------------------

  • cm:search is not returning any result when logical operator '!' is used.

    <cm:search is not returning any result when logical operator '!' is used.
    I am using BEA 9.1 content management services API. When I run the following query I am not receiving any results. Also no error or exceptions are seen in the weblogic or cmspi log.
    The query is <cm:search id="docs" query="!(object_name like 'Sport*')" />

    HI cam 
    Thanks for your reply, but i found the problem it was because my server administrator password has changed by network guys... and because of it crawler unable to access the content 
    I wrote my solution here i hope it will help other people 
    http://bvs-sharepoint.blogspot.com/2015/03/sharepoint-search-is-not-returning.html
    RB

  • I lost my password and i could get into my phone, i tried but it said connect to itune. i did, but i did not get any result. please give me some advises how do i get my password back or reset with a new one?

    Ipjone6, silver, 64GB
    I lost my password and i could get into my phone, i tried but it said connect to itune. i did, but i did not get any result. please give me some advises how do i get my password back or reset with a new one?

    how to reset password:
    https://iforgot.apple.com/password/verify/appleid

  • My IPAD is not giving any sound it is muted but when head phone plugged in it is giving sound wghat is the problem please answer and solve

    my ipad is not giving any sound from ipad but giving sound from headphone when plugged in, what may be the problem i dont know but facing much problems as phone is muted.I have checked all switches.The sound switch is also on.Red is not visible in rightside switch.
    Please solve the problem,how it is happened whats solution,i want remedia measures
    IPAD 3GS iOS 8.1.2 updated recently but sound muted please solve my problem

    What do you have Settings > General > Use Side Switch Set To ? If 'rotation lock' then you mute/unmute sounds via the Control Centre (swipe up from the bottom edge of the screen), not the switch on the side of the iPad.
    If that is not 'on' then try inserting and removing headphones and see if that gets sounds to work, and if not then try a soft reset (i.e. a reboot) and see if that makes any difference : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear

Maybe you are looking for

  • End Routine Problem

    Hi gurus, I have written end routine for a cube for getting the data for fields net due date and discount date from other cube. The code was fine and im able to see the data for those fields in the new table of DSO and once  the request is activated

  • Retrieve element from an XML variable

    I have a BPEL process that takes in a XML message and from that message I want to parse out one element. Using BPEL v10.1.3.3.0 Here is the xsd's, (use a wrapper for adding the name space) <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://

  • SAP integration kit - MDX parser does not exist

    Hi, While running a query via Web Intelligence, during the process where data should be retrieved, the error pops up that RFC destination MDX PARSER does not exist. The universe is built on an infoCube without intermediate BEx query. I know about the

  • I need to uninstall or remove an add-on which has messed up my FarmTown game

    Two days ago I noticed a "ladder" beneath my farms on FarmTown. I play it often and it showed upwards of 100 friends/neighbors that either helped my farm, sent a gift to me or was requesting help, etc. I got sick of looking at that stuff at the botto

  • [CS3 AS] Change text but only first instance

    Hey there. So I'm trying to do a find / replace of a particular text string that I know appears multiple times within the document. Each instance of the string needs to be replaced by a slightly different string. The string being replaced is "Page #"