Typedef Union... failed

Hello

I've seen in a post that it is possible to create a union in LabVIEW [and without using a dll]

but I do not understand the method, y at - there someone who can help me and explain how

manage this trick in the following example:

typedef struct _ssscmddata_haltest
{
U8 test_flags; Reserved, must be zero
U8 test_start; SSSVAL_HAL_TSTART_xxxx
U16 target_output; To the target in milli-amps or volts output
U16 time_ramp_tgt; Target time in tenths of a second to the voltage ramp
U16 time_hold; Target time in tenths of a second to maintain the tension
U16 time_ramp_zero; Time in tenths of a second to the ramp to zero volts

Union {}
float r; Generic access
float milli_amps; HIPOT. Used only at the end of the test for determining the pass/fail.
float mega_ohms; DCIR. Used only at the end of the test for determining the pass/fail.
float milli_ohms; BENJAMIN. Used only at the end of the test for determining the pass/fail.
} lo_limit;

Union {}
float r; Generic access
float milli_amps; HIPOT. Test fails immediately in case of exceeded this limit.
float mega_ohms; DCIR. Used only at the end of the test for determining the pass/fail.
float milli_ohms; BENJAMIN. Used only at the end of the test for determining the pass/fail.
} hi_limit;

U8 arc_detect; 0 to 9, 0 = disabled, 1 = most sensitive,..., 9 = least sensitive
U8 channel; HAL: 0, HALSCAN: 0 to 4, G2, 0 = front, 1 back =
} ssscmddata_haltest;

[Thanks in advance:-]

I may be a bit thick here, but what is the purpose of the union in your example?  I remember my days of line code that a Union is designed to manage several types of data into a memory block.  Your unions being all the floats, you could use simple float lo_limit/hi_limit and without the need to use a union.

without searching the forum for trade unions, the closest direct structure of you, I can think of that would be an array of U8s, initialized to the specific number of bytes of your Union the most important "variable".   Then apply an overall style LV2 to prevent new memory allocation.  I'm not sure of is the efficiency of conversion in and out in the table.  Also, I don't know if you save a string with a number of characters if Labview not redirect memory anyway.

Pei

Tags: NI Software

