Archive for January 2008

jConsole : 810 is not a managed VM

jConsole memory utilisation window

Hey guys,

Here is another bug, on the last day of the first month of 2008! jConsole, an interesting performance monitoring tool from java. I was looking at it, got interested, decided to test my own typical Addition! we have to pass the PID of the process to jConsole. the syntax is like this

jConsole.exe <pid>

When I issued the command jConsole 810, he said ‘810 is not a managed VM‘. Later I understood that jConsole uses -Dcom.sun.management.jmxremote flag being set while running java.

So when I run the addition program i have added that flag

java -Dcom.sun.management.jmxremote Addition

jConsole beautifully started and rocking like a cheetah!. I need to write a brief on jConsole. let me see whether I can do it by this weekend.

java.lang.UnsatisfiedLinkError: no ojdbc14 in java.library.path

This month I am logging only the errors :( I am setting up a backup of a working application, where I came across the previous errors. Here is another one.

java.lang.UnsatisfiedLinkError: no ojdbc14 in java.library.path

Let me tell you the environment,

I have the application, whose lib folder contains class12.jar and ojdbc14.jar. Both the jars are in classpath, then I replaced this ojdbc14.jar of the application with the ojdbc14.jar from the local oracle installation folder. That doesnt solve the issue, later i need to replace classes12.jar also. That application lib folder files are working fine for Oracle 9i. but not for 10g. So, this is basically a version incompatibility.

AVI Funny UST Scandal.exe – An irritating virus

One of my computer has been affected by this virus. it starts couple of services, and keep on vanishing the important windows like command prompt, service properties, regedit etc. however you go to disable those scripts, he will make that window to disappear. very bad. almost he had taken almost 6 hours today to solve it. Thanks to yahoo answers!

Here is the post

http://ph.answers.yahoo.com/question/index?qid=20071119014159AAZ4GLA

and here is the solution

Remover for AVI Funny UST Scandal.exe

SQL Loader in Oracle


Previously When I used blogger, I have written something on loading raw files into MySQL Database. This is a similar post, but with Oracle. I am trying to upload a CSV to Oracle Database. Here are the various steps involved in it.1. prepare a .CTL (control) file
Control file is one which tells the SQL Loader how to upload the file. A sample CTL file contains the following lines

load data
infile 'c:\StatCounter-Log-3329852-modified.csv'
into table statcounter
fields terminated by "," optionally enclosed by '"'
(Date_and_Time,IP_Address,IP_Address_Label,Browser,Version,OS,Resolution,Returning_Count,Page_URL,Page_Title,Came_From,SE_Host,SE_Name,SE_Term)

It tells from which file, to which table, to which fields i am uploading the data.

2. execute sqlloader with the specified CTL file

sqlldr system/manager control=statcounter.ctl

C:\>sqlldr system/manager control=statcounter.ctl
SQL*Loader: Release 9.0.1.1.1 - Production on Sun Jan 20 03:19:55 2008
(c) Copyright 2001 Oracle Corporation. All rights reserved.
Commit point reached - logical record count 63

Thats all!

But I have a problem with this, Though it says 63 records have been uploaded. I am seeing only 10+ records. I dint get any errors also. I am thinking why :(

Indian Airtel’s blunder lands Bangalore techie in jail

I am ashamed of the poor Indian Cyber Crimes law, Police’s ignorance and last but not least, AIRTEL my service provider. Here is the news.

Indian Airtel’s blunder lands Bangalore techie in jail

Saturday, 03 November , 2007, 17:56

Pune: Police here have washed their hands off the wrongful detention of a 26-year-old techie from Bangalore, blaming telecom major and Internet service provider Airtel for giving them incorrect information. The company has promised action.

Lakshmana Kailash K was picked up from Bangalore on August 31 on the suspicion of having posted insulting images of Chhatrapati Shivaji on Internet networking site Orkut. He was brought to Pune and put behind bars. It was later found that he was innocent.

The police will take up the matter with Airtel for providing misleading information that led to the wrongful arrest of Lakshmna, Assistant Commissioner of Police Netaji Shinde told IANS.

“We did our investigations on the IP address provided to us by Airtel. It is not our fault and Lakshmana should take Airtel to court and not us,” he said.

An Airtel spokesperson said: “We are aware of this incident and deeply distressed by the severe inconvenience caused to the customer. We are fully cooperating with the authorities to provide all information in this regard and we are in touch with the customer.

“We have robust internal processes, which we review frequently to make them more stringent. We have conducted a thorough investigation of the matter and will take appropriate action.”

While media reports said Lakshmana was released only three weeks after the other suspects were arrested, police maintained that the techie was not held longer than necessary.

Source: Sify, http://sify.com/news/fullstory.php?id=14555229