Breakdown of 'show sticky database' - ACE

I need assistance to interpret the show sticky database response. What does the sticky entry value resolve to.
I have set the stickiness on source and destination addresses. Is it possible to identify from show sticky database that which is the source IP for the sticky entry in the display.

No.
Client in this command is actual client.
for e.g following command shows that ACE has a sticky entry for client "x.x.x.x"
and this client is stuck to real server "Rserver2" due to sticky group "STICKY-GP1" and this sticky entry will remain in the sticky DB for 585 more seconds (if the connection remains idle).
switch/ACE# show sticky database client x.x.x.<
sticky group : STICKY-GP1
type : IP
timeout : 10
timeout-activeconns : FALSE
sticky-entry rserver-ints time-to-exp
---------------+--------------+------
2702367184 rserver2:8888 585
Syed

Similar Messages

  • Connection is not following the Sticky database when one router is comming to up state.

    Dear Team,
    We have 2 routers configured  in Cisco ACE.( Router 1: 10.250.226.4,Router 2: 10.250.226.6) and VIP 10.250.226.19. In a normal scenario all the client connections are perfectly handled by ACE and Its sending to client request to router as per the sticky database. When the router 10.250.226.4 is down, ACE cleared all the sticky database entry belongs to the 10.250.226.4. All the client connections are shifted to router 10.250.226.6.
    when router 10.250.226.4 is  comes, backup connections are not loadbalance properly. That is connection not following sticky database for second connections of the same ip and giving issue in establishing IPSEC connectivity. Please find the below output.
    switch/RRI# sh sticky database client 10.239.10.86
    sticky group : STIK-RRI-FRM
    type         : IP
    timeout      : 1440          timeout-activeconns : FALSE
      sticky-entry          rserver-instance                 time-to-expire flags
      ---------------------+--------------------------------+--------------+-------+
      10.239.10.86          CISCO-7206-06:0                  65274          -
    switch/RRI# show conn | i 10.239.10.86
    1517152    2  in  UDP   90   10.239.10.86:4500     10.250.226.19:4500    --
    1427552    2  out UDP   9    10.250.226.4:4500     10.239.10.86:1637     --
    3051606    2  in  UDP   90   10.239.10.86:500      10.250.226.19:500     --
    3049659    2  out UDP   9    10.250.226.6:500      10.239.10.86:44977    --
    Please find the below sample configuration we are done in ACE.
    parameter-map type connection UDP_PARAM_MAP
      set timeout inactivity 86450
    sticky ip-netmask 255.255.255.255 address source STIK-RRI-FRM
      replicate sticky
      serverfarm RRI-FRM
    class-map match-all RRI-VIP
      2 match virtual-address 10.250.226.19 any
    policy-map type loadbalance first-match RRI-VIP-l7slb
      class class-default
        sticky-serverfarm STIK-RRI-FRM
    policy-map multi-match RRI
      class RRI-VIP
        loadbalance vip inservice
        loadbalance policy RRI-VIP-l7slb
        loadbalance vip icmp-reply
        connection advanced-options UDP_PARAM_MAP
    interface vlan 90
      ip address 10.250.226.17 255.255.255.240
      peer ip address 10.250.226.18 255.255.255.240
      access-group input ALL
      access-group output ALL
      service-policy input REMOTE_MGMT
      service-policy input RRI
      no shutdown
    As per the analysis its looks seems to be tthe bug CSCsv63364, CSCsu95356. Kindly suggest how we can resolve this issue.
    Image version: A2(3.4)
    Thanks in advance.
    Regards,
    Ranjith

    Hi,
    Its important to know whether there was a sticky entry when the router went down and the time it came back up. Leastconnection shouldn't be a problem here.
    If the IPSEC connection is active but not the UDP 500 connections, after timeout the UDP 500 connections will be removed as well as the sticky entry. If the current active IPSEC connection suddently needs to refresh SA's a new UDP 500 connection will be open and it could be sent to a different server. There is no evidence that this is the problem but want to try a higher sticky timeout has a fix for this.
    Siva

  • Configuring cookie based sticky on ACE

    I have an ACE and I am trying to setup stickiness based on HTTP cookies. My objective is to stick a client to one of the real servers in the server farm until the the cookie expires. I am using the same COOKIE name for all three servers but using different values that are unique to each server. On testing I discovered that each client request when stuck to the same real server always uses the same sticky database entry and a browser refresh updates the same entry...what am I doing wrong?
    My config is as follows:
    context Admin
    member STICKY
    access-list ALL line 8 extended permit ip any any
    rserver host SERVER1
    description content server 1
    ip address 134.178.51.17
    inservice
    rserver host SERVER2
    description content server 2
    ip address 134.178.51.18
    inservice
    rserver host SERVER3
    description content server 3
    ip address 134.178.51.19
    inservice
    serverfarm host SFARM1
    predictor leastconns
    rserver SERVER1
    inservice
    rserver SERVER2
    inservice
    rserver SERVER3
    inservice
    sticky http-cookie MYCOOKIE STICKYGroup
    timeout 4
    serverfarm SFARM1
    class-map type http loadbalance match-any L7CLASS6
    2 match http cookie MYCOOKIE cookie-value "123456"
    3 match http cookie MYCOOKIE cookie-value "56789"
    policy-map type loadbalance first-match L7POLICY6
    class L7CLASS6
    sticky-serverfarm STICKYGroup
    class class-default
    serverfarm SFARM1
    class-map match-all V1L4VIPCLASS
    2 match virtual-address 134.178.51.10 tcp eq www
    policy-map multi-match V1L4SLBPOLICY
    class V1L4VIPCLASS
    loadbalance vip inservice
    loadbalance policy L7POLICY6

    Cookie values are learned dynamically by ACE and sticky entries are created.So you do not need to match cookie values.
    With Sticky group configuration you tell ACE which Cookie-name to look for in the HTTP traffic passing through ACE.
    So following should be sufficient
    sticky http-cookie MYCOOKIE STICKYGroup
    timeout 4
    serverfarm SFARM1
    policy-map type loadbalance first-match L7POLICY6
    class class-default
    sticky-serverfarm STICKYGroup
    Lets assume your Server1 is setting cookie value 123456 by using "SET-Cookie:MYCOOKIE=123456" & Server2 is sending ""SET-Cookie:MYCOOKIE=56789" the flow will be as follows
    1. If a new client hits the VIP on ACE with no cookie set then ACE will select a Sever from the server farm as per the LB algo and forward the HTTP request to the selected server. Lets suppose ACE selects Server1.
    3. Server1 will send "SET-Cookie:MYCOOKIE=123456" in the HTTP response to the client.
    4. ACE on getting this response from Server1 will dynamically learn that Server1 is setting up cookie value 123456 and will create a sticky entry in the database.
    (Due to this sticky db entry any subsequent http requests with "Cookie:MYCOOKIE=123456" will be directly forwarded to Server1.
    5. This sticky entry in ACE sticky DB will only time out if "timeout in minutes" configured under sticky group elapses and no active conns are using this entry.With every new http request matching the sticky entry this timeout is initialized.
    6. If a new client come with no cookie set in the Http request then ACE will select a server using LB logic and will learn the cookie value & will create appropriate sticky entry.
    7. If a client sends a request with cookie value present then ACE will simply look into the sticky db and forward the request to the appropriate server.
    HTH
    Syed Iftekhar Ahmed

  • I moved from an old macbook to a new one.  I copied all my files onto a hard drive.  On trying to setup my mail, i went into documents, microsoft user identities, office 2011 and it shows the database but wont let me select it.  Urgent help pls

    I moved from an old macbook to a new one.  I have installed Office for Mac 2011. I copied all my files from my old notebook onto a hard drive.  On trying to setup my mail, i went into my hard drive and accessed microsoft user identities, office 2011 and it shows the database but wont let me select it.  Its almost as if the file is there but not accessable.  I desperately need to access my old mail.  How do I do this?  I am fairly confident that I copied all files off my old notebook.  Is there a way for me to search for the Database file?  Maybe I copied it to a different location?  Urgent help please.

    Hello mafrerichs and welcome to Apple Support Communities,
    Simplest way is to use Target Disk mode:
    How to use and troubleshoot FireWire target disk mode - Apple Support
    and hook to another Mac and use CCC or SuperDuper and clone your HD to another drive.
    You could also pull the drive out of your MBP and use an external USB case or SATA - USB dongle to hook it to another Mac.
    "MacBook Pro (15-inch Late 2011),... have a 15" 2012 Macbook pro with 2gb of ram, i7 processor"
    That's a little confusing?

  • User parameter are not show in database using Servlet and java Bean

    Hello Sir,
    when I insert the parameter in run time, weblogic server and JSP show that parameter are saved.
    Allthough row increment in database but they not show in database.
    Here My Code:
    login.html:
    <html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>LoginServlet.java:import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String user=request.getParameter("user");
    String pass=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setuserName(user);
    st.setpassword(pass);
    request.setAttribute("user",st);
    request.setAttribute("pass",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }SimpleBean.java:
    package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String user="";
    private String pass="";
    private String s="";
    public String getuserName() {
    return user;
    public void setuserName(String user) {
    this.user = user;
    public String getpassword() {
    return pass;
    public void setpassword(String Pass) {
    this.pass= pass ;
    public String issueData()
    try
    System.out.println("Printed*************************************************************");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Connection loaded");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
    System.out.println("Connection created");
    PreparedStatement st=con.prepareStatement("insert into vij2 values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String NAME=getuserName();
    st.setString(1,NAME);
    String PASSWORD=getpassword();
    st.setString(2,PASSWORD);
      st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s=  "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }submit.jsp:This is Submit page
    <jsp:useBean id="st" class="co.SimpleBean"/>
    <jsp:setProperty name="st" property="*" />
    <jsp:getProperty name="st" property="userName" /> <br>
    <jsp:getProperty name="st" property="password" /> <br>
    <% st.issueData();%>
    <%
    out.println("Ur data is saved in DB");
    %>Please Help me.
    Thanks.

    Ok, this seems to be a long and convoluted path to do absolutely nothing.
    You submit the form.
    You run a servlet that gets the parameters correctly (good), creates a SimpleBean (good) and then sets this into request attribute space under the names "user" and "pass" - (why?)
    You then forward to the jsp: submit.jsp.
    Submit.jsp creates a new SimpleBean, and attempts to populate it with <jsp:setProperty>. You then call the issueData method on it.
    Your complaint: Rows are being created in the database which have empty string values instead of the parameters you have passed.
    So, why are the values blank? Where do you think these values should be coming from?
    Looking at SimpleBean we find one mistake - you have mis-named your get/set methods.
    To properly follow java beans standards, you should use camel-case for your methods.
    Rather than getuserName() the method should be getUserName(). getpassword() should be getPassword() etc etc.
    The method getUserName() defines a property "userName" for the bean.
    Once that is fixed, lets go to submit.jsp. The <jsp:setProperty> statement will try and set all properties of the bean from the request parameters.
    There are no request parameters "userName" or "password" so those values don't get set in the bean, therefore it uses their default value of empty string - "".
    There ARE request parameters called "user" and "pass" but because they aren't properties of the bean, they get ignored.
    As a result, the values are empty string, and that is exactly what gets inserted into the database.
    Ways to fix this
    1 - rename your parameters on your form to be "userName" and "password" to match the bean. That way the <jsp:setProperty> tag will populate them properly.
    or
    2 - Call issueData() method from your servlet after you have created the SimpleBean. Better in my opinion as you then don't have any scriptlet code on a JSP page.
    Cheers,
    evnafets

  • EMC Does Not Show All Databases Copies Information on DAG - Exchange 2010 SP2

    Hi guys,
    Really need your help here, suddenly my customer complain that they cant see any information on database copies on their Active Copy DAG Exchange server, for another DAG members, the database copies information is visible. After do some readings, I found
    this related to Exchange 2010 SP1 known issue. 
    http://workinghardinit.wordpress.com/2010/09/13/emc-does-not-show-all-database-copies-after-upgrade-to-exchange-2010-sp1-still-investigating/
    But, for my environment, there is Exchange 2010 SP2. I have no idea on this issue since there is no error log thrown out from the event viewer. I already try to restart the server itself and the Microsoft Information services but no luck.

    Hi,
    Based on the description, your customers could see passive database copy information, but they couldn’t view the detail information such as state: Healthy in EMC.
    When did this issue begin?
    Please restart the AD topology service to check result.
    Since we have the information correctly on Exchange shell, please try to clear EMC cache and then open console to check if you can see database copy in EMC.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Belinda Ma
    TechNet Community Support

  • URGENT: Show the Database Schema in a JSP

    Hi,
    I want to make a JSP to show the Database Schema.
    I'm using JDev 10.1.2 + ADF/Struts + Oracle Database.
    I need show the tablenames in this page.
    How to do this ?

    more details;
    1. I developed a web-application, and now, I want to include a new module:
    - Import and Export database objects.
    2. I have a Stored Procedure that receives two parameters:
    - The table name and the operation(import or export).
    This Stored Procedure import/export the table to/from a DBF file.
    Well, I found two solutions and two problems:
    ---- Solution 01 ------
    -> To make one Store Procedure to get the table object names and show this result in a JSP.
    ---- The Problem ----
    I do not know how to "to pass/to transfer" the connection object from the Application Module to a JDBC connection object or from an Application Module execute a Stored Procedure.
    ---- Solution 02 -----
    -> From the ADF objects, browsing the database objects(schema) to a JSP.
    ---- The Problem ----
    I do not know how to do this. I do not know which objects to use.
    Please, give-me an idea, how to do this, and in the your opinion which is the best solution.
    thanks for any reply, for any help.

  • Show conn on ACE

    I have some question related show conn on ace
    the log like below:
    ACEAD#1/130# show conn de | be 2633
    2633 1 in TCP 330 100.254.130.13:39560 100.254.16.11:389 ESTAB
    [ idle time : 00:33:21, byte count : 334 ]
    [ elapsed time: 00:48:35, packet count: 5 ]
    11239 1 out TCP 30 100.254.16.11:389 100.254.130.13:39560 CLOSED
    [ conn in reuse pool : FALSE]
    [ idle time : 00:33:21, byte count : 261 ]
    [ elapsed time: 00:48:35, packet count: 3 ]
    ACEAD#1/130# show conn de | be 2633
    2633 1 in TCP 330 100.254.130.13:39560 100.254.16.11:389 ESTAB
    [ idle time : 00:33:49, byte count : 334 ]
    [ elapsed time: 00:49:03, packet count: 5 ]
    11239 1 out TCP 30 100.254.16.11:389 100.254.130.13:39560 CLOSED
    [ conn in reuse pool : FALSE]
    [ idle time : 00:33:49, byte count : 261 ]
    [ elapsed time: 00:49:03, packet count: 3 ]
    100.254.130.13 is server side ip address.
    100.254.16.11 is outside client's ip address
    connection id 2633's connections status is ESTAB. but connection id 11239 is CLOSED
    Is this a pair connection between 100.254.130.13 and 100.254.16.11?
    In log, there are different connection id two flow each other.
    If two connection is pair connection, why conn'id 2633 is ESTAB, and conn'id 11239 is CLOSED?
    Or not, Is it a single flow , no related each other?
    There are no explanation about this issue in document. I have no experience about this with Cisco ACE.
    Anyone help me!.

    The output you provided in the beginning of the is two flows that make up a single connection.
    When a client initiates a connection to the ACE virtual address two flows are created on the ACE. flow-1 is client to ACE and flow-2 is ACE to server. But both of these flows are tied together and make up the connection.
    My assumption on what is happening in your output:
    1. This is the flow from the ACE to the server. The server has sent a FIN so this is why the ACE displays the connection as closed.
    11239 1 out TCP 30 x.x.x.x:389 x.x.x.x:39560 CLOSED
    2. This is the flow between the client and the ACE. The ACE has not seen a FIN ACK from the client so the connection remains open.
    2633 1 in TCP 330 x.x.x.x:39560 x.x.x.x:389 ESTAB
    3. These flows will remain in the connectino table until the idle timer expires (half-closed) or the ACE recieves a FIN ACK, RST, etc. from the client.
    Here is documentation on setting the different idle timers on ACE.
    http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A1/configuration/security/guide/tcpipnrm.html#wp1072427

  • ACE 4710 Sticky Database question

               Hello,
    I am considering using IP sticky timeout, but have a quick question about the database, is the 800,000 sticky connection per appliance or per context?
    Thanks,
    Dave       

    Hi Dave,
    "Sticky table entries 800,000" this is per appliance.
    You can distibute this resource based on usage per context.
    regards,
    Ajay Kumar

  • How to show a database trigger error message as a notification on a page

    I have a database with database triggers to ensure data integrity.
    If an insert or update does not comply to all the business rules, a database triggers raises an exception. When using Apex this exception is caught in the Error Screen, a separate screen, where the whole error stack is displayed.
    Does anyone know a way to display only the error in RAISE_APPLICATION_ERROR as a notification in the screen from which the transaction was initiated?
    Dik Dral

    Well, having had so little response, i had to figure it out myself ;-)
    Using Patrick Wolff's ideas from ApexLib I 'invented' a solution for my problem, that I would like to contribute to the community. I hope that it will come out a bit nicely formatted:
    Apex: Show Database Error Message in calling form
    The purpose is to show a neat error message in the notification area of the calling form.
    Default Apex show the whole error stack raised by a DB trigger in a separate error page.
    With acknowledgement to Patrick Wolf, I lent parts of his ApexLIB code to create this solution.
    <br./>
    Assumptions
    <ul><li>The error message is raised from a DB trigger using RAISE_APPLICATION_ERROR(-20000,’errormessagetext’).</li>
    <li>The relevant part of the error stack is contained within the strings ‘ORA-20000’ and the next ‘ORA-‘-string, i.e. if the error stack is ‘ORA-20000 Value should not be null ORA-6502 …’, than the relevant string is ‘Value should not be null’ .</li>
    <li>Cookies are enabled on the browser of the user </li>
    </ul>
    Explanation
    The solution relies heavily on the use of Javascript. On the template of the error page Javascript is added to identify the error stack and to extract the relevant error message. This message is written to a cookie, and then the control is passed back to the calling page (equal to pushing the Back button).
    In the calling page a Javascript onLoad process is added. This process determines whether an error message has been written to a cookie. If so the error message is formatted as an error and written to the notification area.
    Implementation
    The solution redefines two template pages, the two level tab (default page template) and the one level tab (error page template).
    Javascript is added to implement the solution. This Javascript is contained in a small library errorHandling.js:
    <pre>
    var vIndicator = "ApexErrorStack=";
    function writeMessage(vMessage)
    {       document.cookie = vIndicator+vMessage+';';
    function readMessage()
    { var vCookieList = document.cookie;
    var vErrorStack = null;
    var vStart = null;
    var vEnd = null;
    var vPos = null;
    vPos = vCookieList.indexOf(vIndicator);
    // No cookie found?
    if (vPos == -1) return("empty");
    vStart = vPos + vIndicator.length;
    vEnd = vCookieList.indexOf(";", vStart);
    if (vEnd == -1) vEnd = vCookieList.length;
    vErrorStack = vCookieList.substring(vStart, vEnd);
    vErrorStack = decodeURIComponent(vErrorStack);
    // remove the cookie
    document.cookie = vIndicator+"; max-age=0";
    return(vErrorStack);
    function getElementsByClass2(searchClass,node,tag)
    var classElements = new Array();
    if ( node == null )
    node = document;
    if ( tag == null )
    tag = '*';
    var els = node.getElementsByTagName(tag);
    var elsLen = els.length;
    var pattern = newRegExp('(^|\\s)'+searchClass+'(\\s|$)');
    for (i = 0, j = 0; i < elsLen; i++) {
    if ( pattern.test(els.className) ) {
    classElements[j] = els[i];
    j++;
    return classElements;
    function processErrorText()
    var errorElements = new Array();
    errorElements = getElementsByClass2("ErrorPageMessage",document,"div");
    if (errorElements.length > 0 )
    { errorText = errorElements[0].innerHTML;
    errorText = errorText.substr(errorText.indexOf("ORA-20000")+ 11);
    errorText = errorText.substr(0,errorText.indexOf("ORA")-1);
    // errorElements[0].innerHTML = errorText;
    writeMessage(errorText);
    function show_message()
    { var vCookieList = document.cookie;
    var vErrorStack = null;
    var vErrorName = null;
    var vErrorMessage = null;
    var vStart = null;
    var vEnd = null;
    var vPos = null;
    // get errorStack
    vErrorStack = readMessage();
    if (vErrorStack == -1) return;
    // search for our message section (eg. t7Messages)
    var notificationArea = document.getElementById("notification");
    if (notificationArea != null)
    { notificationArea.innerHTML = '<div class="t12notification">1 error has occurred<ul class="htmldbUlErr"><li>' + vErrorStack + '</li></ul>'; }
    else
    { alert(vErrorStack); }
    </pre>
    This code is loaded as a static file in Application Express (no application associated).
    In both templates a reference to this code is added in the Definition Header section:
    <pre>
    <script src="#WORKSPACE_IMAGES#errorHandling.js" type="text/javascript"></script>
    </pre>
    This library is called from the two level tab to show the error message (if any) in het onLoad event of the body tag.
    <body onLoad="javascript:show_message();">#FORM_OPEN#
    This code checks whether a message has been written to a cookie and if found displays the message in the notification area.
    In the error template page the Error section has the content:
    <script language="javascript">
    processErrorText();
    window.history.go(-1);
    </script>
    Back
    The call to processErrorText() looks for the error message, extracts the relevant part of it (between ‘ORA-20000’ and the next ‘ORA-‘), writes it to a cookie and returns to the previous screen.
    The link to the previous page is added should an error in the Javascript occur. It provides the user with a path back to the application.
    With these actions taken, the error messages issued from triggers are shown in the notification area of the form the user has entered his data in.
    The need for database driven messaging
    In some cases the need exists to process error messages in the database before presenting them to the user. This is the case, when the triggers return message codes, associated to error messages in a message table.
    This can be done by using a special Error Message Processing page in Apex.
    The error message page extracts the error message, redirecting to the Error Message Processing page with the error message as a parameter. In the EMP page a PL/SQL function can be called with the message as a parameter. This function returns the right message, which is written to a cookie using dynamically generated Javascript from PL/SQL. Than the contol is given back to the calling form.
    The redirect is implemented by location.replace, so that the error message page does not exist within the browsing history. The normal history(-1) will return to the calling page.
    Implementation of database driven messaging
    The solution redefines two template pages, the two level tab (default page template) and the one level tab (error page template).
    Javascript is added to implement the solution. This Javascript is contained in a small library errorHandling.js already listed in a previous paragraph.
    In both templates a reference to this code is added in the Definition Header section:
    <script src="#WORKSPACE_IMAGES#errorHandling.js" type="text/javascript"></script>
    This library is called from the two level tab to show the error message (if any) in het onLoad event of the body tag.
    <body onLoad="javascript:show_message();">#FORM_OPEN#
    This code checks whether a message has been written to a cookie and if found displays the message in the notification area.
    In the error template page the Error section has the content:
    <script language="Javascript">
    var errorText = null;
    function redirect2oracle()
    { window.location.replace("f?p=&APP_ID:500:&APP_SESSION.::::P500_MESSAGE:"+errorText); }
    function getError()
    { errorText = processErrorText(); }
    getError();
    redirect2oracle();
    </script>
    Go to Error Message Porcessing Page
    Back to form
    The call to processErrorText() looks for the error message, extracts the relevant part of it (between ‘ORA-20000’ and the next ‘ORA-‘), writes it to a cookie.
    Then the EPM-page (500) is called with the extracted message as parameter.
    The link to the EPM page and the previous page is added should an error in the Javascript occur. It provides the user with a path back to the application.
    We need to create an Error Message Porcessing Page.
    Create a new page 500 with a empty HTML-region “Parameters”
    Create an text-area P500_MESSAGE in this region
    Create a PL/SQL region “Process Messages” with source:
    convert_message(:P500_MESSAGE);
    Create a PL/SQL procedure convert_message like this example, that reads messages from a message table. If not found, the actual input message is returned.
    CREATE OR REPLACE procedure convert_message(i_message in varchar2) is
    v_id number := null;
    v_message varchar2(4000) := null;
    function get_message (i_message in varchar2) return varchar2 is
    v_return varchar2(4000) := null;
    begin
    select msg_text into v_return
    from messages
    where msg_code = upper(i_message);
    return(v_return);
    exception
    when no_data_found then
    return(i_message);
    end;
    begin
    v_message := get_message(i_message);
    // write the message for logging/debugging
    htp.p('Boodschap='||v_message);
    // write cookie and redirect to calling page
    htp.p('<script language="Javascript">');
    htp.p('document.cookie="ApexErrorStack='||v_message||';";');
    htp.p('window.history.go(-1);');
    htp.p('</script>');
    // enter return link just in case
    htp.p('Ga terug');
    end;
    Note: The way the message is converted is just an example
    With these actions taken, the error messages issued from triggers are shown in the notification area of the form the user has entered his data in.
    Message was edited by:
    dickdral
    null

  • How to show a database value in a text field

    Hi,
    i 'm using hibernate and jsf . i need to show some text field values . these values i need to take database and show. how can i do that ?
    Regards and thanks ,
    Sukesh

    What is the problem exactly?

  • How could I show a database table in a Frame?

    hi...I need to show information from a database table , what component do I have to use?...thanks..

    JTable and DefaultTableModel!!

  • Conn id in 'show conn' display - ACE

    I would like to identify the latest connections in the 'show conn' table. Does the table build up in a linear fashion i.e. the latest con is the last row. Can timestamp be enabled on the 'show conn' display. Also, how is the conn id generated. I don't see it in sequence.

    ACE is actually the combination of 3 CPU.
    The Control Plane (CP) which is the management side - holds the configuration, answers snmp queries, sends probes,...
    The IXP are the 2 CPU actually switching the traffic.
    They are also called network processors or NP.
    This is the 2nd column of the 'show conn'.
    Gilles.

  • Logfile member shows in database but not on physical disk, not match

    I just created a standby db through rman duplicat active database from target, and it worked.
    However when I issued a alter syste switch logfile, it not have anything going on on standby side.
    I checked the alert log, when the standby db started, it has following error:
    Errors in file /u01/app/oracle/diag/rdbms/prd/prdS1/trace/prdS1_ora_16397.trc:
    ORA-00313: open failed for members of log group 13 of thread 2
    ORA-00312: online log 13 thread 2: '+PRD_DAT/prd/onlinelog/group_13.390.786640667'
    ORA-17503: ksfdopn:2 Failed to open file +PRD_DAT/prd/onlinelog/group_13.390.786640667
    ORA-15173: entry 'group_13.390.786640667' does not exist in directory 'onlinelog'
    Completed: alter database clear logfile group 13
    alter database clear logfile group 14
    Clearing online log 14 of thread 2 sequence number 0
    Errors in file /u01/app/oracle/diag/rdbms/prd/prdS1/trace/prdS1_ora_16397.trc:
    ORA-00313: open failed for members of log group 14 of thread 2
    ORA-00312: online log 14 thread 2: '+PRD_DAT/prd/onlinelog/group_14.366.786640667'
    ORA-17503: ksfdopn:2 Failed to open file +PRD_DAT/prd/onlinelog/group_14.366.786640667
    ORA-15173: entry 'group_14.366.786640667' does not exist in directory 'onlinelog'
    Errors in file /u01/app/oracle/diag/rdbms/prd/prdS1/trace/prdS1_ora_16397.trc:
    ORA-00313: open failed for members of log group 14 of thread 2
    ORA-00312: online log 14 thread 2: '+PRD_DAT/prd/onlinelog/group_14.366.786640667'
    ORA-17503: ksfdopn:2 Failed to open file +PRD_DAT/prd/onlinelog/group_14.366.786640667
    ORA-15173: entry 'group_14.366.786640667' does not exist in directory 'onlinelog'
    Completed: alter database clear logfile group 14
    RFS connections are allowed
    Sat Jun 30 21:03:50 2012
    alter database flashback on
    Errors in file /u01/app/oracle/diag/rdbms/prd/prdS1/trace/prdS1_ora_18097.trc:
    ORA-38706: Cannot turn on FLASHBACK DATABASE logging.
    ORA-38788: More standby database recovery is needed
    ORA-38706 signalled during: alter database flashback on...
    Sql results of logfile members are this:
    MEMBER
    +PRD_DAT/prds/onlinelog/group_2.262.787354885
    +PRD_DAT/prds/onlinelog/group_1.290.787354885
    +PRD_DAT/prds/onlinelog/group_5.260.787354889
    +PRD_DAT/prds/onlinelog/group_3.261.787354887
    +PRD_DAT/prds/onlinelog/group_4.264.787354887
    +PRD_DAT/prds/onlinelog/group_6.279.787354889
    +PRD_DAT/prds/onlinelog/group_7.277.787354889
    +PRD_DAT/prds/onlinelog/group_8.280.787354891
    +PRD_DAT/prds/onlinelog/group_9.281.787354891
    +PRD_DAT/prds/onlinelog/group_10.282.787354893
    +PRD_DAT/prds/onlinelog/group_11.287.787354893
    MEMBER
    +PRD_DAT/prds/onlinelog/group_12.265.787354893
    +PRD_DAT/prds/onlinelog/group_13.266.787354895
    +PRD_DAT/prds/onlinelog/group_14.283.787354895
    +PRD_FRA/prds/onlinelog/group_1.1285.787354885
    +PRD_FRA/prds/onlinelog/group_2.1286.787354885
    +PRD_FRA/prds/onlinelog/group_3.1287.787354887
    +PRD_FRA/prds/onlinelog/group_4.1288.787354887
    +PRD_FRA/prds/onlinelog/group_5.1289.787354889
    +PRD_FRA/prds/onlinelog/group_6.1290.787354889
    +PRD_FRA/prds/onlinelog/group_7.1291.787354891
    +PRD_FRA/prds/onlinelog/group_8.1292.787354891
    MEMBER
    +PRD_FRA/prds/onlinelog/group_9.1293.787354891
    +PRD_FRA/prds/onlinelog/group_10.1294.787354893
    +PRD_FRA/prds/onlinelog/group_11.1295.787354893
    +PRD_FRA/prds/onlinelog/group_12.1296.787354895
    +PRD_FRA/prds/onlinelog/group_13.1297.787354895
    +PRD_FRA/prds/onlinelog/group_14.1298.787354895
    28 rows selected.
    asmcmd shows those log files:
    Type Redund Striped Time Sys Name
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_1.290.787354885
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_10.282.787354893
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_11.287.787354893
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_12.265.787354893
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_13.266.787354895
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_14.283.787354895
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_2.262.787354885
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_3.261.787354887
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_4.264.787354887
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_5.260.787354889
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_6.279.787354889
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_7.277.787354889
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_8.280.787354891
    ONLINELOG UNPROT COARSE JUN 30 21:00:00 Y group_9.281.787354891
    ASMCMD> exit
    How to fix this issue, the physical standby db seems not working.
    Thanks in advance for help.

    >
    Sql results of logfile members are this:
    MEMBER
    +PRD_DAT/prds/onlinelog/group_2.262.787354885
    +PRD_DAT/prds/onlinelog/group_1.290.787354885
    +PRD_DAT/prds/onlinelog/group_5.260.787354889
    +PRD_DAT/prds/onlinelog/group_3.261.787354887
    +PRD_DAT/prds/onlinelog/group_4.264.787354887
    +PRD_DAT/prds/onlinelog/group_6.279.787354889
    +PRD_DAT/prds/onlinelog/group_7.277.787354889
    +PRD_DAT/prds/onlinelog/group_8.280.787354891
    +PRD_DAT/prds/onlinelog/group_9.281.787354891
    +PRD_DAT/prds/onlinelog/group_10.282.787354893
    +PRD_DAT/prds/onlinelog/group_11.287.787354893
    MEMBER
    +PRD_DAT/prds/onlinelog/group_12.265.787354893
    +PRD_DAT/prds/onlinelog/group_13.266.787354895
    +PRD_DAT/prds/onlinelog/group_14.283.787354895
    +PRD_FRA/prds/onlinelog/group_1.1285.787354885
    +PRD_FRA/prds/onlinelog/group_2.1286.787354885
    +PRD_FRA/prds/onlinelog/group_3.1287.787354887
    +PRD_FRA/prds/onlinelog/group_4.1288.787354887
    +PRD_FRA/prds/onlinelog/group_5.1289.787354889
    +PRD_FRA/prds/onlinelog/group_6.1290.787354889
    +PRD_FRA/prds/onlinelog/group_7.1291.787354891
    +PRD_FRA/prds/onlinelog/group_8.1292.787354891
    MEMBER
    +PRD_FRA/prds/onlinelog/group_9.1293.787354891
    +PRD_FRA/prds/onlinelog/group_10.1294.787354893
    +PRD_FRA/prds/onlinelog/group_11.1295.787354893
    +PRD_FRA/prds/onlinelog/group_12.1296.787354895
    +PRD_FRA/prds/onlinelog/group_13.1297.787354895
    +PRD_FRA/prds/onlinelog/group_14.1298.787354895
    >
    Can you tell me above redo log files are from Primary?
    846422 wrote:
    on both primary/standby,
    SQL> show parameter log_file
    NAME TYPE VALUE
    log_file_name_convert string PRD_DAT, PRD_DATI assume abover redo log files are from primary, What are the disk groups on standby?
    is it ASM With OMF?
    SQL> show parameter db_create
    You have to mention as
    LOG_FILE_NAME_CONVERT='+PRD_DAT','+STDBY_DAT','+PRD_FRA','+STDBY_FRA'
    LOG_FILE_NAME_CONVERT='Prim_loc1','Stdby_loc1','Prim_loc2','Stdby_loc2'
    Because in primary you have two diskgroups for Online redo log files.
    Use link to configure http://docs.oracle.com/cd/B19306_01/server.102/b14237/initparams112.htm
    Once after above all settings, Bounce it and start MRP. watch alert log file initially you may see errors while clearing online redo log files. Later if you seen any more please post here.
    Thanks.

  • ORACLE DATABASE SPACE USAGE report not showing all databases in 11g

    Hi All,
    I have scheduled "Oracle Database Space Usage (Group)" report for all databases available in the OEM11g. But in the report i am not able to see all the databases in the group. Can any one please help on this.
    Regards,
    GK

    We had the same problem in 12c EM. This had to something with "tablespace allocation metric". This metric was disabled for some databases. This could be your case in 11g also. This metalink note might worth seeing .
    Oracle Database Tablespace Monthly Space Usage shows no data (Doc ID 1536654.1)

Maybe you are looking for

  • ITunes saves everything to the wrong location

    In my preferences I have it set so that everything saves to my music library, however, everything gets saved to my photo's library. Multiple times, I have closed iTunes and deleted everything in the iTunes folder in my folder library, but that accomp

  • How to use memo datatype in msaccess in the labview 7.1

    dear all i want to save 801 data values in one cell of the field of a ms access .but the option are OLE here i can't see the data values only long binary information is displayed & also while reading i can't read too.its giving invalid data type. the

  • Finder: Changing from thumbnail view to column view takes me back to the root folder.

    Hi, I was hoping someone could help me with this as it's getting a bit tedious having to re-navigate back to the folder I was in. This problem is only occuring when I am working from an external NAS Drive. I need to switch between thumbnail view and

  • Sound problems after update.....

    Ok....i updated to 4.2.9 (verizon) and now my notifications dont work minus one. Yet alli get is the pop up...no vibration, no sound. Is anyone else getting nitification problems...anyone download 4.2.10 and have any luck?

  • Fatal Error on compile - HTML

    Recently I upgraded from RH version 6 to 7. I am now trying to compile for the first time on v7 a merged html project that was created and successfully compiled with version 6. The compile runs through the updating process then fails everytime with t