Similar Questions

  • LabVIEW Embedded for ARM build fails

    I use the LabVIEW Embedded module for ARM microcontrollers with the
    The EK-luminary LM3S8962 Evaluation Committee.

    When I try to build/run vi as an example in the tutorial (pg 13, the start-up
    doc) I get the following error: Build Failed. Build failed with errors.

    The result is the following:

    Building target "LabVIEW".
    mounting Startup.s...
    compilation of RTX_Config.c...
    .. \System\RTX_Config.c(157): error: #130: wait a "{}".
    compilation of Retarget.c...
    compilation of TargetInit.c...
    compilation of ARM_irq.c...
    compilation of ARM_RTClock.c...
    compilation of ARM_Serial.c...
    compilation of EKLM3S8962_Display.c...
    compilation of LM3S_EMAC.c...
    D:\Program NIUninstaller Instruments\LabVIEW
    8.6\Targets\Keil\Embedded\RealView\Drivers\RL-ARM\Include
    \RLARM_Net_Config.h(31)
    : error: #256: invalid redeclaration of type name "S8" (reported on line
    37 of
    "d:\Keil\ARM\RV31\INC\RTL.h")
    compilation of ARM_I2C.c...
    compilation of ARM_SPI.c...
    compilation of LM3S_Pins.c...
    compilation of LVCGenIntInit.c...
    compilation of Untitled_ARM.c...
    compilation of lvEmbeddedMain.c...
    <-----snip------>
    compilation of RLARM_CAN_Wrapper.c...
    Target not created

    You forgot to tell us about your version of MDK - ARM (perhaps MDK 3.5 +).
    Open Keil uVision and double-click these errors:

    .. \System\RTX_Config.c(157): error: #130: wait a "{}".
    Just move __task at the beginning of this line
    __task void os_idle_demon (void) {}

    To make a permanent change, you could also modify the \Targets\Keil\Embedded\RealView\EK-LM3S8962\Template\System\ RTX_Config.c

    \RLARM_Net_Config.h(31)
    : error: #256: invalid redeclaration of type name "S8" (reported on line 37 of "d:\Keil\ARM\RV31\INC\RTL.h")
    Comment out the line:
    typedef char S8;     / * defined elsewhere from MDK 3.5*.

    It will be for good.

  • Add content to the constant of typedef

    I created a typedef strict compelled constant references to the controls and indicators which makes a .ctl file. Now I wish to add control references to the typedef but can not understand how... I tried to add new references to command directly to the constant of typedef. The operation has failed. I also tried opening the typedef that opened the .ctl file. It was also a non-starter, as you can view the front panel, which means that I can't add references to the constant of a typedef ?

    Any ideas?

    Stroke

    I'm not sure what you're trying to do, if you want to change your typedef (add - modify controls remove him) then of course, you have to open it, you make changes and save. then changes will be propagated throughout your soft everywhere where you the typedef is used.

    The fact that you want to add a control reference control to your typedef does not alter.

    Typedefs isn't a block diagram and allows you to add a Ref control to your typedef, you can do it from the front panel, just go you are the appropriate palette (Refnum)

    Hope this helps

  • Typedef in an executable path

    Hi, I am developing code in LabVIEW 2011 which uses typedef had controls.  Some of them are rather large networks, and data from these controls are received a string of server interaction.  We found a way to fill in the tables (including the conversion of a string to the appropriate data types) using a predefined VI called dynamically by the code.  The VI must reside in the same folder, and the name must match the name of typedef (but with an extension .vi).

    Here is my challenge...  In the development environment, I use a node property to get the path of the reference control Typedef.  Once I have create code in an executable file, it will not execute because the Path of Typedef property is a property of script that is not available in the runtime.

    Has anyone had a problem similar to this one, and if so, how to overcome this obstacle?

    Thanks in advance,

    David Dupont

    David@work wrote:
    Once I have create code in an executable file, it will not execute because the Path of Typedef property is a property of script that is not available in the runtime.

    Are you sure that this is the case? I have not tested, but the help says that it is supposed to work in the TEN. Of course, aid is not necessarily fair, but it's worth the trip. For example, it may not work because your spec build disconnects typedefs (although my understanding is that you do not build these screws) or because you are missing code that is compiled or due to dependency conflicts, etc..

    The point is that you should look at the details of the exact error and see where and how it crashes. I guess you, but since you don't give these details I can't be sure.

    If all else fails, I would say running a manual/automatic process in BT during the construction of these plugins that will store this information in a lookup table any (FP of the plugin VI/text database / file in the same folder, etc.) and then have the EXE, read the information from there. That looks like it would work less conversion than the option of classes.

  • The MCSTRM service failed to start due to the following error: the system cannot find the specified file

    My computer starts rather suddenly gel with many applications.  Today it froze again once I finished a long email and was about to send.  I lost him of course.  My Event Viewer was the topic.  Event 7000, Service Control manager Eventlog.

    What can I do?  I have Vista SP2 64-bit.

    I'll add that the kernel_driver of Type 1 mcstrm following 1 State arrested Win32_exit_code 2 <0X2>Wait_hint Checkpoint 0 x 0 0 x 0

    Please... any help to fix... my computer keeps freezing. and I will need to get a new laptop or an Ipad, if the problem persists.

    Thank you

    Candy C:\Users\David> net helpmsg 2

    The system cannot find the specified file.

    Is that error on this post code, IE something deleted, probably your antivirus or you.

    For problems to explore, which has nothing to do with this post, try this (which covers almost any problem).

    Explorer

    Explorer (explorer.exe) is the program that is the start menu and taskbar, windows folder and the office (which is a folder window).

     

    To see if a fix is available

    In Control Panel (and select Classic discovered in the left pane) select reports on the problems and Solutions (problem of type in the START search box), go to historical problem, right-click of your error and choose check for the Solution.

    You can also right-click and choose Details for more information. Post these details here. The name of the Module fault is important information.

    If the problem affects Panel press the Windows key + R and type wercon (or type it at a command prompt).

     

    Close the browser and start a command prompt

    • Close Windows Explorer
    • Start - All Programs - Accessories - right on command prompt and choose run as administrator.
    • Click Start. Ctrl + Shift + Right-click on an empty spot (just above the power of buttons is one place) then Exit Explorer.
    • Press Ctrl + Alt + Delete then Task Manager.
    • Control all processes to explore are closed. On the process tab select explore and right-click and choose end process, repeat if more of an Explorer in the list.

    Then to restart the Explorer after trying all of the following

    • Press Ctrl + Alt + Delete and choose Task Manager
    • In the Task Manager, click the file menu and then click new task (run) and enter explorer
     

    If you cannot start the Explorer at all

    • Press Ctrl + Alt + Delete and choose Task Manager
    • Under the processes tab, click Show processes from all users to elevate to administrator
    • In the Task Manager, click the file menu and then click new task (run) and type cmd
    • Other things you can try typing

      Explorer
      Explorer c:\
      Explorer/e, c:\
      wercon
      control
      Iexplore
      Rstrui

    If you cannot start a folder window you can use the Browse button in the new task dialog. Don't forget that you must right click and choose Open rather than double-clicking.

     

    Reregister the shell registry entries

    It is important that each order is accepted. If the command fails it means the file is damaged and must be repaired.

    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    regsvr32 /i shell32
    regsvr32 /i urlmon.dll
    regsvr32 RPCRT4.dll
    regsvr32 PROPSYS.dll
    regsvr32 MSCTF.dll
    regsvr32 cscui.dll
    regsvr32 rsaenh.dll
    regsvr32 timedate.cpl
    regsvr32 ATL DLL
    regsvr32 OLEACC.dll
    regsvr32 actxprxy.dll
    regsvr32 USERENV.dll
    regsvr32 msshsq.dll
    regsvr32 NaturalLanguage6.dll
    regsvr32 thumbcache.dll
    regsvr32 WINTRUST.dll
    regsvr32 MMDevAPI.DLL
    regsvr32 audioses.dll
    regsvr32 audioeng.dll
    regsvr32 ExplorerFrame.dll


    regsvr32 msi.dll
    regsvr32 FirewallAPI.dll
    regsvr32 netshell.dll
    regsvr32 pnidui.dll
    regsvr32 QUtil.dll
    regsvr32 c:\windows\system32\wpdshserviceobj.dll
    regsvr32 WINHTTP.dll
    regsvr32 C:\windows\system32\qagent.dll
    regsvr32 C:\windows\system32\portabledeviceapi.dll
    regsvr32 wbemprox.dll
    regsvr32 wbemsvc.dll
    regsvr32 fastprox.dll
    regsvr32 imapi2.dll
    regsvr32 wshext.dll
    regsvr32 gameux.dll
    regsvr32 msxml6.dll
    regsvr32 vbscript.dll
    regsvr32 jscript.dll
    regsvr32 wshext.dll
    regsvr32 wshom.ocx
    regsvr32 wshcon.dll
    regsvr32 scrrun.dll

     

    Delete the folder and the settings of the Menu

    This will remove the settings are saved for each file that you visit. Also the order of the start menu and pinned list settings.

    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    Reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell" /f

    Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams" /f

    Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2" /f

    Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage" /f

    Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder" /f

    Delete the thumbnail and icon Caches

    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    attrib - r s h '% userprofile%\AppData\Local\*.db '.

    attrib - r s h '% userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.db '.

    del "% userprofile%\AppData\Local\*.db".

    del "% userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.db".

    Disable thumbnails and previews

    Damaged documents and particularly corrupt pictures or videos, can cause Explorer crash all trying to generate a thumbnail or an overview. This miniature and previews active option off.

    If you can start the Explorer, previews is Union on the command - folder and Search Options - framework of tasks use classic Windows foldersbar.

    Thumbnails are organized on the command bar - folder and Search Options - view tab - and check under Advanced settings - always show icons, never thumbnails and uncheck Show icon file in the pictures.

    If you cannot start the Explorer close Explorer as above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "IconsOnly" /t Reg_DWord /d 00000001 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowPreviewHandlers" /t Reg_DWord /d 00000000 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowTypeOverlay" /t Reg_DWord /d 00000000 f

    Turn around after testing the Explorer.

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "IconsOnly" /t Reg_DWord /d 00000000 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowPreviewHandlers" /t Reg_DWord /d 00000001 f

    Tracking Add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" v "ShowTypeOverlay" /t Reg_DWord /d 00000001 f

     

    A boot is a way to explore

    It can be caused by a shell extension.

    Explorer (explorer.exe) is the program that is the start menu and taskbar, windows folder and the office (which is a folder window).

    The Explorer is built on addin programs called Extensions of Shell. The standard is provided by Microsoft, but programs add their own.

    • Download Autoruns http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
    • Close Windows Explorer
    • Start Autoruns by right-clicking and choose run as administrator
    • Click on the menu Options - Filter Options and check hide Microsoft entries and disable include empty locations
    • Go to the Explorer tab and uncheck everything to the left.
    • Click Start. Ctrl + Shift + Right-click on an empty spot (just above the power of buttons is one place) then Exit Explorer.
    • Press Ctrl + Alt + Delete and choose Task Manager.  Control all processes to explore are closed. On the process tab select explore and right-click and choose end process, repeat if more of an Explorer in the list.
    • Click the file menu and then click new task (run) and enter explorer

    If this can help, reactivate ½ at a time to identify those who. If this does not help, restart AutoRuns and go to the all tab and uncheck everything that it and restart. If this can help, reactivate ½ at a time to identify those who.

    Run Microsoft Fixit

    Microsoft has a range of automatic programs to solve common problems. To see problems explore

    http://support.Microsoft.com/mats/windows_file_and_folder_diag/en-us

    For the visit of the list the most comprehensive

    http://support.Microsoft.com/FixIt/en-us

    When you choose to download, choose the option to run on another computer. You can then save it to your hard drive. Open the folder, open the folder fix this laptop and run Run Fix It. It will contain all 27 FixIt.

    Recycle Bin
     
    If the problem is the trash bin remove the storage folders. It will be automatically re-created next time you delete a file or open the Recycle Bin. It will remove the trash and the files it contains for all users.
     
    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).
     
    RD C:\$RECYCLE. BIN/s/q
     
    then repeat for each drive to change the drive letter, for example
     
    d:\$recycle Rd. BIN/s/q
     
    e:\$recycle Rd. BIN/s/q
     
     
    If the Office does not start
     
    This will create a new empty by user and common desktop computer. This will allow to test if a file on your desktop to start the Explorer.
     
    Close the Explorer like above and then type at the command prompt (or copy and paste by clicking in the command prompt window and choose Paste).
     
    MD "% userprofile%\DesktopTest".
     
    Add reg "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" / v/t desktop REG_EXPAND_SZ /d "% USERPROFILE%\DesktopTest" /f
     
    MD "% public%\desktopTest".
     
    Tracking Add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" v "Common Desktop" REG_EXPAND_SZ /d "% Public%\DesktopTest" t f
     
    To restore default after having tested if begins to explore.
     
    Set ExpFix1 = % user
     
    Set ExpFix2 = % profile
     
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" / v/t desktop REG_EXPAND_SZ /d "% ". ' ExpFix1 ExpFix2%% \Desktop "/f
     
    Set ExpFix1 = % Pub
     
    Set ExpFix2 = % lic

     
    reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Common Desktop" /t REG_EXPAND_SZ /d "% ". ' ExpFix1 ExpFix2%% \Desktop "/f
     
    You will need to disconnect then.
     
     
    New entry missing folder
     
    If the above does not help.
     
     
    Click Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type Regedit menu and file - import , import the NewFolder.reg.
      
  • Linux - compilation of the modules in the kernel (bundle of VMware Workstation 9.0.2) against core 3.10 fails

    Hey,.

    I try to get VMware Workstation running on an Ubuntu 13,10 pre 9.0.2 bundle, but the kernel modules won't get compiled with the kernel 3.10.0 - 6.

    Here is the log of the build scripts:

    Using 2.6.x kernel build system.

    do: go in Verzeichnis "/ tmp/modconfig-DQkPL0/vmnet-only.

    / usr/bin/make /lib/modules/3.10.0-6-generic/build/include/ - c... SUBDIRS = $PWD SRCROOT = $PWD. \

    MODULEBUILDDIR = modules

    make [1]: Betrete Verzeichnis ' / usr/src/linux-headers-3.10.0-6-generic'

    CC [M] /tmp/modconfig-DQkPL0/vmnet-only/driver.o

    CC [M] /tmp/modconfig-DQkPL0/vmnet-only/hub.o

    CC [M] /tmp/modconfig-DQkPL0/vmnet-only/userif.o

    CC [M] /tmp/modconfig-DQkPL0/vmnet-only/netif.o

    In file included from tmp/modconfig-DQkPL0/vmnet-only/vnet.h:28:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/netif.c:42:

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompilePtr ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2558:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Ptr, 64, void const *, void *, uintptr_t)

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompileInt ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2562:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Int, 32, int, int, int)

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:31:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnet.h:29.

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/netif.c:42:

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h: in function 'MonitorActionSet_AtomicInclude ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:91:4: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE ((ACTION_WORD_SIZE & (ACTION_WORD_SIZE-1)) == 0);

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/Netif.c: in function 'VNetNetIf_Create ':

    /tmp/modconfig-DQkPL0/vmnet-only/Netif.c:191:33: error: dereferencing pointer to incomplete type

    netIf-> port.jack.procEntry-> read_proc = VNetNetIfProcRead;

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/Netif.c:192:33: error: dereferencing pointer to incomplete type

    netIf-> port.jack.procEntry-> data is netIf;.

    ^

    make [2]: * [/ tmp/modconfig-DQkPL0/vmnet-only/netif.o] Fehler 1

    make [2]: * Warte auf noch nicht processes going...

    In file included from tmp/modconfig-DQkPL0/vmnet-only/vnet.h:28:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/hub.c:43:

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompilePtr ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2558:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Ptr, 64, void const *, void *, uintptr_t)

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompileInt ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2562:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Int, 32, int, int, int)

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/vnet.h:28:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/driver.c:51:

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompilePtr ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2558:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Ptr, 64, void const *, void *, uintptr_t)

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompileInt ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2562:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Int, 32, int, int, int)

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:31:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnet.h:29.

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/hub.c:43:

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h: in function 'MonitorActionSet_AtomicInclude ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:91:4: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE ((ACTION_WORD_SIZE & (ACTION_WORD_SIZE-1)) == 0);

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:31:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnet.h:29.

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/driver.c:51:

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h: in function 'MonitorActionSet_AtomicInclude ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:91:4: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE ((ACTION_WORD_SIZE & (ACTION_WORD_SIZE-1)) == 0);

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c: in function 'VNetHubFindHubByID ':

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c:132:49: warning: 'sizeof' into 'memcmp' appeal argument is the expression even as the first source. Did you provide an explicit length? [- Wsizeof - pointer-memaccess]

    memcmp (idNum, currHub-> id.pvnID, sizeof idNum))) {}

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c: in function 'VNetHubAlloc ':

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c:315:36: warning: the argument of 'sizeof' into 'memcpy' appeal is the same type of pointer ' uint8 *' as the destination. EXPECTED "uint8" or explicit length [- Wsizeof - pointer-memaccess]

    memcpy (hub-> id.pvnID, id, id sizeof);

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c:366:28: error: dereferencing pointer to incomplete type

    Jack-> procEntry-> read_proc = VNetHubProcRead;

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/hub.c:367:28: error: dereferencing pointer to incomplete type

    -->--> Data procEntry Jack is jack.;

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/vnet.h:28:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/userif.c:46:

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompilePtr ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2558:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Ptr, 64, void const *, void *, uintptr_t)

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h: in function 'AtomicAssertOnCompileInt ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2397:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused];             \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_atomic.h:2562:1: Note: the expansion of the macro 'MAKE_ATOMIC_TYPE '.

    MAKE_ATOMIC_TYPE (Int, 32, int, int, int)

    ^

    In file included from tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:31:0,

    of tmp/modconfig-DQkPL0/vmnet-only/vnet.h:29.

    of tmp/modconfig-DQkPL0/vmnet-only/vnetInt.h:24.

    from /tmp/modconfig-DQkPL0/vmnet-only/userif.c:46:

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h: in function 'MonitorActionSet_AtomicInclude ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/monitorAction_exported.h:91:4: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE ((ACTION_WORD_SIZE & (ACTION_WORD_SIZE-1)) == 0);

    ^

    make [2]: * [/ tmp/modconfig-DQkPL0/vmnet-only/hub.o] Fehler 1

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c: in function 'VNetUserIfIoctl ':

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c:810:7: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE(VNET_NOTIFY_VERSION == 5);

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/vm_assert.h:320:20: WARNING: typedef "AssertOnCompileFailed" locally defined but not used [- Wunused - local-typedefs]

    typedef char AssertOnCompileFailed [AssertOnCompileMisused]; \

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c:811:7: Note: the expansion of the macro 'ASSERT_ON_COMPILE '.

    ASSERT_ON_COMPILE(ACTION_EXPORTED_VERSION == 2);

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c: in function 'VNetUserIf_Create ':

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c:1049:34: error: dereferencing pointer to incomplete type

    userIf-> port.jack.procEntry-> read_proc = VNetUserIfProcRead;

    ^

    /tmp/modconfig-DQkPL0/vmnet-only/userif.c:1050:34: error: dereferencing pointer to incomplete type

    userIf-> port.jack.procEntry-> data = userIf.

    ^

    make [2]: * [/ tmp/modconfig-DQkPL0/vmnet-only/userif.o] Fehler 1

    make [1]: * [_module_/tmp/modconfig-DQkPL0/vmnet-only] error 2

    make [1]: Verlasse Verzeichnis ' / usr/src/linux-headers-3.10.0-6-generic'

    make: * [vmnet.ko] Fehler 2

    make: Verlasse Verzeichnis "/ tmp/modconfig-DQkPL0/vmnet-only.

    Vmnet failed.  Cannot run the command build.

    Using 2.6.x kernel build system.

    do: go in Verzeichnis "/ tmp/modconfig-DQkPL0/vmblock-only.

    / usr/bin/make /lib/modules/3.10.0-6-generic/build/include/ - c... SUBDIRS = $PWD SRCROOT = $PWD. \

    MODULEBUILDDIR = modules

    make [1]: Betrete Verzeichnis ' / usr/src/linux-headers-3.10.0-6-generic'

    CC [M] /tmp/modconfig-DQkPL0/vmblock-only/linux/block.o

    CC [M] /tmp/modconfig-DQkPL0/vmblock-only/linux/control.o

    CC [M] /tmp/modconfig-DQkPL0/vmblock-only/linux/dentry.o

    CC [M] /tmp/modconfig-DQkPL0/vmblock-only/linux/file.o

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/dentry.c:38:4: warning: initialization of the [default] incompatible pointer type

    .d_revalidate = DentryOpRevalidate,

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/dentry.c:38:4: WARNING: (near initialization for 'LinkDentryOps.d_revalidate') [default]

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/dentry.c: in function 'DentryOpRevalidate ':

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/dentry.c:104:7: warning: argument passing 2 of 'actualDentry-> d_op-> d_revalidate' makes whole pointer without a [default] casting

    return actualDentry - > d_op-> d_revalidate (actualDentry, nd);

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/dentry.c:104:7: Note: expected 'unsigned int' but argument is of type ' struct nameidata *'

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c: in function 'SetupProcDevice ':

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c:211:4: error: implicit declaration of function 'create_proc_entry' [-Werror-implicit-function-declaration =]

    controlProcEntry = create_proc_entry (VMBLOCK_CONTROL_DEVNAME,

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c:211:21: warning: assignment makes pointer from integer without a cast [default]

    controlProcEntry = create_proc_entry (VMBLOCK_CONTROL_DEVNAME,

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c:221:20: error: dereferencing pointer to incomplete type

    controlProcEntry-> proc_fops = & ControlFileOps;

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c: in function 'ExecuteBlockOp ':

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c:285:9: warning: [default] incompatible pointer type assignment

    name = getname (buf);

    ^

    /tmp/modconfig-DQkPL0/vmblock-only/Linux/control.c:296:4: warning: passing argument 1 of the [default] incompatible pointer type "putname"

    putname (Name);

    ^

    In file included from include/linux/proc_fs.h:8:0,

    from /tmp/modconfig-DQkPL0/vmblock-only/linux/control.c:28:

    include/Linux/FS.h:2055:13: Note: expected ' struct filename *' but argument is of type ' char *'

    extern void putname (struct filename * name);

    ^

    Cc1: some warnings are treated as errors

    make [2]: * [/ tmp/modconfig-DQkPL0/vmblock-only/linux/control.o] Fehler 1

    make [2]: * Warte auf noch nicht processes going...

    make [1]: * [_module_/tmp/modconfig DQkPL0/vmblock-only] error 2

    make [1]: Verlasse Verzeichnis ' / usr/src/linux-headers-3.10.0-6-generic'

    make: * [vmblock.ko] Fehler 2

    make: Verlasse Verzeichnis "/ tmp/modconfig-DQkPL0/vmblock-only.

    Vmblock failed.  Cannot run the command build.

    I hope that the core 3.10 will be supported with the next version of bundle.

    Greetings

    Thilo

    There is a patch for VMWare WS 9.0.2 to play nice with 3.10 kernel here:

    https://wiki.archlinux.org/index.php/VMware#3.10_kernels

    Or you can wait for VMWare WS 10.0 out...

  • Diagram of the Avro - optional fields - not give 'in the Union"exception

    Hi all

    I have a problem with the help of the optional fields in a schema by using the JSONAvroBinding and avro.

    If I have a scheme of the user who has a first name field. The user may choose to provide the name or not. The field is optional from the perspective of readers.

    (this comes from http://docs.oracle.com/cd/NOSQL/html/GettingStartedGuide/avroschemas.html who is nosql avro documentation)

    {

    "type': 'record."

    "namespace": "com.example."

    'name': 'Full name',

    'fields':]

    {'name': 'first', 'type': ['string', 'null']},

    {'name': 'last', 'type': "string", "default": "Smith"}

    ]

    }

    Here, if I provide this example as Avro scheme, then omit the name when I write, it will work without problem. But when I try to write 'John' it will fail with:

    Caused by: org.apache.avro.UnresolvedUnionException: not in the union ['string', 'null']: 'John '.

    to oracle.kv.impl.api.avro.JsonBinding$ JsonData.resolveUnion (JsonBinding.java:403)

    at org.apache.avro.generic.GenericDatumWriter.resolveUnion(GenericDatumWriter.java:144)

    to oracle.kv.impl.api.avro.JsonBinding$ JsonDatumWriter.write (JsonBinding.java:599)

    to oracle.kv.impl.api.avro.JsonBinding$ JsonDatumWriter.writeRecord (JsonBinding.java:695)

    to oracle.kv.impl.api.avro.JsonBinding$ JsonDatumWriter.write (JsonBinding.java:565)

    Truncated. check the log file full stacktrace

    It does not work:

    {

    'first': 'John ',.

    "last": "Smith".

    }

    It works:

    {

    "last": "Smith".

    }

    It seems that someone else has had this problem and posted on the Avro site, where a response said that it might be NoSQLs due to lack of libraries:

    "The error is thrown from the Oracle NoSQL Avro library use and is not clearly a problem of Avro. You might be better off trying to get help for this Oracle? »

    https://issues.Apache.org/jira/browse/Avro-1376

    Any thoughts? To me, this seems to be a bug in the JsonBinding class?

    According to this:

    http://www.Oracle.com/technetwork/database/nosqldb/learnmore/nosqldb-FAQ-518364.html#HowtouseAvrounionstoencodeoptionalfields

    Sending

    {

    'first': 'John ',.

    "last": "Smith".

    }

    is not correct.

    Instead, sending:

    {

    'first': {}

    'chain': 'John '.

    },

    "last": "Smith".

    }

    works.

  • Need help to restrict to a result set of a UNION in FUSION

    Hello

    Would be really grateful if someone could help me with the problem I am facing with the statements below (I'm new to Oracle ):

    merge into table_name_1 p

    using

    (

    Select p_key, value_1, value_2

    of some_tables

    UNION

    Select p_key, value_1, value_2

    of some_tables

    UNION

    .....;

    ) t

    on (p.p_key = t.p_key)

    When matched then

    Update table_name_1 with value_1 and value_2

    When not matched then

    Insert table_name_1 with p_key, value_1 value_2;

    Now, the union of all these selects me gives distinct values and it works most of the time, but when I have values like below, the merge fails:

    p_key - value_1 - value_2

    100 25-50

    100 NULL - 50

    I scoured the net and understand the reason behind it: the result set becomes ambiguous and fusion does not know what line to insert first and including an update.

    Now my requirement is: I might sub sets of scenario/result of the union and I need only 1 row by p_key.

    result_set_1

    p_key - value_1 - value_2

    100 - 25-50 * need this line

    100 NULL - 50

    100 - NULL NULL

    result_set_2

    p_key - value_1 - value_2

    100-25 - NULL * need this line

    100 - NULL NULL

    result_set_3

    p_key - value_1 - value_2

    100-25 - NULL * need to this line (p_key = 100)

    100 - NULL NULL

    NULL 200-75 * need to this line (p_key = 200)

    200 - NULL NULL

    300 - 90-95 * need to this line (p_key = 300)

    So, I need basically a way to restrict the values I get from the UNION of all who selects to adapt to the requirement above, hope, I was able to explain the issue I'm facing.

    Any help would be greatly appreciated.

    Thank you

    Dpunk

    Calculate a value of priority for each line according to whether the columns are null or not, stopped by this value in the game for each p_key and take the first (highest) priority. I made a more important than value_2 value_1:

    Select p_key, value_1, value_2 of

    (select value_1, p_key, row_number() and value_2 to the course

    (p_key partition

    order of cases when value_1 is null then 0 2 other end +.

    cases where value_2 is null then 0 otherwise 1 end

    / / DESC

    ): the nurse

    (your query UNION here)

    )

    where rn = 1

    /

  • Scope aliases in union issue

    I use 11.2.0. I need to create a select to get a set of objects as well as data from related tables to a view type dashboard.

    Here are simple tables that illustrate the problem:

    CREATE table operation
    (
    operation_key op_nn1 NUMBER (10) CONSTRAINT NOT NULL,.
    name VARCHAR2 (30),
    order_key number (10),
    PkO CONSTRAINT PRIMARY KEY (operation_key)
    );

    CREATE the table oper_part
    (
    operation_key opp_nn1 NUMBER (10) CONSTRAINT NOT NULL,.
    part_key opp_nn2 NUMBER (10) CONSTRAINT NOT NULL,.
    PkOP CONSTRAINT PRIMARY KEY (operation_key, part_key),
    CONSTRAINT fkOP FOREIGN made REFERENCE to KEY (operation_key) operation (operation_key) ON DELETE CASCADE
    );

    create table step
    (
    step_key stp_nn1 NUMBER (10) CONSTRAINT NOT NULL,.
    name VARCHAR2 (30),
    operation_key number (10) stp_nn2 of the CONSTRAINT NOT NULL,.
    PkS KEY (step_key) PRIMARY CONSTRAINT.
    FkS of CONSTRAINT FOREIGN made REFERENCE to KEY (operation_key) operation (operation_key) ON DELETE CASCADE
    );

    CREATE the table step_part
    (
    step_key stpp_nn1 NUMBER (10) CONSTRAINT NOT NULL,.
    part_key stpp_nn2 NUMBER (10) CONSTRAINT NOT NULL,.
    PkS CONSTRAINT PRIMARY KEY (step_key, part_key),
    CONSTRAINT fkSP FOREIGN made REFERENCE to KEY (step_key) step (step_key) ON DELETE CASCADE
    );

    Here's a statement select fails to analyze:

    SELECT a.operation_key, b.SID,
    (SELECT COUNT (*) OF)
    (SELECT op.part_key
    Of oper_part op
    WHERE op.operation_key = a.operation_key
    UNION
    SELECT sp.part_key
    Of AFTER step please
    INNER JOIN step_part ON sp.step_key = stp.step_key Ms
    WHERE stp.operation_key = a.operation_key)) bom_count
    One OPERATION
    WHERE a.order_key = 2
    ORDER BY a.operation_key;

    The error I get is:
    ORA-00904: "A". "" OPERATION_KEY ": invalid identifier
    00904, 00000 - '% s: invalid identifier '.
    * Cause:
    * Action:
    Error on line: column 5:36

    I don't see how this can be out of reach. The alias is defined in the WHERE clause, and the column is valid. It is the scope of the rules which forbid what I try to do, or is this a bug? If the scoping rules, where can I find that documented and is there a work around?

    Thanks in advance for your help.

    Sincerely,

    Jim Brandley

    Hi, Jim,.

    It is difficult to correlate a subquery at the request of his grandparents.
    It can be simpler and more effective to get the desired results with a join rather than a correlated subquery, like this:

    WITH  union_results     AS
    (
         SELECT  part_key
         ,     operation_key
           FROM        oper_part
        UNION
            SELECT  sp.part_key
         ,     stp_opeation_key
           FROM      step          stp
         JOIN      step_part   sp   ON   sp.step_key = stp.step_key
    )
    ,     got_bom_cnt          AS
    (
         SELECT        operation_key
         ,        COUNT (DISTINCT part_key)     AS bom_cnt
         FROM        union_results
         GROUP BY   operation_key
    )
    SELECT       o.operation_key
    ,       o.name
    ,       b.bom_cnt
    FROM           operation     o
    LEFT OUTER JOIN      got_bom_cnt     b  ON  b.operation_key  = o.operation_key
    WHERE        o.order_key   = 2
    ORDER BY  o.operation_key
    ;
    

    I hope that answers your question.
    If this isn't the case, display the instructions INSERT for examples of data and the results desired from these data.
    Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • Question of SCT TEMP space means that kinds fail?

    DB version: 11.2
    Operating system: Solaris 10

    We have a DB OLTP. These days, we regularly get
    ORA-1652: unable to extend temp segment by 128 in tablespace TEMP
    on our alerts log. About 7 to 8 times per hour.

    TEMP tablespace size is 21 GB and it has 0 MB freespace for several days. So far end-users of application will have no high no concerns.

    Question1.
    This means that none of their SQLs requiring a sort have failed? Or did they not only noticed in their newspapers?



    Question2.
    If ORA-1652 meant SQLs application fails, what I can do to release the temp tablespace?

    To diagnose why SMON is not clear the temp tablespace, I went through the note of ML
    + Temporary segments are not désallouées after a sort [ID 1039341.6] +.

    SEGMENT_TYPE of my temp tablespace is not TEMPORARY. It is not permanent either.


    Info on this Temp tablespace:



    SQL> select owner,segment_type from dba_segments where segment_type='TEMPORARY';
    
    no rows selected
    
    SQL> SELECT TABLESPACE_NAME, CONTENTS FROM DBA_TABLESPACES WHERE TABLESPACE_NAME='TEMP';
    
    TABLESPACE_NAME                CONTENTS
    ------------------------------ ---------
    TEMP                           TEMPORARY
    
    SQL> select OWNER,
           SEGMENT_NAME,
           SEGMENT_TYPE ,
           TABLESPACE_NAME
          from DBA_SEGMENTS
          where SEGMENT_TYPE = 'TEMPORARY';
    
      2    3    4    5    6  
    no rows selected
    
    SQL> SQL> select OWNER,
           SEGMENT_NAME,
           SEGMENT_TYPE ,
           TABLESPACE_NAME
          from DBA_SEGMENTS
          where SEGMENT_TYPE = 'PERMANANT';    
    
    no rows selected

    Max, to add to what has already been postponed Yes the error message means that one or more of the tasks requiring temporary tablespace failed. The question you need to ask is why? Your tablespace sorting could be set too small to cope with the workload or your system might suffer from an excessive burden for the space of sort. The temporary tablespace is used to support including stopped sorting by, select distinct, union, operations and also it hold temporary tables and hash area overflows to disk.

    Bad SQL plans may resort to excessive use of the temp.

    AdHoc queries via report ofter tools extract excessive amounts of data well beyond what the end-user needs and can indeed treat until the user launches a new version of the report.

    Sometimes a little tuning can drastically reduce the demand for temp.

    HTH - Mark D Powell.

  • SDO_AGGR_SET_UNION fails but SDO_GEOM. Replaces SDO_UNION.

    Hi people,

    Shares of happy Thanksgiving together. I have a task of aggregation that seemed ideal to try the new function SDO_AGGR_SET_UNION in GR 11, 2 (11.2.0.2). I have two valid touching polygons (among many others) who validate to tolerance of 0.05 meter. When I have union together using SDO_GEOM. SDO_UNION or the original SDO_AGGR_UNION the results are stunning, and the surface of the new polygon is close to two entries. However when I run the polygons of same exact through SDO_AGGR_SET_UNION I return the results - for example a 2004 containing a polygon of entry and a random point of the limit of the other polygon geometry does not.

    Errors of aggregation such as this are not exactly anything of the never seen in Oracle Spatial, and normally I would just submit it as a bug. But I'm a little confused when the usual functions of SDO_UNION works fine, but the new SDO_AGGR_SET_UNION function fails. They do not work on the same code base? I always thought that what works for SDO_UNION would work for SDO_AGGR_UNION and now SDO_AGGR_SET_UNION is just another addition to the family of the "unioners". We need treat (and test) the new SDO_AGGR_SET_UNION as a different creature altogether from SDO_UNION? My apologies if that derives in taboo landowners. Looking at the results of my test again once I see that actually SDO_AGGR_UNION does not EXACTLY correspond to SDO_UNION (pretty darn close) then perhaps the idea of family is all wrong?

    My opinion at this point is confused on the issue whether to use SDO_AGGR_SET_UNION. It is much faster and much easier on the PGA I'l will admit, but SDO_UNION wins the prize of quality for this task.

    Cheers and happy holidays,

    Paul
    DECLARE
       polygon1                  SDO_GEOMETRY;
       polygon2                  SDO_GEOMETRY;
       rez_oldschool_sdo_union   SDO_GEOMETRY;
       rez_aggr_set_union        SDO_GEOMETRY;
       rez_aggr_union            SDO_GEOMETRY;
       num_tolerance             NUMBER := 0.05;
       
    BEGIN
       polygon1 :=
          SDO_GEOMETRY(2003, 8265, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1),
          SDO_ORDINATE_ARRAY(-101.367659850094, 45.6250958279126, -101.367750579539, 45.6246663149791, -101.36778407735, 45.6239928420968, -101.367540353957, 45.6233468469559, -101.367308521691, 45.6229827221804, -101.366899484815, 45.6228175577095, -101.366673138039, 45.6225835498738, -101.366629328625, 45.6222646352215, -101.366628551902, 45.6222589429779, -101.366095924796, 45.6220963415067, -101.365627851382, 45.6219975468078, -101.364973450124, 45.6218808707156, -101.364448124586, 45.6218917783656, -101.364110017238, 45.6219421740928, -101.363654697356, 45.6221469160479, -101.363214785275, 45.6219824072281, -101.362436795648, 45.6218682941355, -101.361686971078, 45.6216884967243, -101.360873514825, 45.6214665886314, -101.359874660186, 45.6212484952359, -101.358967626503, 45.6210068282033, -101.358182365109, 45.6207192059896, -101.358076000621, 45.6203958805935, -101.3577215616, 45.6200559553039, -101.357368016649, 45.619737726105, -101.357067192006, 45.6199392494093, -101.356612766194, 45.6201656576528, -101.356002952935, 45.6203735586541, -101.355390364335, 45.6205164309878, -101.354498798057, 45.6206433292767, -101.353565419121, 45.6205106493372, -101.352529371184, 45.62014136876, -101.352633917731, 45.6196834560759, -101.352647567195, 45.6192708429218, -101.352508539361, 45.6189047511931, -101.352288629886, 45.6188224967832, -101.351470703284, 45.6184921082368, -101.350941771666, 45.6184161719192, -101.349821234145, 45.6182439144956, -101.348940635122, 45.6178931113583, -101.348338153234, 45.6175365563727, -101.347801113521, 45.6172654744479, -101.347174072657, 45.6170613583416, -101.346421623621, 45.6168163832512, -101.34560739437, 45.6165726896607, -101.345082128437, 45.6165834781014, -101.345099443586, 45.6162575897056, -101.345027709396, 45.6160203334168, -101.344768758879, 45.6157435294461, -101.344570720584, 45.6154437776871, -101.343946421534, 45.615304660446, -101.343533003717, 45.6150310155214, -101.343056881814, 45.614736956006, -101.342713410048, 45.6146572049912, -101.342468017725, 45.6147056337651, -101.342197174219, 45.6148848053276, -101.341594750073, 45.614528250342, -101.340900564577, 45.6141952391912, -101.339942956353, 45.6134770032207, -101.339244270705, 45.6130355712208, -101.338453823708, 45.6126177128581, -101.337701464078, 45.612372678163, -101.336212122817, 45.6122512635015, -101.336192304272, 45.6117742177263, -101.335945421833, 45.6110413786178, -101.335616642612, 45.610570650935, -101.335230583328, 45.6102096256011, -101.334946239369, 45.6100635346166, -101.334630066531, 45.6098963733901, -101.334438407795, 45.6097483750569, -101.334307605402, 45.6095774289354, -101.3340868596, 45.6094734188302, -101.333838785068, 45.6094567891342, -101.332731360569, 45.6088500734542, -101.332383448257, 45.6086618419858, -101.331784749401, 45.6083919521539, -101.331092501056, 45.6081022437775, -101.330252939831, 45.6079891737662, -101.329314434895, 45.6077261980731, -101.328373249613, 45.6073981639101, -101.327992642291, 45.6071671959113, -101.327608460552, 45.6068495031542, -101.327069813377, 45.6065349396409, -101.32641475833, 45.606396388644, -101.325643325214, 45.6064337905586, -101.324999922875, 45.6065771099272, -101.324193533497, 45.6057688411406, -101.323838466765, 45.6054071303533, -101.323051804662, 45.6050759073418, -101.321817005037, 45.6051227267903, -101.320397699234, 45.6051949676199, -101.319817000981, 45.6053587015793, -101.319392526503, 45.6055626388717, -101.318969869966, 45.6058099385432, -101.318444663638, 45.6058206077746, -101.318069482201, 45.6057197269132, -101.31775161063, 45.6055091437029, -101.317426586501, 45.6051251109761, -101.317134255521, 45.6047838147796, -101.316515529505, 45.6047746654667, -101.316021228185, 45.604784679047, -101.315613385265, 45.6046410318529, -101.315201038469, 45.6043889638098, -101.314971411575, 45.6040680822042, -101.31476911341, 45.6036598499915, -101.314480358708, 45.6034052785534, -101.313899660456, 45.6035689529081, -101.313442522632, 45.6037301536702, -101.312765562878, 45.603808980813, -101.312275731907, 45.60392738544, -101.311693215712, 45.6040476974156, -101.311207855089, 45.604274552694, -101.310601586444, 45.6045689698373, -101.310057962281, 45.6048837717691, -101.309517020326, 45.6052636619731, -101.309069657664, 45.6056633707215, -101.308727139573, 45.6056051667858, -101.308470213751, 45.6053716357872, -101.307939672807, 45.6052521582766, -101.307710969785, 45.6049529429594, -101.307511383632, 45.6046097394143, -101.307343566754, 45.6042876061112, -101.306859726049, 45.6037982221746, -101.306751036979, 45.603409778704, -101.306707706265, 45.6031068380966, -101.306268120147, 45.6029420908582, -101.305856728888, 45.6027116593011, -101.305445367431, 45.6024812575464, -101.304879540538, 45.6022539552333, -101.304159248207, 45.6020297523616, -101.303322518202, 45.601981532204, -101.301559025377, 45.6019519981024, -101.301253640979, 45.6020449515461, -101.301012719005, 45.6022017415644, -101.300863588183, 45.6023349579456, -101.30071442756, 45.6024681743269, -101.300475293725, 45.602668296922, -101.300171669526, 45.6028046425471, -101.2997409645, 45.6028567370067, -101.29930492672, 45.6027786847243, -101.298837985795, 45.6027012880929, -101.298432851161, 45.602622639764, -101.297905918161, 45.602589827407, -101.29769497546, 45.6027242954858, -101.296937638843, 45.6023488756302, -101.296058501996, 45.6020193513511, -101.295742506109, 45.6018520709153, -101.295029336533, 45.6018013175602, -101.294627750238, 45.6018093641873, -101.294042551835, 45.6018645282861, -101.293456491027, 45.6018980260965, -101.292775118667, 45.6018682833787, -101.292278196605, 45.6018131788845, -101.291873063834, 45.6017345007533, -101.291283482627, 45.6016812142008, -101.290510291174, 45.6016750153178, -101.290393764093, 45.6010913964376, -101.290285224035, 45.6007029529671, -101.289931293516, 45.6003627892589, -101.289362009553, 45.6000486727805, -101.288850124863, 45.5996249135578, -101.288520032477, 45.5991106744843, -101.288505041909, 45.5987420197559, -101.288652444196, 45.5985654409955, -101.288862490964, 45.5984093364306, -101.288852807072, 45.5981707986419, -101.28867276938, 45.5975450392778, -101.288897836519, 45.596997958045, -101.289324099137, 45.596837502341, -101.289565915181, 45.5967024382158, -101.289805972888, 45.5965240117114, -101.290201362162, 45.5963641818562, -101.290604675129, 45.596399467806, -101.290402587443, 45.595991205791, -101.290436979323, 45.5953177329087, -101.29079088004, 45.5948982950229, -101.29132830532, 45.5944317694676, -101.292452627736, 45.5939534421926, -101.292937094289, 45.5937049802305, -101.29280736478, 45.5935556705951, -101.292658204156, 45.5929293151846, -101.292974973041, 45.5923586901171, -101.293683553059, 45.5915414806337, -101.293267900068, 45.5912025686231, -101.293135518152, 45.5909882303201, -101.292554849702, 45.5903922136739, -101.292436564284, 45.5897652324146, -101.292644822913, 45.5895657356683, -101.292598033267, 45.5891760106979, -101.292432123738, 45.5888972099715, -101.292022699432, 45.5887101109913, -101.291674131469, 45.5885000940252, -101.291282320336, 45.5879871066492, -101.291144663409, 45.5876426216042, -101.29097964795, 45.5873855169686, -101.290649648696, 45.5868712778951, -101.290548171788, 45.5866562839411, -101.290633764058, 45.5864809568783, -101.290565814763, 45.5863303955453, -101.290284329965, 45.5862492438214, -101.289840483977, 45.5859760161293, -101.289512241198, 45.585505139435, -101.288992548299, 45.5848862048027, -101.287976110291, 45.5842121060717, -101.28714584739, 45.5835559483388, -101.286212408849, 45.582641464075, -101.285476619311, 45.5820268209773, -101.28511842706, 45.5815782364201, -101.284357035464, 45.5810943063084, -101.283982956713, 45.5810150023285, -101.283165121381, 45.5806624110518, -101.282134646478, 45.5804008956725, -101.28119328052, 45.5800507481863, -101.280940079988, 45.5799039121436, -101.280586356223, 45.5795637186331, -101.280392313302, 45.5793505724231, -101.279982948601, 45.5791634436406, -101.279688352644, 45.578756969765, -101.279088491498, 45.5784434195307, -101.278616512118, 45.5782358165526, -101.278077537117, 45.5778993185301, -101.277262385856, 45.577611755921, -101.276535535152, 45.5772138949165, -101.276191467339, 45.5771122391947, -101.275848295459, 45.5770322795636, -101.275343740278, 45.5767819102529, -101.275118824013, 45.5765693600894, -101.274914288812, 45.5760959799999, -101.274648869328, 45.5756455476987, -101.274266060359, 45.5753493424161, -101.273919397882, 45.5751826282244, -101.273802246815, 45.5745772834512, -101.273471588185, 45.5740413184846, -101.272609019567, 45.5733423050121, -101.271817859176, 45.572880607433, -101.270905848505, 45.5724863823119, -101.270488705398, 45.5721040483174, -101.270042473362, 45.5717656727486, -101.269714469001, 45.5712947662519, -101.269444757983, 45.570735853497, -101.268835419699, 45.5701837058694, -101.268133455796, 45.5696333761834, -101.268205100579, 45.5691110904828, -101.26744928388, 45.568757187904, -101.267126584333, 45.5684163387424, -101.266455525439, 45.5678654130099, -101.265675838942, 45.5676855559941, -101.265751028339, 45.5672500248541, -101.26570009617, 45.5667518790347, -101.265420818607, 45.5659544284911, -101.265470707694, 45.5648900385455, -101.266117954533, 45.5633146281773, -101.265613043586, 45.5622829313794, -101.264529073515, 45.5622176046887, -101.263660335816, 45.5621263201751, -101.262631142413, 45.5618862922702, -101.262095892702, 45.5616364892036, -101.261493677173, 45.5612577612902, -101.260768886554, 45.5609031732579, -101.260109301554, 45.560634117891, -101.259364927084, 45.5605620260731, -101.258433636173, 45.5604502375616, -101.258130157261, 45.5605864639775, -101.257646644382, 45.5608564432164, -101.257036203412, 45.5610421414874, -101.255992675092, 45.561214667132, -101.255111807848, 45.5608197267551, -101.253763582446, 45.56032548504, -101.25254317548, 45.5599372203833, -101.250823670883, 45.5594285841464, -101.249551111715, 45.5592800493715, -101.248095059648, 45.5591785128589, -101.246515506757, 45.5590793903345, -101.245464231696, 45.5590566511625, -101.24486734892, 45.5588079805842, -101.244539642582, 45.5583369548782, -101.244295921052, 45.5576472695325, -101.243470901498, 45.5570992346254, -101.242128874979, 45.5567566569291, -101.241258526092, 45.5566218312224, -101.240575099234, 45.5565267320115, -101.23947145963, 45.555962395234, -101.238539391996, 45.5558287616202, -101.237818235398, 45.5555607791369, -101.236225064708, 45.5551145191609, -101.235286110875, 45.5548073764259, -101.234401190515, 45.5543038363861, -101.233707511658, 45.5539484734935, -101.23302241587, 45.5538099522988, -101.232221597664, 45.5538690205019, -101.23142593526, 45.5540582056447, -101.230327600469, 45.5544051940847, -101.229248100746, 45.5544479902197, -101.228566462028, 45.5543961937834, -101.227913105713, 45.5542787130283, -101.227145695911, 45.5544022138525, -101.226524913534, 45.5543274994301, -101.225349390728, 45.5542852993416, -101.224003219824, 45.5546153600625, -101.222625726679, 45.5549351687845, -101.222261780718, 45.5547143931799, -101.221933806159, 45.5546231086663, -101.22143524497, 45.5545134361198, -101.220859074808, 45.5543944354463, -101.220216894364, 45.5541682060168, -101.219464951967, 45.5539007003706, -101.21886568873, 45.5535867925085, -101.218146348211, 45.5533620531951, -101.217718565675, 45.5530882294566, -101.217145049782, 45.5526436086083, -101.216522240848, 45.5521240051167, -101.216158741921, 45.5519140477552, -101.215845400303, 45.5518007393253, -101.215579623192, 45.5517191107642, -101.215282136409, 45.5516163523564, -101.214870238511, 45.5513530786401, -101.214412027804, 45.5510906691911, -101.213885688987, 45.5506668503638, -101.213667088952, 45.5506059642191, -101.213416749444, 45.5505240078324, -101.213287764992, 45.5503854568355, -101.21290927736, 45.5501866157402, -101.212607139553, 45.5499645884381, -101.212244087661, 45.5497654493196, -101.211807424033, 45.5492639060355, -101.211671614849, 45.5489518459173, -101.211414510214, 45.5486964102118, -101.211099469863, 45.5485397394028, -101.210731530391, 45.5482989068352, -101.210504585705, 45.5483697767579, -101.210120374165, 45.5484073276842, -101.210267687044, 45.5488862212033, -101.210266446523, 45.5493596478589, -101.274968132295, 45.6085839424402, -101.367659850094, 45.6250958279126));
       polygon2 :=
          SDO_GEOMETRY(2003, 8265, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1),
          SDO_ORDINATE_ARRAY(-101.365627851382, 45.6219975468078, -101.366095924796, 45.6220963415067, -101.366628551902, 45.6222589429779, -101.366629328625, 45.6222646352215, -101.366620268719, 45.6220802780549, -101.366700496571, 45.62182305421, -101.366595413582, 45.6214897748383, -101.366373265208, 45.6210790690329, -101.366263473452, 45.6206340607544, -101.367038125219, 45.6206499751946, -101.367585325661, 45.6206705685994, -101.367529088679, 45.6204161461728, -101.367560440722, 45.6200800355804, -101.367629254285, 45.6195514913921, -101.367714576471, 45.6193683542582, -101.257581859721, 45.5548077973837, -101.211696997115, 45.5464650954303, -101.211825365031, 45.5468085820975, -101.21181919595, 45.5474711175274, -101.211578810417, 45.5478973205405, -101.210864418946, 45.5482574220024, -101.210731530391, 45.5482989068352, -101.211099469863, 45.5485397394028, -101.211414510214, 45.5486964102118, -101.211671614849, 45.5489518459173, -101.211807424033, 45.5492639060355, -101.212244087661, 45.5497654493196, -101.212607139553, 45.5499645884381, -101.21290927736, 45.5501866157402, -101.213287764992, 45.5503854568355, -101.213416749444, 45.5505240078324, -101.213667088952, 45.5506059642191, -101.213885688987, 45.5506668503638, -101.214412027804, 45.5510906691911, -101.214870238511, 45.5513530786401, -101.215282136409, 45.5516163523564, -101.215579623192, 45.5517191107642, -101.215845400303, 45.5518007393253, -101.216158741921, 45.5519140477552, -101.216522240848, 45.5521240051167, -101.217145049782, 45.5526436086083, -101.217718565675, 45.5530882294566, -101.218146348211, 45.5533620531951, -101.21886568873, 45.5535867925085, -101.219464951967, 45.5539007003706, -101.220216894364, 45.5541682060168, -101.220859074808, 45.5543944354463, -101.22143524497, 45.5545134361198, -101.221933806159, 45.5546231086663, -101.222261780718, 45.5547143931799, -101.222625726679, 45.5549351687845, -101.224003219824, 45.5546153600625, -101.225349390728, 45.5542852993416, -101.226524913534, 45.5543274994301, -101.227145695911, 45.5544022138525, -101.227913105713, 45.5542787130283, -101.228566462028, 45.5543961937834, -101.229248100746, 45.5544479902197, -101.230327600469, 45.5544051940847, -101.23142593526, 45.5540582056447, -101.232221597664, 45.5538690205019, -101.23302241587, 45.5538099522988, -101.233707511658, 45.5539484734935, -101.234401190515, 45.5543038363861, -101.235286110875, 45.5548073764259, -101.236225064708, 45.5551145191609, -101.237818235398, 45.5555607791369, -101.238539391996, 45.5558287616202, -101.23947145963, 45.555962395234, -101.240575099234, 45.5565267320115, -101.241258526092, 45.5566218312224, -101.242128874979, 45.5567566569291, -101.243470901498, 45.5570992346254, -101.244295921052, 45.5576472695325, -101.244539642582, 45.5583369548782, -101.24486734892, 45.5588079805842, -101.245464231696, 45.5590566511625, -101.246515506757, 45.5590793903345, -101.248095059648, 45.5591785128589, -101.249551111715, 45.5592800493715, -101.250823670883, 45.5594285841464, -101.25254317548, 45.5599372203833, -101.253763582446, 45.56032548504, -101.255111807848, 45.5608197267551, -101.255992675092, 45.561214667132, -101.257036203412, 45.5610421414874, -101.257646644382, 45.5608564432164, -101.258130157261, 45.5605864639775, -101.258433636173, 45.5604502375616, -101.259364927084, 45.5605620260731, -101.260109301554, 45.560634117891, -101.260768886554, 45.5609031732579, -101.261493677173, 45.5612577612902, -101.262095892702, 45.5616364892036, -101.262631142413, 45.5618862922702, -101.263660335816, 45.5621263201751, -101.264529073515, 45.5622176046887, -101.265613043586, 45.5622829313794, -101.266117954533, 45.5633146281773, -101.265470707694, 45.5648900385455, -101.265420818607, 45.5659544284911, -101.26570009617, 45.5667518790347, -101.265751028339, 45.5672500248541, -101.265675838942, 45.5676855559941, -101.266455525439, 45.5678654130099, -101.267126584333, 45.5684163387424, -101.26744928388, 45.568757187904, -101.268205100579, 45.5691110904828, -101.268133455796, 45.5696333761834, -101.268835419699, 45.5701837058694, -101.269444757983, 45.570735853497, -101.269714469001, 45.5712947662519, -101.270042473362, 45.5717656727486, -101.270488705398, 45.5721040483174, -101.270905848505, 45.5724863823119, -101.271817859176, 45.572880607433, -101.272609019567, 45.5733423050121, -101.273471588185, 45.5740413184846, -101.273802246815, 45.5745772834512, -101.273919397882, 45.5751826282244, -101.274266060359, 45.5753493424161, -101.274648869328, 45.5756455476987, -101.274914288812, 45.5760959799999, -101.275118824013, 45.5765693600894, -101.275343740278, 45.5767819102529, -101.275848295459, 45.5770322795636, -101.276191467339, 45.5771122391947, -101.276535535152, 45.5772138949165, -101.277262385856, 45.577611755921, -101.278077537117, 45.5778993185301, -101.278616512118, 45.5782358165526, -101.279088491498, 45.5784434195307, -101.279688352644, 45.578756969765, -101.279982948601, 45.5791634436406, -101.280392313302, 45.5793505724231, -101.280586356223, 45.5795637186331, -101.280940079988, 45.5799039121436, -101.28119328052, 45.5800507481863, -101.282134646478, 45.5804008956725, -101.283165121381, 45.5806624110518, -101.283982956713, 45.5810150023285, -101.284357035464, 45.5810943063084, -101.28511842706, 45.5815782364201, -101.285476619311, 45.5820268209773, -101.286212408849, 45.582641464075, -101.28714584739, 45.5835559483388, -101.287976110291, 45.5842121060717, -101.288992548299, 45.5848862048027, -101.289512241198, 45.585505139435, -101.289840483977, 45.5859760161293, -101.290284329965, 45.5862492438214, -101.290565814763, 45.5863303955453, -101.290633764058, 45.5864809568783, -101.290548171788, 45.5866562839411, -101.290649648696, 45.5868712778951, -101.29097964795, 45.5873855169686, -101.291144663409, 45.5876426216042, -101.291282320336, 45.5879871066492, -101.291674131469, 45.5885000940252, -101.292022699432, 45.5887101109913, -101.292432123738, 45.5888972099715, -101.292598033267, 45.5891760106979, -101.292644822913, 45.5895657356683, -101.292436564284, 45.5897652324146, -101.292554849702, 45.5903922136739, -101.293135518152, 45.5909882303201, -101.293267900068, 45.5912025686231, -101.293683553059, 45.5915414806337, -101.292974973041, 45.5923586901171, -101.292658204156, 45.5929293151846, -101.29280736478, 45.5935556705951, -101.292937094289, 45.5937049802305, -101.292452627736, 45.5939534421926, -101.29132830532, 45.5944317694676, -101.29079088004, 45.5948982950229, -101.290436979323, 45.5953177329087, -101.290402587443, 45.595991205791, -101.290604675129, 45.596399467806, -101.290201362162, 45.5963641818562, -101.289805972888, 45.5965240117114, -101.289565915181, 45.5967024382158, -101.289324099137, 45.596837502341, -101.288897836519, 45.596997958045, -101.28867276938, 45.5975450392778, -101.288852807072, 45.5981707986419, -101.288862490964, 45.5984093364306, -101.288652444196, 45.5985654409955, -101.288505041909, 45.5987420197559, -101.288520032477, 45.5991106744843, -101.288850124863, 45.5996249135578, -101.289362009553, 45.6000486727805, -101.289931293516, 45.6003627892589, -101.290285224035, 45.6007029529671, -101.290393764093, 45.6010913964376, -101.290510291174, 45.6016750153178, -101.291283482627, 45.6016812142008, -101.291873063834, 45.6017345007533, -101.292278196605, 45.6018131788845, -101.292775118667, 45.6018682833787, -101.293456491027, 45.6018980260965, -101.294042551835, 45.6018645282861, -101.294627750238, 45.6018093641873, -101.295029336533, 45.6018013175602, -101.295742506109, 45.6018520709153, -101.296058501996, 45.6020193513511, -101.296937638843, 45.6023488756302, -101.29769497546, 45.6027242954858, -101.297905918161, 45.602589827407, -101.298432851161, 45.602622639764, -101.298837985795, 45.6027012880929, -101.29930492672, 45.6027786847243, -101.2997409645, 45.6028567370067, -101.300171669526, 45.6028046425471, -101.300475293725, 45.602668296922, -101.30071442756, 45.6024681743269, -101.300863588183, 45.6023349579456, -101.301012719005, 45.6022017415644, -101.301253640979, 45.6020449515461, -101.301559025377, 45.6019519981024, -101.303322518202, 45.601981532204, -101.304159248207, 45.6020297523616, -101.304879540538, 45.6022539552333, -101.305445367431, 45.6024812575464, -101.305856728888, 45.6027116593011, -101.306268120147, 45.6029420908582, -101.306707706265, 45.6031068380966, -101.306751036979, 45.603409778704, -101.306859726049, 45.6037982221746, -101.307343566754, 45.6042876061112, -101.307511383632, 45.6046097394143, -101.307710969785, 45.6049529429594, -101.307939672807, 45.6052521582766, -101.308470213751, 45.6053716357872, -101.308727139573, 45.6056051667858, -101.309069657664, 45.6056633707215, -101.309517020326, 45.6052636619731, -101.310057962281, 45.6048837717691, -101.310601586444, 45.6045689698373, -101.311207855089, 45.604274552694, -101.311693215712, 45.6040476974156, -101.312275731907, 45.60392738544, -101.312765562878, 45.603808980813, -101.313442522632, 45.6037301536702, -101.313899660456, 45.6035689529081, -101.314480358708, 45.6034052785534, -101.31476911341, 45.6036598499915, -101.314971411575, 45.6040680822042, -101.315201038469, 45.6043889638098, -101.315613385265, 45.6046410318529, -101.316021228185, 45.604784679047, -101.316515529505, 45.6047746654667, -101.317134255521, 45.6047838147796, -101.317426586501, 45.6051251109761, -101.31775161063, 45.6055091437029, -101.318069482201, 45.6057197269132, -101.318444663638, 45.6058206077746, -101.318969869966, 45.6058099385432, -101.319392526503, 45.6055626388717, -101.319817000981, 45.6053587015793, -101.320397699234, 45.6051949676199, -101.321817005037, 45.6051227267903, -101.323051804662, 45.6050759073418, -101.323838466765, 45.6054071303533, -101.324193533497, 45.6057688411406, -101.324999922875, 45.6065771099272, -101.325643325214, 45.6064337905586, -101.32641475833, 45.606396388644, -101.327069813377, 45.6065349396409, -101.327608460552, 45.6068495031542, -101.327992642291, 45.6071671959113, -101.328373249613, 45.6073981639101, -101.329314434895, 45.6077261980731, -101.330252939831, 45.6079891737662, -101.331092501056, 45.6081022437775, -101.331784749401, 45.6083919521539, -101.332383448257, 45.6086618419858, -101.332731360569, 45.6088500734542, -101.333838785068, 45.6094567891342, -101.3340868596, 45.6094734188302, -101.334307605402, 45.6095774289354, -101.334438407795, 45.6097483750569, -101.334630066531, 45.6098963733901, -101.334946239369, 45.6100635346166, -101.335230583328, 45.6102096256011, -101.335616642612, 45.610570650935, -101.335945421833, 45.6110413786178, -101.336192304272, 45.6117742177263, -101.336212122817, 45.6122512635015, -101.337701464078, 45.612372678163, -101.338453823708, 45.6126177128581, -101.339244270705, 45.6130355712208, -101.339942956353, 45.6134770032207, -101.340900564577, 45.6141952391912, -101.341594750073, 45.614528250342, -101.342197174219, 45.6148848053276, -101.342468017725, 45.6147056337651, -101.342713410048, 45.6146572049912, -101.343056881814, 45.614736956006, -101.343533003717, 45.6150310155214, -101.343946421534, 45.615304660446, -101.344570720584, 45.6154437776871, -101.344768758879, 45.6157435294461, -101.345027709396, 45.6160203334168, -101.345099443586, 45.6162575897056, -101.345082128437, 45.6165834781014, -101.34560739437, 45.6165726896607, -101.346421623621, 45.6168163832512, -101.347174072657, 45.6170613583416, -101.347801113521, 45.6172654744479, -101.348338153234, 45.6175365563727, -101.348940635122, 45.6178931113583, -101.349821234145, 45.6182439144956, -101.350941771666, 45.6184161719192, -101.351470703284, 45.6184921082368, -101.352288629886, 45.6188224967832, -101.352508539361, 45.6189047511931, -101.352647567195, 45.6192708429218, -101.352633917731, 45.6196834560759, -101.352529371184, 45.62014136876, -101.353565419121, 45.6205106493372, -101.354498798057, 45.6206433292767, -101.355390364335, 45.6205164309878, -101.356002952935, 45.6203735586541, -101.356612766194, 45.6201656576528, -101.357067192006, 45.6199392494093, -101.357368016649, 45.619737726105, -101.3577215616, 45.6200559553039, -101.358076000621, 45.6203958805935, -101.358182365109, 45.6207192059896, -101.358967626503, 45.6210068282033, -101.359874660186, 45.6212484952359, -101.360873514825, 45.6214665886314, -101.361686971078, 45.6216884967243, -101.362436795648, 45.6218682941355, -101.363214785275, 45.6219824072281, -101.363654697356, 45.6221469160479, -101.364110017238, 45.6219421740928, -101.364448124586, 45.6218917783656, -101.364973450124, 45.6218808707156, -101.365627851382, 45.6219975468078));
       
       DBMS_OUTPUT.put_line('------------');
       DBMS_OUTPUT.put_line('polygon1 validation at ' || TO_CHAR(num_tolerance) || ' = ' || SDO_GEOM.validate_geometry_with_context(polygon1, num_tolerance));
       DBMS_OUTPUT.put_line('polygon2 validation at ' || TO_CHAR(num_tolerance) || ' = ' || SDO_GEOM.validate_geometry_with_context(polygon2, num_tolerance));
       DBMS_OUTPUT.put_line('combined area is ' || TO_CHAR(SDO_GEOM.sdo_area(polygon1, num_tolerance) + SDO_GEOM.sdo_area(polygon2, num_tolerance)));
    
       rez_oldschool_sdo_union := SDO_GEOM.SDO_UNION(polygon1, polygon2, num_tolerance);
       SELECT SDO_AGGR_UNION(sdoaggrtype(a.shape, num_tolerance)) INTO rez_aggr_union FROM (SELECT polygon1 shape FROM DUAL UNION ALL SELECT polygon2 shape FROM DUAL) a;
       rez_aggr_set_union := SDO_AGGR_SET_UNION(mdsys.sdo_geometry_array(polygon1, polygon2),num_tolerance);
    
       DBMS_OUTPUT.put_line('------------');
       DBMS_OUTPUT.put_line('sdo_union creates GTYPE ' || TO_CHAR(rez_oldschool_sdo_union.sdo_gtype));
       DBMS_OUTPUT.put_line('sdo_aggr_union creates GTYPE ' || TO_CHAR(rez_aggr_union.sdo_gtype));
       DBMS_OUTPUT.put_line('sdo_aggr_set_union creates GTYPE ' || TO_CHAR(rez_aggr_set_union.sdo_gtype));
       DBMS_OUTPUT.put_line('------------');
       DBMS_OUTPUT.put_line('sdo_union creates area of ' || TO_CHAR(SDO_GEOM.sdo_area(rez_oldschool_sdo_union, num_tolerance)));
       DBMS_OUTPUT.put_line('sdo_aggr_union creates area of ' || TO_CHAR(SDO_GEOM.sdo_area(rez_aggr_union, num_tolerance)));
       DBMS_OUTPUT.put_line('sdo_aggr_set_union creates area of ' || TO_CHAR(SDO_GEOM.sdo_area(rez_aggr_set_union, num_tolerance)));
       
    END;
    /

    Paul,

    This is a very stupid bug that occurs when the sdo_aggr_set_union entrance is only two geometries. I filed a bug: 10382252.
    Please use to request a backport if you need it.

  • Relating to the creation of a graph, get an error with a statement "Union All".

    Hello

    I have some data in the table with the following fields;

    Product, Jul-08 Aug-08, Sep - 08 etc. to Jan - 10.

    The PRODUCT field is text showing many product names

    The month of Jul-08 & others have numbers by product that must be aggregated for this month & plotted on the graph of the line.

    My SQL to create the first point on the chart is as below;

    Select the link null, label, SUM(JUL-08) "FFF".
    of "SCHEMANAME." "' TABLENAME '.
    WHERE PRODUCT = "FFF".
    PRODUCT GROUP
    ORDER BY PRODUCT

    It works fine until I want to add the second point of this graphic line by using a "union all" join as follows:

    Select the link null, label, SUM (JUL_08) "FFF".
    of "SCHEMANAME." "' TABLENAME '.
    WHERE PRODUCT = "FFF".

    UNION ALL

    Select the link null, label, SUM (AUG_08) "FFF".
    of "SCHEMANAME." "' TABLENAME '.
    WHERE PRODUCT = "FFF".

    I can't work on how I can join the other months on the line graph of a series.

    The error is as follows;

    --------------------------------------

    1 error has occurred
    Failed to parse the SQL query:
    Click link null, label, SUM (OCT_09) 'Non-communicable diseases - STD' of 'BI_A_DATA '. "" CDW_VS_NCDS_CALLS "WHERE PRODUCT ="MNT - STD' UNION ALL select link null, PRODUCT, SUM (NOV_09) "Non-communicable diseases - LOCAL" label of "BI_A_DATA". "" CDW_VS_NCDS_CALLS "WHERE PRODUCT ="MNT - LOCAL.

    ORA-00937: not a single group group function

    Some queries can be run when you run your application, if your query is syntactically correct, you can save your query without validation (see options below the source of the query).

    ----------------------------------------

    If anyone can help?

    I want a continuous linear graph showing monthly July 2008, Aug-08 Sep - 08 etc. to Jan - 10 for the same product.

    I will then add other series for other products, thanks

    OK a graphic line will only allow you to draw 1 variable (in this case period). Given that it is only for a single product, so here should be the final sql:

    SELECT null link, PERIOD label, SUM(ABC)
    FROM
    (SELECT 'JUL_08' PERIOD,SUM(JUL_08)ABC
    FROM BI_A_DATA.APEX_TEST
    WHERE PRODUCT = 'ABC'
    
    UNION ALL
    
    SELECT 'AUG_08' PERIOD,SUM(AUG_08)ABC
    FROM BI_A_DATA.APEX_TEST
    WHERE PRODUCT = 'ABC'
    
    UNION ALL
    
    SELECT 'SEP_08' PERIOD,SUM(SEP_08)ABC
    FROM BI_A_DATA.APEX_TEST
    WHERE PRODUCT = 'ABC')
    
    GROUP BY PERIOD
    
  • Add dummy record if condition fails

    How can I add a dummy record when a condition fails.
    with sample_data as 
    ( select 1 as week_nbr, 123.23 as sales, 200.00 as guests from dual union all 
      select 2 as week_nbr, 453.23 as sales, 300.20 as guests from dual union all 
      select 3 as week_nbr, 3123.23 as sales, 400.00 as guests from dual union all 
      select 4 as week_nbr, 123.25 as sales, 2300.13 as guests from dual 
    ) 
    select * from sample_data
    union all 
    select 5 as week_nbr, 0 as sales, 0 as guests from dual 
    where when sample_data contains no records with week_nbr = 5 

    Hello

    Lakmal Rajapakse wrote:
    Hi Frank,.

    I think that you need and the following clause for the not exists subquery:

    where week_nbr = 5

    Thank you! I missed that.

    The method of outer join probably won't help in this case.

  • SQL works well on DB11.2.0.1.0 but fails on DB9.2.0.8.0 with errors.

    The SQL below works well on DB11.2.0.1.0 but fails on DB9.2.0.8.0 with the error:

    WITH users_with_dba_privs AS
    *
    ERROR on line 1:
    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-00904: "starting at $_subquery$ _005. "" PARENT ": invalid identifier

    --------------------------------------------------------------------------------------------------------------------------------
    SQL
    --------------------------------------------------------------------------------------------------------------------------------
    WITH users_with_dba_privs AS
    (select child separate user_name)
    (select null parent, child 'DBA' double
    Union of all the
    Select granted_role parent, child
    of dba_role_privs)
    where child in (select username from dba_users)
    Start with parent is null to connect by prior child = parent)
    Select "select_any_table."
    substr (SYS_CONNECT_BY_PATH (c, '-->'), 3 512) path, c.
    (select null name c p
    of system_privilege_map
    WHERE name = "SELECT ANY TABLE"
    Union of all the
    Select - users/roles and roles granted
    granted_role p,
    c dealer
    of dba_role_privs
    where granted_role! = "DBA".
    Union of all the
    Select - users/roles with any table
    privilege p, dealer c
    of dba_sys_privs
    where a lien = "SELECT ANY TABLE")
    where (c = 'PUBLIC' or c (select UserName from dba_users))
    AND c NOT IN('MDSYS','DMSYS','CTXSYS','WMSYS','ORDSYS','OLAPSYS','DBSNMP')
    and c. NOT IN (select user_name from users_with_dba_privs)
    Start by p is null to connect by prior p = c
    Union of all the
    Select "select_privilege."
    substr (SYS_CONNECT_BY_PATH (c, '-->'), 3 512) path, c.
    (select null p, view_name c
    from dba_views
    where view_name as "DBA_ %.
    Union of all the
    Select - users/roles and roles granted
    granted_role p,
    c dealer
    of dba_role_privs
    where granted_role! = "DBA".
    Union of all the
    Select - users/roles with select view s/n
    table_name p, dealer c
    of dba_tab_privs
    where a lien = "SELECT".
    and table_name like '% DBA_')
    where (c = 'PUBLIC' or c (select UserName from dba_users))
    AND c NOT IN('MDSYS','DMSYS','CTXSYS','WMSYS','ORDSYS','OLAPSYS','DBSNMP')
    and c. NOT IN (select user_name from users_with_dba_privs)
    Start by p is null to connect by prior p = c
    --------------------------------------------------------------------------------------------------------------------------------


    Thanks in advance.

    ~ Hozy

    This should work:

    select 'select_any_table',
    substr(SYS_CONNECT_BY_PATH(c, '->'),3,512) path, c
    from (select null p, name c
    from system_privilege_map
    where name = 'SELECT ANY TABLE'
    union all
    select -- users/roles and roles granted
    granted_role p,
    grantee c
    from dba_role_privs
    where granted_role != 'DBA'
    union all
    select -- users/roles with select any table
    privilege p, grantee c
    from dba_sys_privs
    where privilege = 'SELECT ANY TABLE')
    where (c = 'PUBLIC' OR c in (select username from dba_users))
    AND c NOT IN('MDSYS','DMSYS','CTXSYS','WMSYS','ORDSYS','OLAPSYS','DBSNMP')
    and c NOT IN (select user_name from (select distinct child user_name
                                         from (select null parent, 'DBA' child from dual
                                         union all
                                         select granted_role parent, grantee child
                                         from dba_role_privs)
                                         where child in (select username from dba_users)
                                         start with parent is null connect by parent = prior child ))
    start with p is null connect by p = prior c
    union all
    select 'select_privilege',
    substr(SYS_CONNECT_BY_PATH(c, '->'),3,512) path, c
    from (select null p, view_name c
    from dba_views
    where view_name like 'DBA_%'
    union all
    select -- users/roles and roles granted
    granted_role p,
    grantee c
    from dba_role_privs
    where granted_role != 'DBA'
    union all
    select -- users/roles with select on DBA views
    table_name p, grantee c
    from dba_tab_privs
    where privilege = 'SELECT'
    and table_name like 'DBA_%')
    where (c = 'PUBLIC' OR c in (select username from dba_users))
    AND c NOT IN('MDSYS','DMSYS','CTXSYS','WMSYS','ORDSYS','OLAPSYS','DBSNMP')
    and c NOT IN (select user_name from (select distinct child user_name
                                         from (select null parent, 'DBA' child from dual
                                         union all
                                         select granted_role parent, grantee child
                                         from dba_role_privs)
                                         where child in (select username from dba_users)
                                         start with parent is null connect by parent = prior child )
                  )
    start with p is null connect by p = prior c
    
  • Database replication, a feature fails in replica

    Hi all

    I'm trying to duplicate a database. I exported/imported a few patterns to make it work without any problem, but I have a package feature fails in its execution.

    The function has a slider that is used in a statement. The query looks like:

    SELECT number_field as Field1, trim(mun_nom2_part||) e '|| mun_nom2) LIKE Field2, field3 as varchar2_4length_field
    FROM table1...
    Union
    SELECT number_field as Field1, trim(mun_nom2_part||) e '|| mun_nom2) LIKE Field2, field3 as varchar2_4length_field
    from table2...
    Union
    SELECT number_field as Field1, trim(mun_nom2_part||) e '|| mun_nom2) LIKE Field2, field3 as varchar2_4length_field
    table 3...
    order of Field2

    Results look like:
         0             ADMINISTRATOR                     0
         8995386    Btenhs je Cas                     7185
         1421397    Hracolters                             7370
         16919       Grntdetf t Xrists                     7446
         1             [Ftwiccpt rs Ryexa]             1
         12683904  Trageà gr Gpm                     7510
         625498      Feng Tguagóz gw Kcgis        8981
         2492617    Hyxte Ivloya ef Plahogtt     8993
    It runs OK in the original database, but it fails in the replica with an ORA-06502 error. If I execute select, it is OK on both databases and the result is both equal, but when the slider looped it fails on line 7 in the copy.

    Any idea?

    Thanks in advance.

    Published by: Eva VL on June 2, 2009 06:01

    I am trying to duplicate a database

    Instead of walking a road heavy, why not use this approach:

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1432274900346100233

