Problem with a calculated member browsing cube with a specific user role

Good evening to all of you .
I am not a newbie about SSAS nor an expert developer.
I use SSAS 2008 R2 Standard Edition.
I try to simplify my problem with a calculated measure.
I have a CUBE with :
[Measures].[Sales Amount]
Dimension STORES - Dimension CUSTOMERS - Dimension DATE
I have also 2 user roles :
Direction Role can see all members of all dimensions.
Customize Role  has a restriction about Dimension STORES ..it can see only a STORE of all (Suppose to have 100 stores).
User that has a Customize Role, when browse cube in Excel , want to see for a specific CUSTOMER , Sales Amount of his own STORE but also the total Sales Amount of ALL STORES for that Customer...
Is it possibile to do that ???
Can you give any suggestion also using Adventure Works Cube ???
I was able to create a calculated measure like that below.
It does not work...It give the same result of Sales Amount
It seems that Customize Role win Always about every kind of calculate measure i need to create..
i.e  SUM([STORES].[STORES].[ALL STORES],[Measures].[Sales Amount])
Thanks in advance.

Hi maretix,
According to your description, you have a customize role which limit the user can only see data about his own STORE. Now this user wants to see the total Sales Amount for his own STORES only. Right?
In Analysis Services, when granting custom access to dimension data, it has a option "Enable Visual Total" in Advanced dimension security. By default, the
VisualTotals property is disabled (set to False). This default setting maximizes performance because Analysis Services can quickly calculate the total of all cell values, instead of having to spend time selecting which
cells values to calculate. So you always get same result which is the total for all STORES.
In this scenario, please select this option. When you enable the VisualTotals property, your custom role can only view aggregated totals for dimension members to which the role has permission.
Reference:
Grant custom access to dimension data (Analysis Services)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou
TechNet Community Support

