Parameterization

Hallo,
i have developed a client-server application requesting html information from oracle through servlet technology.Until now i am inserting text in the text area of the html form i use to submit requests.Now i want to change the html form, removing the text area and replacing it with text field in order to provide just the where clause parameters of the query keeping the rest of it the same.I read somewhere that this can happen if i write my sql queries in a stored procedure and execute it through the servlet by calling it's name and providing the parameters in the text fields of the used html form.
The problem is that i am not familiar with creating stored sql procedures.Are there any links i could visit in order to get acquainted with this task.I just need to create procedures that will execute simple probably sequential queries, but i need to execute them in aparametric way.
Thanks
Regards
Manousos
Athens

Manousos, there is a PL/SQL site at OTN: http://otn.oracle.com/tech/pl_sql/index.html
You could follow the link called "View All PL/SQL Samples", then de demo "Native Dynamic SQL
in PL/SQL"
succes, Bart

Similar Messages

  • How to copy E-business Parameterization from an environment to another

    Hi to everybody,
    I'm new to the world of Oracle Applications and I'm starting a new project. My concern is related to change management.
    I intend to have :
    - an environment where developpers will parameterize the E-business suite (screen/folder field modification, workflows, LOV,...),
    - another environment where users will validate the application,
    - a third environment dedicated to production,
    Is there any tools, or "tips" that allows to move defined parameters from one environment to other ? Should I need to Key in all parameters every time I need to install a new release of my application?
    Tanks for your help.
    If you have any question I'm reachable at [email protected]

    Another simple alternative, according to AskTom (http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:454220160386)
    ---------------- getcode.sql ----------------------------
    set feedback off
    set heading off
    set termout off
    set linesize 1000
    set trimspool on
    set verify off
    spool &1..sql
    prompt set define off
    select decode( type||'-'||to_char(line,'fm99999'),
    'PACKAGE BODY-1', '/'||chr(10),
    null) ||
    decode(line,1,'create or replace ', '' ) ||
    text text
    from user_source
    where name = upper('&&1')
    order by type, line;
    prompt /
    prompt set define on
    spool off
    set feedback on
    set heading on
    set termout on
    set linesize 100
    ------------------- eof --------------------------------
    it extracts one procedure, function or package to a file. Thats it. If you
    wanted to get all of the procedures in a schema extracted to the current working
    directory, you would run a script:
    --------------- getallcode ---------------------------
    set termout off
    set heading off
    set feedback off
    set linesize 50
    spool xtmpx.sql
    select '@getcode ' || object_name
    from user_objects
    where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
    spool off
    spool getallcode_INSTALL.sql
    select '@' || object_name
    from user_objects
    where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
    spool off
    set heading on
    set feedback on
    set linesize 130
    set termout on
    @xtmpx.sql
    ---------------- eof ---------------------------------
    You can see how to filter on that one by adding to the where clause if you want.
    Just run @getallcode_INSTALL to run all of the scripts...

  • How to parameterize the schema name in APEX

    Hi,
    How to parameterize the schema name in APEX , in order to access different tables from the respective schema.
    For example:-
    select NAME display_value, CODE return_value
    from paramSchema.DESC_LIST WHERE SELECTION_FLG = 'Y'
    order by 1
    in the above code, paramSchema will be replaced with the actual schema name duing runtime. I tried doing so by some hidden fields on page, but it didn't worked out.
    I took the schema name from the respective server as per the IPof the server.
    stored in a hidden field named as schema.
    And replaced the same in place of schema name. But no luck.
    select NAME display_value, CODE return_value
    from :schema.DESC_LIST WHERE SELECTION_FLG = 'Y'
    order by 1
    Please help me in shorting it out.
    Thanks,
    Anuradha

    Hi
    In order to do that, you would need to use dynamic SQL by changing the report type to PL/SQL Function Body Returning SQL Query and have code along the lines of
    DECLARE
    l_sql VARCHAR2(32767);
    BEGIN
    l_sql := 'select NAME display_value, CODE return_value
    from '||:schema||'.DESC_LIST WHERE SELECTION_FLG = 'Y'
    order by 1';
    RETURN l_sql;
    END;However, by doing this, you lose alot of flexibility. The other options would be...
    To have seperate report regions that are conditional on the value of the variable.
    To use a WITH clause at the tope of the query like...
    WITH src_data AS
    (SELECT * FROM schema1.my_table
    WHERE :schema = 'schema1'
    UNION ALL
    SELECT * FROM schema2.my_table
    WHERE :schema = 'schema2')
    SELECT *
    FROM src_dataOther than that you could look at using synonyms and doing something similar.
    Hope this helps.
    Cheers
    Ben

  • How to parameterize the emp_key in connect by pior query

    Hi Gurus,
    I am developed following query to create a report to who is reporting to who in organization with static value, could you please help me to parameterize the emp_key in the query.
    SELECT lpad(' ',8*(LEVEL-1)) || emp_last_name, manager_id, mgr_last_name, mgr_first_name, empid, emp_last_name, emp_first_name, LEVEL
    FROM cmp_ppl1
    START WITH emp_key = 37487
    CONNECT BY PRIOR emp_key = manager_key;
    Thanks & Regards
    Vikram

    In SQL*plus, you can just accept the empkey as a parameter using '&'
    SELECT lpad(' ',   8 *(LEVEL -1)) || emp_last_name,
      manager_id,
      mgr_last_name,
      mgr_first_name,
      empid,
      emp_last_name,
      emp_first_name,
      LEVEL
    FROM cmp_ppl1
    START WITH emp_key = &emp_key
    CONNECT BY PRIOR emp_key = manager_key;In Discoverer, you may have to add a parameter or bind variable...

  • Create a role with everything except parameterization option

    Hello,
    We need to create a new role with all object except parameterization
    option.
    How we can create it?
    Best regards,
    Julene González

    I had no idea that we had discussed SPRO that often...
    As you can see from the thread Alex pointed out ( [this one|https://forums.sdn.sap.com/click.jspa?searchID=19779873&messageID=6581648] ) it is also usefull to know which system in the landscape this role is destined for.
    Assuming this is for the QAS system, why don't you identify all the business roles for the production system (those which do not permit customizing in production either, nor user admin and other "basis" tasks, nor development work...etc...) and assign them all to the users (I assume these are support users).
    They should be in QAS already, and if your client settings are correct (T), you will experience the same or a very similar result.
    Of course they won't have "SAP_ALL minus SPRO", but they will have what you are actually using for the "real users"... in production (except it will be in QAS).
    That way they have also have a more realistic testing experience with the correct roles (only).
    Just a thought,
    Julius

  • Parameterize schema name in AMDP for accesing different SLT replicated schemas

    Hi All,
    We need to create an AMDP for accessing tables from different schemas with SLT replicas of different ERP instances.
    Does someone know if it's possible to parameterize schema name on AMDP so it's possible to use the same stored procedure for accessing the same tables on differen schemas on the same HANA DB instance?
    Best regards
    Fernando Alvarez

    Dear Fernando Alvarez,
    Does your use case require access to multiple schemas during the same call to the AMDP method at runtime or is it the case that during a method call you would access only one specific schema?
    If later is the case you might want to check the possibility of using secondary database connections from AMDP. From NW AS ABAP 7.4 SP08 onwards AMDP methods support the usage of secondary database connections(maintained from DBACOCKPIT). 
    You can find more information from this help documentation.
    Additionally you can refer to the following blog as well.
    Please let us know if this information is helpful to identify the right solution for your use case.
    Best regards
    Sundar

  • Parameterization in Oracle B2B

    Hi All,
    Is there any way to parameterize certain values in Oracle B2B as we have in Oracle SOA?????
    Thanks in advance..
    Monica

    Hi Monica,
    No, Oracle B2B does not support such use of preferences and parameterization as of now however an alternative is to create meta-data through Self-Service. Advanced B2B users can create self-service XML to specify the configuration data and then use ant to generate B2B metadata (export) and then use ant to import the same into B2B.
    Following are the parameters which are used in Self-Service XML -
    http://docs.oracle.com/cd/E17904_01/integration.1111/e10229/app_selfservice.htm#BABFCIAJ
    Also refer section "19.11 Creating Oracle B2B Metadata Based on selfservice.xsd" at -
    http://docs.oracle.com/cd/E17904_01/integration.1111/e10229/scrpt_imp_exp_dep.htm#CEGBIGAF
    Regards,
    Anuj

  • Intelligent Controller Parameterization

    Attempting to use Intelligent Controller Parameterization but I am recieving a licensing error.  The software seems to not be able to identify the ssdivd.lic license, and asks me for the directory location of the file.  After searching my computer and local server it appear I dont have the license.  I have contacted the company now multiple time with no reply...  Any suggestions on where i may be able to find/Purchase the appropriate licensing.  -Thanks 

    Since this is not a LabVIEW question, you should contact the company directly for this third-party add-on.
    Look at the overview tab here for contact information
    LabVIEW Champion . Do more with less code and in less time .

  • Enabling "Forced Parameterization" on a sql 2008 DB.....

    We have a relatively high re-compilation rate of several Adhoc queries for a given DB. It has been suggested that we enable the DB "Forced Parameterization"  option for that DB. Supposedly, then, even if the Adhoc queries specify different
    values the execution plans will not
    be recompiled.
    Has anyone used this option?  If it is that good, why isn't Enabled the default setting? (worried about the possible downsides.)
    TIA
    edm2

    You need to test it as it may hurt the over all performance as well. Do you see CPU went  down? Do the users start complain about the performance?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • EVMBR parameterization

    Hi Experts,
    I have the following problem. I am working with EVMBR function at Excel. If I hardcode the parameters, it works well. For example,
    EVMBR("PROJECT";"SLES069";"NIVELPROY=SLES")
    But when I try to parameterize the function, for example
    EVMBR("PROJECT";"SLES069";$A$45)
    after first execution, the parameterization disappears and the formula changes by itself
    EVMBR("PROJECT";"SLES069";"NIVELPROY=SLES")
    and I need it to be parameterized, not harcoded.
    Some ideas?
    Best Regards
    Albert

    Hi,
    It looks like an error. Please raise a message to SAP.
    thanks,
    Raju

  • Dynamic Parameterization

    Hi,
    I have a chart and I want 2 dropdowns with possible variable values.  Then a button will be pushed to execute the filter.  The dropdowns are being configured with Data Binding "Char/Structure Mbr" so no submit button appears and the execution doesnt occur right away, but only when the button is pushed.
    I'd like a dropdown box to show with possible values of variables that are in my query.  I've looked into Dynamic Parameterization, but can't seem to get it to work.  Is this because the variables don't have any default values?
    Thanks, Ken Murray

    Project has been removed from queue

  • Parameterization  in ecatt

    hi,
    Is Parameterization  require in ecatt ? when we transfer catt to ecatt .
    supriya.

    Hi
    Parameterization in eCATT
    By Venkat
    In eCATT script we can pass 3 types of parameters.
    Import
    Export
    Local variables 
    Import Parameters: Import Parameters are input values to the test script. These variables are the local to the script i.e. Import Parameters can access only in eCATT script editor but not in ABAP…ENDABAP block. These are version independent. 
    Export Parameters: Out put result values after executing the script are caught in Export Parameters. These variables are the local to the script i.e. Export Parameters can access only in eCATT script editor but not in ABAP…ENDABAP block. These are version independent. 
    Local Variables: Local Variables are used in both eCATT script editor and ABAP…ENDABAP block. These are version dependent i.e. local variables defined in one version is not automatically defined in other version. 
    After the recording has been done for the particular transaction without parameterization, we need to check whether the recording is error free or not. Once it is confirmed error free then we go for parameterization of required fields. Usually we go for parameterization for reusability of eCATT script. Different set of data can be passed via parameters and recorded script can be used again and again. 
    Parameterization in TCD mode: 
    Fields having mode ‘S’ (Set) under each dynpro of command interface contains some values entered during the recording. These are the values need to be parameterized as Import, Export or Local as shown below. 
    Replace the value ‘P’ in VALIN with I_MBRSH parameter. 
    And now double click on the parameter I_MBRSH then the following screen will appears. 
    Select Local and click ‘YES’. 
    The output result of transaction is assigned to Export parameters. These are very useful in chaining of transactions where the output of transaction is input to another transaction. 
    In this mode, last dynpro of the dynpro list just before the MSG node in the command interface contains the output messages as shown below.  
    Here we have to change the mode ‘O’ (Field output) to mode ‘G’ (Get) and assign Export parameter in VALIN as shown below. 
    Parameterization in SAPGUI mode: 
    Now double click on each step of command interface of SAPGUI command from the test script editor. In this case, first double click on “ME01_200_STEP_2”. Then you will get following screen. 
    Now replace value of material number T-BW06-02 with parameter. Here, T-BW06-02 is replaced with I_MATNR. 
    Now double click on I_MATNR then you will get pop-up box as shown. 
    Click ‘YES’. The entry appears in Parameter list and provides parameter reference. 
    The output result of the transaction in this mode can be captured using MESSAGE….ENDMESSAGE node. 
    Click the Pattern button from the application tool bar and select MESSAGE…ENDMESSAGE option as shown. 
    And click ‘OK’.
    Now the following screen appears. 
    Now place the command interface between MESSAGE….ENDMESSAGE command to capture the export parameter. 
    Here, the material number is captured in parameter1 (MSGV1). Now we can assign this value to export parameter as shown below. 
    if found useful award points.

  • How to parameterize SAP PO Performance Monitoring

    Hello,
    we have upgraded our SAP PI 7.1 to SAP PO 7.4 (Java Only). Now I ‘d like to parameterize the Message Performance Monitoring. I cannot find the parameter to change the amount of days in which the performance data is available. It seems that the default value is set to 7 days, but I can’t find the parameter to be changed. Please advise how to reset the parameter.
    Thanks for your support.
    kind regards
    Daniel

    Hey Leela,
    thanks for your advice. But unfortunately this isn’t the value Im looking for. The parameter “xiadapter.inbound.persistDuration.default” only define that messages and their payload are available for this amount of milliseconds.
    I’m searching for the parameter to change the number of days I can display in the performance monitoring. For example I can check the performance data from the 1.12.2014 until the 8.12.2014. On the 9.12.2014 the aggregated data are lost.
    Which parameter I have to change to get a higher amount of aggregated performance data. Because I want to see performance data from the 1.12.2014 one month later not only one week.
    I have added a Screenshot from my performance monitoring. In this view I only can see the performance data from the last 7 days (aggregate into days). I want to see the last 31 days in this view.
    Thanks for advice

  • How to parameterize pages or books

    Hi all,
    in our project we need to handle navigation entries in different ways. Therefore we thought about customizing the skeleton jsp to behave different when rendering menu entries for special pages or books.
    We were looking for something like:
    <c:choose>
    <c:when test="${pagepc.myProperty=true}">
    ....do something special here...
    </c:when>
    <c:otherwise>
    Question: Is it possible to parameterize pages or books? I hoped to find a properties view in portal console - but there is none.
    Thanks in advance.

    You need to add the properties or Meta Data on the consumers page not the producers. Even though you are remoting the page the page is not really remoted (only the portlets on the page).
    If this is not an option you may want to look into something around custom data transfer, but I really don't think this information should be coming from the producer. As the producer just produces portlets, and they shouldn;t really be tightly coupled to the page they are on.
    As far as the EL, I'm not too sure but there are two methods on the PresentationContext. I don't think these two lend themselves very well to EL, you can always write a scriplet.
    * Return the metadata elements for this control matching the supplied name
    * @return a MetaData element if a match is found otherwise null.
    public MetaData getMetaData(String name)
    * Return the metadata elements for this control
    * @return a non null array of <code>MetaData<code/> objects
    public MetaData[] getMetaDatas()
    For the properties
    * Get the extra properties string of the component, if it exists. This value may be null.
    * Properties are formatted as in the following example:
    * <pre><b>
    * my-first-key: my-first-value; my-second-key: my-second-value;
    * </b></pre>
    * Any number of properties may be in a properties string.
    * @return
    * The control's extra properties, if set
    * @see
    * #getParsedProperties
    public String getProperties()
    * Get the extra properties of the component, if they exist. This value will not be null.
    * The <code>Properties</code> class returned by this method is the parsed view of
    * those from {@link #getProperties()}.
    * @return
    * The control's extra properties, if set; an empty Properties instance if not
    * @see
    * #getProperties
    public Properties getParsedProperties()
    * Get a property of the underlying component. This is a convenience method.
    * The <code>key</code> argument should not be null.
    * @param key
    * The property key
    * @return
    * The value associated with the specified key, if it exists
    public String getProperty(String key)
    BTW: if you are doing a lot of these say > 100, I'd recommend the properties vs the Meta Data.

  • RFE: Allow some types to inherit different parameterizations of same iface

    I'm considering submitting this as an RFE. Does anyone think it's a bad idea or that it's impossible?
    RFE: Allow some types to inherit different parameterizations of the same interface
    The "proposed changes to the jls" version of the JLS3 says:
    "A class may not at the same time be a subtype of two interface types which are different parameterizations of the same interface." It says nothing about superinterfaces of interfaces, but let us assume that the same restriction applies.
    In some cases, this restriction seems overly broad. Assume that the type we are talking about does not simulatneously implement two parameterizations of the same interface. If the two parameterizations do not collide, because of covariant return types (or perhaps even overloading?), they should be allowed.
    interface HasValue<A> {
         A getValue();
    interface ObjectHolder extends HasValue<Object> {
         Object getValue();
    interface StringHolder extends ObjectHolder, HasValue<String> {
         String getValue();
    }What's the problem? I don't see one other than just that the JLS forbids it. Erasure or no erasure, the semantics of that kind of construct seem obvious and useful.

    I'm considering submitting this as an RFE. Does anyone think it's a bad idea or that it's impossible?
    RFE: Allow some types to inherit different parameterizations of the same interface
    The "proposed changes to the jls" version of the JLS3 says:
    "A class may not at the same time be a subtype of two interface types which are different parameterizations of the same interface." It says nothing about superinterfaces of interfaces, but let us assume that the same restriction applies.
    In some cases, this restriction seems overly broad. Assume that the type we are talking about does not simulatneously implement two parameterizations of the same interface. If the two parameterizations do not collide, because of covariant return types (or perhaps even overloading?), they should be allowed.
    interface HasValue<A> {
         A getValue();
    interface ObjectHolder extends HasValue<Object> {
         Object getValue();
    interface StringHolder extends ObjectHolder, HasValue<String> {
         String getValue();
    }What's the problem? I don't see one other than just that the JLS forbids it. Erasure or no erasure, the semantics of that kind of construct seem obvious and useful.

  • How to avoid multiple users accessing same test data via parameterization in LR??

    i am using LR11.5, i have the following test data&colon;
    TestData
    1
    2
    3
    4
    5
    when i run this script from Controller with 3 users LR picks it as user1->1, user2->1, user3->1
    How do i achieve this case: user1->1, user2->2, user3->3 ??
    Any help would be great.

    I have a related question. i created 2 websites/domains then i went to users and created 2 seperate "network" users then i went to ftp and selected each website and added only user A to site A and user B to site B. what's weird is that when i try to ftp using either of the users it seems to land on the same site. i looked at shared security for the folders and it only shows user a on site a folder and user b on site b folders. am i doing somehitng wrong or is this how it works in mountain lion server? i just want to give the domain owner ftp access so they can manage their files and only thier files. i also had to turn on open directory so that it would not create a local user but a network user. do i need to turn that off and just deal with having a bunch of local users as ftp user? i want to host multiple websites on the server and NO users remote on to server besides ftp.
    edit 1: i only have 1 IP running on the server which i don't think it has any affect on this but thought i mention it :-)
    edit 2: i just noticed one more thing that may help. i used filezilla to remote in using both users, one at a time. it seems to allow both users in but then it shows same directories. i then created a file using the one that was not supposed to have acces and it never sows up. but if i remote desktop to server i can see the new file in the correct folder. so it may have something to d o with the directory listing.

Maybe you are looking for

  • Print progress bar slow in Reader 8 and 9

    We have several users who recently began having issues with printing to our Xerox network printers with Reader 8. This is happening with even one-page documents... the print dialog box will appear fine, but after clicking print, it sits at the progre

  • Alternative to WebLogic 8.1 Execute thread Qs in Websphere 6.1

    Hi All, We are in the process of migrating from WebLogic 8.1 to WAS 6.1. We have few application in WebLogic that use custom execute threads so that trafic is moved to user defined thread instead of default thread pool. This is done in weblogic using

  • Java BeanShell expression in ODI

    hi experts, i am working on ODI 11 g (11.1.1) i have found java beanshell expression in standard ODI KM (IKM "IKM Oracle Slowly Changing Dimension", step 192 "Analyze integration table"): <%=odiRef.getTable("L","INT_NAME","A").replaceAll("","").repla

  • DPM2012 Sp1 not protecting jpg or tif files

    Hello, I am using DPM2012 to protect several file servers in my domain. I noticed today that DPM is not protecting any .jpg or .tif files. I checked the protection group and have no exceptions. What could be causing this behavior? Thanks in advance f

  • Map viewer

    Hi, I am trying to return the id of the image from map viewer. Can anyone help. Thanks, Sumitra