Create connection multiple database server connection with sinle client

My problem is like this. I have 3 database servers like server A,server B,Server C. First Client will communicate with server A and Server B at the same time. Then if the connection is done then i need communicate with server C. Is there anybody who has the sample code for this. Please help me i am facing problems with this.

I want to build a web site using jsp servlet for my university course purpose. In the background i will have three servers one is database server like server A another is certificate authority server like server B and the other one is Bank server like server C. Next, user will input through login page(say for example user name & password for database server A, certificate credentials for server B) then the login page will check user credentials kept in server A and at the same time with server B(CA server). If the user credentials kept in both of these servers(A &B) are matched then the page will inform that this is the valid user and connect to the bank server for money transaction. I hope now the my problem is clear to you. please answer me how can i prepare for that.
what are the concepts related to that and have any demo code which i can use for that purpose.

Similar Messages

  • Create connection with sqlplus client

    Hi@everybody,
    i've a little connection problem with the oracle Instant Client I've installed on my Windows 7 64 bit. First, I've token the files:
    instantclient-basic-windows.x64-12.1.0.1.0.zip
    instantclient-sqlplus-windows.x64-12.1.0.1.0.zip
    and uzipped them together in a directory. That directory is in PATH enviroment variable on Windows 7.
    Now i want to try to get a connection to my Oracle 11gR2 (11.2.0.3) database on CentOS. When i do a EasyConnect:
    PROMPT>sqlplus system/pwdofsystem@hostname_of_db_server:1521/SIDNAME
    there is no problem to get to the database.
    But when i try the long way:
    PROMPT>sqlplus 'system@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname_of_db_server)(PORT=1521))(CONNECT_DATA=(SID=SIDNAME)))'
    first he asks me for the password for system. I enter the password and then I get an ORA-12560 error.
    I allready read about that error but i can't understand, why i need an entry in a tnsnames.ora file when i gave sqlplus all the parameters directly. Or is there another failure?
    Thanks and best regards,
    David

    TAKE OFF THE SINGLE QUOTES, you will be connected
    Run this without single quotes,
    PROMPT>sqlplus system@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname_of_db_server)(PORT=1521))(CONNECT_DATA=(SID=SIDNAME)))
    I guess if you are passing the whole ting in quotes, sqlplus is considering it as a 1 single parameter and assuming the whole thing as USERNAME.

  • Error when creating connection with SSO Authentication mode

    Hi All,
    when I am creating the connection with Authentication Mode as SSO, I get error "Unable to connect to SAP BW Server User abc has no RFC Authorization for function group SYST".
    When I am craeting connection with specific user id and Password it works fine.
    Pls. let me know whats the problem with creating connection with SSO.
    System Info: BOXIR.3.1 Sp3, SAP 7.1
    Regards,
    Nisha

    Yes, I have installed Integration Kit, and configured the SSO.
    I am able to login into designer with Authentication as SAP.
    But, the Problem is with connection creation with SSo authentication mode.
    Is there any property or role needs to be defined for the universe designer Group or user, so that SSO is allowed in authentication mode?
    Regards,
    Nisha

  • Connect SQL Server 2012 from Windows Server 2003 with native client 9.0

    Hi,
    I currently have a setup where ETL tool Ab Intio, running on a Linux server, connects to the SQL Server 2005 through a passthrough Wintel server with Windows Server 2003 OS using SQL server native client 9.0
    Now I have the requirement to upgrade the SQL server from 2005 to 2012.
    My question is, will it be possible to connect to SQL server 2012 through Windows Server 2003 with native client 9.0?
    As per the specs, I need native client 11.0+ to fully support SQL Server 2012, but then, as per specs, native client 11.0 doesnot run on Windows server 2003. OS upgradation is currently not on the cards.
    So will it be possible to the run the basic queries we use currently, if we can connect SQL server 2012 through Windows Server 2003 with native client 9.0/10.0, without updgrading the OS of the Wintel server?
    Thanking you in advance! 

    Hi Soumya,
    Yes, you can use the SQL Server Native Client shipped with SQL Server 2005 to connect to a SQL Server 2012 instance, and there is no need to upgrade the operating system.
    Regards,
    Mike Yin
    TechNet Community Support

  • Newly created vLAN in VTP Domain issue with VTP Client

    Hello,
    I have a VTP Domain with WS-c4506 switch "server" and multiple c2950 "clients" along Microsoft DHCP server.
    I have this infrastructure 5 years ago up & running without any problems but nowadays we need to add a new vLAN wireless access points i already created the vlan on the server checked it is created on clients show vlan found the new vlan.
    I
    assigned fa port to it on the core switch "server" i have the access point connected to it have some problems obtaining IP Address but it got fixed by restarting the DHCP server.
    problem with VTP clients that when i try to assign port to the new vlan it always takes APIPA and even when i give the laptop connected directly to the port static IP address with the same range of the new vlan at acts like there is now networks exist it cannot ping anything within the network.
    it all looks right but i dont know why it doesnt connect to the network like it should.
    any recommendations?

    Yes. I can Telnet over the site to site tunnel to the Cisco 881. I can not Telnet via the VPN Client to the Cisco 881 or ping it's LAN interface.
    GM

  • Create connection with Oracle SQL Developer

    Hello,
    my test to connect my Oracle database with SQL*PLUS works. Here I need only the username (I test with system), my password and the hostname (orcl).
    Now I want to create this connection with the SQL Developer.
    Here I need the Port. I don't know the port of my database. How can I find it out?

    Hi, the port must be the used by listener, review the $ORACLE_HOME/network/admin/listener.ora file or get the listener status(lsnrctl status) for get the correct port.
    You can try with the default port. (1521).
    Luck.
    Havea good day.
    Regards.

  • Facing issues when creating connection with sharepoint adapter in webcenter

    Hi All,
    I am trying to integrate Ms SharePoint with web center spaces. I am fallowing below PDF.
    http://www.oracle.com/technetwork/middleware/webcenter/owcs-ps3-sharepoint-wcs-wp-335282.pdf
    i unable to run WLST command for creating connections. in wlst console i'm getting error like
    wls:/webcenter/serverConfig> createExtAppConnection(appName='webcenter',name='mo
    ssExtApp')
    Traceback (innermost last):
    File "<console>", line 1, in ?
    NameError: createExtAppConnection
    wls:/webcenter/serverConfig>
    where i am doing mistake in fallowing pdf.
    can any one resolve this issues.
    Regards

    Hi,
    Please run ./wlst.sh under "ORACLE_HOME/common/bin" and the one under "WLS_HOME/common/bin"
    Also, makesure, you had copied the two .py scripts from companion software to "ORACLE_HOME/common/wlst"
    Thanks & Regards,
    Lakshmikanth K

  • Non-Deterministic Exception When Connecting With Wrong Client Certificate

    I am working on an internal application and need to determine the correct client-side SSL certificate to use when connecting to a server (the user can supply multiple client-side certificates). I had expected that if I connected to a server using the wrong client certificate the java client would throw a SSLHandshakeException and I could then try the next certificate. This seems to work some of the time, however the java client will sometimes throw a “SocketException: Software caused connection abort: recv failed”, in which case it is not possible to know that the wrong certificate caused the problem.
    Below is the code I have been using to test as well as the intermittent SocketException stack trace. Does anyone have an idea as to how to fix this problem? Thanks in advance.
    Note: the TrustAllX509TrustManager is a trust manager that trusts all servers.
    protected void connectSsl() throws Exception {
          final String host = "x.x.x.x";
          final int portNumber = 443;
          final int socketTimeout = 10*1000;
          // Note: Wrong certificate (expect SSLHandshakeException).
          final String certFilename = "C:\\xxx\\clientSSL.P12";
          final String certPassword = "certPassword";
          final BufferedInputStream bis = new BufferedInputStream(new FileInputStream(new File(certFilename)));
          final char[] certificatePasswordArray = certPassword.toCharArray();
          final KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance("SunX509");
          final KeyStore keyStore = KeyStore.getInstance("PKCS12");
          keyStore.load(bis, certificatePasswordArray);
          keyManagerFactory.init(keyStore, certificatePasswordArray);
          final KeyManager[] keyManagers = keyManagerFactory.getKeyManagers();
          final SSLContext context = SSLContext.getInstance("SSL");
          context.init(keyManagers, new TrustManager[]{new TrustAllX509TrustManager()}, new SecureRandom());
          final SocketFactory secureFactory = context.getSocketFactory();
          final Socket socket = secureFactory.createSocket();
          final InetAddress ip = InetAddress.getByName(host);
          socket.connect(new InetSocketAddress(ip, portNumber), socketTimeout);
          socket.setSoTimeout(socketTimeout);
          // Write the request.
          final OutputStream out = new BufferedOutputStream(socket.getOutputStream());
          out.write("GET / HTTP/1.1\r\n".getBytes());
          out.write("\r\n".getBytes());
          out.flush();
          InputStream inputStream = socket.getInputStream();
          ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
          byte[] byteArray = new byte[1024];
          int bytesRead = 0;
          while ((bytesRead = inputStream.read(byteArray)) != -1) {
             outputStream.write(byteArray, 0, bytesRead);
          socket.close();
          System.out.println("Response:\r\n" + outputStream.toString("UTF-8"));
       }Unexpected SocketException:
    main: java.net.SocketException: Software caused connection abort: recv failed
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1435)
         at com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:103)
         at com.sun.net.ssl.internal.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:612)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:808)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:734)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:197)
         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623)
         at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)

    Thanks for the quick response. Here are answers to the questions:
    1) No, this issue is not associated with one particular certificate. I have tried several certificates and see the same issue.
    2) I agree it would be simpler to only send the required certificate, but unfortunately the project requires that the user be able to specify multiple certificates and, if a client-side certificate is required, the application try each one in turn until the correct certificate is found.
    3) Yes, I realize the TrustAllX509TrustManager is insecure, but I am using this for testing purposes while trying to diagnose the client certificate problem.
    In terms of testing, I am just wrapping the above code in a try/catch block and executing it in a loop. It is quite odd that the same exact code will sometimes generate a SSLHandshakeException and other times a SocketException.
    One additional piece of information: if I force the client code to use "SSLv3" using the Socket.setEnabledProtocols(...) method, the problem goes away (I consistently get a SSLHandshakeException). However, I don't think this solves my problem as forcing the application to use SSLv3 would mean it could not handle TLS connections.
    The code to specify the SSLv3 protocol is:
    SSLSocket sslSocket = (SSLSocket) socket;
    sslSocket.setEnabledProtocols(new String[] {"SSLv3"});
    One other strange issue: if instead of specifying the SSLv3 protocol using setEnabledProtocols(...) I instead specify the protocol when creating the SSLContext, the SocketException problem comes back. So if I replace:
    final SSLContext context = SSLContext.getInstance("SSL");
    with:
    final SSLContext context = SSLContext.getInstance("SSLv3");
    and remove the "sslSocket.setEnabledProtocols(new String[] {"SSLv3"})" line, I see the intermittent SocketException problem.
    All very weird. Any thoughts?

  • Trusted connectivity with different Clients

    Hi all
    I have the following problem: The Trusting System SRR (Server) has client 100 and 010 the
    Trusted System CLL has client 010.
    I tried to make a trusted connectivity with the SRR 100 Client, but I’m only able to connect to the SRR 010 Client.
    Where can declare to which Client of the Trusting System (Server) the Trusted System (client) Points?
    Tnx for your help
    Murat

    Hi
    I solved the problem.
    if the Client is not the same you see in the trusted system in RFC menu trusting system an error.  "authorization failed". (this was confusing)
    You have to create in the Trusting system the authorization object S_RFCACL with the client information for the calling System. You verify the settings with the function module AUTHORITY_CHECK_TRUSTED_SYSTEM.
    Once you created the trusted system in the Trusting system. You have to create a NEW RFC connection in the Trusted System for example <SID>_TRUST mark the trusted system and current user with the Client# information. Once saved, try to logon by the "Remote Logon" button. If this works, then you created successfully the trust relationship.
    Thanks<u> <i>Wolfgang for the Note you mentioned</i>.</u> I checked that Note before.What I didn't know that the Message in RFC menu Trusting System authorization failed  can be ignored since it tries to logon with the current logged on client.
    Murat

  • Connection with OPC client

    Hi,
    I would like to access to my shared variables using an OPC client. (a free software called powerOPC or any other one)
    When I use it locally, everything goes well, I can access my shared variables, but when I try to access from a distantr PC, I cannot connect and get some errors. I've tried to open port 135 on the firewall, I've read the following post: http://forums.ni.com/t5/LabVIEW/opc-dcom-access-denied/m-p/822246/highlight/true#M373884
    But I still can't access my variables.
    The NI Distributed System Manager can access to the distant shared variables, so I don't know what's wrong with other clients.
    Does anyone knows how to do?
    Both PC are running win 7, one is 32 the other 64bit.
    LV2011
    Regards

    Hi toto26,
    thank you for using National Instruments discussion forum.
    Could you detail the way you use to communicate with your OPC server thanks share variable? Are you using datasocket like in this document or are you using DSC ?
    Could you tell us more about the errors you get? Have you already seen this KB document and its first related link?
    Thank you in advance
    Regards,
    Audrey_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

  • 9iFSRe2 + API + connect with thin-Client

    Hi,
    I progam the iFS-APi to connect the iFS.
    But under Windows i must install about 100MB.
    Under Linux the size of libs i need to connet
    about 10MB.
    My Question is can i connect the iFS with
    thin-Client dll?
    thanks for Answer
    bye

    Place some debugging code and see if URL is null. Also, although it is nice practice, you don't need to catch every type of exception. Try (no pun intended):
    catch (Exception e) {
    System.err.println(e.getClass().getName() + ":" + e.getMessage());
    - Saish
    "My karma ran over your dogma." - Anon

  • Problem in creating Connection with 9iApplication Server

    I'm getting an Error while testing the connection to application server
    IO Error connection Refused !!!
    I'm using 9iDS 9.0.2.0 can can anybody help Me..

    I tried port 1811 and it worked, this is probably installation dependent. Forgot which file I found the correct port, but search around

  • Create Connection with ORACLE

    Hi all,
    I want to create a source system based on Oracle Database, so i did this:
    1-Create Logical System
    2-Create Source system from Rsa1, here i completed all the field, then i saved and everything is ok but in the final screen shows up the following message:
    "No shared library found for the database".
    Does anybody knows if i have to configure or installa something else?
    Thanks a lot

    To use DB Connect to transfer data into BI, you need to have installed the SAP-specific part of the database interface, the DBSL, for the corresponding source-database management system for each BI application server.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/58/54f9c1562d104c9465dabd816f3f24/frameset.htm

  • Can't create connection with Data Modeler 2.0.0 570

    I have installed SQL Developer Data Modeler on my Windows Vista Home Premium system and am unable to create a connection to import a Data Dictionary. When I select TNS from the connection type dropdown list , I get a message below that states: 'Warning ORACLE_HOME environment variable is not set'.
    This is odd, since I use SQL Developer daily on this same system with no issues. I have checked with regedit and the ORACLE_HOME environment variable is indeed set.
    Any ideas?

    I ran into a similar where Data Modeler was finding the TNSNAMES.ORA file for the older Oracle 8i client (which I have to keep installed because some older legacy software depends on it) rather than the 10g client. My solution was to make use of a suggestion for a simialr problem with SQL Developer and create a DOS "cmd" file in the "+<data modeler install dir>+\datamodeler" directory that sets the ORACLE_HOME environment variable to my 10g client directory and then runs "datamodeler.exe". My file is named "datamodeler.cmd" and contains the following two lines:
    SET ORACLE_HOME=C:\oracle\product\10.2.0\client_1
    start datamodeler.exe
    HTH.
    Ed. H.

  • "Cannot create connection" with Jolt

    I'm running WebLogic Server 5.1 sp12 and Tuxedo 7.1 on Linux. When I try to run
    another WebLogic connecting to this machine, I receive the following error:
    "Unable to connect to primary server at //barcelona:9000"
    I am not running any firewall on the Jolt Server.
    Does someone knows why does it happen?
    The weblogic.properties of the new machine:
    weblogic.system.startupArgs.gbixStartupClasses=\
    poolname=joltpool,\
    appaddrlist=//barcelona:9000,\
    failoverlist=//barcelona:9000,\
    minpoolsize=1,\
    maxpoolsize=10
    The ubbconfig file:
    #Jolt servers definition
    JSL SRVGRP=JSLGRP
    SRVID=1
    CLOPT="-A -- -n //barcelona:9000 -m4 -I3600"
    The netstat -ap output of the tuxedo machine:
    tcp 0 0 barcelona:9000 *:* LISTEN 10338/JSL
    tcp 0 0 barcelona:9001 *:* LISTEN 10339/JSH
    tcp 0 0 barcelona:9002 *:* LISTEN 10340/JSH
    tcp 0 0 barcelona:9003 *:* LISTEN 10341/JSH
    tcp 0 0 *:netbios-ssn *:* LISTEN -
    tcp 0 0 barcelona:9004 *:* LISTEN 10342/JSH
    tcp 0 0 barcelona:32783 *:* LISTEN -
    tcp 0 0 *:sunrpc *:* LISTEN -
    tcp 0 0 *:x11 *:* LISTEN -
    tcp 0 0 *:http *:* LISTEN -
    tcp 0 0 *:1521 *:* LISTEN -
    Thanks

    I have this problem solved already. It is related on how
    JSL is started, where it listens for connections and how
    the network is set on the Linux box...
    Tks

Maybe you are looking for