How does client connect to RAC

I'm confused how client connect to RAC,
1) According to this:
http://www.datadirect.com/developer/odbc/odbc_oracle_rac/connecting/index.ssp
"a ServiceName exists for the entire Oracle RAC system. When an application uses the Oracle RAC system's ServiceName, the Oracle RAC system appears to be a single Oracle instance to the application"
so, seems client just make sure using service name instead of SID, it will be connect to RAC. the URL format is same as single non-RAC enviroment
2) however,according to this:
http://forums.sun.com/thread.jspa?threadID=5274308
The URL need to be:
jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=host2) (PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=service)))
this make RAC connect URL differenct from single non-RAC enviroment
if so, with this format, how does SQL developer connection set up? since you can only specify one host in connection properties configuration?
if so, adding a node will require all of client modify connect url?
3) my understanding is client only need to specify VIP to any one of node, and speicify global service name (all node should share same service name), this will make RAC connection setup (similar to above (1)), but I'm not sure if my understanding correct or not in the following senario:
-- a) what if client using public ip (not VIP) to one of node, but using global service name?
-- b) what if client using VIP to one of node, but using it's SID instead of global service name?
-- c) what if client using public ip (not VIP) to one of node, and using it's SID?
please clarify how does client connect to RAC?
Thank you!

Very good question.
You have asked in a certain way which tells me you have done lot of research.
Any how:-
Remember no matter how convoluting it looks it is the same.
1 Tns Entry
If you add a node then yes you have to publish it.
There are other alternatives such as Oracle Names [old]
internect directory , ldap and so on, beyond the scope of this discussion.
1)
TNSNAME Entry
RAC.WORLD=
DESCRIPTION=DESCRIPTION=(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=host2) (PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=service))
Now see The same string from DESCRIPTION onwards goes to jdb thin client, it
is the same thing...
Also the host1 host2 are all VIPS'
Also you need failover , load balance thingies in there
-- a) what if client using public ip (not VIP) to one of node, but using global service name?
non vip, Test it out, tns should hop over it .
but TAF /FAN won't work.
-- b) what if client using VIP to one of node, but using it's SID instead of global service name?
You have to use SERVICENAME, if you are using SID then you are pretty
much connecting to 1 node.
-- c) what if client using public ip (not VIP) to one of node, and using it's SID?
Then you are using 1 node rac.

