Filters Essbase - Maxl

Is there a way to remove just the metaread access permission that I have in a specific filter using the maxl?
Regards,
Rafael Melo

Hey Cameron,
Actually i'm implementing your (your own) solution for hyperion planning metaread filters. But in my case happened something that wasn't possible to solve with your script. That's what happens: if i provisioning a user to access planning (tool and dimension) and generate its filter into essbase it works fine. So, if I run the script to generate the metaread filters, the metaread filters are generated. In the case I deprovisioning those user (just in the shared server) to have no access to the server, this filter will not be refreshed anymore when I run the refreshment from planning and the filter will continue there into essbase. When i run the script that create my metaread filter it generate multiples metaread filter (each time a run it generate one more) because, obvious, the refresment from planning doesn't drop/delete this filter because it no access.
Cameron, sorry my English and since now thanks for your help (your script too).
Rafael Melo - Brazil

Similar Messages

  • Verify "filters" through maxl

    Hello -
    I was trying to find the syntax/command to verify a filter through Maxl but couldn't find it. Pls, can some one guide me or provide me the syntax.
    I have some 100 filters and after migration to 11x want to verify all the filters to make sure that they are working. Manual check through AAS/EAS would be very time consuming.
    Also, is there any other way of doing this check? Appreciate the response.
    Regards

    Thank You gentelmen. Appreciate the feedback.
    We actually migrated from 7x to 11x. As on 7x we were on native security, when we migrated to 11x only the apps and dbs were created.
    The filters were then created through maxl script on each app/db on 11x.
    They were then exported out using LCM.
    Found that when you would import those filters back in 11x using LCM they become corrupt, looks like the Essbase gets confused on the double quotes i.e. " and would need a bracket around them if more then one member involved in the filter.
    Example-
    Initial filter created and thus exported by LCM was - ""dimension member1 ","dimension member 2"",<kind of access>,<end of line character I guess>
    As one of the workaorund while importing back one will need to modify the file and put the brackets eg - "("dimension member1 "),("dimension member 2")",<kind of access>,<end of line character I guess>
    But I am surprised that there is no maxl command to 'verify' the filters.....I always thought that the EAS/AAS buttons (eg verify in this case) in the backend are using a maxl command.
    Regards

  • Essbase - MaxL import dimensions

    Hi everybody,
    I have to update a dimension on my Essbase ASO application (only metadata). It is an incremental load dimension starting from a txt file containing all the elements, either those that currently are in the dimension. I'm using the MaxL statement Import dimensions by server rules file. Although, i'm wondering what the clause "preserve alla data" will do? What happens if i do not insert this clause when importing dimensions? After the the import i have to save the outline or launch the restructure?
    Thank you in adavance guys,
    Maurizio

    Hi Celvin,
    thnks for your answer. So, If i launch the following Maxl Script without the clause "preserve all data" i could lose all the data stored in the db?
    import database sample.basic dimensions
    from data_file 'test.txt'
    using rules_file 'test.rul'
    on error append to 'test.log'
    I tried on the ASOSample and the data haven't been cleared. There may be some options at applicatoin level or server level that effect how it works? could it be a safety clause in case of an abnormal shutdown during the import process?
    I know it's obviously better to put always the "preserve alla data" clause, but at the moment i'm evaluating the functionality of some existing scripts and i want to understand how they works.
    Thank you very much
    Maurizio

  • Essbase MaxL Help : URGENT

    Hello,
    I want to write a maxL script in which I want to implement the following process:---
    1)login to essbase
    2) then login to one RDBMS database and check some fields in that relational schema and if those fields are satisfying some conditions (if and then conditions) then run the Dimension build rule and data load rule
    3) then run calcscript
    4) then if any error, save the logfile and then logout from essbase
    Would you please help me on how to implement the second point above in maxL script ? Could you please share some relevant sample maxL codes ?
    Thanks for your prompt reply.
    Raj

    Why don't you interchange your steps .
    Step-2 : check what you need to check in RDBMS first through whatever means.
    then login to essbase and do whatever things you want . It is possibe to call batch files and scripts from RDBMS .
    your batch file with have Maxl code on what you want to do . ( including logging into essbase)
    Simply logging into Essbase as Step-1 seems unnecessary to me .
    Trying to do things in RDBMS from Maxl will not be possible and even if possible is more difficult because you have to analyze the return status .
    Edited by: Praveen Guttikonda on Sep 24, 2008 4:38 AM

  • Essbase Maxl Variable Export

    Is there a way to make a text file name variable when doing an export from Essbase Via Maxl? So in the example below I would set VARIABLE somewhere to be Jan or Feb or Mar?
    export database 'NS115'.'GL_11510' using server report_file 'FPA_Asst' to data_file '/app/hyperion/essbase/app/FPA_GL/GL_FPA/FPA_AssetsVARIABLE.txt' ;

    Assuming you have an environment variable named ExportMonth:
    export database 'NS115'.'GL_11510' using server report_file 'FPA_Asst' to data_file {color:#ff0000}"{color}'/app/hyperion/essbase/app/FPA_GL/GL_FPA/FPA_Assets{color:#ff0000}$(ExportMonth){color}.txt'{color:#ff0000}"{color};

  • Essbase Maxl Issue - In UNIX

    Hi Everyone,
    We are trying to build dimension using maxl script in unix box.
    Facing syntax and unexpected error. Followed the steps as below.
    1.In Putty, navigated to bin folder and invoked maxl script using ./startMaxl.sh command
    2.logged in using  the command login 'username' 'password' on 'essbaseservername';
    3.Executed the import database command to build dimension having sql as source as below
       import database 'xxx'.'xxx' dimensions connect as 'bis_read' identified by 'bis_read' using server rules_file 'DimChn' on error write to '/home/essproj/Maintenance/Automation/Logs/CTO/Build/Channel1.txt'
    4.Executed the import database command to build dimension having datafile as source as below
       import database 'xxx'.'xxx' dimensions from data_file '/home/essproj/Maintenance/Automation/Source Files/CTO/Measures.txt' using server rules_file 'DimMeas' on error write to             '/home/essproj/Maintenance/Automation/Logs/CTO/Build/Measures_log.txt'
    Throwing the error
    ERROR - 1242021 - (1) Syntax error near ['/'].
    as well as
    ERROR - 1241101 - Unexpected Essbase error 1054036.
    5. We even tried to save the .mxl file in the utf-8 formate and tried to execute the .mxl file at that time we are getting the error as "Segment Fault" but we are using the super user credentials to do this activity.
    Please help on this

    Hi,
    Please using '\' instead of '/'. You can use spool in your mxl script to capture the error better.
    spool on to 'c:\dimbuild.log';
    MAXL Statements & commands;
    import database 'xxx'.'xxx' dimensions from data_file '\home\essproj\Maintenance\Automation\Source Files\CTO\Measures.txt' using server rules_file DimMeas on error write to             '\home\essproj\Maintenance\Automation\Logs\CTO\Build\Measures.log.txt';
    spool off;
    logout;
    exit;
    Also label's also would do the magic..!! Let us know us how it goes..!!
    Thanks
    Amith

  • Essbase Maxl - Log out users

    Hello All,
    we have the following Maxl Script that is supposed to log out all users and prepare for the new load
    alter system logout session all;
    however the commande does seem to be working. If the user is already logded in it fails to log them out and terminate thier session.
    Any idea why is this happening? any suggestion on how to kill all session and logout all users

    Correction i meant
    : however the command does NOT seem to be working
    Hello All,
    we have the following Maxl Script that is supposed to log out all users and prepare for the new load
    alter system logout session all;
    however the command does NOT seem to be working. If the user is already logded in it fails to log them out and terminate thier session.
    Any idea why is this happening? any suggestion on how to kill all sessions and logout all users

  • Running maxl on client machine to connect to remote essbase server

    Hi All,
    I am able to connect to essbase on a client machine by using the link:
    http://ts119licalnn.ac.local:9724/easconsole
    However, when I try to log in via MAXL on the client machine, I get the following error...
    Essbase MaxL Shell - Release 11.1.2 (ESB11.1.2.2.100B2166)
    Copyright (c) 2000, 2012, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> login JDOE JDOE212 on ts119licalnn.ac.local:9724;
       ERROR -     103 - Unexpected Essbase error 1030818.
       ERROR - 1042017 - Network error: Timed out before receiving all data.
       ERROR - 1030818 - Login failed. Please check if server and port are correct.
    If you received timeout or handshake failure, please check if you tried to conne
    ct to secure port without secure keyword or clear port with secure keyword..
    Is the host name in maxl the same name as the name in the easconsole link? do i need to set up anything (tnsnames.ora) for maxl to work?
    Thanks in advance.

    The essbase server name is ts119licalnn, it is shown under essbase servers in EAS.
    By not using the default Essbase node 'EssbaseCluster-1', it has revealed the port number EAS uses to connect to essbase, in this instance, 1443.
    The problem was that I did not have the correct port number, is there an easier way of finding the correct port number?
    Cheers,

  • Maxl scripts to perform backup of the following

    Help me with these (Maxl script to do these backups)
         How to take Backup of filters (use maxl script to get filter information of all native cubes).
         Since we use xref calc a lot so we need to backup information of location alias.     
    We have partitioning so we need to get partition information backed up.

    Hi,
    Filter information is stored in the essbase.sec file so it is good start to make sure that is being backed up.
    As for extracting filter information by maxl you can do it with something like :-
    login admin password on localhost;
    spool on to 'c:\temp\filters.txt';
    display filter row all;
    spool off;
    logout;
    or if you want to narrow the filter down to a database use
    display filter row app.db;
    You will also need to change the column width to fit all the filter in e.g.
    set column_width 50;
    You can also dump the whole security file to a text file if you wanted which includes all the filter information (from 9.3.1)
    export security_file to data_file C:\temp\sec_file.txt;
    I take it your partitions don't change very often so you can easily just export the partition to xml from EAS, depending on what you are on.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to Hide username and password in command line using maxl

    Hi,
    How to encript my user name and password in command line prompt when I am login to Essbase server using batch file:
    *1_Here is my batch file:*
    Name of the bat file AV_Assig_Var1.bat
    rem This batch file defines the following variables:
    set $1 = 'admin';
    set $2 = 'password';
    essmsh AV_Asig1.mxl admin password
    ===========================
    *2_Here is my maxl file:*
    Name of the bat file AV_Asig1.mxl
    /* Create a process log */
    spool on to 'D:\lova\spool_log.txt';
    /* login (using variables from a batch file */
    login $1 $2 on 10.42.100.229;
    /* create application and database */
    create application AV_Asig1;
    create database AV_Asig1.AV_DB;
    /* End process log */
    spool off;
    exit;
    *3_Command line prompt*
    D:\Ess>AV_Assig_Var1.bat
    D:\Ess>rem This batch file defines the following variables:
    D:\Ess>rem 1: username
    D:\Ess>rem 2: password
    D:\Ess>essmsh AV_Asig1.mxl admin password
    Essbase MaxL Shell - Release 9.3.1 (ESB9.3.1.0.0A181)
    Copyright (c) 2000, 2007, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> login admin password on *10.46.100.222*; /* I want to hide this information */
    OK/INFO - 1051034 - Logging in user [admin].
    OK/INFO - 1051035 - Last login on Monday, June 14, 2010 12:44:03 PM.
    OK/INFO - 1241001 - Logged in to Essbase.
    MAXL> create application AV_Asig1;
    OK/INFO - 1051061 - Application AV_Asig1 loaded - connection established.
    OK/INFO - 1054027 - Application [AV_Asig1] started with process id [6792].
    OK/INFO - 1056010 - Application AV_Asig1 created.
    MAXL> create database AV_Asig1.AV_DB;
    OK/INFO - 1054014 - Database AV_DB loaded.
    OK/INFO - 1056020 - Database AV_Asig1.AV_DB created.
    MaxL Shell completed
    D:\Ess>
    I am looking forward to inputs from anybody.
    Thanks & Regards,
    Deepthi.

    Beyond that thread, I gave a presentation at Kaleidoscope last year around MaxL that goes into quite a bit of depth re encryption and a whole bunch of other MaxL goodies.
    To download it, go to www.odtug.com, click on Tech Resources, Essbase/Hyperion, and use the search box for MaxL.
    There are two presentations, one by Tracy McMullen and the other by me. Tracy's is a good introduction to the various command groups; my presentation focused on a few areas in depth, one of which was encryption. The title is "Master Essbase with MaxL Automation".
    You will need to join ODTUG to download the presentation, but there is a junior membership that is free.
    Regards,
    Cameron Lackpour
    P.S. ODTUG Kaleidoscope 2010 is coming up in two weeks, starting on 27 June 2010 -- for those of you still on the fence, it is an awesome conference and I urge you all to come. The content this year will be fantastic.

  • Cannot start essbase server?

    Essbase client and server are installed in the same windows, the System Environment Variables for have been set to refer to the E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseServer, and
    ARBORPATH = E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseServer
    ESSBASEPATH=E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseServer
    For the user Envirnment varialbe in the same PC,
    ARBORPATH = E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient
    ESSBASEPATH=E:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient
    I start with startEssbase.bat so that the environment variables can be called, but when I want to connect with maxl, I get error, below is the detail, please advise:
    E:\Oracle\Middleware\user_projects\epmsystem1\bin>startEssbase
    Starting Essbase.properties
    A subdirectory or file E:\Oracle\Middleware\user_projects\epmsystem1\diagnostics\logs\starter already exists.
    Apache Ant version 1.7.0 compiled on December 13 2006
    Buildfile: E:\Oracle\Middleware\EPMSystem11R1\common\config\11.1.2.0\resources\i
    nstance\start.xml
    Finish Essbase.properties
    27/04/2010
    07:06 PM
    E:\Oracle\Middleware\user_projects\epmsystem1\bin>essmsh
    Essbase MaxL Shell 64-bit - Release 11.1.2 (ESB11.1.2.0.0B444)
    Copyright (c) 2000, 2009, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> login;
    Enter UserName> admin
    Enter Password> ********
    Enter Host> localhost
    ERROR - 111 - Unable to connect to localhost.
    ERROR - 1042006 - Network error [10061]: Unable to connect to [localhost:1423
    ]. The client timed out waiting to connect to Essbase Agent using TCP/IP. Chec
    k your network connections. Also make sure that server and port values are corre
    ct.

    Yes, the Oracle Process Manager is not started. thanks.
    I tried the command you said, it looks better, but still with the next error message:
    Essbase global application does not exist at Shared Services
    And I check the Shared Service, there is no detail below EssbaseCluster_1, simply it is lost. Should I reconfigure Essbase so that essbase can be registerred on the shared service?
    Edited by: user2571802 on Apr 28, 2010 8:01 AM
    I have reconfigured, but when I didn't see the step that let me to register on HSS, I am trying to reinstall the Essbase.
    Edited by: user2571802 on Apr 28, 2010 8:43 AM

  • MAXL - Alter User issue

    Hi All,
    Does Alter User MAXL work for an external user?
    We use Alter User to add users to groups. This works fine for native users, say
    Alter user user1 add to group1 ;
    From the above statement it is not sure if user1 is a native or an external user. I think the default is native.
    Is there any special way to specify that the user is an external user?
    Appreciate your thoughts.
    Thanks,
    -Ethan.

    Hi Cameron,
    Thank you for the link.
    I think LCM works only when both the source & destination are in Shared services mode.
    In my case, source is not in Shared services.
    All I want to know is, Is there any utility to assign "Server access" to external LDAP users?
    Here is the problem.
    I need to assign filter access to many users & groups.
    I can create native groups & assign filters using MAXLS
    I can Alter external LDAP users to assign them to groups using MAXL, ONLY after I give them server access & refersh security, because users will not be recognized in MAXL if they don't have server access privelege.
    The complete process cannot be executed in one flow.
    I have to manually assign server access to each user or manually include each user to a group & then assign server access to the group.
    I am wondering if there is any thing in MAXL or any other utility to assign server access to the users.
    This would be very helpful.
    Thanks,
    -Ethan.

  • Encrypted Maxl "Parse error near in" error

    Hello,
    I'm facing a "Parse error near in" error when trying to use encrypted Maxl scripts deploying Essbase Studio cubes.
    The problem seems to be in the deploy command. If I do not use encrypted Maxl ( -D option ), the same deploy command works fine.
    Look in the deploy command that I'm not using encryption for loging into Essbase Studio. Even using encryption the same error is issued.
    Here is the log: ( I changed sensitive information for obvious reasons )
    Essbase MaxL Shell - Release 11.1.2 (ESB11.1.2.1.0B347)
    Copyright (c) 2000, 2011, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> login $key 99999999999999999999999999 $key 99999999999999999999999999 on s01ubd01;
    OK/INFO - 1051034 - Logging in user [ESBSAUH1@AD_Directory].
    OK/INFO - 1241001 - Logged in to Essbase.
    Essbase MaxL Shell - Release 11.1.2 (ESB11.1.2.1.0B347)
    Copyright (c) 2000, 2011, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> deploy outline from model 'cboPremioModelo2' in cube schema '\BI_SAUDE\Cubos\Premio\cboPremio'
    with option delete_members login "xxx" identified by "yyyyy" on host "s01ubd01"
    to application "Premio" database "Premio" using connection "Essbase" keep all errors on error ignore dataload write to default;
    essmsh error: Parse error near in
    essmsh timestamp: Wed Jul 04 12:52:03 2012
    MAXL> logout;
    User esbsauh1 is logged out
    essmsh timestamp: Wed Jul 04 12:52:03 2012
    MaxL Shell completed

    There have been a number of MaxL bugs with encryption that produce 'Parse error near...' messages. If you login to Oracle Support and search the Knowledge Base on 'Parse error near' you will find them. I can't see anything specifically relating to 11.1.2.1 or a known defect in the release notes... ...I'd get a support ticket raised, if you haven't already.
    You don't mention platform, but I've also run into a bug running 'deploy' in 11.1.2.1 on a 64-bit Windows environment and there was a Unix bug too, but they both caused crashes so probably aren't your problem.

  • Maxl - can you use variables in iferror statements

    hi guys,
    A quick one:
    Can you use variables when doing error handling? I assume the answer is yes, but just wanted to make sure.
    example:
    set app1 = Test;
    set app1_db1 = Test;
    alter database $app1.$app1_db1 force archive to file "C:\\EssbaseBackup\\$app1\\$app1_db1\\$app1_db1.arc";
    iferror 'Bk_$app1.$app1_db1_Error';
    define label 'Bk_$app1.$app1_db1_Error';
    exit 10;
    I am putting error handling into my script and want to double check before I go about making the alterations.
    Many thanks,
    Russell
    Edited by: RussellH-C on 26-Apr-2013 04:45

    You don't need to split the files. Create a Maxl with parameters and then call it in a bat file.
    In the bat you can then check for Error.
    essmsh -D "%HYP_MONTH_SCRIPTS_DIR%\Maxl_Files\HYP_ESS_Archive.msh" %DECRYPTKEY% Appname1 Dbname1
    call :archiveerrcheck
    essmsh -D "%HYP_MONTH_SCRIPTS_DIR%\Maxl_Files\HYP_ESS_Archive.msh" %DECRYPTKEY% Appname2 Dbname2
    call :archiveerrcheck
    archiveerrcheck:
         SET FILE=%MAXLLOG_DIR%\Archive.log
         findstr /R "\<ERROR" %FILE% > ESSErrCheck
          for /F %%A in ("ESSErrCheck") do If %%~zA NEQ 0 (
            call :datestamp
            echo  Error in Archive Process......................... > %ESSLOG%
            copy %FILE% %HYP_MONTH_ERR_DIR%\Essbase\MaxL\Maxl_Error.log
            DEL /Q ESSErrCheck
            call :exit_process
           ) else (
                   echo  %DTSTMP%  Log Out Process was successfull......................... >> %ESSLOG%
                   call :remove_file ESSErrCheck
    GOTO EOF
    :EOFRegards
    Celvin
    http://www.orahyplabs.com

  • Deployment with encrypted Maxl files

    Hi All,
    I'd like to know how encrypted maxl files work if I need to deploy them to different servers. This is, I create the maxl files to automate everytihng and I encrypt them in a test server. After deployment to a different production server, are the public/private keys going to work with no problem? Or I should re-encryp everything with new keys generated in the production server?
    Thanks!

    You need to create new
    For Assistance you can use below Comments
    You need to use the MaxL encryption tool to do this. The passwords stored in the MaxL Scripts can be encrypted from Version of Essbase 9.3 or higher.
    To Encrypt the Scripts:
    a) The following MaxL Shell invocation generates a public-private key pair that you can use to encrypt a MaxL script.
    essmsh -gk
    b) The following MaxL Shell invocation encrypts the input MaxL script, obscuring user name and password, and changing the file extension to .mxls.
    essmsh -E scriptname.mxl PUBLIC-KEY
    c) The following MaxL Shell invocation decrypts and executes the MaxL script.
    essmsh -D scriptname.mxls PRIVATE-KEY
    STEP 1: In the command prompt type:
    C:\>essmsh -gk
    STEP 2: In the command prompt, execute as below:
    C:\>essmsh -E D:\Hyperion\MScript.mxl 29287,1495101497
    Generates a Encrypted MaxL script file "MScript.mxls" based on the original MaxL script "MScript.mxl" in the location "D:\Hyperion".
    STEP 3: Execute Encrypted MaxL script MScript.mxls
    C:\>essmsh -D D:\Hyperion\MScript.mxls 1165863655,1495101497
    Essbase MaxL Shell - Release 9.3.1 (ESB9.3.1.0.0B181)
    Copyright (c) 2000, 2007, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> login $key 8432115901043363023058112802217170696731 $key 46195519111827550
    39099976036415811280221 on localhost;
    Hope this helps

Maybe you are looking for