Wildcard_maxterms ignores structured query in CATSEARCH

If I search on basic wildcard, like ra*, I am getting the DRG-51030 error even for searches where the structured query would limit the return to a handful of rows.
is this by design, or is this a bug? I understand I can increase the wildcard_maxterms parameter but I want to make sure I got it right before I do that

The query expands to include the number of matching terms in your ctxcat index, regardless of other filter conditions, so you need to increase the wildcard_maxterms parameter or use something more specific than ra*.

Similar Messages

  • Using bind in CATSEARCH structured query

    We used to bind the whole query string inside CATSEARCH, like this:
    AND CATSEARCH(a.title, 'test', :s_query) > 0
    and bind s_query to 'id = 1234', and so on.
    However, it looks like the statement cache does not like this kind of query, and will cache a statement for every variations of s_query. It turns out we have hit the performance bottleneck for this SQL.
    Is there a way to bind a parameter inside the structured query in CATSEARCH, like 'id = :my_id', so that only 1 instance of the SQL is cached? Or any other suggestions?
    Thanks in advance,
    Jason

    There is no way to pass partial bind variables as the
    structured part of catsearch.
    Using a bind variable for the entire structured part
    should cache only one of the sql. You're probably seeing
    the internal queries that the ctxcat index does on its $I
    table. Right now there's no way to get around that, except
    of course turning on cursor sharing.

  • Mathematical Theory of Structured Query Language?

    Hi, gurus.
    I'm very interested in the mathematical theory of structured query language.
    Could anyone recommend me some books or sites on the mathematical theory of structured query language?
    Thx, in advance.

    Simply google "relational algebra".
    Regards...

  • Complex Tree Structure Query

    Hi,
    I have a table which contains the hierarchial data upto 4 levels. I needed to have the information of all the four levels in a row, so I created 3 tree structured views and one another view using the tree structured views as below
    --To get the great grand parent id for the children*
    CREATE OR REPLACE VIEW VR_PO_TREE AS
    SELECT LEVEL pathlength,
    connect_by_root partner_organization_id root_po,
    partner_organization_id,
    partner_common_name,
    partner_organization_type
    FROM partner_organization po
    START WITH po.org_entity_above_id IS NULL
    CONNECT BY PRIOR po.partner_organization_id = po.org_entity_above_id
    ORDER BY po.partner_organization_id;
    -- level 2 (grant parent) id
    CREATE OR REPLACE VIEW VR_PO_AREA_TR AS
    SELECT LEVEL pathlength,
    connect_by_root partner_organization_id root_po,
    partner_organization_id,
    partner_common_name,
    partner_organization_type
    FROM partner_organization vcpo
    START WITH vco.partner_organization_type = 'AREA'
    CONNECT BY PRIOR vcpo.partner_organization_id = vcpo.org_entity_above_id
    ORDER BY vcpo.partner_organization_id;
    --level 3 (parent) id*
    CREATE OR REPLACE VIEW VR_PO_REGION_TREE AS
    SELECT LEVEL pathlength,
    connect_by_root partner_organization_id root_po,
    vcpo.partner_organization_id,
    vcpo.partner_common_name,
    vcpo.partner_type
    FROM partner_organization vcpo
    START WITH vcpo.partner_organization_type = 'REGION'
    CONNECT BY PRIOR vcpo.partner_organization_id = vcpo.org_entity_above_id
    ORDER BY vcpo.partner_organization_id;
    ---and finally created a view to have all the levels in a single row
    CREATE OR REPLACE VIEW VR_PO_ALL_TREE AS
    SELECT pot.pathlength,
    po.partner_organization_id,
    po.partner_common_name,
    pot.root_po int_partner_org_id,
    pot.intl_po_name int_partner_common_name,
    vpat.root_po area_partner_org_id,
    vpat.area_po_name area_partner_common_name,
    vprt.root_po region_partner_org_id,
    vprt.region_po_name region_partner_common_name
    FROM partner_organization po
    JOIN vr_po_tree pot
    ON pot.partner_organization_id = po.partner_organization_id
    LEFT outer JOIN vr_po_area_tr vpat
    ON vpat.partner_organization_id = po.partner_organization_id
    LEFT OUTER JOIN vr_po_region_tree vprt
    ON vprt.partner_organization_id = po.partner_organization_id;
    All the views are working fine, very fast, giving the expected output.
    if we make a join to the view vr_po_all_tree in a query that also works fine. However, if we make an outer join to a query that has the join to vr_po_all_tree, Oracle throws an internal error - Ora-00600 internal error codes, arguments [qrctce1], [0],[0],.....
    Is the view vr_po_all_tree is cause for this problem?, in such a case can any one help me to rewrite the view with a simple query to give the same results?
    Thanks in advance.
    Nattu
    Edited by: Nattu on Nov 26, 2009 8:25 PM
    Edited by: Nattu on Nov 27, 2009 11:48 AM
    Edited by: Nattu on Nov 27, 2009 11:55 AM

    Hi,
    if we make a join to the view vr_po_all_tree in a query that also works fine. However, if we make an outer join to a query that has the join to vr_po_all_tree, Oracle throws an internal error - Ora-00600 internal error codes, arguments [qrctce1], [0],[0],.....
    Is the view vr_po_all_tree is cause for this problem?As Sven said, ORA-00600 is the sign of some low-level problem, and you should seek a solution from Oracle support. Your views are not the cause of this problem; most likely, the views trigger something that would not be a problem except for a installatin problem or maybe a bug.
    We can try to find a work-around for you, but don't ignore the problem.
    in such a case can any one help me to rewrite the view with a simple query to give the same results?It seems very likely that you could do something that didn't involve so many CONNECT BYs and outer joins.
    Post some sample data (CREATE TABLE and INSERT statements) and the results you want from that data.
    Simplify as much as possible. For example, in the first view you say:
    CREATE OR REPLACE VIEW VR_PO_TREE AS
    SELECT LEVEL pathlength,
    connect_by_root partner_organization_id root_po,
    connect_by_root partner_common_name intl_po_name,
    connect_by_root is_wbti is_wbti,
    connect_by_root is_sil_int is_sil_int,
    connect_by_root organization_entity_code int_org_entity_code,
    org_entity_above_id, partner_organization_id,
    partner_organization_type,
    sys_connect_by_path(partner_organization_id, '\') po_path_id,
    sys_connect_by_path(partner_common_name, '\') po_path_name
    FROM ...That is, you're selecting 1 pseudo-column (LEVEL), 4 CONNECT_BY_ROOTs, 3 plain columns, and 2 SYS_CONNECT_BY_PATHs.
    Can you post a problem with just one of each: 1 pseudo-column, 1 CONNECT_BY_ROOT, 1 plain column, and 1 SYS_CONNECT_BY_PATH?  Adding the others later should be easy.
    Any information you can give about the data would be helpful.
    In particular,
    (a) Can org_entity_above be NULL on the same row where partner_organization_type is 'AREA' or 'REGION'?
    (b) How many ancestors with partner_organization_type = 'AREA' Can a node have? 1? No more than 1?  1 or more? 0 or more?
    (c) Same for 'REGION'.  How many ancestors with partner_organization_type = 'REGION' Can a node have? 1? No more than 1?  1 or more? 0 or more?
    (d) Can a node with partner_organization_type = 'REGION' be the ancestor of a row with partner_organization_type = 'AREA'?
    (e) Other way around: can a node with partner_organization_type = 'AREA' be the ancestor of a row with partner_organization_type = 'REGION'?
    Some of these questions may seem silly to you, because you know the table and the data so well.  I don't, so you'll have to explain things.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Data guard directory structure query

    my OS IS WINDOWS2003
    ORACLE VERSION 10GR1
    i have a query regarding directory structure.What i did is i kept exactly the same directory structure on both primary and standby..please clear me on that
    Its what i did
    Primary SID- PROD
    Directory--- D:\oracle\product\10.2.0\PROD\abc.dbf(all datafiles,redo,control are in this directory)
    Archive location on Primary D:\PROD\ARCHIVE\.arc(all archives)
    Now what i did on standby.i created different sid--PROD2
    But i have kept exactly the same directory structure on standby too as
    datafiles in D:\oracle\product\10.2.0\PROD\abc.dbf(all datafiles)
    Archive location on standby D:\PROD\ARCHIVE\.arc(all archives).
    As i kept the same directory structure so i didnot set parameters db_file_name_convert and log_file _name_convert
    Please clear me on this before i move forward to check for archive shipping because i get confused that may be i followed wrong and i should have kept as
    Standby datafiles = d:\oracle\product\10.2.0\prod2\.dbf
    standby archives = d:\prod2\archive
    please tell.i really need your reply urgently
    can this approach of same directory structure affect the primary in bad way or is that fine

    please clear me on my above note
    i have taken the same directory structure as it was on primary even the sid name in directory is same.
    PRIMARY SID= PROD
    STANDBY SID =PROD2
    but datafiles,redo,control and archive location i have kept the same sid as of primary.
    D:\oracle\product\10.2.0\PROD\.dbf
    D:\oracle\product\10.2.0\PROD\.ctl
    D:\oracle\product\10.2.0\PROD\.redo
    i just changed control file with standby and also i did not created standby redo's as i read in document its needed for switchover.so i thought i 'll create later on.
    i am getting error in trace file of standby
    0ra-19527 physical standby redo log must be renamed
    ora-00312 online log 1 thread 1: D:\oracle\product\10.2.0\oradata\prod\reo01.log
    error 19527 creating /clearing online redo logfile 1

  • Import structure query

    hi gurus,
    In a se37 function builder i have a structure in the import paramter
    ie i am getting list of client in the import
    how i can write the query to get the details of the list of client
    it says the error as
    "it" must be a flat structure. You cannot use internal
    tables, strings, references, or structures as components. -
    senthil.

    u have to write the select condition as per mentioned in my last post
    second option can be tht u can have a loop at the internal table having clients and inside loop u can fetch the client details one by one like -
    loop at itab.
    select single * from KNA1 into corresponding fields of itab1 where Mandt = itab-mandt.
    endloop.
    second option will degrade ur performance so use the first one only.
    amit

  • Two Structure Query with APD

    I am using a query which has two structures within APD and got an error during activation.
    I found OSS note 751577 which explains the workaround for queries with two structures, even though I added additional columns as suggested in the note I am still getting the error message during activation.
    Let me know if anyone was able to get queries with two structure working with APD.
    Thanks!
    -Deepu

    Hi Thomas,
    I have a query with 2 structures. Note 751577,
    The Analysis Process Designer supports only queries with one structure, the structure for key figures.
    Check whether your query includes two structures.
    If it does, the following workaround is available: Multiply the number of rows by the number of columns.
    If a query has four rows and five columns, you must create twenty columns, for example, to make a permitted query available.
    I tried this workaround as mentioned but still end up getting the same error msg.
    Could you please help me?
    Regard,
    Rohit
    Edited by: rohitmulay on Mar 31, 2011 7:00 AM

  • Global Org Structure query

    Hello,
    I have one query regarding creating Org Structure. We are setting up one global org structure for 10 countries.
    The org structure format is as follows -
    Root org unit
    Company
    --- Division
        --- Department
             --- Country
    We have created the sub org units as per each country under each department e.g. sub org units India, US, UK under org unit Product Development . Currently each country has one company code except India. India has 3 company codes. So do I need to create 3 different org units for India to assign proper cost centers and company code.
    Also for the departments existing only in one country, do I need to create a sub org unit for that country. e.g. org unit Product Management exist only in US, so whether to create sub org unit US under Product Management or directly assign staff assignments at org unit product management?
    Please reply.
    Thanks in advance.

    Hi Dilek,
    As per you suggestion, I need to create 3 sub org units for 3 company codes in India under org unit Prod Management (department), is this correct.
    So the org structure will look like below -
    Global Company (root org unit)
    --- Division (Customer Support)
      Function (R&D)
    Department (Product Management)
    Company code (IN01)
    Company code (IN02)
    Underneath sub org unit IN01 and IN02 will be staff assignments.
    Can I get your email id so I can send you the screenshot of the org structre created.
    Thanks.

  • Index ignored in query??

    This is probably a basic question about indexes, thanks for your insights.
    I have a table VOUCHER with some columns including a TICKETNO column for which there is a primary key index, defined as follows:
    CREATE UNIQUE INDEX VOUCHER_PK ON VOUCHER (TICKETNO)
    The table contain approximately 20 million records.
    We are using Oracle 9i RAC on HP-UX 11.11
    I am running the following query, which runs for 20 minutes and then fails:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning and Real Application Clusters options
    JServer Release 9.2.0.8.0 - Production
    SQL> select count(*) from VOUCHER
    2 where TICKETNO between 100000 and 100100
    3
    SQL> /
    select count(*) from VOUCHER
    ERROR at line 1:
    ORA-01555: snapshot too old: rollback segment number 741 with name
    "_SYSSMU741$" too small
    I am confused... Why counting 100 records with an indexed column takes so long and fail?

    Thanks for the feedback. I am going to run the ANALYZE suggestion tonight.
    Here are the results of the queries asked for:
    SELECT Table_Name, Status FROM User_Indexes WHERE Index_Name = 'VOUCHER_PK';
    OWNER TABLE_NAME STATUS
    SMVDBA VOUCHER VALID
    SELECT Column_Name FROM User_Ind_Columns WHERE Index_Name = 'VOUCHER_PK';
    COLUMN_NAME
    TICKETNO
    SELECT Last_Analyzed FROM User_Indexes WHERE Index_Name = 'VOUCHER_PK';
    LAST_ANAL
    SELECT Last_Analyzed FROM User_Tables WHERE Table_Name = 'VOUCHER';
    LAST_ANAL
    21-FEB-08
    EXPLAIN PLAN FOR
    select count(*) from VOUCHER
    where TICKETNO between 100000 and 100100;
    Explained
    SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY('', '', 'ALL'));
    PLAN_TABLE_OUTPUT
    | Id | Operation | Name | Rows | Bytes | Cost |
    | 0 | SELECT STATEMENT | | | | |
    | 1 | SORT AGGREGATE | | | | |
    | 2 | TABLE ACCESS FULL | VOUCHER | | | |
    Note: rule based optimization, PLAN_TABLE' is old version
    10 rows selected.
    EXPLAIN PLAN FOR
    select /*+ INDEX(V VOUCHER_PK) */ count(*) from VOUCHER V
    where TICKETNO between 100000 and 100100;
    Explained.
    SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY('', '', 'ALL'));
    PLAN_TABLE_OUTPUT
    | Id | Operation | Name | Rows | Bytes | Cost |
    | 0 | SELECT STATEMENT | | 1 | 18 | 5 |
    | 1 | SORT AGGREGATE | | 1 | 18 | |
    | 2 | INDEX FAST FULL SCAN| VOUCHER_PK | 83788 | 1472K| 5 |
    Note: cpu costing is off, PLAN_TABLE' is old version
    10 rows selected.

  • &(ampersand) in the query for catsearch

    I get an error in the catsearch below when Name variable contains an ampersand (&). Any suggestions.
    FUNCTION NameDob (iFirst IN VARCHAR2,
              iMiddle IN VARCHAR2,
              iLast IN VARCHAR2,
              iDobYMD IN VARCHAR2) -- CCYYMMDD)
         RETURN QueryCurType
    AS          
    c QueryCurType;
    Name varchar2(100);
    BEGIN
    Name := iFirst||' '||iLast;
    OPEN c FOR
         SELECT *
         FROM MASTER_TRACKEE
         WHERE catsearch(full_name,Name,NULL) > 0;
    RETURN c;
    END NameDob;

    In SQL, "&" is a reserved character.
    Issue
    SET DEFINE OFF
    before entering your statement.

  • Itunes 10.6.3 structure query or problem.

    Hi Guys
    Wonder if you can help!
    I noticed recently that my Itunes 10.6.3 folder (structure) has changed!
    Before, all folders containing mp3's were all under: /Itunes Media/Music
    Now though, some artists are under /Itunes (main folder) and some in /Itunes Media/Music
    In some cases, the same artists is in both folders and associated mp3's have been spilt between the 2 folders!
    Why aren't they 'all' under /Itunes Media/Music as I remember they once were.
    Thanks for your help in advance!
    Steve

    I don't have that issue, but I see now that iTunes Media/Music/"Artist" now has another folder called "Folders"and they are not editable either. Can someone please describe their function?

  • Hierarchy or Tree structure Query

    Hi,
    I have to display each level total amount from the below tables
    We have two tables.
    Table 1 having the all level columns and table 2 having amount for each level
    Below are the table scripts and sample data
    CREATE TABLE LEVEL_TABLE
    LEVEL1 VARCHAR2(50),
    LEVEL2 VARCHAR2(50),
    LEVEL3 VARCHAR2(50),
    LEVEL4 VARCHAR2(50),
    LEVEL5 VARCHAR2(50)
    CREATE TABLE LEVEL_TABLE_AMT
    AMT NUMBER(15),
    LEVEL_VALUE VARCHAR2(50)
    INSERT INTO LEVEL_TABLE VALUES ('LEVEL_1', 'LEVEL_1.1', 'LEVEL_1.1.1', 'LEVEL_1.1.1.1', 'LEVEL_1.1.1.1.1');
    INSERT INTO LEVEL_TABLE VALUES ('LEVEL_1', 'LEVEL_1.1', 'LEVEL_1.1.1', 'LEVEL_1.1.1.1', 'LEVEL_1.1.1.1.2');
    INSERT INTO LEVEL_TABLE VALUES ('LEVEL_1', 'LEVEL_1.1', 'LEVEL_1.1.2', 'LEVEL_1.1.2.1', null);
    INSERT INTO LEVEL_TABLE VALUES ('LEVEL_1', 'LEVEL_1.1', 'LEVEL_1.1.2', 'LEVEL_1.1.2.2', null);
    INSERT INTO LEVEL_TABLE VALUES ('LEVEL_1', 'LEVEL_1.2', 'LEVEL_1.2.1', null, null);
    INSERT INTO LEVEL_TABLE VALUES ('LEVEL_1', 'LEVEL_1.2', 'LEVEL_1.2.2', 'LEVEL_1.2.2.1', null);
    INSERT INTO LEVEL_TABLE VALUES ('LEVEL_1', 'LEVEL_1.3', 'LEVEL_1.3.1', 'LEVEL_1.3.1.1', null);
    INSERT INTO LEVEL_TABLE VALUES ('LEVEL_1', 'LEVEL_1.3', 'LEVEL_1.3.1', 'LEVEL_1.3.1.2', null);
    INSERT INTO LEVEL_TABLE_AMT VALUES (100, 'LEVEL_1.1.1.1.1');
    INSERT INTO LEVEL_TABLE_AMT VALUES (200, 'LEVEL_1.1.1.1.2');
    INSERT INTO LEVEL_TABLE_AMT VALUES (100, 'LEVEL_1.1.2.1');
    INSERT INTO LEVEL_TABLE_AMT VALUES (300, 'LEVEL_1.1.2.2');
    INSERT INTO LEVEL_TABLE_AMT VALUES (100, 'LEVEL_1.2.1');
    INSERT INTO LEVEL_TABLE_AMT VALUES (400, 'LEVEL_1.2.2.1');
    INSERT INTO LEVEL_TABLE_AMT VALUES (100, 'LEVEL_1.3.1.1');
    INSERT INTO LEVEL_TABLE_AMT VALUES (200, 'LEVEL_1.3.1.2');
    COMMIT;
    Output of the Quey should be as below
    LEVEL_1(Amt)
    -- LEVEL_1.1(Amt)
    -- LEVEL_1.1.1(Amt)
    -- LEVEL_1.1.1.1(Amt)
    -- LEVEL_1.1.1.1.1(Amt)
    -- LEVEL_1.1.1.1.2(Amt)
    -- LEVEL_1.1.2(Amt)
    -- LEVEL_1.1.2.1(Amt)
    -- LEVEL_1.1.2.2(Amt)
    -- LEVEL_1.2(Amt)
    -- LEVEL_1.2.1(Amt)
    -- LEVEL_1.2.2(Amt)
    -- LEVEL_1.2.2.1(Amt)
    -- LEVEL_1.3(Amt)
    -- LEVEL_1.3.1(Amt)
    -- LEVEL_1.3.1.1(Amt)
    -- LEVEL_1.3.1.2(Amt)
    Please check and help me to display the query.
    Thanks,
    Pradeep.

    Seems level_table is not needed
    with
    level_table_amt as
    (select 100 amt, 'LEVEL_1.1.1.1.1' level_value from dual union all
    select 200, 'LEVEL_1.1.1.1.2' from dual union all
    select 100, 'LEVEL_1.1.2.1' from dual union all
    select 300, 'LEVEL_1.1.2.2' from dual union all
    select 100, 'LEVEL_1.2.1' from dual union all
    select 400, 'LEVEL_1.2.2.1' from dual union all
    select 100, 'LEVEL_1.3.1.1' from dual union all
    select 200, 'LEVEL_1.3.1.2' from dual
    ancestors(l,amt,list) as
      (select 1,amt,substr(level_value,7) from level_table_amt
       union all
       select l + 1,amt,substr(list,1,instr(list,'.',-1,1) - 1)
         from ancestors
        where instr(list,'.') > 0
    select 'LEVEL_' || list,sum(amt) amt
      from ancestors
    group by list
    order by listRegards
    Etbin
    Edited by: Etbin on 8.3.2012 14:26
    A quick and dirty hierarhical approach
    with
    level_table_amt as
    (select 100 amt, 'LEVEL_1.1.1.1.1' level_value from dual union all
    select 200, 'LEVEL_1.1.1.1.2' from dual union all
    select 100, 'LEVEL_1.1.2.1' from dual union all
    select 300, 'LEVEL_1.1.2.2' from dual union all
    select 100, 'LEVEL_1.2.1' from dual union all
    select 400, 'LEVEL_1.2.2.1' from dual union all
    select 100, 'LEVEL_1.3.1.1' from dual union all
    select 200, 'LEVEL_1.3.1.2' from dual
    select level_value,amount
      from (select 'LEVEL_' || ltrim(ancestor,'.') level_value,sum(amt) amount
              from (select distinct
                           amt,
                           level_value,
                           substr(level_value,1,instr(level_value,'.',-1,level) - 1) ancestor
                      from (select amt,'.' || substr(level_value,7) level_value
                              from level_table_amt
                    connect by level < length(level_value) - length(replace(level_value,'.',''))
             group by ancestor
            union all
            select level_value,amt
              from level_table_amt
    order by level_value

  • Two structure query with overlapping selections?

    Hi experts!
    I have a big Keyfigure structure in the column containing quite comlex restrictions and selections.
    Now I would like to create a row structure consisting of several selections where I restrict on different characteristics. However it seems like it's not allowed to create a row selection containing a characteristic that is already used in a selection in the columns.
    e.g
    a column selection is keyfigure A restricted on characteristic B = 'X'
    then it seems not to be allowed to create a row selection using B as restriction?
    Do any of you experts know if this can be bypassed?
    Thanks!
    Best regards,
    MR

    Ok,
    Thanks a lot for your swift answers and suggestions.
    However I was hoping not to have to use the cell definitions to handle this.
    The tricky part is that the keyfigure structure is rather large (approx 30 columns)
    and that quite a number of rows (that is row selections) are required (approx 20 rows), which by only using cell definitions will be rather cumbersome (>600 formulas).
    But anyhow, thanks for your answers!
    br,
    mr

  • Urgent Help:Tree structured query

    Hi,
    My requirement is as follows..
    I have two tables let's say A and B
    Table A has two fileds ID and PARENT_ID
    ID is a primary key and Parent_id is a foreign key to the same tables "ID" field(i.e, parent_id references a.id)
    Table B has 2 fields : status and id
    where ID is a foreign key to table A.id(B.id references A.ID)
    The data in those two tables looks like this
    A
    ID PARENT_ID
    1 2
    2 3
    3 4
    4
    5 6
    6 7
    7
    Table B has ..
    Status id
    Approved 1
    Approved 2
    Now I would like to select all the Approved Ids and all parent_IDs
    So i should get the following result
    id
    1
    2
    3
    4
    Can somebody help me write this query.. this is Kinda urgent Please.
    Thank you

    sql>select * from a;
           ID PARENT_ID
            1         2
            2         3
            3         4
            4
            5         6
            6         7
            7
    7 rows selected.
    sql>select * from b;
    STATUS                                ID
    Approved                               1
    Approved                               2
    2 rows selected.
    sql>select distinct id
      2    from a
      3   start with id in (select id
      4                       from b
      5                      where status = 'Approved')
      6   connect by prior parent_id = id;
           ID
            1
            2
            3
            4
    4 rows selected.

  • MDS 9000 cli structure query

    Hi all,
    I have been reading the following documentation:
    Cisco MDS 9000 Family CLI Configuration Guide, Release 4.x
    My question is more to do with CLI commands, so if I have posted to the wrong forum let me know where I should have posted my question and I'll imediately take action.
    Question: Can CLI commands be performed on one line?
    For example, to create a a VSAN the documentation shows a number of separate rules:
    1) vsan database
    2) vsan 2
    3) vsan 2 name TechDoc
    It seems rule 3 is dependent on having entered into a specifc submode from entering rules 1 and 2 first.
    Could a single rule have been written?
    vsan database vsan 2 name TechDoc
    Similarly, to create a Zone:
    1) zone name Zone1 vsan 3
    2) member ip-address 10.15.0.0 255.255.0.0
    Could the following have been written?
    zone name Zone1 vsan 3 member ip-address 10.15.0.0 255.255.0.0
    The reason I ask, is that I am also looking at the following documentation:
    Cisco MDS 9000 Family Command Reference, Release 5.x
    and it appears to suggest rules can be defined in one swoop. For example with the vsan database command it seems to also have the vsan-id and interfaces, ports and so forth all included:
    vsan database vsan vsan-id [interface fc slot/port | fcip fcip-id | fv slot/dpp-number/fv-port | iscsi
    slot/port | port-channel portchannel-number.subinterface-number} | interop [mode]
    [loadbalancing {src-dst-id | src-dst-ox-id}] | loadbalancing {src-dst-id | src-dst-ox-id} |
    name name [interop [mode] [loadbalancing {src-dst-id | src-dst-ox-id}] | loadbalancing
    {src-dst-id | src-dst-ox-id} | suspend [interop [mode] [loadbalancing {src-dst-id |
    src-dst-ox-id}] | loadbalancing {src-dst-id | src-dst-ox-id}] | suspend [interop [mode]
    [loadbalancing {src-dst-id | src-dst-ox-id}] | loadbalancing {src-dst-id | src-dst-ox-id}]]
    I also notice that there seems to be multile commands that can be used to achieve the same thing:
    For example, command "vsan database" has an option to specify an interface:
    Again aplogies for perhaps ridiculus questions, but I am just starting out with this area. Any inights are greatly welcomed.
    regards,
    Brian

    Hi Vu Phan,
    Thanks for responding.
    Would it be possible for someone to run such a command on a MDS 9000 switch and send me the output.
    I actually do not have access to a physical switch (academic budget constrains). I am an academic who wishes to construct a formal model and would like to be able to model the CLI in real world terms and not from a typical academic view of the world (often an abstraction of an already abstracted view of the world) :-)
    Jumping back to my original question, is it possible to perform two or three rules in one rule? Presumably there will be cases where it is and is not possible.
    Many thanks,
    Brian.

Maybe you are looking for

  • Open PDF in external window within browser?

    My company's line of business app (we're an insurance agency) depends on the browser plugin to display PDF's that are attached to customer accounts.  Unfortunately, the app displays the PDF in a small window that cannot be resized and requests to the

  • Where to I place downloaded .action and .app files

    Where do I place the automator action .action and .app files I download for installation. I noticed some load themselves auto into Automator whereas other need to be manually placed in a folder somewhere? Message was edited by: Todd Lichtenwalter1 Me

  • Photoshop elements 9 not installing

    I did not get a response yesterday so I'll try again.   PSE9 will not complete installation, error message stating cannot complete due to "Shared Technologies".  The installation starts to rollback. What is the fix? Thank you.

  • Illustrator CS3 opens but unresponsive

    Hi everyone, I'm new to this forum, so apologies in advance for any stupidity. I am using Illustrator CS3 on OS X Yosemite (v10.10.1). Since upgrading the OS, I had some issues opening the program. So I tried clicking on the most recent file I saved

  • Slow Macbook Performance

    My MacBook Pro has been running really slow lately. My computer is about two years old. Took it to the Apple Store & realized FileVault had been turned on. Turned it off, but performance has still been really slow. Mostly just run Chrome but it takes