Similar Messages

  • How does JavaFX connect to Web Servers?

    Recently,I was learing about JavaFX and confused with the way that
    1.how does JavaFX connection to Web Servers?
    2.Is there anything related to SOAP protocol?
    Please help me.Thanks.

    I don't understand very well...
    in the Web service style, is this Java code ? or JavaFX code
    How can I use JavaFX to call a web service (not REST, just pure web service)
    I did it by this article
    http://netbeans.dzone.com/news/javafx-client-invoking-metro-e
    But i have two problem.
    1. when deploy as applet, there is security issue, how can i resolve ?
    2. my application invoke easy web service is ok, but when invoke some complex type web service, there is error like this...
    Exception in thread "AWT-EventQueue-0" java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
    at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653)
    at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460)
    at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286)
    at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222)
    at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
    at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
    at java.lang.Class.initAnnotationsIfNecessary(Class.java:3072)
    at java.lang.Class.getAnnotation(Class.java:3029)
    at com.sun.xml.ws.model.RuntimeModeler$1.run(RuntimeModeler.java:183)
    at com.sun.xml.ws.model.RuntimeModeler$1.run(RuntimeModeler.java:182)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.ws.model.RuntimeModeler.getPrivClassAnnotation(RuntimeModeler.java:181)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:217)
    at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:683)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:340)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:323)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:305)
    at javax.xml.ws.Service.getPort(Service.java:92)
    at allan.EasyWSService.getEasyWSSoapPort(EasyWSService.java:56)
    at javacode.Test.go(Test.java:11)
    at conferenceclient.Main$1.lambda(Main.fx:36)
    at conferenceclient.Main$1.lambda(Main.fx:36)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at javafx.ext.swing.SwingAbstractButton$1ActionListener$anon13.actionPerformed(SwingAbstractButton.fx:150)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6134)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
    at java.awt.Component.processEvent(Component.java:5899)
    at java.awt.Container.processEvent(Container.java:2023)
    at java.awt.Component.dispatchEventImpl(Component.java:4501)
    at java.awt.Container.dispatchEventImpl(Container.java:2081)
    at java.awt.Component.dispatchEvent(Component.java:4331)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
    at java.awt.Container.dispatchEventImpl(Container.java:2067)
    at java.awt.Window.dispatchEventImpl(Window.java:2458)
    at java.awt.Component.dispatchEvent(Component.java:4331)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

  • Sorry if tis is naive.  I have just bought my first iPad Retina Display.  I have WiFi at home but it has taken ages for me to connect as I needed all sorts of codes, passwords, detauils etc.   How does one connect to the web (Google) when one is out and a

    Sorry if this is a bit naive.  I have just bought my first iPad (Retina Display).  I have WiFi at home but it has taken me ages to get on-line as I needed all sorts of codes, passwords, numbers etc.
    How does one connect to the web (Google) when one is out and about?
    Thanks

    haha, You're welcome
    Maybe these links will be useful
    ipad manual/user guide
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf
    ipad support page
    http://www.apple.com/support/ipad/
    ipad assistant
    http://www.apple.com/support/ipad/assistant/

  • How does BPEL connect to JMS??

    Hi All,
    I have a BPEL process which basically logs a message into a JMS Q..This process runs forever and when ever a new message is to be logged we return the same instance instead of a new instace..
    Now a couple of questions I have on this is -
    How does the connection to JMS work,is it like there is 1 conncetion for the entire BPEL process which is used every time I wanna add a new message,or is it like a new connection is created and destroyed with every invioke to the JMS..
    I need to make sure a instance of this process already exist so that I can return the same,is there any way my parent process can chek if there is an instance of the child process and if yes it will call that instance ,if No then it will create a new instance..
    Is there any way I can initiate a BPEL process through ant?
    It would be grt if any 1 can throw some light on these.. thnx..
    Regards,
    Akshatha

    Each JMS queue/topic has a single persistent image. Any reference to that queue through the relevant connection factory returns the reference to the same instance.
    There may be many different queues, but each is uniquely identified by its jndi name.
    Name each of your JMS queues differently for each separate endpoint you wish to consume messages from.
    You could use ant to initiate a process by invoking the web-service sending a soap message to the url for the processes web-service. I use soap-ui or the BPEL Console to manually do the initiation, and to determine what makes up the soap packet that is forwarded to the web service. I am not aware of any task that does this for you so you would have to construct a http type target yourself.

  • How does Imac connect to the internet?

    How does Imac connects to the internet?

    Through your ISP (internet service provider); once you set up an account with them, you can decide to connect via ethernet cable to their modem, or, if you have a router (which is connected to their modem, you can connect wirelessly.
    Is that what you were wondering about or did I misunderstand your question?

  • How does client download Applet dependencies jar files?

    I made an Applet which dependencies on several jar files. I think when client browser access this applet, it will download these dependencies. I want to know where these dependencies are located in client machine, will these dependencies are downloaded once. If so, how does the browser handle duplicated downloaded issue.
    thanks.

    It is no business of client code (read 'your applet') to know the location where it is downloaded. The browser will often cache the dependant Jar's, but that is up to the browser and its settings.
    For more reliable caching, launch the applet using webstart (either embedded, in 1.6.0_10+ JRE, or free floating).

  • How does WebMail connect to the Mail Store

    Some WebMail products have HTTP connect directly to the Mail Store Database. Other products have HTTP connect to IMAP and let IMAP connect to the Mail Store database.
    How does iMS5 do it?

    Hi,
    iMS use separated daemon(mshttpd).
    It is composited httpd daemon + message access daemon.
    It is not normal http daemon.(mshttpd can use only
    iPlanet Messaging Server)
    When user connect the server using iMS 5 Webmail
    (It is named Messenger Express), the mshttpd recevied
    that requst and communicate with stord(mail box daemon)
    and fetch the mail, and make new html page.
    user -> mshttpd -> stored -> server mailbox
    Other Webmail use IMAP or POP Protocal(standard protocal) for communicate
    with messaging server, but mshttpd use itself protocal.
    (It is not standard)
    But, you can use imap of pop protocal for making new
    webmail server.
    Regards

  • How does application connect/commincate to Message Broker + JMS

    With reference to JMS,
    I am wondering how does my application (consumer or producer) communicate to Message Broker(in my case it is ActiveMQ).
    if the consumer is at HostA, producer is at HostB and ActiveMQ=message broker is at HostC
    ???

    Each JMS queue/topic has a single persistent image. Any reference to that queue through the relevant connection factory returns the reference to the same instance.
    There may be many different queues, but each is uniquely identified by its jndi name.
    Name each of your JMS queues differently for each separate endpoint you wish to consume messages from.
    You could use ant to initiate a process by invoking the web-service sending a soap message to the url for the processes web-service. I use soap-ui or the BPEL Console to manually do the initiation, and to determine what makes up the soap packet that is forwarded to the web service. I am not aware of any task that does this for you so you would have to construct a http type target yourself.

  • How many client connections will iMQ 2.0 handle?

    My main concern is what the number of concurrent client connections (in a single instance) iMQ
    can handle? This also depends on Hardware/Software configuration, JVM version (if it pure Java implementation), etc. But it also depends on Vendor implementation. For example FioranoMQ claims that can handling more than 5K concurrent client connections in a single instance of the FioranoMQ server without leading to any substantial performance degradation when a low number
    of clients are connected to the server.

    With proper tunning iMQ 2.0 can handle thousands of simultaneous connections.
    For example on a modest Sun system (Sun Ultra 60/2300 (2x300MHz) 512MB ram)
    We have run 4000 active connections without a problem. With more memory the
    system could have supported more.
    The iMQ FAQ gives some tuning guidelines for configuring the iMQ server
    (the broker) to handle large number of connections. I'm attaching the
    relevant excerpt (the online FAQ is a bit out of date).
    When I try to connect more than 500 clients to the Broker's JMS service, performance gets really poor. Is there a way to configure the
    Broker to handle more connections with better performance?
    Yes. By default the JMS service's thread pool is limited to 1000 threads. The Broker runs best when it can allocate two threads per
    connection. Once the thread pool limit is reached, threads are shared and performance decreases.
    The solution is to:
    1.Increase the thread pool limit for the JMS service so threads are not shared.
    2.Configure the broker's socket read timeout so read threads fully block.
    3.Configure the JVM to improve performance in highly threaded applications.
    4.And if you are running on Solaris and plan on going over ~1000 connections you will also need to:
    Increase the maximum number of open file descriptors per process.
    Step 1: Increase thread pool limit for JMS service
    Set the jmq.jms.max_threads property to be 2X the maximum number of connections you wish to support. For example if you want to
    support 1000 connections you will need to set the property to 2000. You can do this by adding the following line to
    $JMQ_VARHOME/stores/<broker instance name>/props/config.properties:
    jmq.jms.max_threads=2000
    Or by running jmqcmd:
    jmqcmd update svc -n jms -o maxThreads=2000
    Step 2: Configure the broker's socket read timeout
    Set the jmq.protocol.timeout to 0 to cause read threads to fully block in read. Do this by adding the following line to
    $JMQ_VARHOME/stores/<broker instance name>/props/config.properties :
    jmq.protocol.timeout=0
    Step 3: On Solaris pass additional parameters to the JVM
    If you are running the broker on Solaris you should pass the following parameters to the JVM:
    -Xss128k -Xconcurrentio
    The first parameter reduces the per-thread stack size to 128k. The second adjusts several internal JVM parameters that significantly improves performance of highly concurrent applications.
    You may pass these to the broker by using the -vmargs option to the broker command or you may choose to alter the $JMQ_HOME/bin/jmqbroker script by adding "-Xss128k -Xconcurrentio" to the line that starts with with "def_jvm_args". For example you would end up with a line that looks like:
    def_jvm_args="-Xms8m -Xmx128m -Xss128k -Xconcurrentio"
    Note that if your system has sufficient RAM you may also want to increase the JVM max heap size parameter (-Xmx128m).
    Step 4: On Solaris Increase the maximum number of open file descriptors per process
    This is covered in the iMQ 2.0 documentation. One way to do this is to run 'ulimit -n unlimited' in the shell you are going to run the broker in.

  • How does client certificate get passed through TMG/ISA to destination server (eg. SCCM)?

    To avoid the 403.7 errors when the destination server requires certificate authentication, how does SSL bridging reverse proxy inspect the traffic for safety without breaking the certificate authentication?
    I'm not asking for specific configuration steps on this.  I just want an easy to understand overview on the process of how the laptop or smartphone authentication device certificate would pass through while TMG/ISA is still protecting the destination
    from attacks. 

    I'm not sure if SSL Bridging is the same with Cert Authentication,...but...
    The way it works when Bridging SSL for published SSL web sites is by the ISA having a copy of the same Cert used on the published site.  You buy the cert for the Site and install it on the web server and get it set up with the site,..then export it
    with the private key.  Take the exported Cert and install it on the TMG and configure it into the Web Publishing Rule.
    The SSL tunnel coming in terminates at the TMG,...meaning the SSL Tunnel was only between the user and the TMG (not between the user and the site as it would appear on the surface). Then the traffic is inspected or whatever would be intended to do with it.
    Then a new distinct independent SSL Tunnel is created between the TMG and the SSL Site and the traffic is passed on to the site at that point.  AFAIK, the Reverse Proxy only happens between the two tunnels while the traffic is unencrypted.

  • How do clients connect to the farm in 2012r2?

    Hi, i am currently rolling out a 2012r2 rds deployment.
    I have a highly available Connection broker across two servers.
    I have a web and gateways defined across two more servers.
    I have a number of session hosts waiting to be configured. In various collections for various teams to use.
    I want to have one url for all clients to connect to via mstsc. I had hoped i could use the FQDN of the connection broker that was specified during the HA setup, but that just logs me onto one of the connection brokers (As I am admin on everything).
    Is it possible for this to work or do i need to configure a DNS entry for each session host to point to the collection name?
    I'd rather not have a dns entry for every session host. I thought the Connection broker in 2012 did away with all this. 
    I thought it should determine what group a user is in and redirect them to one of the servers in that collection, does it not work like that?
    The web access seems to work, you connect to the web url and click on the RDP file, and it automatically logs you on to the correct session host.
    My users don't like change and will want to RDP direct to the server (mstsc), they will not want to go through a web page :(
    Any help appreciated!

    Hi,
    The broker redirects the user based on the target provided by the Remote Desktop client, or if no target is provided it will redirect to the default collection if specified in the registry.  Each broker can only have one default collection. 
    When a user manually connects by entering the FQDN for the broker(s) in the Remote Desktop client and clicking Connect no target collection is sent (there is no place in the UI to specify it).
    There is no logic on the broker to examine the groups a user is a member of and based on that redirect them to a collection.  Your concept could work, but one thing to keep in mind is that users may have access to multiple collections and in that
    case there would be a need for a secondary user interface to ask the user what collection to connect to.
    If using RemoteApp and Desktop Connections (RADC) or RD Web Access to launch the connection is unacceptable in your environment then you would need to create a FQDN for each collection that points to that collection's RDSH servers using DNS RR or similar
    or distribute .rdp files to your users.
    I understand the simplicity when you only need a full desktop connection of users just opening Remote Desktop Connection, entering the server name, and clicking Connect.  When using RADC or RDWeb or other solution based on the webfeed you get the benefit
    of a more dynamic environment, the ability to change the options from the server, add/remove collections, etc.
    -TP

  • How does inactive connection timeout attribute in weblogic works ?

    Lets say If there is a connection leakage in my application running on weblogic server 10.3.4 and I want to regain the unclosed connection.
    After going through some documentation I found out that setting inactive connection timeout to a positive value can fix this issue.
    With setting the above attribute will the weblogic server close any connection object which is inactive for specified number of seconds or it acts on only
    those connection objects which has lost all the references to it ?
    demonstrating the query by an example ,
    Lets say I have two connection objects con1 & con2 taken from a defined datasource in the weblogic.
    the inactive timeout has been set to 10 seconds.
    In a given thread lets say con1 does some db operation and then after being done, con2 is used for another db operation for greater than 10 seconds.
    Will the object con1 be still available for db operation or we need to take a fresh connection from the pool ?
    Thanks,
    Tarique
    Edited by: user779368 on 30-May-2011 06:29

    Any connection that has been reserved by an application, and not used for longer than
    the inactive timeout limit, will be taken back by the pool. All it's sub-objects will be closed etc.
    In your case, you would lose con1 while con2 was being used. Ideally, you would get
    any/either of those connections at the instant you really need it. Then, ideally use it
    till you can close it. But if you are doing transactions or a job that need connections,
    but can't avoid having them idle for X seconds, then set your inactive timeout larger than X.

  • How does it connect to the database

    can anyone pls tell me how the below coding connect to the database, and if i want to change to use other type of connection, which part of the coding should i use? thank
    loginAction.jsp
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <html><!-- InstanceBegin template="/Templates/biome.dwt.jsp" codeOutsideHTMLIsLocked="false" -->
    <head>
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <LINK href="bios.css" type=text/css rel=stylesheet>
    <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
    </head>
    <body leftmargin="0" topmargin="0">
    <%@ include file="useAndImport.jsp" %>
    <%
    String username = (String)session.getAttribute("username");
    session.setMaxInactiveInterval(10*60);
    boolean isLoggedIn=work.isUsable(username)?true:false;
    %>
    <table width="100%" height="22" border="0" cellpadding="0" cellspacing="0" bgcolor="#CC3300" class="statusloginsearch">
    <tr>
              <SCRIPT LANGUAGE="JavaScript">
    <!-- Idea by: Nic Wolfe ([email protected]) -->
    <!-- Web URL: http://fineline.xs.mw -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=500');");
    // End -->
    </script>
    <form action=loginAction.jsp method=POST>
    <td width="77%" valign="baseline" nowrap id="statusbar">   <% if (isLoggedIn)
    out.println("<img src=images/active.gif width=10 height=15 align=middle><font size=1 color=white face=Verdana, Arial, Helvetica, sans-serif><b>Welcome, " + username + "  </b></font>");%> <% if (!isLoggedIn) { %>
    <font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Username:</font><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
    <input type=text name=username class="form" <%= work.getValueAttribute(username) %> >
    <font color="#FFFFFF"> Password:</font>
    <input type=password name=password class="form">
    <input type="submit" name="action" value="Login" class="formbutton" onfocus="this.blur()" onmouseover="this.className='formbuttonover';" onmouseout="this.className='formbutton';" onmousedown="this.className='formbuttonover';" onmouseup="this.className='formbuttonover';">
    <input type="reset" name="action" value="Reset" class="formbutton" onfocus="this.blur()" onmouseover="this.className='formbuttonover';" onmouseout="this.className='formbutton';" onmousedown="this.className='formbuttonover';" onmouseup="this.className='formbuttonover';">
    <img src="images/question.gif" alt="what's this?" width="15" height="15" border="0" align="middle">
    <% } %>
    </font></td>
    </form>
    <td width="23%" valign="baseline" nowrap id="statusbar"> <div align="right">
    <% if (isLoggedIn)
    out.println("<form action=SignOut.jsp method=POST><input type=submit name=action value=Logout class=formbutton onfocus=this.blur() onmouseover=this.className='formbuttonover'; onmouseout=this.className='formbutton'; onmousedown=this.className='formbuttonover'; onmouseup=this.className='formbuttonover';></form> <a href=tour.jsp><img src=images/newtothissite.gif border=0 align=middle></a>");%>
      </div></td>
    </tr>
    </table>
    <table width="650" border="0" cellspacing="4" cellpadding="1">
    <tr>
    <td><!-- InstanceBeginEditable name="main" -->
    <table width="580" border="0">
    <tr>
    <td><strong><font color="#CCCCCC" size="+2" face="Arial, Helvetica, sans-serif">ERROR</font></strong></td>
    </tr>
    </table>
    <%-- loginAction.jsp --%>
    <%
    String username1 = request.getParameter("username");
    String password=request.getParameter("password");
    boolean isUsername=work.isUsable(username1);
    boolean isPassword=work.isUsable(password);
    String usernameQuoted=work.getSingleQuoted(username1);
    String usernameParam = work.makeUrlParameter("username",username1);
    ResultSet resultset;
    if(isUsername && isPassword) {
    resultset=db.executeQuery
    ("SELECT * FROM users WHERE USERNAME = " + usernameQuoted);
    if (resultset.next() &&
    resultset.getString("password").equals(password))
    out.println("<font color=green>You are logged on.</font>");
    session.setAttribute("username", username1);
    String accessLevel = resultset.getString("access_level");
         session.setAttribute("access", accessLevel);
         if(accessLevel.equals("0"))
         response.sendRedirect("Welcome.jsp");
         else if(accessLevel.equals("3"))
         response.sendRedirect("Admin.jsp");
    %>
    <%
    } else {
    out.print(work.tryAgain(
    "<font size=2 color=red face=Verdana, Arial, Helvetica, sans-serif><b>Your username and/or password are incorrect.</b>",
    "Login.jsp"+usernameParam));
    } else {
    out.print(work.tryAgain(
    "<font size=2 color=red face=Verdana, Arial, Helvetica, sans-serif><b>Your login information is incomplete.",
    "Login.jsp"+usernameParam));
    %>
    <!-- InstanceEndEditable -->
    </td>
    </tr>
    </table>
    </body>
    <!-- InstanceEnd --></html>
    useAndImport.jsp
    <%-- thingsToUseAndImport.jsp --%>
    <jsp:useBean id="db"
    class="kw.search.DbAccess"
    scope="application"/>
    <jsp:useBean id="work"
    class="kw.search.Worker"
    scope="application"/>
    <jsp:useBean id="dataB"
    class="bb.messageBoard.DataB"
    scope="application"/>
    <jsp:useBean id="forum"
    class="bb.messageBoard.Forum"
    scope="application"/>
    <%@ page import="java.text.DateFormat, java.util.Vector, java.io.*" %>
    DbAccess.java
    package kw.search;
    import java.sql.*;
    public class DbAccess implements java.io.Serializable {
    private Connection connection;
    private Statement statement;
    String db = "btc";
    String user = "javauser";
    String password = "javauser";
    String dbUrl = "jdbc:mysql://localhost:3306/" +db;
    //dbUrl = "jdbc:mysql://localhost:3306/"+db;
    public DbAccess ()
    throws ClassNotFoundException, SQLException
    Class.forName("com.mysql.jdbc.Driver");
    //connection = DriverManager.getConnection ("jdbc:mysql://localhost:3306/btc?"+"user=javauser&password=javauser");
    connection = DriverManager.getConnection
    (dbUrl+"?user="+user+"&password="+password);
    connection.setAutoCommit(false);
    statement = connection.createStatement();
    public void executeUpdate(String sqlCommand)
    throws SQLException
    statement.executeUpdate(sqlCommand);
    public ResultSet executeQuery(String sqlCommand)
    throws SQLException
    return statement.executeQuery(sqlCommand);
    public void commit() throws SQLException
    connection.commit();
    public void rollback() throws SQLException
    connection.rollback();
    protected void finalize() throws SQLException
    statement.close();
    connection.close();
    }

    This section of your code makes the connection:
    public DbAccess ()
    throws ClassNotFoundException, SQLException
    Class.forName("com.mysql.jdbc.Driver");
    //connection = DriverManager.getConnection ("jdbc:mysql://localhost:3306/btc?"+"user=javauser&password=javauser");
    connection = DriverManager.getConnection
    (dbUrl+"?user="+user+"&password="+password);
    connection.setAutoCommit(false);
    statement = connection.createStatement();
    public void executeUpdate(String sqlCommand)
    throws SQLException
    statement.executeUpdate(sqlCommand);
    public ResultSet executeQuery(String sqlCommand)
    throws SQLException
    return statement.executeQuery(sqlCommand);
    public void commit() throws SQLException
    connection.commit();
    public void rollback() throws SQLException
    connection.rollback();
    }

  • AP1231G in WGB mode how does client-vlan work?

    I am trying to get an AP1231G in WGB mode to talk to an AP1231G in AP mode. Trunking works to the AP. The WGP associates with AP. I am assuming that workgroup-bridge client-vlan 10 effectively puts the ethernet port on the WGB on to VLAN 10. Do VLANs need to be enabled on the WGB? Does the WGB have to associate with a SID that is on VLAN 10 on the AP. Does this have any effect on the native vlan on the WGB. Has any one got a configuration similar to this that works? I will be happy to post the config files if any one is interested.

    Logically speaking, I think yes. VLANs need to be enabled on the WGB too. So that a client with SSID A will be assigned to vlan A and so on. This doesn't have any effect on the native vlan of WGB. But, ensure that the vlans you configure are allowed on the appropriate switch ports along with trunking.

  • Ping - How does one connect with Facebook?

    I see the message to connect with Facebook but do not see a link or instructions. Can someone show me how?

    I got ping earlier today, and i was asked to connect to facebook. i tried and after multiple attempts it still wasnt working, it would never load. Eventually, i found out that the apple servers were overloaded with people trying to upload photos and connect to facebook. Then i got the message (U.S. members are not allowed to connect at this time) or something along those lines. Now its completely gone. I believe apple will get their servers up and running overnight and give the capability back to everyone in a day or two. For now, you will just have to live with twitter and facebook.

Maybe you are looking for

  • How to schedule job under dbms_job??

    Hello, How would i go about scheduling a dbms job ?? All i have is the schema name and a procedure that i need to schedule. It need to run every night at midnight...i was said everything is ready in the procedure(some partitioning) of tables...i just

  • Move for VCRs from one repository to another is not supported

    Hi, I found this problem when I try to move a versioned resource from one repository to another one. Ex 1 - From documents: Move one document (versioned) to your Personal Documents. Ex 2 - Personal Documents: Move one document (versioned) to document

  • Routing extraction

    Dear friends, I have one requirement,The client has routing data in sap.He need to be extracted that data for different materials. Could you please me explain the process steps and FM if any.It is urgent Please help me on the processing logic. Thanks

  • PLS-00201: identifier error with grnats to roles

    Hi all, Consider the following: In schema AA I have several tables and packages. All grants (select, insert, update, delete for tables en execute for packages) are set to roles. User BB got the role contaning all those grants. Furthermore, for all ob

  • Help with ipad not being recognised

    Hello there. I have seen some of the discussions on here with a problem similar to mine, but am afraid that some of the explanations go way above my head in technical terms. The itunes on my pc has stopped recognising my ipad. I have looked at some o