Dynamic Alias
Hello,
I have some reports that the demand to change the alias of Portuguese to English. But I have to create a mechanism that causes the User can change dynamically from a report filter. I know the existence of the view selector column however I need to change the alias are on a hierarchy.
Thank you.
Hello,
I have some reports that the demand to change the alias of Portuguese to English. But I have to create a mechanism that causes the User can change dynamically from a report filter. I know the existence of the view selector column however I need to change the alias are on a hierarchy.
Thank you.
Similar Messages
-
Is it possible to use dynamic alias name in query for interactive report?
I have this SELECT and I would like to use the parameters used in alias request to build a dynamic crosstab report:
SELECT p.annee AS "Année", p.desc_rls AS "RLS",
SUM(CASE WHEN p.age BETWEEN :P2_AGE1 AND :P2_AGE2 THEN p.pop END) "0-4 ANS",
SUM(CASE WHEN p.age BETWEEN :P2_AGE3 AND :P2_AGE4 THEN p.pop END) "5-9 ANS",
SUM(CASE WHEN p.age BETWEEN :P2_AGE5 AND :P2_AGE6 THEN p.pop END) "10-14 ANS"
FROM pop_rls_isq_111 p
GROUP BY ROLLUP(p.annee, p.desc_rls);
Instead of coding "0-4 ANS" as alias, I would like for example use the parameters ":P2_AGE1 - :P2_AGE2 ANS".Hi,
to make your column headings dynamic you can use the substitution syntax in the "Column Heading" property of your IR columns. For example:
&P2_AGE1. - &P2_AGE2. ANSHope that helps
Patrick
My blog: http://www.oracleapex.info/
New Check out the Oracle APEX Essentials! -
Can I use dynamic alias to name a column?
I guys. I just want to know if it is possible to assign dynamic names to a column. for instance:
SQL> select sysdate+1 from dual;
SYSDATE+1
09-JUL-08the column name is SYSDATE+1. can I do something like:
SQL> select 1 as (select sysdate from dual) from dual;(this throws error)
The reason for this requirement is that I need to assign a column name according to a value that comes from a parameter. So, instead of returning something like:
SQL> select sysdate, sysdate+1 from dual;
SYSDATE SYSDATE+1
08-JUL-08 09-JUL-08I need to find a way to return something like:
SQL> select sysdate as <<dynamic column name based on parameter that has been passed in>>, sysdate+1 AS <<dynamic column name based on parameter that has been passed in>> from dual;Obviously I can use something like:
select sysdate as "08-JUL-08", sysdate+1 AS "09-JUL-08" from dual;But in this case I'm hard coding it. I need this alias to be dynamic.
Any way to do it?Why? Column names are a "programming thing" - not a "display thing".
When you render the columns, you can decide what and how to display them. It does not make any sense to attempt to do this dynamically.
Why not?
Sharable SQL.
Everytime you create a SQL and dynamically change the column aliases, you create a brand new unique SQL - even if the rest of the SELECT is exactly the same. This means you are stuffing the shared pool full of non-sharable SQL.
This is bad for performance (lots of hard parsing). It is bad for the shared pool (memory fragmentation). -
I am working with Diagnostic reporting groups in a healthcare setting. The problem I am trying to work around is a change in the aliases for different DRG's across different years. The changes don't correspond to a calendar year or my fiscal year, but the federal fiscal year which changes in October. So DRG of 004 has a description of spinal procedures for FFY02(Federal Fiscal Year 02) and a description of No longer valid for FFY03. If I query my data for our fiscal year 03(july02-june02) I cross the two FFYs and may need to have both descriptions depending on what part of the year the discharge occurs in. So I have brainstormed 3 ideas,1. 3 rollups under DRG with the DRG and FFY combination,i.e 002 FFY02 and 002 FFY03 but then you can't look at DRG 002 on one row. 2. Using three alternate alias tables, one for each FFY. Then the user has to select which description they want to use, and I haven't found an easy way to do this in Analyzer 6.5. Is there a way to switch Alias tables on the fly in analyzer instead of having to go into the connection and change it there...A radio button would be ideal. 3. Using partitioning to set up three identical cubes except for the descriptions on the DRGs. Not very space effecient, and still can't really look at DRG 002 on one line.Any suggestions???Thanks in advance
-
Cannot use alias for dynamic column name in SELECT statement
Hi,
I want to retrieve values from several tables by using dynamic column & table name as below:
DATA: tbl_name(30) TYPE c VALUE '/bic/tbi_srcsys', " staticly initialized for this example
col_name(30) TYPE c VALUE '/bic/bi_srcsys'. " staticly initialized for this example
SELECT (col_name) INTO CORRESPONDING FIELDS OF TABLE it_values FROM (tbl_name).
The internal table "it_values" does not contain a field named "/bic/bi_srcsys", instead it has another generic field "value" so that the above code can be applied to other tables. I tried to use alias (AS) as below:
SELECT (col_name) AS value INTO CORRESPONDING FIELDS OF TABLE it_values FROM (tbl_name).
But this cannot work. I know that there are other ways to solve this problem, such as by using a single field in SELECT .. ENDSELECT and subsequently appending it to the work area and internal table as below:
SELECT (col_name) INTO (lv_value) FROM (tbl_name).
wa_value-value = lv_value.
APPEND wa_value TO it_values.
ENDSELECT.
Just wonder if there is any other more elegant workaround, because I might have several other fields instead of only one?
Thanks.
Regards,
Joon MengHi Suhas,
thanks for the quick reply.
Sorry that I have not well described the structure of the internal table "it_values". This internal table contains several other fields (key, type, value, etc.).
I guess that the following code
SELECT (col_name) INTO TABLE it_values FROM (tbl_name).
works if the internal table only has one field (value) or the field "value" is in the first position, right?
In this case, I need to fill the "value" field of internal table it_values (ignore the other fields like type, key) with values retrieved from (col_name) of the DDIC table.
Looking forward to your reply.
BR,
Joon Meng -
SQL query alias names errors with dynamic lists
Hullo,
Problem:
- Made a query form book database. Have authors in separate table with unique ID's referring to them on book table.
- Query fetches author name in "Surname, Firstname initial.Secondfirstname initial" format, --> like "Bukowski, H.C" and giving that combo alias name in SQL like "AS 'author'"...
- Dynamic list works fine at start, but when ordered from detail table back to the mainlisting, it does make an error with SQL stating "unknown column 'author' in where clause"
That must be because the script looks for "author" column from the original table yeah, but how can I solve this? Any ideas? Does this mean that Alias names for columns are not possible or is there something i've missed?
Any ideas, suggestions?
Thanks,
KimmoKHi Kimmo,
ADDT´s dynamic lists can handle alias columns fine to my experience, but I reckon that you most probably applied the "CONCAT(...) AS author" query modification after having generated the list, and the list´s internal WHERE clause seems to have no clue of this alias column.
You can get an idea about using alias columns in Dynamic Lists in my tutorial "Dynamic Lists: exploring the Filter Conditions": http://www.guenter-schenk.com/tutorials/tutorial.php?id=6
Can you please post the list´s code on your server as text file (e.g. code.txt) and provide a link to this file ?
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
Physical Table (Dynamic Name) x Physical Table x Alias
Hello,
We are customizing the standard OBI Applications .rpd. but this question is in reference to OBIEE, hence the post here.
I have no problems with Physical Tables and Alias in the Physical layer.
It just happens that the standard OBI Applications .rdp has some other 'physical tables' - the one for: Dim_W_PARTY_ORG_D_Customer that in its properties uses a Dynamic Name pointing to a variable that contains W_PARTY_ORG_D.
There are other similar cases in the vanilla .rpd
I fail to understand why sometimes (most of the time) the vanilla .rpd uses Alias and in these few cases use this strange Physical table. Pls. anyone would care to comment ?
As we expand W_PARTY_ORG_D with new columns... these new columns are NOT automatically part of the Dim_W_PARTY_ORG_D_Customer as it happens in an Alias definition.
Txs. for any comments.
AntonioHi Antonio,
From the 11g documentation (http://docs.oracle.com/cd/E14571_01/bi.1111/e10540/physicallayer.htm#i1005872) ;
Select this option to use a session variable to specify the physical table name, similar to catalog and schema objects. This option is available for non-multidimensional data source tables when you select a table type of Physical Table.
You might want to choose this option if you have a multi-tenancy implementation and you want to define a separate physical table name for each customer. Another example would be to select between primary and shadow tables that are valid at different times in your ETL cycle. In both cases, you can assign session variables to dynamically select the appropriate table.
Hope this helps.
Daan Bakboord
http://obibb.wordpress.com -
Dynamic Time Series Alias Problem w Parens
When I have "Use Aliases" turned on, My Y-T-D function doesn't work if the time member alias uses the parenthesis character (I can't retrieve on a spreadsheet - the member isn't recognized).member: 2002_27 ... works greatalias: Week_27 ending 8/2/02 ... works greatalias: Week_27 (w/e 8/2/02) ... FAILSI can't find any documentation that you shouldn't use parentheses in alias names w/ the Y-T-D member.
Two pass won't effect dynamic time series. If the member was dynamic and you needed it two pass as well, that might make the order of the calculations different than you'd anticipate.
Dynamic Time Series will be calculated last so in your case, if you were selecting Y-T-D (Feb), the result would be M1->Jan + M2->Feb. I don't know if that will yield the correct result. I think you need to make sure the formula is correct for a given month and then see if the math should be calculating this way. -
'use dynamic name' and 'caching properites' options for alias table...
Hello everybody,
can anybody please explain 'use dynamic name' and 'caching properites' options for alias tables...
Thanks...
eagerly waiting for a response..
VijayYou want to create dynamic target table name right?
You can refresh a variable like #GET_SESSION
#GET_SESSION= SELECT <%=odiRef.getSession("SESS_NAME")%> FROM DUAL
My tmp table name like TMP_#GET_SESSION
then in your package refresh #GET_SESSION variable and you can use it.
I hope this can be helpful
Thanks -
Column alias for spatial column within cursor loop using dynamic SQL
The following PL/SQL is trying to generate an error report for records or objects which are 3 dimensional or above. I have no issue execute one statement in SQLPLUS but I need to use the column alias for the spatial column. But, it is a different story using PL/SQL and dynamic SQL Any help will be great because I've been working on this for than 8 hours but with no luck! Thanks.
Here is the error I'm getting,
stmt := 'select p.column_name.get_gtype(), id from '|| table_name p ' where p.column_name.get_gtype() > 2 ';
ERROR at line 15:
ORA-06550: line 15, column 79:
PLS-00103: Encountered the symbol "P" when expecting one of the following:
. ( * @ % & = - + ; < / > at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || member SUBMULTISET_
The symbol "* was inserted before "P" to continue.
and my PL/SQL is,
set serveroutput on size 100000 feedback off
declare
rs integer;
rs1 integer;
cur integer;
rp integer;
trs integer;
n integer;
un varchar2(30);
stmt varchar2(200);
begin
dbms_output.put_line(rpad('Table Name',40)||' Dimension');
dbms_output.put_line(rpad('-',53,'-'));
cur:= dbms_sql.open_cursor;
for t in (select column_name,table_name from user_sdo_geom_metadata where regexp_like(table_name, '[^[A-B]_[AB]$'))
loop
stmt := 'select p.column_name.get_gtype(), id from '|| table_name p ' where p.column_name.get_gtype() > 2 ';
dbms_sql.parse(cur, stmt, dbms_sql.native);
dbms_sql.define_column(cur, 1, rs);
dbms_sql.define_column(cur, 2, rs1);
rp:= dbms_sql.execute(cur);
n:=dbms_sql.fetch_rows(cur);
dbms_sql.column_value(cur, 1, rs);
dbms_sql.column_value(cur, 2, rs1);
dbms_output.put_line(rpad(t.table_name,38,'.')||rpad(rs,15)||rpad(rs1,15));
end loop;
dbms_sql.close_cursor(cur);
dbms_output.put_line(rpad('-',53,'-'));
end;
set serveroutput off feedback on feedback 6The following PL/SQL is trying to generate an error report for records or objects which are 3 dimensional or above. I have no issue execute one statement in SQLPLUS but I need to use the column alias for the spatial column. But, it is a different story using PL/SQL and dynamic SQL Any help will be great because I've been working on this for than 8 hours but with no luck! Thanks.
Here is the error I'm getting,
stmt := 'select p.column_name.get_gtype(), id from '|| table_name p ' where p.column_name.get_gtype() > 2 ';
ERROR at line 15:
ORA-06550: line 15, column 79:
PLS-00103: Encountered the symbol "P" when expecting one of the following:
. ( * @ % & = - + ; < / > at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || member SUBMULTISET_
The symbol "* was inserted before "P" to continue.
and my PL/SQL is,
set serveroutput on size 100000 feedback off
declare
rs integer;
rs1 integer;
cur integer;
rp integer;
trs integer;
n integer;
un varchar2(30);
stmt varchar2(200);
begin
dbms_output.put_line(rpad('Table Name',40)||' Dimension');
dbms_output.put_line(rpad('-',53,'-'));
cur:= dbms_sql.open_cursor;
for t in (select column_name,table_name from user_sdo_geom_metadata where regexp_like(table_name, '[^[A-B]_[AB]$'))
loop
stmt := 'select p.column_name.get_gtype(), id from '|| table_name p ' where p.column_name.get_gtype() > 2 ';
dbms_sql.parse(cur, stmt, dbms_sql.native);
dbms_sql.define_column(cur, 1, rs);
dbms_sql.define_column(cur, 2, rs1);
rp:= dbms_sql.execute(cur);
n:=dbms_sql.fetch_rows(cur);
dbms_sql.column_value(cur, 1, rs);
dbms_sql.column_value(cur, 2, rs1);
dbms_output.put_line(rpad(t.table_name,38,'.')||rpad(rs,15)||rpad(rs1,15));
end loop;
dbms_sql.close_cursor(cur);
dbms_output.put_line(rpad('-',53,'-'));
end;
set serveroutput off feedback on feedback 6 -
Get alias name from dynamic query
Hi All,
I would make a plsql function using dynamic query.
And the function takes a whole sql query as a parameter.
The main issue is that the function should get what alias or columns were queried.
For example,
FUNCTION_GET_QUERY_ALIAS('SELECT 1 AS col1, 2 AS col2 FROM DUAL')
Inside the function, it should find the alias name COL1 and COL2.
I'd appreciate for any help.I have modified print_table as function and made it to satisfy your needs.
SQL> CREATE OR REPLACE TYPE my_column_object AS OBJECT(ruw_number integer, column_name VARCHAR2(1000), column_val VARCHAR2(1000))
2 /
Type created.
SQL> CREATE OR REPLACE TYPE my_table_type AS TABLE OF my_column_object
2 /
Type created.
SQL> CREATE OR REPLACE FUNCTION print_table( p_query in varchar2 ) RETURN my_table_type PIPELINED
2 AS
3 l_theCursor INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
4 l_columnValue VARCHAR2(4000);
5 l_status INTEGER;
6 l_descTbl DBMS_SQL.DESC_TAB;
7 l_colCnt NUMBER;
8 l_rcount INTEGER := 0;
9 BEGIN
10 DBMS_SQL.PARSE( l_theCursor, p_query, dbms_sql.native );
11
12 DBMS_SQL.DESCRIBE_COLUMNS( l_theCursor, l_colCnt, l_descTbl );
13
14 FOR i IN 1 .. l_colCnt
15 LOOP
16 DBMS_SQL.DEFINE_COLUMN(l_theCursor, i, l_columnValue, 4000);
17 end loop;
18
19 l_status := DBMS_SQL.EXECUTE(l_theCursor);
20
21 WHILE ( DBMS_SQL.FETCH_ROWS(l_theCursor) > 0 )
22 LOOP
23 l_rcount := l_rcount + 1;
24 FOR i IN 1 .. l_colCnt
25 LOOP
26 DBMS_SQL.COLUMN_VALUE( l_theCursor, i, l_columnValue );
27
28 PIPE ROW(my_column_object(l_rcount,l_descTbl(i).col_name,l_columnValue));
29 END LOOP;
30 END LOOP;
31
32 RETURN;
33 end;
34 /
Function created.
SQL> select * from table(print_table('select * from emp'))
2 /
RUW_NUMBER COLUMN_NAME COLUMN_VAL
1 EMPNO 7369
1 ENAME SMITH
1 JOB CLERK
1 MGR 7902
1 HIREDATE 17-DEC-80
1 SAL 800
1 COMM
1 DEPTNO 20
1 DIV 10
2 EMPNO 7499
2 ENAME ALLEN
RUW_NUMBER COLUMN_NAME COLUMN_VAL
2 JOB SALESMAN
2 MGR 7698
2 HIREDATE 20-FEB-81
2 SAL 1600
2 COMM 300
2 DEPTNO 30
2 DIV 10
3 EMPNO 7521
3 ENAME WARD
3 JOB SALESMAN
3 MGR 7698
RUW_NUMBER COLUMN_NAME COLUMN_VAL
3 HIREDATE 22-FEB-81
3 SAL 1250
3 COMM 500
3 DEPTNO 30
3 DIV 10
4 EMPNO 7566
4 ENAME JONES
4 JOB MANAGER
4 MGR 7839
4 HIREDATE 02-APR-81
4 SAL 2975
RUW_NUMBER COLUMN_NAME COLUMN_VAL
4 COMM
4 DEPTNO 20
4 DIV 10
5 EMPNO 7654
5 ENAME MARTIN
5 JOB SALESMAN
5 MGR 7698
5 HIREDATE 28-SEP-81
5 SAL 1250
5 COMM 1400
5 DEPTNO 30
RUW_NUMBER COLUMN_NAME COLUMN_VAL
5 DIV 10
6 EMPNO 7698
6 ENAME BLAKE
6 JOB MANAGER
6 MGR 7839
6 HIREDATE 01-MAY-81
6 SAL 2850
6 COMM
6 DEPTNO 30
6 DIV 10
7 EMPNO 7782
RUW_NUMBER COLUMN_NAME COLUMN_VAL
7 ENAME CLARK
7 JOB MANAGER
7 MGR 7839
7 HIREDATE 09-JUN-81
7 SAL 2450
7 COMM
7 DEPTNO 10
7 DIV 10
8 EMPNO 7788
8 ENAME SCOTT
8 JOB ANALYST
RUW_NUMBER COLUMN_NAME COLUMN_VAL
8 MGR 7566
8 HIREDATE 19-APR-87
8 SAL 3000
8 COMM
8 DEPTNO 20
8 DIV 10
9 EMPNO 7839
9 ENAME KING
9 JOB PRESIDENT
9 MGR
9 HIREDATE 17-NOV-81
RUW_NUMBER COLUMN_NAME COLUMN_VAL
9 SAL 5000
9 COMM
9 DEPTNO 10
9 DIV 10
10 EMPNO 7844
10 ENAME TURNER
10 JOB SALESMAN
10 MGR 7698
10 HIREDATE 08-SEP-81
10 SAL 1500
10 COMM 0
RUW_NUMBER COLUMN_NAME COLUMN_VAL
10 DEPTNO 30
10 DIV 10
11 EMPNO 7876
11 ENAME ADAMS
11 JOB CLERK
11 MGR 7788
11 HIREDATE 23-MAY-87
11 SAL 1100
11 COMM
11 DEPTNO 20
11 DIV 10
RUW_NUMBER COLUMN_NAME COLUMN_VAL
12 EMPNO 7900
12 ENAME JAMES
12 JOB CLERK
12 MGR 7698
12 HIREDATE 03-DEC-81
12 SAL 950
12 COMM
12 DEPTNO 30
12 DIV 10
13 EMPNO 7902
13 ENAME FORD
RUW_NUMBER COLUMN_NAME COLUMN_VAL
13 JOB ANALYST
13 MGR 7566
13 HIREDATE 03-DEC-81
13 SAL 3000
13 COMM
13 DEPTNO 20
13 DIV 10
14 EMPNO 7934
14 ENAME MILLER
14 JOB CLERK
14 MGR 7782
RUW_NUMBER COLUMN_NAME COLUMN_VAL
14 HIREDATE 23-JAN-82
14 SAL 1300
14 COMM
14 DEPTNO 10
14 DIV 10
126 rows selected.
SQL>Thanks,
Karthick.
Edited by: Karthick_Arp on Sep 23, 2008 12:11 AM -
Cisco ASA 5505 L2L VPN Tunnel with one Dynamic IP
Hi Rizwan,
Thanks for your response. I updated the configuration per your response below... It still doesn't work. please see my new config files below. Please help. Thanks in advance for your help....
Hi Pinesh,
Please make follow changes on host: officeasa
remove this line below highlighted.
crypto dynamic-map L2LMap 1 match address Crypto_L2L
It is only because group1 is weak, so please change it to group2
crypto dynamic-map L2LMap 1 set pfs group1
route outside 10.10.6.0 255.255.255.0 96.xxx.xxx.117
Please make follow changes on host: homeasa
It is only because group1 is weak, so please change it to group2
crypto map L2Lmap 1 set pfs group1
route outside 10.10.5.0 255.255.255.0 xxx.xxx.xxx.xxx default gateway on homeasa.
Hope that helps, if not please open a new thread.
Thanks
Rizwan Rafeek
New config files..
Site-A: (Office):
Hostname: asaoffice
Inside: 10.10.5.0/254
Outside e0/0: Static IP 96.xxx.xxx.118/30
Site-B: (Home):
Hostname: asahome
Inside: 10.10.6.0/254
Outside e0/0: Dynamic IP (DG: 66.xxx.xxx.1)
SIte-A:
officeasa(config)# sh config
: Saved
: Written by enable_15 at 15:34:23.899 UTC Sat Mar 3 2012
ASA Version 8.2(5)
hostname officeasa
enable password xyz encrypted
passwd xyz encrypted
names
interface Ethernet0/0
switchport access vlan 2
interface Ethernet0/1
switchport access vlan 3
interface Ethernet0/2
switchport access vlan 3
interface Ethernet0/3
switchport access vlan 3
interface Ethernet0/4
switchport access vlan 3
interface Ethernet0/5
switchport access vlan 3
interface Ethernet0/6
switchport access vlan 3
interface Ethernet0/7
switchport access vlan 3
interface Vlan2
nameif outside
security-level 0
ip address 96.xxx.xxx.118 255.255.255.252
interface Vlan3
nameif inside
security-level 100
ip address 10.10.5.254 255.255.255.0
ftp mode passive
same-security-traffic permit inter-interface
access-list NONAT extended permit ip 10.10.5.0 255.255.255.0 192.168.100.0 255.2
access-list NONAT extended permit ip 10.10.5.0 255.255.255.0 10.10.6.0 255.255.2
access-list ormtST standard permit 10.10.5.0 255.255.255.0
access-list OCrypto_L2L extended permit ip 10.10.5.0 255.255.255.0 10.10.6.0 255
pager lines 24
logging asdm informational
mtu outside 1500
mtu inside 1500
ip local pool ormtIPP 192.168.100.100-192.168.100.110 mask 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list NONAT
nat (inside) 1 0.0.0.0 0.0.0.0
route outside 0.0.0.0 0.0.0.0 96.xxx.xxx.117 1
route outside 10.10.6.0 255.255.255.0 96.xxx.xxx.117 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
http server enable
http 10.10.5.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set OSite2Site esp-3des esp-sha-hmac
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto dynamic-map OL2LMap 1 set pfs
crypto dynamic-map OL2LMap 1 set transform-set OSite2Site
crypto dynamic-map OL2LMap 1 set reverse-route
crypto map out_L2lMap 65535 ipsec-isakmp dynamic OL2LMap
crypto map out_L2LMap interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
client-update enable
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd auto_config outside
dhcpd address 10.10.5.101-10.10.5.132 inside
dhcpd dns 8.8.8.8 8.8.4.4 interface inside
dhcpd enable inside
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
webvpn
enable outside
svc image disk0:/anyconnect-win-2.4.1012-k9.pkg 1
svc image disk0:/anyconnect-macosx-i386-2.4.1012-k9.pkg 2
svc enable
tunnel-group-list enable
group-policy ormtGP internal
group-policy ormtGP attributes
dns-server value 8.8.8.8
vpn-tunnel-protocol svc webvpn
split-tunnel-policy tunnelspecified
split-tunnel-network-list value ormtST
address-pools value ormtIPP
webvpn
svc keep-installer installed
svc rekey time 30
svc rekey method ssl
svc ask enable default svc timeout 20
username user1 password abcxyz encrypted
username user1 attributes
service-type remote-access
tunnel-group ormtProfile type remote-access
tunnel-group ormtProfile general-attributes
default-group-policy ormtGP
tunnel-group ormtProfile webvpn-attributes
group-alias OFFICE enable
tunnel-group defaultL2LGroup type ipsec-l2l
tunnel-group defaultL2LGroup ipsec-attributes
pre-shared-key *
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect ip-options
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:46d5c2e1ac91d73293f2fb1a0045180c
officeasa(config)#
Site-B:
Home ASA Configuration:
homeasa# sh config
: Saved
: Written by enable_15 at 15:48:42.479 UTC Sat Mar 3 2012
ASA Version 8.2(5)
hostname homeasa
enable password xyz encrypted
passwd xyz encrypted
names
interface Ethernet0/0
switchport access vlan 2
interface Ethernet0/1
switchport access vlan 3
interface Ethernet0/2
switchport access vlan 3
interface Ethernet0/3
switchport access vlan 3
interface Ethernet0/4
switchport access vlan 3
interface Ethernet0/5
switchport access vlan 3
interface Ethernet0/6
switchport access vlan 3
interface Ethernet0/7
switchport access vlan 3
interface Vlan2
nameif outside
security-level 0
ip address dhcp setroute
interface Vlan3
nameif inside
security-level 100
ip address 10.10.6.254 255.255.255.0
ftp mode passive
same-security-traffic permit inter-interface
access-list NONAT extended permit ip 10.10.6.0 255.255.255.0 192.168.101.0 255.255.255.0
access-list NONAT extended permit ip 10.10.6.0 255.255.255.0 10.10.5.0 255.255.255.0
access-list hrmtST standard permit 10.10.6.0 255.255.255.0
access-list Crypto_L2L extended permit ip 10.10.6.0 255.255.255.0 10.10.5.0 255.255.255.0
pager lines 24
logging asdm informational
mtu outside 1500
mtu inside 1500
ip local pool hrmtIPP 192.168.101.100-192.168.101.110 mask 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list NONAT
nat (inside) 1 0.0.0.0 0.0.0.0
route outside 10.10.5.0 255.255.255.0 66.xxx.xxx.1 1 (IP address of the Dynamic IP from ISP)
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
http server enable
http 10.10.6.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set Site2Site esp-3des esp-sha-hmac
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto map L2Lmap 1 match address Crypto_L2L
crypto map L2Lmap 1 set peer 96.xxx.xxx.118
crypto map L2Lmap 1 set transform-set Site2Site
crypto map L2LMap 1 set pfs
crypto map L2LMap interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd auto_config outside
dhcpd address 10.10.6.101-10.10.6.132 inside
dhcpd dns 8.8.8.8 8.8.4.4 interface inside
dhcpd enable inside
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
webvpn
enable outside
svc image disk0:/anyconnect-win-2.4.1012-k9.pkg 1
svc image disk0:/anyconnect-macosx-i386-2.4.1012-k9.pkg 2
svc enable
tunnel-group-list enable
group-policy hrmtGP internal
group-policy hrmtGP attributes
dns-server value 8.8.8.8
vpn-tunnel-protocol svc webvpn
split-tunnel-policy tunnelspecified
split-tunnel-network-list value hrmtST
address-pools value hrmtIPP
webvpn
svc keep-installer installed
svc rekey time 30
svc rekey method ssl
svc ask enable default svc timeout 20
username user1 password abcxyz encrypted
username user1 attributes
service-type admin
tunnel-group hrmtProfile type remote-access
tunnel-group hrmtProfile general-attributes
default-group-policy hrmtGP
tunnel-group hrmtProfile webvpn-attributes
group-alias hrmtCGA enable
tunnel-group 96.xxx.xxx.118 type ipsec-l2l
tunnel-group 96.xxx.xxx.118 ipsec-attributes
pre-shared-key *
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect ip-options
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:d16a0d49f275612dff7e404f49bcc499
homeasa#Thanks Rizwan,
Still no luck. I can't even ping the otherside (office).. I am not sure if i'm running the debug rightway. Here are my results...
homeasa(config)# ping inside 10.10.5.254............. (Office CIsco ASA5505 IP on local side. I also tried pinging the server on other side (office) whic is @10.10.5.10 and got the same result)
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.5.254, timeout is 2 seconds:
Success rate is 0
homeasa(config)# debug crypto isakmp 7
homeasa(config)# debug crypto ipsec 7
homeasa(config)# sho crypto isakmp 7
^
ERROR: % Invalid input detected at '^' marker.
homeasa(config)# sho crypto isakmp
There are no isakmp sas
Global IKE Statistics
Active Tunnels: 0
Previous Tunnels: 0
In Octets: 0
In Packets: 0
In Drop Packets: 0
In Notifys: 0
In P2 Exchanges: 0
In P2 Exchange Invalids: 0
In P2 Exchange Rejects: 0
In P2 Sa Delete Requests: 0
Out Octets: 0
Out Packets: 0
Out Drop Packets: 0
Out Notifys: 0
Out P2 Exchanges: 0
Out P2 Exchange Invalids: 0
Out P2 Exchange Rejects: 0
Out P2 Sa Delete Requests: 0
Initiator Tunnels: 0
Initiator Fails: 0
Responder Fails: 0
System Capacity Fails: 0
Auth Fails: 0
Decrypt Fails: 0
Hash Valid Fails: 0
No Sa Fails: 0
Global IPSec over TCP Statistics
Embryonic connections: 0
Active connections: 0
Previous connections: 0
Inbound packets: 0
Inbound dropped packets: 0
Outbound packets: 0
Outbound dropped packets: 0
RST packets: 0
Recevied ACK heart-beat packets: 0
Bad headers: 0
Bad trailers: 0
Timer failures: 0
Checksum errors: 0
Internal errors: 0
hjnavasa(config)# sh crypto ipsec sa peer 96.xxx.xxx.118
There are no ipsec sas
homeasa(config)# -
Dynamically select detail report for a master report link item or button?
I'm still new to APEX, so apologies if this sounds like a stupid question, but so far I can't find anything online about how to do the following.
I have a simple report, and I want to be able to drill down from here to a detail report via a link item (or a button) in each row. The problem is that the specific detail report to use depends on a combination of values in the parent record.
So if I have a parent record in the master report with values for columns 1/2/3 of A/B/C, I would drill down to a detail report against table X. If my parent record has values of D/E/F, I might drill down to a different detail report against table Y.
I can build the individual reports easily enough, and I can set up a link item in the master report to drill down to a hard-coded detail report page. I can even generate the name (alias) of the relevant target report as an extra non-DB item in each row of the parent report. But I can't figure out how to allow each row in the parent report to actually link to a different detail report dynamically, depending on the contents of the parent row.
Can anybody suggest an easy way to do this, or point me towards an online resource that would explain how to do this (preferably in basic terms that this APEX-newbie can understand)?
Thanks for your help!Hi,
When you say "Detail report" do you just mean a normal report of the child records for the selected master record or a tabular form style "Details report"?
Using different reports on a page would, typically, depend on the value in a hidden page item - for example, P1_REPORT_TYPE. Your link could pass an appropriate value into this item and the second page would then use this as a Condition for each of the report regions - each region being conditionally displayed when the hidden item is a specific value.
Andy -
Need to know the column names in my dynamic select clause
Dear All,
Please go through the following code. While executing the following code i am getting an error saying that dbms_sql.describe_columns overflow, col_name_len=35. Use describe_columns2.
Please guide me how to proceed further. Or please help me, how can i get the column names when i issue a dynamic select clause.
DECLARE
CUR INTEGER;
COL_CNT INTEGER ;
A INTEGER;
SEL_CLAUSE VARCHAR2(2000);
DESC_T DBMS_SQL.DESC_TAB;
REC DBMS_SQL.DESC_REC;
b number;
BEGIN
SEL_CLAUSE := 'SELECT 1,2,DECODE(1,1,''ONE'',2,''TWO'',3,''THREE'') FROM DUAL';
--'SELECT ROWID,PARA_SUB_CODE,DECODE('||''''||'ENG'||''''||','||''''||'ENG'||''''||',PARA_NAME,PARA_BL_NAME),NULL,NULL FROM PCOM_APP_PARAMETER';
--'SELECT 1,2,DECODE(1,1,''ONE'',2,''TWO'') FROM DUAL';
DBMS_OUTPUT.PUT_LINE( SEL_CLAUSE );
CUR := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(CUR,SEL_CLAUSE,DBMS_SQL.NATIVE);
DBMS_SQL.DESCRIBE_COLUMNS(CUR,COL_CNT,DESC_T);
B := desc_t.first;
FOR J IN 1..COL_CNT
LOOP
DBMS_OUTPUT.PUT_LINE('J := '||J || ' COL CNT ' || COL_CNT);
END LOOP;
BEGIN
A := DBMS_SQL.EXECUTE(CUR);
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
END;
Regards,
BalajiIs there any way can i have it directly??It does not work with static SQL either. Dynamic SQL is no different.
SQL> select 1 x from dual where x = 1 ;
select 1 x from dual where x = 1
ERROR at line 1:
ORA-00904: "X": invalid identifier
SQL>As suggested already, you will need to use alias if you want your select expression to be referred in the where clause.
SQL> BEGIN
2 FOR rec IN (SELECT *
3 FROM (SELECT 1,
4 2,
5 DECODE(1, 1, 'ONE', 2, 'TWO', 3, 'THREE') "DECODE(1, 1, 'ONE', 2, 'TWO', "
6 FROM DUAL)
7 WHERE "DECODE(1, 1, 'ONE', 2, 'TWO', " = 'ONE')
8 LOOP
9 NULL;
10 END LOOP;
11 END;
12 /
PL/SQL procedure successfully completed.
SQL>Message was edited by:
Kamal Kishore -
CR2011 Dynamic Parameter does not show list at all
I am upgrading some Crystal Reports from CR 8.5 to 2011. Some would be better served by using a dynamic parameter to allow the user to select the data for the parameter from the database information. I have created a dynamic parameter on the Customer ID and set the description to be the customer name. I have set it to handle multiple values.
When I preview the report in the Crystal designer, I get a text box to type in but not a drop down. To be clear, I am not talking about the LOV 1000 limit here. There are only 50 customers in the sample file I am working with. I tried turning the static parameter into a dynamic one, I deleted the original parameter and created a new one.
In case it matters, the parameter is only used as part of the selection formula and if I enter a proper customer id, it will retrieve the data. This report has about 7 tables (no stored procedures or views) and a subreport of two tables that is linked to the main report on the customer id. The parameter is only used on the main report for record selection. The SQL statement in the main report and subreport did need to be reset when I first opened the report in CR2011 but I did that on both. I have verified the database and the option to verify on first refresh is checked. The original parameter did have an imported list of about 3000 customer names. I tried exporting the CR template to a new file and while the file size changed, the behaviour did not.
When I create a brand new report on two of the tables, including the same customer table, and create the parameter the same way, it shows me the list properly in a dropdown at the prompt stage.
I am not sure where to go here or what else to try. If anyone has any suggestions, I appreciate the help. TIA, rasincThank for the reply Dell,
I see the logic in adding the extra table and keeping it unlinked and I do know the crazy data that can come up if I use it linked to other tables or use the fields in other parts of the programming.
However, I've now tried it several times, creating the parameter on just the name alone, with the ID alone, etc. and I still only get a text box to type into.
I have made sure the original selection criteria
{customer.Id} = {?Customer}
if from the original table, not the new one, which I assume you expected me to do.
So I decided to run the same report through CR XIR2. When I update the Set Datasource Location, I am now getting the message
"Invalid Argument provided.
Details: The alias requested 'company', contains a combination of characters which is not considered to be valid"
Company is a table containing information about the main company, not the customers. The same message pops up for another table as well.
Then I get a message that says:
"Prompting failed with the following error message: 'List of Values failure: fail to get values. [Cause of error: The table company does not exist in the document.]'
Error source: prompt.dll Error code: 0x8004380D"
This appears to be a database access issue but I know the firewalls are not a problem because I can create a new report and get the LOV properly with the same database and same desktop computer. I can take that report created in CR2011 and use it in CRXI also and get the proper LOV. Is it possible I am dealing with template corruption because there were so many items imported into the static list before?
Maybe you are looking for
-
Installed update 2015-002, and Connection to Windows FileShare is no longer working
Installed update 2015-002 (10.10.2 ?) to MacBook Pro running Yosemite, and CFS connections (Windows file share) connection no longer works properly. It was working without any problem just before the upgrade. Can I go back or uninstall the upgrade, u
-
How to Link equipments(PM) in a Settlement from AUC to Final Fixed Asset
Hi All, I need your help with an integration problem between AA, CO and PM. This is the scenario: We are buying equipments that should not be capitaliazed until deliver them to the customer so to support this we do the following flow: 1. Create an sh
-
MB_MIGO_BADI: Fields on Header - Accessing PO number
Hi Experts, I am using MB_MIGO_BADI to add custom fields to the MIGO header tab. Inside the BADI methods/function modules, I'm not able to access the PO number. The PO number that is entered on the MIGO screen is needed to fill the new fields that I'
-
SAPscript with request correspondence ....
Hi all, In standard SAP, step to step I do: 1. T_code FB12 <- create Request Correspondence 2. T_code F.61 <- Trigger for corespondence with Correspondence = 'SAP04'. 3. T_code SP01 <- Output control / Choose spool req. number and show SAPscript for
-
I am trying to use the current Oracle XDK, in particular the XSU java libraries to retrieve XML from a sql query. In order to generate the final XML file I need to apply an XSLT. When using the OracleXMLQuery object to set the XSLT I get the followin