Similar Messages

  • I have a problem with ALV Grid User Command?

    Hi Experts,
    I have a problem with ALV GRID User Command.
    I am calling TCODE IW33 (Order Display) from the ALV output at first time by selecting an order. But, User command is calling IW33 Initial screen with blank value of order. Even I checked in debugging the value what I selected is passing properly, but once that screen (IW33 Initial) displays, value doesn't appear. Then, Manually, I  created another session and gone to TCODE IW33 and displayed an order. After that I came out from that order. Then again run my ALV program and selected another order, now order is displaying, but not what I selected current order instead of displaying previous order what I just displayed manually. If I selected any other order, system will display the same order what I dislayed manually.
    Here is my code.
    FORM user_command_alv  USING u_ucomm TYPE sy-ucomm
                           us_self_field TYPE slis_selfield.
    CASE u_ucomm.
    WHEN '&IC1'.
    READ TABLE it_final INDEX us_self_field-tabindex INTO wa_final.
            WHEN 'ORDER'.
              IF NOT wa_final-order IS INITIAL.
                SET PARAMETER ID 'COK' FIELD wa_final-order.
                CALL TRANSACTION 'IW33' AND SKIP FIRST SCREEN.
              ENDIF.
    endform.
    PARAMETER ID 'COK'  also the standard one.
    Could you please help me out, Where I did wrong?
    If I select any order, that order only should display.
    Thanks in advance.
    Regards,
    Sarayu.
    Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 2:33 PM

    hi,
    Please check it once the Paramater ID is 'ANR' for IW33 order number.
    Hope this may help.
    Regards,
    Sravanthi

  • Problem with creating new user in portal = portlet is not visible

    Hi,
    I've got a problem with creating new users in portal. In the Administer tab of the builder is the user portlet not visible.
    How can I make this portlet visible?
    Please Help
    thank you...
    Gilbert

    Hi..my problem slightly similar.
    I created one new user, and didn't select anything from "Public Groups Assignment" and "Privilege Assignment" for him.
    I expect the user will be a public user.
    But, when he try to logged in the portal,
    He cannot see all the PORTLETS related to database values..
    All he can see just LINKS -that all in my portal right now beside the report from database that the user cannot see :)
    So, what did i do wrong?
    Plz Advise, and thanks.

  • Problem with non iPhone users receiving my text sent pictures. Can I make them smaller files?

    Problem with non iPhone users receiving my text sent pictures.  Can I make them smaller files? I know that is possible for email sent pics.

    My bad,  It was a Verizon problem.  When they upgraded my phone they were supposed to remove all blocks on messaging . Found out they did not do this.  All messaging now works.  Thanks for listening.

  • Problem with language specific characters on e-mail sending

    Hi,
    Problem with language specific characters on e-mail sending.
    How can it be fixed?
    Thanks.

    Hi,
    try to work on the charecter code set UTF-8 or UTF-16. You can define this in html.
    Or encode the charecter using java script.
    Hope this may help you.
    Deepak!!!

  • Problem with syncing AD users (LDAP)

    I am running into a 'problem' with syncing users from ad. I'm pretty sure i'm doing something wrong but i can't figure it out.
    When i sync manually the 'pop up' shows that it's synchronizing and after a few seconds it tells me "OK". But there are 0 users imported.
    http://www.dualdude.net/bm/run_ldap_sync.jpg
    The connection and credentials to access the AD work since they are also used for Zarafa and Samba AD synchronization. The AD is running on an Windows Server 2008 Enterprise x64 machine.
    This is a screenshot of the configuration used:
    http://www.dualdude.net/bm/ldap_config.jpg
    Any thoughts on what i'm doing wrong?

    I got the same problem when using groupfilter:
    User Filter: (&(|(objectClass=Person)(objectClass=orgPerson)(ob jectClass=inetOrgPerson))(groupMembership=cn=users ,ou=org,o=firma))
    Group Filter: (&(|(objectClass=group)(objectClass=groupOfNames)( objectClass=groupOfUniqueNames))(|(cn=G4)(cn=TC*)) )
    Do you use groups for the allowed users in teaming?
    >>> lnijhuis<[email protected]> 14.01.2010 16:36 >>>
    Thank you for your reply. I guess the comma's should be right. When i
    change the first "ou=" in the Base DN to "cn=" the error message states
    that the best it can do is reach
    ou=OrganizationalUnit,dn=domain,dn=local. So i guess that shouldn't be
    the problem?
    By default there is a container "Users" in AD, which we don't use. The
    person that configured the server created an OU on the same level as the
    default container. THe name of this OU has a space in the name, like
    "Organi Zation". This OU contains another OU called Users. This is where
    the users are located. When i run the ldap query i don't get any errors
    about the base DN. It does when i change it.
    The full filter is:
    (|(objectClass=Person)(objectClass=orgPerson)(obje ctClass=inetOrgPerson))
    lnijhuis
    lnijhuis's Profile: http://forums.novell.com/member.php?userid=63756
    View this thread: http://forums.novell.com/showthread.php?t=397993

  • Problem with getting specific canvas's to display within a viewstack based on button's clicked within a tilelist

    In a new application I'm creating I've managed to set it up so that a user can add up to 5 'user profile buttons' by clicking an 'add item' button and remove each one by clicking an 'remove item' when they are selected.
    That part works fine, however once each button is clicked it should bring up a specific canvas view within the viewstack relevant to that particular button i.e. when a user clicks the 'New Profile 1' button the 'New Profile 1' Canvas view should then be displayed in the viewstack, when they click 'New Profile 2' it should display 'New Profile 2' canvas in the viewstack etc but I am having trouble linking each specific button to 1 specific Viewstack canvas.
    The problem is if, for example, I click the 'New Profile 2' button the 'New Profile 2' canvas IS displayed in the viewstack however if I then delete the selected 'New Profile 2' button the 'New Profile 3' button slides left into it's place but now clicking on New Profile 3 brings up the new profile 2 canvas whereas it should actually bring up the new profile 3 canvas at all times.
    Eventually these canvas's will be personal areas for specific users so it is important that each button in the tilelist links to that specific user but it is also important that a user can add/delete each button at all times.
    I've already had the first part of this problem (which was linking the tilelist to the viewstack) more or less answered but I clicked Correct answer rather than helpful answer in my previous thread. My mistake, sorry. Is ther a better way to do this application. Heres my code so far:-
    <?xml version="1.0" encoding="utf-8"?>
     <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:components="components.*" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#545351, #E3DFDF]">
    <mx:Script>
    <![CDATA[
    import mx.managers.*; 
    private var _dragManager:DragManager; 
    private var _historyManager:HistoryManager; 
    private var _popupManager:PopUpManager; 
    import flash.net.navigateToURL; 
    import flash.net.URLRequest; 
    import flash.net.URLVariables;  
    import mx.events.ListEvent;  
    import mx.controls.Button; 
    import mx.collections.*; 
    import mx.controls.Alert;]]>
    </mx:Script>
    <mx:Script>
    <![CDATA[
    import mx.effects.easing.Elastic; 
    import mx.collections.ArrayCollection; 
    Bindable] 
    private var myDP:ArrayCollection = new ArrayCollection();
    private var dpArr:Array = [{label:"New Profile 1", data:View1},{label:"New Profile 2", data:View2}, {label:"New Profile 3", data:View3},{label:"New Profile 4", data:View4}, {label:"New Profile 5", data:View5}]; 
    private var addedIndices:ArrayCollection = new ArrayCollection(); 
    private function deleteItem():void { 
    if(myDP.length > 0){ 
    for each(var i:int in tlist0.selectedIndices)myDP.removeItemAt(i);
    private function addItem():void { 
    if(myDP.length < dpArr.length && addedIndices.length < dpArr.length){ 
    for(var a:uint = 0; a < dpArr.length; a++){ 
    if(!addedIndices.contains(a) && !myDP.contains(dpArr[a])){myDP.addItemAt(dpArr[a],myDP.length);
    break;}
    private function tileList_itemClick(event:ListEvent):void { 
    private function showAlert(event:ListEvent):void{ Alert.show(
    "You clicked button #"+event.currentTarget.selectedItem.data);}
    ]]>
    </mx:Script>
    <mx:Sequence id="itemsChangeEffect1">
    <mx:Blur blurYTo="12" blurXTo="12" duration="300" perElementOffset="150" filter="removeItem"/>
    <mx:Parallel>
    <mx:Move duration="750" easingFunction="{Elastic.easeOut}" perElementOffset="20"/>
    <mx:RemoveItemAction startDelay="400" filter="removeItem"/>
    <mx:AddItemAction startDelay="400" filter="addItem"/>
    <mx:Blur startDelay="410" blurXFrom="18" blurYFrom="18" blurXTo="0" blurYTo="0" duration="300" filter="addItem"/>
    </mx:Parallel>
    </mx:Sequence>
    <mx:Canvas width="1168" height="716" backgroundColor="#0219FB" horizontalCenter="0" verticalCenter="0" borderColor="#000000" borderStyle="solid" borderThickness="1" cornerRadius="20" backgroundAlpha="0.8">
    <mx:Canvas id="UserArea" left="10" x="0" y="49" width="670" height="594" backgroundColor="#000000" cornerRadius="20" borderStyle="solid">
    <mx:TileList id="tlist0" itemClick="myViewStack.selectedIndex=tlist0.selectedIndex" itemRenderer="mx.controls.Button" top="10" left="10" right="10" color="#FFFFFF" height="50" width="100%" fontSize="12" fontStyle="bold" columnCount="5" rowCount="2" direction="horizontal" dataProvider="{myDP}" itemsChangeEffect="{itemsChangeEffect1}" backgroundColor="#000000" fontWeight="bold" borderStyle="none"/>
    <mx:Canvas x="63" y="129" width="200" height="200" fontSize="36" borderColor="#FFFFFF" id="Canvas1" visible="false">
    <mx:Label x="27" y="25" text="Profile 1"/>
    </mx:Canvas>
    <mx:ViewStack x="115" y="88" id="myViewStack" width="382" height="317" backgroundColor="#F90C0C">
    <mx:Canvas id="View1" label="View 1" width="100%" height="100%" backgroundColor="#0FDDE5">
    <mx:Label x="10" y="10" text="NEW PROFILE 1" fontWeight="bold" fontSize="15"/>
    </mx:Canvas>
    <mx:Canvas id="View2" label="View 2" width="100%" height="100%" backgroundColor="#A90BCB">
    <mx:Label x="10" y="10" text="NEW PROFILE 2" fontWeight="bold" fontSize="15"/>
    </mx:Canvas>
    <mx:Canvas id="View3" label="View 3" width="100%" height="100%" backgroundColor="#E6E413">
    <mx:Label x="10" y="10" text="NEW PROFILE 3" fontWeight="bold" fontSize="15"/>
    </mx:Canvas>
    <mx:Canvas id="View4" label="View 4" width="100%" height="100%" backgroundColor="#F4A40A">
    <mx:Label x="10" y="10" text="NEW PROFILE 4" fontWeight="bold" fontSize="15"/>
    </mx:Canvas>
    <mx:Canvas id="View5" label="View 5" width="100%" height="100%" backgroundColor="#0D1DFA">
    <mx:Label x="10" y="10" text="NEW PROFILE 5" fontWeight="bold" fontSize="15" color="#FFFFFF"/>
    </mx:Canvas>
    </mx:ViewStack>
    </mx:Canvas>
    <mx:Button label="Remove item" click="deleteItem();" color="0x323232" x="96" y="10"/>
    <mx:Button label="Add item" click="addItem();" color="0x323232" x="10" y="10"/>
    </mx:Canvas>
     </mx:Application>

    Hi
    Try this if it works..
    1. In MultiProvider identify those key figure from both the InfoProvider ( DSOs)
    2. In BEx create KF1 . Restrict with 0INFOPROV = DSO1 ( Billing) , hide it
    3. Create KF2 . Restrict with 0INFOPROV = Cube ( condition cube) , hide it
    3. Create a Fomula Key Figure 3 with the definition
    KF3 =  KF1 + KF2* ( KF1==0)
    If KF1 is zero, then KF1 == 0  will be true and it will return value 1.  So, basically you would get
    KF3 = 0 + KF2 *1 = KF2
    When KF1 is non-zero, expression KF1== 0 will be false and gives a value 0. Let;s say KF1 =5 , then
    KF3 = 5 + KF2 * 0 = 5
    Now show KF3 in the report
    Regards
    Anindya

  • Problems with AE CS5 user interface

    I  am having a lot of problems with  my UI freezing in AE CS5.  The  projects are generally very small, and  it seems to happen randomly.   Sometimes I will merely click on a  particular window and that  particular window will "white out" and I get  the little Windows  spinning circle.  Then when I click on another  window, it also whites  out.  Sometimes this has happened when I tried to  render something.   Sometimes it happens when I try to save a project.   There seems to be  no pattern.  I work with a variety of media, including  SD, HD and image  sequences (.png).
    When the UI freezes, it never  unfreezes.  I have to shut  down the program and open it again.
    Thanks for  any help.
    WINDOWS 7   PROFESSIONAL 64-BIT
    16 GB RAM (11 GB MADE AVAILABLE FOR AE)
    DELL   PRECISION T7400 WORKSTATION
    DUAL QUAD CORE
    NVIDIA GEFORCE   GTX 285 (NEWEST DRIVERS)
    LOTS OF HARD DRIVE SPACE
    OPENGL   TURNED OFF IN PREFERENCES
    ENABLE DISK CACHE TURNED OFF
    --Render Multiple Frames Simultanously is not enabled.
    --FOOTAGE I USE:   QT, AVI, .PNG SEQUENCES, MOSTLY 720X480, BUT SOME  HD.
    --FOOTAGE STORAGE:  ON VARIOUS SATA HARD DRIVES, BUT NOT ON THE SAME  DRIVE AS THE AE.EXE IS.
    --SYSTEM DIRVE IS A SATA  HDD DRIVE
    --background tasks running?  A FEW THINGS, MAINLY MY  ANTIVIRUS PROGRAM (BIT DEFENDER), PLUS ADOBE CS5 SERVICE MANAGER,  SOMETHING CALLED CTXFIHLP, AND SOMETHING CALLED SBSV 2010/02/19-11:02:07  (ADOBE).  THESE ARE THE ONLY THINGS RUNNING AT STARTUP.  BUT I OFTEN  HAVE PHOTOSHOP OR PREMIERE OR FIREWORKS OPEN AS WELL.  AND SOMETIMES A  BROWSER (FIREFOX) IS OPEN AS WELL.

    Sysinternals --> Process Monitor, possibly: SourceForge --> Wireshark. If the freezes are that frequent, but (seemingly) at arbitrary intervals, it may quite well be a deeper problem. most likely you are running into some generic socket and network configuration problem. I suggest you set both apps to filter their views and logs by application and just keep an eye out for anything that blimps up in red or ornage/ yellow, stating a possible problem. It may take a while to sift through all the data, as they both produce several thousand entries in only a few seconds, but this may reveal something. Also check your BIOS for SATA and PCIe configuration. bad timing on your buses could be a major pain. I'd even go so far as to open the machine and see if all poweer connectors are sitting properly and the cards are also firmly resting in their slots. While there, also run the machine with open casing for a while to exclude cooling problems 8which lead to processor throttling).
    Mylenium

  • [SOLVED] Problem with .htaccess and user dirs.

    Hi!..
    I write here because i have a problem with .htaccess files and url rewrites.
    I deployed a Cakephp[1] app in my /home/~asmerkin/public_html/books directory. This folder contains a .htaccess file with the following directives:
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^$ app/webroot/ [L]
    RewriteRule (.*) app/webroot/$1 [L]
    </IfModule>
    My server works well in user directories but it fails to rewrite urls. When i go to http://localhost/~asmerkin/books/ apache returns 404 error. If i go to apache log i find this:
    [Sat Sep 04 02:02:02 2010] [error] [client 127.0.0.1] File does not exist: /srv/http/home
    So the .htaccess is working but the url it rewrites is not correct. My httpd.conf file is this file[2]  and my httpd-userdir.conf is this one[3].
    So i'd like to know if somebody can help me with this issue. I tried everything without results.
    Thank you!
    [1]: Cakephp.org
    [2]: http://perkin.pastebin.com/g0dbbW2P
    [3]: http://perkin.pastebin.com/fprNYCRY
    Last edited by Perkin (2010-09-06 11:24:55)

    Finally i had to edit my .htaccess file adding a RewriteBase rule to it.

  • SYSDBA - problem with viewing other users package body texts on sys account

    Hi,
    SQL Dev 1.0.0.15.27 has problem with correct display of other users package body texts on sys account. All bodies have "create or replace" text instead of all pck. bodies text.
    I guest it's problem with SYSDBA role. On system account text is displayed correctly. Quest SQL Navigator 5.x has no problem with this. Any ideas ?
    Regards,
    MM

    Hi Everyone,
    Just so I can close the case on this issue, although I was successful in
    using CSS to resolve the issue, actually, the issue was not really
    resolved. There was (for me) still the problem of rollover images not
    working in IE, and if I were ever to get another good night's sleep, I
    would need to resolve it -- so I did. Recall me saying earlier about the
    sizes being brought in to the javascript code by Dreamweaver? The original
    issue with having the size of the small image in the code caused the code
    to see the larger image as small also! However, when I deleted those size
    attributes' numbers, I failed to delete the words "width" and "height"
    along with the double quotes following each. So, while the other browsers
    ignored these "blank" attributes within these double quotes, IE apparently
    didn't, reading these "blank" values as some very small value, thus
    displaying the image in the absolutely smallest size possible! Wow! When I
    removed these two blank attributes, my problem went away! Live and learn!
    So, to all who were desperately trying to assist me, please accept my
    deepest and most sincere apologies. All the while I was blaming IE, I was
    the guilty one!!! Shame on me, and thanks for the wonderful responses I
    received from the Dreamweaver forum team. I will go and stand in the corner
    for 8 hours with my dunce cap on...
    Joe Dardard

  • Problem with table called User?

    Hi!
    I get the following error message. The error is that there should be a
    space after the table name.
    com.solarmetric.kodo.runtime.FatalDataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=INSERT INTO User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX, JDOIDX,
    JDOLOCKX, LASTNAMEX, PASSWORDX, PREFERREDLANGUAGEX, STATEX, USERNAMEX,
    WANTSNEWSX) VALUES (null, '[email protected]', 'Mr.',
    'com.everwhere.idiomatica.app.security.User', 0, 0, 'Admin', '**admin**',
    0, null, 'admin', 0)]
    [PRE=INSERT INTO User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX, JDOIDX,
    JDOLOCKX, LASTNAMEX, PASSWORDX, PREFERREDLANGUAGEX, STATEX, USERNAMEX,
    WANTSNEWSX) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
    Syntax error or access violation: You have an error in your SQL syntax.
    Check the manual that corresponds to your MySQL server version for the
    right syntax to use near 'User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX,
    JDOIDX, JDOLOCKX, [code=1064;state=42000]
    Shouldn't the
    com.solarmetric.kodo.impl.jdbc.DictionaryClass:
    com.solarmetric.kodo.impl.jdbc.schema.dict.MySQLDictionary
    setting know how to write the sql statement? or is it a problem with the
    table being called user?
    Thanks,
    Nic.

    It is fully dependent on your kodo.properties file:
    See:
    http://solarmetric.com/Software/Documentation/2.5.0/docs/ref_guide_conf_kodo.html#com.solarmetric.kodo.impl.jdbc.DictionaryProperties
    On Wed, 18 Jun 2003 14:52:02 +0000, Nic Cottrell wrote:
    Hi Stephen!
    I changed the table name and everything works. As far as the InnoDB table
    type goes - why does the schematool with ant build MyIsam tables if we
    should be using InnoDB type tables?
    Nic.
    Stephen kim wrote:
    I'm not 100% sure as I personally haven't played with mysql recently,
    but I would suggest moving to a different table name as IIRC, it is
    reserved for MySQL access info. If that doesn't resolve the problem, we
    can reinvestigate the situation.
    Also, be sure to use InnoDB table type if you expect any transactional
    integrity in MySQL (see our docs)
    On Wed, 18 Jun 2003 09:54:10 +0000, Nic Cottrell wrote:
    Hi!
    I get the following error message. The error is that there should be a
    space after the table name.
    com.solarmetric.kodo.runtime.FatalDataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT
    INTO User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX, JDOIDX, JDOLOCKX,
    LASTNAMEX, PASSWORDX, PREFERREDLANGUAGEX, STATEX, USERNAMEX,
    WANTSNEWSX) VALUES (null, '[email protected]', 'Mr.',
    'com.everwhere.idiomatica.app.security.User', 0, 0, 'Admin',
    '**admin**', 0, null, 'admin', 0)]
    [PRE=INSERT INTO User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX, JDOIDX,
    JDOLOCKX, LASTNAMEX, PASSWORDX, PREFERREDLANGUAGEX, STATEX, USERNAMEX,
    WANTSNEWSX) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)] Syntax error
    or access violation: You have an error in your SQL syntax. Check the
    manual that corresponds to your MySQL server version for the right
    syntax to use near 'User(COUNTRYX, EMAILX, FIRSTNAMEX, JDOCLASSX,
    JDOIDX, JDOLOCKX, [code=1064;state=42000] -----------
    Shouldn't the
    com.solarmetric.kodo.impl.jdbc.DictionaryClass:
    com.solarmetric.kodo.impl.jdbc.schema.dict.MySQLDictionary
    setting know how to write the sql statement? or is it a problem with
    the table being called user?
    Thanks,
    Nic.
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Problem with sorting involving user defined types and reports

    Hello!
    I have a problem with sorting involving Reports and user defined objet types.
    I have created the following object types
    CREATE TYPE type_balance_compte AS OBJECT
    NUM_CPT_SEQ NUMBER(8)
    ,NUM_CPT VARCHAR2(35)
    CREATE TYPE TB_type_balance_compte IS TABLE OF type_balance_compte
    At the reports query I use:
    SELECT ...
    FROM table(cast(test_pkg.balance_comptes(:P_num_soc) as TB_type_balance_compte)) c
    The procedure balance_comptes will retrieve data from various tables into the type.
    The report is ordered by a certain string field that usually contains characters and numbers.
    I need to have numbers always before characters, meaning the data should come in this order in the report for example:
    0
    1
    A
    B
    So, before the report query, I have placed a call to DBMS_SESSION.SET_NLS( 'nls_sort', 'binary' ) to guarantee NLS_SORT in case it is originally set to FRENCH.
    The problem here is that even after this call, I have the report ordered like this
    A
    B
    0
    1
    And not the numbers before as it should be.
    To try and find out where the problem was, I have created a table to use instead of the object type described above. In this case, it worked correctly. So all I know by now is that is has something to do with the type or cast, but what exactly? Does anybody now how to solve this without using a table?
    Many thanks
    Ariadne

    I have placed a call to DBMS_SESSION.SET_NLS( 'nls_sort', 'binary' ) why not order directly then:
    SQL> select *
          from table (sys.dbms_debug_vc2coll ('A', 1, '5', 'C', 'a'))
    order by nlssort (column_value, 'NLS_SORT = binary')
    COLUMN_VALUE                                                                   
    1                                                                              
    5                                                                              
    A                                                                              
    C                                                                              
    a                                                                              
    5 rows selected.?

  • Serious problem with TSCAL per user Licensing (Event 4105 on Licenseserver)

    Hello,
    i've got a problem with Terminalservice-Licensing: We migrated our AD from W2003 to W2008. At the same time, we updated our Terminalservice-Licenseserver to W2008 (Memberserver, no DC). We are using per-user TSCAL licensing. The problem is, that for (nearly) every user that logs on to a W2008 Terminalserver, an event 4105 is generated in the eventlog of the Licenseserver, that  means that the licence server cannot update the ad user properties when he delivers the cals.
    We have discovered that the terminalserver-licenceserver group is under the security properties of the user listed but has no rights. For new created users the rights "terminalserver-licenceserver read/write" are correctly set and for those users no event 4105 is generated. The problem is, that License-reporting (usage) is only working for those newly created accounts and not for old ones. Why doesn't the terminalserver-licenceserver group have the rights to modify the Terminalserver-AD attributes for older accounts (these accounts were created when the domain-level was W2003)??? Is there a workaround or hotfix from Microsoft to correct the securitysettings ??
    Many thanks
    Ralf

    Hello Ralf,
    Thanks for your post in our forum.
    Based on my understanding on your post, you have met the following issue:
    You have migrated the Active Directory domain from Windows Server 2003 to Windows Server 2008; You have also upgraded the Terminal Server License Server from Windows Server 2003 to Windows Server 2008. After that, when the existing terminal users access the Terminal Server, an Event ID 4105 is logged to claim that the License Server fails to update the AD user’s properties.
    According to the analysis on the second paragraph of your post, I think it is a known issue caused by insufficient permissions of the migrated users created in Windows Server 2003 domain environment. As you’ve found, the permissions required are for the Terminal Services Licensing Servers
    group:
    ·          Read Terminal Server license server
    ·          Write Terminal Server license server
    To fix this issue, please give these two permissions to the existing users.
    After that, please confirm if the License Usage Report is working for the old users.
    For more information about Event ID 4105, please refer to:
    Event ID 4105 — Terminal Services Per User Client Access License Tracking and Reporting
    http://technet.microsoft.com/en-us/library/cc775179(WS.10).aspx
    Please feel free to let me know if I can provide any further assistance. Thank you for your cooperation.
    Lionel Chen
    TechNet Subscriber Support in forum
    If you have any feedback on our support, please contact [email protected]

  • Problems with second (admin) user profile

    Hi all,
    I'm having trouble with a certain user profile. I got a new MacMini with Lion (10.7), to which I imported two user profiles from a Time Machine backup of a Snow Leopard system. The first profile, which used to be the admin profile on the old Mac, works just fine. But the second profile, which used to be a "normal" user profile encounters massive problems. First thing I did was to make the second user admin as well, but that did not fix anything. I assume there is a problem with the permissions and "repair permissions" didn't do anything either.
    Here are some examples of the issues:
    First example: I cannot delete or rename folders in Mail, unless I delete or rename them in the respective ~/Library folder. This concerns folders which I imported from the Time Machine backup. There are no issues with new folders.
    Second example: I cannot start SPSS, which runs just fine on the other profile. It starts and then just closes right away without any error message or anything. I found a workaround which is to start the program with a rooted terminal command ("sudo /Applications/..."). There is no problem with Java (which would be common) and there are no license issues. I found an article in some other forum which stated that SPSS reads and writes in its preference folder at startup and closes right away if permissions are denied for that folder.
    Third and most annoying example: I cannot permanently delete or create icons in the dock. I can remove or create icons temporarily, but after restarting the Mac, the new icons are gone and the deleted items are right back where they were.
    Does anybody have any idea on how to fix this?
    In the short run, It'd be very helpful if anyone could tell me how to create dock icons with a Terminal command.
    I thank you in advanced for helping me out. Every little hint is appreciated.
    Sebastian
    PS: I have not tried to setup a new user profile instead of the second profile, yet. With all the programs and preferences that would take at least two days and I need to keep the Mac running. I would only do it as a very last resort.

    Well i went ahead and made that new admin like you said and I set it up and transfered only the files that I thought were important to me, Then i went ahead and fixed or repaired the permissions On the new admin user name and deleted my other admin profile with the key board issue.I fixed the permmissions  with an OSX Lion boot disk instead of lion because I don't have the Mountain lion DVD anymore. Every thing seems ok but was that a smart move or will that come back to haunt me?
    Now what Im worried about now is I didnt keep any of the certificates or anything in that nature, So My final question is What should i do now to hands down lagitimanetly make This the offical ADmin with all keys and things of that nature that make it the main one?
    Thank you so much and I'll watch my jokes from now on... I don't want to hurt anyone's feelings,

  • XPRESS code to find all users with a specific Admin Role

    I've been playing around for a while with a way to get a list of all users that have been assigned a particular Admin Role. I have a role for which I want a specific subset of users to be approvers on it, and I want to greate a Rule that will check for people with a particular Admin Role and then return that list as people to be approvers on the role.
    I haven't been able to find an easy way to write this code. Anyone run across this before or have another suggestion???
    Thanks.

    Below is the code to find user based on condition.
    <set name='adminList'>
    <invoke name='getObjectNames' class='com.waveset.ui.FormUtil'>
    <ref>:display.session</ref>
    <s>User</s>
    <map>
    <s>conditions</s>
    <list>
    <new class='com.waveset.object.AttributeCondition'>
    <s>AdminRoles</s>
    <s>contains</s>
    <s>adminRoleName</s>
    </new>
    </list>
    </map>
    </invoke>
    </set>
    Edited by: Jay on Mar 7, 2012 4:03 AM

Maybe you are looking for