Using Synonyms With CATSEARCH

Is it possible to search via synonyms when using the CATSEARCH function? If so, how is this done?

Example:
SCOTT@orcl_11g> CREATE TABLE test_tab
  2    (test_col  VARCHAR2 (30))
  3  /
Table created.
SCOTT@orcl_11g> INSERT ALL
  2  INTO test_tab VALUES ('cat')
  3  INTO test_tab VALUES ('dog')
  4  INTO test_tab VALUES ('dogs')
  5  SELECT * FROM DUAL
  6  /
3 rows created.
SCOTT@orcl_11g> CREATE INDEX test_idx ON test_tab (test_col)
  2  INDEXTYPE IS CTXSYS.CTXCAT
  3  /
Index created.
SCOTT@orcl_11g> SELECT * FROM test_tab
  2  WHERE  CATSEARCH (test_col, CTX_THES.SYN ('dog'), NULL) > 0
  3  /
TEST_COL
dog
dogs
SCOTT@orcl_11g>

Similar Messages

  • How to use SCORE with CATSEARCH

    I have the following SQL:
    SELECT IP.* FROM O_INVOLVED_PARTY IP
    INNER JOIN O_INVOLVED_PARTY_ADDRESS IPA ON IPA.IP_ID = IP.IP_ID
    INNER JOIN O_ADDRESS A ON A.ADDRESS_ID = IPA.ADDRESS_ID
    WHERE CATSEARCH(A.STREET_NAME, '<query><textquery grammar="context">Fuzzy(pitt)</textquery><score datatype="integer"/></query>' ,NULL) > 0;
    How do I get the score returned for each row????
    Adding SCORE(1) to the select statement does not work?
    Craig Betts

    I don't know if they will -- it probably depends on whether they plan to change ctxcat's purpose/use. The reason the documentation gives for not allowing score is that catsearch is a boolean search, so score is irrelevant. It either matches or it doesn't. The query template (along with other enhancements) changes where/how ctxcat is used though, and your question has been coming up more frequently.
    Is there any restriction on changing your index to a CONTEXT index? What was the reason for choosing CTXCAT over CONTEXT?
    Thanks,
    Ron

  • ORA-01867 rised when synonym with DBLink used

    Hi,
    I've created a BC View Object in JDeveloper 10.1.3.4.0 and specified a query for it which is using
    synonym with Database link to fetch data from.
    When I am trying to test this VO using Application Module test option
    I get:
    (oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation. Statement: select *
    from TEST_S_TABLE
    ----- LEVEL 1: DETAIL 0 -----
    (java.sql.SQLException) ORA-01867: the interval is invalid
    I am connecting to database with user who is owner of DBLink and this synonym.
    Synonym and DBLink are not Pulblic.
    Thanks for any help

    Hi John,
    Thanks for reply.
    Yes, I tried to run this query using SQL Worksheet from JDeveloper Tools and it
    ran successfully.
    I ran it successfully also in PL/SQL developer with bind variables to filter date period and union with table from current database.
    Here are columns of table which referenced by synonym.
    BRCH      VARCHAR2(3)               
    ACC          VARCHAR2(20)                    
    DATE1     DATE                    
    BAL1          NUMBER(24,3)                    
    BAL2          NUMBER(24,3)                    
    BAL3          NUMBER(24,3)                    
    BAL4          NUMBER(24,3)                    
    DR_TUR1     NUMBER(24,3)                    
    DR_TUR2     NUMBER(24,3)                    
    CR_TUR1     NUMBER(24,3)                    
    CR_TUR2     NUMBER(24,3)                    
    ACC_CCY     VARCHAR2(3)                    
    BAL5          NUMBER(24,3)                    
    UNCOLL     NUMBER(24,3)                    
    BLOCK     NUMBER(24,3)                    
    Thanks.

  • Can I use Synonyms Name with Dot?

    I want to try thing like this:
    I have set default schema for user 'AAAUser' as 'AAA' and 'BBBUser' as 'BBB'
    and
    create synonyms called 'DB_1.AAA.table_1' which link to 'DB_AAA..table_1'
    and 'DB_1.BBB.table_1' which link to 'DB_BBB..table_1'.
    So if I use AAAUser login to DB_1 and execute SQL:
    Select * from DB_1..table_1
    since the default schema of AAAUser is AAA, so the table is changed from DB_1..table_1 to DB_1.AAA.table_1
    and there is synonym called DB_1.AAA.table_1, so it will link to DB_AAA..table_1.
    And the same, if i use BBBUser login to DB_1 and call DB_1..table_1, will finally reach DB_BBB..table_1.
    However, so far, it doesn't really work! I faced 2 issues:
    1. If there is a table with the same name called dbo.table_1 in DB_1, even the default schema is AAA, the sql will go DB_1.dbo.table_1 directly! (I have already proved that if there is no same table name, the default schema AAA is used!)
    2. I have tested the synonym:
    select * from DB_1.AAA.table_1;
    It doesn't work! but if i run:
    select * from [DB_1.AAA.table_1];
    It works!!
    Why it that? Does it mean that My design above will never work?
    Thanks!
    Cliff

    I am not able to understand what you are trying to achieve, but I think the root of your confusion is captured here:
    select * from DB_1.AAA.table_1;
    It doesn't work! but if i run:
    select * from [DB_1.AAA.table_1];
    These two SELECT are very different. The first SELECT accesses the object table_1 in the schema AAA in database DB_1. If table_1 is a synonym that may lead you to a different table.
    The second SELECT accesses the object DB_1.AAA.table_1 in your default schema in the current database. There is no connection the database DB_1 or the schema AAA in that database here. The dots are just characters in the object name just like the D, B, underscore
    and so on.
    And specifically, the first SELECT cannot lead you to the object in the second SELECT, unless table_1 is a synonym with the value [DB_1.AAA.table_1].
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Migrating from SQL to ORACLE 11g : naming length Issue using synonyms...

    Hi,
    In sql I have maximum length of objects is 98 char
    now i m migrating it into oracle , i m using synonyms for it ..
    it is showing synonyms created ...
    but it gets converted into encrypted forms,
    due to this i m not able to use actual synonyms that i have created
    so tell me how can i create synonyms of more than 30 characters
    If this is not possible , then wht else solution by which i can solve ma problem.
    please give me solution asap!!!!!!!

    Create synonym name with more than 30 character.

  • How to use synonyms on multiple word search ?

    We use context with multiword search like this one :
    select * from my_table where contains(my_text,'the small building near the river')>0
    Now we have specific synonyms in a thesaurus. How do we write the contains clause ?
    contains(my_text,'syn(the,thes) and syn(small,thes) and syn(building,thes) and syn(near,thes) and syn (river,thes)')>0 does not fin the synonym for "small building"="house" for instance
    contains(my_text,'syn(the small building near the river,thes)')>0 does only for synonyms on the full sentence.
    More generally is there an Oracle Document which describes how to use SYN, FUZZY and combine them, since
    the reference documentation gives only limited information on this ?
    Have a nice day

    The thesaurus functionality is not currently built for stuff like this.
    if you want to combine fuzzy and thesaurus, I am assuming you want to do fuzzy first, to correct any misspelling,
    then thesaurus on the "corrected" spellings? You'd have to do something like:
    1. take the query and run ctx_query.explain to break it down and do the fuzzy expansion
    2. work through the fuzzy expansion and build a new query string by sticking SYN() around each
    expanded word
    As for thesaurus expansion and phrase, these are not compatible. Thesaurus expansions use "," and "|", and so
    you cannot have a phrase of thesaurus expansions.
    I see what you're getting at, but you would need sub phrase detection, phrase equivalence, etc., which is
    currently beyond the thesaurus function capability.
    You can use themes (ABOUT) on phrases, and it will do something like what you are describing. You might want
    to check that out.

  • Is it possible to create a Synonym with different column names

    Hi,
    I want to create a Synonym with different columns names (Columns not in original table) . I am not sure if this can be done . Any suggessions...
    Thanks in advance....

    Synonyms are not limited to tables. Accroding to the SQL Reference, a synonym is:
    an alternative name for a table, view, sequence, procedure, stored function, package, materialized view, Java class schema object, user-defined object type, or another synonym.
    In fact, synonyms are not even validated until they are used:
    SQL> create synonym my_synonym for table_which_does_not_exist;
    Synonym created
    SQL> select * from my_synonym;
    select * from my_synonym
    ORA-00980: synonym translation is no longer valid

  • Unable to create dimensions in schemas that use synonyms

    I have three schemas (s1, s2 and s3) that use synonyms to reference different tables. S1 and S2 have all tables, equally distributed in their schema. S3 is an end user who has just synonyms.
    I tried creating dimensions in any of them, table or view not found error is encountered.
    I created required tables in my schema (user: meka) and I was successfully able to create dimensions. The following command worked in "meka", not any of the three schemas (s1, s2 and s3).
    CREATE DIMENSION country
         level city_id is lu_city.CITY_ID
              level state_id is lu_state.STATE_ID
              level country_id is lu_country.COUNTRY_ID
    hierarchy country_hier (
    city_id CHILD OF
    state_id CHILD OF
    country_id
    JOIN KEY lu_city.STATE_ID references state_id
    JOIN KEY lu_state.COUNTRY_ID references country_id
    ATTRIBUTE city_id DETERMINES (lu_city.CITY_NAME)
    ATTRIBUTE state_id DETERMINES (lu_state.STATE_NAME)
    I tried a few combinations, including specifying fully qualified table names (s1.lu_city.city_id, etc); created views at user S3 tried the same. All of them were unsuccessful. I am using Oracle 11g R2, here is screen shot:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    Q: How can I create a dimension in a schema where tables do not exist. They exist in another schema.
    Edited by: user8967661 on Jan 12, 2010 2:12 PM

    This is resolved.

  • Using synonyms in name search

    Hello,
    i'm trying to use synonyms in an oracle namesearch. I setup a name seqarch like in the second example described in the oracle text application developer's guide at http://download.oracle.com/docs/cd/E18283_01/text.112/e16594/search.htm
    Now the name i'm searching for might contain a '&', for example 'B & V'.
    I'd like to find this text when i enter 'B&V', B & V' or even 'B and V'.
    I found a thread about setting up a thesaurus with synonyms for '&' and 'and' at "and" and Ampersand or special characters
    Now i wonder how to combine this.
    Thanks for help in advance,
    Dirk

    In the following example, I started with the code from the second example in the link provided. I added one row of data containing the "B & V" for testing. I added "&" and "and" to the thesaurus as synonyms. I added a function to format the search string by adding an extra space around "&", removing duplicate spaces, adding "{" and "}" around each reserved keyword, trimming the result, and returning it. I then modified the query to use the function. That seems to be all that is necessary. It does not seem to be necessary to change the stoplist or printjoins, due to the way the rest of the code is written. I added comment lines to show where I made changes. I did not change the procedure, but you may want to modify it as the usage of regexp seems to be only outputting the last four digits of the phone.
    SCOTT@orcl_11gR2> create table emp (
      2        first_name    varchar2(30),
      3        middle_name   varchar2(30),
      4        last_name     varchar2(30),
      5        email            varchar2(30),
      6        phone            varchar2(30));
    Table created.
    SCOTT@orcl_11gR2> insert into emp values
      2  ('John', 'Black', 'Smith', '[email protected]', '123-456-7890');
    1 row created.
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> -- added row of data:
    SCOTT@orcl_11gR2> set define off
    SCOTT@orcl_11gR2> insert into emp values
      2  ('Jane', 'Doe', 'word B & V word', '[email protected]', '321-654-0987');
    1 row created.
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> create or replace procedure empuds_proc
      2       (rid in rowid, tlob in out nocopy clob) is
      3         tag varchar2(30);
      4         phone varchar2(30);
      5  begin
      6    for c1 in (select FIRST_NAME, MIDDLE_NAME, LAST_NAME, EMAIL, PHONE
      7              from emp
      8              where rowid = rid)
      9    loop
    10         tag :='<email>';
    11         dbms_lob.writeappend(tlob, length(tag), tag);
    12         if (c1.EMAIL is not null) then
    13             dbms_lob.writeappend(tlob, length(c1.EMAIL), c1.EMAIL);
    14         end if;
    15         tag :='</email>';
    16         dbms_lob.writeappend(tlob, length(tag), tag);
    17         tag :='<phone>';
    18         dbms_lob.writeappend(tlob, length(tag), tag);
    19         if (c1.PHONE is not null) then
    20           phone := nvl(REGEXP_SUBSTR(c1.PHONE, '\d\d\d\d($|\s)'), ' ');
    21           dbms_lob.writeappend(tlob, length(phone), phone);
    22         end if;
    23         tag :='</phone>';
    24         dbms_lob.writeappend(tlob, length(tag), tag);
    25         tag :='<fullname>';
    26         dbms_lob.writeappend(tlob, length(tag), tag);
    27         if (c1.FIRST_NAME is not null) then
    28           dbms_lob.writeappend(tlob, length(c1.FIRST_NAME), c1.FIRST_NAME);
    29           dbms_lob.writeappend(tlob, length(' '), ' ');
    30         end if;
    31         if (c1.MIDDLE_NAME is not null) then
    32           dbms_lob.writeappend(tlob, length(c1.MIDDLE_NAME), c1.MIDDLE_NAME);
    33           dbms_lob.writeappend(tlob, length(' '), ' ');
    34         end if;
    35         if (c1.LAST_NAME is not null) then
    36           dbms_lob.writeappend(tlob, length(c1.LAST_NAME), c1.LAST_NAME);
    37         end if;
    38         tag :='</fullname>';
    39         dbms_lob.writeappend(tlob, length(tag), tag);
    40       end loop;
    41    end;
    42  /
    Procedure created.
    SCOTT@orcl_11gR2> show errors
    No errors.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference('empuds', 'user_datastore');
      3    ctx_ddl.set_attribute('empuds', 'procedure', 'empuds_proc');
      4    ctx_ddl.set_attribute('empuds', 'output_type', 'CLOB');
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_section_group('namegroup', 'BASIC_SECTION_GROUP');
      3    ctx_ddl.add_ndata_section('namegroup', 'fullname', 'fullname');
      4    ctx_ddl.add_ndata_section('namegroup', 'phone', 'phone');
      5    ctx_ddl.add_ndata_section('namegroup', 'email', 'email');
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    ctx_thes.create_thesaurus ('nicknames');
      3    ctx_thes.create_relation ('nicknames', 'John', 'syn', 'Jon');
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> -- added synonym to thesaurus:
    SCOTT@orcl_11gR2> begin
      2    ctx_thes.create_relation ('nicknames', '&', 'syn', 'and');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> begin
      2       ctx_ddl.create_preference('NDATA_WL', 'BASIC_WORDLIST');
      3       ctx_ddl.set_attribute('NDATA_WL', 'NDATA_ALTERNATE_SPELLING', 'FALSE');
      4       ctx_ddl.set_attribute('NDATA_WL', 'NDATA_BASE_LETTER', 'TRUE');
      5       ctx_ddl.set_attribute('NDATA_WL', 'NDATA_THESAURUS', 'NICKNAMES');
      6       ctx_ddl.set_attribute('NDATA_WL', 'NDATA_JOIN_PARTICLES',
      7        'de:di:la:da:el:del:qi:abd:los:la:dos:do:an:li:yi:yu:van:jon:un:sai:ben:al');
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> create index name_idx on emp (first_name)
      2  indextype is ctxsys.context
      3  parameters
      4    ('datastore  empuds
      5        section    group namegroup
      6        wordlist   ndata_wl');
    Index created.
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> -- added function to format search string:
    SCOTT@orcl_11gR2> create or replace function format_string
      2    (p_string in varchar2)
      3    return varchar2
      4  as
      5    v_string     varchar2 (32767) := ' ' || p_string || ' ';
      6  begin
      7    -- add extra spaces around ampersand:
      8    v_string := replace (v_string, '&', ' & ');
      9    -- remove duplciate spaces:
    10    while instr (v_string, '  ') > 0
    11    loop
    12        v_string := replace (v_string, '  ', ' ');
    13    end loop;
    14    -- add { and } around each reserved word:
    15    for r in
    16        (select keyword,
    17             ' ' || keyword || ' ' keyword2
    18         from      v$reserved_words)
    19    loop
    20        v_string := replace (upper (v_string), r.keyword2, ' {' || r.keyword || '} ');
    21    end loop;
    22    return ltrim (rtrim (v_string));
    23  end format_string;
    24  /
    Function created.
    SCOTT@orcl_11gR2> show errors
    No errors.
    SCOTT@orcl_11gR2> -- examples of usage of function:
    SCOTT@orcl_11gR2> select format_string ('B & V') from dual;
    FORMAT_STRING('B&V')
    B {&} V
    1 row selected.
    SCOTT@orcl_11gR2> select format_string ('B and V') from dual;
    FORMAT_STRING('BANDV')
    B {AND} V
    1 row selected.
    SCOTT@orcl_11gR2> select format_string ('B&V') from dual;
    FORMAT_STRING('B&V')
    B {&} V
    1 row selected.
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> -- query modified to apply foramt_string function to :name variable:
    SCOTT@orcl_11gR2> var name varchar2(80);
    SCOTT@orcl_11gR2> exec :name := 'Jon Blacksmith'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> column first_name  format a10
    SCOTT@orcl_11gR2> column middle_name format a11
    SCOTT@orcl_11gR2> column last_name   format a9
    SCOTT@orcl_11gR2> column phone          format a12
    SCOTT@orcl_11gR2> column email          format a22
    SCOTT@orcl_11gR2> select first_name, middle_name, last_name, phone, email, scr
      2  from   (select /*+ FIRST_ROWS */
      3                first_name, middle_name, last_name, phone, email, score(1) scr
      4            from   emp
      5            where  contains
      6                  (first_name,
      7                   'ndata (phone,'       || format_string (:name) || ') OR
      8                 ndata (email,'       || format_string (:name) || ') OR
      9                 ndata (fullname,' || format_string (:name) || ')',
    10                   1) > 0
    11            order  by score (1) desc)
    12  where  rownum <= 10;
    FIRST_NAME MIDDLE_NAME LAST_NAME PHONE        EMAIL                         SCR
    John       Black       Smith     123-456-7890 [email protected]         93
    1 row selected.
    SCOTT@orcl_11gR2> -- enter new values for :name and re-run query:
    SCOTT@orcl_11gR2> exec :name := 'B & V'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> /
    FIRST_NAME MIDDLE_NAME LAST_NAME PHONE        EMAIL                         SCR
    Jane       Doe         word B &  321-654-0987 [email protected]           61
                           V word
    1 row selected.
    SCOTT@orcl_11gR2> exec :name := 'B and V'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> /
    FIRST_NAME MIDDLE_NAME LAST_NAME PHONE        EMAIL                         SCR
    Jane       Doe         word B &  321-654-0987 [email protected]           80
                           V word
    1 row selected.
    SCOTT@orcl_11gR2> exec :name := 'B&V'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> /
    FIRST_NAME MIDDLE_NAME LAST_NAME PHONE        EMAIL                         SCR
    Jane       Doe         word B &  321-654-0987 [email protected]           61
                           V word
    1 row selected.
    SCOTT@orcl_11gR2> exec :name := 'B something V'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> /
    no rows selected
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> -- cleanup:
    SCOTT@orcl_11gR2> drop function format_string;
    Function dropped.
    SCOTT@orcl_11gR2> exec ctx_ddl.drop_preference('ndata_wl');
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> exec ctx_thes.drop_thesaurus ('nicknames');
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> exec ctx_ddl.drop_section_group('namegroup');
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> exec ctx_ddl.drop_preference('empuds');
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> drop procedure empuds_proc;
    Procedure dropped.
    SCOTT@orcl_11gR2> drop table emp;
    Table dropped.
    SCOTT@orcl_11gR2>

  • Oracle Best Practices Discussion Pros/Cons of using Synonyms

    Please share your experience given the Pros/Cons of Developing Enterprise Database Applications using public and private Synonyms.
    My recommendation to developers on my team is to avoid using Public Synonyms in their code and instead Fully Qualify the database object by schema owner.
    Pros: When you drop a schema, you do not drop the public synonyms that they created. Therefore if you have to use synonym, make it private and not public.
    Please share your experience!

    Fahd Mirza wrote:
    Well I rarely use public synonyms and that only case of db links. For example, I have a scenario, in which I have hooked up a MS SQLSERVER database with Oracle database through Heterogenous Services. I am accessing the SQLSERVER table in real time, through HS, in Oracle in real time, and then from this Oracle environment I have created db links to many other interested databases. In those interested database, I have created public synonyms over those dblinks.
    It's so transparent for the interested databases. But I have documented this whole configuration in great detail for any upcoming DBA, just in case I leave, or expire or anything. Sounds interesting - this might be worth 'cleaning' and publishing to OTN's Articles. If you are interested in pursuing this, you might want to contact Justin (Community Forum) or myself ([email protected])

  • Using GetFormattedValue with Boolean Array to create ReportText

    What is the C (printf) style format for outputting a Boolean array?
    I currently use to get 
    Step.Result.ReportText = Locals.Outlets.GetFormattedValue("",0,"",False,"\n")
    Outlet State
    Status:
    Done
    Module Time:
    1.6116278
    False
    True
    False
    False
    False
    False
    False
    False  
    I would like to format the output to show:
    Outlet State
    Status:
    Done
    Module Time:
    1.6116278
    OFF
    ON
    OFF
    OFF
    OFF
    OFF
    OFF
    OFF
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

    Hi Phillip,
    interresting question, because the c-style doesnt know a datatype "boolean".
    So i am quite sure there is no support.
    You can do a simple workaround by using twice SearchAndReplace to rename True and False
    in the same expression
    Hope that helps
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    Example.seq ‏5 KB

  • HT202667 Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get it transferred over from her Home Sharing account to mine so that I can use it with my PC?

    Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get her Home Sharing account transferred over to mine so that I can use it with my PC? Thanks!

    As  Winston Churchill wrote, however you might want to do a factory reset on the Apple TV.
    This way all information pertaining to your daughter will be removed from the device. Specifically if see was sign into any of the streaming service, Netflix, Hulu, etc. her credentials will still be associated with this Apple TV, doing  a factory reset will remove all that and make it as if you purchased the device and just plugged it in.
    regards

  • OPEN CURSOR using a WITH clause in the select query

    Hi,
    I am using Oracle 9i. I have a requirement where I have a REFCURSOR as an OUT parameter for my procedure. I have declared the TYPE and created the procedure.
    In the procedure, I am using OPEN <cursor_name> FOR <query>;
    Ideally this works in most of the cases that I have tried earlier. However, in the current case I am using a WITH clause in my query to get the results.
    I need help in understanding if the above mentioned syntax would not allow me to use the WITH clause in the query.

    What error do you get , seems to work ok for me on 10g
    SQL> begin
      2  open :cv for 'with x as (select * from emp)  select * from x';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> print :cv
         EMPNO
    ENAME
    JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7521
    WARD
    SALESMAN        7698 22-FEB-81       1250        500         30
          7566
    JONES
    MANAGER         7839 02-APR-81       2975                    20
         EMPNO

  • My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    In the Music tab of iTunes, do you have 'Include Voice Memos' checked?

  • I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way?

    I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way? I appreciate that it is a different computer but I am now the end user of both devices and I was just wondering if it was possible.
    Thanks,
    Sean

    The answer would be in your software license agreement for Aperture. However if you cannot locate it you can ask in the Aperture forum, the link for that is:
    https://discussions.apple.com/community/professional_applications/aperture
    However I believe you can have Aperture installed on two machines however only one may be using it at a time.
    On the new iMac launch the Mac App Store - Purchased - look for Aperture and download to your new machine.

Maybe you are looking for

  • Search and replace string problems

    Hi to all, I have problem with Search and replace string function. It shows me a wrong Value (Number) from 15 to 100 is everything OK (15=0, 30=1, 45=2, 100=3), but after 100 ........ Take look in VI and if you have any ideas post them please THX Igo

  • How to get the name of the selected building block in a building block content control?

    Hello, How can I obtain the name of the selected building block in a building block content control? I want to use this together with an on exit-event to populate other content Controls depending on the name of the selected building block item. Envir

  • Facing Problem while building DC  Locally

    Hi all, When i build DC from using NWDS, i got the error "unable to find a javac compiler." Detailed Error as below : Feb 3, 2011 11:20:15 AM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[Mod

  • India - Program to Generate eTDS Quarterly Certificates 26Q?

    Hi Frds, How i develop query to get Excel output using rdf instead of India - Program to Generate eTDS Quarterly Certificates 26Q standard concurr prg. Bcoz It display output as HTML format. but I need Excel Format. Kindly help me to build the report

  • How to call used WD Comp attributes

    Hi experts, please help me. dc1: view 1; user submits the data dc2: view 2 here  i have to call the data submitted by the user in dc1,view1. i have made the required attributes of dc1  available in interface controller. and added the same interface c