Using MaxL in batch script to get Essbase database size before proceeding

I have a batch script which dynamically generates some MaxL before passing it to ESSMSH. I would like to insert a command at the beginning of the MaxL script, to get and assess the size of the database before proceeding. If the database is empty I would like the script to quit. This is to prevent the script from exporting data and overwriting the previous export file if the database is empty.
The generated MaxL (modified) is currently as follows. What logic can I add to the MaxL script, to assess the database size and go to the "errorhandler" label if it is empty? Is this even possible?
login %USER% identified by %PASS% on %SERVER%;
iferror "errorhandler";
/* log file */
spool stdout on to '<directory>.log';
iferror "errorhandler";
/* error file */
spool stderr on to '<directory>.err';
iferror "errorhandler";
/* export data */
set timestamp on;
execute calculation %APP%.%DB%.C_Export;
iferror "errorhandler";
/* reset database */
alter database %APP%.%DB% reset data;
iferror "errorhandler";
/* import data */
import database %APP%.%DB% data from server data_file "<filename>.txt" on error abort;
iferror "errorhandler";
/* calculate database */
execute calculation default on %APP%.%DB%;
iferror "errorhandler";
/* error handler */
spool off;
define label "errorhandler";
logout;
exit;

Hi Stuart,
Yes I was aware of display database "app"."db"; however this will output a table rather than a specific value. And what logic can I then add to the MaxL script to assess the specific value of "Db Status" and go to the "errorhandler" label if it is empty?
It would seem this needs to be done via a VBScript, to loop through the file rows to find the value before proceeding accordingly. But I was hoping there might be a way to do this within MaxL.

