Can we put RAC database in Archivelog mode without shutting down

All,
Can we put RAC database in Archivelog mode without shutting down.
Currently our new production database (2 node RAC) is in no archive log mode, Need to enable archive log in the database...
I believe we need to set the cluster_database=false and then put the DB in archive log mode then we need to bounce the database to take effect...
Just curious to know in 11gR2 ...Can we put the RAC database in archive log mode without any downtime ...?

Even RAC or non-RAC, database should bounced and enable/disable archive log mode from mount status.

Similar Messages

  • Changing archive log mode without shutting down database

    Hi all,
    Is there any way to set the database to archive log mode before shutting down the database and when the database shuts and starts, the database should be automatically in archive log mode?
    because we can not shutdown the database in weekdays and we have system reboot on weekend and we are not here on that day. So is there a way to set the database in archive log at the memory level so that when the database reboots, it should automatically start in archive log mode.
    my environment is windows server 2008 R2 with oracle 11.2.0.3
    Thanks in advance.
    Edited by: 931643 on Dec 5, 2012 10:37 AM

    931643 wrote:
    thank you for the reply Max Seleznev,
    First I thought of writing script in order to include in that process. But we can not run any commands in the sqlplus using the windows jobs. for eg:
    you can write a batch file as below:
    cd \
    sqlplus / as sysdba
    select name,open_mode from v$database;
    when you run this, it will open until sqlplus prompt but then will not execute the query.
    What did you expect? Well, actually, I know what you expected. But think about it for a second. You have a batch file with the mentioned three lines. How does that batch file get processed .. what is happening when it is being processed?
    It is not being processed by sqlplus, it is being processed by the windows command processor. Just like the cmd.exe. Each line is read by the command processor and executed accordingly. So ....
    cd \the command processor calls 'cd' , and passes the value '\' to do with as it sees fit. 'cd' then changes the current directory of the session to whatever is indicated by the passed parameter. in this case, that value is '\' , so the resulting current directory is the base (root, in *nix terms) of the current drive.  When 'cd' has finished, it returns control to the command processor, who then reads the next line ....
    sqlplus / as sysdbathe command processor calls sqlplus.exe and passes it the command line parms '/ as sysdba' to do with as it (sqlplus) sees fit. sqlplus does whatever it does with what it has been given In this case it tries to connect to whatever local database is indicated by the value of ORACLE_SID, then waits for more input. Whenever sqlplus exits (how does it know to exit?) it returns control to the command processor, who then reads the next line ....
    select name,open_mode from v$database;The command processor will read this line and attempt to find an executable file named 'select' and pass it the rest of the command line 'name,open_mode from v$database;'
    Hmm, what do you suppose will happen with that operation?
    that is the reason I am figuring out whether there is an alternate way.yes but you have to use the proper technique. And since you are building this into a production stop/start without testing the actual stop/start commands ... what do you suppose will be the outcome if something goes wrong?
    After hours and weekend work is one reason DBA's make more money than developers.
    >
    Thanks

  • RAC database in archivelog mode ?

    Hi all,
    may anyone provide me doc id in matalink to move a non archived RAC database in
    to archive log mode.
    THanx in advance.
    Deep

    Even RAC or non-RAC, database should bounced and enable/disable archive log mode from mount status.

  • How to put RAC database in restricted mode?is it with srvctl?

    I know for standalone database its
    SQL> startup restrict --if its down
    SQL> alter system enable restricted session; --if its up
    Any idea for RAC ? any option with srvctl ? what are the steps .....
    Thanks in advance for help
    Gagan

    Hi
    There is no option like that. It's as same as keeping normal database in restricted mode.
    alter database enable restricted session;
    and end with
    alter database disable restricted session.
    Regards,
    Phani Kumar P
    +919948677317

  • Can't open Elements 8 more than once without shutting down the computer

    After starting up my computer, I can open Elements 8 (organizer and/or editor) and work as usual.  However, if I close the program, then check email or work on something else, and then I decide to open Elements again, I get the opening screen, click Organizer, and it just disappears.  When I shut down the computer, it says there are programs waiting to close, but it shuts down quickly despite that.  Once I have restarted, all is normal again, until I decide to open Elements twice.
    I have Windows 7 professional.
    Do I need to reinstall Elements 8?
    Cam

    It sounds like the Organizer and Editor aren't closing all the way, which makes it so you can't re-open them.
    To know for sure if this is the case, after you close either program, open Task Manager (CTRL+SHIFT+ESC), go the Processes tab, click the option at the bottom to show processes from all users, and then scan the list for PhotoshopElementsEditor.exe and/or PhotoshopElementsOrganizer.exe.
    If there, then that means they aren't getting closed.
    As a temporary workaround until you find out why they won't close, you can end the process in Task Manager instead of rebooting the computer.
    As for the cause, it is possible that something else you have running in the background, perhaps security software, is causing the issue. To determine if that's the case, restart the computer without any startup items or non-essential services, and then run Elements 8. Here are some instructions:
    Windows 7/Vista: http://go.adobe.com/kb/ts_kb404913_en-us
    Windows XP: http://go.adobe.com/kb/ts_kb404984_en-us
    If you can close and re-open the Editor/Organizer properly without anything else running, then something was preventing the program from closing properly. Use a process of elimination to determine what; something similar to this method:
    Open the System Configuration utility.
    Re-enable approximately half of the items that were disabled.
    Click OK, and restart your computer for the changes to take effect.
    Check if you can close and re-open the Editor/Organizer.
    If you can't anymore, open the System Configuration utility and disable half of the most recently enabled items.
    If you can still, open the System Configuration utility and re-enable half of the remaining items.
    Go back to Step 3, and continue dividing the items into halves until  you have determined which startup item or service is causing the issue.
    Once you have isolated the problematic startup item or service,  contact its manufacturer for an update or configuration information, or  leave it disabled.
    HTH

  • Why we need oracle database reboot to put database in  archivelog mode?

    I know how to enable archivelog mode, but what is the reason that to enable archive log we need database restart. which process forces to do that.

    SantoshGanjure wrote:
    Thanks a lot EdStevens for ur prompt response...I need something that satisfies my managers query.
    If the question has originated with the PHB, then my flippant answer is even more relevant ...
    PHB's are incapable of understanding the technical details, so I prefer to give them the 'executive summary':
    "Because that's the way Oracle is written.  We can argue over the technical merits of such a requirement 'till the cows come home.  But at the end of the day, we have to shut down the database because the 'alter database archivelog' command will only succeed when the database is in mount (not open) mode.  Now, let's work out how we can achieve our objective of putting the database in archivelog mode with minimal and appropriately scheduled down time."
    As for the actual down time, it's about as minimal as you can get.  How long does it take your database to complete a shutdown once the command is given?  How long does it take you to type "startup mount"?  How long does it take you to type "alter database archivelog"?  to type "alter database open;"?  For the database to complete the 'open' process?  You could even script it so as to eliminate the keyboard typing time.

  • Database in Archivelog mode

    Hi
    All,
    I have oracle 9.2.0.6 at my workplace.right now my database running in ARCHIVELOG MODE. I want to set it to NOARCHIVELOG MODE.
    can I do on the fly? in other way, Do I need to shutdown and restart database?
    Any help will be appreciated.
    Thanks,
    Vishal

    Hi,
    Issue the following commands to put a database into NOARCHVELOG mode:
    1) Take Back up of Present SPfile by creating pfile
    create pfile from present spfile.
    2) Shutdown the database by SUTDOWN IMMEDIATE.
    3) Take Cold backup of the database.
    4) Change the parameter in the pfile.
    log_archive_start = FALSE
    #log_archive_dest_1 = 'LOCATION='Your location'
    log_archive_dest_state_1 = DISABLE
    #log_archive_format = %d_%t_%s.arc
    5) And make a spfile from the modified pfile in default location .
    6) Start the database with spfile.
    SQL> CONNECT sys AS SYSDBA
    SQL> STARTUP MOUNT ;
    SQL> ALTER DATABASE ARCHIVELOG;
    SQL> ARCHIVE LOG START;
    SQL> ALTER DATABASE OPEN;
    NOTE 1: Remember to take a baseline database backup right after disabling archivelog mode. Without it one would not be able to recover.
    Regards
    Jafar

  • Problem running oracle 9i database in archivelog mode - database freezes

    Greetings,
    I recently needed to change a (test) database to archivelog mode to make online back-ups of this database. This posed no real problem although I seem to be unable to set the database to automatic archiving eventhough I edited the init.ora file (translation of the "archive log list" output between square brackets):
    SQL> archive log list
    Databaselogmodus Archiveermodus [Databaselogmode: Archivemode]
    Automatisch archiveren Gedeactiveerd [Automatic archiving: Deactivated]
    Archiveerbestemming O:\oracle\ora92\RDBMS [Archivedestionation: O:\oracle\ora92\RDBMS]
    Oudste on-line logreeks 12306
    Volgende logreeks voor archivering 12306
    Huidige logreeks 12308
    I added this to my init.ora file:
    # Archvie Log Destinations
    log_archive_start=TRUE
    log_archive_dest_1=%ORACLE_HOME%\database\archive
    log_archive_format="%%ORACLE_SID%%t_%s.arc"
    However, this is not the real problem (maybe it has something to do with it, which is why I mention it aswell), the real problem is that my database freezes when the archive log file is "full". When the archive file reaches ~102.400Kb it just freezes up and I need to restart the database.
    The following error is written to the alert_sid.log file:
    Thu Apr 17 09:19:55 2008
    Thread 1 cannot allocate new log, sequence 12309
    All online logs needed archiving
    Current log# 2 seq# 12308 mem# 0: O:\ORACLE\ORADATA\O\REDO02.LOG
    The problem seems to be that the oracle service can't start a new logfile when the previous one is full. Does anybody know how I could fix this?
    Thanks in advance,
    Bram

    Hello Maran, thanks for your quick response.
    I added the output of archivelog list in the original post, but it's in dutch so here's the (loose) translation of the output:
    SQL> archive log list
    Databaselog mode Archive mode
    Automatic archiving Deactivated
    Archive destionation O:\oracle\ora92\RDBMS
    Oldest on-line logsequence 12307
    Next logsequence for archiving 12307
    Current logsequence 12309
    Maybe something that can help with the troubleshooting:
    The archivelog file is written to O:\oracle\ora92\RDBMS but only AFTER the reboot, I've checked SYSTEM rights to the folder and it has full control.
    Babu, thanks aswell for your quick response.
    The location exists and space is available but the database doesn't seem to load (that part of) the ora.init file because the output of archive log list still refers to %ORACLE_HOME%\rdbms instead of %ORACLE_HOME%\database\archive.
    I've now executed alter system archive log all; and am executing the import where the database usually freezes to see if it still happens. So far I already had this written to the alert_sid.log file after executing the command:
    Completed: alter database open
    Thu Apr 17 10:00:11 2008
    ARCH: Evaluating archive log 1 thread 1 sequence 12307
    ARCH: Beginning to archive log 1 thread 1 sequence 12307
    Creating archive destination LOG_ARCHIVE_DEST_1: 'O:\ORACLE\ORA92\RDBMS\ARC12307.001'
    ARCH: Completed archiving log 1 thread 1 sequence 12307
    ARCH: Evaluating archive log 2 thread 1 sequence 12308
    ARCH: Beginning to archive log 2 thread 1 sequence 12308
    Creating archive destination LOG_ARCHIVE_DEST_1: 'O:\ORACLE\ORA92\RDBMS\ARC12308.001'
    ARCH: Completed archiving log 2 thread 1 sequence 12308
    And new log files were written to the directory (O:\oracle\ora92\RDBMS) and this time I didn't have to reboot for it to happen. Both were 100mb files without the database actually doing all that much though.
    Message was edited by:
    user616266

  • Restore database in archivelog mode

    Hello everyone.
    I've been looking on google, how to restore my database on archivelog mode, but i did not succeed.
    I made my backup using this mode, and now i need to know what is the command need to use to restore this.
    Somebody can write the command here please ?
    Thanks for help.
    Regards,
    Dan
    ps: Using Oracle 10g XE on Win XP.

    user8973191 wrote:
    Oh, ok Vijayaraghavan K.
    Thx for u help.
    And about the users ?
    i need to create the "same" user in another machine ?
    For example:
    In this machine i using the "system" user, where i have my tables.
    Another machine, when i restore, my tables will go to the "system" user too? or i can choice? or i need to create one?A true backup is a copy of the data files at the file/block level. The restore is therefore a restore of the data files/blocks. Applying the redo (archive logs) is also done at the block level. None of that knows or cares (or needs to know or care) about logical objects (such as users, tablespaces, tables, rows, etc) within the database. so if you do a proper restore, you are restoring files to a consistent state and thus everything that was defined within those files will be there when restored.

  • Alter database into Archivelog mode.

    HI Team,
    I am using ORACLE 9i.
    I want to convert database into archivelog mode from noarchivelog mode.
    Using the following SQL Commands I can able to convert my database into the Archivelog.
    SQL> connect sys as sysdba
    Enter password: *****************
    Connected.
    SQL> alter database archivelog;
    alter database archivelog
    ERROR at line 1:
    ORA-01126: database must be mounted EXCLUSIVE and not open for this operation
    SQL> startup mount;
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 252779340 bytes
    Fixed Size 453452 bytes
    Variable Size 125829120 bytes
    Database Buffers 125829120 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    My problem is that I had to shutdown the database before converting it in to the archivelog mode...
    Is there any way that without shuting down the database i can switch to archivelog mode.
    Please comments...
    Shatrughan

    if we shutdown immediate one's database..do
    it's listener terminated too???The database registration with the listener yes, the listener itself no. That is, if you execute a command like "lsnrctl stat" you won't see the database anymore, but the listener is still active. Example :
    [ora102 ~ db102]$ lsnrctl stat
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 05-MAY-2007 18:57:51
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                05-MAY-2007 18:27:34
    Uptime                    0 days 0 hr. 30 min. 16 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /home/ora102/OraHome1/network/admin/listener.ora
    Listener Log File         /home/ora102/OraHome1/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "db102" has 1 instance(s).
    Instance "db102", status READY, has 2 handler(s) for this service...
    The command completed successfully
    [ora102 ~ db102]$ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat May 5 18:58:03 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SYS@db102 SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SYS@db102 SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [ora102 ~ db102]$ lsnrctl stat
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 05-MAY-2007 18:58:33
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                05-MAY-2007 18:27:34
    Uptime                    0 days 0 hr. 30 min. 58 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /home/ora102/OraHome1/network/admin/listener.ora
    Listener Log File         /home/ora102/OraHome1/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [ora102 ~ db102]$                                                                                 

  • Switched Database to ARCHIVELOG Mode, Then it Hung

    Hi everyone,
    This db is 9.2 on Windows.
    **After switching my database to Archivelog mode and reopening, it hung forever.**
    (I had to use Shutdown abort to bring it down - these steps worked to get it back online:
    shutdown abort; --startup mount;
    alter system archive log all;
    alter database noarchivelog;
    alter database open;)
    The Alert.log shows "Cannot allocate new log" immediately after I switched to Archivelog mode. So it hung at that point. Had I known why it hung, maybe running 'Alter system archive log all' would have fixed everything. But I've never had to run that when I've switched other databases to Archivelog mode.
    Does this indicate another problem with this database? I'm leery of it now and feel lucky that I was able to get it up again.
    Thanks, John
    entries from Alert.log when I switched to Archivelog mode:
    ALTER DATABASE MOUNT
    Wed Aug 06 11:44:19 2008
    Successful mount of redo thread 1, with mount id 1689013583
    Wed Aug 06 11:44:19 2008
    Database mounted in Exclusive Mode.
    Completed: ALTER DATABASE MOUNT
    Wed Aug 06 11:44:45 2008
    alter database archivelog
    Wed Aug 06 11:44:45 2008
    Starting control autobackup
    Control autobackup written to DISK device
         handle 'F:\ORACLE\ORA92\DATABASE\C-1602026732-20080806-00'
    Completed: alter database archivelog
    Wed Aug 06 11:45:17 2008
    alter database open
    Wed Aug 06 11:45:17 2008
    Thread 1 opened at log sequence 9014
    Current log# 1 seq# 9014 mem# 0: F:\ORACLE\ORADATA\PBSMEM\REDO01.LOG
    Successful open of redo thread 1
    Wed Aug 06 11:45:17 2008
    SMON: enabling cache recovery
    Wed Aug 06 11:45:17 2008
    Undo Segment 1 Onlined
    Undo Segment 2 Onlined
    Undo Segment 3 Onlined
    Undo Segment 4 Onlined
    Undo Segment 5 Onlined
    Undo Segment 6 Onlined
    Undo Segment 7 Onlined
    Undo Segment 8 Onlined
    Undo Segment 9 Onlined
    Undo Segment 10 Onlined
    Successfully onlined Undo Tablespace 1.
    Wed Aug 06 11:45:17 2008
    SMON: enabling tx recovery
    Wed Aug 06 11:45:17 2008
    Database Characterset is WE8MSWIN1252
    replication_dependency_tracking turned off (no async multimaster replication found)
    Completed: alter database open
    Wed Aug 06 11:59:58 2008
    Thread 1 advanced to log sequence 9015
    Current log# 2 seq# 9015 mem# 0: F:\ORACLE\ORADATA\PBSMEM\REDO02.LOG
    Wed Aug 06 12:01:03 2008
    Thread 1 advanced to log sequence 9016
    Current log# 3 seq# 9016 mem# 0: F:\ORACLE\ORADATA\PBSMEM\REDO03.LOG
    Wed Aug 06 12:09:16 2008
    Thread 1 cannot allocate new log, sequence 9017
    All online logs needed archiving
    Current log# 3 seq# 9016 mem# 0: F:\ORACLE\ORADATA\PBSMEM\REDO03.LOG
    **** PrefBid App locked up at this point – hung – users cannot do anything -- Note the gap in log entry time – no further entries until my Shutdown request

    Hi,
    We can enable automatic archiving after instance startup.
    In order to enable automatic archiving without shutting down the current instance, use the SQL command ALTER SYSTEM with the ARCHIVE LOG START parameter.
    ALTER SYSTEM ARCHIVE LOG START;
    When using this option, the instance does not have to be shut down to enable automatic archiving.
    However, if an instance is shutdown and restarted after automatic archiving is enabled using this option, the instance is reinitialized using the settings of the parameter file ("LOG_ARCHIVE_START"), which may or may not enable automatic archiving.
    NOTE: On 9i, you can use an SPFILE instead of the standard pfile. The LOG_ARCHIVE_START parmaeter is deprecated with 10g.
    alter system set log_archive_start=true scope=spfile;
    Did you read the Metalink Note I gave you? These information was there...
    Thanks,
    Marcello M.

  • I have a 2008 macbook and i lost the start up disk and forgot the password. how can i put it back to factory mode and change the password

    i have a 2008 macbook and i lost the start up disk and forgot the password. how can i put it back to factory mode and change the password

    Check out this article http://gigaom.com/apple/reset-os-x-password-without-an-os-x-cd/

  • Can we put multiple Database Polling within the asynchronous process

    Hi,
    Can we put multiple Database polling within the the same asynchronous BPEL process.
    There will be multiple Receive activities to receive the data from the poller.
    Saptarishi

    Hi Peter,
    I am using 10.1.3.4 and cannot use ESB/mediator.
    For the 2nd option,
    I have tried to put multiple receive's to poll data from a table but it does not work(it waits at the 2nd Receive). Let me try to elaborate the issue a bit.
    I have created a table for polling.
    The table has 3 columns :- transaction_id, status, is_read
    is_read is kept to implement the logical delete strategy of DB polling.
    What I need to do is to maintain a single instance of BPEL to maintain a transaction(which is uniquely identified by transaction_id).
    The BPEL should track the different stages of the transaction, i.e whenever a new row is inserted in the table with the updated status for a transaction, it must find the correct instance(by co-relating the transaction_id) and go to the next step (wait for the next receive activity) until all the steps of the transaction is completed.
    In the code, I created a correlation set consisting of transaction_id(only). The property transaction_id has an alias to the inbound variable's payload.
    In the first Receive, I checked the "create instance" checkbox. Also the correlation set is initialized.
    From next Receive onwards the correlation set is checked.
    The polling frequency is 5 secs.
    The first Receive works fine and the process is instantiated. But it waits at the 2nd Receive indefinitely.
    It will be very helpful if you can try this once. If you feel this is not the right approach, please guide me.
    Thanks and Regards,
    Saptarishi

  • Can we put iphone 3gs into  DFU mode with out power button

    My Iphone 3gs power button not working, so is there any way I can put my iphone into DFU mode..

    No - you can't put the phone in recovery mode or DFU mode without a functioning sleep/wake (power) button.
    Note that DFU mode is only useful when hacking the phone.  Recovery mode is what you want for troubleshooting.
    http://www.ihackintosh.com/2009/06/recovery-mode-and-dfu-mode/

  • How can I put a single song in ipod without having to reset it ?

    How can I put a single song in ipod without having to reset it ?

    Managing content manually on iPod
    http://docs.info.apple.com/article.html?artnum=61148
    Patrick

Maybe you are looking for

  • Songs will not sync to my iPhone

    So earlier this week I got a few songs from my sister over email, and was able to put them into my itunes. This worked perfectly...They played on my laptop and everything... until i tried to then get the songs from my itunes on my macbook to my iphon

  • How to run .exe file by labview?

    Dear All, I want to use Labview to run a .exe file, but I don't know how to do? who can tell you? Thanks! Best regards, Jimmy

  • Using Lightroom on more than one computer

    I recently bought Lightroom on the Apple App store for my mac mini. Is there a way to install it onto my PC desktop as well? Also, can I use it on more than one mac? [email protected] http://photomurphey.blogspot.com Find mem on Facebook (search Jake

  • Startup repair for hp pavillion o1710n vista..

    How to locate startup repair for hp pavillion o1710n vista. I have no startup disk as  the windows restore is on the D partion.  getting crash dump when doing scan disk.

  • Will Exception be thrown when Socket is disconnected?

    Hi I would like to know will Exception be guaranteedly thrown if the other side(client or server) disconnect. If not, how do I test the other side socket has been gone? Thanks a lot Matt