Maxl / Java

I would like to know how to use Maxl with Java. I need to create/display filter in my java application and it's not possible with JAPI.thanks

Take a look at maxljni.jar. That is what I use in the Jython wrapper to execute MaxL in Python scripts. See the Python MaxL download on this site for more details.

Similar Messages

  • Essbase JAPI maxl session gives NPE with import statement

    Anybody know why I get a NPE from the Java API when trying to use the IEssMaxlSession to do an import? Here's my code snippet. I've verified the session work using the simpler maxl command commented out below. I also know the import syntax is OK at the maxl prompt. Essbase Error(0) isn't the most helpful diagnostic I've come across.
    Thanks
    IEssMaxlSession maxlSess = null;
    try {
         maxlSess = olapSvr.openMaxlSession("Maxl Test");
                   try {
                        String maxl;
    //                    maxl = "display database \"184_r\".rep";
                        maxl = "import database \"184_a\".agg dimensions connect as \"admin\" identified by \"password\" using server rules_file '/TmpltRFs/RFs/Plan.rul' on error write to \"errlog.log\"";
                        logger.debug(maxl);
         maxlSess.execute(maxl);
         printMessages(maxlSess.getMessages());
                   } catch (EssException e) {
                        printMessages(maxlSess.getMessages());
                        logger.debug(e.getMessage());
                        e.printStackTrace();
    } catch (EssException e){
         logger.debug(e.getMessage());
    14:47:40 DEBUG (essbase.RunMaxl 109): Cannot execute maxl statement. Essbase Error(0): java.lang.NullPointerException
    com.essbase.api.base.EssException: Cannot execute maxl statement. Essbase Error(0): java.lang.NullPointerException
         at com.essbase.server.framework.EssOrbPluginDirect.ex_olap(Unknown Source)
         at com.essbase.server.framework.EssOrbPluginDirect.executeMaxlStatement(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMaxlMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod2(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod(Unknown Source)

    This is due to the unpublished Bug 12661416: MAXL STATEMENT IMPORT DB DIMENSIONS FROM RELATIONAL DATABASE FAILS WITH JAPI. This error is not fixed in next release.
    However, there is one workaround.
    "As a workaround we installed Essbase client 9.3.1 on the epm11 test box, copied native libraries from 9.3.1 admin server and connected to maxl shell from the v 9.3.1 maxljni interface. This seems to work fine."
    Edited by: Karthik_P on Apr 9, 2012 1:12 PM

  • Create Java application with Essbase

    Dear Experts
    I have a demand for a potential client.
    Where I believe it is best to implement an application with Java or APEX another relational database and Essbase.
    How Hyperion Planning and others.
    But not using Hyperion Planning.
    How would integrate it with Essbase?
    How should I build a Java application without losing any of Essbase?
    Anyone ever done this?
    What documentation should I read about this?
    Many questions and design challenges.
    Thanks for all

    Dear J.M. and Evgeniy.Rasyuk
    Its many useful responstas way.
    J.M.
    I do not believe that Oracle would take steps for me create a Hyperion Planning. -ok.
    Then all the resources used by Planning and other apps should be available for APIs and MaxL or otherwise connect, execute and monitor Essbase Database.
    I believe there is a significant demand for this scenario using technology Essbase.
    It's a big four who has requested an opinion on this.
    Thank you,
    MMB

  • How to use MDX with Maxl?

    I have been looking at documentation on the MDX language and would like to program some simple queries using it. I tried to run it inside a command line MAXL call and couldn't figure out how to tell it the output format. Are there manuals that cover the basics of how to get the MDX calls executed and data formated? I have Essbase 7.1 but am using an old version 6 relase of EAM so I don't have the web based Analysis Services I keep seeing referenced in manuals. Any help would be appreciated.<BR>

    In MAXL (or in EAS) there's not a lot to say about result specification. You can adjust column width, and you can set default display of names vs aliases from results. Look at the technical reference guide under MAXL syntax for thise.<BR><BR>Primarily, you would issue queries using the C API, Java API or with XMLA (possibly also VB, either now or soon) and would format results yourself. Rather like the relationship between SQL and ODBC.<BR><BR>HTH

  • Java API: How to grant a Filter to a user?

    Hi
    I d'like to execute MAXL statments like this with the Java API (ess_japi.jar):
    "Grant filter APPNAME.DATABASE.'f_FILTER' to USER;\n"
    (I'm able to create filters but I can not find anything like a grant method)
    Thanks!
    Regards
    Edited by: 784645 on 27.07.2010 05:24

    have you tried the setSecurityFilterList method
    http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_api/api_j/ess_japi_html/com/essbase/api/datasource/IEssCube.html#setSecurityFilterList(com.essbase.api.datasource.IEssCube.IEssSecurityFilter, java.lang.String[])
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • MAXL Dimension Extraction?

    Does anyone know of a method to extract dimensions from essbase using MAXL? I'm trying to automate a dimension extract. I know that the Outline Extractor has a command line that can be used to achieve this but I'd prefer doing it in MAXL if possible. There's an import dimensions command in MAXL but I can't seem to find one for export dimensions.
    The ultimate goal is to automate copying the metadata and data nightly from a BSO cube to an ASO cube.
    Thanks!

    This seems to be a common topic. There is no way to get outline information from MAxL. Options are
    1. outline extractor (you already know about this)
    2. ODI
    3. API calls (Java or C or VB)
    4. HAL (I think, but not in new versions)

  • Display session maxL command is hanging

    Hi All,
    I am using maxL editor in EAS console to execute the display session command.My requirement is to know the number of Active sessions in to a Essbase Application.
    I execute the following maxL command
    display session on database <APPLICATION_NAME>.<DB_NAME>;
    But when I execute this statement it is not executed rather EAS console is totally hanged.I tried it using another essbase server but result remains the same.
    I am able to execute other maxL commands like "display applicaion all" without any problem.
    I even tried to execute maxL using java API but even there it is hanging.
    I there anything I am missing or anything I can do to execute the command.
    will really appreciate quick response.
    Thanks,
    Abhishek

    For me the solution was in the essbas.cfg: NO_HOSTNAME_LISTCONNECT TRUE
    Help says:
    NO_HOSTNAME_LISTCONNECT Configuration Setting
    When using the display session MaxL statement to view active login sessions, specifies whether to convert the IP address of the client computers that are logged into Essbase to the computer’s hostname.
    When set to TRUE, IP addresses are not converted to hostnames, which improves the performance of the display session MaxL statement. [7314737]
    Hope it helps,
    Antonio P.

  • MaxL script invocation solution?

    I need to use maxl script to refresh data. But before doing this I have to call an oracle sql package to do something first like prepare data. After finishing that maxl script I also need to do something else. And furthermore I need to catch exceptions and do some logging. I think the whole process should be in a transaction.
    Is there a solution for this?
    pure os script? pure oracle script? or a java programe?

    There is error handling available in all the solutions suggested.
    In case you are using an Oracle package, you can specify the execution to be exited on failure. For the maxl errors you can check the return value of sqlcmd execution in the procedure itself OR you can check for files which the essbase dataload might have created.
    In ODI also you can create process flows which can stop execution on failure. In Batch scripts I know there is way to handle errors but I have not implemented it. May be someone else can throw some light on it.
    Personally, I would prefer doing everything in Oracle just so that I have only 2 technologies to take care of.
    Hope this helps!

  • Pre and post load maxl script in ODI

    i am trying to call a maxl script in the ODI interface.
    i made the following chages in target properties:
    PRE_LOAD_MAXL_SCRIPT D:\PLAN\Results\Scripts\ODIpreMaxl.mxl
    i got the folloing error message:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (most recent call last):
    File "<string>", line 89, in <module>
         at com.hyperion.odi.essbase.ODIEssbaseConnection.executeMaxl(Unknown Source)
         at com.hyperion.odi.essbase.AbstractEssbaseWriter.beginLoad(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: Cannot run program "essmsh": CreateProcess error=2, The system cannot find the file specified
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:346)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2457)
         at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)
         at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    -Raj

    John
    Yes that was a problem. When I ran plain essmsh, it said 'essmsh' not recognized. However when I ran the whole path D:\Oracle\Middleware\EPMSystem11R1\common\EssbaseRTC-64\11.1.2.0\bin\essmsh, the MAXL prompt came up. I have system environment variable setup in the name of ESSBASEPATH with path as D:\Oracle\Middleware\EPMSystem11R1\common\EssbaseRTC-64\11.1.2.0\. I had a feeling this would take care of the situation.
    So how do I get this set up?
    Thanks
    Raj Nadar

  • Call a java function on retrieval

    Hi,
    Is it possible to call a java function on retrieval from a member formula or may be business rule. Will it be more efficient than the member formula itself ? Currently our member formula on dynamic member is timing out.
    It'll be nice if you could point me towards some material to read on and experiment.
    Any pointers will be helpful.
    Thanks.

    >> if I'm wrong but this CRC will work only if my data is in database tables
        Data dynamically retrieved from Essbase VIA APS with using MDX queries
    >>dynamic calc member is retrieving and calculation data from the planning cube itself.
      No . It ONLY for stored member.
      I need reduce using DCALC
    >> Do you have any more detailed info on how to deploy this and how to call this in member formula or calc script
      Just now i don have any detailed document for this. But
       1)  You need to know about Essbase Load Rules, Maxl Load Data, MDX data retirvies.
       2)  You need advanced PL-SQL experience for using it

  • ASO-related statements fail in JAPI MaxL

    Hi there,
    I am trying to run an ASO database aggregation from a java program using Essbase JAPI. I am running Essbase 7.1.6. Since there seems not to be any ASO related call in the library, my approach is to open a MaxL session (IEssMaxlSession) and to execute a simple MaxL command (execute aggregate process on database appname.dbname). But surprisingly this fails. After some investigation, I realized that all ASO-related MaxL statements also fail to run in Essbase API while BSO ones function well. It always complain about some incorrect syntax, which I am 100% is valid since I was able to run it successfully from the MaxL prompt.
    Any idea how to solve this?
    Thanks a bunch in advance,
    Regis

    MaxL was supported in the JAPI from version 7x, however, it goes away in System 9. Here is a portion of the javadoc of IEssMaxlSession in System 9.3.1:
    boolean execute(java.lang.String maxlStatement)
    Deprecated. - Deprecated for lack of JAPI support
    Based on the fact that the JAPI never fully supported MaxL in the first place and the fact that MaxL/JAPI calls were deprecated in System 9, I would guess the ASO functionality wasn't available via the JAPI in the first place (although I have tested that scenario in any version of the JAPI)..
    Any idea how to solve this?Perhaps you could install the Essbase client which, I believe, contains the full MaxL functionality, and write/execute your MaxL scripts from Java..
    I looked in the 9.3.1. javadocs and didn't see anything new in regards to materinalizing aggregations; I will, however, see if any of my friends in the JAPI group have any further insights and, if I find anything out, I will followup here.
    Sorry there isn't a cleaner solution.
    Tim Tow
    Oracle ACE
    Applied OLAP, Inc

  • Spool in Maxl and Perl

    I am trying to use spool in perl/maxl and I am getting a compilation errorthe command I am using is $sts = $dbh->do("spool on to 'load.log'")and the error i am getting is6 - (1) Syntax error near ['spool']50 - MaxL compilation failedHas any body experienced this beforethanks

    In my opinion the fact that the portal uses primarily JAVA, lends itself to quite a bit of expandability. I think it will be quite difficult for a portal written in PHP (Such as PHP Nuke) to share user session and state information accross multiple machines/instances. The iPlanet portal server has been designed to accomodate this, through the use of specialised session services. The threading model in Java also lends itself to greater efficiency when executing multiple tasks, whereas a portal based on PERL, would have to start a new process everytime a service is requested, which can then become VERY resource intensive.
    In terms of expandability, the fact that it is contaned inside a JAVA VM will allow you to develop and deploy alot of custom developed applications for your portal. There is also quite a good portal API for the iPlanet portal server that will allow you to tap into the Logging,Session,Profile and Authentication services provided by the portal.
    Hope this helps!

  • Java or any other customization

    would like you ask some thing regarding change of member properties with out manual interaction...
    In my project iam using currecny conversation using BSO cube to make it more specific would like to ask.. is it possible to change member properties with out manual interaction
    Example:
    In my Account Dimension i have tagged currency category which is linked to a separate currecny database ..in the same application
    And in my currency database i have 3 type of category : opening closing and avg
    now it works fine when i change category to opening and run my calc script and same for closing but it take manual interaction to change ..
    So my question is isit possible to change member property thorough java so that when i run my calc java shall comes to play and change my member properties and the run my calc script
    Environment: Essbase~ EAS ~Shared services --->>>No planning
    Hope you all understand

    Hi KVC,
    There is a lot of great information here http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag/frameset.htm?launch.html in the DBAG. This part of the documentation is quite detailed and thorough.
    The basic process for creating and using a CDF is
    - write the java class(es) that perform the intended work
    - compile the class(es) and expose 1 or more methods public
    - (preferrable) jar the classes into a java archive (jar file)
    - use Maxl to register the CDF with essbase:
    create function '@MYFUNC'
    as ' fully.qualified.package.to.MyClass.myFunc'
    spec '@JMyFunc(member, oldUDA, newUDA)'
    comment 'Changes the UDA of the supplied member';- test the CDF in a calc script.
    The docs above will explain this in much greater detail. Give it a try and let us know how it goes.
    Regards,
    Robb

  • EAS crashes with Java error

    Hi, Last week we upgraded from Essbase 6.5.4 to 7.1.2 and from App-mgr 6.5.3 to EAS 6.2 Essbase (Analytic Services) seems to work fine, but EAS keeps crashing (the cmd windows shuts down and the console just hangs) with the following error [i tried re-installing with no avail] has anyone come across ths one before. Any help is highly appreciated. Thanks a ton, Maneesh Hari************An unexpected exception has been detected in native code outside the VM.Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x15785a2cFunction name=adBuildMessageLibrary=D:\Hyperion\Essbase\bin\ESSNET.dllCurrent Java thread:     at com.hyperion.essbase.maxl.MaxlJni.sessionCreate(Native Method)     at com.essbase.eas.essbase.server.EssSessionPrimitives.connect(EssSessionPrimitives.java:56)     at com.essbase.eas.essbase.server.EssSessionPrimitives.connect(EssSessionPrimitives.java:76)     at com.essbase.eas.essbase.server.EssSession.connect(EssSession.java:83)     at com.essbase.eas.server.SessionLogic.connect(SessionLogic.java:69)     at com.essbase.eas.server.SessionManager.getSession(SessionManager.java:134)     at com.essbase.eas.server.SessionManager.getSession(SessionManager.java:47)     at com.essbase.eas.server.AppManCommandListener.handleEvent(AppManCommandListener.java:61)     at com.paintedword.framework.app.event.command.PFCommandDispatcher.dispatchEvent(PFCommandDispatcher.java:148)     at com.paintedword.framework.app.event.PFEventController.handleEvent(PFEventController.java:132)     at com.paintedword.framework.servlet.work.PFDispatchEvent.handleEvent(PFDispatchEvent.java:118)     at com.paintedword.framework.app.event.work.PFWorkDispatcher.dispatchEvent(PFWorkDispatcher.java:175)     at com.paintedword.framework.app.event.PFEventController.handleEvent(PFEventController.java:132)     at com.paintedword.framework.app.PFApp.generateWorkEvent(PFApp.java:145)     at com.paintedword.framework.servlet.PFServlet.handleRequest(PFServlet.java:413)     at com.paintedword.framework.servlet.PFServlet.doPost(PFServlet.java:359)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)     at org.w3c.jigsaw.servlet.ServletWrapper$ServletRunner.run(ServletWrapper.java:290)Dynamic libraries:[[[ LIST OF DLLS here ]]]Local Time = Mon May 23 18:55:27 2005Elapsed Time = 125## The exception above was detected in native code outside the VM## Java VM: Java HotSpot(TM) Client VM (1.3.1-b24 mixed mode)#************************

    I use EAS 7.1 and there is no such problem. Maybe you should upgrade to EAS 7.1.

  • Maxl variable def with quotes

    I'm using the following to create a system variable, and I cannot seem to create a quoted value within a Maxl script... any ideas?
    alter system drop variable "$1";
    alter system add variable "$1" "$2";I'm trying to avoid re-writing the Maxl script each time, hence the parameters for the variable name and value...
    I've tried escaping the quotes on the command line and in the script; using combinations of single/double quotes on the command line and in the script; and various other less likely candidates...
    Anyone got an approach that can create a variable with a quoted value from inside a Maxl script?

    LOL, yeah, VBA/VB would be easy -- I'm so much more comfortable with the API than these silly scripting languages -- it feels like I'm trying to work with one hand and 3 fingers tied behind my back any time I deal with Maxl... It's almost as bad as Java! :)
    Problem: current site doesn't have API module licensed (well, even if they did this would be a silly thing to use it on).

Maybe you are looking for

  • How do you combine two separate paths into one?

    I have two two separate paths that overlap and I want to combine into one path. How do I do that?

  • Itunes 6.0.3.5

    I uploaded from the net the new version of Itunes 6.0.3.5, now when I start appear that the new version don't recognize the old information/record to burn cd or dvd and say to re-install Itunes. I tryed to reinstall from the cd the old version, but t

  • How to Get Previous Month Salary for a particular employee?

    Hi I am developing a report to get the Net Pay Difference from Previous month. I am using logical database pnp. My question is how can we get the last month (Previous from current selected month) salary of perticular employee. I read the thread which

  • List Box in ALV Grid

    Hi all,     How to bring a list box in ALV Grid Regards, Vijayakumar Message was edited by:         Vijayakumar V

  • Waveform graphic / chart time display (x-axis) is wrong?

    Why the time is incorrect in waveform graphic / chart? How to solve it? When I run the program, I find that waveform graphic/chart show 0 to 20 (time/x-axis) but actual is running 30 second.