Re: Simulating network hang
Date: Tue, 18 Nov 2008 14:17:57 -0800
So it appears there is a buffet of methods for doing this. :)
Certifiable Oracle DBA and Part Time Perl Evangelist
On Tue, Nov 18, 2008 at 1:43 PM, Elliott, Patrick < patrick.elliott_at_medtronic.com> wrote:
> You could configure the /etc/inetd.conf and /etc/services file to run a
> script that sleeps for an hour also on the port that you want to time out.
> *From:* oracle-l-bounce_at_freelists.org [mailto:
> oracle-l-bounce_at_freelists.org] *On Behalf Of *Jared Still
> *Sent:* Tuesday, November 18, 2008 2:32 PM
> *To:* cshapi_at_gmail.com
> *Cc:* oracle-l_at_freelists.org
> *Subject:* Re: Simulating network hang
> On Tue, Nov 18, 2008 at 10:52 AM, Chen Shapira <cshapi_at_gmail.com> wrote:
>> Hi Oracle-L,
>> I'm trying to simulate a situation (for testing) where any attempt to
>> make tcp connection to a machine hangs.
>> For example, connections using ssh or sqlplus hangs. No error message
>> (as seen when ssh server or listenere are down), just no reply.
>> Any advice on how to create this state on purpose?
>> The OS is Linux RH3 and RH4.
> Temporarily add an entry to the hosts file on your test client,
> to a non-existent IP address.
> This may or may not work, depending on where your client first looks
> to resolve IP addresses. Generally the hosts file comes first.
> [CONFIDENTIALITY AND PRIVACY NOTICE] Information transmitted by this email
> is proprietary to Medtronic and is intended for use only by the individual
> or entity to which it is addressed, and may contain information that is
> private, privileged, confidential or exempt from disclosure under applicable
> law. If you are not the intended recipient or it appears that this mail has
> been forwarded to you without proper authority, you are notified that any
> use or dissemination of this information in any manner is strictly
> prohibited. In such cases, please delete this mail from your records. To
> view this notice in other languages you can either select the following link
> or manually copy and paste the link into the address bar of a web browser: