Skip to content

www.rolfje.com

Category: Software

Reboot…

Posted on 2007-01-29 By rolfje No Comments on Reboot…

Today the Mac OS Software update popped up, and warned that these updates would require a reboot (about 80% of the updates do not require a reboot). I have gotten so used to not having reboot and hangup troubles that I almost was surprised to see that I needed to reboot. I use my Mac mini for editting foto’s, video, recording TV programs, streaming music, programming, mail, and the usual webbrowsing. It is so quiet and uses so little power that I only power off the screen, and leave the Mac on. I noticed that I have not turned it off for the past 20 days:

rolf$ uptime
20:17  up 20 days, 23:37, 3 users, load averages: 0.20 0.26 0.20

Not bad for a workstation eh? Glad I bought a Mac, it was worth every penny. The other Mac mini I bought to replace my fileserver is also still worth every penny.Just thought I’d share some of my newly acquired Zen with you…

Apple, Software

Lost Oracle SYS and SYSTEM password?

Posted on 2007-01-16 By rolfje 56 Comments on Lost Oracle SYS and SYSTEM password?

If your administration is as good as anybodies, you are bound to loose the not-so-frequently used password for the SYS and SYSTEM users of oracle. Here are a few ways I found to re-set those passwords:

Method 1: SQLPLUS (Tested on AIX Oracle 9.2.0.1.0)

Log into the database server as a user belonging to ‘dba’ [unix ] or ‘ora_dba’ [windows ] group , typically ‘oracle’, or an administrator on your windos machine. You are able to log into Oracle as SYS user, and change the SYSTEM password by doing the following:

$ sqlplus "/ as sysdba"
SQL*Plus: Release 9.2.0.1.0 - Production on Mon Apr 5 15:32:09 2004

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> show user

USER is "SYS"

SQL> passw system
Changing password for system
New password:
Retype new password:
Password changed
SQL> quit

Next, we need to change the password of SYS:

$ sqlplus "/ as system"
SQL*Plus: Release 9.2.0.1.0 - Production on Mon Apr 5 15:36:45 2004

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
where <logon>  ::= <username>[/<password>][@<connect_string>] | /
Enter user-name: system
Enter password:

Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> passw sys
Changing password for sys
New password:
Retype new password:
Password changed
SQL> quit

You should now be able to log on the SYS and SYSTEM users, with the passwords you just typed in.

Method 2: Creating pwd file (Tested on Windows Oracle 8.1.7)

  1. Stop the Oracle service of the instance you want to change the passwords of.
  2. Find the PWD###.ora file for this instance, this is usuallly located atC:\oracle\ora81\database\, where ### is the SID of your database.
  3. rename the PWD###.ora file to PWD###.ora.bak for obvious safety reasons.
  4. Create a new pwd file by issuing the command:
    orapwd
    file=C:\oracle\ora81\database\PWD###.ora password=XXXXX
    where ### is the SID and XXXXX is the password you would like to use for the SYS and INTERNAL accounts.
  5. Start the Oracle service for the instance you just fixed. You should be able to get in with the SYS user and change other passwords from there.
Software

Nice Mac Tools

Posted on 2006-12-21 By rolfje No Comments on Nice Mac Tools

As a Mac user, I have absolutely no problem editting, moving and viewing large video, audio and image files. There was one thing I missed though, and that is a tool which is able to quickly view a large JPG (like OSX’s own preview) but then skip to the next image in the directory when selecting “next”. Today I have found just that tool, and it is a dream to work with. It called Xee (not to be confused with the rather lame Xsee).

Xee loads jpg’s blindingly fast from my remote fileserver. Then, using just the keyboard, I can easily zoom in, out, skip to the next or previous file in the directory, fit the image to screen, etc. After testing about 20 or so image viewers, It is absolutely the best image viewer I have found.

During the search for Xee, I also encountered the OSX Power Tools page, which is a list of very handy utilities for the Mac, and from what I can see all of them are free to use (check license to be sure).

Merry Christmas!

Software

Creating an Ubuntu Postgres server

Posted on 2006-11-10 By rolfje No Comments on Creating an Ubuntu Postgres server
Follow these steps to create an Ubuntu Linux “server” running a Postgres database which allows non-local connections. You will need a machine with at least 10GB HD, bootable from CD-ROM, network card, and preferably more than 200MB RAM. Other than that, it can even be a Mac G4 if you like (just download the correct Ubuntu build).

Read More “Creating an Ubuntu Postgres server” »

Software

Ibatis Nullpointer calling stored procedure

Posted on 2006-11-07 By rolfje 1 Comment on Ibatis Nullpointer calling stored procedure
Today, a collegue of mine had a really strange nullpointer problem trying to call a stored procedure in an Oracle 10 database using iBATIS Java 2.2.0. What she had was a normal JavaBean, like so: 

package com.rolfje.foo
public class BarBean {
    private String barName;
    private Long barId;

    ... setters/getters here ...
}

A straightforward parametermap:

<parameterMap class="com.rolfje.foo.BarBean"
      id="barbeanMap">
   <parameter property="barName" />
   <parameter property="barId" />
</parameterMap>

and a straightforward procedure mapping:

<procedure id="insertBar" parameterMap="barbeanMap">
   {	call store_bar (
      ?,?)
   }
</procedure>

When trying to call the stored procedure, she got the following stacktrace:

