Need help clarifying client/server TNS communication

Im trying to get a clearer understanding of service/listener registration in the Oracle client/server architechure. Feel free to point out errors in my understanding.
When an Oracle client connects to the server, it forms its connect descriptor based on the clients tnsnames.ora file. The client then checks the specified port on the host in the connect descriptor for a listener that is registered with the service defined in the
(CONNECT_DATA =
(SERVICE_NAME = TESTSERVICE)
portion of the client's tnsnames file. Correct?
Does the listener gets its list of SIDs its registered with from the SID_LIST section of the listener.ora file or the tnsnames file?
If the listener gets its list of SIDs to register with from the tnsnames file, is that the tnsnames file on the server?
If so, then what is the SID_LIST used for in the listener.ora file?
Im trying to connect the dots and any help would be much appreciated.
Thanks,

Reading below documents would help you understand how client/server TNS communication works:-
Listener Architecture
http://download-east.oracle.com/docs/cd/B14117_01/network.101/b10775/architecture.htm#sthref445
Configuring Naming Methods
http://download-east.oracle.com/docs/cd/B14117_01/network.101/b10775/naming.htm
Configuring and Administering the Listener
http://download-east.oracle.com/docs/cd/B14117_01/network.101/b10775/listenercfg.htm

Similar Messages

  • Need Help for client - server - client question [Sockets]

    Hi
    I have read the http://java.sun.com/docs/books/tutorial/networking/sockets/index.html tutorial and made this Knock Knock Application.
    But now, I want that one client can view all the other clients which are connected to the server, and interract with a selected cleint over the server (client - server - client).
    But I have no idea how to build such a registration concept?
    A concrete hint (or link) how to realise this would be very helpful. I searched all the internet for examples, but I dont found a simple example.
    Thanks in advance
    greeds

    wSam,
    It appears that Sun considers RMI to be simpler, although less efficient than the alternative:
    http://java.sun.com/developer/technicalArticles/ALT/sockets/
    This article also talks about object serialization, which I am a fan of. Suppose that you want to send a data structure containing lots of information (like all connected users). You can actually pass an object (rather than text) across the network using ObjectOutputStream and receive it on the other end with ObjectInputStream. You might create your own Command class for passing objects between the client and server instead of using RMI. The Command class might hold flags that indicate which method should take place on the remote machine (i.e. send chess move command).

  • Need Help of Client/Server Documentation

    Hi ,
    I am planning to develop an interface for in Java for Cancer Hospital.
    I am familier with Java using for GUI. Can some one refer any documentation about how to write server side code, what langagues are required to connect to server. I am planning to use Oracle for my database , but from client side how do i connect to server, etc.,..
    Thanks,

    You might as well write the server side in Java, too. Unless there are special circumstances that require something else -- but you didn't mention anything like that. Asking the server administrator would help. For a start find out about servlets, which are Java for the server side.

  • Need help converting Client-Server to JSP

    Hi;
    I have a purely data driven, dynamic, meta driven program
    in Java 1.4. Runs on almost any SQL database, and the
    systems analysts can do most of the programming just by
    entering the data. All screens and sql are auto-genned
    at runtime.
    I was wondering if there was anyone interested in helping
    convert to JSP. I would be willing to give part of the
    company profits. It is better then me asking a million
    questions here, although there are lots of great experts here.
    -Trent
    Thanks.

    My personal email address is [email protected] I would love to contact you if you drop me your phone number.
    Manohar

  • Need help startng websphere server in eclipse for debugging porpose

    I am using Eclipse Sdk Version: 3.1.2
    IBM websphere 6.0
    JDK 1.4
    I set debug value to "true" in my application.xml
    I have a .ear file of my application deployed on the websphere appserver. Currently I can test my application in nobebug mode.
    values of environment variables are -
    JAVA_HOME - C:\DEV\IBMJDK142; C:\Program Files\Java\jre1.6.0_03
    PATH - C:\DEV\IBMJDK142\bin; C:\Program Files\IBM\WebSphere MQ\Java\lib;C:\DEV\IBMJDK142\bin;%SystemRoot%\system32;%SystemRoot%;
    I want to test the application in debug mode.
    I am using default server on websphere, which is server1.
    In Admin-console of webshere I went to
    server-->Application server-->choose server1-->Debugging Service ---->checked the checkbox "Enable service at server startup"
    Here value of my JVM debug port is 7777.
    next In Eclipse env I chose Run---->Debug....--->Remote Java Application ----> created a new application with the name of my application and set the connection properties to -
    Host - localhost
    port-7777
    Eclipse----> Windows----->Preferences---->Server----->Installed Runtime---->Add---->selected values such as -
    JRE - default JRE(JDK 1.4)
    IBM Websphere Installation Directory - C:/DEV/WebSphere/AppServer
    saved it.
    Now in debug perspective, I created a new server with selection/values such as -
    IBM--->IBM Websphere v6---->
    port - 9081
    server profile directory - C:/DEV/WebSphere/AppServer/profiles/default
    cell - GCWSNTRANode01Cell
    node - GCWSNTRANode01
    server - server1
    Next---->Added the project to configured project ----->FINISH
    Closed Eclipse to save env settings.
    Started the default server (server1)
    opened eclipse - desired project--->debug perspective ---->choose server--->Right Click----Start/Debug
    mesg "Starting ServerI BM Websphere 6 - IBM Websphere 6 failed to start"
    can some one please tell me what I am missing here.

    Need help startng websphere server in eclipse for debugging porpose
    can some one please tell me what I am missing here. Well for one, you're trying to debug a dolphin
    Edited by: redfalconf35 on Jun 19, 2008 4:50 PM

  • I need help with Mavericks Server: an error occurred while configuring your server.  I

    I need help with Mavricks Server, I get the following: an error occurred while configuring your server.  I have deleted the Server.app several times along with the associated com.apple and Server folder.  Any more help would be appreciated.

    There are usually some log files around, related to the installation.  See if Console.app (Applications > Utilities) shows anything relevant to the error, when you've done a fresh install of Server.app and tried the configuration.

  • Help Needed With Basic Client/Server App

    I was wondering if anyone can help with a simple blackjack client/server application i've been writting (basically its a moddified chat application). The problem i'm having seems to lie within the connection management i've written.
    What i'm trying to get is that only 4 players can connect at one time and that each player takes a turn (which i've implemented using threads) to play their hand (as you would if you were playing it for real). The problem is that it will allow the players to connect, but oddly enough, it will not allow a new transaction to be created (i.e. allow a player to take their turn) until 2 players have connected.
    Even when it does create the transaction, after taking input from the client once, the server seems to stop doing anything without any error message of any kind.
    Its really annoyed me now, so you guys are my last hope!
    The code can be found in full here:
    Client Application: http://stuweb3.cmp.uea.ac.uk/~y0241725/WinEchoClient.java
    Server Application: http://stuweb3.cmp.uea.ac.uk/~y0241725/ThreadServer.java
    Card Class: http://stuweb3.cmp.uea.ac.uk/~y0241725/Card.java
    Deck Class: http://stuweb3.cmp.uea.ac.uk/~y0241725/Deck.java
    Please feel free to play around with this code as much as you feel necessary!

    (one last bump back up the forum before i give up on this completely)

  • Desperately need some help with client-server java programming

    Hi all,
    I'm new to client server java programming. I would like to work on servlets and apache tomcat. I installed the apache tomcat v 5.5 into my machine and i have sun java 6 also. I created a java applet class to be as a client and embed it into an html index file, like this:
    <applet code="EchoApplet.class" width="300" height="300"></applet>However, when I try to run the html file on the localhost, it print this error: classNotFoundException, couldn't load "EchoApplet.class" class. On the other hand, when I open the index file on applet viewer or by right clicking, open with firefox version 3, it works.
    I thought that the problem is with firefox, but after running the applet through the directory not the server, i found that the problem is not any more with firefox.
    Can anyone help me to solve this problem. I'm working on it for 5 days now and nothing on the net helped me. I tried a lot of solutions.
    Any help?

    arun,
    If the browser is going to execute $myApplet, first it must get the $myApplet.class from the server, right?
    So it follows that:
    1. $myApplet.class must be acessible to server, and
    2. the server must know exactly where to find $myApplet.class
    So, the simplest solution is to is put the $myApplet.class in the same directory as the HTML file which uses it... then your applet tag is simple:
      <applet height="200" width="400" code="$myApplet.class" ></applet>* The height & width attributes are required
    * Note the +.class+ is required in the code attribute (a common mistake).
    * This works uniformly (AFAIK) accross all java-enabled browsers.
    * There are incompatibilities with the codebase attribute. Poo!
    Cheers. Keith.

  • Help with client/server

    Hi guys, ive been developing a scrabble application lately, i have finished most parts of the game itself, so i decided to include the client/server (playing over LAN.)
    I have been able to make some features work like chat, update scores, switch turns.
    Now, i want to make a move so when a player plays, the tiles he drops on the board would update on the other player's game screen. I created a method and i have tried it in the normal game class(not client/server) and it works. But after coming up wiv a logic to send message to update the tiles, it doesnt work. I have attached pieces of the code pertaining to my problem.
    // Method to transfer the tiles (update the board with the tiles)
    //LetterBag class:
       public void transferTile(int tileindex, int cellindex, JPanel cell[]){
            for(int i=0;i<cell.length;i++){
                if(i==cellindex){
    // letterTile class contains all the tiles with each having its own index value (letterTile extends JLabel)
    //tiles is a Vector where i stored all the gameTiles.
                letterTile lt=(letterTile) tiles.elementAt(tileindex);
                    cell.add(lt);
    removeTile(tileindex);
    Multiplayerboard class:
    //Where i send the message to the server
    for(int i=0;i<ogaTile.size();i++){
    Vector v=(Vector)ogaTile.elementAt(i);
    int tindex=(Integer)v.elementAt(0);
    int cellindex=(Integer)v.elementAt(1);
    client.sendMessage("#-TRANSFERTILES-"+tindex+"-"+cellindex+"-*");
    //Tried printing out the above code and it prints out the right values
    Multiplayerclient class:
    lbag=new LetterBag();
    //multiplayer = new MultiplayerBoard(Player, this, chatter);
    //This is where the message is interpreted
    if (line.startsWith("#-TRANSFERTILES-")) {
    //anlyzer is the message string ( message line spits at"-")
    int x=Integer.parseInt(analyzer[0]);
    int y=Integer.parseInt(analyzer[1]);
    //multiplayer is instance of MultiplayerBoard class
    //cell is the gameboard panel in MultiplayerBoard class
    multiplayer.lbag.transferTile(x, y, multiplayer.cell);
    The problem is when i play, the game other client's application update the board with the tiles. I dont know where the problem is coming from maybe the logic or something else. Please any help/suggestion is really needed.

    dnt worry..
    jst solved it.. was an error on ma part

  • Need help on content server conversioning formats

    Hi,
    I need a help on content server. My requirement is to convert PDF to HTML how can i achieve that wether by using IBR or by Dynamic converter and explain how to do this ?
    Srinath am fallowing you in the forum hope you can help in this...
    Thanks,
    DSV

    Hi
    Dynamic converter is the component that will be used to do the conversion from any format to HTML . So you will have to install the following to get this working :
    1. UCM Core Update patchset 6907073 which is build 74 (latest to be released)
    2. Dynamic Converter version 8.2.0.862 - This will be available in the above patchset .
    3. ContentAccess specific to your OS . This is from patchset 6899823 .
    After installing the above 3 component , restarting UCM should get the DC up and working . Then you would need to set pdf as a format to be converted to HTML (from configuration for DC admin) and it should start working fine .
    Hope it helps .
    Thanks
    Srinath

  • Help with client server chat2

    Hi aggain,
    And here is my Client part of program
    Server part is in topic "help with client server1
    CLIENT.JAVA
    import java.io.*;
    import java.net.*;
    import java.lang.*;
    import javax.swing.*;
    public class Client {
    private static int SBAP_PORT = 5555;
    private static String server = "localhost";
    public static Socket socket = null;
    //main starts
    public static void main(String[] args) {
    try { //handle broken connection
    //set up connection to server, input, output streams
    try {
    socket = new Socket(server, SBAP_PORT);
    // handle wrong host/port errors
    catch (UnknownHostException e) {
    System.out.println("Unknown IP address for server.");
    System.exit(0);
    } //end catch UnknownHost
    catch (IOException ex) {
    System.out.println("No server found at specified port.");
    System.exit(0);
    } //end catch IOException
    catch (Exception exc) {
    System.out.println("Error :" + exc);
    System.exit(0);
    } //end cath Exception exc
    InputStream input = socket.getInputStream();
    OutputStream output = socket.getOutputStream();
    BufferedReader reader = new BufferedReader(new InputStreamReader(input));
    PrintWriter writer = new PrintWriter(output);
    while (true) {
    String client_in = JOptionPane.showInputDialog(null, "Client Request");
    System.out.println("Sending: " + client_in);
    writer.print(client_in);
    writer.flush();
    //read server entry and dispay
    String response = reader.readLine();
    if (response == null || response.equals("QUIT"))
    System.out.println("No data received");
    else
    System.out.println("Receiving: " + response);
    } //end try
    catch (IOException e) {
    System.out.println("Connection with server broken:" + e);
    System.exit(0);
    } //end catch IOException
    catch (Exception exp) {
    System.out.println("Error :" + exp);
    System.exit(0);
    } //end catch exp
    }//end main()
    }//end class Client

    http://forum.java.sun.com/thread.jspa?threadID=574466&messageID=2861516#2861516

  • HELP:USING CLIENT SERVER PROGRAM ON DIFF.MACHINES CONNECTED TO INTERNET?

    BELOW IS THE JAVA CODE FOR CLIENT & SERVER PROGRAM (TCP) USING SOCKET.
    I AM TRYING TO RUN CLIENT & SERVER PROGRAM ON 2 DIFFERENT MACHINES CONNECTED 2 INTERNET
    (1 RUNS SERVER.java & OTHER CLIENT.java).
    IS IT POSSIBLE WITH THE CODE WRITTEN BELOW?
    // Server.Java
    import java.net.*;
    import java.io.*;
    class Server {
    public static void main(String[] args) {
    boolean finished = false;
    try{
    ServerSocket listener = new ServerSocket(4444);
    while(!finished)
    {Socket to_client = listener.accept();
    OutputStream out = to_client.getOutputStream();
    PrintWriter pout = new PrintWriter(out, true);
    pout.println("Hello! this is server talking to you.");
    to_client.close();
    listener.close();
    }// end of try
    catch(Exception ie) {
    System.out.println(ie);
    //Client.Java
    import java.net.*;
    import java.io.*;
    class Client
    public static void main(String[] args)
    Socket client;
    String host="serverpcname";//host is assigned name of the server
    try
    {InetAddress adressen = InetAddress.getByName(host);
      client = new Socket(adressen,4444);
      BufferedReader scanf = new BufferedReader(new
      InputStreamReader(client.getInputStream()));
       String someString = scanf.readLine();
       System.out.println("From Server: "+someString);
      client.close();
    catch(Exception e)
    System.out.println(e);
    WHEN THE CODE IS EXECUTED(CLIENT.java ON 1 PC & SERVER.java on other) IT GIVES FOLLOWING EXCEPTIONS:
    java.net.UnknownHostException: serverpcname: serverpcname
    PLZ. GUIDE ME.
    THANKS IN ADVANCE.

    For a server to be accessible on the inetrnet it needs to have an externally visible IP address. For example, an address which starts with 192.168.1 is for internal use only can only be used by other machines on the same internal network. The server's firewall needs to allow the port you are using access and the client has to be able to lookup up the IP address either using the hosts file or via a DNS service. None of these things have anything to do with Java programming, so if you have any more questions I sugegst you try googling them or ask a forum which relates to these issues.
    The connection time out is due to the fact that there is no way to contact an inetrnal address over the inetrnet. The host unknwown means you haven't configured your PC to lookup that address. i.e. the host is unknown.

  • Help in client server project

    Asalam-o-Alikum!
    I m writing client server project. In that project there are many classes that are being used in both (client application and server application). Im using JCreator and also netbeans 5.5 IDE. Plz anyone can help that should i design 1 project for cilent and server. or 2 different projects 1 for client and 1 for server. If i have to use 2 different projects than how can I make available those classes to both projects (client and server) that are being shared by client and server. and i have to make 1 project than how can i run both client and server separately.
    thanks in advance.

    Aslam-o-Alikum!
    I am designing a new project that depends on another project. I want to use the classes made in previous project into my new project. Someone (as above) has told me to make the jar file of that class and set the class path to that jar file. Anyone can further tell me that how can set the class path of that project into my new project. And how to import the classes from that project that i have made previously???
    Example:
    I am designing project name "A" and i have to use a class "b" that not the part of project "A". But actually it is part of project "B". That i have made previously. Please tell how this can be achieved? making jar file of project "B" is right answere then how can i set the path of project "B" in project "A". and how to import class "b" into project "A". I am using JCreator pro 4.0
    This is the summary of obove posts. so plz dont read above posts just read this and plz help me if u could.
    Plz reply me with a simple example.
    Thanks in advance...!

  • Client / Server Socket Communication - Should use 2 ports?

    If we have a client server architecture using a socket based connection, should there be 2 serperate sockets? One dedicated to sending and one dedictated to receiving? What happens if both the client and server both send at the same time? How does that get handled? Does one of the messages get dropped? Thanks...

    There are of course reasons you might want to use two sockets.
    For instance security. One socket is encrypted and the other isn't. Or because the server initiates a confirmed port connection back it verifies the IP.
    Or because the main socket is used for control and the second one is used for data. That way the client can tell the server to pause or make other adjustments in the data while the data is still flowing.

  • Help with client server chat 1

    Hi,
    I have to create small multithreaded client/server. chat program. Server and client have to exchange messages using input boxes until user types QUIT. I did most of it(I think) but it seems that server does not receives client messages and input boxes are displayed only once. I can�t figure out what is the problem. Here is what I did .I know it�s not easy to understand somebody else�s code, but if anybody have some spare time?
    this is just a server part, client is in second posting
    SERVER.JAVA
    import java.io.*;
    import java.net.*;
    import java.lang.*;
    import javax.swing.*;
    public class Server
    final int SBAP_PORT = 5555;
    //constructor
    public Server(){
    //set up server socket
    ServerSocket ss = null;
    try {
    ss = new ServerSocket(SBAP_PORT);
    } //end try
    catch (Exception e) {
    System.out.println("Could not create socket: Exception " + e);
    System.exit(0);
    } //end catch
    //chat with the client until user break the connection or enters QUIT
    try {
    while(true) {
    System.out.println("Server: Waiting for client to connect ...");
    Socket currentSocket = ss.accept();
    //create a new thread for each connection
    new ServerThread(currentSocket);
    } //end while
    } //end try
    catch (Exception e) {
    System.out.println("Fatal server error: " + e);
    }//end catch
    }//end constructor
    //inner class ServerThread to handle individual client connections
    private class ServerThread extends Thread {
    private Socket sock;
    private InputStream in=null;
    private OutputStream out=null;
    private BufferedReader reader = null;
    private PrintWriter writer = null;
    //constructor
    public ServerThread(Socket sock) {
    try{
    this.sock=sock;
    System.out.println("Server: Client connection established");
    start();
    }//end try
    catch (Exception e){}
    }//end constructor
    public void run() {
    try{
    in = this.sock.getInputStream();
    out =this.sock.getOutputStream();
    reader = new BufferedReader(new InputStreamReader(in));
    writer = new PrintWriter(out);
    while(true) {
    String server_response = JOptionPane.showInputDialog(null,"Server Response");
    System.out.println("Sending: " + server_response);
    writer.println(server_response);
    writer.flush();
    String line = reader.readLine(); //receives client request
    if (line == null || line.equals("QUIT"))
    System.out.println("No data received");
    else
    System.out.println("Received: " + line);
    }//end while
    }//end try
    catch (Exception e) {
    System.out.println("Connection to current client lost.");
    finally {
    try {
    sock.close();
    }//end try
    catch (Exception e) {}
    }//end finally
    }//end run
    }//end inner class ServerThread
    //main starts
    public static void main(String[] args) {
    new Server();
    }//end main()
    }//end class Server

    http://forum.java.sun.com/thread.jspa?threadID=574466&messageID=2861516#2861516

Maybe you are looking for

  • Multiple user account question

    I have created a second user account on my G5 but every time the person logs on the computer asks for a administrator name and password. I think the reason is to access the wireless internet connection. Is there any way to set this account up so that

  • How can I make restore disks on my macbook pro?

    I just purchased a new 13" Macbook Pro and there are no restore disks. How can I make some?

  • Problem in Mail:  rejects correct password

    My e-mail account won't connect in Mail (although I can open it fine on the web), even though I repeatedly put in the correct password.

  • Optimal settings for MPEG Streamclip convering mpgs to quicktime format

    Hello Folks, a newbie to this video converting world. I've got loads of mpgs from the past, which I'm trying to convert to Quicktime(mov) format for use on my apple tv and also to publish to DVDs. I tried the following: - Compression - Apple Intermed

  • Generate Point Q in ECIES

    Hi all I have the next code: ECPublicKeyParameters pubKey = new ECPublicKeyParameters( curve.decodePoint(Hex.decode("0262b12d60690cdcf330babab6e69763b471f994dd702d16a5")), // Q params); My question is: Is there any way to generate the string *"0262b1