Logout session

I have a filter to control the session of my application.when the user logs in he will be able to access all the jsp pages .
Problem--- Even after user logs out , he is able to directly access the jsp pages , by typing the url .(but before loggin in he would be redirected to login page if
he tries to access any jsp page directly)
What should I do to avoid this problem , (ie when the user hits the "logout" he should not be able to directly access the jsp pages any more , he needs to be redirected again to login page.)
here is the code of my filter(it works fine when the user is not logged and also when the user is logged in for the first time)
package com.bea.genesis.tenantmgmt.utils;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class FacesRedirectFilter implements Filter {
     public void doFilter(ServletRequest req, ServletResponse res,
               FilterChain chain) throws ServletException, IOException {
          LoginBean loginBean = new LoginBean();
          HttpServletRequest request = (HttpServletRequest) req;
          HttpServletResponse response = (HttpServletResponse) res;
          HttpSession session = ((HttpServletRequest) req).getSession(true);
          // String relativePath = request.getServletPath();
          // String uri = request.getRequestURI();
          // if(loginBean.getLoginId()== null)
          if (session.isNew()) {
               String relativePath = request.getServletPath();
               if ((relativePath.indexOf("/pages/") >= 0)
                         && relativePath.endsWith(".jsf")) {
                    // int length = uri.length();
                    // String newAddress = uri.substring(0, length-3) + EXTENSION;
                    // response.sendRedirect("login.jsf");
                    RequestDispatcher rd = request
                              .getRequestDispatcher("login.jsf");
                    rd.forward(req, res);
               chain.doFilter(request, response);
          } else {
               String Path = request.getServletPath();
               RequestDispatcher rd = request.getRequestDispatcher(Path);
               rd.forward(req, res);
     public void destroy() {
          // TODO Auto-generated method stub
     public void init(FilterConfig filterConfig) throws ServletException {
          // TODO Auto-generated method stub
Do I need to do anythiing at the logout (related to the session invalidate )
Please provide the code.
thanks

ganeshpuppala wrote:
I am actually just using a logout link Probably not a good idea. You should have a logout servlet that directs you to a "goodbye" page, which could be the login page, but it should be a different URL.
, (its a href tht redirects the page to the login.jsp ) , I cannot invalidate the session here.(ie I cannot create a seperate jsp page for the logout -- how do I I invalidate the sesion here?)
So when the user hits this logout link he is redirected to the login page.
But after tht when he enters the url directly he is able to directly access the pages.
I'd say that the user should request a page inside the site and get the login page instead.
Is this really just a browser cacheing problem?That always serves to confuse the issue.
In general all dynamic pages should be returned with cache supression headers (you could add these headers in your filter).
These include pragma: no-cache cache-control: no-cache, expires <ancient date>

Similar Messages

  • After logout + session is not terminated

    Hi everyone. I have been using the tutorial Tutorial for Java EE Developers (10.1.3.1.0) and has used the class SRLogout.java to logout the user.
    But the problem is when we click on the back button of the browser. The user can access the page even if he has logout before...
    How can I prevent the user to see the page when using the back button of the browser.
    Thank you for your help
    Regards
    Lutchumaya

    Hi,
    after logging out, redirect to a protected page so the logon scree comes up. Note that the invalidation of the web session doesn't
    - invalidate the ApplicationModule session immediately
    - prevent browser based SSO if basic authentication is used. Using basic authentication, the browser authenticates every page request with a username / password token. If you invalidate the session, then the bowser will re-authenticate the user on the next request
    Frank

  • Flex Session & login logout

    I have a web application in flex with back end as LCDS. I want to execute a function in server when the client logs out/close the browser.
       How can I implement this ( calling a severside function while user close the browser without properly logging out)?
    Can anybody help me?

    thank you for your advice yogi, but I would be more understanding if tried in the form of training / tutorials, can you tell the link that discusses login / logout session using flex and java
    thanks

  • Is there way to logout databasesession without closing dedicated connection

    Dear folks,
    I am using databasesession to do db operations.For some purpose,after we logout session,we want to re-use jdbc connection again.I am using the following way:
    DatabaseSession session = getProject().createDatabaseSession();
    session..getLogin().setConnector(MyConnector());
    session.login();
    snippet of MyConnector:
    public Connection connect(Properties properties) {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn =
    DriverManager.getConnection(getConnectionURL(),
    getConnectionUserName(), getConnectionPassword());
    } catch (Exception e) {
    // TODO
    e.printStackTrace();
    return conn;
    As everyone know,calling session.logout() will internally close the connection.Then,is there way for me to do?

    1. Press Windows key+D
    2. You should have a "Show Desktop" icon in your Quick Lauch toolbar next to the "Start" button. Sometimes the "Show Desktop" icon goes missing according to some, but I have never experienced that.
    MS article here: http://support.microsoft.com/?kbid=190355

  • Unable to kill a session request

    i had started to run a calc script and then decided to cancel it manually on a BSO data base. In the sessions I can see that the request is in "Terminating stage" but has been like that forever( almost 5 hours)
    i have tried scripts to kill it but failed
    Alter System Kill request all;
    ALter system logout session all;
    Tried to manually kill it through EAS by even using force but it's still there.
    Any ideas on how I can kill the session?
    Thanks.

    Once in a while these things just won't go away and you need to kill the serprocess running it. If it is on Windows bring up task manager on the server and look for the Esssvr session that has cpu on it. End that task. To make my live easier, I go into EAS and right click on applications and say stop all applications. The one that does not disappear out of Task manager is the one to terminate. You could also look in the Essbase log and find the PID the application started on.
    In Uxin it is easier as you gan do a ps -eaf and see the name of the application and kill -9 it's PID

  • How to create session and end the session in atg without using ootb

    can anyone send the code for creating session(Login) and ending(Logout) session in atg without using ootb.
    thankyou!

    It is plain simple and is plain old request.getSession(false) and then invalidate the session , but why do you want to do it separately . ATG works behind scenes to associate lot of attributes to the session when log in happens and then deassociates them when log out happens , SessionManager component is also helpful in security , can you state why exactly would you want to do it?

  • Invalidating a session in Java Bean

    Hi,
    I need to write a logout() method in my Java Bean to invalidate
    the current session upon logout.
    But i keep getting error when i try to access the session.
    bu using
    session.invalidate();
    Does anyone know how to retrieve the current session in a Java Bean??
    Thanks..

    Hi,
    You can pass the session from the JSP to the Javabean method for invalidating it. For example, in your JSP you can have:
    <%-- instantiate your bean --%>
    <jsp:useBean id="bean" class="YourJavaBean" scope="page" />
    <%-- call the method with the session parametere --%>
    bean.logout(session);
    And then in your bean, have:
    public void logout(HttpSession session) {
    //Any processing...
    //invalidate the session
    session.invalidate();
    Hope that helps,
    Srinivas

  • Problem accessing sessionScope after logout

    Hello,
    after logout (session.invalidate) I cannot use
    ADFContext.getCurrent().getSessionScope().put(...) (java.lang.NullPointerException)
    How to recreate sessionScope?
    After logout not secured part of our application must be still functioning.
    Rado

    Hi,
    This is my logout code:
            ExternalContext ectx =
                FacesContext.getCurrentInstance().getExternalContext();
            HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
            HttpServletRequest request = (HttpServletRequest)ectx.getRequest();
            HttpSession session = (HttpSession)ectx.getSession(false);
            session.invalidate();
            pageUri = Params.getStartUri();
            try {
                response.sendRedirect(request.getContextPath() + pageUri);
            } catch (IOException e) {
                JSFUtils.addFacesErrorMessage(MsgBundle.INTERNAL_ERROR,
                                              new Object[] { "Logout" });
            }The problematic code accessing the sessionScope is in constructor of session scope managed bean.
    When are instances of session scope managed beans created? I guess after a new session was created. Why then the sessionScope doesn't exists? Have my session managed bean higher priority and is created prior to sessionScope?
    I can postpone accessing sessionScope in the constructor but don't know have can I check sessionScope has not been prepared yet? In debugger it seems to be ok.
    Rado

  • Using web transaction monitor to record dynamic java sessions.

    Hello,
    The title may be a bit confusing please forgive me for that :)
    I am recording a login-logout session for a business objects portal.
    Post login, the web application (as most do) generates unique tokens for each login session and uses that token for subsequent links for that single session.
    The problem: SCOM, records the links that were generated during the recording session. Which generates lets say token
    abcd. In subsequent iterations of the monitor, the web application will generate different tokens for each logon attempt but SCOM continues to use the links that were generated using the token
    abcd. This causes false alerts as the token being used by SCOM is not dynamic!
    This is going to be a serious hurdle for us as we have several similar applications and I need to find a work around or solution to this.
    Have anybody come across this till now? Any suggestions will be of great help..
    Thank you for your time.

    Thanks! Exactly what I needed.
    I hit a hurdle with that too because the portal I'm trying to monitor is passing the session variable using GET and not POST. We can insert parameters only into POST requests.
    I will keep exploring and will post here if I find an answer. Meanwhile, if anybody has experienced this, would appreciate any inputs on how we can insert parameters into GET links directly.

  • Maxl command to logout users for particular application

    Hello Everybody,
    Can you please help me on the below question.
    I have essbase 11.1.2.2 and I have a maxl script which does copy of applications A to B for maintenance, but during this process, the script logs out all the users from the system even though users dont access to A and B since they working on other applications eg., C, D and E.
    Currently I see the below command for logging out all users in the maxl script.
    "alter system logout session all force"
    Can you please let me know how I can logout user accessing only particular applications/database ( example A and B) in maxl script instead of logging out all the users from Essbase.
    Thanks for your help in advance.

    You can use...
    alter system logout session on application A force
    You will need to use one command per application.  Further details in the documentation for the same command (alter system):  http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/maxl_altsys.html  In particular, see the section titled "Session Specification" in the notes at the end.

  • Killing a user session?

    Running Essbase 11.1.2 ASO cube...occassionally, when I attempt to kill a user session in EAS, I get the status of "terminating". I try to kill the session using Maxl commands to no avail. I know as a last resort to use task manager to end the ESSSVR.exe process -but I have been burned by this in the past as the database gets corrupted. Does anyone know of a safe method to kill these "terminating" sessions? and why are some easy to kill through EAS and others are not?

    Hi ,
    You may find the following entries in the application log which means there were hung sessions.
    +[Mon Jan 24 13:23:46 2011]Local/ESSBASE0///Error(1013290)+
    Failed to logout user []: timeout while waiting for requests to die
    +[Mon Jan 24 13:23:46 2011]Local/ESSBASE0///Info(1056092)+
    Sessions logged out [0]
    However, it is difficult to say why these errors occur exactly. Usually Errors like this occur because there are still processes running in the memory when the next transaction is called.
    A vast majority of errors can be avoided by integrating pauses and by unloading the application and then reloading it after each calculation or member/data load.
    When you kill a session from the EAS Console for a particular user, you need to wait for some time before the process gets compeltely killed, which perform a restructure or data load or data aggregation. You need to wait untill the process gets killed completely before performing any operations on the application.
    Never allow any other user to modify outline or update data whenever the Calculation is running. This can cause the application to go into a hang state and whenever you try to kill and if it fails, then you need to kill the ESSSVR process manually. For instance, follow the below guide lines when running Calc scripts:
    1) Never allow any other user to indulge any activity on the application. It is preferred to schedule the batch script as a nightly process, if it is a large operation to avoid user interruption.
    2) In case of hangups, use the UNLOCKOBJECT command (ESSCMD) to first unlock all the objects that are accessed by the script (Check the technical reference guide for the command ).
    3) Next log off the user using the LOGOUTUSER command, but here if you have multiple sessions of the same user logged in the application, all the sessions will be logged off. In this case use the EAS console and kill all the requests of the user first and then kill the session of the user.
    Suggestion:
    Try to execute the following MaxL commands as batch script and check if the execution of Calculation script is successful:
    spool on to 'D:\output\backup.log';
    login admin mypassword on localhost;
    alter application <app_name> load database <db_name>;
    alter system logout session on database <db_name>;
    Shell Sleep 30;
    alter system kill request on database <db_name>;
    Shell Sleep 30;
    alter application <app_name> disable commands;
    Shell Sleep 30;
    Execute Calculation <app_name>.<db_name>.<calc_name>;
    Shell Sleep 30;
    alter application <app_name> enable commands;
    Shell Sleep 30;
    logout;
    exit;
    You can also refer the doc: How to Kill the Essbase Processes/Sessions in 'Terminating' Status (Doc ID 839411.1)
    Hope it helps...
    KosuruS

  • Correct way to close session

    Hi,
    I'm working with flash, not flex. I want to be able to
    1. add an afcs object to stage,
    2. subscribe to a baton property,
    3. unsubscribe
    4. remove the afcs object
    5... repeat
    1 to 4 are working, but when I try and repeat the process, I can't seem to subscribe.
    I have three buttons on stage to add, logout and remove
    function onLogin(e:MouseEvent):void
    cocomo = new CocomoTest();
    addChild(cocomo);
    cocomo.login();
    function onLogout(e:MouseEvent):void
    cocomo.destroy();
    function onRemove(e:MouseEvent):void
    removeChild(cocomo);
    And this is the Class
    package
    import flash.display.*;
    import flash.events.*;
    import com.adobe.rtc.session.ConnectSession;
    import com.adobe.rtc.authentication.AdobeHSAuthenticator;
    import com.adobe.rtc.authentication.LocalAuthenticator;
    import com.adobe.rtc.events.SessionEvent;
    import com.adobe.rtc.sharedModel.SharedProperty;
    import com.adobe.rtc.sharedModel.BatonProperty;
    import com.adobe.rtc.events.SharedPropertyEvent;
    import com.adobe.rtc.events.SharedModelEvent;
    public class CocomoTest extends MovieClip
      private var auth:AdobeHSAuthenticator;
      private var authL:LocalAuthenticator;
      private var session:ConnectSession;
      public var table1_northPlayer:BatonProperty;
      private var LOGINSYNCTYPE:String;
      public function Cocomo()
      //so step[ 1 is to log in...
      //after login and subscribing, I get notified:
      //RECEIVENODES table1_northPlayer
      //receiveAllSynchData table1_northPlayer
      public function login():void
       auth      = new AdobeHSAuthenticator();
       auth.userName     = "myname";
       session     = new ConnectSession();
       session.roomURL   = "myroomurl";
       session.authenticator  = auth;
       session.addEventListener(SessionEvent.SYNCHRONIZATION_CHANGE, onLogin);
       try
        LOGINSYNCTYPE    = "login";
        session.login();  
       catch(e:Error)
        trace (e.toString());
      //then i logout, close, any number of combinations i've tried
      //and remove the object from stage
      public function destroy():void
       table1_northPlayer.close();
       LOGINSYNCTYPE    = "logout";
       session.logout();
      private function onLogin(p_evt:SessionEvent):void
       switch (LOGINSYNCTYPE)
        case "login":
         trace ('login');
         table1_northPlayer     = new BatonProperty();
         table1_northPlayer.sharedID      = "table1_northPlayer";
         table1_northPlayer.subscribe();
        break;
        case "logout":
         trace ('logout');
         LOGINSYNCTYPE    = "close";
         session.close();
        break;
    finally, when I try and repeat the process, i log in ok, but don't get the
    RECEIVENODES table1_northPlayer
    receiveAllSynchData table1_northPlayer
    It seems like I'm not claring something properly but I'm not sure what.
    Any help appreciated.

    Hi Mr. Turtle,
    In this case, you're unwittingly taking advantage of the fact that LCCS objects, by default, subscribe themselves to the first ConnectSession you create. However, because you're creating fresh ConnectSessions each time, the objects are still grabbing an old ConnectSession, so they never succeed in synching past the first time. 2 ways you can remedy this :
    1.  Explicitly bind your LCCS objects to the correct ConnectSession. (ie. table1_northPlayer.connectSession = session;)
    2.  Instead of creating new ConnectSessions each time, re-use the original one.
    Either approach should work.
      hope that helps,
       nigel

  • Script to logout users from a specific group, when queries are long

    Hi,
    I have a requirement that users from a specific group need to be logged out, when they are running queries for more than say 20 mins.
    I could get the list of users from that group and could get the list of active sessions on the application, but I get too many info there like connection IP request state etc. and if I spool it to a file, output is not very easy to format to select what's required, rather I have to write lot of shell scripting to format the file.
    So my question here is to know if there's a MAXL script or any other method through which I can just get only couple of columns from the "display session on application <app name>" that I require for my work like username, session ID, DB connect time, and request time.
    Thanks!!

    There are a number of ways to accomplish this, but AFAIK none of them is straightforward like writing a script to accomplish the task.
    This could be accomplished quite readily with the Essbase API.
    Unfortunately, when Maxl outputs tabular data such as what comes out after DISPLAY SESSION ALL; - it comes out as all one big string with lots of spaces.
    So to parse that output you would need to use a language that can tokenize the text into a collection and parse that for the users.
    Then you need to do the same sort of thing after running DISPLAY USER IN GROUP ALL; (or instead of all, use a specific group name);
    Then run ALTER SYSTEM LOGOUT SESSION BY USER <parsed_username>;
    What would be ideal (hello Oracle... <wink> ) is a MAXL command ALTER SYSTEM LOGOUT SESSION BY GROUP <GroupName>;
    The way I would approach this would be to write a little utility that does exaclty what you seek:
    - Scan the current session periodically (say, once every 5 mins)
    - for each user that belongs to group(s) <group>(<group>...)
    - if user has an open query running longer than n minutes, kill the user request.
    This way you're not kicking people, your just taking back resources. Of course you can be more aggressive and code it to kick the user by forcefully ending (invalidating) his session too.
    I can give you a hand with this offline if you want.
    Robb

  • How can we Kill the session using Maxl

    Hi All,
    iam using EAS(11.1)
    i want to kill the sessions before loading the dimension and data into the cube , if any body connected or workinng on that server cube bcoz
    to avoid cube correptions
    how can i write MAXl for this scenario.???
    If any help,It would be appriciated.
    Thanks

    Hi,
    You can use the following maxl statements
    alter system kill request all;
    Which will kill all requests on the essbase server, also you can use
    alter system logout session all force;
    More information available at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/maxl_altsys.htm
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Unable to logout users from essbase

    Hi Gurus,
    we are on 11.1.2 with unix environment. we have a cube refresh whcih refresh daily.and when this cube refresh is happening one of the user  who is working on that particular aplication has not logged out due to which cube refresh failed.
    that particular user has admin privileges and in our maxl script we have used force kill. even then user has not logged out.
    any workaround to get out of this.any help is appreciated.
    thanks.

    msh $vWorkDir/ess/_login.mxl ;
    spool off ;
    shell  mkdir $vBackupFolder ;
    shell  mkdir $vBackupFolder/$vCurrApp ;
    shell  mkdir $vBackupFolder/bin ;
    spool on to  "$vBackupFolder/$vLogFileName.$vCurrApp.mxl" ;
    set vDbFolder = $ARBORPATH/app/$vCurrApp/$vCurrDB ;
    set vBinFolder = $ARBORPATH/bin  ;
    iferror 'ExitError';
    /* Unload Level 0 data  */
    alter database $vCurrBackAppDB enable cache_pinning;
    iferror 'ExitError';
    alter system logout session on application $vCurrApp force ;
    iferror 'ExitError';
    alter application $vCurrApp enable startup  ;
    iferror 'ExitError';
    alter application $vCurrApp enable commands ;
    iferror 'ExitError';
    alter application $vCurrApp enable updates  ;
    iferror 'ExitError';
    alter application $vCurrApp enable connects ;
    iferror 'ExitError';
    alter application $vCurrApp enable security ;
    iferror 'ExitError';
    alter system load application $vCurrApp ;
    iferror 'ExitError';
    alter application  $vCurrApp load database $vCurrDB ;
    iferror 'ExitError';
    alter system logout session on application $vCurrApp force ;
    iferror 'ExitError';
    export database $vCurrBackAppDB all data to data_file "$vBackupFolder/$vCurrApp.$vJobNumber.all.txt" ;
    iferror 'ExitError';
    export database $vCurrBackAppDB level0 data to data_file "$vBackupFolder/$vDb.level0.txt" ;
    export database $vCurrBackAppDB input data to data_file "$vBackupFolder/$vDb.input.txt" ;
    /* ShutDown Applications */
    drop lock on system all ;
    iferror 'ExitError';
    alter application $vCurrApp disable startup ;
    iferror 'ExitError';
    alter application $vCurrApp disable commands ;
    iferror 'ExitError';
    alter application $vCurrApp disable updates ;
    iferror 'ExitError';
    alter application $vCurrApp disable connects ;
    iferror 'ExitError';
    alter application $vCurrApp disable security ;
    iferror 'ExitError';
    alter database $vCurrBackAppDB unlock all objects ;
    iferror 'ExitError';
    alter system logout session on application $vCurrApp force ;
    iferror 'ExitError';
    alter application  $vCurrApp unload database $vCurrDB ;
    iferror 'ExitError';
    alter system unload application $vCurrApp ;
    iferror 'ExitError';
    /* copy system binary files */
    shell cp $vBinFolder/\*.sec $vBackupFolder/bin 1>/dev/null  2>/dev/null ;
    shell cp $vBinFolder/\*.cfg $vBackupFolder/bin 1>/dev/null  2>/dev/null ;
    shell cp $vBinFolder/\*.sh  $vBackupFolder/bin 1>/dev/null  2>/dev/null ;
    shell cp $vBinFolder/\*.ini $vBackupFolder/bin 1>/dev/null  2>/dev/null ;
    /* copy applications binary files */
    shell cp $vDbFolder/\*.otl  $vBackupFolder/$vDb 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/\*.rul  $vBackupFolder/$vDb 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/\*.txt  $vBackupFolder/$vDb 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/\*.csc  $vBackupFolder/$vDb 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/\*.db   $vBackupFolder/$vDb 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/\*.dbb  $vBackupFolder/$vDb 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/\*.ind  $vBackupFolder/$vDb 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/\*.pag  $vBackupFolder/$vDb 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/\*.esm  $vBackupFolder/$vDb 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/\*.tct  $vBackupFolder/$vDb 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/../\*.app  $vBackupFolder/ 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/../\*.apb  $vBackupFolder/ 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/../\*.xml  $vBackupFolder/ 1>/dev/null  2>/dev/null ;
    shell cp $vDbFolder/../\*.jar  $vBackupFolder/ 1>/dev/null  2>/dev/null ;
    shell mkdir $vBackupFolder/scripts ;
    shell cp  $vWorkDir/\*  $vBackupFolder/scripts/ 1>/dev/null  2>/dev/null ;
    shell mkdir $vBackupFolder/scripts/ess ;
    shell cp -r  $vWorkDir/ess/\*  $vBackupFolder/scripts/ess 1>/dev/null  2>/dev/null ;
    /* Deleted tempory files */
    shell rm -f $vDbFolder/\*.otn ;
    shell rm -f $vDbFolder/\*.inn ;
    shell rm -f $vDbFolder/\*.esn ;
    shell rm -f $vDbFolder/\*.pan ;
    shell rm -f $vDbFolder/\*.tcu ;
    shell rm -f $vDbFolder/\*.esn ;
    shell rm -f $vDbFolder/\*.pan ;
    shell rm -f $vDbFolder/\*.inn ;
    shell rm -f $vDbFolder/\*.tcu ;
    shell rm -f $vDbFolder/\*.otn ;
    define label 'ExitError';
    /* Start applications  */
    alter database $vCurrBackAppDB enable cache_pinning;
    iferror 'ExitError1';
    alter application $vCurrApp enable startup;
    iferror 'ExitError1';
    alter application $vCurrApp enable commands;
    iferror 'ExitError1';
    alter application $vCurrApp enable updates;
    iferror 'ExitError1';
    alter application $vCurrApp enable connects;
    iferror 'ExitError1';
    alter application $vCurrApp enable security;
    iferror 'ExitError1';
    alter system load application $vCurrApp ;
    iferror 'ExitError1';
    alter application  $vCurrApp load database $vCurrDB ;
    iferror 'ExitError1';
    alter database $vCurrBackAppDB force restructure ;
    iferror 'ExitError1';
    define label 'ExitError1';
    logout;
    /* Create Archives  */
    shell cp "$vBackupFolder/$vLogFileName.$vCurrApp.mxl"   "$vWorkDir/log/bck/$vLogFileName.$vCurrApp.mxl" ;
    shell cp "$vBackupFolder/$vLogFileName.$vCurrApp.err"   "$vWorkDir/log/bck/$vLogFileName.$vCurrApp.err" ;
    shell tar --remove-files -cz -f $vBackupFolder.tar.gz $vRelativeBackupFolder  ;
    shell rm -r  $vBackupFolder ;
    shell scp $vBackupFolder.tar.gz oracle@hypdb:~/backup & ;

Maybe you are looking for

  • Download a file without opening new window

    Hi everybody, I need to save a file to local PC into a certain predefined file in such a way that user does not get any pop-ups or new windows - i.e. 'in background'. I have tried 'FileDownload' - this get file content displayed in new window and if

  • I am very disappointed with Verizon!!

    I have sent 2 e-mails to support through this website and so far i have not had a response yet.  I bought the thunderbolt when it first came out because i was told it was verizons top of the line phone and have had nothing but problems since. Im sure

  • YTD(year to date) Sales [List Price/ Gross Sales ]

    How to create YTD(year to date) Sales [List Price/ Gross Sales ] depending on the selection in filter

  • Connecting to an oracle sever database with Microsoft visual studio?

    hey guys and girls......I work at a college and need to have visual studio connect to an oracle database. ...can this be done?... 1. I setup an oracle server with all the default settings.... 2. I can connect to the oracle server with the client inst

  • Borrar en una listbox

    Hola: Tengo un problema con las listbox. Quiero borrar el elemento que este seleccionado en la listbox y lo hago a través del método deleteItemAt lista=this.getField("prueba"); lista.deleteItemAt(lista.currentValueIndices); Pero de vez en cuando da u