Similar Messages

  • Automate start/stop essbase service using Maxl or batch

    Hi - how would my batch or Maxl file look like if I wanted to come out with a script to stop and start my essbase service? The reason why i am doing this is because I wanted to stop the essbase service, so that I can archive the essbase.log file.
    I am on essbase 7.0, I have read on some postings that stopping and starting the essbase service can potentially corrupt the sec file. If so, then is there any other way of archive the essbase.log file so that it does not grow to megs.
    Thanks.

    Hi,
    You could use the following maxl
    alter system shudown;
    it may be useful to stop all the applications first e.g.
    alter system unload application all;
    or you can use windows command line
    net stop essbaseservicename
    and to start
    net start essbaseservicename
    Another method to backup the essbase.log is to make a copy of the log then use maxl to delete the log.
    alter system clear logfile;
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to get the database size of several system

    Hi
    We've got a lot of database system on our landscape. I want to make a simple report to get the size the all our database on a weekly base.
    I try to get a RZ20 value on it without succes.
    Do you know a sql request that i could launch on all my database to get this information ? i did'nt find any V$^view with this information.
    thanks for your help
    florent

    "The database size" can be
    - the total size
    - the filled size
    - the filled size without undo/temp
    You can use DBACOCKPIT to centrally manage multiple instance and check the sizes.
    Markus

  • I get a message saying: "Before proceeding you must first launch Adobe Acrobat and accept the End User License Agreement". HELP!!

    Hi i have an iMac with  10.9.3 and when i tried to open a PDF link or a PDF document in Safari 7.0.4  this message appears: "Before proceeding you must first launch Adobe Acrobat and accept the End User License Agreement".  What can i do to solve this?

    Back up all data before making any changes.
    Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print or save PDF's displayed in Safari, you may be able to do so by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar should appear under the cursor. Click the printer or disk icon.
    Step 2
    There should be a setting in the preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
    Safari ▹ Preferences... ▹ Security
    and check the box marked
    Allow Plug-ins
    Then click
    Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • While using gmail a message appears asking to Increase Database Size? No message is stuck on my screen.  Why?

    While using gmail on my ipad a message appears "Increase Database Size?".  After pressing cancel the message is stuck on my screen. 
    How do I get rid of the message so I can access my mail?

    Here's a fix just in case other users have this problem and still sticks around:
    In your passbook app- choose the Belly "Card." Tap the "i" icon on the bottom right corner and turn off the notification sliders. Passbook seems to go over the general notifications and just makes it's own rules in this regard.

  • Hi There I am Facing Some issues in Using OTM with Open Script Please get all information from following detail.

    Hi There,
    I have created a new Open Script in following way
    File-> New-> Functional-> Oracle EBS Forms
    I have written some code and tried to link the script with OTM. That time OTM is showing script in Directory while linking. It is properly Linked and working correctly.
    Then I have created new script again but Now I have enabled Datatable plugin of script from (Script->Properties->Module->Datatable).
    This time when the Script is "NOT Visible"  in OTM direcotry when I try to link.
    I have wasted my 4 to 5 days to find solution on this .
    Please show me some way. Thanks in advance.

    a8a3425e-7553-42bc-a91a-1e93775a8853 wrote:
    Hi There,
    I have created a new Open Script in following way
    File-> New-> Functional-> Oracle EBS Forms
    I have written some code and tried to link the script with OTM. That time OTM is showing script in Directory while linking. It is properly Linked and working correctly.
    Then I have created new script again but Now I have enabled Datatable plugin of script from (Script->Properties->Module->Datatable).
    This time when the Script is "NOT Visible"  in OTM direcotry when I try to link.
    I have wasted my 4 to 5 days to find solution on this .
    Please show me some way. Thanks in advance.
    Better asked in the EBS forum: E-Business Suite

  • Essbase Database SIze

    Hi, Essbae version 11.1.1.3, We have 3 cubes where 2 cubes gets consolidated into 3rd cube. PRME Cube(14 page files) and CCE(17 page files), but CONSOL is 70 page files.
    CCE + PRME = CONSOL.
    Is there any way to reduce(70 page files) this size. I tried exporting level0 from CONSOL and reimport and ran "CALC all" but same size.
    CONSOL
    Dimesion     Type     members in dim     Members stored
    Account     Dense     2253     1899
    Period     Dense     35     13
    Entity_bu     Sparse     126     125
    Years     Sparse     11     11
    Ds     Sparse     98     49
    MS     Sparse     33     32
    Costcenter     Sparse     1526     1070
    scenario     Sparse     32     12
    product     Sparse     576     320
    version     Sparse     25     25

    Compression settings for 3 cubes is Bitmap encoding. And dimension order for 2 cubes were same and CONSOL cube was different.
    Consol
    Account     Dense
    Period     Dense
    Entity_bu     Sparse
    Years     Sparse
    Ds     Sparse
    MS     Sparse
    Costcenter     Sparse
    scenario     Sparse
    product     Sparse
    version     Sparse
    I am confused, when we talk about optimized model DENSE order should be Largest - smallest no of members. But in our case the 2 (planning) cubes order CCE + PRME dense order is Period then Account.
    But COSOL (CCE + PRME) cube has Account first then Period. SHould I udpate the CONSOL same as PRME and CCE and reload data and AGG it.
    Glenn, As you asked, This is only for reporting purpose. This cube is being created thru Planning , but data loads happen thru Essbase. If I have to create ASO, I need to pull out from Planning and should I create and maintain the cube in Essbase only?
    Thanks
    Radhika

  • How to get the Database size?

    Hai Friends,
    I have created a Z Table with 100 fields. i want to check the database size after uploading the data. How can i do this?. That is, after uploading the first entry i want to know the size and again i want to upload 5 more entries and to check the growth.
    Where can i see this?. i have checked in DB02 but even after data upload i didnt see the size. kindly explain me the process.
    Thanks..................

    Hi,
    In the Go to Menu then Check the Number of entries to track your current set of entries.
    For DB Size  check Technical Settings . Tab Logical Settings parameters the Data class and Size category can give you how much data the table can hold.
    Thanks,
    Anita

  • File copying in Batch script and renaming

    HI,
    I am using the below batch script to copy the files from current folder to the specified location.
    (@echo off
    echo copying files to destination
    copy *.eps* \\10.10.14.13\adman\in\displ )
    I am facing 2 problems in the above script..
    1. I am not able to select a particular file and run the script, for e.g if the folder got more (eps) files it copies all the files to the location.
    2. I want to insert my user login name at the end of the each copied file.
    My file name look like (F0#CGDBANG000947532#.eps
    ) copy to F0#CGDBANG000947532#username.eps
    Thanks for all the help

    Hi,
    About this issue, I recommend you consult Script Center forum for professional help:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=scripting
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or
    learn from your interaction with us. Thank you for your understanding.
    Karen Hu
    TechNet Community Support

  • Script for getting all windows Drives freespace information

    Hi All,
    Any can post the batch script to get the disk drives freespace info for multiple servers.
    Cheers,
    Govind

    This is not an Oracle Database question, so it really does not belong in this forum. You can query the WMI database in each server to find the information. Try the following search on Google:
    hey scripting guy free disk spaceCharles Hooper
    Co-author of "Expert Oracle Practices: Oracle Database Administration from the Oak Table"
    http://hoopercharles.wordpress.com/
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Query on batch scripting - Archival

    Hello,
    I am totally new to batch script.  Below is the requirement that needs to be developed using batch script.  Please suggest on how to proceed and a good link to learn about batch scripting too.
    Zip once in 2 weeks and deleted after a year.
    Thanks and Regards,

    Hello,
    You can use PowerShell to automate the job of Zip and delete them based on scheduled time lines. 

  • Get-MailboxStatistics -database total GB not individual MB size

    need to get total size on each Exchange 2010 database, not each user mb.
    thanks

    Hi,
    Based on my research, in Exchange 2010, we can depend on the following command to get the total database size:
    Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSize
    And here is a reference about a script to get the database statistics:
    http://www.mikepfeiffer.net/2010/03/exchange-2010-database-statistics-with-powershell/
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Best regards,
    Angela Shi
    TechNet Community Support

  • Copying substitution varibale using Maxl script

    Hi,
    Ive been trying to copy application using Maxl script in essbase to take backups. Everything gets copied except substitution variables. Could some one help me in sorting out this issue.
    Is there any specific Maxl Command to copy substitution variable alone from one application to another, if so could u please share it with me.
    thanks

    Hi,
    Unfortunately, as John said, there is no command to copy the subvars. One of my colleagues ran into this same issue on one of my projects. He ended up spooling a script with display variable all command to show all your variables and write them to a text file. from there he wrote a batch file to parse the text file for each of the variables, and then updated the subvars in the backup application with these values.
    The thing you want to look out for here is that you want to make sure you properly handle checking for whether the subvar already exists in the backup application. If it does, you just want to run an update of the value. If it doesn't exist, you want to add it first. This is because there is no create or replace variable, so to avoid any errors, you need to be careful with that. I think you may want to look into some of the other alternatives John provided if you are still looking into this issue.
    Thanks,
    Daniel
    http://www.DVEPM.com

  • Automation process in Workspace (using MaxL script)

    Hi All,
    I have a MaxL script to export Level 0 data and to update new data in a database
    It is working fine.
    I have tried to schedule it, and its also working fine.
    But according to my requirement, i have to publish this MaxL script in workspace as a job or as a file so that I can run this MaxL script in workspace only.
    I have tried some way but didn't get success.
    So help me to solve my problem
    Thanks in advance

    We are using workspace and jobs to automate our processes. Here is how we do it:
    In the server that runs workspace, we place the batch or exe that needs to be run. Then we set up a job factory using that same batch file.
    Then on workspace we import this batch file as a generic job with the associated job factory and DONE!
    Next time you execute the job from workspace, that batch file will run from your workspace machine.
    send me an email to [email protected] and I'll give you the documentation that we used to set it up in more details.

  • Script to export Security file using maxl script

    can anyone provide me the Script to export Security file using maxl script.It should create a log file and a batch file should also be there to schedule the Maxl script.Please help me with this

    Hi,
    You can use something like
    [b]login admin password on localhost;
    [b]spool on to 'c:\temp\log.txt';
    [b]export security_file to data_file C:\temp\sec_file.txt;
    [b]spool off;
    [b]logout;
    Then you can have a batch file that just calls the maxl script
    essmsh name_of_maxl_script.mxl
    The batch script can then be scheduled.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • How to use grouping by field and have a tatol of records per group

    Dear All I have a repiort that i have created but i want code that allows me to group the report by a certain field then i give a tatol number of records per each group. Thank you in advance William

  • How to take printout of unreleased PO

    Hi All,    We have a requirement to take printout of the unreleased PO by changing the condition as     NAST-SDNNR = ' ' instead of NAST-SDNNR = 'X'. But for unreleased PO, the driver program is not getting triggered at all to include this condition.

  • ITS Dumps while Approving Shopping cart as Manager

    Hi, I logged into SRM system as a Manager to Approve Shopping cart. Click Start Enterprise Buyer Inbox link and then Click Approve icon for a shopping cart. The following errors displayed Error when processing your request What has happened? The URL

  • Creating an sales invoice.

    Hi,   can any one say me the steps involved in creating a invoice( sales). thanks in advance

  • In itunes, how to expand a window under Devices?

    In itunes, under Edit-Preferences-Devices-Devices Preferences the window does not open fully and cuts off words along its left hand margin. Therefore, I cannot check the box that says disable automatic syncing. How do I correct this?