mutiset separate union inside the collection


DROP TYPE list_number;
/

DROP TYPE t_number;
/

CREATE OR REPLACE TYPE t_number IS OBJECT (a NUMBER);
/

CREATE OR REPLACE TYPE list_number IS TABLE OF t_number;
/

-- this code doesnt raise exception
DECLARE
   w    list_number := list_number (t_number (1), t_number (2));
   w1   list_number := list_number (t_number (1), t_number (2));
   w2   list_number;
BEGIN
   w2 := w MULTISET UNION  w2;
END;
/

-- this code  raise exception when using distinct inside multiset with user defined collection
--ORA-06550: line 6, column 10:
--PLS-00306: wrong number or types of arguments in call to 'MULTISET_UNION_DISTINCT'
DECLARE
   w    list_number := list_number (t_number (1), t_number (2));
   w1   list_number := list_number (t_number (1), t_number (2));
   w2   list_number;
BEGIN
   w2 := w MULTISET UNION distinct w2;
END;
/

-- this dosent raise exception when using distinct inside multiset 
DECLARE
   TYPE list_num IS TABLE OF NUMBER;

   w    list_num := list_num (1, 2);
   w1   list_num := list_num (2, 2);
   w2   list_NUM;
BEGIN
   w2 := w MULTISET UNION distinct  w2;
END;
/

Hi gurus,

When you use separate inside a collection of type multiset for schema-owned type exception is thrown for which I am unable to find the root cause

Version

11.2.0.3.0 Production NLSRTL

Oracle Database 11g Enterprise Edition 11.2.0.3.0 64 bit Production

PL/SQL 11.2.0.3.0 Production

AMT for Linux: 11.2.0.3.0 Production

SEPARATE means by comparing and throws exception since it does not know how to compare objects of type T_NUMBER. The map method, you must:

SQL > CREATE OR REPLACE
T_number TYPE 2
3. IS ITEM)
4 a certain NUMBER.
5 FUNCTION of MEMBER card compare the RETURN NUMBER
6              );
7.

Type of creation.

SQL > CREATE OR REPLACE
2 BODY of TYPE t_number
3 EAST
4 MEMBER card FUNCTION compare the RETURN NUMBER
5 EAST
6 BEGIN
RETURN 7;
8 END;
9 END;
10.

Type the body created.

SQL >
SQL > CREATE or REPLACE TYPE list_number IS TABLE OF THE t_number;
2.

Type of creation.

SQL > DECLARE
2 w list_number: = list_number (t_number (1), t_number (2));
3 w1 list_number: = list_number (t_number (1), t_number (2));
W2 4 list_number;
5 BEGIN
6 w2: MULTISET UNION w2 w = separate;
7 END;
8.

PL/SQL procedure successfully completed.

SQL >

SY.

Tags: Database