Maybe you are looking for

  • I want to open several tabs for the same Web site. 9.0 will allow me to do this?

    I keep getting pop up windows to update to Firefox 9.0 because its faster etc. I look round and he tells me he asks me if I already have one open. I WANT THE SAME SITE OPENED IN SEVERAL TABS according to what I'm working on. Is it still possible with

  • Re: Question for Toshiba Satellite A100-332 recovery

    I want to format and reinstall windows to its plant as its really slow-running state. I do not remember to have a recovery on buying cd and said that I just need to push an F key on boot up, file recovery is on the hard drive. Is this correct?

  • ProBook 4530 s: display the ProBook s 4530 upgrade required

    Hello! I want the upgrade form to my HP ProBook s 4530 of basic HD-ready advance Full HD Panel. Unfortunately I do not see this option here. Is it possible to somehow? If Yes, could someone appropriate advice part number. Thanks in advance!

  • T430s - eve day 30 - how to determine it works and how to activate it

    I can't know if the sleep of 30 days feature works on my laptop or if I've properly activated. Anyone with a portable SSD Ivy Bridge native was able to test the feature? Here, that's what I did: I replaced the HARD drive that came with my T430s with

  • Tile Text Import

    Dear Sir. I have text files which must be imported into labview, so that I can use these signals as an entry for my project for the future. I tried to import these signals using the Tools--> Advanced--> import channels. But I get an error that I join