Archive for the ‘Windows XP’ Category

KeepResident plugin for Eclipse/Jdeveloper

August 30, 2006

Jdeveloper being slow when shifting the application in windows. Reason being the windows swapping the jdeveloper memory even when large amount of physical memory is available.Application has a working set size. The default value is much too small for big Java applications like Eclipse. Hence, windows does a swapping. To prevent this, one thing that can be done is to increase the minimum water mark of this working set size. Then, there is another problem that when the user memory is less than the minimum working set size, windows will think that the application is not used and will do swapping again. Using VirtualLock() will prevent this and force Windows to keep Eclipse in memory.

Got this information from the blog : http://www.orablogs.com/gdavison/archives/001659.html

FAQ on this plugin also provides a clear information : http://suif.stanford.edu/pub/keepresident/faq.html

Uninstalling Oracle 10g Manually from Windows XP

June 13, 2006

List of additional steps to do for cleaning the system completely after uninstall using universal installer.
# Stop any Oracle services that have been left running.
Start->Settings->Control Panel->Services
Look for any services with names starting with ‘Oracle’ and stop them.
# Run regedit and delete the following keys (some may have slightly different names in your registry):
HKEY_CURRENT_USER\SOFTWARE\ORACLE
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet Services\EventLog\Application\Oracle.oracle
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet Services\OracleDBConsole
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet Services\Oracle10g_home
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet Services\OraclService
Note that the services control panel will still show the old services until you reboot.
# Delete the Oracle home directory
C:\Oracle
# Delete the Oracle Program Files directory:
C:\Program Files\Oracle
# Delete the Oracle Start Menu shortcuts directory:
C:\Documents and Settings\All Users\Start Menu\Programs\Oracle*
Where * indicates the name of your install. Look for and remove all Oracle directories from that location.
# Remove Oracle refereces from the path. To edit your path go to:
Start->Settings->Control Panel->System->Advanced->Environment Variables
Edit both of the environment variables user PATH and system PATH. Remove any Oracle references in them.
# Remove Oracle.DataAccess and any Polic.Oracle files from the GAC which is at:
C:\Windows\assembly\

About Integrated Windows Authentication in IIS

May 31, 2006

Did a telnet to localhost to get /localstart.asp which is protected by Integrated windows authentication. Response HTTP header is :
HTTP/1.1 401 Access Denied
Server: Microsoft-IIS/5.1
Date: Wed, 31 May 2006 04:09:56 GMT
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
Content-Length: 4431
Content-Type: text/html

Now, the browser is required to authenticate using NTLM. This mode is supported only in IE. So, the same page(localstart.asp) when opened using firebox will retry sending username/password from the popup and will fail. Whereas In IE, it will render the page properly. So, to view the localstart.asp page in browsers other than IE, we can’t use Integrated windows authentication. Rather we may use Basic authentication. HTTP Response headers in case of basic authentication:
HTTP/1.1 401 Access Denied
Server: Microsoft-IIS/5.1
Date: Wed, 31 May 2006 04:14:47 GMT
WWW-Authenticate: Basic realm=”APPLICATIONS”
Content-Length: 4431
Content-Type: text/html

Windows XP : To find services associated to OS process

April 24, 2006

Was finding a lot of svchost.exe process getting lauched. To find out the services for each of the scvhost process, following command was helpful.
D:\>tasklist /svc

Image Name PID Services
========================= ====== =============================================
System Idle Process 0 N/A
System 4 N/A
smss.exe 820 N/A
csrss.exe 892 N/A
winlogon.exe 920 N/A
services.exe 976 Eventlog, PlugPlay
lsass.exe 988 Netlogon, PolicyAgent, ProtectedStorage,
SamSs
svchost.exe 1152 DcomLaunch, TermService
svchost.exe 1240 RpcSs
svchost.exe 1376 AudioSrv, CryptSvc, Dhcp, dmserver, ERSvc,
EventSystem, helpsvc, HidServ, lanmanserver,
lanmanworkstation, Messenger, Netman, Nla,
Schedule, seclogon, SENS, SharedAccess,
ShellHWDetection, Themes, TrkWks, W32Time,
winmgmt, wuauserv, WZCSVC
svchost.exe 1428 Dnscache
svchost.exe 1616 LmHosts, RemoteRegistry, SSDPSRV, WebClient
spoolsv.exe 1784 Spooler

Multi-Boot Linux with Windows XP

November 19, 2005

Installed Fedora and Ubuntu with windows XP. Steps to be taken:
1. Boot from linux CD in CD-Rom
2. During partition, select ‘Advanced’ checkbox in case of Fedora. In case of Ubuntu use the Guided partitioning option.
3. These install GRUB loaded by default in MBR. But, better option I feel(and did) is to install the GRUB loader in the boot partition of the linux itself and take a copy of the boot part using tool like bootpart and add it to the boot.ini of the windows.

Issues in installing Ubuntu:
- Installation of ubuntu is in two parts. First base image is installed and then additional packages are installed. After the base images were installed, it made the linux partition as “Active” partition. Thus, it is always going to be the GRUB loader which will load the OS. In order to change it back to the windows loader, need to make the windows partition as “Active”. One issue I encountered was that after making the windows partition as active and rebooting the system, the other windows partition became hidden. Setting this partition to “UnHide” using partition manager also didn’t solve the problem of unhiding this partition. To solve this problem, the GNU “parted” tool of linux came to my help. Using this, I set the windows partition to unhide. Then did a reboot. Now my windows partition became unhidden. GNU parted helped me to solve this issue which even partition magic cannot fix.