Similar Questions

  • Allow access to a single host separate interface on the inside of the interface

    I use a Cisco PIX 515E ASA 8.0 (3) - two separate networks, one on each interface running...

    I have a separate network interface 'Wireless' intentionally because I share wireless with my neighbor and don't want it on my LAN 'inside '. I sometimes want to use the wireless myself, but only need to access my printer to 192.168.21.6

    How can I access the interface 192.168.21.6 wireless (just tcp/udp port 9100 I think). I've experimented with static controls, but could not operate? I need to create a separate IP such as 192.168.22.6 and map that to 192.168.21.6 inside the interface to be able to print?

    static (inside, wireless) tcp 192.168.22.6 9100 192.168.21.6 9100 netmask 255.255.255.255

    ACL not already allow ALL IP traffic between areas (except the RISKY PORTS) so no need to change that to make this work.

    You can also make static identity in which wireless users can access the printer using its original address. But this will create problems with the neighbor :).

    Please rate if useful.

    Concerning

    Farrukh

  • Classification of the Collections and Collection sets (inside Collection sets)?

    What are the rules for how elements (specifically, the collections and other collection sets) are classified into a set of collection?

    I tried to get a collection to appear at the top of the list of items in a set of collection, but it seems to get stuffed below all other series collection regardless of the name given to the collection.

    -Strathglass

    Entire collection / Smart Collections / Collections (alphabetical order in each case)

    It is the same within a collection set.

    If a collection will never appear above a smart collection or collection set regardles of that name. If you create a Collection Set, and then create two games in (01, 02) 01 Set could contain Collections and thus appears above smart collections in the 02 series.

  • Select the distinct value of a column in the collection in bulk.

    Hi all

    Collecting the data of a query to a variable of type table. I need to select a separate of a perticular column value in the collection.

    Collection has followiing values inside.
    Col(c).articleid,
    Col(c).userkey,
    Col(c).origin,
    Col(c).addnlorigindata,
    Col(c).avdest,
    Col(c).dispfmt,
    Col(c).sourcecode,
    Col(c).success_ind,
    Col(c).error_code,
    Col(c).entry_createddate,
    Col(c).createdby,
    Col(c).filenumber,
    Col(c).linenumber,
    Col(c).acctnum,
    Col(c).assetkey,
    Col(c).autocompletedterm,
    Col(c).accessionnumber,
    Col(c).requestdatetime,
    Col(c).requestorip,
    Col(c).articleordinal,
    Col(c).userinitiatedind,
    Col(c).captchastatus
    I need to select distinct column values (for example: Col (c) .sourcecode) collection and the need to insert in the table if the value in this column does not exist in the table.

    Say, Col (c) .sourcecode has the value XYZ, ABC. If the "XYZ" value does not exist in the table, so I need to insert in the table and if "ABC" exists in the tables then don't insert it. (something like fusion) after seecting to the distinct values in a column in the collection.

    Thanks n regards
    Nana Akkivalli.

    The collection must be inserted before you can use this topic.

    In the Begin block, you have to collect a loose and insert inside: something like

    SELECT *
    BULK COLLECT INTO l_array
    FROM ALL_USER
    ...CONDITIONS...
    
  • load the collection query records

    Can you help me with the code below.
    I need to implement 'TODO 1' inside the code. I have table with 3 lines, as see you in the code, I want the 3 disks to load quickly in the collection "i_subject_id_list". but I don't know how to load. I know how to exit from the collection 'i_subject_id_list' values loaded as see you later in the code. But I don't know how to put mquery fro the values in the collection in an effective way.
    /*create or replace
    type T_ID_ARRAY as table of NUMBER(10);
    */
    declare
       i_subject_id_list             T_ID_ARRAY;
       v_index  number;
    begin
       --TODO 1. Fill here #i_subject_id_list# with 3 subject_ID's:
       --
       /*select 1 ID from dual  union
       select 2 ID from dual  union
       select 3 ID from dual;*/
       --2. Output here #i_subject_id_list#:
       v_index := i_subject_id_list.first;
       while v_index is not null loop      
          dbms_output.put_line(i_subject_id_list(v_index));
          v_index := i_subject_id_list.next(v_index);
       end loop; 
    end;
    create or replace type T_ID_ARRAY as table of NUMBER(10);
    /
    
    sho err
    
    set serveroutput on 
    
    declare
       i_subject_id_list             T_ID_ARRAY;
       v_index  number;
    begin
     select id
       bulk collect
       into i_subject_id_list
       from (select 1 ID from dual
              union
             select 2 ID from dual
              union
             select 3 ID from dual);
    
       v_index := i_subject_id_list.first;
       while v_index is not null loop
          dbms_output.put_line(i_subject_id_list(v_index));
          v_index := i_subject_id_list.next(v_index);
       end loop;
    end;
    /
    
  • Information inside the urlclassifier.sqlite

    Does anyone know if this file can be of any help, trying to find the browsing history? He was erased on my PC and it is the only file that has not been affected.

    Also, when the Firefox cache is deleted, can it be moved using a hard disk removal tool?

    The data are collected inside the places.sqlite file and because there is no function cancel as when editing a document, the data is permanently lost. Sorry to say this, but I think the only chance would be a backup or an earlier version.

  • How can I change the color of the plots (lines, points) in the collection Scattergraph plot

    For example, I go through a foreach loop and draw two points. How to distinguish this set of plots of the yet to come? How can I change the style, color and have separate lines (instead of on the line connecting everything) for each of my plots? I don't know how to set everything up, but it still does what he wants to do. TIA.

    Hello

    The problem you see occurs because of the following lines of code:

    The _data and _data2 scatterPlot3 value

    _data = scatterPlot3

    _data2 = scatterPlot3

    When you do this, you define _data as _data2 to reference an object of the simple concession - scatterPlot3.  Yes, even if you have (from the code you have posted at least) three slots in your collection, they are all pointing to the same object of point cloud.  So when you change the color for one, it changes the color for them all.  However, I think that you have fallen on the right solution in your last sentence.  If you want to have multiple locations on your ScatterGraph, each with its own color and style, they should each be separate and unique plots in the collection plot of your ScatterGraph.  Based on the code you posted, you'll see this if you comment just the two lines shown above.

    Please let me know if something is still uncertain.

    NickB

    National Instruments

  • Only AAS, 2 inside the kernel switches (HSRP) Best Practice Design

    Hello

    I design a N/W with following equipment.

    1: 2 * carrots (4503)

    2: single Firewall ASA 5520

    I have following design options;

    DRAWING 1:

    1. Basic switches use HSRP
    2. VLANs are active on a (primary) switch at a time
    3. CONNECT THE TWO CŒURS WITH ASA
    • ASA E0 - outside (routers) switch
    • ASA (redundant interface = E1 + E3) R1 - the two nuclei (HSRP)
    • ASA E1 - Core 1 (F3/48) + ASA E3 - Core 2 (F3/48)
    • ASA E2 - switch DMZ

    DESIGN 2:

    1. Basic switches use HSRP
    2. VLANs are active on a (primary) switch at a time
    3. CONNECT THE TWO CŒURS FOR LAYER 2 SWITCH (INNER AREA)
    4. CONNECT THE LAYER 2 SWITCH TO ASA E1

    The first options looks better avoid me point single failure (Layer 2 of insdie switch).

    Unfortunately, I'm short on time and do not currently have access to the LAB.

    Please

    1. Share your experience and suggest which option is preferable
    2. Advantages, disadvantages during the failover hsrp, other features, etc.
    3. indicate if there is an alternate option
    4. Precautions

    BR,

    ABDUL MAJID KHAN

    Your "redundant ASA interface" is not really. Only one ASA has no real redundancy. I guess you could make a "inside the 1" and "inside 2", but they would have separate IP addresses and within hosts would not automatically from one to the other. " I would say that the complexity that introduced more than offset the second idea to have a small switch L2 VLAN between your ASA unique within the interface and your L3 core switches.

    That's why I prefer the second option. A switch L2 deemed unchanged configuration being done is quite reliable - I regularly fall on them with years of availability. You can also add a quasi redundancy in option 2 by tying together your ASA E1 interfaces and E3 in an etherchannel (requires a Software ASA 8.4 or later version). that option is not possible with option 1 (at least not in the two basic switches) as an Etherchannel are two IOS switches at one end.

  • LRM does not display the collection sets!

    Dear Adobe

    I ' n not quite sure if it of a mistake or not, but here goes:

    I created a collection with a number of collections inside in Lightroom.

    I then synced the collections and they are all visible in LRM on my iPad, but I would really like to see my collection of value similar to a folder hierarchy.

    Is this possible or is this as it should?

    Thanks John

    It is not a bug, it is a limitation of LR Mobile.  Add your vote me-too and reviews of this feature request to Adobe official feedback forum: mobile Lightroom: ability to create sets of the Collection Photo Workflow perfectly. Community customer Photoshop family

  • Question about the collection of NETWORK adapters for vMotion / VM vSwitch

    Hello

    We use vSphere Enterprise Edition 5.1.

    We also create separate vSwitch for management / vMotion and VM.

    Each vSwitch receives 2 network cards connected to the different switch for redundancy.

    We would like to know is necessary to provide the collection of NETWORK adapters for these vSwitches?  Currently, only enable us NIC Teaming for VM vSwitch only.

    Thank you

    VSwitch vMotion, we have 2 assigned NIC (nic2 and nic6) with 10 VLANS.  NIC2 and nic6 are connected to 2 different physical switches.

    Should I choose

    (1) both are active

    (2) both are assets + grouping of NETWORK cards?

    Question - if there is only 1 VLAN, it seems that NIC Teaming is also not very useful unless we use 2 VLAN (Multi-NIC vMotion).  Is this right?

    If you use Multi-NIC vMotion, there is no need to have two different VLANS, all you need is depending on configuration

    on your vMotion switch, please create two vmkernel port for vMotion with the same VLAN ID, but the grouping of NETWORK cards as below

    vMotion_1 - VLAN ID: 10

    Grouping of NETWORK cards

    vmnic2 - active

    vmnic6 - watch

    vMotion_2 - VLAN ID: 10

    vmnic6 - active

    vmnic2 - watch

  • Changing the sequence of thumb in the Collections?

    Hello

    I created smart Collections inside the sets of the Collection through keywords, and then I tried to change the sequence of these inches in the order viewing good.

    But the system will not allow it.

    So, what are my options for a group of pictures of various records in one place, in the desired sequence?

    Thank you very much

    Raphael

    PS Ce that means: tag your content to make it easier to find? How I tagged content?

    Open the 'Smart' Collection of images,

    Select all [CTRL + A]

    Create a standard collection [+]

    Change the sort order in the toolbar, or drag and drop to a sort of "Custom".

    'Tag' in my opinion, is another term for "Keyword". When you the keyword of the images he puts a 'Tag' icon on this thumbnail preview.

  • How can I escape commas inside the function listQualify?

    I have

    am a newbie in coldfusion. I need help. My database has records of names of companies as: abc, Inc. For now I'm using this query:

    SELECT DISTINCT COMPANY FROM ComapanyTable WHERE (Company IN (#ListQualify(form.cCompanyList2, "'", ",")#))

    This problem is that it separates CBA, Inc..

    SELECT DISTINCT Company FROM CompanyTableWHERE (Company IN ('abc',' Inc.','xyz','Inc.'))

    I need to get the list, as it is, i.e. as: "abc, Inc.", "xyz, Inc." so that I can later insert these values into a new table.

    Insert the code:

    <cfquery name="insertPair" datasource="#DSN#" dbtype="ODBC"> INSERT INTO tblChildCompanyToParent (Parent_Account_ID, Child_Account_ID) SELECT DISTINCT <cfqueryparam value = "#form.pCompanyList#" CFSQLType = "CF_SQL_VARCHAR">, Company FROM CompanyTable WHERE Company IN (<cfqueryparam value="#ValueList(insertSelect.Company,';' )#" CFSQLType = "CF_SQL_VARCHAR" list="true" separator=";">) </cfquery>

    Code of the selection list

    <select multiple name="cCompanyList2" id="cCompanyList2" class="selectCCompany" data-attribute="selCCompany" size="10"> <cfloop query="childCompanyList"> <option value="#childCompanyList.Child_Account_ID#">#childCompanyList.Company#</option> </cfloop> </select>

    Y at - it anyway to solve this problem.

    Thank you for your help.

    I managed to fix it.

    I posted the solution to StackOverflow

    SQL - how can I escape commas inside the function listQualify? -Stack overflow

    Thank you once again!

  • Cannot click inside the shape

    Hi again! I'm having a problem with something I'm experimenting with that. I'm looking to add a form and button on my site, but when you add within a specific div, I can't click inside the form field.

    Test the Site below:

    Rental management company

    rmcexample.jpg

    The highlighted area is the part I'm talking about. My theory is that I can't click inside this area, because it is connected to the pro javascript slider and nothing inside the div tag is treated as a picture or sortings. Is there a way I can get around this? Any help is appreciated, thanks in advance!

    IMO, this slider has no positive effect for your page.   I use cursors for titles and images, but not for long details on several properties.  I just think it's the wrong approach for this kind of content.

    The form works if you put the cursor inside a separate far container?

    Nancy O.

  • Creating user interface inside the transmitterPlugin.cpp

    Hi, I had two questions about transmitterPLugin. I am trying to create a plugin that will transmit data to the monitor of first source pro on an external device.

    transmit_UI.PNG

    (1) I use the MessageBox to create a normal window from the code above, but how to create a UI like premier pro has inside the function above? Is there documentation on creating interface user using C++?

    Or should I create a Javascript UI file that is used by the C++ plugin loading?

    (2) in the SDK documentation mentions this:

    transmit_other.PNG

    By clicking on the following call pass does not any useful information. I also checked on a previous post on this https://forums.adobe.com/thread/1179336

    Adobe explain please how can I get the suite to call forwarded to work. For example, should I create a video filter that, if the user adds to the clip, it should

    Send the entire timeline for external devices, how to use the SDK example files to achieve this? Should I export a Video_filer plugin and a plugin of the issuer or should

    Add the source code of these two into one? It would be useful to understand the workflow, since there is no examples related to this in the SDK.

    Thank you

    Since you have to scrub the timeline and see live results, plugin show is the way to go.

    The interesting part of your project, it's that you must return the frame for head tracking, even if there is no new image from Premiere Pro.  I agree that you need the while loop in a separate thread or process, so that it can continue to loop and manage the lead followed separately.

    SetupDialog certainly isn't the place to run a processing loop.  This is only a place to display the user settings and save them.  To the settings dialog box, you can use Windows or Mac API.

    During the ActivateDeactivate, you can manage physical access low level, and could be a possible place to redeploy a new priority processing thread that assumes the head track frames and handles.

  • Muse in iframe page inside the iframe links

    HI - hope someone can help me.

    I have created a web page in Muse and uses an iframe to display on the home page of an existing Web site.  Below in the big blue box, you can see the iframe to display.  Note the blue area around one of the links:

    link1.jpg

    When you click this link, here's what happens:

    link2.jpg

    The page inside the iframe, which I don't want to happen.  I'm back in Muse and selected the "open in a new window" for links, who comes here to open links in a separate tab or a new window, which will not work.

    Can someone help me understand how to open links in the same parent window, but not inside the iframe?  I have to change the Muse exported HTML page to make it work?  I could put something inside the HEAD, on the Muse page before exporting?  Any help is appreciated.

    Thank you.

    Hi - I found the solution.  Add this to the head in the properties of the page and it works:

Maybe you are looking for

  • 20 of Firefox is not compatible with my computer, how can I go back to Firefox 19?

    20 of Firefox is not compatible with my computer, how can I go back to Firefox 19?

  • Satellite 1950 - I can't update Bios

    Hello I just got a Toshiba SAT. 1950 second hand. (1 GB of ram, 2.4 ghz, 160 GB hd)I noticed that he needs a bios update, but the hard drive does not work. So I downloaded the BIOS file - V150.exe (768.748 13.12.2002 14:07), started the exe on anothe

  • 14 - J009TX: unable to display the photos in my pictures

    Hello I just bought a new laptop with a DESIRE series intel i7 and Nvidia Geforce GTX portable. However, when I try to view ictures in my pictures, it tells me "This application does not support the specified contract or is not installed. I can see t

  • Red printers device, connect como.

    connect device of more of the Red dá como y cuando todo apago y reinicio vuelta todo Patrick o el red device not walk, no hace a year the compre y el device of Red y still no lo puedo usar.

  • Page a tab missing after compilation

    In my program, I made 3 pages for a tab. After compilation, it still works ok (Vista, LV8.6.1). The whole tab is secondary in a parent tab. But when I run it on another PC, strange enough, only 2 tab here, the last was absent. And tab 2 occupy the en