org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation;
uncategorized SQLException for SQL [];
SQL state [null]; error code [0];
--- The error occurred in com/rolfje/foo/sqlmaps/ParameterMap.xml.
--- The error occurred while applying a parameter map.
--- Check the barBeanMap.
--- Check the statement (update procedure failed).
--- Cause: java.lang.NullPointerException; nested exception is

com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/rolfje/foo/sqlmaps/ParameterMap.xml.
--- The error occurred while applying a parameter map.
--- Check the barBeanMap.
--- Check the statement (update procedure failed).
--- Cause: java.lang.NullPointerException
Caused by: java.lang.NullPointerException
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/rolfje/foo/sqlmaps/ParameterMap.xml.
--- The error occurred while applying a parameter map.
--- Check the barBeanMap.
--- Check the statement (update procedure failed).
--- Cause: java.lang.NullPointerException
Caused by: java.lang.NullPointerException
   at ...executeQueryWithCallback(GeneralStatement.java:188)
   at ...executeQueryForObject(GeneralStatement.java:104)
   at ...queryForObject(SqlMapExecutorDelegate.java:565)
...

After hours of staring at the problem, and comparing code with similar constructions from other projects, we decided to switch to the Oracle 9i thin driver to see if that would solve the problem. It didn’t, but there was an interesting development: The Oracle 9i driver actually gave us a decent error about not being able to parse the SQL statement. Which brings us to…

The solution:
We removed all layout from the procedure mapping, which resulted in:

<procedure id="insertBar" parameterMap="barbeanMap">
   {call store_bar (?,?)}
</procedure>

This solved the problem. Then we switched back to the Oracle 10i thin driver, and the problem was still gone. The problem lies in the TAB between the left curly bracket and the word “call”. Oracle can not handle this.To investigate this problem, we then also tried to insert <![CDATA[ ]]> around the procedure call, but as soon as there is a TAB between the { and the word “call” iBATIS will throw a NullPointer. The strange thing is that you can have spaces, newlines and tabs *anywhere* in the procedure mapping, as long as there is no TAB between the left curly and the word “call”.

Software

It ain’t what you do…

Posted on 2006-11-02 By rolfje 1 Comment on It ain’t what you do…
…it’s the way that you do it. Last week I noticed a funny thing in an application I’m involved in as a developer. For logging in to the application, the term “Log On” was used. However, for logging off, “Log Out” was used. This did not feel right, so I searched a bit on the use of these terms. It looks like more people are having trouble choosing one form or the other, and are also mixing on/off and in/out.

Read More “It ain’t what you do…” »

Software

Tangerine BPM Analyzer

Posted on 2006-10-22 By rolfje No Comments on Tangerine BPM Analyzer

Today I discovered Tangerine, a BPM (Beats Per Minute) analyzer for use with iTunes on a mac. I downloaded it, and it works as advertised. It scans your iTunes music library, and analyzes the BPM (and intensity of the pattern) of each track. It does this in the background, and on my Mac mini Core duo I can continue wih my normal programs while Tangerine analyzes the tracks. The BPM values get saved to your iTunes library, so they will also show up in iTunes if you have the BPM column visible there. The “Intensity” will not be visible in your normal iTunes lists.

Read More “Tangerine BPM Analyzer” »

Software

OSX: USB Fat32 drives trouble samba

Posted on 2006-09-26 By rolfje No Comments on OSX: USB Fat32 drives trouble samba

Okay, I found the answer to my problem. Mounting an USB drive on OSX which is formatted as Fat32, will not behave nicely when being accessed through samba. Trying to start multiple copy processes simultaniously will cause seemingly random “file locked” errors. I just formatted the drive as HFS+, and the problem dissapeared. This is a screenshot you’d expect when copying, but I was very happy to see it just a minute ago:

Multiple file copy jobs

Now that I’ve cleared that problem, I can start working on the backup and virusscanning processes, and writing a nice “how to” so you can do the same with your mac mini!

I should have done this right away like I planned. HFS+ is far better than Fat32 (journalled, auto-defragmenting, case preserving, and better in preserving file integrity).

Apple, Software

request a password at the command-line without display

Posted on 2006-08-18 By rolfje No Comments on request a password at the command-line without display

For those of you trying to request a password from the user at the command-line, without the password being displayed on-screen, Java 6 finaly has the answer, along with better access to the console.

I hope that soon we will never see this hideous construction to do the same again.

Software

Nice Apple applications

Posted on 2006-07-11 By rolfje No Comments on Nice Apple applications

All listed in one nice page on “Guide to OSX software for switchers”. Have fun!

Apple, Software

Posts navigation

Previous 1 … 11 12 13 14 Next
           

Recent Comments

  • rolfje on Methode Buijs uitgelegd
  • LinkedIn is at Peak Enshittifaction – Will Chatham's Blog on Linked-In not really Opt-in?
  • Hans j on 1N4148 diode as RF switch
  • Roaming Rhonda on DLNA on OSX, done right
  • Frans on How to fix a Krups XN2001 Nespresso machine

Tags

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

Categories

  • Apple (105)
  • Divorce (1)
  • Electronics (3)
  • Fun (57)
  • Games (7)
  • Hardware (72)
  • Microsoft (18)
  • Racing (14)
  • Software (134)
  • Uncategorized (66)
  • Workshop (20)

Archives

Copyright © 2025 www.rolfje.com.

Powered by PressBook WordPress theme