Recent Notes
Displaying keyword search results 1 - 10
Created by voodoo on August 27, 2011 19:17:10
Last update: August 27, 2011 19:17:10
The CPAN module Net::Socket::NonBlock has a port forwarding utility which works for both Unix and Windows:
$ perl tcpudppf.pl
Usage: tcpudppf.pl <LocalAdd...
Created by woolf on May 15, 2011 15:11:42
Last update: May 15, 2011 15:11:57
On windows, display IPv4 routing table:
route -4 print
On Linux:
$ route
Kernel IP routing table
Destination ...
This works for both Linux and Windows (" -r ": display routing table, " -n ": display address and port numbers in numerical form):
netstat -rn
Created by nogeek on August 08, 2010 23:38:04
Last update: August 08, 2010 23:38:04
Especially, the ethernet0.virtualDev = "e1000" line should be absent in order for networking to work.
#!/usr/bin/vmplayer
# Filename: Win2000.vmx...
Created by voodoo on February 08, 2010 04:57:49
Last update: February 08, 2010 04:57:49
If you don't want to open an extra port for VNC or want extra security with SSH, you can setup an SSH tunnel for VNC. On Windows, you can do this with Putty or openssh .
Open a command window, and enter (using Putty as example):
C:\local\bin\plink.exe -ssh -2 -L localhost:5901:r...
When connecting with vncviewer , use localhost:5901 as server instead of remote_host:5901 .
If you use the setup frequently, it is more convenient to setup the tunnel as a Windows service . Assuming the name of the service is vnc_tunnel , the registry entry would look like:
Windows Registry Editor Version 5.00
[HKEY_...
Created by voodoo on February 07, 2010 23:33:23
Last update: February 08, 2010 03:04:47
I installed vncserver on my Fedora box and tried to connect to it with vncviewer from Windows XP. I got this error: What could be the problem? These were the steps I took to diagnose it. I just list them here as a reminder. Is Windows firewall blocking the connection? No. It turned out that, unlike ZoneAlarm , the Windows firewall does not block outgoing traffic. It only blocks incoming requests. Is vncserver listening on the right IP address? Yes. netstat showed it's listening on all NICs.
netstat -a | grep 5901 tcp 0 0 *:59... Is VNC port open on the local Fedora box on that IP address? Yes, telnet successfully connected: [jim@fedora ~] telnet 172.30.33.9 5901 Trying 1... What does telnet say from...
Created by Dr. Xi on February 03, 2010 19:32:30
Last update: February 04, 2010 16:30:49
This happens when you don't have connectivity to the Oracle server. This could be that the server is not up or you are blocked because of some firewall rules. A typical session looked like this:
C:\>sqlplus scott/tiger@xe
SQL*Plus: Releas...
Use tnsping to confirm the cause:
C:\>tnsping xe
TNS Ping Utility for 32-bit ...
Created by Dr. Xi on October 08, 2008 19:33:21
Last update: October 08, 2008 20:17:42
In sqlnet.ora , there's a parameter named NAMES.DEFAULT_DOMAIN that usually contains the value world . If you remove this parameter then you don't need to append .world . My sqlnet.ora contains three lines:
# sqlnet.ora Network Configuration File: C:\wo...
To force a lookup without NAMES.DEFAULT_DOMAIN appended, append a dot to the tnsname:
tnsping unqualified_tnsname_name.
Created by Dr. Xi on August 15, 2007 18:59:07
Last update: October 08, 2008 18:56:03
Use tnsping to test connectivity to Oracle DB (actually, the "listener process"):
tnsping <net service name> [<count>]
where the "net service name" must exist in the tnsnames.ora file, count is optional. Here's a sample output:
C:\work\globaltnsnames>tnsping xe
TNS Ping ...
Created by Dr. Xi on April 04, 2008 23:22:18
Last update: April 04, 2008 23:24:12
Today I tried to start up Apache on my Windows XP box and was surprised to find that port 80 was already used by some other process! I used netstat to find the culprit:
@rem the -a switch displays all connections an...
The -b switch causes the command to run quite a bit longer. You can use -ano instead and then use the Task Manager or PsTools from sysinternals to find out the executable name.
It turned out that Skype was using both port 80 and 443. I turned that off in Skype preferences.
Created by Dr. Xi on August 15, 2007 18:39:02
Last update: August 15, 2007 18:39:02
The tnsnames.ora file maps net service names to connect descriptors. Here's a sample:
ORA10 =
(DESCRIPTION = (ADDRESS_LIST =
...
When a client connects with a net service name, tnsnames.ora is searched in the following order:
$HOME/.tnsnames.ora (or current working directory on Windows)
$TNS_ADMIN/tnsnames.ora
/etc/tnsnames.ora
$ORACLE_HOME/network/admin/tnsnames.ora