Pb connecting from client to database after changing domain name

Hi,
I've got 3 databases wthis 3 listeners. all worked well since we change domain name. database server is in DMZ and is reconize witn 2 IP adresses.
I can ping with tnsping but when I run sqlplus user/passwd@ORACLE_SID I've got this message : ERROR:
ORA-12535: TNS : le dÚlai imparti Ó l'opÚration est ÚcoulÚ
on local host this command run well and connect to database.
is there somebody that knows this problem and its solution?
Thank you for your help.
PS: I'm on oracle 9.2.0 and windows200 server and client

I've got this message in listener.log
Démarré avec pid=3028
Ecoute sur : (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Ecoute sur : (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bam_sgbd.imelios.com)(PORT=1522)))
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
19-MAR-2004 14:21:33 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.80.180)(PORT=2032)) * establish * ADRPRODR * 0
19-MAR-2004 14:34:36 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=C:\oracle\ora92\bin\sqlplus.exe)(HOST=BAM_SGBD)(USER=BAM_SGBD))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.80.223)(PORT=2394)) * establish * ADRPRODR * 0
19-MAR-2004 14:40:53 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.80.180)(PORT=2195)) * establish * ADRPRODR * 0
19-MAR-2004 14:44:18 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=C:\oracle\ora92\bin\sqlplus.exe)(HOST=BAM_SGBD)(USER=BerPre))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.80.223)(PORT=2809)) * establish * ADRPRODR * 0
19-MAR-2004 14:57:52 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=C:\oracle\ora92\bin\sqlplus.exe)(HOST=BAM_SGBD)(USER=BAM_SGBD))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.80.223)(PORT=3413)) * establish * ADRPRODR * 0
19-MAR-2004 15:11:47 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.2.80.180)(PORT=2433)) * establish * ADRPRODR * 0
19-MAR-2004 15:55:59 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=IP_ADRESSE)(PORT=2561)) * establish * ADRPRODR * 0
19-MAR-2004 15:56:26 * (CONNECT_DATA=(SERVICE_NAME=ADRPRODR)(CID=(PROGRAM=c:\oracle\ora92\bin\sqlplus.exe)(HOST=U0011001)(USER=BerPRE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=IP_ADRESSE)(PORT=2568)) * establish * ADRPRODR * 0
this seems to work pas on client connection doesn't arrive

Similar Messages

  • Problems connecting from Client to Database

    I've run into a strange situation,
    We are running Oracle 8.1.7 installed on Sco?!? In the past everyone has just opened a netterm connection from windows 2000 to the box that the database exists on and run SQL Plus from within that window. They do not use any of the client side Oracle tools.
    I just started working here and was trying to explain the benefits of some of the existing Oracle tools that are out there. I installed Discoverer along with some other tools and was having troubles connecting. I uninstalled everything and started with just SQL Plus. The following is my tnsnames entry for the database:
    oradev =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (Host = ORADEV)
    (Port = 1521)
    (CONNECT_DATA = (SID = DVCX)
    and the error that I get when I try to connect is:
    ORA-12514: Message 12514 not found; product=RDBMS80; facility=ORA
    The strange thing is that I installed JDeveloper and told it to start a SQL Plus session and it works fine. It is pointing at the exact same executable that I tried running from the start menu. C:\ORACLE\806\BIN\PLUS80W.EXE
    I tried running this executable frmo the Dos prompt using this:
    C:\ORACLE\806\BIN\PLUS80W.EXE user/passwd@oradev:1521:DVCX
    and I get this error message:
    ORA-06401: NETCMN: invalid driver designator
    Does anyone have any ideas? It would be really nice to be able to show these guys why they spent so much money to buy Oracle. Right now they're only using it to store data.
    Any responses would be appreciated. If I don't know the answer to your questino I can ask around and find it.
    Thanks,
    Chris S.

    Before I do that,
    Since it's not really my database to hack around with, why would the everything work through JDeveloper or through a netterm session to the Sco box? I'm not familiar with stopping and starting the listener so I will have to figure out how to do that as well.
    Thanks again for your input. I appologize if these are newby questions but this has always been set up for me in the past. I'm on new ground here.
    Thanks,
    Chris S. I haven't worked with Java so I can't explain the JDeveloper connection. I assume netterm is a terminal emulater, thus running a 'local' session on the host and doesn't need the listener to be running.
    Before you change anything, on the SCO box run the following command:
    prompt> lsnrctl status
    if it is not running or configured properly, you should see this kind of output (my output is from an NT box, but it should be close):
    LSNRCTL for 32-bit Windows: Version 9.0.1.1.1 - Production on 04-OCT-2002 13:59:44
    Copyright (c) 1991, 2001, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=astra)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 61: Unknown error
    if it is running, it should show you which ports it is listening on. All things considered, you should take these steps first, because some O/Ss like to play games with the location of the config files (esp. Sun).

  • Will vmware horizon work after change domain name and ip adress and vcenter ?

    Hi
    i have a question
    i have to migrate all of my vmware horizon but for example my domain name is now a.com but i have to migare it to new domain b.comit means my domain name and ip adress will be change also connectios server ip adress vcenter ip adress  now i want to know if my domain name and ip adress change and also all of my vm and vcenter and ... change  will vmware horizon work after these changes ?
    best regards
    Babak

    Horizon View is depended on AD and this task is not trivial.
    What needs to be done depends on your setup and configuration and you will need assist from VMware Support and you should first replicate the setup in a test-environment.
    // Linjo

  • ISE node registering after change domain-name

    At Customer Site I changed the domain name of our 4 ISE server before they were registered to any deployment. I regenerated a self signed certificate and started to register the other nodes to the deployment. This went well for the 2 PSN nodes which have a ip address in a different subnet. I tried to register the presumed secondarry PAN/MnT node and got the following error message "
    Node beiing registerd has FQDN 'ISE-PAN-AP02.office.intern' which cannot be resolved. Please check your DNS configuration."
    My DNS config is in order.
    Can anyone please tell me want possible can be the cause of this?

    Please check these Prerequisites:
    The fully qualified domain name (FQDN) of the standalone node that you are going to register, for example, ise1.cisco.com must be DNS-resolvable from the primary Administration ISE node.  Otherwise, node registration will fail. You must enter the IP addresses  and FQDNs of the ISE nodes that are part of your distributed deployment  in the DNS server.
    •The  primary Administration ISE node and the standalone node that you are  about to register as a secondary node should be running the same version  of Cisco ISE.
    •Node  registration fails if you provide the default credentials (username:  admin, password: cisco) while registering a secondary node. Before you  register a standalone node, you must log into its administrative user  interface and change the default password (cisco).
    •You  can alternatively create an administrator account on the node that is  to be registered and use those credentials for registering that node.  Every ISE administrator account is assigned one or more administrative  roles. To register and configure a secondary node, you must have one of  the following roles assigned: Super Admin, System Admin, or RBAC Admin.  See Cisco ISE Admin Group Roles and Responsibilities for more information on the various administrative roles and the privileges associated with each of them.
    •If  you plan to register a secondary Administration ISE node for high  availability, we recommend that you register the secondary  Administration ISE node with the primary first before you register other  Cisco ISE nodes. If Cisco ISE nodes are registered in this sequence,  you do not have to restart the secondary ISE nodes after you promote the  secondary Administration ISE node as your primary.
    •If  you plan to register multiple Policy Service ISE nodes running Session  services and you require mutual failover among those nodes, you must  place the Policy Service ISE nodes in a node group. You must create the  node group first before you register the nodes because you need to  select the node group to be used on the registration page. See "Creating, Editing, and Deleting Node Groups" section for more information.
    •Ensure  that the Certificate Trust List (CTL) of the primary node is populated  with the appropriate Certificate Authority (CA) certificates that can be  used to validate the HTTPS certificate of the standalone node (that you  are going to register as the secondary node). See the "Creating Certificate Trust Lists in the Primary Cisco ISE Node" section on page 12-24 for more information.
    •After  registering your secondary node to the primary node, if you change the  HTTPS certificate on the registered secondary node, you must obtain  appropriate CA certificates that can be used to validate the secondary  node's HTTPS certificate and import it to the CTL of the primary node.  See "Creating Certificate Trust Lists in the Primary Cisco ISE Node" section on page 12-24 for more information.

  • VG224 - some ports show "unregistered" after changing domain name

    hi,
    recently i have changed the domain name of a VG224, before the change, all ports shows "registered" from the CUCM.
    after I changed the domain name from VG224 and CUCM, the VG224 can be registered to CUCM, and some ports can register too...only serveral ports showing "unregistered" in the CUCM. But from the VG224, everything is normal. and call/ fax can be made successfully from those "unregistered" ports.
    anyone has idea what's going on?
    thanks.

    Melany,
    Sorry for the delay,
    I have had a look at bugs etc.
    The only one I can find that may be related is:-
    Change MGCP gateway Domain Name only reset endpoints not whole gateway
    CSCsg39923
    Description
    Symptom:
    Incoming and outgoing calls over an MGCP gateway fails randomly after changing gateway's domain name in CallManager. Sometimes caller receives dead air.
    Conditions:
    The administrator changes the gateway domain name in CCM without stopping Gateway's mgcp service.
    Workaround:
    Reset or reload the gateway.
    Further Problem Description:
    The proper way of changing a gateway's domain name is:
    - Stop Gateway's mgcp service (gateway command: no mgcp)
    - Chnage the domain name in the gateway and in CCM.
    - Start Gateway's mgcp service (gateway command: mgcp)
    Customer Visible
      Save Bug
    ">
    Save Bug
      Open Support Case
    ">
    Open Support Case
    View Bug in CDETS
    ">View Bug in CDETS
    Was the description about this Bug Helpful?
    (0)
    Details
    Last Modified:
    Nov 2,2012
    Status:
    Fixed
    Severity:
    3 Moderate
    Product:
    Cisco Unified Communications Manager (CallManager)
    Support Cases:
    2
    Known Affected Releases:
    (1)
    4.2
    Known Fixed Releases:
    (4)
    6.0(0.9901.37)
    6.0(1.1000.37)
    7.0(0.99999.65)
    1.0(0.98000.42)
    Download software for  Cisco Unified Communications Manager (CallManager)
    Support Cases:
    (2)
    Support case links are not customer visible
    Related Bugs
    Bug(s)
    Community Discussion on CSCsg39923 - Cisco Support Community
    Regards,
    Alex.
    Please rate useful posts.

  • PORTAL DOESN'T WORK (error:WWC-41439) after CHANGED DOMAIN NAME OF MACHINE.

    machine transferred to other location and domain name got changed.I did following
    1)changed the old domain to new domain name in jserv.properties file and also in the httpd.conf file.
    2)I figured out that intable PORTAL30_SSO.WWSEC_ENABLER_CONFIG_INFO$,the value of column LSNR_TOKEN is= "old doamin "
    and LS_LOGIN_URL is =
    http://old.domain:7777/pls/portal30_sso/portal30_sso.wwsso_app_admin.ls_login
    PLease let me know how I can change old domain values with new doamin in this table.I want to be sure that this change will not affect the old portal application.
    PLease try to help resolve the issue ASAP.
    Thanks

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by shahid mateen ([email protected]):
    machine transferred to other location and domain name got changed.I did following
    1)changed the old domain to new domain name in jserv.properties file and also in the httpd.conf file.
    2)I figured out that intable PORTAL30_SSO.WWSEC_ENABLER_CONFIG_INFO$,the value of column LSNR_TOKEN is= "old doamin "
    and LS_LOGIN_URL is =
    http://old.domain:7777/pls/portal30_sso/portal30_sso.wwsso_app_admin.ls_login
    PLease let me know how I can change old domain values with new doamin in this table.I want to be sure that this change will not affect the old portal application.
    PLease try to help resolve the issue ASAP.
    Thanks<HR></BLOCKQUOTE>
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>my concern is I have a portal application which was pointing to old domain and I don't want to lose this application(content area,page,style etc).If I run the ssodatan ,then it will change the content in the table wsec_enabler_config_info$.Please let me know if still it would point to old portal application.<HR></BLOCKQUOTE>

  • Modeler problem after changing domain name

    Hello GURUS,
    I had my BI7 on RHEL5 and MaxDB configured and working with hostname xxxbwd.yyy.pl. Today I had to change domain/host name to xxxbwd.zzzz.yyy.pl. I've changed it in /etc/hosts, changed profile parameter icm/host_name_full to new value and almost everything works.
    I have problem with starting modeler form t-code RSPLAN - it throws IE error "Page not found" and I can see that "old" domain name is called. Where do I have to type in new domain name to make RSPLAN work?
    Regs,
    FS

    Found it myself.
    Report RSPLS_LAUNCH_ADMIN allows to set such things.
    Regs,
    =FS=

  • HOW TO CONNECT FROM CLIENT MACHINE TO REMOTE MACHINE(SERVER DATABASE MACHINE)

    Hi friends.
    I need your valuable help,
    I am using oracle 11g database.
    I have two system.One is client machine and installed oracle 11G client software.
    and from this machine user can connect remote server database(This is old remote system, this is just for Information).
    And i have created one new database called RMANP in new remote server machine (this is the machine, in which i need to connect from client machine)
    ex
    CLIENT MACHINE DETAIL IS:
    system66
    ip address is 192.162.21.66
    REMOTE SEVER MACHINE DETAILS IS:
    system56
    ip address is 192.162.21.56.
    and i add entry on client machine tnsname.ora file like following,
    RMANP=
    (DESCRIPTION=
       (ADDRESS=
         (PROTOCOL=TCP)
         (HOST=192.168.21.56)
         (PORT=1521)
       (CONNECT_DATA=
         (SERVICE_NAME=rmanp)
    But when i try to connect to remote server from client machine in sqlplus, i am getting an error, Like following,
    SQL> CONN SYS/SYSPW AS SYSDBA;
    ERROR:
    ORA-12560: TNS:protocol adapter error

    2684285 wrote:
    Hi friends.
    I need your valuable help,
    I am using oracle 11g database.
    I have two system.One is client machine and installed oracle 11G client software.
    and from this machine user can connect remote server database(This is old remote system, this is just for Information).
    And i have created one new database called RMANP in new remote server machine (this is the machine, in which i need to connect from client machine)
    ex
    CLIENT MACHINE DETAIL IS:
    system66
    ip address is 192.162.21.66
    REMOTE SEVER MACHINE DETAILS IS:
    system56
    ip address is 192.162.21.56.
    and i add entry on client machine tnsname.ora file like following,
    RMANP=
    (DESCRIPTION=
       (ADDRESS=
         (PROTOCOL=TCP)
         (HOST=192.168.21.56)
         (PORT=1521)
       (CONNECT_DATA=
         (SERVICE_NAME=rmanp)
    But when i try to connect to remote server from client machine in sqlplus, i am getting an error, Like following,
    SQL> CONN SYS/SYSPW AS SYSDBA;
    ERROR:
    ORA-12560: TNS:protocol adapter error
    There is nothing in your connect string to tell sqlplus which database you want to connect to.  Therefore it assumes (by default) that you want to connect to a *local* database whose name is identified by the value of the environment variable ORACLE_SID.  And there is no such database, so he gets the reported error trying to establish a connection to a non-existent local service.
    You need to specify your target database, thusly:
    SQL>  conn sys/syspw@rmanp as sysdba
    BTW, connecting to a remote database as sysdba is considered by most DBAs to be a big secruity breach.  If you really need sysdba privileges (rare) you should be logged on to the database server machine with proper OS credentials, and work from there.
    Also, TYPING IN ALL CAPS IS PERCEIVED AS SHOUTING.

  • REP-0309: Unable to connect to the specified database after three attempts.

    Hi,
    I am getting the following error in cloned instance when I developed one custom report (rdf) and copied that report into custom top reports folder. and ran that report using custom responsbility.
    that report query is like this
    select user_name,user_id,start_date,end_date from fnd_user.
    simple report...
    ==========================
    Current system time is 30-JUL-2008 11:36:16
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    USERID='0'
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is :
    /u01/testora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to: /u01/testora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    Enter Password:
    Enter Password:
    REP-0501: Unable to connect to the specified database.
    ORA-01017: invalid username/password; logon denied
    REP-0501: Unable to connect to the specified database.
    ORA-12154: TNS:could not resolve service name
    REP-0501: Unable to connect to the specified database.
    ORA-12154: TNS:could not resolve service name
    REP-0309: Unable to connect to the specified database after three attempts. Access denied.
    Report Builder: Release 6.0.8.25.0 - Production on Wed Jul 30 11:36:16 2008
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username: Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 779500.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 30-JUL-2008 11:36:17
    =========================================
    what might be the problem...
    I developed the report in 10g Report Builder. and moved to 1.5.10.2 instance... ran that report in my report builder using apps user and..it is running fine in my report builder.

    hi bsubbu
    your password of custom application user schema at database level should be similar with the password at application level
    for instance your custom application schema name and password is xxgis/xxgis , we register this schema at application site by this navigation
    security> oracle > register >database username (xxgis) > password (xxgis)
    here you might have change your custom application user's password at database level using
    alter user xxgis identified by newpassword;
    change this user password at application site also :
    security> oracle > register> database username (xxgis) > password (newpassword)
    i understand this from the document
    Regards
    Message was edited by:
    user608721

  • Open script cannot get connection from the brower helper after 15 seconds.

    Error:
    ===
    Open script cannot get connection from the brower helper after 15 seconds. Do you want to continue waiting for the browser to load?
    Please Note:
    ========
    1. I have tried this only on IE
    2. I am running OATS on a Remote desktop
    Situation:
    ======
    Trying to stop the recording
    Try to get xpath of an object using Inspect Path
    Setup details
    ========
    Windows XP 5.1 Service Pack 3, x86
    OpenScript 12.1.0.1.383
    Internet Explorer 8.0.6001.18702
    FireFox 13.0.1
    Mitigation steps done till now:
    ==================
    1. Disabled windows firewall
    2. Disable XSS filter setting
    3. Restarted the ATS services (3 of them)
    4. Run the Open Script Diagnosis Tool (PS: There are 3 errros even after running it. The 3 errros are listed in the workspace_log log file snippet below...)
    Error in worspace_log:
    =============
    To Change setting:
    Go to Tools > Internet Options and Choose Security Tab
    Select the Zone to modify and Press Custom level
    Find Enable XSS filter Setting - Select Disable and click Ok
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Failure found when diagnosing Oracle EBS/Forms Load Testing Forms LT Diagnoser
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Did not auto-fix the problem.
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Suggestion for fixing: Please change your Java proxy setting to Use Browser Settings
    Aprreciate help on this.

    To resolve this, you need to reconfigure the "Oracle Application Testing Suite Helper Service" (OATSHelperSvr) to start as a user who has privledges to run open script tests rather than the default SYSTEM user.
    Reconfiguring the OATSHelperSvr Service:
    1. Open the services panel (Start > Run > services.msc)
    2. Find the Oracle Application Testing Suite Helper Service
    3. Right Click > Properties then select the Log On Tab
    4. Specify an interactive user that has rights to run OpenScript (test by logging in as that user and running tests):
    5. Click OK
    6. Restart the service after dialogs are closed by Right Click > Restart
    7. You should now repeat this process for the "Oracle Application Testing Suite Agent Service" (eLoadAgentMon) Service (Two services in
    total)
    You should now retry running the test in Oracle Test Manager

  • Connecting to an Oracle database after clicking on a foi

    Does anyone know how or have any examples on how to connect to an oracle database after clicking on a 'feature of interest' in MapViewer? I want to be able to click on a 'feature of interest' on the map, and have a list of records from an oracle table displayed using the identified key of the foi. I am able to create the feature of interest, and add the event listener for 'mouse click', but am unsure how to connect to the database at this point. I have been able to connect to the database in a different jsp, but not from here. Thank you.

    1. Create a JSP page that does the database query. It should take the foi id as an input parameter.
    2. In the foi mouse click listener, display the JSP page in iframe. The iframe can be placed outside the map or inside the info window. The function should do something like this.
    function myClickListener(point, foi)
    mapview.displayInfoWindow(point, "<iframe id='my_iframe_id' frameborder=0 width=300px height=400px />", 300, 400) ;
    var myIframe = document.getElementById("my_iframe_id") ;
    myIframe.src = "http://myhost/myjsp?key=" + foi.id ;
    }

  • Accepting connection from client

    Hello,
    I want to create java server which accepts connection from client once and then continuously waits for request sent by client. Something same as select() call in C
    Something of kind
    Server.java:
    Socket socket = server.accept();
    while(true)
    // listen for request ,
    // if request received , create new thread for processing
    // return response
    I don't want to accept connection again and again
    Edited by: tryit on Aug 29, 2008 11:41 PM

    Thanks for the reply.
    But even in this library, an new thread is created which keeps on doing accept() in while(true) and after accepting connection , another thread is created to do the processing.
    But i want that once the connection is established between server and client i.e once accept() is done then just using that socket rest of processing i.e read()/write() is done , no need for accept() in while(true)
    I have something like this
    SenderReciever.java
    public class SenderAndReciever
        private ServerSocket server;
        private int port = 6000;
        public SenderAndReciever()
            try
                server = new ServerSocket(port);
         catch (IOException e)
                e.printStackTrace();
        public void handleConnection()
            try
         Socket socket = server.accept();
             /* PROBLEM AREA */
             /* This while loop results in infinite loop .
              * if i move Socket socket = server.accept() inside while then it  accepts one connection
              * returns a response but then waits for another connection to be accepted
              * But i want connection once accepted , use the same socket for rest all communications
         while (true)
              new ConnectionHandler(socket);
         catch (IOException e)
              e.printStackTrace();
        public static void main(String[] args)
            SenderAndReciever senderAndReciever = new SenderAndReciever();
            senderAndReciever.handleConnection();
    }ConnectionHandler.java:
    class ConnectionHandler implements Runnable
          private Socket socket;
          public ConnectionHandler(Socket socket)
             this.socket = socket;
            Thread t = new Thread(this);
            t.start();
          public void run()
             try
                readData();
                processData();
                sendData();
             catch (Exception e)
                e.printStackTrace();
    }

  • How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed and you don't know what it is now?

    How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed by the former husband and you don't know what it is now?  And you set up your own new ID and account but can NOT access the updates, from the App store for the many apps that you already have, because they require that you sign in with that former now inaccessible ID and account and password?  Call it a problem of modern times and changing relationships, if you want to be charitable.

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

  • Restrict number of simultaneous connection from client to EJB bean

    I have EJB bean and JavaSE client. I want to restrict number of simultaneous connection from client to EJB bean. For example to maximum allowed 3. How I can do it?

    :) but answer is too general.
    I want to know how to design such "simple reference counting". As I understand it is not recommended to use static variables in EJB. so how to implement such counting in a right way?
    Edited by: NoName on Aug 20, 2009 1:25 AM
    Edited by: NoName on Aug 20, 2009 1:31 AM

  • Can't find some files after changing drive name

    I keep all my music files on an external drive, and my iTunes folder (and iTunes Music folder) on the internal drive. After changing the name of the external drive, a good number of files (not all, and probably not even most, but a lot) couldn't be found by iTunes.
    I'm suspecting that this problem results from having my files stored externally and separate from the internal default iTunes Music folder, but I'm hoping someone can give me some more details about this and hopefully help find a solution. Thanks.

    In the root of the filesystem there normally is a folder "lost+found", in which files with strange names are found. These are the files cvfsck has collected in the recovering of the filesystemnames. It is sometimes not possible to recover the original file name and location. So this is the only way for cvfsck to give them back.
    If you think the content of these files is allright, you can rename and relocate them.
    Regards
    Donald

Maybe you are looking for

  • How to export multiple indd files to individual PDF's?

    Is there a way without using scripting, to simply take, say 10 single indesign files (all just single 3.5x2 business card layouts) and export them to a pre-defined PDF preset resulting in 10 single PDF's? (other than one at a time?) I tried a few thi

  • Why is the download speed so different to the wireless router?

    Apologies if this is not the correct location - newbie, so be gentle with me please! My question relates to a wireless connection I have established with a Belkin 802.11g 54g wireless router. Airport configured incredibly easily BTW. Anyway, when I l

  • When export mode is full and userid is system, data loss happens.

    Hi! I'm running Oracle 7.3.4 On HP-UX. I have problem when I try to export full my DB. I make a php program(a kind of ticket management program) and it use WEBDB's data in Oracle. Now, I export my WEBDB's data through userid="WEBDB" and the result of

  • Project Lite Users - My Apps not showing Project

    I have a handful of Project Lite licenses. When I assign users to the Project Lite license, they do not get the Project Web App icon in their portal. They only way of accessing the project is to the direct link: https://domain.sharepoint.com/sites/pw

  • Why can't I drag and drop songs from one playlist to another?

    All of a sudden I can no longer drag and drop songs from one playlist to another.  The only way I can do it now is by selecting the song[s], right click on them, and then choose "Move to playlist...."  Any thoughts?