Copying Alias Tables in ESSCMD script

Hello,I can't seem to find a way to copy an alias table using an ESSCMD script. In particular, there is no way to export one to a text file to then subsequently load via the LOADALIAS command.I realized the hard way that the COPYOBJECT command does not copy alias tables in essbase 6.1.4.-dan

Hi,
You can extract the .ads file from LCM, rename the alias and reload in EPMA using a profile for flat files.

Similar Messages

  • Exporting Alias Tables from Esscmd

    I'd like to export an Essbase Alias table through Esscmd. Is there anyway to perform that function?My ultimate goal is to copy 1 alias table to another within the same database. I'd then run a load rule to change the appropriate dimensions for this new alias table.Thanks

    Thanks for your help, but i'm not too sure how to do this. I am currently exporting to excel using the following script:
    <!-- Print --->
    <td>
    <table class="SAPBEXBtnStdBorder" cellspacing="0" cellpadding="0" border="0"><tr><td nowrap>
    <table border="0" cellpadding="0" cellspacing="1"><tr><td nowrap class="SAPBEXBtnStdIe4">
    <A class=SAPBEXBtnStd  title="Print <SAP_BW_TEXT  program='SAPLRRSV'  key='738'>" <A href='javascript:printIt()' >&nbspPrint </A>
    </td></tr></table>
    </td></tr></table>
    </td>
    <td>  </td>
    Are you saying I have to specify the tables in this?

  • Automating Copying Alias Table

    Is there a way to automate the copying of an alias table to another alias table in an outline?We are on v5.02 patch12. Thanks.

    Check out the COPYOBJECT command in ESSCMD - an alias table is one of the objects you can copy from one database to another.Regards,Jade--------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected] ---Message Posted by jesmith ??3/21/02 05:03---Is there a way to automate the copying of an alias table to another alias table in an outline?We are on v5.02 patch12. Thanks.

  • Copying Alias Tables in EPMA

    Hi All,
    Is anyone aware of an easier way of copying an Alias table from the 'Default' table to another alias table other than using the EPMAFileGenerator to export the metadata, copy & pasting the aliases to the other table and then re-importing the metadata? We are on v.11.1.2.1. Thanks in advance!

    Hi,
    You can extract the .ads file from LCM, rename the alias and reload in EPMA using a profile for flat files.

  • How to copy a physical Alias table from one rpd to another

    Hi
    I am copy pasting the physical tables from one rpd to another. I first copied the physical table and then tried to copy the alias table i get the message ' Unknown Error' when i click ok it says
    'Failed to copy from clip board"

    Identify the "class=MyStyle" string in the MTML code, and use the Multi-File Find and Replace feature to step through each topic and change the specific instances to "class=MyOtherStyle." (I doubt that you'll want to "Replace All".)
    Sorry, there's no silver bullet!
    Good luck,
    Leon

  • Adding Alias Tables

    2 Questions:
    I want to combine my member names and alias table (default) into a new alias table such that the new alias table would be (Member Name - Alias Default). Is there a way to do this through a script ?
    Also currently we only have 1 alias table, default, will there be any considerable performance impacts to adding an addition alias table ?

    If this is a planning application, alias tables have to be created with in the planning web and upon refresh it will be pushed to essbase. I dont think you can do this using a script for planning. Even if you create these tables directly in essbase, those will be dropped during the application refresh.
    If it was an " Essbase-only " application you can import/export tables using maxl/esscmd.
    Adding alias table will not shown a significant impact on performance. You can have upto 9 additional alias tables.
    Hope this helps!
    Nra

  • How to copy a table with LONG and CLOB datatype over a dblink?

    Hi All,
    I need to copy a table from an external database into a local one. Note that this table has both LONG and CLOB datatypes included.
    I have taken 2 approaches to do this:
    1. Use the CREATE TABLE AS....
    SQL> create table XXXX_TEST as select * from XXXX_INDV_DOCS@ext_db;
    create table XXXX_TEST as select * from XXXX_INDV_DOCS@ext_db
    ERROR at line 1:
    ORA-00997: illegal use of LONG datatype
    2. After reading some threads I tried to use the COPY command:
    SQL> COPY FROM xxxx/pass@ext_db TO xxxx/pass@target_db REPLACE XXXX_INDV_DOCS USING SELECT * FROM XXXX_INDV_DOCS;
    Array fetch/bind size is 15. (arraysize is 15)
    Will commit when done. (copycommit is 0)
    Maximum long size is 80. (long is 80)
    CPY-0012: Datatype cannot be copied
    If my understanding is correct the 1st statement fails because there is a LONG datatype in XXXX_INDV_DOCS table and 2nd one fails because there is a CLOB datatype.
    Is there a way to copy the entire table (all columns including both LONG and CLOB) over a dblink?
    Would greatelly appriciate any workaround or ideas!
    Regards,
    Pawel.

    Hi Nicolas,
    There is a reason I am not using export/import:
    - I would like to have a one-script solution for this problem (meaning execute one script on one machine)
    - I am not able to make an SSH connection from the target DB to the local one (although the otherway it works fine) which means I cannot copy the dump file from target server to local one.
    - with export/import I need to have an SSH connection on the target DB in order to issue the exp command...
    Therefore, I am looking for a solution (or a workaround) which will work over a DBLINK.
    Regards,
    Pawel.

  • Can't make «class ctnr» of alias - error message in script

    I'm trying to take Apple's own "Add To File Names" script from a few years back and get it to work in 10.6.x but keep getting this error:
    Can’t make «class ctnr» of alias "Macintosh HD:Library:Scripts:add to names.scpt" into type text.
    I'm not an AppleScript expert by any stretch of the imagination. I'll paste the entire script unedited from Apple:
    Add Prefix-Suffix to File Names
    This script is designed to add a prefix or suffix to files in the front window of the desktop.
    If no folder windows are open, the script will effect items on the desktop.
    Copyright © 2001 Apple Computer, Inc.
    You may incorporate this Apple sample code into your program(s) without
    restriction. This Apple sample code has been provided "AS IS" and the
    responsibility for its operation is yours. You are not permitted to
    redistribute this Apple sample code as "Apple sample code" after having
    made changes. If you're going to redistribute the code, we require
    that you make it clear that the code was descended from Apple sample
    code, but that you've made changes.
    -- The following line is disabled due to a Menu Manager bug
    --set the source_folder to (choose folder with prompt "Pick the folder containing the files to rename:")
    try
    tell application "Finder" to set the source_folder to (folder of the front window) as alias
    on error -- no open folder windows
    set the source_folder to path to desktop folder as alias
    end try
    set the prefixorsuffix to ""
    repeat
    display dialog "Enter the prefix or suffix to use:" default answer the prefixorsuffix buttons {"Cancel", "Prefix", "Suffix"}
    copy the result as list to {the prefixorsuffix, the button_pressed}
    if the prefixorsuffix is not "" then exit repeat
    end repeat
    set the item_list to list folder source_folder without invisibles
    set source_folder to source_folder as string
    repeat with i from 1 to number of items in the item_list
    set this_item to item i of the item_list
    set this_item to (source_folder & this_item) as alias
    set this_info to info for this_item
    set the current_name to the name of this_info
    if folder of this_info is false and ¬
    alias of this_info is false then
    if the button_pressed is "Prefix" then
    set the newfilename to the (the prefixorsuffix & the current_name) as string
    else
    set the newfilename to the (the current_name & the prefixorsuffix) as string
    end if
    my setitem_name(thisitem, the newfilename)
    end if
    end repeat
    beep 2
    on setitem_name(thisitem, newitemname)
    tell application "Finder"
    --activate
    set the parentcontainerpath to (the container of this_item) as text
    if not (exists item (the parentcontainerpath & newitemname)) then
    try
    set the name of this_item to newitemname
    on error the error_message number the error_number
    if the error_number is -59 then
    set the error_message to "This name contains improper characters, such as a colon (:)."
    else --the suggested name is too long
    set the error_message to error_message -- "The name is more than 31 characters long."
    end if
    --beep
    tell me to display dialog the error_message default answer newitemname buttons {"Cancel", "Skip", "OK"} default button 3
    copy the result as list to {newitemname, button_pressed}
    if the button_pressed is "Skip" then return 0
    my setitem_name(thisitem, newitemname)
    end try
    else --the name already exists
    --beep
    tell me to display dialog "This name is already taken, please rename." default answer newitemname buttons {"Cancel", "Skip", "OK"} default button 3
    copy the result as list to {newitemname, button_pressed}
    if the button_pressed is "Skip" then return 0
    my setitem_name(thisitem, newitemname)
    end if
    end tell
    end setitemname

    Any idea how to fix that?
    Try replacing the following three lines:
    else
    *set the newfilename to the (the current_name & the prefixorsuffix) as string*
    *end if*
    with these ones:
    else
    *set name_extension to the name extension of this_info*
    *set P to offset of name_extension in current_name*
    *if P > 0 then*
    *set current_name to text 1 through (P - 2) of current_name*
    *set name_extension to "." & name_extension*
    else
    *set name_extension to ""*
    *end if*
    *set the newfilename to the (the current_name & the prefixorsuffix & name_extension) as string*
    *end if*

  • Copying a table with the right-click menu in schema browser fails to copy comments when string has single quote(s) (ascii chr(39))

    Hi,
    I'm running 32-bit version of SQL Developer v. 3.2.20.09 build 09.87, and I used the built in context menu (right-clicking from the schema browser) today to copy a table.  However, none of the comments copied.  When I dug into the PL/SQL that the menu-item is using, I realized that it fails because it doesn't handle single quotes within the comment string.
    For example, I have a table named WE_ENROLL_SNAPSHOT that I wanted to copy as WE_ENROLL_SNAPSHOT_V1 (within same schema name)
    1. I right-clicked on the object in the schema browser and selected Table > Copy...
    2. In the pop-up Copy window, I entered the new table name "WE_ENROLL_SNAPSHOT_V1" and ticked the box for "Include Data" option.  -- The PL/SQL that the menu-command is using is in the "SQL" tab of this window.  This is what I extracted later for testing the issue after the comments did not copy.
    Result: Table and data copied as-expected, but no column or table comments existed.
    I examined the PL/SQL block that the pop-up window issued, and saw this:
    declare
      l_sql varchar2(32767);
      c_tab_comment varchar2(32767);
      procedure run(p_sql varchar2) as
      begin
         execute immediate p_sql;
      end;
    begin
    run('create table "BI_ETL".WE_ENROLL_SNAPSHOT_V1 as select * from "BI_ETL"."WE_ENROLL_SNAPSHOT" where '||11||' = 11');
    select comments into c_tab_comment from sys.all_TAB_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and comments is not null;
    run('comment on table BI_ETL.WE_ENROLL_SNAPSHOT_V1 is '||''''||c_tab_comment||'''');
    for tc in (select column_name from sys.all_tab_cols where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT')
        loop
       for c in (select comments from sys.all_col_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and column_name=tc.column_name)
       loop
       run ('comment on column BI_ETL.WE_ENROLL_SNAPSHOT_V1.'||tc.column_name||' is '||''''||c.comments||'''');
    end loop;
    end loop;
    EXCEPTION
      WHEN OTHERS THEN NULL;
    end;
    The string of the table comment on WE_ENROLL_SNAPSHOT is this:
    WBIG table of frozen, point-in-time snapshots of Enrolled Students by Category/term/pidm. "Category" is historically, and commonly, our CENSUS snapshot; but, can also describe other frequencies, or categorizations, such as: End-of-Term (EOT), etc. Note: Prior to this table existing, Census-snapshots were stored in SATURN.SNAPREG_ALL. All FALL and SPRING term records prior-to-and-including Spring 2013 ('201230') have been migrated into this table -- EXCEPT a few select prior to Fall 2004 (200410) records where there are duplicates on term/pidm. NO Summer snapshots existed in SNAPREG_ALL, but were queried and stored retroactively (including terms prior to Spring 2013) for the purpose of future on-going year-over-year analysis and comparison.
    Note the single quotes in the comment: ... ('201230')
    So, in the above PL/SQL line 11 grabs this string into "c_tab_comment", but then line 12 fails because of the single quotes.  It doesn't know how to end the string because the single quotes in the string are not "escaped", and this messes up the concatenation on line 12.  (So, then no other column comments are created either because the block throws an error, and goes to line 22 for the exception and exits.)
    When I modify the above PL/SQL as my own anonymous block like this, it is successful:
    declare
      c_tab_comment VARCHAR2(32767);
    begin
    SELECT REPLACE(comments,chr(39),chr(39)||chr(39)) INTO c_tab_comment FROM sys.all_TAB_comments WHERE owner = 'BI_ETL'   AND table_name = 'WE_ENROLL_SNAPSHOT'  AND comments IS NOT NULL;
    EXECUTE IMMEDIATE 'comment on table BI_ETL.WE_ENROLL_SNAPSHOT_V1 is '''||c_tab_comment||'''';
    for tc in (select column_name from sys.all_tab_cols where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT')
        loop
       for c in (select REPLACE(comments,chr(39),chr(39)||chr(39)) comments from sys.all_col_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and column_name=tc.column_name)
       loop
       EXECUTE IMMEDIATE 'comment on column BI_ETL.WE_ENROLL_SNAPSHOT_V1.'||tc.column_name||' is '||''''||c.comments||'''';
    end loop;
    end loop;
    EXCEPTION
      WHEN OTHERS THEN NULL;
    end;
    On lines 4 and 8 I wrapped the "comments" from sys.all_tab_comments and sys.all_col_comments with a replace command finding every chr(39) and replacing with chr(39)||chr(39). (On line 8 I also had to alias the wrapped column as "comments" so line 10 would succeed.)
    Is this an issue with SQL Developer? Is there any chance that the menu-items can handle single quotes in comment strings? ... And, of course this makes me wonder which other context menu commands in the tool might have a similar issue.
    Thoughts?
    thanks//jacob

    PaigeT wrote:
    I know about quick drop, but it isn't helpful here. I want to be able to right click on a string or array wire, navigate to the string or array palette, and select the corresponding "Empty?" comparator. In this case, since I do actually know where those functions live, and I'm already using my mouse to right click on the wire, typing ctrl-space to open quick drop and then typing in the function name is actually more work than navigating to it in the palette. It would just be nice to have it on hand in the location I naturally go to look for it the first time. 
    I don't agree with this work flow.  Right hand on mouse, left hand on home keys.  Pressing CTRL + Space is done with the left hands, and then you could assign "ea" to "Empty Array" both of which is accessible with the left hand.  Darren posted a bunch of great shortcuts for the right handed developer.
    https://decibel.ni.com/content/docs/DOC-20453
    This is much faster than waiting for any right click menu navigation, even if it is found in the suggested subpalette.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Ssis - Copy all tables exists in a DB to Destination flatfiles

    could anyone help me out with this task-
    Copy all tables exists in a DB to Destination flatfiles.
    Condition 1) Name of flat file should be name of the Table
                      ex-   Employee.Txt
                  2) Flat files should be created in run time and should not create prior.

    Hi nikhila.k,
    According to your description, you want to export data from multiple SQL tables to multiple text files, and the file name should be the name of the corresponding table name.
    To achieve this requirement, we can refer to the reply post by user756519 in the following similar thread:
    http://stackoverflow.com/questions/6216486/exporting-data-from-multiple-sql-tables-to-different-flat-files-using-ssis-script
    Please modify the first step with below:
    Create a table named TablesList with the code below in SQL Server Management Studio (Ps: we can also change the FilePath to other place you want to put those text files):
    USE database_name
    GO
    SELECT IDENTITY(INT,1,1) as Id, name as TableName,'C:\Temp\' + name + '.txt' as FilePath
    INTO TablesList FROM sys.Tables
    WHERE name <> 'TablesList'
    GO
    Then we can refer to the other steps in the reply.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Export data with list alias from alternate alias table

    Hello,
    I am working on a data export out of my BSO app using @JExport.
    The problem is I need the default alias, alternate alias, data listed for all entities.
    I can achieve the default alias by listing @ALIAS(@CURRMBR("Entity"))
    How can I list the alternate alias?
    Any ideas?
    Thanks,
    Nima

    Thats what I thought...just wanted to recofirm...guess I will have to go with the MAXL option and run the calc-script 2 times- first time with the default table and second time with the alternate alias table- will have 2 separate files but can merge them later on...
    Thanks for your reply.
    Nima

  • Problem with alias table loading

    I am trying to load an alias table. As far as I know the .alt file needs to be kept on the server where Essbase is installed, not on the client machine.
    i have Remote connected to the server machine and kept the file ALT.alt directly under in the C drive.
    when running the following script:
    alter database 'APP'.'DB' load alias_table 'S' from data_file "C:\ALT.alt";
    I get the error that the file does not exist..
    Could you guys please clarify the situation.

    This file you were hoping to load: it's on the server, right? Not on the computer where the applet is running in a browser?
    (At least that's a common mistake made by people when they write their first applet.)
    If that's the case then you can't use a File object to access a file on a different computer. To access a file on the server, first you will have to put the file in a place on the server where it can be downloaded. Then in your applet you need to get a URL for the file. (The getDocumentBase() method can be used to prevent you from having to hard-code the full URL for the file.) Next, "this.getClass().getResourceAsStream(URL)" gets you an InputStream from which you can read the data from the file.

  • Setting security in ESSCMD script (long)

    Hi, I'm pretty new to Essbase but couldn't find an answer to a problem I'm having running a nightly script.Basically, I have to copy an application every night before running the nightly batch update - so that users can access either the pre- or post-update versions.We use a script like the following to make a copy of the application prior to updating the data: LOGIN "server" "username" "password" ; LOADDB "Snapshot" "History" ; SELECT "Snapshot" "History" ; DELETEAPP "Snapshot"; LOADDB "History" "History" ; SELECT "History" "History" ; COPYAPP "History" "Snapshot";     :END ; LOGOUT ; EXIT ;Basically, it deletes the "old" snapshot, and then copies the current History application / database as Snapshot.The problem I have is that a specified group of users need access to this database, but every time this script runs it deletes all their security access and I have to reset it through the Application Manager. The script runs after midnight, and a few of the users need access starting at 6:00 AM, and I don't want to have to dial in every day at 5:00 AM to set it.Is there a simple way to do this in the esscmd script we are running?Thanks,Scottp.s. using Essbase 5.0.2

    FYI-When you delete the application or Database ,all security asociated with with that application is deleted, so there is no way to get back the security setup .There is a work around to overcome it.1. Before you run your esscommand script,Take security file Backup on server and save it in a safe location.2.Run your esscomand script .3.copy back your security file on to the server, so that you can restore your stuff,without re-doing the whole process.This security file is available on Hyperion bin directory with .Sec Extension.Let me know, if you have any questions.Thanks

  • Copy a table from numbers to pages only with content

    Dear all,
    I'm rather new to iWork 08 and now i'm trying to copy a table from a numbers document to a pages document. When i do so it copies the table but with all the formulas and in pages it does not recognize what equals one cell to another. In other words, since the table in discussion has another table beneath it which is linked to with some simple formulas, and i copy only the above table it doesn't know how to link the results to the table below.
    To clarify if i copy and paste the whole numbers worksheet containing both tables it pastes into pages in the correct way, all the data being there.
    Having said that is there a way to copy only the content from numbers to pages?
    I ask this because i can think of no other way to copy and paste properly the table in question.
    You can clearly see here what i mean: http://gallery.me.com/bimmered#100024
    What you see in the left is the pages document zoomed out to 75%. If you look closely you can see in the lower left of it the unkown data in the table. On the center right you can see the numbers document showing exactly like i want to appear in pages too.
    On this pic you can see that copy and pasting the entire table works: http://gallery.me.com/bimmered#100031
    So...what's the catch?
    Thanks

    set the clipboard to (the clipboard as text)
    was THE script !
    Here is the enhanced version:
    --\[SCRIPT pasteValues.app]
    Enregistrer le script en tant qu'Application ou Progiciel : pasteValues.app
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
    Copier un bloc de cellules de Numbers dans le presse-papiers.
    Placer le curseur où vous voulez dans un document Pages (ce peut-être une cellule de table).
    menu Scripts > Pages > pasteValues
    Le script collera les valeurs seules.
    +++++++
    Save the script as an Application or an Application Bundle: pasteValues.app
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    Copy a block of cells from Numbers in the clipboard.
    Put the cursor where you wish in a Pages document (it may be a cell of a table).
    menu Scripts > Pages > pasteValues
    The script will paste the values only.
    Yvan KOENIG (Vallauris, FRANCE)
    le 18 novembre 2008
    property theApp : "Pages"
    --=============
    on run
    try
    set the clipboard to (the clipboard as text)
    on error (*
    • The clipboard was empty *)
    return
    end try
    my pasteIt()
    end run
    --=============
    on pasteIt()
    tell application theApp to activate
    tell application "System Events" to tell (first process whose title is theApp)
    keystroke "v" using {command down}
    end tell
    end pasteIt
    --=============
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE mardi 18 novembre 2008 18:53:50)

  • Pull Alternate Alias In a Report Script

    I am interested in pulling data from a database using members on the outline from an Alternate Alias table using a report script. I have not been able to find any report script commands that will let me do this. Is this possible to do?JBF

    Take a look at the <OUTALTSELECT command. It allows you to specify an alternate alias table in a report script.Regards,Jade----------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

Maybe you are looking for