Altering session variable from PL/SQL

Does any one have an idea what's wrong with this code, or any suggestion how to perform similar operation.
I am trying to set my timezone using
declare
local_timezone TIMESTAMP WITH LOCAL TIME ZONE;
begin
DBMS_UTITLITY.EXEC_DDL_STATEMENT ('Alter Session Set TIME_ZONE = ' || '''' || 'GMT' || '''');
local_timezone := systimestamp;
dbms_output.put_line ('Time is : ' || local_timezone);
end;
This seems to work since no error is produced but does not set requested timezone. I still get local time.
Any suggestion.
Very Urgent.. Thanks for feedback in advance.

Hi,
I am trying to get the parameter from pg1(OAPage) to pg2(web pl/sql page) but i can't do it ...
The link OAPage is :OA_HTML/OA.jsp?_rc=HR_P_RATE_TOP_SS&_ri=800&OAFunc=HR_NEWHIRE_SS&_ti=713401982&retainAM=Y&addBreadCrumb=N&dialogAction=NEXT&oapc=11...
here i need to pass _ti, retainAM and other parameters to web pl/sql procedure.
i can't decalare a procedure staring ti like procedure(ti varchar2) coz while executing i am getting error... if i do with this procedure(ti varchar2) i am unable to get _ti parameter in web pl/sql.
i can get the value of ti from the table(ICXTransactions,icx_sessions) but this is not the feasible to do.
what is the expansion of parameter &oapc and &oas...
Please Help....

Similar Messages

  • Problem accessing session variable from jsp

    Hi!
    I get an error retrieving a session variable from inside a JSP declaration scriptlet....
    Something like this code in a JSP page:
    <%!
    public void funtion1() {
    String parameter1 = session.getAttribute("parameter1");
    %>I have seen that I have available getContextServer() method and from there I could call getAttribute("parameter1") . But the thing is that the attribute I want to retrieve was stored in session by another Jsp page.
    Any solutions are welcome
    Cheers
    Victor

    Appropriately the above is one the reasons also You cannot use JSP implicit objects from the declaration tag. However we can think of a small workaround by passing the reference like the one discussed below
    <%!public void funtion1(HttpSession session) {
    String parameter1 = session.getAttribute("parameter1").toString();
    }%>
    <% funtion1(session);%>Hope that helps :)
    REGARDS,
    RaHuL

  • Passing Session Variable from PHP to Applet

    I'm trying to pass a session variable from a PHP script to a third party applet. The applet needs to accept the variable as a string into a parameter. I think the htnl has to be dynamically created to turn the session variable into a string for the parameter value. Any suggestions ?

    This is really a PHP question. You might get better results on a PHP forum.

  • Adding session variables from a recordset

    I'm trying to create a session variable from data from a
    recordset, can anyone help?
    this is what I want the session variable to be from the
    recordset:
    <?php echo $row_rsStrata_plan['plan_str']; ?>
    but I'm not sure where to go from here: $_SESSION[test] =?
    Thanks,

    Make sure you have <?php session_start(); ?> at the top
    of your page
    Then
    $_SESSION['test'] = $row_rsStrata_plan['plan_str'];
    Gareth
    http://www.phploginsuite.co.uk/
    PHP Login Suite V2 - 34 Server Behaviors to build a complete
    Login system.

  • How to get and set a session variable from backing bean?

    Hi im using Jdev 11.1.1.2.0 and i need to set and get a session variable from backing Bean.
    Any idea?

    the class :
    package arq.resources;
    import javax.faces.context.FacesContext;
    import javax.servlet.http.HttpSession;
    public class SesionSigef {
    public FacesContext context;
    public HttpSession session;
    public SesionSigef() {
    super();
    context = FacesContext.getCurrentInstance();
    session = (HttpSession)(context.getExternalContext().getSession(true));
    public Object getVariableSesion(String atributo){
    return session.getAttribute(atributo);
    public void setVariableSesion(String atributo,Object valor){
    session.setAttribute(atributo, valor);
    the example of use :
    SesionSigef se = new SesionSigef();
    DatosRec da = new DatosRec();
    da.setDocumentoCip("Aprobar");
    se.setVariableSesion("DatosRec", da);
    thanks
    Joaquin

  • Can I set a Session Variable from a Dashboard Prompt, using values that are

    Hi All
    Trying to set a Session Variable to an integer value, by letting users select a text value from the drop-down list on a Dashboard Prompt. The goal is to set the input parameter to the IndexCol function, but to provide the end users with a text description of what they are setting.
    Select Value Set Variable Value
    My 0
    My Team 1
    My Companies 2
    My Teams Companies 3
    Any suggestions on how to accomplish this? Certainly we could populate the drop-down from a data source, however I don't see how to populate a variable with something other than the values on the screen.
    The IndexCol function is referenced in a Filter in Answers, and I'm thinking to populate a Session variable using the (Presentation) variable value set from the prompt. But how to do this? I see a reference to a function NQSSetSessionValue(), but cannot find documentation on how it works.
    Any clue will be greatly appreciated.
    Thanks

    Hi kishore..
    Looks like the link u have sent uses advanced SQL tab to set session variables. I want to know if I can use "set variable NQ_SESSION.myvar= @something" in the "SQL results" -while creating a dashboard prompt-.
    Purpose: I want the session variable to be set based on whatever report that im currently in.
    And i dont want to use presentation variables because im using a reset button in my page.
    My reset script resets presentation variables and NOT session variables.
    Thanks in advance
    Loy

  • Session Variable in PL/SQL

    hi All,
    I want to set a session variable in Web PL/Sql or PL/Sql procedure
    & i want to retrieve in ProcessFormRequest() in my controller...
    Can it be done in some ways ???
    Please help....

    Hi,
    I am trying to get the parameter from pg1(OAPage) to pg2(web pl/sql page) but i can't do it ...
    The link OAPage is :OA_HTML/OA.jsp?_rc=HR_P_RATE_TOP_SS&_ri=800&OAFunc=HR_NEWHIRE_SS&_ti=713401982&retainAM=Y&addBreadCrumb=N&dialogAction=NEXT&oapc=11...
    here i need to pass _ti, retainAM and other parameters to web pl/sql procedure.
    i can't decalare a procedure staring ti like procedure(ti varchar2) coz while executing i am getting error... if i do with this procedure(ti varchar2) i am unable to get _ti parameter in web pl/sql.
    i can get the value of ti from the table(ICXTransactions,icx_sessions) but this is not the feasible to do.
    what is the expansion of parameter &oapc and &oas...
    Please Help....

  • Problem returning variables from dynamic SQL/PLSQL

    Hi, I have a problem I am trying to solve using a very short piece of dynamic SQL or PLSQL but I am having problems getting the variable values out of the dynamic block.
    I have 16 counters whose names are made up of three variable parts - 'scheme', 'contributory category' and 'employment category'
    The 'scheme' can be either 'no1', 'no2', 'off', 'cg' or 'amc'
    The 'contributory category' can be either 'cont' or 'noncont'
    The 'employment category' can be either 'ft' or 'pt'
    (There are only 16 because only 16 combinations are possible)
    For example the total counter name could be 'v_cg_noncont_ft_count'
    I have created a variable by concatenating the various elements called v_incr_count_name which holds the name of the counter I want to increment.
    I am running this whole thing within an anonymous PLSQL block so I cannot use global variables meaning that my variables are not visible within a dynamic PLSQL block.
    I believe this means that either I need to bind the variables within a PLSQL block or use a SELECT FROM INTO SQL block.
    I have tried a few solutions with no luck such as the following PLSQL:
    v_incr_count := 'v_'||v_scheme||'_'||v_cont_cat||'_'||v_emp_cat||'_count';
    sql_stmt := 'BEGIN :a := :a + 1; END;';
    EXECUTE IMMEDIATE sql_stmt USING v_incr_count_name;
    Unfortunately I am getting the 'IN bind variable bound to an OUT position' error which I believe is because it is trying to return a value into v_incr_count_name which has been defined by default as an IN variable. The problem is that I need to store the returned value into the variable whose name is stored in v_incr_count_name.
    Another solution I tried is:
    v_incr_count_name := 'v_'||v_scheme||'_'||v_cont_cat||'_'||v_emp_cat||'_count';
    sql_stmt := 'SELECT '||v_incr_count_name||' + 1 FROM DUAL';
    EXECUTE IMMEDIATE sql_stmt INTO v_return;
    This solution gives me an 'Invalid colum error'
    Any help would be greatly appreciated
    Cheers, Dan

    Repost:
    Problem with variables in dynamic SQL/PLSQL

  • Passing values to session variables from another application

    Hi,
    From an external application we are passing username and password for accessing the OBIEE Dashboard.In the url call we are passing NQUser and NQPassword. This is working fine.
    To setup data level security we need to pass region id list also as request object. Then we can filter the tables by the value in the region id list for that user. If we use external table to pass the home_id list then the application is working fine by setting up row-wise init block. But we need request object from an external application to send the list. How can we accept the list from OBIEE RPD?
    In the documentation it mentions about session variables - non system. But it requires an init block. How can we create a variable that accepts the values when user logins just like NQUser and NQPassword.
    Please suggest.
    Thanks.

    Try this ...
    http://oraclebizint.wordpress.com/2007/07/30/customizing-obi-ee-%E2%80%93-go-url-parameters/
    In this blog entry you'll find at the bottom ...
    Hello, Can you please explain how to pass parameter values in the url. For example, I want to run an answers query and pass into the url something like this: &Region=West
    Venkatakrishnan J Says:
    August 22, 2007 at 7:36 am
    Yes, this absolutely possible. You can get the details from the Web Services guide since it has all the necessary examples and more explanation. Thats why i did not include it in the blog. You can get it from page 213 of the Docs http://download.oracle.com/docs/cd/B40078_02/doc/bi.1013/b31766.pdf

  • Trying to pass Hidden/Session variables from 1 JSP to 3rd JSP

    Hellol JSP Gurus !!
    This is a question on how a hidden or a value of a session variable can be passed from 1 JSP to a 3rd JSP, with the 2nd JSP as a Processing page.
    For eg., here's the scenario
    I have a Login page which has the hidden variables. Once the user enters the Login information, the info is validated in a LoginP.jsp (say, its a Processing page for the Login user/passwd info), which does a sendRedirect to a 3rd (Final) JSP which displays the values of the hidden/session variables of the 1st JSP.
    In my case, for some reason, I am not able to see the value for the hidden or the session variables in the 3rd JSP - they are null values.
    I am attaching some Duke dollars to who ever gives me the right solution.
    Thanks a lot in advance

    Use strings to set attributes;You can store any serializable object in the session. I doubt this will actually change anything.
    Anything wrong with the above code ?Not that I can see ... A number of other things can explain why you're getting null values out of the session. For example :
    - You are not using the implicit session obj in the 3rd jsp, but creating a new one and thus overwriting the one created previously
    - the session timeout value is unusually low, and by the time you're getting to the 3rd jsp, the session is invalidated and you're getting nulls. Verify your server config, or call session.getMaxInactiveInterval() to check the value. Check also if the session is new ( session.isNew() )
    Somebody already pointed this out : If the client does not support cookies and URL rewriting is not enabled, no session ID is returned to the server on a request, which the server then perceives as a new session.
    - Another (remote?) possibility : your 3rd jsp belongs to another webapp (i.e you're redirecting to another app context).
    If nothing of the above applies, post the jsp code and we'll try to help.

  • Need to get os variable from PL/SQL

    Hi,
    I have a small problem, I need to get some os variable for example disc space left on disc, from pl/sql i have heard that this should be possible to via JAVA. Does anyone have any example to achive this?
    Thanks.
    Lars

    Here is one way to call java function ->
    Connect Sys,
    satyaki>set serveroutput  on
    satyaki>exec dbms_java.grant_permission('HR','SYS:java.lang.RuntimePermission','writeFileDescriptor','');
    PL/SQL procedure successfully completed.
    satyaki>exec dbms_java.grant_permission('HR','SYS:java.lang.RuntimePermission','readFileDescriptor','');
    PL/SQL procedure successfully completed.
    satyaki>exec dbms_java.grant_permission('HR','SYS:java.io.FilePermission','E:\OracleRND\*.*','read,write,execute,delete');
    PL/SQL procedure successfully completed.
    Connect HR,
    satyaki>create or replace and compile java source named "Print_Hello"
      2     as
      3       import java.io.*;
      4       public class Print_Hello
      5         {
      6            public static void dislay()
      7              {
      8                 System.out.println("Hello World...... In Java Through Oracle....... ");
      9              }
    10         };
    11  /
    Java created.
    satyaki>
    satyaki>
    satyaki>create or replace procedure java_print
      2     as
      3       language java
      4       name 'Print_Hello.dislay()';
      5  /
    Procedure created.
    satyaki>call dbms_java.set_output(1000000);
    Call completed.
    satyaki>
    satyaki>
    satyaki>set serveroutput on size 1000000;
    satyaki>
    satyaki>exec java_print;
    Hello World...... In Java Through Oracle.......
    PL/SQL procedure successfully completed.Now, you have to prepare your code accordingly.
    Regards.
    Satyaki De.

  • Problems accessing session variables from a pop-up

    I am working on a webapp and I when I click on a certain button I need to have a pop-up appear that will either prompt a user to enter log-in info if they haven't already, otherwise the pop-up just needs to display a report. Users can navigate around on the main page and select various reports so multiple pop-ups could possibly be opened. When a user logs in I save the login info in session variables, but for some reason whenever I click to have another pop-up open it always says that my session variables are null. Is there a way to have more global session variables so that multiple windows (the pop-ups) can touch session variables? Would there be a way to pass the login info in session variables back to the main page and then pass those session variables back out to each pop-up that opens? Thanks so much.

    Have you got session cookies enabled?
    The most common way to keep track of the session id is via a session cookie.
    This cookie gets shared by all windows of the same browser session.
    You are opening these pop-up windows with window.open?
    Print out the session id <%= session.getId() %> on each page to see if it is the same.
    Cheers,
    evnafets

  • Can I set session variables from inside my Javascript?

    hi all,
    i want to set a couple of session variable while i am inside my javascript.
    can I do that?
    m_asu

    No. JavaScript runs on the client and the session is on the server. You can use JavaScript to set parameters that get passed back in the request and can then be put in the session.

  • Retrieving a session variable from a php script and putting it in an applet

    I have a chat applet and i'm trying to have a session variable in one my php scripts be setted onto the user area of my chat. Would it start out by doing this?
    <object codetype="application/java"
    code = "ClientApplet.class"
    width = "300"
    height = "400"
    classid = "the name of the session variable">
    </object>

    No.
    Use the parameter tags.

  • How to pass a bind variable from one SQL Report to Another

    Hello~
    I've created a link on one SQL Report page (Page 1). I would like a value from Page 1 used in the SQL on Page 2 to determine the result set. The Where Clause in SQL Query containing the bind variable is as follows:
    AND hp.party_name     = ':District_Account'
    When I run Page 1 and click on the link to execute Page 2, I get 'No Data Found'. The setup of the link is as follows:
    Column_Name = District_Account
    Link Text = #District_Account#
    Target = Page in this application
    Page = 2
    I'm a rookie working in V1.6...any help would be greatly appreciated!
    Thanks,
    Becky

    I don't see any parameter being passed in that URL. A little sample: http://htmldb.oracle.com/pls/otn/f?p=33203:4<br>
    when you click on the edit link the URL looks like this:<br>http://htmldb.oracle.com/pls/otn/f?p=33203:5:16073998852455071705::NO:5:P5_TABLE_NAME,P5_OWNER:PRESIDENTS_THEMES%2CBLUETEST<br><br>
    where P5_TABLE_NAME and P5_OWNER are the items and PRESIDENTS_THEMES and CBLUETEST are the values.<br><br>
    The SQL on the filtered report looks like:<br>
    SELECT *
    FROM all_tab_cols
    WHERE table_name = :P5_TABLE_NAME
      AND owner = :P5_OWNER<BR><BR>

Maybe you are looking for

  • How do i get my purchased movies back on itunes

    I brought a movie awhile ago on my account and never transfered it to my computer so i was wondering if there is anyway i can get them back on my itunes

  • How to maintain two sets of links

    We have an organization chart on our intranet that we would like to place on our Internet site as well. The different units listed on the intranet site org chart have links to the corresponding intranet page for that unit. For the Internet org chart,

  • Sending iPad Sync from Computer to iCloud

    I tried to restore my iPad last night because I had a couple of apps that wouldn't open.  Each time I chose restore, I would get an error message that a file was corrupt and it could not restore.  I was able to clean it and get most of my apps back b

  • Reg rfc & idoc

    hai all, i want to know exactly the reason why RFC resides on Java stack and where as IDoc resides on Abap stack, as they both belongs to SAP R/3. Thanking You All, Mohammed Akmal.

  • Can't find a Creative distributor in Italy

    Hi everybody, I'm an Hw retailer from Nothern Italy and i'm unable to find Creative products?from?any distributor or wholesaler?in my area, althought the?huge amount of requests from?my customers. So, is there still a Creative distributor in Italy? I