Dynamic XMLA Script

Hi Folks,
I have a one project, in which I need to Attach/
Detach Analysis Cube dynamically.
For Example – I f I need to detach AS DB “ABC” then needs to run this script.
But If for multiple DBs, Database name should be parameter basis & change dynamically
Pls Help

Hi,
Refer below link,
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/1aa9cf4d-8e5e-4eca-83d1-dc14855e46ba/how-to-dynamically-create-ssas-databases-using-xmla-scripts?forum=sqlxml

Similar Messages

  • How to schedule SQL Agent job for XMLA script file of SSAS database instead of taking a backup.

    I want to script XMLA file instead of backup of database and also want to schedule a job for the process in SQL Agent. 
    Is there any pros and cons when I script the XMLA file of the SSAS db instead of taking a backup ? 
    Amir

    Hi Amir,
       You can take the Create SSAS database XMLA script and run the job to create the cube. The script contains the Metadata definition of the Database and it does not contain the actual data. 
    Pros: Since you are only creating an empty cube the script will run faster 
    Cons: You still need to process the created cube to use it for reports.
    Fastest option is to take the backup of the cube and restore wherever necessary.
    And you can also use TFS source control to deploy the cube and process it later.
    Regards,
    Venkata
    Venkata Koppula

  • Dynamic Essbase Script Preprocessor

    Hi,
    Just to introduce myself, I'm not an essbase or planning expert, I discoved these last september.
    I've been wondering something for months: is there anyway to dynamically generate script?
    Maybe what I have in mind can be done with MAXL or something but we don't use it so I have to admit that I have no idea.
    What I have in mind is basically what Alexis Sellier has done with LESS for CSS language: http://lesscss.org/
    Even if you don't know anything about CSS, you should have a look at the first exemple.
    ======= EXEMPLE =======
    Basically I'd like to write something like that.
    <pre>
    @var i = 0;
    FIX("FY12", "LEGAL_ENTITY_GROUP")
    FIX( {
              for( $i; $i<100; $i+3):
                   "CUSTOMER_"$i;
              endfor;
    Do_something_here
    ENDFIX
    ENDFIX
    </pre>
    NB: I completely made the grammar up
    And this piece of code will generate this script.
    The output could be an XML file to import in calc manager.
    <pre>
    FIX("FY12", "LEGAL_ENTITY_GROUP")
    FIX( "CUSTOMER_0", "CUSTOMER_3", "CUSTOMER_6", "CUSTOMER_9", "CUSTOMER_12", and so on )
    Do_something_here
    ENDFIX
    ENDFIX
    </pre>
    ======= EFFICIENCY =======
    We've noticed that an essbase script is much slower when you use this kind of function:
    <pre>@MEMBER(@CONCATENATE("ACCOUNT_", @SUBSTR(@CURRENT("CURRENCY"), 3)))</pre>
    That's why I thought about that.
    I'm sure I could find other example if you think this is a rubbish one.
    Thanks a lot for your time and help.

    About CDF's
    I had a look at CDF's but we don't use them here so couldn't give a shot and code one yet. But you're right i should try it.
    Think is that custom function are executed during the script, they are part of it. I was think about something that will generate an actual text file and then execute it as a script. But I didn't see any efficiency problem with CDFs on the web so I assume it's working well.
    About the text file
    +"In your example, you could always put some dummy code in your script like <generate customer list here>. Then you open your script file with any programing language and replace that <generate customer list here> by your customer list."+
    That is exactly what i want :) I was wondering if there already a tool, a public library to use, something common (lile LESS).
    Unfortunately I don't really feel like calcscripts are text files. If I have a calcscript in my calc manager I can't locate the actual file on the server. I don't know where they are, I looked for them but I couldn't find anything. Maybe you know where I can find them?
    Even if you change the files you still need to deploy them so you have to "apply the change".
    Maybe there is no need for what I'm looking for and CDF can do everything I need. I just thought having a proper essbase script would be more efficient.
    Next time I think about it, I'll write it down, maybe I would have a better example.
    Thanks a lot for your time.
    Edited by: Julien Bourdeau on Jan 18, 2012 4:04 PM

  • Create Dynamic Maxl scripts

    Hi,
    When we need to create dynamic maxl scripts without using a batch commands or unix commands?

    Hi Nila,
    I aggree with Daniel: you have to use a little bit more than MAXL to automate that. I dont know if you understand me correctly: You only need to create one shell script, 1st part: call maxl to export, 2nd part to manipulate the output, 3rd part to import the manipulated output.What I would like to say: You dont have to manipulate it manually. And after the creation the shell script can be scheduled to run every month, if you like... If you generally wouldnt like to use shell scripts you have a problem - I am not a MAXL guru but I would say it is not possible.
    Kind regards
    André

  • Error when processing dimension using XMLA script

    I am hopeful that someone has an answer for this...
    I am in the process of deploying SQLServer 2014 and have been running in parallel with my production environment for 2 weeks with no issues.  Yesterday morning, my primary data load job failed while executing a process dimension script.  The script
    does a process update on multiple dimensions, but fails on the product dimension.  This is the script:
    <Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2">
    <Object>
    <DatabaseID>WestLakeSales</DatabaseID>
    <DimensionID>Dim Product</DimensionID>
    </Object>
    <Type>ProcessUpdate</Type>
    <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
    </Process>
    </Parallel>
    </Batch>
    It processes the attributes and starts processing the associated measure groups, then fails with a return code that I cannot find any information on:
    <return xmlns="urn:schemas-microsoft-com:xml-analysis">
    <results xmlns="http://schemas.microsoft.com/analysisservices/2003/xmla-multipleresults">
    <root xmlns="urn:schemas-microsoft-com:xml-analysis:empty">
    <Exception xmlns="urn:schemas-microsoft-com:xml-analysis:exception" />
    <Messages xmlns="urn:schemas-microsoft-com:xml-analysis:exception">
    <Error ErrorCode="3238133769" Description="" Source="Microsoft SQL Server 2014 Analysis Services" HelpFile="" />
    </Messages>
    </root>
    </results>
    </return>
    At the end of the job log it just shows this:
    Finished processing the 'Inventory Weekly 2009 08' partition.
    Processing of the 'Inventory Weekly 2009 06' partition has started.
    Finished processing the 'Inventory Weekly 2009 06' partition.
    Processing of the 'Inventory Weekly 2010 02' partition has started.
    The job completed with failure.
    The job completed with failure.
    The job completed with failure.
    Execution complete
    When I run process update from Studio it processes all of the attributes and measure group partitions, then throws a single 'error' result with no description or message.  It appears that all partitions process successfully.  See the screen shot:
    This script ran fine up until yesterday.  There were no system changes.  The same script is currently running fine on the production SQLServer 2008 instance.
    Anyone see anything like this happening in SSAS 2014?  Any tips on further trouble shooting?

    Hi Bendare2,
    Thank you for sharing your solution.
    Regards,
    Simon Hou
    TechNet Community Support

  • Dynamic stamp scripting which worked in Acrobat 9 Pro not working in Acrobat XI Pro

    I don't know JavaScript, so I am flying blind. I have recently updated to Acrobat XI Pro (on Win 7 Pro). I have had trouble setting up the same dynamic stamps that I had working in Acrobat 9. Just creating the stamps has been difficult, but the real pain has been trying to use the same scripting that I was using before. In particular, I have a field in which I want to enter details of a payment, such as cheque number. The script that worked before was:
    var cAsk = "Enter Payment Details" ;
    var cTitle = "Payment Details:  ";
    if(event.source.forReal && (event.source.stampName == "#X-MzCINchnGa7KblIGbv5C"))
      var cMsg = app.response(cAsk, cTitle);
      event.value = cMsg;
      event.source.source.info.exhibit = cMsg;
    The JavaScript debugger goes nuts about event.source being null and I am completely lost.
    Can anyone suggest a script which is likely to work for me? Is there any tutorial or similar material dealing with these issues in Acrobat XI Pro and in language that I am likely to understand?
    Thanks in advance.

    Change the start of the if-statement to:
    if (event.source && event.source.forReal && ...

  • Dynamic select * script

    We are transferring our database from version 7 (on VAX) to version 10 (on 2003). Part of the checking mechanism is to select all data from all tables into spool files and compare the file contents. The initial test of the provided scripts didn't work as no order clauses were specified, so when they were run on the different databases, the data order was random and comparison of the spool files impossible.
    Table names cannot be hardcoded into the script due to other changes being made during the transfer.
    I have produced a script which selects all of the contents from all of the tables into individual spool files. I have also produced one which will select the data from tables and order by the primary key. It may be a Monday morning thing, but what I am struggling to do is combine the two scripts together. The resultant script must be able to run on both a version 7 and a version 10 database....
    Script to select everything (unordered):
    select 'spool c:\temp\'||table_name||'.lst'
    ||chr(10)||
    'select * from '||table_name||';'
    ||chr(10)||
    'spool off' from user_tables;
    Script to select from specified table ordered by primary key
    select * from table1 order by
    (select column_name from
    user_cons_columns
    where constraint_name =
    (select constraint_name
    from user_constraints
    where table_name = 'TABLE1'
    and constraint_type = 'P'))
    I tried an 'ORDER BY 1,2' at the end of the first script and this works, but could be better. I can't use more than the '1,2' as some tables only have 2 columns, but some tables have 20 columns and ordering by the first two columns on these tables isn't ideal.
    Hope this all makes sense to someone! Can anyone tell me how to combine the two together so I get ordered selects from all tables?

    Thanks for the reply! - that has been considered, but in order to get 7 to talk to 10, we would need to install an intermediate 8 database. If possible, we need to do it the way the vendor is suggesting to limit the paperwork involved and I would rather have the scripts dynamically created than with hardcoded tables

  • Load image dynamically by scripting to dynamic xml pdf, is it possible?

    Hi All,
    I've uploaded static pdf form to http://groups.google.com/group/livecycle/web/logo.pdf.
    The form contains ImageField.
    In the "docReady" event of the form I wrote a script:
    ImageField1.value.image.href="http://www.quicksoft.co.il/images/
    quicksoftlogo2.jpg";
    When the form is loaded the ImageField shows the image from the url
    I've updated in the script.
    Once the form is saved as dynamic xml pdf the script stop working.
    Is that means that it is not possible to load images by scripting to
    dynamic xml pdfs?
    Anyone familiar with workarounds for it?
    Thanks in advance,
    Rbuz

    I got an answer from Adobe:
    Dynamic change of an image href has been disabled due to potential security issues. There are however a few workarounds to choose from:
    1. Embedding the images in the form as hidden objects. They can then be set to visible on initialize or clicking a button. This will affect performance, but if the images are in a compressed format, this can be minimized.
    2. Create a Web service interface to grab the image from wherever they are stored, base64 encode it and return it to the form. You would also have to update the bindings for the image field on the form (a one time operation).

  • How to parse a text file and produce a dynamic shell script for linking?

    I have some mapping files, one example is like this one;
    $ cat CON_xfrm_contract_to_20080302.map
    (object mfile_c_type
    (path "file:OBSOLETE")
    (fs "file://amanos/s01/abinitio/data/prod/mfs/mfs_16way")
    (local_paths 16
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"))In this file's content I have some exracted text files with same names under different folders;
    $ ls -lt /s01/abinitio/data/prod/mfs/parts/mfs_16way_*/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat   [
    -rw-rw-rw-   1 ab_live  abinitio 438652105 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438490410 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438219252 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438521432 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438488130 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438249547 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438312177 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 439074566 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438722261 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438742477 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438517268 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438645835 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438334994 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438470743 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438095853 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438434204 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.datI need a shell script which will produce a shell script from the content of the mapping file so that I can be able to symbolicly link these files with different names and under the same folder, like;
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat ./mfs_16way_001.CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat ./mfs_16way_016.CON_xfrm_contract_to_20080302.datI am a newbie for shell scripting, I tried several awk and sed operations but couldn't get close to this output :(
    If you guide me I will be so glad, thank you.
    ps: amanos is the name of this server.

    this is thepoint that I am stuck, I can not add the destination sym.link name to the end of each line;
    $ grep "  \"file://amanos" CON_xfrm_contract_to_20080302.map | cut -c17- | sed  's/"//;s/)//g' | sed 's/\/s01/ln -s \/s01/g'
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    $ /)//g' | sed 's/\/s01/ln -s \/s01/g' | awk -F\/ '{print $8"."$14}'                                                       <
    mfs_16way_001.CON_xfrm_contract_to_20080302.dat
    mfs_16way_002.CON_xfrm_contract_to_20080302.dat
    mfs_16way_003.CON_xfrm_contract_to_20080302.dat
    mfs_16way_004.CON_xfrm_contract_to_20080302.dat
    mfs_16way_005.CON_xfrm_contract_to_20080302.dat
    mfs_16way_006.CON_xfrm_contract_to_20080302.dat
    mfs_16way_007.CON_xfrm_contract_to_20080302.dat
    mfs_16way_008.CON_xfrm_contract_to_20080302.dat
    mfs_16way_009.CON_xfrm_contract_to_20080302.dat
    mfs_16way_010.CON_xfrm_contract_to_20080302.dat
    mfs_16way_011.CON_xfrm_contract_to_20080302.dat
    mfs_16way_012.CON_xfrm_contract_to_20080302.dat
    mfs_16way_013.CON_xfrm_contract_to_20080302.dat
    mfs_16way_014.CON_xfrm_contract_to_20080302.dat
    mfs_16way_015.CON_xfrm_contract_to_20080302.dat
    mfs_16way_016.CON_xfrm_contract_to_20080302.datMessage was edited by:
    antu
    Message was edited by:
    antu

  • Dynamic shell script scheduling

    I want to automate a report to run on the 20th of every month through a shell script. However, I don't want to run if 20th happens to be a weekend. Any ideas on how to do this? Do I need a seperate script to check for the date?
    thanks

    If you do not want to use shell scripts please have a look at the documentation for 'schedule' command line parameter for reports for scheduling
    Thanks
    The Oracle Reports Team

  • Dynamic OLAPLOOKUP script logic

    Hi all,
    Has anyone been able to work out how to retriev in a lookup the dynamic parent member of the time dimension.
    So, if the logic is executed or 2008.FEB for example, I want the lookup to pick up 2008.TOTAL, for 2009.APR it would be 2009.TOTAL
    *OLAPLOOKUP FINANCE
         *DIM TIME=Time.AnnualTotal
         *DIM DATASRC="Input"
         *DIM ACCDETAIL="F_NONFLOW"
         *DIM CURRENCY="LC"
         *DIM Entity="EM_TMPrinting"
         *DIM GroupPressHours:Account="KP000020"   //Press Hours
         *DIM GroupPressHours:Department="DPR.0600"
         *DIM GroupPressHours:ISSUES="All_Issues"
         *DIM GroupPressHours:PRODUCT="All_Product"
         *DIM GroupPressHours:SUBPRODUCT="All_SubProduct"
    *ENDLOOKUP
    I have tried various different methods for retrieving the YEAR.TOTAL member like:
    1) Storing the correct YEAR.TOTAL as a property of the time dimension (e.g. against 2009.MAR, the property AnnualTotal has 2009.TOTAL)
    2) Trying various dynamic lookup formulaes like:
         *DIM TIME=Time.AnnualTotal
         *DIM TIME=%YEAR%.TOTAL
         *MEMBERSET(%TotTime%,"[TIME].parent.parent")
         *DIM TIME=%TOTTIME%
         *DIM TIME=[%SET%].parent.parent
    The logic only works if I hard code the *DIM TIME statement (like *DIM TIME = 2008.TOTAL) which is obviously not dynamic.
    Really appreciate any thoughts on this...
    Anis

    Hi Anis,
    I do not believe that properties are supported like for the SQL OLAPLOOKUP. You can however try the native MDX Syntax.
    Time.CurrenMember.Properties("TimeAnnual")
    Be carefull, the property name is Case Sensitive. If have not tested that myself, just a suggestion.
    Regards,
    Marcel

  • Dynamic Fragmented Script

    Hi,
    I am preparing a script for table / index movement.So I classified the activity into 4 STEPS.
    I prepared some query for it.*I couldn't combine all those things into a single query*.I don't know it is possible or not.Anyhow i am trying.......please anyone help me out if u know.
    Steps
    1,Find Partition/sub-partition and Index Partition/Index Sub-partition in tables.
    2,Find Totoal no of extents < 15 , >50 , >100
    3,Move the table
    4,Move the index or rebuit
    Step 1:
    select sp.TABLE_NAME,sp.PARTITION_NAME,sp.SUBPARTITION_NAME,sp.tablespace_name from all_tab_subPARTITIONS SP;
    select ind.index_name,ind.PARTITION_NAME,ind.SUBPARTITION_NAME,ind.TABLESPACE_NAME from all_tab_subPARTITIONS ind;
    Step 2:
    we have 4 tablespaces such as GT1,GT2,GT3,GT4.
    If total number of extents less than 50,the objects should be in GT1.
    If 50 > and < 100,,the objects should be moved to GT2.
    If 100 > and < 200,,the objects should be moved to GT3.
    If 200 more,the objects should be moved to GT4.
    No need to bother present tablespace.
    I am trying like this
    select TABLESPACE_NAME,segment_name,count(*) from dba_segments where extents in ('OS',
    'O_RDER',
    'O_PACKAGE',
    'O_PICK',
    'I_TRIP',
    'S_G',
    'C_HEADER',
    'O_LINE',
    'I_LINE')
    and owner='DTAT' and segment_type='TABLE_PARTITION' group by segment_name,TABLESPACE_NAME ;
    I couldn't combine these outputs.I don't how to Combine.
    I need outout like this.
    1,If it's partition means, Alter table TABLE_NAME move partition tablespace TABLESPACE_NAME;
    2,If it's subpartition means, AlTER TABLE TABLE_NAME move subpartition partition name  tablespace TABLESPACENAME;
    3,If it's index partitions means, Alter index index_NAME rebuild partition tablespace TABLESPACE_NAME;
    4,If it's index subpartitions means, ALTER index index_NAME REBUILD subpartition partition name TABLESPACENAME;
    Currently we doing seperate scripts for each and every activity and paste the outout in excel and again execute a script with help of previous output.It is very tedious work...................It is taking a lot of time to accomplish the task.
    I believe,all of you understand a little bit.
    Thanks & Regards,
    VN
    Edited by: user3266490 on Nov 16, 2011 10:47 PM

    Hi,
    Thanks for your reply.
    Sorry for delayed reply.
    1,GT1 has initial 131072 ,next extent 131072,pctincrease 0.
    2,GT2 has initial 1310720 ,next extent 1310720,pctincrease 0.
    3,GT3 has initial 13107200,next extent 13107200,pctincrease 0.
    4,GT4 has initial 131072000,next extent 131072000,pctincrease 0.
    Only initial extent size is differ.
    Segment_name Partition_name Tablespace Extents Proposed _Tablespace.
    OS P_OS_1_2010 GT1 17 GT2 -----Current extent size is 17.So moved to one level
    OS P_OS_2_2010 GT2 95 GT3 -----Current extent size is 95.So moved to one level
    OS P_OS_3_2010 GT1 140 GT3 -----Current extent size is 140.So moved to two levels
    OS P_OS_4_2010 GT3 320 GT4 -----Current extent size is 320.So moved to two levels
    OS P_OS_1_2011 GT2 1405 GT4 -----Current extent size is 1405.So moved to two levels.GT4 is a Upper Limit
    OS P_OS_2_2011 GT3 755 GT4 -----Current extent size is 755.So moved to LAST  level. Here noneed to move  two levels because GT4 is a upper Limit.
    Thanks & Regards,
    VN
    Edited by: user3266490 on Nov 17, 2011 10:56 PM

  • Dynamic functions/script

    Hi,
    Is there any way of inserting a function dinamically into a pdf?
    In my pdf I always use the same set of functions. If one of them change I need to change all the pdfs. If I insert them dinamically, the problem would be solved.
    Because the scripts are associated with each kind of object, I was wondering if it is possible to pass those functions as the text of some field object (using xdp or xfdf) and then, inside the form re-rendering a specific object with that script...
    Is this possible? Is there any other way?
    Thank you

    Hi again,
    For instance, a script object would have a script tag like this:
    If this object exist in a pdf without anycode, can´t we change it during the utilization of the form?

  • SSIS 2005 Script task to process XMLA

    Hi,
    I am looking for a script (in script task SSIS 2005) to execute the XMLA command.This needs to be done through script only as my Analysis DDL task is having issue with connection.Please let me know,if any one can help me on this.
    Thanks,
    Ramesh

    Not sure whats the issue with your connection but we usually make use of dynamic XMLA scripts generated using script task and pass them onto Analysis services ddl task to create partitions. Similarly we use analysis services processing task to process the
    created partitions. If you can give more details on issue we may be able to help you out.
    Alternatively, if you want a solution using only script task have a look at the below
    http://bishtabhinav.wordpress.com/2012/06/01/cube-processing-using-ssis/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Script: footer text dynamically.

    Hi Gurus,
                   i want the footer text to be printed dynamically in scripts.from billing document. for eg: "goodssold for the month". using the header text 001.how to solve this problem.its very urgent.
    Correct answers will be fully rewarded.
    Thanks & Regards.
    sirish.

    Hi friend,
                    Can u explain me in detail. i want that text to be dynamic.what ever i give the message in VF03 header text it should refelect in my footer window.
    Reply me soon friend.
    sirish

Maybe you are looking for

  • Lost Download: Error -208

    Hi, I bought only my 2nd iTunes album and had issues. At first 4 cuts failed to download giving me the -208 error code. They remained in my "download" column and I was able to after repeated attempts (like 50!) to get 3 of them. I figured I get the l

  • Access denied error when starting DIAdem from LabVIEW

    We are using the DIAdem Connectivity Toolkit in our application.  Our application starts a DIAdem session to handle querying and datasheet creation.  On a recent installation at a customer, our application was not able to communicate with DIAdem, i.e

  • Why authorization for cost center groups does not worked ?

    hello all, I would like to give authorization for a CO report (S_ALR_87013625) based on authorization values : cost center groups. But, unfortunately, it doesn't work. I get a message : No authorization for x of x read records. Is it only possible to

  • Use external display for movies only

    Hi, I have a 22" external display which I like to use for watching DVDs only. Mirroring is not an option for me as this limits the display to a lower resolution. How can I configure my Mac so that whenever I insert a DVD (or start FrontRow) this will

  • Error with automator & soundtrack pro

    I'm trying to make a workflow that will take a finder selection of apple loops (including a folder) and open them with soundtrack pro and save as... AIFF files. I'm getting an error on the last step no matter what I do. I originally thought the aiff