OCIEnvNlsCreate() failed again

I encountered OCIEnvNlsCreate() failed again, this time on Fedora 12. I was looking for that same file to export environment variables – Apache’s SetEnv directive does not work – and there is no equivalent of /etc/apache2/envvars as far as I can tell. Many others seem to have encountered this same problem before, but never found the solution. Eventually I did, in an Oracle-hosted article about Oracle, PHP and Linux. It’s not called out explicitly, so here’s my go at it: insert the call to oracle_env.

Using grep with Subversion

I use grep alot, but it false positives when searching in a Subversion working copy. So I’m using the -r flag to recursively search for the phrase quick brown fox: $ grep -r 'quick brown fox' * app/controllers/users_controller.php: quick brown fox app/controllers/.svn/text-base/users_controller.php.svn-base: quick brown fox I don’t really want a hit on anything in .svn, so exclude it like --exclude-dir=.svn.

Corwin of Amber on Progress

Opened up a terminal window today, and I so enjoyed this one: ________________________________________ ( Steady movement is more important than ) ( speed, much of the time. So long as ) ( there is a regular progression of ) ( stimuli to get your mental hooks into, ) ( there is room for lateral movement. ) ( Once this begins, its rate is a matter ) ( of discretion. ) ( ) ( -- Corwin, Prince of Amber ) ----------------------------------------

Creating a branch in Subversion

Beginning at the root of your repository: svn mkdir branches/wayne cd branches/wayne svn merge http://your.subversion.server/projectName/trunk svn ci -m 'Issuing "svn merge http://your.subversion.server/projectName/trunk".'

Changing hostname

When /etc/hostname is updated, be sure to follow suit in the default tnsnames.ora and listener.ora. Mine were in: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin Otherwise you’ll get an ORA-12541 error.

OCIEnvNlsCreate() failed

Wanted to work on an Oracle-backed project from home last weekend; e.g., Warning (2): ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME and LD_LIBRARY_PATH are set and point to the right directories [CORE/cake/libs/model/datasources/dbo/dbo_oracle.php, line 171] ORACLE_HOME and LD_LIBRARY_PATH are environment variables I’d defined in my ~/.bashrc; e.g., . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh And phpinfo() seems to suggest that it’s OK: OCI8 Support enabled Version 1.4.1 Revision $Revision: 293235 $ Active Persistent Connections 0 Active Connections 0 Compile-time ORACLE_HOME /usr/lib/oracle/xe/app/oracle/product/10.