Skip to content

www.rolfje.com

Killing oracle sessions, the easy (JDBC) way.

Posted on 2006-02-23 By rolfje 2 Comments on Killing oracle sessions, the easy (JDBC) way.
Does Oracle complain about not being able to drop a table for a currently connected user, but you are sure you disconnected? Do the sessions “hang” in “inactive” state? Just log on as system, and execute the following query: 

SELECT
'ALTER SYSTEM KILL SESSION ''' || sid || ',' || serial# || '''; --',
       s.sid,
       s.serial#,
       s.osuser,
       s.username,
       s.program,
	status
FROM   v$session s
WHERE status = 'INACTIVE';

You will get a list of statements you need to execute (just copy-pase) to kill the inactive sessions. Don’t listen to the guys telling you to do intricate System Administrator stuff on a command prompt, just use any JDBC tool.

EDIT: Single query which also lists the kill command if the “alter system kill session” trick did not work:

SELECT
'ALTER SYSTEM KILL SESSION ''' || s.sid || ',' || s.serial# ||
       '''; -- kill -9 ' || p.spid,
       s.sid,
       s.serial#,
       p.spid,
       s.username,
       s.program,
       s.status
FROM   v$session s, v$process p
WHERE s.paddr = p.addr
  and (s.state='INACTIVE' or s.state='KILLED');

Thanks Bas en Jeroen!

Software

Rotten Rotor

Posted on 2006-02-14 By rolfje No Comments on Rotten Rotor

Kawasaki KL 650 Tengai crankshaft drawingLast week I tried to pull the rotor by using a rotor puller, and a socket (from a socket wrench set) to block it. The socket burried it’s way into the first thread of the crankshaft. After realising this, I tried to fit the rotor bolt, and it wouldn’t go in. Since only the first thread was damaged, I carefully drilled it out (only needed to go 2 mm deep), and now the rotor bolt fits nicely again.

Read More “Rotten Rotor” »

Hardware, Workshop

Google Talk with your browser!

Posted on 2006-02-08 By rolfje No Comments on Google Talk with your browser!

Google talk in the browserFor some reason I’ve been selected my the google company to have the new interface of gmail, where you can use google talk without even installing it! Yes you’ve read that right. When I log in to Google, I immediately see a quick contacts list of people who are online (on googletalk), and I can chat with them as if I was using the actual application! Only voice is missing, but I don’t use that anyway (Skype fan), so I am really happy.Now I can google-talk with my friends on *any* computer without having to install plugins, upgrading MSN otherwise contaminating the host’s computer. I am really impressed and amazed (for the past 3 hours or so). Go Google! I feel like buying a t-shirt now 🙂

Oh yeah, and it works in both FireFox and Microsoft Internet Explorer. And I am not kidding.

Auch, and I just missed the scoop on Slashdot… I could have been a succesful submitter. so close, so close.

Fun, Software

Tapestry/OGNL: Could not find an adaptor for class XYZ

Posted on 2006-02-07 By rolfje No Comments on Tapestry/OGNL: Could not find an adaptor for class XYZ
Getting the “Could not find an adaptor for class Foo” Mesage in Tapestry? You probably forgot to make your class Serializable. A simple description of a possible problematic situation follows: 

Read More “Tapestry/OGNL: Could not find an adaptor for class XYZ” »

Software

195Nm Victory!

Posted on 2006-02-07 By rolfje No Comments on 195Nm Victory!

Kawasaki Rotor Holder (from workshop manual)For some strange reason, my brother’s Kawasaki KLR Tengai dead-stopped. After starting it again, it made some strange noises. It also had lost a lot of oil somewhere along the way, so we decided to not run it again before we found the cause of the trouble. A few weeks ago we encountered a funny problem, we couldn’t loosen the rotor-bolt. In the Kawasaki KLR workshop manual is a picture of a strange wrench to hold the rotor. Ofcourse we’re cheap, so we wouldn’t spring for a nifty and probably expensive Kawasaki specialty tool for a very old bike which not worth more than the petrol that’s in the tank (okay, okay, but you get the point).

32mm wrench, colored from heatingThe rotor bolt is tightened to 195Nm. That’s a lot of force there, so it’s not surprising we couldn’t loosen it by holding the flywheeel with our hands. So we set out to create a tool of our own. We even ended up trying to bend an old 32mm Chrome-Vanadium wrench, which resulted in an empty gas can, a very hot workbench and nice colors on the wrench, without it bending even the slightest. We we barely able to heat it to the point it got red-hot, because the metal just conducts the heat away from the point you want to heat.

Holding the piston to loosen the rotor-bolt (overview)So I started mailing with Vincent, a good friend of mine which happens to be “quite handy” with motorbikes . He pointed out that you could also stop the rotor from turning by holding the piston. Because we wanted to measure the play in the bigend bearing we needed to remove the sleeve anyway, so I immediately went back to the workshop to do this. After removing the sleeve, I could easily make some wood pegs to block the piston. The wood would have to have a big surface and be strong enough to hould the piston, without damaging the piston or the engine casing.

Holding the piston to loosen the rotor-bolt (detail)It turned out to work great! I needed to attach a long bar to the socket wrench to be able to apply enough force to the bolt, but in the end I got it! In the picture on the left you can see a detail of how the wood blocks are resting on the engine casing. After loosening the bolt, there was absolutely no visible damage to the piston or the engine. Even greater news is that there is also virtually no play on the bigend bearing, so we don’t have to disasemble the crank.

Wearmarks from applying 195Nm to the boltWhen looking at the bolt, the results of applying so much force to the faces of the socket wrench become visible. We know for a fact that this bolt has been removed once before, so these wearmarks are from tightening and loosening the bolt just two times. I think we can tighten it one more time, but after that it needs to be replaced.

Hardware, Workshop

Foxit PDF Reader

Posted on 2006-02-05 By rolfje No Comments on Foxit PDF Reader
In the early days, Adobe Acrbat Reader was a great tool for reading PDF files. But in the past months, it has transformed into a slow-starting, update hungry irritating tool which pops up questions about upgrading parts of the program you didn’t even request to be installed. If you have the older version of Acrobat Reader without the update manager, hang on to it.

If you are looking for a nice alternative for Acrobat Reader, I can recommend Foxit PDF Reader. It is a very small program, free, and starts up in about 1/10th of the time Acrobat Reader takes to display just the splash screen (and subsequently, the annoying update manager). It can do anything I usually need when reading and printing PDF files, and the fullscreen mode is even richer than Adobe’s.

Adobe seems to have gone overboard with their userinterface. People just want to read the PDF, and not be bothered with complicated questions which very often result in downloading and installing megabytes of unwanted software on their machines. I will recommend alternatives to Acrobat Reader from now on, and I think the world will become a slightly better place 😉

Software

My movie rating

Posted on 2006-01-24 By rolfje 1 Comment on My movie rating

Found out about this link by accidentally browsing accros Ian Lewis’s blog. You can find out what your movie rating is. It seems I’m not for “all ages”. 🙂

Rating 12Suitable for 12 years or older. Starting to get interesting now, with more adult-themed storylines, but we’re still talking in mild doses. You may find more colourful language, some human flesh, and maybe even some violence. Nothing creepy though.

Examples: Batman, Naked Gun 33 1/3

See what your rating is.

Fun

Pomphouders dupe van ‘spookliters’

Posted on 2006-01-24 By rolfje 1 Comment on Pomphouders dupe van ‘spookliters’

For those that can read Dutch. This is a nice example of Dutch gasstation owners wanting to be compensated for the fact that gasoline (or any other fluid you can sell) schrinks when cooled.

Read More “Pomphouders dupe van ‘spookliters’” »

Fun

Fun at “automatiseringsgids”

Posted on 2006-01-12 By rolfje No Comments on Fun at “automatiseringsgids”

Even companies pretending to know about ICT, writing about companies doing it right or wrong, get it (very) wrong sometimes. People who have an account at De Automatiseringsgids know the login screen. But have they also noticed how their username and password are sent to the server in plain text?

Another funny thing a colleque of mine discovered is the really wierd way of displaying error messages. The server returns the error message as part of a redirect. Yes, you’ve read that correctly. No serverside things here guys, must keep memory usage down. No sessions here, move along… A really funny thing you can do is display your own error messages, like so: De automatiseringsgids with weird error

Wie dit leest is gekI think somebody will start playing with this, because you can do a lot more (very bad) things. Should they have it fixed allready when you are reading this, I saved a screenshot for you. You would have got something in the lines of this:

After discussing this wierd construction, we concluded that the programmers wanted to do a “post-by-redirect” construction, where you make the server return a redirect to the browser jsut after a post. This solves the “reload problem” where the browser asks if it can re-post the data for you. Since a redirect is a GET, the browser will just reload the page. Normally you solve this by storing thing in the session on the server and send a session reference to the browser. Combined with HTTPS, this would give you a relatively strong, and still not to expensive protection against scripting and spoofing attacks.

A fine example of what happens if you trust an external company to build your web application, but you “forget” to check that they’ve delivered something that’s up to your standards (or at least the standards you paid for). Have fun playing around with this, and let me know what interesting things you found. (hint: Iframes and javascript can do a lot on this page 😉

Fun, Software

GSM Abonnement: Wisselen of blijven?

Posted on 2006-01-06 By rolfje 2 Comments on GSM Abonnement: Wisselen of blijven?

This article is about selecting a new phone contract. Since this article describes a specific Dutch situation, it will be in Dutch. Sorry.

Dit jaar lijkt een constant “blijven of wisselen” jaar te zijn. Wil je de nieuwe zorgverlof regeling of blijf je spaarloon houden? Wil je een nieuwe Zorgverzekeraar of wil je bij je oude blijven? En vandaag is was mijn beltegoed voor mijn gevoel te snel op, en rees de vraag “Wil je prepaid blijven bellen, of wil je een abonnement?”. Gelukkig was de vraag bij welke provider ik wil blijven snel beantwoord, ik heb altijd goede ervaringen met Vodafone (als bedrijf) gehad dus het moet Vodafone blijven. Ik ben al lid sinds het nog Libertel heette, en heb ook nog steeds hetzelfde nummer.

Read More “GSM Abonnement: Wisselen of blijven?” »

Uncategorized

Posts navigation

Previous 1 … 33 34 35 36 Next
         

Recent Comments

  • rolfje on Exit WordPress
  • Guus on Exit WordPress
  • rolfje on Exit WordPress
  • rolfje on Methode Buijs uitgelegd
  • LinkedIn is at Peak Enshittifaction – Will Chatham's Blog on Linked-In not really Opt-in?

Tags

Apple backup design DIY DRM eclipse environment fix Fun gmail google hacking hamradio Hardware helicopter iphone ipod iTunes Java Keynote linux modelling motorcycle music news opinion oracle osx photo photography programming repair review security Software technology Time Machine Twitter Ubuntu usability Utilities vacation vista windows Workshop

Categories

  • Apple (105)
  • Divorce (1)
  • Electronics (3)
  • Fun (57)
  • Games (7)
  • Hardware (72)
  • Microsoft (18)
  • Racing (15)
  • Software (138)
  • Uncategorized (68)
  • Workshop (20)

Archives

Brought to you without adds, banners, cookies or tracking. This one is on me. Yes, life can be this good. Pay it forward.

Copyright © 2026 www.rolfje.com.

Powered by PressBook WordPress theme