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.
Similar Messages
-
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. -
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.
-
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 -
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//jacobPaigeT 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. -
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()' > Print </A>
</td></tr></table>
</td></tr></table>
</td>
<td> </td>
Are you saying I have to specify the tables in this? -
How do we get rid of an alias table once we created it in EPMA - dimension library (version 11.1.2.x).
For example I have 4 alias. English, French, German, Spanish
We aren't going to use Spanish in the end so want to get rid of it from Planning. There is no alias associated with Spanish either.
The error message says: The following error occurred: Member "Spanish" is referenced by another Member.
It keeps telling me that the member is reference somewhere but we have no alias names in the alias table we want to remove. Is there some back end process we need to do?Try to execute in your planning scheme
select mbr.object_name member_name,aln.object_name spanish_name,dim.object_name dim_name
from hsp_object alt,hsp_object ald,hsp_object mbr,hsp_object aln,hsp_alias alr,hsp_object dim
where upper(alt.object_name)='SPANISH'
and alt.parent_id= ald.object_id
and ald.object_name='Aliases'
and alr.member_id =mbr.object_id
and alr.aliastbl_id=alt.object_id
and alr.alias_id=aln.object_id
and mbr.object_type=dim.object_id -
SQL-developer 4 EA2
When copying a table to a name which already exists (as a procedure) SQL-developer replies that the copy- process took place although it didn't.
You do not get the error message ORA-00955 "name already exists"
regardsIf the error is on your mac computer, launch Keynote, then click the word "keynote" beside the apple, and select to "provide Keynote feedback"
If on an iOS device, go to www.apple.com/feedback and provide feedback from this web site -
Hello ..
i want to join an alias Table in an SQL statment something like
Invoices_Table
-Inv_ID
-Amount
-Delevery_Country_id
-Bill_Country_id
Country_Table
-Country_id
-Country_name
I want to join Country_ID once for deleivery Country and then for Bill_Country. Which are not necessarly the same ..
How can i express it in SQL ..?
ThanxTry
API> CREATE TABLE Invoices_Table
2 (Inv_ID VARCHAR2(100),
3 Amount VARCHAR2(100),
4 Delevery_Country_id VARCHAR2(100),
5 Bill_Country_id VARCHAR2(100));
Tabla creada.
Transcurrido: 00:00:00.34
API>
API> CREATE TABLE Country_Table(
2 Country_id VARCHAR2(100),
3 Country_name VARCHAR2(100));
Tabla creada.
Transcurrido: 00:00:00.04
API>
API> INSERT INTO Invoices_Table VALUES('A','A','1','2');
1 fila creada.
Transcurrido: 00:00:00.04
API> INSERT INTO Country_Table VALUES('1','Country1');
1 fila creada.
Transcurrido: 00:00:00.03
API> INSERT INTO Country_Table VALUES('2','Country2');
1 fila creada.
Transcurrido: 00:00:00.03
API> COMMIT;
Validación terminada.
Transcurrido: 00:00:00.03
API> SELECT I.Inv_ID,
2 C1.Country_name AS NAME1,
3 C2.Country_name AS NAME1
4 FROM Invoices_Table I, Country_Table C1, Country_Table C2
5 WHERE I.Delevery_Country_id = C1.Country_id (+)
6 AND I.Bill_Country_id = C2.Country_id (+);
INV_ID
NAME1
NAME1
A
Country1
Country2
Transcurrido: 00:00:00.07 -
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. -
How to use non-default Alias Table in Analyzer report
Hi,I defined many alias tables in Essbase. I would like to use a different alias table other than the "default" in Analyzer 6.5 report. In the on-line help, it said I can modify in "database connection properties" when first defining a new report to use a specific alias table. It tells me to do the following: Click the "New" toolbar button. Select a Display Type or Layout, and click OK. Right-click a database connection name in the "Select Database Connections" dialog box, and select Modify from the right-click menu.So I did this, but as I did the last-right click, there is no "Modify" option available. Only has "Add New..", "Database Connection Properties.." However, if I defined a new personal database connection using the login user, I can select to use other alias table. But this will go to personal database connection properties.Is it possible to specifically tell Analyzer to use other alias the global level in database connection? What I use to do is to have certain reports to use the default alias, and another to use another alias table. These reports should be able to share across all users.Sam
In deed it is fix in the GA.Another way to set the alias table is to do it in the Admin client. If you add a connexion to a user there is a new 6.5 button "set alias" that allow you to set the default alias table for this specific user. But, it does not exit on a user group level.
-
Copying a table from one databse to another
Hi,
I used the following code to copy a table from one database to another.
set copycommit 1
set arraysize 1000
copy from username/passwd@tnsname -
create <tablename> -
using -
select * from <tablename>
But I get the following error:
set copycommit 1
ERROR at line 1:
ORA-00922: missing or invalid option
Could you please let me know how this can be done.
Thanks,
NarasimhanThanks for your suggestions.I created a database link.I had no problems.
Then when i issue the command
copy from uname/password@db
create <tablename>
using
select * from <tablename>
<Here db is database link to source database identified by uname and password>.
I still get the error
copy from uname/password@db
ERROR at line 1:
ORA-00900: invalid SQL statement
Does it mean that the command is wrong?Or I'm doing something different.
Thanks! -
4.0 EA3 - Data Default not duplicated when copying a table
I noticed that when copying a table from one schema to another, if a column has a data default property it is not preserved.
Steps to recreate:
Copy a table that has at least one column with a non-null DATA_DEFAULT property (right click on table -> table -> copy)
Double click on the new table, and open the Columns tab. Notice that all values under DATA_DEFAULT are null.The same behavious exists in 3.2.20.09 and whether the table has existing data or not.
-
how do I keep format when copying a table to keynote? paste and match style does not keep format
It used to work until recent updates and it is very frustrating.....I hope someone out there knows how to deal with this.
-
SAP Query Alias Table in Info-set not working
Hi Guys,
I'm having a bit of trouble with a query I'm writing in SQ01.
I am trying to create a standard margin report between two different costing variants that we use.
n order to do so I have had to employ the use of alias tables.
I have named the alias tables KEKO_2 and KEPH_2 accordingly and joined them in the info set with the same joins as the original tables (Left Outer to MARC on MATNR and WERKS)
However, when I have come to test the query in SQ01 I get a runtime error which states the following:
The following syntax error was found in the program
AQA0MASTER_DATA=STANDARDMARGIN :
"Field "KEPH_2-KST001" is unknown. It is neither in one of the specified
tables nor defined by a "DATA" statement . . . . . . . . . ."
But it is in a specified table! My alias table.
How can I make this query work?
Any help would be appreciated.
Thanks in advance.Hi,
This is SAP business one reporting and printing forum. Please find correct forum and repost your question to get quick assistance.
Please close this thread by marking helpful answer.
Thanks & Regards,
Nagarajan
Maybe you are looking for
-
Hi, I'm using a javascript popup calendar on a web page which can return a timestamp in either of 3 formats (i can choose whichever): dd-mm-yyyy hh:mm:ss mm/dd/yyyy hh:mm:ss yyyy-mm-dd hh:mm:ss I want to convert this form value into the xsd datetime
-
Logging in JSP with Appserver Ed. 8
Hi, I've got a JSP with several log levels (from SEVERE to FINEST). In the logs of the application server, I only see the ones from SEVERE to INFO). I've tried to change some log configuration in the admin console (Root, Server, Web Container) but it
-
Hello all, Quick question. I see that in the description of photo sharing on apples site they say the following. All your photos on your Mac or PC Your computer automatically keeps all the photos that come through your Photo Stream. I am wondering if
-
Hi, If I create a table with a lob and an inserted lob is greater then 4000 bytes how does it get stored in the tablespace. I know it gets stored out-of-the-row, but how much space does it use in a local managed tablespace. For example I got a LMS of
-
Can't open pdf attachment without saving first
Whenever someone emails me with a pdf attachment I cannot just open the attachment. It makes me save the document first, locate the file I just saved in my hard drive, and then I can open it. I started having this problem earlier this week. Before, I