September 2012

How to fix Oracle TNS Listener Issues

 A few times over the course of working with Oracle, I’ve come across environments which had issues making connections to databases set up across a network. These were failing with the error “ORA-12514: No TNS Listener”. I eventually found that to fix this, you need to follow the steps below: Install the Oracle Data Access Components (ODAC) on the machine attempting to make the connection Navigate to C:\app\<username>\product\<oracle_version>\client_1\Network\Admin\Sample (note that this… Read More »How to fix Oracle TNS Listener Issues

Search file contents in UNIX

I found myself having to search through the contents of a bunch of files in Unix the other day, and wanted to find a command to do it for me. Cue some Googling, and I found exactly what I was looking for here. find . -name “*” -exec grep -l “somestring” {} \;

Badly Formed Maven Project Error

I recently had an error loading a Java project in Netbeans – whenever I selected it, I’d get this: How to fix After some Googling, the fix appears to be commenting out the <parent> tag from the project’s pom.xml file. <!–<parent> <groupId>foo</groupId> <artifactId>bar</artifactId> <version>1.0.0</version> </parent>–> File this under “I have no idea how, but it fixes the problem”.