Problem with VPD policy function
Hi All,
I'm trying to secure database tables with VPD and getting "ORA-28112: failed to execute policy function" error when I query the table.
--My schema is "sales"
grant crete any context to sales;
-- created context using this statement
create OR REPLACE context sales_APP_CTX using PKG_SECURITY ACCESSED GLOBALLY;
-- Package spec
CREATE OR REPLACE PACKAGE PKG_SECURITY is
function vpd_sec_pol_func return varchar2 ;
procedure set_sales_app_context(p_user varchar2,p_security_level varchar2);
end;
-- package body
CREATE OR REPLACE PACKAGE BODY PKG_SECURITY is
function vpd_sec_pol_func return varchar2 is
-- v_user varchar2(100) := UPPER(portal.wwctx_api.get_user);
begin
if user not in ('SALES','ORACLE') then
return ' state in (select state from app_user_states where user_id = sys_context(''SALES_APP_CTX'', ''APP_USER''))';
else
return null;
end if;
end;
procedure set_sales_app_context(p_user varchar2,p_security_level varchar2) is
begin
dbms_session.set_context('SALES_APP_CTX','APP_USER',p_user);
-- dbms_session.set_context('SALES_APP_CTX','SECURITY_LEVEL',p_security_level);
end;
end;
-- Added the policy to the table
begin
dbms_rls.add_policy
( object_schema => 'SALES',
object_name => 'SALES_SUMMARY',
policy_name => 'SALES_SUMMARY_POLICY',
function_schema => 'SALES',
policy_function => 'PKG_SECURITY.VPD_SEC_POL_FUNC',
statement_types => 'SELECT,INSERT,UPDATE,DELETE' ,
update_check => TRUE );
end;
-- I was able to set context using sqlplus by executing the procedure
exec PKG_SECURITY.set_sales_app_context('TEST_USER','R');
What am I doing wrong?
Thanks
Hi,
ml_huang wrote:
Is it necessary to create 'Context' and 'Procedure' before the function and policy?It is not necessary to create a context.
A context can be very useful for doing row-level security, but it is not required.
Even if you are using SYS_CONTEXT, you can create the function first, if you want to.
Sorry, I don't understand what 'Procedure' you mean.
I have created a function (with no parameters) and a policy and kept getting the Ora-28112 error.Policy functions must accept 2 VARCHAR2 parameters. See the messages above.
Any suggestions for me? Thanks!Start your own thread for your own question.
I think more people will want to read (and therefore respond to) a new message with 0 replies than a 3-month old message with 4 replies.
Similar Messages
-
Problem with Edit IN function between LR 2.3 and PS CS3
I recently upgraded my system to a Windows Vista 64 bit Core 2 Quad with 8 GB. Lightroom now works and loads images the way it should. I do have one major concern and need any help possible.
I am using LR 2.3 in 64 bit and PS CS3 ver 10.0.1 (which is 32 bit - loads slowly but otherwise works fine). The problem I am encountering is in LR Develop / Photo / Edit In... - using any of the menu items:
"Edit in Abode Photoshop CS3"
"Open as Smart Object In Photoshop"
"Merge to Panorama in Photoshop"
"Merge to HDR in Photoshop"
"Open as layers in Photoshop"
Photoshop opens but no image(s) are exported and I receive the message in LR - "The file could not be edited because Adobe Photoshop CS3 could not be launched."
Photoshop, however, was launched but no image exported and so I can't work on the image in PS. The appropriate TIFF image is created in LR for the first two menu items - nothing for the last three menu items.
I can create a partial work around by setting PS as an external editor, however, I can't use 4 of 5 of the menu items.
All the menu items work fine in Windows XPpro.
Any help is much appreciated.
PS I also tried the most recent Window 7 RC with exactly the same results.
Thanks
BobDon
I wasn't shouting - I just cut and paste the exact text and font in its original size and type as was shown in the message. Never had a thought that someone would be offended by cutting and pasting exactly what was in a message - it would appear that John Williams saw it for what it was.
However, sorry if I offended you.
Bob
Date: Mon, 1 Jun 2009 19:15:15 -0600
From: [email protected]
To: [email protected]
Subject: Problem with Edit IN function between LR 2.3 and PS CS3
There is no reason to shout. There are only other users here trying to help.
> -
Do you have problem with your bluetooth function in Snow Leopard? I have.
I seroiously have problem with the bluebooth function with my Macbook . It is running 10.6.1, which have been upgraded from 10.5.8. Unlike others, my bluetooth function haven't disappeared or disconnected with the wireless devices. But it cannot communicate with my mobile phone. (e.g cannot send files) After trying to do so,95% chance of It will crash itself, about 5% will success .
This is the log, i think i summit this to apple quite a lot of time already, any temporary solution? many thanks
Process: Bluetooth File Exchange [241]
Path: /Applications/Utilities/Bluetooth File Exchange.app/Contents/MacOS/Bluetooth File Exchange
Identifier: com.apple.BluetoothFileExchange
Version: 2.2.1 (2.2.1f7)
Build Info: IOBluetoothFamily-22100407~1
Code Type: X86-64 (Native)
Parent Process: launchd [130]
Date/Time: 2009-09-30 16:48:21.671 +0800
OS Version: Mac OS X 10.6.1 (10B504)
Report Version: 6
Interval Since Last Report: 8725 sec
Crashes Since Last Report: 2
Per-App Interval Since Last Report: 8530 sec
Per-App Crashes Since Last Report: 2
Anonymous UUID: 8CF3412B-F41F-447F-92D8-BEA0F5BBC27D
Exception Type: EXCBADACCESS (SIGSEGV)
Exception Codes: KERNINVALIDADDRESS at 0x0000000000000011
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Application Specific Information:
objc_msgSend() selector name: device
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8159733c objc_msgSend + 40
1 com.apple.Bluetooth 0x00007fff85dbef47 -[IOBluetoothOBEXSession initWithSDPServiceRecord:] + 163
2 com.apple.Bluetooth 0x00007fff85dbf14e +[IOBluetoothOBEXSession withSDPServiceRecord:] + 72
3 com.apple.BluetoothUI 0x00000001000252c2 -[IOBluetoothConcreteObjectPush newModuleForFiles:isFirstRun:] + 233
4 com.apple.BluetoothUI 0x00000001000250fe -[IOBluetoothConcreteObjectPush initObjectPushWithBluetoothDevice:withFiles:delegate:] + 444
5 ...apple.BluetoothFileExchange 0x00000001000023df 0x100000000 + 9183
6 ...apple.BluetoothFileExchange 0x00000001000021f5 0x100000000 + 8693
7 com.apple.AppKit 0x00007fff848e6e5b -[NSServiceListener _doInvokeServiceIn:msg:pb:userData:error:unhide:] + 887
8 com.apple.AppKit 0x00007fff848e69cd _NSServiceMasterCallBack + 127
9 com.apple.CoreFoundation 0x00007fff825247bb __CFServiceControllerMessagePortCallBack + 859
10 com.apple.CoreFoundation 0x00007fff824ee382 __CFMessagePortPerform + 418
11 com.apple.CoreFoundation 0x00007fff824b0f84 __CFRunLoopDoSource1 + 356
12 com.apple.CoreFoundation 0x00007fff8248964d __CFRunLoopRun + 4413
13 com.apple.CoreFoundation 0x00007fff8248803f CFRunLoopRunSpecific + 575
14 com.apple.HIToolbox 0x00007fff859bfc4e RunCurrentEventLoopInMode + 333
15 com.apple.HIToolbox 0x00007fff859bfa53 ReceiveNextEventCommon + 310
16 com.apple.HIToolbox 0x00007fff859bf90c BlockUntilNextEventMatchingListInMode + 59
17 com.apple.AppKit 0x00007fff8442f520 _DPSNextEvent + 718
18 com.apple.AppKit 0x00007fff8442ee89 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
19 com.apple.AppKit 0x00007fff843f4a7d -[NSApplication run] + 395
20 com.apple.AppKit 0x00007fff843ed798 NSApplicationMain + 364
21 ...apple.BluetoothFileExchange 0x0000000100001204 0x100000000 + 4612
Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x00007fff8065db16 kevent + 10
1 libSystem.B.dylib 0x00007fff8065fa19 dispatch_mgrinvoke + 154
2 libSystem.B.dylib 0x00007fff8065f6d6 dispatch_queueinvoke + 195
3 libSystem.B.dylib 0x00007fff8065f1f6 dispatch_workerthread2 + 244
4 libSystem.B.dylib 0x00007fff8065eb28 pthreadwqthread + 353
5 libSystem.B.dylib 0x00007fff8065e9c5 start_wqthread + 13
Thread 2:
0 libSystem.B.dylib 0x00007fff806889f2 select$DARWIN_EXTSN + 10
1 com.apple.CoreFoundation 0x00007fff824aa252 __CFSocketManager + 818
2 libSystem.B.dylib 0x00007fff8067df66 pthreadstart + 331
3 libSystem.B.dylib 0x00007fff8067de19 thread_start + 13
Thread 3:
0 libSystem.B.dylib 0x00007fff8065e94a _workqkernreturn + 10
1 libSystem.B.dylib 0x00007fff8065ed5c pthreadwqthread + 917
2 libSystem.B.dylib 0x00007fff8065e9c5 start_wqthread + 13
Thread 4:
0 libSystem.B.dylib 0x00007fff8065e94a _workqkernreturn + 10
1 libSystem.B.dylib 0x00007fff8065ed5c pthreadwqthread + 917
2 libSystem.B.dylib 0x00007fff8065e9c5 start_wqthread + 13
Thread 5:
0 com.apple.AppKit 0x00007fff8457a28e -[NSUIHeartBeat _heartBeatThread:] + 400
1 com.apple.Foundation 0x00007fff87559f65 _NSThread__main_ + 1429
2 libSystem.B.dylib 0x00007fff8067df66 pthreadstart + 331
3 libSystem.B.dylib 0x00007fff8067de19 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000009 rbx: 0x000000011dc04e70 rcx: 0x0000000000000000 rdx: 0x0000000000000050
rdi: 0x00000001005ca300 rsi: 0x00007fff84c1ffaa rbp: 0x00007fff5fbfe540 rsp: 0x00007fff5fbfe528
r8: 0x0000000000000000 r9: 0x000000011dcfc0a4 r10: 0x000000000000001b r11: 0x0000000000000001
r12: 0x00000001005ca300 r13: 0x0000000000000000 r14: 0x00007fff85df9e40 r15: 0x000000011dc00ab0
rip: 0x00007fff8159733c rfl: 0x0000000000010206 cr2: 0x0000000000000011
Binary Images:
0x100000000 - 0x10000fff7 com.apple.BluetoothFileExchange 2.2.1 (2.2.1f7) <92874C70-235E-4FAA-7F8B-433C319C58C2> /Applications/Utilities/Bluetooth File Exchange.app/Contents/MacOS/Bluetooth File Exchange
0x100018000 - 0x100038fff com.apple.BluetoothUI 2.2.1 (2.2.1f7) <FB851666-8767-A029-1C42-0BCD397B324B> /System/Library/Frameworks/IOBluetoothUI.framework/Versions/A/IOBluetoothUI
0x100075000 - 0x100087fff libTraditionalChineseConverter.dylib ??? (???) <F86B5994-BD36-2B87-2C4A-523668E29192> /System/Library/CoreServices/Encodings/libTraditionalChineseConverter.dylib
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <B633F790-4DDB-53CD-7ACF-2A3682BCEA9F> /usr/lib/dyld
0x7fff80003000 - 0x7fff80080fef libstdc++.6.dylib ??? (???) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
0x7fff80081000 - 0x7fff800c7fe7 libvDSP.dylib ??? (???) <2DAA1591-8AE8-B411-7D01-68DE99C63CEE> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
0x7fff800c8000 - 0x7fff800c8ff7 com.apple.Accelerate 1.5 (Accelerate 1.5) <E517A811-E0E6-89D0-F397-66122C7A25A4> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff800c9000 - 0x7fff801cefe7 libGLProgrammability.dylib ??? (???) <EDEC71CB-5F5B-7F55-47F4-19E953E3BE61> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgramma bility.dylib
0x7fff801cf000 - 0x7fff801cfff7 com.apple.CoreServices 44 (44) <210A4C56-BECB-E3E4-B6EE-7EC53E02265D> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff801d0000 - 0x7fff80564ff7 com.apple.QuartzCore 1.6.0 (226.0) <66E14771-C5F0-1415-0B7B-C45EE00C51A1> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x7fff80644000 - 0x7fff80802ff7 libSystem.B.dylib ??? (???) <66102D4E-6C8B-77D0-6766-2A1788B20C6F> /usr/lib/libSystem.B.dylib
0x7fff80803000 - 0x7fff80806ff7 com.apple.securityhi 4.0 (36638) <77F40B57-2D97-7AE5-1331-8945C71DFB57> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
0x7fff80807000 - 0x7fff8080aff7 libCoreVMClient.dylib ??? (???) <3A41933A-5174-7516-37E0-8E06365BF3DA> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClien t.dylib
0x7fff8080b000 - 0x7fff8082bfef com.apple.DirectoryService.Framework 3.6 (621) <925EE208-03B2-B24A-3686-57EAFBDA5ADF> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
0x7fff8082c000 - 0x7fff80830ff7 libmathCommon.A.dylib ??? (???) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
0x7fff80831000 - 0x7fff8083efff libCSync.A.dylib ??? (???) <D97C8D7E-2CA3-9495-0C41-004CE47BC5DD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x7fff80940000 - 0x7fff80951fef libz.1.dylib ??? (???) <3A7A4C48-A4C8-A78A-8B87-C0DDF6601AC8> /usr/lib/libz.1.dylib
0x7fff80952000 - 0x7fff80bd6fff com.apple.security 6.0 (36910) <F7431448-BC2E-835D-E7A2-E47E0A5CB984> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff80bd7000 - 0x7fff80c10ff7 com.apple.MeshKit 1.0 (49.0) <7587A7F2-DF5D-B8B2-A6A8-1389CF28BC51> /System/Library/PrivateFrameworks/MeshKit.framework/Versions/A/MeshKit
0x7fff80d0a000 - 0x7fff80d0cfff libRadiance.dylib ??? (???) <77F285E0-5D5E-A0B0-A89E-9332D6AB2867> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x7fff80d0d000 - 0x7fff81517fe7 libBLAS.dylib ??? (???) <FC941ECB-71D0-FAE3-DCBF-C5A619E594B8> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
0x7fff81518000 - 0x7fff81518ff7 com.apple.Accelerate.vecLib 3.5 (vecLib 3.5) <BA861575-B0DE-50F5-A799-BDF188A3D4EF> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
0x7fff81519000 - 0x7fff8151afff com.apple.MonitorPanelFramework 1.3.0 (1.3.0) <5062DACE-FCE7-8E41-F5F6-58821778629C> /System/Library/PrivateFrameworks/MonitorPanel.framework/Versions/A/MonitorPane l
0x7fff8157c000 - 0x7fff81592fff com.apple.MultitouchSupport.framework 200.20 (200.20) <96B8C66E-D84D-863B-CB1D-F7E005569706> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/Multit ouchSupport
0x7fff81593000 - 0x7fff81649fe7 libobjc.A.dylib ??? (???) <261D97A3-225B-8A00-56AA-F9F27973063F> /usr/lib/libobjc.A.dylib
0x7fff8164a000 - 0x7fff81697ff7 libauto.dylib ??? (???) <8658DB85-C611-1212-44E5-5B2539018FA0> /usr/lib/libauto.dylib
0x7fff81698000 - 0x7fff816fafe7 com.apple.datadetectorscore 2.0 (80.7) <F9D2332D-0890-2ED2-1AC8-F85CB89D8BD4> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDe tectorsCore
0x7fff81708000 - 0x7fff81716ff7 libkxld.dylib ??? (???) <823B6BE6-E952-3B3C-3633-8F4D6C4606A8> /usr/lib/system/libkxld.dylib
0x7fff818bb000 - 0x7fff818c0fff libGFXShared.dylib ??? (???) <C386DB22-A0AA-D826-ACBA-25E82B480D05> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.d ylib
0x7fff8193f000 - 0x7fff81ac3fff com.apple.JavaScriptCore 6531 (6531.5) <8C470ACB-1A45-71FC-673D-34EA3F5EF0DC> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
0x7fff81ac4000 - 0x7fff81acbff7 com.apple.DisplayServicesFW 2.1 (2.1) <2C039CF5-8AF8-6DA3-3C77-566B22EFB172> /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayS ervices
0x7fff81acc000 - 0x7fff81af4fff com.apple.DictionaryServices 1.1 (1.1) <D57BA55A-4CC5-5C17-8077-AEEA27A01C7A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
0x7fff81af5000 - 0x7fff81d01ff7 com.apple.RawCamera.bundle 2.2.1 (477) <B4DD9D3B-CD05-5ACE-6808-BEC5660D805C> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
0x7fff81d02000 - 0x7fff81e24ff7 com.apple.audio.toolbox.AudioToolbox 1.6 (1.6) <3CA3B481-9627-6F36-F2B8-C2763DEEB128> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x7fff81eda000 - 0x7fff81f8ffff com.apple.ink.framework 1.3 (104) <9B552E27-7E3F-6767-058A-C998E8F78692> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
0x7fff81f90000 - 0x7fff81f90ff7 com.apple.ApplicationServices 38 (38) <10A0B9E9-4988-03D4-FC56-DDE231A02C63> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
0x7fff81fcf000 - 0x7fff82024fef com.apple.framework.familycontrols 2.0 (2.0) <2520A455-5487-1964-C5D9-D284699D2537> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyCon trols
0x7fff82025000 - 0x7fff8205aff7 libcups.2.dylib ??? (???) <1FE99C26-B845-F508-815A-5B2CF2CA5337> /usr/lib/libcups.2.dylib
0x7fff82091000 - 0x7fff820ccfef com.apple.AE 496 (496) <6AFD62E0-DD92-4F04-A73A-90224D80593D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
0x7fff821a2000 - 0x7fff821ddff7 com.apple.CoreMediaIOServices 101.0 (715) <7B93206A-FEC5-FCC3-3587-91E3CEC61797> /System/Library/PrivateFrameworks/CoreMediaIOServices.framework/Versions/A/Core MediaIOServices
0x7fff821f4000 - 0x7fff82303ff7 libcrypto.0.9.8.dylib ??? (???) <A2DA70D0-02AE-89FA-1CDA-B3CA986CAE6D> /usr/lib/libcrypto.0.9.8.dylib
0x7fff82304000 - 0x7fff8243cff7 com.apple.CoreData 102 (246) <0502CBD8-513E-C19A-3562-20EC35535D71> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x7fff8243d000 - 0x7fff825b0fef com.apple.CoreFoundation 6.6 (550) <04EC0CC2-6CE4-4EE0-03B9-6C5109398CB1> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff825b1000 - 0x7fff825ecfe7 com.apple.CoreMedia 0.420.17 (420.17) <E299556E-6930-DC30-DA23-88B812AF63CA> /System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia
0x7fff825ed000 - 0x7fff825eefff liblangid.dylib ??? (???) <EA4D1607-2BD5-2EE2-2A3B-632EEE5A444D> /usr/lib/liblangid.dylib
0x7fff825ef000 - 0x7fff825fefef com.apple.opengl 1.6.3 (1.6.3) <6318A188-B43D-E82F-C157-2E76331227BD> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x7fff825ff000 - 0x7fff825ffff7 com.apple.Carbon 150 (152) <8D8CF535-90BE-691C-EC1B-63FBE2162C9B> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x7fff82600000 - 0x7fff826e4ff7 com.apple.DesktopServices 1.5.1 (1.5.1) <65D7E707-DBCA-5752-78EC-351DC88F3AE8> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
0x7fff826e5000 - 0x7fff82726ff7 com.apple.SystemConfiguration 1.10 (1.10) <E3FF1FC8-C760-2047-F954-0D283DD0F714> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
0x7fff82907000 - 0x7fff82996fff com.apple.PDFKit 2.5 (2.5) <7849E675-4289-6FEA-E314-063E91A4B07F> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/PDFKit.framew ork/Versions/A/PDFKit
0x7fff82a33000 - 0x7fff82a34ff7 com.apple.audio.units.AudioUnit 1.6 (1.6) <7A51FBCE-7907-28A0-B2D2-CAADA78F2913> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x7fff82aa5000 - 0x7fff82abefff com.apple.CFOpenDirectory 10.6 (10.6) <0F46E102-8B8E-0995-BA85-3D9608F0A30C> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpen Directory.framework/Versions/A/CFOpenDirectory
0x7fff82bf8000 - 0x7fff82bf8ff7 com.apple.quartzframework 1.5 (1.5) <B182B579-BCCE-81BF-8DA2-9E0B7BDF8516> /System/Library/Frameworks/Quartz.framework/Versions/A/Quartz
0x7fff82bf9000 - 0x7fff82c2afef libTrueTypeScaler.dylib ??? (???) <3F30259E-9EB0-18D2-B0F3-7B8A9625574E> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib
0x7fff82c9e000 - 0x7fff82ce2fef com.apple.ImageCaptureCore 1.0 (1.0) <29A6CF83-B5C2-9730-D71D-825AEC8657F5> /System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/ImageCaptureCo re
0x7fff82ce3000 - 0x7fff82ea0fff libicucore.A.dylib ??? (???) <224721C0-EC21-94D0-6484-66C603C34CBE> /usr/lib/libicucore.A.dylib
0x7fff830c8000 - 0x7fff830d9fff com.apple.DSObjCWrappers.Framework 10.6 (134) <3C08225D-517E-2822-6152-F6EB13A4ADF9> /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
0x7fff830da000 - 0x7fff830e0ff7 com.apple.DiskArbitration 2.3 (2.3) <857F6E43-1EF4-7D53-351B-10DE0A8F992A> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fff83120000 - 0x7fff832dafef com.apple.ImageIO.framework 3.0.0 (3.0.0) <D5594E10-F805-F816-10E9-F95753BE18CC> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
0x7fff832db000 - 0x7fff833b5ff7 com.apple.vImage 4.0 (4.0) <354F34BF-B221-A3C9-2CA7-9BE5E14AD5AD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
0x7fff833b6000 - 0x7fff835effe7 com.apple.imageKit 2.0 (1.0) <F579694D-9FA0-6365-45CD-E380C2EB2573> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.fram ework/Versions/A/ImageKit
0x7fff83654000 - 0x7fff83667fff libGL.dylib ??? (???) <D452ADC0-04B1-E24F-03E6-717E58E1D659> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x7fff836a7000 - 0x7fff83729fef com.apple.QuickLookUIFramework 2.0 (327.0) <B9850E11-3F04-100F-0122-B4AD6222A43F> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuickLookUI.f ramework/Versions/A/QuickLookUI
0x7fff8372a000 - 0x7fff837c4fe7 com.apple.ApplicationServices.ATS 4.0 (???) <76009EB5-037B-8A08-5AB5-18DA59559509> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
0x7fff837c5000 - 0x7fff837d9ff7 com.apple.speech.synthesis.framework 3.10.35 (3.10.35) <621B7415-A0B9-07A7-F313-36BEEDD7B132> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x7fff838a6000 - 0x7fff838b5fff com.apple.NetFS 3.2 (3.2) <61E3D8BE-A529-20BF-1A11-026EC774820D> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x7fff838b6000 - 0x7fff838ccfef libbsm.0.dylib ??? (???) <42D3023A-A1F7-4121-6417-FCC6B51B3E90> /usr/lib/libbsm.0.dylib
0x7fff83a40000 - 0x7fff83a44ff7 libCGXType.A.dylib ??? (???) <50EB4AB0-0B25-E5DC-FC9E-12268B51F02F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x7fff83a45000 - 0x7fff83aaffe7 libvMisc.dylib ??? (???) <524DC30F-6A54-CCED-56D9-F57033B06E99> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
0x7fff83ab0000 - 0x7fff83ab0ff7 com.apple.Cocoa 6.6 (???) <68B0BE46-6E24-C96F-B341-054CF9E8F3B6> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x7fff83ab1000 - 0x7fff83ab1ff7 com.apple.vecLib 3.5 (vecLib 3.5) <5B072584-9579-F54F-180E-5D425B37E85C> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x7fff83ad3000 - 0x7fff83c40fe7 com.apple.QTKit 7.6.3 (1584) <6D02A542-5202-4022-2050-5BE01F70D225> /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit
0x7fff83c41000 - 0x7fff84139ff7 com.apple.VideoToolbox 0.420.17 (420.17) <E034AA6E-A1E4-BB8F-5AFA-F5C354DDD889> /System/Library/PrivateFrameworks/VideoToolbox.framework/Versions/A/VideoToolbo x
0x7fff8413a000 - 0x7fff8415bfff libresolv.9.dylib ??? (???) <01C7C750-7F6A-89B3-C586-5C50A839019E> /usr/lib/libresolv.9.dylib
0x7fff84164000 - 0x7fff841c1fef com.apple.framework.IOKit 2.0 (???) <65AA6170-12E3-BFB5-F982-E0C433610A1F> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff8420b000 - 0x7fff8428bff7 com.apple.iLifeMediaBrowser 2.1.3 (346.0.3) <04677A98-142E-9C0E-18A7-4C74275856B7> /System/Library/PrivateFrameworks/iLifeMediaBrowser.framework/Versions/A/iLifeM ediaBrowser
0x7fff842cb000 - 0x7fff8431cfe7 com.apple.HIServices 1.8.0 (???) <113EEB8A-8EC6-9F86-EF46-4BA5C2CBF77C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
0x7fff8431d000 - 0x7fff8431ffff com.apple.print.framework.Print 6.0 (237) <70DA9755-5DC1-716B-77E2-E42C5DAB85A2> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
0x7fff843eb000 - 0x7fff84ddffe7 com.apple.AppKit 6.6.1 (1038.2) <C17AD2AC-8639-D20F-CD99-36EEC619A5F0> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff84e43000 - 0x7fff84e49ff7 IOSurface ??? (???) <8E0EE904-59D1-9AA0-CE55-B1777F4BAEC1> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x7fff84e4a000 - 0x7fff84edafff com.apple.SearchKit 1.3.0 (1.3.0) <4175DC31-1506-228A-08FD-C704AC9DF642> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
0x7fff8511e000 - 0x7fff851aafef SecurityFoundation ??? (???) <B69E2FF9-A698-4923-BC8B-180224B6EF75> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
0x7fff85219000 - 0x7fff85296fe7 com.apple.CoreText 3.0.0 (???) <51175014-9F0C-7E96-FB6F-3DC5E446B92E> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
0x7fff852c8000 - 0x7fff8534cfff com.apple.print.framework.PrintCore 6.0 (312) <1F747E69-924D-8C5B-F318-C4828CC6E85D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
0x7fff8534d000 - 0x7fff855b7ff7 com.apple.QuartzComposer 4.0 (156.6) <4E43D357-4A18-5D16-02E8-14324A5B9302> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzCompose r.framework/Versions/A/QuartzComposer
0x7fff855d9000 - 0x7fff856e2fff com.apple.MediaToolbox 0.420.17 (420.17) <31834AB2-1BFF-92D5-A8D2-21B0AE51FA98> /System/Library/PrivateFrameworks/MediaToolbox.framework/Versions/A/MediaToolbo x
0x7fff85731000 - 0x7fff85797fe7 com.apple.AppleVAFramework 4.6.2 (4.6.2) <3DA57727-EAD1-A199-4093-54CC4698A109> /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
0x7fff85832000 - 0x7fff8588efff libGLU.dylib ??? (???) <AA2D37B3-8B7C-6772-F8BA-7364284C55FE> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x7fff8588f000 - 0x7fff858a5fff com.apple.ImageCapture 6.0 (6.0) <5B5AF8FB-C12A-B51F-94FC-3EC4698E818E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
0x7fff858a6000 - 0x7fff85946fff com.apple.LaunchServices 360.3 (360.3) <02FFE657-CC7A-5266-F06E-8732E28F70A9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
0x7fff85947000 - 0x7fff85991ff7 com.apple.Metadata 10.6.0 (507.1) <AA0DF8E0-9B5B-2377-9B20-884919E28994> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
0x7fff85992000 - 0x7fff85c8ffef com.apple.HIToolbox 1.6.0 (???) <870B39B2-55BD-9C82-72EB-2E3470BD0E14> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
0x7fff85c90000 - 0x7fff85d9aff7 com.apple.MeshKitIO 1.0 (49.0) <66600E25-66F9-D31A-EA47-E81518FF6DDA> /System/Library/PrivateFrameworks/MeshKit.framework/Versions/A/Frameworks/MeshK itIO.framework/Versions/A/MeshKitIO
0x7fff85d9b000 - 0x7fff85e2cff7 com.apple.Bluetooth 2.2.1 (2.2.1f7) <D0ED3891-8B9B-6350-D77C-F8B5B514AB9F> /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
0x7fff85e2d000 - 0x7fff85f44fef libxml2.2.dylib ??? (???) <6D4C196C-B061-CBCD-AAFD-A21736A8425C> /usr/lib/libxml2.2.dylib
0x7fff85f45000 - 0x7fff85f57fe7 libsasl2.2.dylib ??? (???) <76B83C8D-8EFE-4467-0F75-275648AFED97> /usr/lib/libsasl2.2.dylib
0x7fff85f82000 - 0x7fff85fd1ff7 com.apple.DirectoryService.PasswordServerFramework 6.0 (6.0) <14FD0978-4BE0-336B-A19E-F388694583EB> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordS erver
0x7fff8601b000 - 0x7fff860e7fff com.apple.CFNetwork 454.4 (454.4) <E7721AD8-3177-8749-60F7-5EF323E6492B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
0x7fff860e8000 - 0x7fff8612ffef com.apple.QuickLookFramework 2.0 (327.0) <E15E267E-D462-2AD0-DB03-A54E0F94452F> /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook
0x7fff86130000 - 0x7fff86131ff7 com.apple.TrustEvaluationAgent 1.0 (1) <4B6B7853-EDAC-08B7-3324-CA9A3802FAE2> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/Tru stEvaluationAgent
0x7fff86316000 - 0x7fff86341ff7 libxslt.1.dylib ??? (???) <87A0B228-B24A-C426-C3FB-B40D7258DD49> /usr/lib/libxslt.1.dylib
0x7fff86342000 - 0x7fff86674fef com.apple.CoreServices.CarbonCore 859.1 (859.1) <5712C4C1-B18B-88EE-221F-DA04A8EDA029> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
0x7fff87099000 - 0x7fff870e8ff7 libTIFF.dylib ??? (???) <E11A75A8-223C-8B5E-7F62-821F9ADE8821> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x7fff870e9000 - 0x7fff87151ff7 com.apple.MeshKitRuntime 1.0 (49.0) <580F1945-540B-1E68-0341-A6ADAD78397E> /System/Library/PrivateFrameworks/MeshKit.framework/Versions/A/Frameworks/MeshK itRuntime.framework/Versions/A/MeshKitRuntime
0x7fff87152000 - 0x7fff87201fef edu.mit.Kerberos 6.5.8 (6.5.8) <A9C16B72-A1F8-3DDE-7772-E7635774CA6E> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x7fff87202000 - 0x7fff872beff7 com.apple.CoreServices.OSServices 352 (352) <CD933BBD-B260-552F-E64E-291D6ED3091A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
0x7fff872bf000 - 0x7fff872c5fff libCGXCoreImage.A.dylib ??? (???) <D113DB65-BB37-5499-8825-E6AE8AB1F8B8> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGXCoreImage.A.dylib
0x7fff872c6000 - 0x7fff872c9fff com.apple.help 1.3.1 (41) <54B79BA2-B71B-268E-8752-5C8EE00E49E4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
0x7fff872d2000 - 0x7fff87312fef com.apple.QD 3.31 (???) <0FA2713A-99BD-A96B-56AF-7DB0AB4927AD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
0x7fff87313000 - 0x7fff87391fef com.apple.audio.CoreAudio 3.2.0 (3.2) <51E4AA76-3A8A-2B78-95D2-582501421A4E> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff87392000 - 0x7fff873c3fff libGLImage.dylib ??? (???) <4F318A3E-20C1-D846-2B36-62451A3241F7> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
0x7fff87549000 - 0x7fff877cafe7 com.apple.Foundation 6.6 (751) <CCE98C5C-DFEA-6C80-A014-A5985437072E> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff877cb000 - 0x7fff87812ff7 com.apple.coreui 0.2 (112) <E64F7594-7829-575F-666A-0B16875FC644> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x7fff87813000 - 0x7fff87828fff com.apple.LangAnalysis 1.6.5 (1.6.5) <D4956302-5A2D-2AFD-C143-6287F1313196> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
0x7fff87834000 - 0x7fff87f265d7 com.apple.CoreGraphics 1.535.5 (???) <6599C41F-2D50-5E04-44E4-44FA90E022B5> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff87f27000 - 0x7fff87f2efff com.apple.OpenDirectory 10.6 (10.6) <72A65D76-7831-D31E-F1B3-9E48BF26A98B> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x7fff87f2f000 - 0x7fff87f5eff7 com.apple.quartzfilters 1.6.0 (1.6.0) <9CECB4FC-1CCF-B8A2-B935-5888B21CBEEF> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters .framework/Versions/A/QuartzFilters
0x7fff87f5f000 - 0x7fff87fcbff7 com.apple.CorePDF 1.0 (1.0) <8D76B569-F938-6337-533A-5C8A69B005DA> /System/Library/PrivateFrameworks/CorePDF.framework/Versions/A/CorePDF
0x7fff87fcc000 - 0x7fff88080fef com.apple.ColorSync 4.6.0 (4.6.0) <080BEDDE-E7A4-F88D-928B-7501574A157B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
0x7fff88081000 - 0x7fff88086fff libGIF.dylib ??? (???) <0C112067-95FE-B9BC-C70C-64A46A277F34> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x7fff88087000 - 0x7fff880a2ff7 com.apple.openscripting 1.3 (???) <DFBFBFD3-90C0-0710-300C-1A7210CB3713> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
0x7fff880ac000 - 0x7fff880caff7 libPng.dylib ??? (???) <6A0E35B8-2E33-7C64-2B53-6F47F628DE7A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
0x7fff880cb000 - 0x7fff880d0ff7 com.apple.CommonPanels 1.2.4 (91) <4D84803B-BD06-D80E-15AE-EFBE43F93605> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
0x7fff880d1000 - 0x7fff8810eff7 libFontRegistry.dylib ??? (???) <43ADB89E-036B-9D8F-CC4B-CE6B6BCC5AB5> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x7fff88482000 - 0x7fff888c5fef libLAPACK.dylib ??? (???) <0CC61C98-FF51-67B3-F3D8-C5E430C201A9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
0x7fff888c6000 - 0x7fff888eaff7 com.apple.CoreVideo 1.6.0 (43.0) <FF5F0EEF-56BE-24DD-C8FA-CB41F126E6A8> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x7fff88923000 - 0x7fff88966ff7 libRIP.A.dylib ??? (???) <8D7113D2-71A7-A205-D2D0-2DB0F37FFBB3> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x7fff88967000 - 0x7fff8898dfe7 libJPEG.dylib ??? (???) <52ACD177-F101-BEF5-E7CC-9131F8372D0A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x7fff8898e000 - 0x7fff889afff7 com.apple.opencl 11 (11) <A53E07FB-AD2F-9F3E-EC00-7DCC7DDE2F90> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x7fff889b0000 - 0x7fff889bbff7 com.apple.speech.recognition.framework 3.10.10 (3.10.10) <7E2A89FC-0F18-1CCC-472E-AD0E2BC2DD4C> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
0x7fff889bc000 - 0x7fff88a75fff libsqlite3.dylib ??? (???) <5A15E12A-AE8F-1A36-BBC7-564E7D7AD0FB> /usr/lib/libsqlite3.dylib
0x7fff88a76000 - 0x7fff88b31ff7 libFontParser.dylib ??? (???) <8926E1B0-6D1E-502A-5028-1DCC57F6D6FA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontParser.dylib
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <66102D4E-6C8B-77D0-6766-2A1788B20C6F> /usr/lib/libSystem.B.dylib
Model: MacBook4,1, BootROM MB41.00C1.B00, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.31f0
Graphics: Intel GMA X3100, GMA X3100, Built-In, 144 MB
Memory Module: global_name
AirPort: spairportwireless_card_type_airportextreme (0x14E4, 0x88), Broadcom BCM43xx 1.0 (5.10.91.19)
Bluetooth: Version 2.2.1f7, 2 service, 1 devices, 1 incoming serial ports
Network Service: 乙太網路, Ethernet, en0
Serial ATA Device: WDC WD5000BEVT-22ZAT0, 465.76 GB
Parallel ATA Device: MATSHITADVD-R UJ-857E
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8501, 0xfd400000
USB Device: Hub, 0x058f (Alcor Micro, Corp.), 0x6254, 0xfd100000
USB Device: Keyboard Hub, 0x05ac (Apple Inc.), 0x1006, 0xfd140000
USB Device: Apple Keyboard, 0x05ac (Apple Inc.), 0x0220, 0xfd142000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0229, 0x5d200000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x5d100000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8205, 0x1a100000
Message was edited by: OhOhOh*Deleted*
-
Problem with user-defined functions in XQuery String
hello
i've a problem with user-defined functions in XQuery String
details are here (the code is not Human-readable via forum's embedded editor ?? strange)
http://docs.google.com/Doc?id=ddqwddsr_21c96d9x
thanks !!See
michaels> select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?
return {$inputtype}
local:test_function("1","2")' returning content) o from dual
Error at line 5
ORA-19114: error during parsing the XQuery expression:
LPX-00801: XQuery syntax error at '{'
3 return {$inputtype}
- ^
michaels> select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?
$inputtype
local:test_function("1","2")' returning content) o from dual
O
2
1 row selected. -
Problem with ALV filter functionality when filtered for multiple values
Hi,
I am facing a problem with ALV filter functionality.
I have displayed an ALV with some columns col_A, col_B and col_C
col_A---- col_B -
col_C
1----
a -
abc
2----
b -
pqr
3----
c -
lmn
4----
d -
xyz
5----
f -
stu
From the settings link I am applying filter on column col_C and selected multiple values say 'pqr', 'xyz' and 'lmn'.
Now the ALV is showing rows only for last selection i.e . results are fetched only for value 'lmn'.
i.e. after applying the filter the ALV table looks as below:
col_A---- col_B -
col_C
3----
c -
lmn
But ideally it should be:
col_A---- col_B -
col_C
2----
b -
pqr
3----
c -
lmn
4----
d -
xyz
I could not find any OSS note related to this issue.
Please help me resolve this issue.
Thanks,
FerozHi,
I am facing a problem with ALV filter functionality.
I have displayed an ALV with some columns col_A, col_B and col_C
col_A---- col_B -
col_C
1----
a -
abc
2----
b -
pqr
3----
c -
lmn
4----
d -
xyz
5----
f -
stu
From the settings link I am applying filter on column col_C and selected multiple values say 'pqr', 'xyz' and 'lmn'.
Now the ALV is showing rows only for last selection i.e . results are fetched only for value 'lmn'.
i.e. after applying the filter the ALV table looks as below:
col_A---- col_B -
col_C
3----
c -
lmn
But ideally it should be:
col_A---- col_B -
col_C
2----
b -
pqr
3----
c -
lmn
4----
d -
xyz
I could not find any OSS note related to this issue.
Please help me resolve this issue.
Thanks,
Feroz -
I 've a problem with the print function of Itunes
helo , i 've a problem with the print function of Itunes.
When i'm trying to create a pdf file of my entire library, i've got a partial file of it.
instead of the entire library (37000 songs - 209GByte) the pdf file contains only 18000 songs (1GB - pdf file).
Is there any problem with the pdf creation in Itunes ?
best regards
Marco
i mac 20" Mac OS X (10.4.9)Please read https://forums.adobe.com/thread/1499014
-try some steps such as changing browsers and turning off your firewall
-also flush your browser cache so you are starting with a fresh browser
http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip/
http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
or
A chat session where an agent may remotely look inside your computer may help
Creative Cloud chat support (all Creative Cloud customer service issues)
http://helpx.adobe.com/x-productkb/global/service-ccm.html -
Wired problem with LEAD Analytical function
I am having wired problem with LEAD Analytical function. It works fine as a standalone query
but when used in sub-query it is not behaving as expected (explained below). I unable to troubleshoot
the issue. Please help me.
Detail explanation and the data follows:
========================= Table & Test Data =======================================
CREATE TABLE "TESTSCHED"
( "SEQ" NUMBER NOT NULL ENABLE,
"EMPL_ID" NUMBER NOT NULL ENABLE,
"SCHED_DT" DATE NOT NULL ENABLE,
"START_DT_TM" DATE NOT NULL ENABLE,
"END_DT_TM" DATE NOT NULL ENABLE,
"REC_STAT" CHAR(1) NOT NULL ENABLE,
CONSTRAINT "TESTSCHED_PK" PRIMARY KEY ("SEQ")
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (1, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (2, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (3, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (4, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:15:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (5, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:15:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (6, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (7, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (8, 39609, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 11:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (9, 118327, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (10, 120033, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('04-03-2008', 'dd-mm-yyyy'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (11, 120033, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('04-03-2008', 'dd-mm-yyyy'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (12, 120033, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (13, 120033, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (14, 126690, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 18:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 21:15:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (15, 126690, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 12:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 16:45:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (16, 126690, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 12:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 21:15:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (17, 126690, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 16:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 18:45:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (18, 126690, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 16:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 18:45:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (19, 169241, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 05:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 14:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (20, 169241, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 05:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 14:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (21, 169241, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (22, 169241, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (23, 200716, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (24, 200716, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (25, 200716, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (26, 252836, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (27, 252836, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (28, 252836, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (29, 252836, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 17:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 19:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (30, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 10:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (31, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 10:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 14:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (32, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 05:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (33, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:15:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 10:35:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (34, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:15:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 10:35:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (35, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 05:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 14:00:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (36, 260774, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 07:00:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 10:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (37, 289039, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 16:30:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:15:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (38, 289039, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 13:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 22:15:00', 'dd-mm-yyyy hh24:mi:ss'), 'I');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (39, 289039, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 13:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 16:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'A');
insert into testsched (SEQ, EMPL_ID, SCHED_DT, START_DT_TM, END_DT_TM, REC_STAT)
values (40, 289039, to_date('03-03-2008', 'dd-mm-yyyy'), to_date('03-03-2008 13:45:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('03-03-2008 16:30:00', 'dd-mm-yyyy hh24:mi:ss'), 'U');
========================= Problem Statement =======================================
Problem Statement:
Select all employees whose active schedule (rec_stat = 'A') start date & time falls
between "16:30" and "17:45".
An employee may be having multiple schedules on a day. It may be continuous or may be
having breaks in between the schedules.
If an employee schedule is continuous then the minimum schedule start date & time is
considered as the start date & time of the work.
If an employee is having breaks in the schedule, then each schedule start date & time is
considered as start date & time.
e.g:-1
1 39609 2008/03/03 2008/03/03 07:00:00 2008/03/03 11:00:00 A
2 39609 2008/03/03 2008/03/03 11:00:00 2008/03/03 11:30:00 A
In above case, the employee schedule is continuous. The start date & time is 2008/03/03 07:00:00
e.g:-2
19 169241 2008/03/03 2008/03/03 05:30:00 2008/03/03 14:00:00 A
21 169241 2008/03/03 2008/03/03 17:30:00 2008/03/03 22:00:00 A
In above case, the employee is having a break in between. Then both records
start date & time (i.e. 2008/03/03 05:30:00, 2008/03/03 05:30:00 ) is considered
as start date & time.
e.g:-3
30 260774 2008/03/03 2008/03/03 07:00:00 2008/03/03 10:30:00 A
31 260774 2008/03/03 2008/03/03 10:30:00 2008/03/03 14:00:00 A
32 260774 2008/03/03 2008/03/03 05:30:00 2008/03/03 07:00:00 A
In above case, the employee schedule is continuous. The start date & time is 2008/03/03 05:30:00
========================= Query to test Individual Employees =======================================
Query-1: Test query to see the CASE and LEAD function works fine. If "CAL = 0" means that all
schedules are continuous and the employee needs to ignored.
SELECT fw.*,
CASE WHEN LEAD(FW.END_DT_TM, 1)
OVER(ORDER BY FW.START_DT_TM DESC ) IS NULL AND
fw.start_dt_tm BETWEEN
TO_DATE('03/03/2008 16:30:00','mm/dd/yyyy hh24:mi:ss') AND
TO_DATE('03/03/2008 17:45:00','mm/dd/yyyy hh24:mi:ss')
THEN Fw.seq
WHEN LEAD(FW.END_DT_TM, 1)
OVER(ORDER BY FW.START_DT_TM DESC) != FW.START_DT_TM AND
fw.start_dt_tm BETWEEN
TO_DATE('03/03/2008 16:30:00','mm/dd/yyyy hh24:mi:ss') AND
TO_DATE('03/03/2008 17:45:00','mm/dd/yyyy hh24:mi:ss')
THEN Fw.seq
ELSE 0
END AS "CAL"
FROM TESTSCHED fw
WHERE fw.empl_id = 289039
and fw.rec_stat = 'A'
Query Results
SEQ EMPL_ID SCHED_DT START_DT_TM END_DT_TM REC_STAT CAL
37 289039 2008/03/03 2008/03/03 16:30:00 2008/03/03 22:15:00 A 0
39 289039 2008/03/03 2008/03/03 13:45:00 2008/03/03 16:30:00 A 0
Since all "CAL" column is zero, the employee should be ignored.
========================= Query to be used in the application =======================================
Query-2: Actual Query executed in the application which is not working. Query-1 is used as subquery
here.
SELECT
F1.SEQ,
F1.EMPL_ID,
F1.SCHED_DT,
F1.START_DT_TM,
F1.END_DT_TM,
F1.REC_STAT
FROM TESTSCHED F1
WHERE F1.SEQ IN
(SELECT CASE
WHEN LEAD(FW.END_DT_TM, 1)
OVER(ORDER BY FW.START_DT_TM DESC) IS NULL AND
FW.START_DT_TM BETWEEN
TO_DATE('03/03/2008 16:30:00', 'mm/dd/yyyy hh24:mi:ss') AND
TO_DATE('03/03/2008 17:45:00', 'mm/dd/yyyy hh24:mi:ss') THEN FW.SEQ
WHEN LEAD(FW.END_DT_TM, 1)
OVER(ORDER BY FW.START_DT_TM DESC) != FW.START_DT_TM AND
FW.START_DT_TM BETWEEN
TO_DATE('03/03/2008 16:30:00', 'mm/dd/yyyy hh24:mi:ss') AND
TO_DATE('03/03/2008 17:45:00', 'mm/dd/yyyy hh24:mi:ss') THEN FW.SEQ
ELSE 0
END
FROM TESTSCHED FW
WHERE FW.EMPL_ID = F1.EMPL_ID
AND FW.REC_STAT = 'A')
Query-2 Results
SEQ EMPL_ID SCHED_DT START_DT_TM END_DT_TM REC_STAT
9 118327 2008/03/03 2008/03/03 17:30:00 2008/03/03 22:00:00 A
12 120033 2008/03/03 2008/03/03 17:30:00 2008/03/03 19:30:00 A
17 126690 2008/03/03 2008/03/03 16:45:00 2008/03/03 18:45:00 A
21 169241 2008/03/03 2008/03/03 17:30:00 2008/03/03 22:00:00 A
24 200716 2008/03/03 2008/03/03 17:30:00 2008/03/03 22:00:00 A
28 252836 2008/03/03 2008/03/03 17:30:00 2008/03/03 19:30:00 A
37 289039 2008/03/03 2008/03/03 16:30:00 2008/03/03 22:15:00 A
Problem with Query-2 Results:
Employee IDs 126690 & 289039 should not appear in the List.
Reason: Employee 126690: schedule start date & time is 2008/03/03 12:45:00 and falls outside
"16:30" and "17:45"
14 126690 2008/03/03 2008/03/03 18:45:00 2008/03/03 21:15:00 A
17 126690 2008/03/03 2008/03/03 16:45:00 2008/03/03 18:45:00 A
15 126690 2008/03/03 2008/03/03 12:45:00 2008/03/03 16:45:00 A
Reason: Employee 289039: schedule start date & time is 2008/03/03 13:45:00 and falls outside
37 289039 2008/03/03 2008/03/03 16:30:00 2008/03/03 22:15:00 A
39 289039 2008/03/03 2008/03/03 13:45:00 2008/03/03 16:30:00 AYour LEAD function is order by fw.start_dt_tm, in your first sql, the where clause limited the records return to REC_STAT = A and EMPL_ID = 289039.
In your 2nd query, there is no where clause, so to the LEAD function, the next record after seq 37 is seq 38 which has an end date of 2003-03-03 10:15 pm, not equal to the start time of record seq 37.
Message was edited by:
user477455 -
Error encountered with VPD Policy in place
Local Platform: Windows XP
SQL DEV Version: 1.0.0.15.57
Host: Solaris Oracle 10.2.0.2.0
The problem I am incurring is related to using a VPD Policy and trying to update data via the table editor. I have included my function, the add policy statements and everything needed to duplicate this on the EMP table.
I am able to update the tables with the VPD policy in place using both SQLPLUS and the pl/sql editor region within SQL Developer..
The only thing that would need changed is before the function is compiled the user that you will be using to login to the database needs to be set within the function.
create or replace function
vpd_test_function
-- Function must have the following parameters
(schema in varchar2, tab in varchar2)
-- Function will return a string that is used as a WHERE clause
return varchar2
as
v_user varchar2(100);
out_string varchar2(4000) default null;
begin
-- get session user
v_user := UPPER(nvl(v('APP_USER'),USER));
-- create where clause when user is authorized to see parts of the table
if (v_user = 'DB_USER') then
out_string := out_string || '(nvl(deptno,0) <>10 and nvl(deptno,0) <>30)';
end if;
return out_string;
end;
begin
DBMS_RLS.add_policy
(object_schema => 'DB_USER',
object_name => 'EMP',
policy_name => 'VPD_TEST_POLICY',
function_schema => 'DB_USER',
policy_function => 'vpd_TEST_FUNCTION',
statement_types => 'SELECT,INSERT,UPDATE,DELETE');
end;
SELECT * FROM USER_POLICIES;
OBJECT_NAME POLICY_GROUP POLICY_NAME PF_OWNER PACKAGE FUNCTION SEL INS UPD DEL IDX CHK_OPTION ENABLE STATIC_POLICY POLICY_TYPE LONG_PREDICATE
EMP SYS_DEFAULT VPD_TEST_POLICY DB_USER VPD_TEST_FUNCTION YES YES YES YES NO NO YES NO DYNAMIC NO
1 rows selected
Change empno 7788 salary from 3000 to 85 results by clicking on a table and editing the value and clicking commit
UPDATE "DB_USER"."EMP" SET SAL = "85" WHERE ROWID = 'AAAXLmAAGAAAAylAAF' AND ORA_ROWSCN = '7788'
One error saving changes to table "DB_USER"."EMP":
Row 3: ORA-00904: "ORA_ROWSCN": invalid identifier
When run as a script or execute statement in SQL Developer (it works):
UPDATE EMP SET SAL = 85 WHERE EMPNO = 7788;
1 rows updated
Change policy by first dropping and then recreating, selecting to only apply the policy to select statements rather than INS,DEL,SEL,UPD:
BEGIN
DBMS_RLS.DROP_POLICY (
object_schema => 'DB_USER',
object_name => 'EMP',
policy_name => 'VPD_TEST_POLICY');
end;
begin
DBMS_RLS.add_policy
(object_schema => 'DB_USER',
object_name => 'EMP',
policy_name => 'VPD_TEST_POLICY',
function_schema => 'DB_USER',
policy_function => 'vpd_TEST_FUNCTION',
statement_types => 'SELECT');
end;
SELECT * FROM USER_POLICIES;
OBJECT_NAME POLICY_GROUP POLICY_NAME PF_OWNER PACKAGE FUNCTION SEL INS UPD DEL IDX CHK_OPTION ENABLE STATIC_POLICY POLICY_TYPE LONG_PREDICATE
EMP SYS_DEFAULT VPD_TEST_POLICY DB_USER VPD_TEST_FUNCTION YES NO NO NO NO NO YES NO DYNAMIC NO
1 rows selected
Change empno 7788 salary from 3000 to 85 results by clicking on a table and editing the value and clicking commit
One error saving changes to table "DB_USER"."EMP":
Row 3: Data updated by another user, cannot update row.
The following popup is displayed as well....
But once again when run as a script or execute statement in SQL Developer (it works):
UPDATE EMP SET SAL = 85 WHERE EMPNO = 7788;
1 rows updated
The last thing I would like to add is that if I drop the policy and I edit the table it works just fine ..
UPDATE "DB_USER"."EMP" SET SAL = "85" WHERE ROWID = 'AAAXLmAAGAAAAylAAF' AND ORA_ROWSCN = '57937995'
Commit Successful
The only twist is that if you notice when I have the VPD policy in place SQL Developer is aying that the ORA_ROWSCN is equal to EMPNO/the primary key and not the try ORA_ROWSCN...
Any ideas, I can file a TAR as well if you would like me to?
Thanks
JustinI first identified the problem setting up VPD for a DB user, I granted them update privileges and I wanted to ensure everything was working and that is how I found it. So yes I logged into the DB as the "other user" and then went to "Other Users" and went to the table that was owned by another schema with a VPD policy when I first encounter the error.
It was when I setup the test case to post here on OTN that I discovered the error ALSO exists if I own the table as well so for me in my test cases it did not matter who the original owner of the table was. The only thing that mattered was whether or not a VPD policy was enabled on a table. -
Dear Experts,
I was going through the features of VPD. I had created on to test but after implementing the function in the db when i am executing the below statement it is giving me a error
select* from emp;
Error
SQL Error: ORA-28112: failed to execute policy function
28112. 00000 - "failed to execute policy function"
*Cause: The policy function has one or more error during execution.
*Action: Check the trace file and correct the errors.
The trace file is showing error like this
*** 2013-03-03 21:29:40.864
Policy function execution error:
Logon user : SCOTT
Table/View : SCOTT.EMP
Policy name : VPD_NO_WARD
Policy function: SCOTT.NO_WARD
ORA-06550: line 1, column 15:
PLS-00306: wrong number or types of arguments in call to 'NO_WARD'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
*** 2013-03-03 21:29:40.864
Policy function execution error:
Logon user : SCOTT
Table/View : SCOTT.EMP
Policy name : VPD_NO_WARD
Policy function: SCOTT.NO_WARD
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
which i am unable to understand.
Policy Function
create or replace
FUNCTION NO_WARD RETURN VARCHAR2 IS
v_ret VARCHAR2(200);
BEGIN
v_ret := ' EMPNO = 7521 ';
RETURN v_ret;
END;
Addition of the policy in DB
BEGIN
DBMS_RLS.ADD_POLICY (
object_schema => 'SCOTT',
object_name => 'EMP',
policy_name => 'VPD_NO_WARD',
function_schema => 'SCOTT',
policy_function => 'NO_WARD',
statement_types => 'SELECT, INSERT, UPDATE, DELETE'
END;
Coiuld you please help me.
Regards
RajatHi, Rajat,
As Solomon pointed out, the function has to have 2 VARCHAR2 IN-arguments. You don't have to call them object_schema and object_name, you can give them any names you want to. Also, you don't have to actually use those arguments anywhere in the function. (In fact, you probably won't use them in most cases.) But they have to be there. Internal Oracle procedures are going to call your function with 2 VARCHAR2 arguements, so your function has to accept 2 VARCHAR2 arguments. -
VPD-Policy function, dependent on CURRENT_SQL
Hello ALL,
i must implement VPD into a medium size data warehouse database, the customer is using 10gR2.
There are some detail tables from which it should be allowed for certain users to retrieve aggregated data, but not to retrieve the details itself.
The background is that everybody in the organization should be able to see the aggregated data for the whole organization, but should have access to the details only for the own organizational unit and units below.
The aggregations are made on the fly. A simple example with the Scott.EMP table would look like this:
- SELECT salary FROM emp -- should be blocked
- SELECt Avg(salary) FROM emp -- shold return the average
I told the customer that this is not possible with VPD - unfortunately they found the SYS_CONTEXT('USERENV''CURRENT_SQL') function and are now asking me to create the policy, based on the current SQL statement... :-(
I consider this as being extremely RISKY, to do so i have to parse the SQL statement to ensure that the aggregation function is used for the protected column, that is not in a comment, and so on...
My questions:
1. Is there another way to achieve such a behavior of a policy function?
2. If not, is there more information available about the current SQL than just the statement as a string? (Access to the builtin SQL parser's tree...)
3. Would you agree that making a policy function based on the SQL statement is a risky thing?
4. Has anybody else ever done this before?
Thank you very much in advance for all answers and your help.
Best regards from Houston,TX
Frank/2
Edited by: fjuedes on Mar 18, 2010 3:41 PMfjuedes wrote:
Hello ALL,
i must implement VPD into a medium size data warehouse database, the customer is using 10gR2.
There are some detail tables from which it should be allowed for certain users to retrieve aggregated data, but not to retrieve the details itself.
The background is that everybody in the organization should be able to see the aggregated data for the whole organization, but should have access to the details only for the own organizational unit and units below.
The aggregations are made on the fly. A simple example with the Scott.EMP table would look like this:
- SELECT salary FROM emp -- should be blocked
- SELECt Avg(salary) FROM emp -- shold return the average
I told the customer that this is not possible with VPD - unfortunately they found the SYS_CONTEXT('USERENV''CURRENT_SQL') function and are now asking me to create the policy, based on the current SQL statement... :-(
I consider this as being extremely RISKY, to do so i have to parse the SQL statement to ensure that the aggregation function is used for the protected column, that is not in a comment, and so on...
My questions:
1. Is there another way to achieve such a behavior of a policy function?
2. If not, is there more information available about the current SQL than just the statement as a string? (Access to the builtin SQL parser's tree...)
3. Would you agree that making a policy function based on the SQL statement is a risky thing?
4. Has anybody else ever done this before?
Thank you very much in advance for all answers and your help.
Best regards from Houston,TX
Frank/2
Edited by: fjuedes on Mar 18, 2010 3:41 PMThis sounds very much like something a colleague of mine did at a sister organization. I don't have the details (I've asked him to send me the specs as I would like to implement the same thing) but it did involve creating and populating some additional tables to define who had access to which departments, and use info from that table to help build the VPD functions. Another key, though, is that he/we do NOT have the requirement to let people see enterprise-wide aggregation. If user Dilbert is defined as having access only to members of departments 10, 15, and 20, then any aggregates he runs will only include those departments. -
Problem with x:transform function : translation with XSLT
I've got a problem with this code :
This is the XML file :
<%@taglib prefix="x" uri="http://java.sun.com/jstl/xml"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<c:import var="xslDoc" url="test.xsl"/>
<x:transform xslt ="${xslDoc}">
<students>
<student id="1">
<name>
<first>John</first>
<last>Smith</last>
<middle>T</middle>
</name>
<grade>
<points>72</points>
<letter>C</letter>
</grade>
</student>
</students>
</x:transform>This is the XSLT :
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="students">
<html>
<head>
<title>XSLT Transform</title>
</head>
<body>
<table border="1">
<tr><th>First</th><th>Last</th>
<th>Points</th><th>Letter</th></tr>
<xsl:apply-templates/>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="student">
<tr>
<td><xsl:value-of select="name/first"/></td>
<td><xsl:value-of select="name/last"/></td>
<td><xsl:value-of select="grade/points"/></td>
<td><xsl:value-of select="grade/letter"/></td>
</tr>
</xsl:template>
</xsl:stylesheet>I use NetBeans 3.5.1 for compiling and testing, and on my machine all works fine.
But when i upload the code on the server i''ve this type of error :
HTTP Status 500 - Internal Server Error
exception
org.apache.jasper.JasperException: access denied (java.util.PropertyPermission org.xml.sax.driver read)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
at java.lang.Thread.run(Thread.java:536)
root cause
java.security.AccessControlException: access denied (java.util.PropertyPermission org.xml.sax.driver read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291)
at java.lang.System.getProperty(System.java:572)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:81)
at org.apache.taglibs.standard.tag.common.xml.TransformSupport.getSource(TransformSupport.java:280)
at org.apache.taglibs.standard.tag.common.xml.TransformSupport.getSource(TransformSupport.java:276)
at org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(TransformSupport.java:159)
at org.apache.taglibs.standard.tag.el.xml.TransformTag.doStartTag(TransformTag.java:104)
at org.apache.jsp.test_jsp._jspService(test_jsp.java:78)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
at java.lang.Thread.run(Thread.java:536)
org.apache.jasper.JasperException: access denied (java.util.PropertyPermission org.xml.sax.driver read)It seems a permission problem, but my experience with JSP is very poor , i've asked to control to my host
the policy of the folders but they didn't respond me yet.
Any suggestion ?
Thx for reading, and sorry for my rusty english :-PThanks.
I've already tried to insert the whole path. You mean this,right ?
<c:import var="xslDoc" url="http://www.domain.net/examples/test.xsl"/>I've searched a lot with google but i haven't find anything.
I've not searched a lot into the jakarta site, I'll do tomorrow, now it's
a bit late (1:45 AM in Italy :-0 ), so i think that i'll go to sleep.
Thanks for responding so soon!
I'll wait for your new infos.
Thanks again.
read you tomorrow. -
Problem with the round function using Date
Hi,
I have a problem with round function for Date. The input is the four digit year which was picked out from say SYSDATE.
In these scenarios the original value should be rounded up and should get the output as shown under rounded column.
Scenario1
Original Rounded
2020 ---> 2020
2021 ---> 2020
2022 ---> 2020
2023 ---> 2020
2024 ---> 2020
2025 ---> 2025
2026 ---> 2025
Scenario2
Original Rounded
2020 ---> 2020
2021 ---> 2025
2022 ---> 2025
2023 ---> 2025
2024 ---> 2025
2025 ---> 2030
2026 ---> 2030
Scenario3
Original Rounded
2020 ---> 2020
2021 ---> 2020
2022 ---> 2020
2023 ---> 2025
2024 ---> 2025
2025 ---> 2025
2026 ---> 2025
Can anyone help with this....Urgent Please
Thanx for your time1.
SQL> select n,n-mod(n,5) rnd from test;
N RND
2020 2020
2021 2020
2022 2020
2023 2020
2024 2020
2025 2025
2026 2025
2.
SQL> select n,n+(case when mod(n,10) = 0 then 0
2 when mod(n,10) < 5 then 5-mod(n,5)
3 else 10-mod(n,10)
4 end) rnd
5 from test;
N RND
2020 2020
2021 2025
2022 2025
2023 2025
2024 2025
2025 2030
2026 2030
7 rows selected.
3.
SQL> select n,n+(case when mod(n,10) < 3 then mod(n,10)*-1
2 when mod(n,10) < 8 then 5-mod(n,10)
3 else 10-mod(n,10)
4 end) rnd
5 from test;
N RND
2020 2020
2021 2020
2022 2020
2023 2025
2024 2025
2025 2025
2026 2025
2027 2025
2028 2030
2029 2030
2030 2030
11 rows selected. -
Problem with Assigning Policy button in Outlook 2010 and Exchange 2010
First of all, I'm posting here because I'm not sure how to post in the previous version of Exchange forums.
Secondly, I'm re-posting this from the Outlook forums as I'm not getting any responses there despite of views.
Hi,
I'm having an issue in Outlook 2010 where I can't assign personal policies to folders. I have setup personal tags and added the mailbox to the right policy. I have also ran Start-MangedFolderAssistant in Exchange 2010 Shell against the mailboxes.
When I go into OWA, everything shows up perfectly, I can right-click and assign policies at will, but when I open Outlook 2010 then the Assign Policy button never appears. I force added it to the ribbon and I can see from there that the button stays grayed
out irregardless of where I click in the folder structure. I have even assigned the mailbox user Owner rights to all the folders to see if it will make a difference.
If anyone can help me solve this problem I will very grateful, I'm pulling my hair out here and I'm certain I could just be missing something very obvious somewhere,
It might be worth mentioning that the company has been using .prf files to configure Outlook thus far, I'm
looking to eliminate that. I'm not sure if that will have any effect on my current problem.
Thanks for your time.
NicoThanks for the reply Max, that's a pretty good link.
Like is I said though, I have the policies all set up in the Exchange configuration side of things, when I use OWA all the options for applying tags appear. It's just in Outlook 2010 Standard that the Assign Policy button stays grayed out.
Thanks.
EDIT:
This has been solved, looks like version problem with Outlook.
http://office.microsoft.com/en-us/outlook-help/license-requirements-for-personal-archive-and-retention-policies-HA102576659.aspx -
Problem with time series functions against Essbase
Hello all,
I'm having problems with displaying correct results when using AGO function in OBIEE. I'm using Essbase 9.3.1 and OBIEE 10.1.3.4.1. Logical column named MAGO1 is created in repository like this: IFNULL( AGO("Measure01", Time.Month, 1), 0). In Answers when I use columns Measure01,MAGO1,Time.Month with filter just on Time.Month column results are OK. When I put another filter, for example Dim1.Gen2,Dim1, MAGO1 returns zero as a result. But when I put Dim1.Gen2,Dim1 also as a column and as a filter results are OK. I don't want to have Dim1.Gen2,Dim1 as a column but just in a filter. Also hiding column is not an option. I want to have grouped results and not multiple rows for one month if I remove filter Dim1.Gen2,Dim1. Filter is selected on prompt in dashboard and can be some value from Dim1.Gen2,Dim1 or All Choices. Reason for this is that I'm using this answers report as a data source for BI Publisher so additional formatting on answers report isn't helpful.
I am suspecting that something is wrong with hierarchy it time dimension or other dimensions. Or maybe MDX is not generated right ? If you need more details regarding my repository or configuration please feel free to ask. Any help is greatly appreciated.
Thanks,
D.I am using BI Publisher and Answers report as data source. Making changes like hiding column or displaying results as pivot table won't help in this case.
Anyway I did discover something else. When I put in report logical columns with ago function they return correct results. But when I add additional logical column with todate function all logical columns with ago and todate function return zero as a result. Also this happens only when result is more than one row. If you have only one row, for example grand total level of dimension, than result is OK, but if you have more rows on a lower level than zero values appear.
Some columns that are used in filter do not appear as columns in report. This is the main problem. If I put all columns that are filtered in report than the result is OK. But I don't want to do this because I want to have option to select values on dashboard prompt on different levels.
Hope this narrows the problem.
Thanks,
D. -
Problems with the CrossTable Function "Sort"
Hello,
I have a Problem with the "nice" crosstabfunction of the DesignStudio.
When I create from a datasource the crosstab and enable the function for sorting it is only possible to sort the first column.
The other columns get the sign into the Header for the sort function, too. But if I click on it, it won't work and sort nothing.
I'm sure with the old Version of SAP Design-Studio (1.2) it has worked!
Now we are using 1.4 and u can only sort the first column?????
Do I anything wrong? I set only the value for the crosstab (Sorting enabled) on true.
Thank you for help.
Greets,
AndréHello again,
The Application Looks like:
Settings:
Structure:
I don't have any further JS Coding for this case implemented. I think that this would be not necessary because of the Settings of the crosstab or?
Greets,
André
Maybe you are looking for
-
How can I put my old Macbook Pro early 2010 audio on my new Samsung HDTV?
I bought a Macbook Pro in March 2010 that does not support HDMI audio. So, when I am plugging my Macbook Pro on my new Samsung Series 5 5500 HDTV with a HDMI cable that supports audio, I am getting the image, but no audio. When I go to System Prefere
-
Using reflection to load dynamic commands
Hi, I am writing an irc bot and I want commands to be automatically updated even while the bot is running. Here's my current situation: Command interface: public interface Command { public int getLevel(); public String manual(); public vo
-
Strange "Unsupported Video Format" Behavior
Hi all; I just bought my TV 2 days ago and made the set up as the manual said. It is connected to my Philips 1080p HDTV (42PFL7432D/37) via HDMI plus there's a PlayStation3 also connected via HDMI. There are no HDMI switchers as the TV has 3 HDMI po
-
Hi, I want to invoke the Pagesetup dialogbox with default A4 paper.Furher, is there any method that will help me retrieve the left,top,right and bottom margins that a user has selected from he page setup dialog box.... Plaese help me ASAP Thnx
-
CAML query in Workflow inside sharepoint hosted app
Hi, I am building a sharepoint hosted app for sharepoint online.The app includes a list workflow.One of the activity in the workflow is to query another list within the app web, to get count of items where a condition is met.Can anyone please guide m