How do I clear query parameter in Oracle 10g ADF

HI ,
My question is
1. when i am navigating to page B from Page A its querying data and showing . And I have same Pgae B which is attached to Menu also
so . How do i trace whether I am comming from menu or comming from Page A ..??
2. if i moved to page A and searched with some criteria , after then I moved to Page B from Menu , again come back to Page A from Menu
its retaining the old search criteria in the page . not clearing my search criteria . ( as a result what is happening its not showing the data whatever
in the Table ) . In order to show my existing data , i need to clear and then again clicking page B in Menu then only its showing the data .
so how to clear query parameter

[email protected] wrote:
HI ,
My question is
1. when i am navigating to page B from Page A its querying data and showing . And I have same Pgae B which is attached to Menu also
so . How do i trace whether I am comming from menu or comming from Page A ..??Add a setActionListner and set a sessionscope variable according to the action?
>
2. if i moved to page A and searched with some criteria , after then I moved to Page B from Menu , again come back to Page A from Menu
its retaining the old search criteria in the page . not clearing my search criteria . ( as a result what is happening its not showing the data whatever
in the Table ) . In order to show my existing data , i need to clear and then again clicking page B in Menu then only its showing the data .
so how to clear query parameter

Similar Messages

  • How do I clear the parameter after form post?

    Hi. I am learning my first JSP and was trying to do a form post. However, I found that after successfully submit to the database. If I press F5 (Refresh) from browser, the data will be re inserted into database. How could I clear the parameter (action) after data insert. My code structure is as follow.
    Thank you.
    <%@ page import="java.sql.*" %>
    <%! Connection conn;
    PreparedStatement stmtInsert;
    public void jspInit() {
    try{ ... }catch(SQLException e){}
    catch(ClassNotFoundException e){}
    public void jspDestroy() {...}
    %>
    <% if (request.getParameter("action") == null ) { %>
    <H2>Data Entry:</H2>
    <FORM METHOD="post" ACTION="<%= request.getRequestURI() %>">
    <INPUT TYPE="submit" NAME="Submit" VALUE="Submit">
    <INPUT TYPE="reset" NAME="Reset" VALUE="Reset">
         <INPUT TYPE="hidden" NAME="action" VALUE="insert">
    </FORM>
    <% } else if (request.getParameter("action").equals("insert")) { %>
    <%
    try{
    synchronized(stmtInsert){
    stmtInsert.executeUpdate();
    out.print("<br> Room has been inserted successfully");
    // once successful...how could I change the action to null?
    } catch (SQLException e){
    %>

    http://forum.java.sun.com/thread.jsp?forum=45&thread=78925

  • How do we find instance name in ORACLE 10g

    Hi All,
    How do we find SID name in Oracle 10g
    Thanks in advance
    Pandiarajan

    Apology accepted.
    But yes, of course I was harsh (not at you, actually, but at the plonker who thinks he can tell me that 'echo $something' is "not right").
    Do you know how many questions could be answered here if people weren't forever debating perfectly acceptable answers? If people actually stopped to read what had been written before deciding to add their tuppence-worth? If people stopped to think, "well, that's not how I would answer it... but it's good enough".
    I see so many threads here where 58 people dive in to a thread to say, 'Me too'. Another 42 will dive in to say, 'that's not right' when actually it is. And another 137 or so will usually chime in to say nothing very much except to demonstrate that they didn't understand something that was explained a lot earlier on quite clearly. Threads go on and on, when actually all that was sought originally was a simple answer to a technical issue. God knows why it happens.
    I have no problem at all being asked for clarification. I have no problem at all being corrected and having someone point out that actually that parameter doesn't exist, you made a typo, that's not the command to achieve X. When I am technically wrong, I would expect nothing less. But where so much of my time gets wasted is demonstrated in this thread perfectly. I answered the question in one post. It might not have been a perfect answer. There are many different ways of coming up with the answer on Windows, for example, and yet I didn't mention the registry at all or the Control Panel/System applet for checking environment variables once. And yet, despite all of that, in answer 1 there was sufficient information to make the OP happy. But no, that's not enough to shut some people up (and I am again not referring to you at this point).
    I don't know what it is. Some sense of, maybe, in a democracy my opinion is as good as yours even if it's entirely unnecessary, potentially confusing and adds absolutely nothing to the outcome? A desire on the part of some people to boost their post numbers?
    Too right I'm harsh. I am results-driven. I am here because I want to help others. Not because I think my opinions deserve a hearing even though the answer was posted ages ago. When I see something that looks like the opposite of that -grandstanding, look how clever I am, my opinion counts too- yeah, it annoys me somewhat. And largely because I usually end up having to untangle the confusion caused by unnecessary "contributions" from others.

  • How much concurrent conection is allowed in oracle 10g XE?

    How much concurrent conection is allowed in oracle 10g XE?

    Hi,
    >>How much concurrent conection is allowed in oracle 10g XE? I think that the default value on Oracle XE for the SESSIONS parameter is 40.
    Then, if you will need more concurrent sessions accessing the database, you need increase this value using alter system command for this parameter.
    Cheers

  • How we create new data base in oracle 10g express edition

    hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition

    Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
    Using SYS or system accounts for creating user accounts.
    Syntax to create a user:
    create user Your_user
    IDENTIFIED BY password
    default tablespace users;
    grant connect, resources to your_user;
    Edited by: rober584812 on Jun 25, 2010 9:03 PM

  • How to access Data Guard option in Oracle 10g OEM

    Hi All,
    I have Oracle 10g ENTERPRISE EDITION on Unix envoirement. I want to setup logical standby Database through Data Guard technology. But when I brows through OEM I do not find Link for DATA GUARD????
    1) How to access Data Guard option from oracle 10g OEM.
    2) Does It come with Enterprise Edition OR I have to install it separately.
    Regards,
    Darshan

    I am managing almost everything through EM Grid Control. It is easy to setup and configure.
    Anyways, if you have read the documentation on
    Oracle® Data Guard Concepts and Administration and setup your environment accordingly then you should not have any problems. Atleast I can assure you that your production database will not be affected by it.
    Just make sure that you follow each step and read thoroughly. If you have spare machines then you can test and record your configuration before performing it on your production db. This link will provide you with the information on DataGuard.
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14239/concepts.htm
    If you think that way then you will never be able to do any new stuff since you will always fear that something might go wrong. Go ahead pal, try it on test machines and you will know that it is not that difficult.
    There are real experts who help people like us in this forum and I know that they are doing a pretty good job.
    All the best.
    Rgds
    Adnan

  • Query on Recyclebin (Oracle 10g)

    Hi Gurus,
    Can you tell me the command to clear the Recyclebin in Oracle 10g.
    Thanks in advance
    ~Anup.

    [url http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9018.htm#i2152611]purge
    You want not to use Recyclebin, then you may try as follws
    alter system set recyclebin = off scope = both; -- 10.20
    alter system set _recyclebin = off scope = spfile; -- 10.01                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to change redo log size in oracle 10g

    Hi Experts,
    Can anybody confirm how to change redo log size in oracle 10g?
    Amit

    Dear Amit,
    You can enlarge the size of existing Online Redo log files, by adding new groups with different size of files (origlog$/mirrlog$) and then carefully droping the old groups with  their associated inactive files.
    Please refer SAP Note 309526 - Enlarging redo log files to perform the activity.
    Steps to perform:
    STEP-1. Analyze the exisiting situation and prepare an action plan.
    A. You have to ensure that no more than one log switch per minute occurs during peak times.
    It may also be necessary to increase the size of the online redo logs until they are large enough.
    Too many log switches lead to too many checkpoints, which in turn lead to a high writing load in the I/O subsystem.
    Use ST04 -> Additional Functions --> Display GV$-Views
    There you can select
    Gv$LOG_HISTORY --->for determing your existing LOG switching frequency.
    GV$LOG -
    > list the status(INACTIVE/CURRENT/ACTIVE) /size/sequence no. of existing online redolog files
    GV$LOGFILE  --- > list the information of existing online  redolog files with their storage paths
    You can document the existing situation of Online Redo Log Fiile management before going to enlarge Redo Log Files.
    It will be helpful, if something goes wrong while performing activities.
    B. Based on above Situation analysis, Plan your New Redo Log Group and there Members with new optimal size.
    e.g.
    Group No.         Redo Log File Locations  u201C/oracle/<SID>/u201D                  Size
                                 /origlogA                  /mirrlogA            
    15                        log_g15m1.dbf         log_g15m2.dbf               100 MB
    17                        log_g17m1.dbf            log_g17m2.dbf               100 MB
                                /origlogB                    /mirrlogB
    16                       log_g16m1.dbf          log_g16m2.dbf            100 MB
    18                       log_g18m1.dbf            log_g18m2.dbf            100 MB
    Continue to next.....

  • OAF page : How to get its query performance from Oracle Apps Screen?

    Hi Team,
    How to get the query performance of an OAF page using Oracle Apps Screen ??
    regards
    sridhar

    Go through this link
    Any tools to validate performance of an OAF Page?
    However do let us know as these queries performance can be check through backend also
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • LRM -00109:could not open parameter file Oracle 10g in Solaris 10

    Hallo! I have just installed Oracle 10g in Solaris 10.When I logged into sqlplus / as sysdba if found that I was connected to an idle instance. When I tried to startup open the db, the following error appeared
    Connected to an idle instance.
    SQL> startup open;
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/export/home/oracle/product/10.2.0/db_1/dbs/initsolaris.ora'
    My pfile has the name init.ora and not initsolaris.ora.How can I change the settings to make the Oracle database start via pfile init.ora.
    Eventually,I would like the db to read the spfile spfileorcl.ora during the startup.How can I achieve this?
    Thanks

    4joey1 wrote:
    Hallo! I have just installed Oracle 10g in Solaris 10.When I logged into sqlplus / as sysdba if found that I was connected to an idle instance. When I tried to startup open the db, the following error appeared
    Connected to an idle instance.
    SQL> startup open;
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/export/home/oracle/product/10.2.0/db_1/dbs/initsolaris.ora'
    My pfile has the name init.ora and not initsolaris.ora.How can I change the settings to make the Oracle database start via pfile init.ora.
    By default, oracle will look first for a spfile named "spfile<ORACLE_SID>.ora". Lacking that, it will try to find "init<ORACLE_SID>).ora.
    Eventually,I would like the db to read the spfile spfileorcl.ora during the startup.How can I achieve this?
    Once you have started the db (I believe a startup nomount will be sufficient) you can issue CREATE SPFILE ... Details are in the fine SQL Reference manual found at tahiti.oracle.com
    BTW, "open" is the default behavior of "startup", so no need to specify it. A simple "startup" does the same thing.
    Thanks

  • How can i increase sga size in oracle 10g

    Hello friends
    how can i increase my sga size in oracle 10g
    Regards
    Vicky
    Edited by: Vignesh Chinnasamy on 31-Jul-2012 02:28

    HI
    **SQL> Show parameter sga ;**
    NAME                                 TYPE        VALUE
    lock_sga                             boolean     FALSE
    pre_page_sga                         boolean     FALSE
    sga_max_size                         big integer 2G
    sga_target                           big integer 2G
    **SQL> show parameter memory;**
    NAME                                 TYPE        VALUE
    hi_shared_memory_address             integer     0
    shared_memory_address                integer     0
    **[root@mte ~]# ulimit -a**
    core file size          (blocks, -c) 0
    data seg size           (kbytes, -d) unlimited
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 1024
    max locked memory       (kbytes, -l) 32
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 1024
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    stack size              (kbytes, -s) 10240
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 278528
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited
    *[root@mte ~]#*

  • How can check which patch install in oracle 10g

    hi experts,
    i have use oracle 10g , i hv patch information but how can check which patch install ?

    Run following command , it will give you list of patches installed on Oracle Home
    cd ORACLE_HOME/OPatch
    opatch lsinventory
    For patchset and CPU patch , check/query DBA_REGISTRY_HISTORY
    Virag

  • How can I enable Enterprise Manager in Oracle 10g?

    Hi,
    We recently installed Oracle 10g on a MS Window server and after the installation which we created 2 instances each with a default schema from an existing data file (.dmp). After the installation, I realized that somehow, the DBConsole entry is missing in the Windows Services which then prevent me from being able to launch the new browser-based EM.
    We thought we have picked all the components during the installation but for some reasons, it seems like the necessary files or configurations for EM was not there. So I was wondering if anyone know how I can manually install and configure EM?
    Initially I thought if I go thru Oracle Universal installer and re-install everything again, it might help but I am concern that it will then wipe out the 2 instances and schemas that we have already created, especially since I have also applied the 10.2.0.3 patch already. So there was some discussions on calling the emctl program which when I tried, it I got error saying that ORACLE_SID not found. Then there was also some documentation on using the EMCA command to build the dbconsole, is that what I should do?
    Lastly, I was under the impression that one will only setup one EM per server, which means in a perfect world, I will have one instance of the EM which will then allow me to manage the multiple instances (and their schemas) from the same console, is that correct? Or is one EM instance only manages one instance of the database? So if I have TESTDV & TESTUT configured on the same server, I will need to also create two EM consoles?
    I am an amature and am more familiar with Oracle 9i which the EM seemed to be easier to use and setup. So I think I must have skipped or missed some steps during my 10g installation but am concerned that if I reinstall, I will lose everything.
    Thank you very much.

    First of all, thank you as always for taking the time...
    I apologize in advance if I am not using the right terminology. Basically, I have only one Oracle Home directory on that server but I am able to create two different instances and in both cases, I have left the port number to be the same thinking that it's only one physical installation. I thought I would attach my TNSNAME and LISTNER ora files below to give you a better picture of my current setup.
    So for me to connect to the database and the appropriate instance for example, like using SQL Developer, all I have to do is specify the Host Name to DBServer and then the Service Name to either TESTDV or TESTUT. Then I can connect to each of the instance directly.
    But I only have one Oracle_Home directory and use the same port number as the default choice. So to your comment, if I only have one Oracle_HOME and one Port number, should I only install one EM instance?
    Thanks much.
    ******In the TNSNAMES.ORA file:*****
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    TESTDV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = DBSERVER)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TESTDV)
    TESTUT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = DBSERVER)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TESTUT)
    *****In the LISTNER.ORA file:*****
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_NAME = TESTDV)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (SID_NAME = TESTDV)
    (SID_DESC =
    (GLOBAL_NAME = TESTUT)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (SID_NAME = TESTUT)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = DBSERVER)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )

  • How get scott user database schema in oracle 10g express edition

    hi
    plz any on can tell me how to get the scott user database table details into the oracle 10g express edition
    Iam created the user as scott but but i didn't get the table details
    ...plz give me the details correctly.

    You will go into this path C:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\scott.sql. You can get scott.sql script yhen you need to run the script like @C:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\scott.sql. Otherwise you just copy the below script and save it into one file then run that file using @
    Rem Copyright (c) 1990 by Oracle Corporation
    Rem NAME
    REM    UTLSAMPL.SQL
    Rem  FUNCTION
    Rem  NOTES
    Rem  MODIFIED
    Rem    gdudey       06/28/95 -  Modified for desktop seed database
    Rem    glumpkin   10/21/92 -  Renamed from SQLBLD.SQL
    Rem    blinden   07/27/92 -  Added primary and foreign keys to EMP and DEPT
    Rem    rlim       04/29/91 -          change char to varchar2
    Rem    mmoore       04/08/91 -          use unlimited tablespace priv
    Rem    pritto       04/04/91 -          change SYSDATE to 13-JUL-87
    Rem   Mendels     12/07/90 - bug 30123;add to_date calls so language independent
    Rem
    rem
    rem $Header: utlsampl.sql 7020100.1 94/09/23 22:14:24 cli Generic<base> $ sqlbld.sql
    rem
    SET TERMOUT OFF
    SET ECHO OFF
    rem CONGDON    Invoked in RDBMS at build time.     29-DEC-1988
    rem OATES:     Created: 16-Feb-83
    GRANT CONNECT,RESOURCE,UNLIMITED TABLESPACE TO SCOTT IDENTIFIED BY TIGER;
    ALTER USER SCOTT DEFAULT TABLESPACE USERS;
    ALTER USER SCOTT TEMPORARY TABLESPACE TEMP;
    CONNECT SCOTT/TIGER
    DROP TABLE DEPT;
    CREATE TABLE DEPT
           (DEPTNO NUMBER(2) CONSTRAINT PK_DEPT PRIMARY KEY,
        DNAME VARCHAR2(14) ,
        LOC VARCHAR2(13) ) ;
    DROP TABLE EMP;
    CREATE TABLE EMP
           (EMPNO NUMBER(4) CONSTRAINT PK_EMP PRIMARY KEY,
        ENAME VARCHAR2(10),
        JOB VARCHAR2(9),
        MGR NUMBER(4),
        HIREDATE DATE,
        SAL NUMBER(7,2),
        COMM NUMBER(7,2),
        DEPTNO NUMBER(2) CONSTRAINT FK_DEPTNO REFERENCES DEPT);
    INSERT INTO DEPT VALUES
        (10,'ACCOUNTING','NEW YORK');
    INSERT INTO DEPT VALUES (20,'RESEARCH','DALLAS');
    INSERT INTO DEPT VALUES
        (30,'SALES','CHICAGO');
    INSERT INTO DEPT VALUES
        (40,'OPERATIONS','BOSTON');
    INSERT INTO EMP VALUES
    (7369,'SMITH','CLERK',7902,to_date('17-12-1980','dd-mm-yyyy'),800,NULL,20);
    INSERT INTO EMP VALUES
    (7499,'ALLEN','SALESMAN',7698,to_date('20-2-1981','dd-mm-yyyy'),1600,300,30);
    INSERT INTO EMP VALUES
    (7521,'WARD','SALESMAN',7698,to_date('22-2-1981','dd-mm-yyyy'),1250,500,30);
    INSERT INTO EMP VALUES
    (7566,'JONES','MANAGER',7839,to_date('2-4-1981','dd-mm-yyyy'),2975,NULL,20);
    INSERT INTO EMP VALUES
    (7654,'MARTIN','SALESMAN',7698,to_date('28-9-1981','dd-mm-yyyy'),1250,1400,30);
    INSERT INTO EMP VALUES
    (7698,'BLAKE','MANAGER',7839,to_date('1-5-1981','dd-mm-yyyy'),2850,NULL,30);
    INSERT INTO EMP VALUES
    (7782,'CLARK','MANAGER',7839,to_date('9-6-1981','dd-mm-yyyy'),2450,NULL,10);
    INSERT INTO EMP VALUES
    (7788,'SCOTT','ANALYST',7566,to_date('13-JUL-87')-85,3000,NULL,20);
    INSERT INTO EMP VALUES
    (7839,'KING','PRESIDENT',NULL,to_date('17-11-1981','dd-mm-yyyy'),5000,NULL,10);
    INSERT INTO EMP VALUES
    (7844,'TURNER','SALESMAN',7698,to_date('8-9-1981','dd-mm-yyyy'),1500,0,30);
    INSERT INTO EMP VALUES
    (7876,'ADAMS','CLERK',7788,to_date('13-JUL-87')-51,1100,NULL,20);
    INSERT INTO EMP VALUES
    (7900,'JAMES','CLERK',7698,to_date('3-12-1981','dd-mm-yyyy'),950,NULL,30);
    INSERT INTO EMP VALUES
    (7902,'FORD','ANALYST',7566,to_date('3-12-1981','dd-mm-yyyy'),3000,NULL,20);
    INSERT INTO EMP VALUES
    (7934,'MILLER','CLERK',7782,to_date('23-1-1982','dd-mm-yyyy'),1300,NULL,10);
    DROP TABLE BONUS;
    CREATE TABLE BONUS
        ENAME VARCHAR2(10)    ,
        JOB VARCHAR2(9)  ,
        SAL NUMBER,
        COMM NUMBER
    DROP TABLE SALGRADE;
    CREATE TABLE SALGRADE
          ( GRADE NUMBER,
        LOSAL NUMBER,
        HISAL NUMBER );
    INSERT INTO SALGRADE VALUES (1,700,1200);
    INSERT INTO SALGRADE VALUES (2,1201,1400);
    INSERT INTO SALGRADE VALUES (3,1401,2000);
    INSERT INTO SALGRADE VALUES (4,2001,3000);
    INSERT INTO SALGRADE VALUES (5,3001,9999);
    COMMIT;
    SET TERMOUT ON
    SET ECHO ON

  • How to import a data base into oracle 10g.

    hi all
    when am using the scott/tiger username and password in the SQL plus i got this msg..
    "the account is locked"
    how can i solve this issue?
    and when i use the same username and password scott/tiger in addition to define a Host string " orcl" which is my new automatically generated database while installation.. it gives me this msg: TNS: no listener.
    any help ?
    by the way i succeed to login using .. system/zaq123 which is my own created password while installing oracle 10g ....ver 10.1.2.0 ..... in addition to the Host string "orcl" ......

    If you're not familiar with OEM, or you want to learn, you can unlock that account from SQL*Plus, too.
    And when you unlocked SCOTT, don't forget to look after your TNSNAMES and LISTENER configuration...
    Good luck!

Maybe you are looking for

  • .xel file not getting created

    Hi All, I am using 9.1.0.2 version. I archived the xel.log file as it was getting very bigger in size after stopping oim_server through Weblogic console. I expected that after I start the oim_server all log files will get created automatically. I see

  • TS2972 How do you port forward for Home Sharing ?

    I want to home share with my apple tv and it's not working, so i think i need to port forward for home sharing on my apple tv. But i dont know how to port forward :S

  • Map ID maximum numeric value?

    I have created approximately 6 RoboHelp projects and combined into a master project.  All of these have context-sensitive help.  The master - child projects are working fine.  All of the WebHelp files compile fine, but there are quite a few Map IDs t

  • How to use a database to fill out a form?

    Hello, I have been several months attempting an invoice form with LiveCycle Designer 8.0 for my company advertising, but fail to complete it. I have an Access 2007 where are 500 customers beside the name of its establishment, client code, address, ta

  • Reinstall downloaded game on N80

    Hi, I have an Orange Nokia N80 and recently downloaded the new Tomb Raider Legend game. I installed the game to my memory card and the shortcut showed up in the menus but when I went to start the game it said 'No more memory'. I have been having prob