Assigning PARSER view with ACS 5.1 to a specific user
Hi,
I like to know how I can assigning a parser view at logon by using ACS server version 5.1. I remember I had already doing it with version 4.2 by using custom attribute, but for some reason is't does'nt work actually.....
We would like to use parser view because all other command are'nt deny but they are invisible to the user...... which provide a better way to us to control security and avoid any question or other request by users.
thanks a lot !
I worked around a similar constraint by having our AD admins create the computer object with the name of the ACS system, then give my AD account rights over that object. Then I was able to join ACS to AD using my own AD credentials.
Similar Messages
-
Materialized View with No Logging Option;;; THX
Hi all,
What's the diffrence between a :
Materialized View with No Logging Option
Materialized View with Logging Option
thank youLOGGING|NOLOGGING specifies that subsequent Direct Loader (SQL*Loader) and direct-load INSERT operations against a nonpartitioned index, a range or hash index partition, or all partitions or subpartitions of a composite-partitioned index will be logged (LOGGING) or not logged (NOLOGGING) in the redo log file.
In NOLOGGING mode, data is modified with minimal logging (to mark new extents invalid and to record dictionary changes). When applied during media recovery, the extent invalidation records mark a range of blocks as logically corrupt, because the redo data is not logged. Therefore, if you cannot afford to lose this index, you must take a backup after the operation in NOLOGGING mode.
If the database is run in ARCHIVELOG mode, media recovery from a backup taken before an operation in LOGGING mode will re-create the index. However, media recovery from a backup taken before an operation in NOLOGGING mode will not re-create the index.
An index segment can have logging attributes different from those of the base table and different from those of other index segments for the same base table.
Message was edited by:
HAGGAR -
Warn by leaving a form view with unsaved changes
Hello JSF / Richfaces users,
maybe that's not the first time, that someone asks this question here, but unfortunately I couldn't found any concrete examples on the forum. So I'd like really to get your help:
I'd like to put some "input listeners" on my form views, so that when the user makes changes (typing in inputText, selection another value in selectMenu or checking a Checkbox), then he clicks on another Button / Link without saving, he shoudl will be warned by a dialog box remebering him to save the changes or leaving the view without saving (changes will be lost).
I tried at first to put a boolean "inputChanged" on my Bean, then setting it to true with an adapted event (onchange) by each component. And by the buttons/links which link to another page I tried to show a <rich:modalpanel> once the value of "inputChanged" is true but I couldn't realize this conditions.
Thereafter I found a solution based on Javascript:
<script language="javascript" type="text/javascript">
// Keep flag when something had changed
var changed = false;
Save in "changed" flag, whether an input had been done by the user.
after that the calling of this method will be removed
from the corresponding attribute of the input elements,
in order to avoid redundant method calls */
function storeChange(aChanged, aElement) {
changed = aChanged;
aElement.setAttribute('onchange', '');
Finally and when the "changed" flag is true, a confirmation message will be shown
to confirm whether the page could be left.
window.onbeforeunload=function unloadAlert() {
if(changed) {
return 'You have unsaved changes on the page. If you click on OK, the changes will be lost';
return null;
</script>{code}
And in the view:
{code}<a4j:form>
<h:outputLabel id="label_name" value="Name" for="in_name" />
<h:inputText id="in_name" value="#{bean.name}"
onchange="storeChange(true, this)" />
<br />
<h:outputLabel id="label_email" value="E-Mail" for="in_email" />
<h:inputText id="in_email" value="#{bean.email}"
onchange="storeChange(true, this)" />
<br />
<a4j:commandButton oncomplete="javascript:changed=false"
value="Save" />
</a4j:form>{code}
And now I'd
like rather than the JS terriying dialog box, a user-friendly rich:modalPanel which should do the same function.
For any
indication I will be very very thankfulHi David,
Thank for the prompt answer. I've tried that before but I have put that in checkin action. So that didn't work before but now as per your suggestion it works nicely. The form isn't evaluated.
However, this time my changes aren't reflected on the user.. Basically what I do is
- checkout user view (with empty form) (in an activity)
- update user view (in another activity)
- check in user view (in another activity)
however, changes are discarded. I used winmerge to compare and saw exactly the necessary fields are updated after update activity. but after checkin no changes are reflected. so what should I do now :(
Relevant actions are:
<Action id='0' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkoutView'/>
<Argument name='viewId'>
<concat>
<s>User:</s>
<ref>accountId</ref>
</concat>
</Argument>
<Argument name='type' value='User'/>
<Argument name='id' value='$(accountId)'/>
<Argument name='Form' value='Empty Form' />
<Return from='view' to='user'/>
<Return from='WF_ACTION_ERROR' to='error'/>
</Action>
<Action id='0' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkinView'/>
<Argument name='view' value='$(user)'/>
<Return from='WF_ACTION_ERROR' to='error'/>
</Action> -
Enable parser view command on ACS 5.X
Hi all,
Would like to check out is it possible binding Cisco secure ACS 5.x to support router/switch ios feature view - superview and parser command
Busines objective is assigning administrative roles, with different role based CLI access, using ACS5.X as backend server.
a. Admin (allow all)
b. network monitor (privlege # 7, enable view that can doing various show command and configure)
c. support (privlege #1, read only)
Thanks
NoelYou need to create three shell profiles
Full --> set maximum privilege to 15
Monitor --> set maximum privilege to 7
support --> set maximum privilege to 1
You need to create three command sets
FullSet --> check permit any command that is not in the table below
MonitorSet --> permit the commands that you want
SupportSet --> add permit the show commands only
Then you need to edit the authorization policy to create three rules
Rule 1 : If user is member of identity group admin ..result should be Full shell profile and FullSet command set
Rule 2 :If user is member of identity group Monitor ..result should eb Monitr shell profile and MonitorSet command set
Rule 3:If user is member of support identity group .. result should be Support shell profile and SupportSet command set
You need to customize the authorization policy to add
identity group to conditions
shell profiles and command sets to results
check this link as a reference:
http://www.cisco.com/en/US/partner/products/ps9911/products_configuration_example09186a0080bc8514.shtml
Please make sure to rate correct answers -
Hello.
I configured a parser view to block some commands(configure line, configure username and configure dial-peer cor) for a specific user.
The parser view is working fine untill I perform a "copy run start" or "write memory" and I reboot my router : the parser view is modified and the "blocked" commands are available for all the users...
The IOS I used is the following : c3900-universalk9-mz.SPA.152-1.T1.bin
The parser view I configured is the following :
parser view BLOCKED
secret 5 XXXXXXXXXXXXX
commands configure include-exclusive line
commands configure include-exclusive dial-peer cor
commands configure include-exclusive username
While doing a "sh run | sec parser view", I receive the following :
parser view BLOCKED
secret 5 XXXXXXXXXXXXX
commands configure include-exclusive help line
commands configure include-exclusive help dial-peer cor
commands configure include help dial-peer
commands configure include-exclusive help username
If I do a copy run start and a reload, after the reboot, the configuration of the parser view is abnormally modified as follow :
parser view BLOCKED
secret 5 XXXXXXXXXXXXX
commands configure include help help
commands exec include help
commands exec include terminal help
I also tried to configure another parser view for my restricted user, with 'commands configure exclude' for line, username and dial-peer cor...
The parser view for restricted user is also working fine untill I save the configuration in nvram and I do a reboot... After the reboot, I encounter the same problem...
I'm not sure if there is a bug in the IOS or if I made a mistake while configuring my parser view... Could somebody help me ?
For information, I also try to use the IOS 15.1(3)T and I had the same problem...
Thx,
HOriginally posted by: chris_stillwell.yahoo.com
I believe what you want to do is to create a custom Marker that extends
ProblemMarker. The Readme example shows how to create your own markers.
Chris
"Mark" <[email protected]> wrote in message
news:[email protected]..
> Can anyone point me to where I might find information on having my
> plugin interact with the Problems View? I am working on a parser and
> would like errors to be directed to this window and then have the
> ability to click on them to take me to the source code line.
>
> Thx,
>
> Mark -
Problem in assigning Webdynpro view to BPM task
hello all,
I have a webdynpro application using EJB Model. Now I am trying to embed this application into BPM. When I am assigning the view to a bpm task then it will show error that data type not supported like that.
In Component Controller's context and Interface's context I am using context node through model node binding and in the model node i am using some Java Native datatypes like java.util.Date/java.lang.Long etc that are not supported in BPM tasks i think.
How can I handle this prob. thks in advance. It will very useful for me if somebody have some example that uses the webdynpro views along with EJB Model in that.Hi kapitsu,
not every data type is suppported by BPM.
May you have a look at
[Data Type Compatibility|https://help.sap.com/saphelp_nwce711/helpdata/en/63/9f9ca5bb234502bd7b02c91ac6040a/content.htm]
Or at
[SAP Message 1266539|https://websmp130.sap-ag.de/sap%28bD1kZSZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=1266539]
There are also some examples where it works:
[CE 7.1 Samples|SAP NetWeaver Composition Environment Samples Center ]
[Modeling Your First Process with SAP NetWeaver Business Process Management|SAP NetWeaver Business Process Management Resource Center;
Maybe it helps. -
Can't open a object view with mapinfo
i have created this object view (with toad 7.6 in a server oracle 9i ITA, i use mapinfo 7.5 ITA):
CREATE OR REPLACE FORCE VIEW PRG.VISTAMORD
(PIANO_STORIA_ID, ANAGR_ID, PIANO_ID, TIPOMOD_COD, ZTO,
PRG, PIANO_STATO, ATTO_DATA, ATTO_TIPO, ATTO_NUM,
PIANO_VARIANTE, PIANO_NOME, PIANO_NOTE, PIANO_POS_ARCH, PIANO_LEGGE,
ANAGR_COD_COM, MI_STYLE, MI_PRINX, GEOLOC, ST)
AS
SELECT a.Piano_storia_id, a.Anagr_id, a.Piano_id, a.tipomod_cod,
a.ZTO, a.PRG, b.piano_stato, b.atto_data, b.atto_tipo, b.atto_num,
b.piano_variante, b.piano_nome, b.piano_note,
b.piano_pos_arch, b.piano_legge, c.anagr_cod_com,
d.mi_style, d.mi_prinx, d.geoloc, d.st
from (piano b inner join ((oggetti_storia a
inner join aux_indice e on (a.piano_storia_id=e.piano_storia_id)
and (a.anagr_id=e.anagr_id) and
(a.piano_id=e.piano_id)) inner join anagrafica c on a.anagr_id = c.anagr_id)
on b.piano_id = a.piano_storia_id) inner join oggetti_spazial d
on a.anagr_id = d.anagr_id
where ((a.tipomod_cod)<>'DEL')
order by piano_storia_id;
where oggetti_spazial is a object table (a mapinfo map imported in Oracle)
if i don't add the order by clause the view is ok and i can open it in mapinfo,
with the order by clause, when i try to open the view mapinfo give the error:
"errore Oracle: ORA-00600: codice errore INT., argom.:[15819],[5582],[],[],[],[],[],[]. Impossibile recuperare i record nella tavola.
can You Help me?Hi Gabriel,
I think with enough patience one could get the ASCII DataPlugin Wizard to create a DataPlugin that would work for your file, but the resulting code generated by the wizard is not easily understandable, and it would not have correctly devined the sampling rate from your file format. I've written a DataPlugin from scratch which correctly reads the data snippet you sent over. I included an implicit time channel so that you could easily see the time values inferred from the "SampleRate" line. The implicit time channel rerquires all the lines in the ASCII file to be parsed in order to figure out the correct channel length (line 58), so if you have large data files you should comment out the time channel lines (44, 45, 58) and use just the implict time information already encoded in the data channel waveform properties (for faster file indexing). Unless your files are verry large, though, I think you'll like the DataPlugin as it is.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
Attachments:
Fischerg_TXT.zip 2 KB -
Calculated view with input parameters
Hello there.
I've created a calculated view with input parameters, which I am going to call it 'VIEW_A'.
This view has been working just fine.
But now I have to create another calculated view and import the last one(VIEW_A) in a projection.
But I got a error when trying to see the data content.
It says :
Error: SAP DBTech JDBC: [2048]: column store error: search table error: [6968] Evaluator: syntax error in expression string;expected TK_ID,parsing '"DT_DOC_MES_ANO" >= [here]and "DT_DOC_MES_ANO" <='
At the 'Problems' panel it says the all the input parameters are unmapped.
What Am I doing wrong? Sorry but I am kind new at SAP world.http://scn.sap.com/message/15489475Hello Tiago,
Could you please let me know if you're able to resolve your issue, I'm getting the similar error when I'm passing alpha numeric values as parameter via my SP.
Thanks for your help in advance!
Regards,
Sathish -
Analytic View with tables from different schema
Hi,
I'm curious if I make something wrong or if this is not possible:
I want to use two tables each in a different schema. I can drop them into the DataFoundation, can connect them, assign them some measure. But activation fails due to insufficient privileges. When I use the tables from the same schema activation works well. With the insufficient privileges I would guess HANA cannot create a View (failed with the statement CREATE COLUMN_VIEW "_SYS_BIC"."USER/ANALYTIC_VIEW_NAME"....).
Since I tried the same assignment with the System-User and failed I wonder what kind of permissions are required. Or is this generally not allowed (resp. prohibited)?
If not allowed, could somebody give me a hint, why its not possible?
If it is possible, what kind of rights are required to get it working?
rolandHm', I have allowed SYS_REPO the rights to the table and was able to activate the view. But now I have the problem, that the DataPreview is not working (again insufficient privileges). What user has to have additional permissions for the JDBC-query?
Do I have to take care more on the privileges for other things? -
DB view with flexible number of columns?
In my Oracle 10 I have these tables
Customer table:
id customer
1 John
2 Bob
Item table
id item_name
1 itemA
2 itemB
3 itemC
4 itemD
Purchase table:
id item_id date customer_id
1 3 070202 2
2 6 070203 5
...I'd like to create a view like this:
itemA itemB itemC itemD ...
John 3 4 0 0 ...
Bob 0 3 0 0 ...
...The view showed John purchased itemA 3 times, item B 4 times. Bob purchased itemB 3 times. This assume each customer only by one item at a time, which is a reasonable simplification of my situation.
Such a view (with variable number of columns) is needed not in our web application but also provide an understandable data source for non IT professional to use report software. If my approach of solving this problem is completely wrong, I'd also like to know what's the common practice. Thank you very much in advance!
Message was edited by:
user609663I have tried to ask the question in a way that greatly simplify current problem to make it easy for others to understand without having to explain a lot of background information and 'the situation'; it seems I over-simplified the issue to make it even not worth solving or a wrong question being asked. So here I explain the complete problem and look for advice again (be prepared, pretty long description following:). I am a purchased customer of Oracle 10 DB and I reasonably expect being considered as Oracle user looking for help rather than students trying to play smart with assigned data normalization course exercises.
We are working on a system that collects data from interview results. The questionnaires for the interviews are formatted with a coded question, followed by user's answer to the question, like the following:
Question Code Question content Answer
H001 ... 123
H002 ... 45
H003 ... 33
H004 ... 66
H005 ... 4,66
... ... ...The users answer question with a digit, for some special questions, e.g. H005, they are allowed to answer with a set of digits. There are thousands of interviews each year, the simplest solution to collect the interview answers is to use such a db table:
simple_db_table:
id H001 H002 H003 H004 H005 H006 H007
1 123 45 33 66 4 82 9
...This solution have two problems:
1. It doesn't properly store answers to questions that requre a set of digits, like H005.
2. The number of questions and their codes change from one survey to another, but the table have fixed number of columns and column names.
And two benefit:
1. With such simple table, people who use report software that directly access oracle db can creat their reports on easy-to-understand data presentation;
2. calculation based on questionnaire data is simple, e.g. get the average of H007/H009 for questionnaires that have H002 > H003 * 600 would be:
SELECT SUM(H007) / SUM(H009) FROM simple_db_table WHERE H002 > H003 * 600;Next solution we have normalized tables:
questionnaire_entry_table:
id NUMBER
questionnaire_name CHARquestionnaire_definition_table:
id NUMBER
questionnaire_id NUMBER
question_code CHAR
question_content VARHCARinterview_table:
id NUMBER
questionnaire_id NUMBER
date DATEquestionnaire data table: itv_data
id NUMBER
interview_id NUMBER
question_code CHAR
answer NUMBERWith the new structure, it just turn the problems of simple_db_table to its benefit and simple_db_table's benefit become the problem:
1. Personnel who use report creation software feel too confused to make report based on such tables, because they do not understand the normalized modeling. In our case, effective training is difficult because there will be many geographically distributed people make reports based on this structure and they have lower IT knowledge than database administrators. These personnel can make reports based on simple_db_table.
2. calculation based on questionnaire data is very difficult.
To explain 2, let's take the same example, we still wish to get the average of H007/H009 for questionnaires that have H002 > H003 * 600, my method is:
setp 1: create a view with by using:
CREATE VIEW v (id, H002, H003) AS
SELECT a.itv_id, a.H002, b.H003
FROM itv_data a, itv_data b
WHERE a.interviewee_id=b.interviewee_id
AND a.question_code='H002' AND b.question_code='H003';step 2: create a stored procedure to get the calculation result:
CREATE OR REPLACE PROCEDURE get_result (result OUT NUMBER) IS
sh007 NUMBER := 0;
sh009 NUMBER := 0;
BEGIN
SELECT SUM(H007) INTO sh007 FROM itv_data
WHERE itv_id in (SELECT id FROM v WHERE H002 > H003 * 683);
SELECT SUM(H009) INTO sh009 FROM itv_data
WHERE itv_id in (SELECT id FROM v WHERE H002 > H003 * 683);
idc := sh007/sh009;
END get_idc;As you can see the calculation become much more complex and might involve overhead.
There might be better way to calculate the result that I don't know yet. We have some 100 different formulas to calculate different results, so it's important to get them right and efficiently.
The best solution seems to me is that to create such a view from itv_data and other tables so that to reflect the same structure of simple_db_table. So here comes the question I originally asked how is it possible to create a view with flexible number of columns. I made the very simple example in my original posted message wishing to get an idea of this is possible or the way to go.
I may be taking a completely wrong approach to attack the problem, e.g. perhaps there is a simpler way to get_result from itv_table and for report creation users I should use a metadata layer on top of the normalized table structure (e.g. by using Metadata Query Language from Pentaho BI). But anyway I'd like to get some insightful ideas from the forum. Again thanks for help in advance. -
Dynamic Vlan Assigment on 2950 with acs 4.2
Hello to everyone
We have a problem with Cisco 2950G 48 EI and ACS (version 4.2) providing dynamic Vlan assignment based on groups
On the ACS we configured the following attributes for the specific group
64 = VLAN
65 = 802
81 = VLAN Name
We tried for the 81 attribute both Vlan name and Vlan ID but we get the same results
In detail, we need the machine to be placed on Vlan ID 6 named vlan_sio so we inserted these value in the attribute field
Before we configured the switch to speak with ACS:
aaa new-model
aaa group server radius Switch
server 172.16.0.93 auth-port 1812 acct-port 1813
dot1x system-auth-control
radius-server host 172.16.0.93 auth-port 1812 acct-port 1813 key xxxxxx
radius-server retransmit 3
Configured the ports for the use of dot1.x.
switchport mode access
dot1x port-control auto
dot1x guest-vlan 7
spanning-tree portfast
The users are correctly authenticated but the ports are always connected to the default Vlan of the ports
We tried to debug with the debug dot1.x events command and we get the following errors:
Feb 16 12:00:04.017: Attribute 64 6 0100000D
Feb 16 12:00:04.017: Attribute 65 6 01000006
Feb 16 12:00:04.017: Attribute 81 4 01360806
Feb 16 12:00:04.025: dot1x-ev:Received VLAN is No Vlan
Feb 16 12:00:04.037: dot1x-ev:Received VLAN Id -1
Feb 16 12:00:04.041: dot1x-ev:dot1x_port_authorized: clearing HA table from vlan 1
Feb 16 12:00:04.049: dot1x-ev:dot1x_port_authorized: Added 0006.1bdb.6a09 to HA table on vlan 1
Does anyone know what we could have missed?
Thank’ssolved
It was just missing the command
aaa authorization network default group XXXX -
MARS 5.2.7 integration with ACS 4.1
Hello
I cannot find any documentation I can follow to integrate MARS with ACS. I mean I want to use ACS to authenticate user in MARS.
Any of you know if MARS 5.2.7 has this feature? If yes can please give some info where to find docs?
Thank you really much
Best regards Antonello.HI ,
LMS 4.0 no longer integrates with ACS the way that LMS 3.x did. You can still use ACS for authentication in LMS 4.0, but for authorization, each user must have a local account in LMS, and the roles will be assigned using LMS 4.0's new RBAC. Users are defined under Admin > System > User Management > Local User Setup, and roles are defined under Admin > System > User Management > Role Management Setup.
By default, if a user does not have an account in LMS, they will receive the Help Desk role
Please check the below link:
http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_lan_management_solution/4.2/user/guide/admin/security.html#wp1100379
Thanks-
Afroz
[Do rate the useful post] -
Integrating WCS 7.0 with ACS 5.1
Has anybody got any experience with trying the config as depicted in the WCS 7 config guide?
I have tried today to integrate WCS 7 with ACS 5.1 and got a partial success. I have created a unique Shell Profile that invokes for the WCS only which contains 1 role (role0=Root) and 73 task entries (as copied from the WCS group pages) and I can log in to WCS with the new account, but some things I dont appear to have priviledges for, such as Reports. Is there any way to debug which task WCS thinks I dont have to do this? Any other ideas?Turned on trace in WCS and saw info like this: (abreviated)
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task14 = View Alerts and Events
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task51 = Performance Reports
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task15 = Email Notification
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] rejecting task: task50 = Device Reports is not a valid task
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task53 = Network Summary Reports
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task16 = Delete and Clear Alerts
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task48 = Mesh Reports
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] rejecting task: task47 = Config Audit Dashboard is not a valid task
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task42 = Monitor Chokepoints
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task41 = Monitor Security
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task40 = Monitor Tags
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task46 = RRM Dashboard
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task45 = Monitor Interferers
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task44 = Monitor Spectrum Experts
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding task: task43 = Monitor WiFi TDOA Receivers
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] adding role: role0 = Root
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] Disconnecting from authorization socket - From Server: 10.9.2.253 - For User: acstest
01/06/11 15:11:37.847 TRACE [general] [TP-Processor3] [TACACS+ AAAModule] Total permissions for user acstest : tasks 68 : roles 1 : virtual-domains 0
all i did was copy and paste in all tasks from the WCS export list??? -
Oracle Version:Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
Hi Experts,
Is it possible to write a view with input and with IN clause in where cluase ....For Example I want to create a view like Below ..
The below query may be syntactically wrong , but my intension of writing is similary to this. And the query should contain a IN caluse and A union as below...
create or replace VIEW view_name (col1,col2, P_inputparam VARCHAR2)
as
SELECT Col1,Col2
FROM table_name1
where any_column11 in (
&P_inputparam
UNION
SELECT Col1,Col2
FROM table_name2
where any_column22 in (
&P_inputparam
Thanks In advance.
Edited by: 883279 on May 10, 2013 1:41 AM883279 wrote:
Oracle Version:Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
Hi Experts,
Is it possible to write a view with input and with IN clause in where cluase ....For Example I want to create a view like Below ..
The below query may be syntactically wrong , but my intension of writing is similary to this. And the query should contain a IN caluse and A union as below...
create or replace VIEW view_name (col1,col2, P_inputparam VARCHAR2)
as
SELECT Col1,Col2
FROM table_name1
where any_column11 in (
&P_inputparam
UNION
SELECT Col1,Col2
FROM table_name2
where any_column22 in (
&P_inputparam
Thanks In advance.
Not like that... no.
What you're using as "input" there are SQL*Plus substitution variables. Those values are requested by SQL*Plus before the code is sent to the database and compiled. Code that runs on the database has no way of interacting with a client keyboard or screen, so you cannot get stored code to prompt for user input.
See: {message:id=10744582}
It's possible to use SYS_CONTEXT to get a view to pick up a value that has been previously assigned before the view is used, though I rarely find a need to do this myself. -
Dynamically assigning query/view to a table
Hi All,
i want to assign a view to a table dynamically in WAD as per certain condition, can any 1 tell me how to do this?
thanks in advance
GodhuliJust a thought
Instead of assigning query dynamically is it possible that you will have tables with different queries as dataprovider and at run time you can show only the required table and other tables you can hide.
Unfortunately my WAD is not working so I am just giving a pseudo code.Please don't blame me for syntax errors.Please Paste this code between <\BODY> and
<\HTML>.
You can write a script like this
<script>
var obj;
var tablobj;
obj = findobject("option_1");
HideTables();
if (obj.value == 1)
tablobj = findobject("TABLE_1");
tablobj.style.display = "show";
if (obj.value == 2)
tablobj = find_object("TABLE_2");
tablobj.style.display = "show";
function findobject(objname)
var all = document.all;
for( var i=0;i<all.length;i++ ){
if (all<i>.name==objname)//we have found object
return all<i>;
return null;
function HideTables()
var all = document.getElementsByTagName("table");
for( var i=0;i<all.length;i++ )
all<i>.style.display = "hidden";
<\script>
Regs
Gopi.
Message was edited by: Gopi
Maybe you are looking for
-
I had an app open and asked me to close it so it could update it , I did and still can't close the app store . what do I do , I tried to quit it and it wont do that either .
-
Block Planning Display block options eg Percent of block utilised and Qtys?
Any hints how to display block quantities and percent utilised in PPDS area? I have managed so far to get the following for blocks that cross between months. 1. Resource table. (/SAPAPO/RPT - Resource Planning Table )Can highlight both columns that t
-
How can I use my iPhone 5 as a ethernet hotspot? (with an ethernet cable)
Hi, I need to connect my bank terminal to the internet, but it ony has a ethernet input, not wireless, can anyone show me some way to make this work using my iPhone 5? Thanks in advance.
-
Best practice for using both devices
Hello, I currently have a mac book pro and mac pro that I use for my editing. My questions are as follows: * Best way to import / export photos for use on both devices * Is there a way to sync catalogs on both computers so they are able to update on
-
Converting 23.976 ProRes to PAL 25fps.
I need to convert some 23.98HD ProRes to PAL SD. I tried using Graeme Nattress' conversion software, but I find that there is a slight stutter where his software creates an extra frame - the 25th frame. He advised me to use Cinema Tools to create a f