<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>random thoughts on [open]solaris</title>
	<atom:link href="http://houst0n.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://houst0n.wordpress.com</link>
	<description>ramblings on unix</description>
	<lastBuildDate>Sat, 01 May 2010 23:00:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='houst0n.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>random thoughts on [open]solaris</title>
		<link>http://houst0n.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://houst0n.wordpress.com/osd.xml" title="random thoughts on [open]solaris" />
	<atom:link rel='hub' href='http://houst0n.wordpress.com/?pushpress=hub'/>
		<item>
		<title>This blog has moved</title>
		<link>http://houst0n.wordpress.com/2010/05/02/this-blog-has-moved/</link>
		<comments>http://houst0n.wordpress.com/2010/05/02/this-blog-has-moved/#comments</comments>
		<pubDate>Sat, 01 May 2010 23:00:01 +0000</pubDate>
		<dc:creator>houst0n</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://houst0n.wordpress.com/?p=162</guid>
		<description><![CDATA[See http://houst0n.net/blog for all your houst0n wares<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=162&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>See <a title="houst0n.net/blog" href="http://houst0n.net/blog">http://houst0n.net/blog</a> for all your houst0n wares <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/houst0n.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/houst0n.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/houst0n.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/houst0n.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/houst0n.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/houst0n.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/houst0n.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/houst0n.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/houst0n.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/houst0n.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/houst0n.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/houst0n.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/houst0n.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/houst0n.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=162&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://houst0n.wordpress.com/2010/05/02/this-blog-has-moved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8ca575e8d2faf6e77f82b3dd214ef92?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">houst0n</media:title>
		</media:content>
	</item>
		<item>
		<title>A long time without updates&#8230;.</title>
		<link>http://houst0n.wordpress.com/2010/04/08/a-long-time-without-updates/</link>
		<comments>http://houst0n.wordpress.com/2010/04/08/a-long-time-without-updates/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 20:25:33 +0000</pubDate>
		<dc:creator>houst0n</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://houst0n.wordpress.com/?p=158</guid>
		<description><![CDATA[My poor forgotten little blog. I will post something cool soon<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=158&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My poor forgotten little blog. I will post something cool soon <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/houst0n.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/houst0n.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/houst0n.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/houst0n.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/houst0n.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/houst0n.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/houst0n.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/houst0n.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/houst0n.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/houst0n.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/houst0n.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/houst0n.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/houst0n.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/houst0n.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=158&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://houst0n.wordpress.com/2010/04/08/a-long-time-without-updates/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8ca575e8d2faf6e77f82b3dd214ef92?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">houst0n</media:title>
		</media:content>
	</item>
		<item>
		<title>Dual booting OpenSolaris dev and Solaris 10 from the same zpool</title>
		<link>http://houst0n.wordpress.com/2010/01/18/dual-booting-opensolaris-dev-and-solaris-10-from-the-same-zpool/</link>
		<comments>http://houst0n.wordpress.com/2010/01/18/dual-booting-opensolaris-dev-and-solaris-10-from-the-same-zpool/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 03:44:25 +0000</pubDate>
		<dc:creator>houst0n</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://houst0n.wordpress.com/?p=126</guid>
		<description><![CDATA[I have my reasons for this&#8230; Now that sun have killed SXCE and in doing so probably the future of the Solaris platform, I&#8217;m undoubtedly going to need a opensolaris box to play with.. So &#8230; As perverse as it sounds, we&#8217;re going to poke and prod opensolaris in some hopefully not too unfamiliar ways, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=126&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have my reasons for this&#8230; </p>
<p>Now that sun have killed SXCE and in doing so probably the future of the Solaris platform, I&#8217;m undoubtedly going to need a opensolaris box to play with.. </p>
<p>So &#8230; As perverse as it sounds, we&#8217;re going to poke and prod opensolaris in some hopefully not too unfamiliar ways, and try to get it to live alongside S10, inside the S10 created, ZFS v15 zpool &#8230;</p>
<p>At the moment I have a S10U8 workstation with two zpools which looks like this:</p>
<blockquote><p>
root@insomnia:/var/tmp &gt; uname -a<br />
SunOS insomnia 5.10 Generic_142901-03 i86pc i386 i86pc<br />
root@insomnia:/var/tmp &gt; zpool status<br />
  pool: data<br />
 state: ONLINE<br />
 scrub: none requested<br />
config:</p>
<p>        NAME        STATE     READ WRITE CKSUM<br />
        data        ONLINE       0     0     0<br />
          c1d0p2    ONLINE       0     0     0</p>
<p>errors: No known data errors</p>
<p>  pool: rpool<br />
 state: ONLINE<br />
 scrub: none requested<br />
config:</p>
<p>        NAME        STATE     READ WRITE CKSUM<br />
        rpool       ONLINE       0     0     0<br />
          c1d0s0    ONLINE       0     0     0</p>
<p>errors: No known data errors
</p></blockquote>
<p>I have two S10 BE&#8217;s set up on here:</p>
<blockquote><p>
root@insomnia:/var/tmp &gt; lustatus<br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10u8_1                    yes      yes    yes       no     -<br />
s10u8_2                    yes      no     no        yes    -
</p></blockquote>
<p>First thing to do, is create another BE for OpenSolaris:</p>
<blockquote>
<p>root@insomnia:~ &gt; lucreate -c s10u8_1 -n snv_130<br />
Checking GRUB menu&#8230;<br />
Analyzing system configuration.<br />
Comparing source boot environment  file systems with the file<br />
system(s) you specified for the new boot environment. Determining which<br />
file systems should be in the new boot environment.<br />
Updating boot environment description database on all BEs.<br />
Updating system configuration files.<br />
Creating configuration for boot environment .<br />
Source boot environment is .<br />
Creating boot environment .<br />
Cloning file systems from boot environment  to create boot environment .<br />
Creating snapshot for  on .<br />
Creating clone for  on .<br />
Setting canmount=noauto for  in zone  on .<br />
Creating snapshot for  on .<br />
Creating clone for  on .<br />
Creating snapshot for  on .<br />
Creating clone for  on .<br />
Creating snapshot for  on .<br />
Creating clone for  on .<br />
Saving existing file  in top level dataset for BE  as //boot/grub/menu.lst.prev.<br />
Saving existing file  in top level dataset for BE  as //boot/grub/menu.lst.prev.<br />
File  propagation successful<br />
Copied GRUB menu from PBE to ABE<br />
No entry for BE  in GRUB menu<br />
Population of boot environment  successful.<br />
Creation of boot environment  successful.<br />
root@insomnia:~ &gt; </p>
</blockquote>
<p>Next, check everything is there. Mount it, and rm everything from it.<br />
(You should probably be a careful here and take a snapshot of your root zvol&#8230;)</p>
<blockquote><p>
root@insomnia:~ &gt; lustatus<br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10u8_1                    yes      yes    yes       no     -<br />
s10u8_2                    yes      no     no        yes    -<br />
snv_130                    yes      no     no        yes    -<br />
root@insomnia:~ &gt; zfs set mountpoint=/a rpool/ROOT/snv_130<br />
root@insomnia:~ &gt; zfs mount rpool/ROOT/snv_130<br />
root@insomnia:~ &gt; cd /a<br />
root@insomnia:/a &gt; ls<br />
bin          devices      lib          proc         system<br />
boot         etc          mnt          reconfigure  tmp<br />
core         export       net          rmdisk       usr<br />
Desktop      home         opt          rpool        var<br />
dev          kernel       platform     sbin         vol<br />
root@insomnia:/a &gt; rm -rf /a/*<br />
root@insomnia:/a &gt;
</p></blockquote>
<p>Finally, lets share this out over NFS.</p>
<blockquote><p>
root@insomnia:~ &gt; share -F nfs -o rw,anon=0 /a<br />
root@insomnia:~ &gt; share<br />
-               /a   rw,anon=0   &#8220;&#8221;
</p></blockquote>
<p>Now for the Opensolaris install.</p>
<p>Download and install the latest opensolaris (at the time of writing, build 130) and get it inside VirtualBox.</p>
<p>I did nothing particularly unusual here, standard 64 bit VirtualBox vm with 768mb of memory.</p>
<p>Booted into the installer looks like this:</p>
<p><a href="http://houst0n.files.wordpress.com/2010/01/osol-install.png"><img src="http://houst0n.files.wordpress.com/2010/01/osol-install.png?w=300&#038;h=187" alt="" title="osol-install" width="300" height="187" class="alignnone size-medium wp-image-132" /></a></p>
<p>Once the installer completes, we <strong>don&#8217;t </strong> want to reboot..</p>
<p>Select &#8216;quit&#8217; instead of reboot, and open a term.</p>
<p>Mount our NFS shared area, and the opensolaris install, and copy everything over:</p>
<blockquote>
<p>jack@opensolaris:~$ pfexec su -<br />
Sun Microsystems Inc.    SunOS 5.11          snv_130 November 2008<br />
root@opensolaris:~# zfs set mountpoint=legacy rpool/ROOT/opensolaris<br />
root@opensolaris:~# mount -F zfs rpool/ROOT/opensolaris /a<br />
root@opensolaris:~# mkdir /b<br />
root@opensolaris:~# mount -F nfs 10.0.0.2:/a /b<br />
root@opensolaris:~# cd /a<br />
root@opensolaris:/a# find . | ptime cpio -pvdum /b<br />
&#8230;<br />
7313440 blocks</p>
<p>real  3:37:17.419601197<br />
user       29.642283189<br />
sys     15:36.499440337<br />
root@opensolaris:/a# </p>
</blockquote>
<p>YMM (hopefully) V on the amount of time this takes to complete&#8230; Well over three hours. Ehehem&#8230;.</p>
<p>So, once this finally completes, we can shutdown the vm and leave it alone..</p>
<p>Next up is a bit of fixup:</p>
<blockquote><p>
root@insomnia:/a &gt; cd etc<br />
root@insomnia:/a/etc &gt; mkdir vbox_files<br />
root@insomnia:/a/etc &gt; mv path_to_inst path_to_inst.old zfs/zpool.cache driver_* vbox_files/<br />
root@insomnia:/a/etc &gt; cp /etc/path_to_inst /etc/zfs/zpool.cache /etc/driver_* .<br />
root@insomnia:/a/etc &gt; touch /a/reconfigure
</p></blockquote>
<p>I hit an issue here, where, as the username I had created for my user account in the installer was not the same as the one I used in the old BE so as such there was no home directory for the user.</p>
<p>You probably want to fix this before you reboot, as thanks to whichever bright spark decided to remove the &#8216;console login&#8217; option from GDM and worse still, disable the ctrl+alt+backspace hotkey, means you&#8217;ll need to boot back to your S10 BE to fix..</p>
<p>Next, unmount:</p>
<blockquote><p>
root@insomnia:/a/etc &gt; cd /<br />
root@insomnia:/ &gt; umount /a
</p></blockquote>
<p>Add an entry to /rpool/boot/grub/menu.lst for the new BE:</p>
<blockquote><p>
title OpenSolaris snv_130<br />
findroot (pool_rpool,0,a)<br />
bootfs rpool/ROOT/snv_130<br />
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS<br />
module$ /platform/i86pc/$ISADIR/boot_archive
</p></blockquote>
<p>Reboot and be sure to choose our new BE from the grub menu.</p>
<p>A short reboot later, and we&#8217;re in the OpenSolaris snv_130 BE!</p>
<blockquote><p>
bash-4.0$ uname -a<br />
SunOS insomnia 5.11 snv_130 i86pc i386 i86pc<br />
bash-4.0$ pfexec /usr/sbin/beadm list<br />
BE             Active Mountpoint Space  Policy Created<br />
&#8211;             &#8212;&#8212; &#8212;&#8212;&#8212;- &#8212;&#8211;  &#8212;&#8212; &#8212;&#8212;-<br />
s10u8_2        &#8211;        &#8211;          281.5K static 2010-01-17 22:16<br />
s10u8_1        R       &#8211;          9.29G  static 2009-12-02 12:43<br />
snv_130        N       /          1.69G  static 2010-01-17 22:43
</p></blockquote>
<p>Notice how beadm plays with my S10 BEs.</p>
<p>The final result:</p>
<p><a href="http://houst0n.files.wordpress.com/2010/01/screenshot1.png"><img src="http://houst0n.files.wordpress.com/2010/01/screenshot1.png?w=300&#038;h=187" alt="" title="Screenshot" width="300" height="187" class="alignnone size-medium wp-image-151" /></a></p>
<p>Any of you actually patient enough to try this, have fun! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>~h</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/houst0n.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/houst0n.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/houst0n.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/houst0n.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/houst0n.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/houst0n.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/houst0n.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/houst0n.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/houst0n.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/houst0n.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/houst0n.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/houst0n.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/houst0n.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/houst0n.wordpress.com/126/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=126&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://houst0n.wordpress.com/2010/01/18/dual-booting-opensolaris-dev-and-solaris-10-from-the-same-zpool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8ca575e8d2faf6e77f82b3dd214ef92?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">houst0n</media:title>
		</media:content>

		<media:content url="http://houst0n.files.wordpress.com/2010/01/osol-install.png?w=300" medium="image">
			<media:title type="html">osol-install</media:title>
		</media:content>

		<media:content url="http://houst0n.files.wordpress.com/2010/01/screenshot1.png?w=300" medium="image">
			<media:title type="html">Screenshot</media:title>
		</media:content>
	</item>
		<item>
		<title>LSOF on Solaris 10 Update 8</title>
		<link>http://houst0n.wordpress.com/2010/01/03/lsof-on-solaris-10-update-8/</link>
		<comments>http://houst0n.wordpress.com/2010/01/03/lsof-on-solaris-10-update-8/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 20:47:45 +0000</pubDate>
		<dc:creator>houst0n</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://houst0n.wordpress.com/?p=118</guid>
		<description><![CDATA[After a bit of irc inspired digging, I&#8217;ve built a newer rev of LSOF and fortunately, it appears that the upcoming 4.83 release restores functionality on Solaris which has been broken for a while! Will kick out some packages once it&#8217;s released. (And yep, it supports ZFS) If you juuuuuuust can&#8217;t wait, here are some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=118&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After a bit of irc inspired digging, I&#8217;ve built a newer rev of LSOF and fortunately, it appears that the upcoming 4.83 release restores functionality on Solaris which has been broken for a while!</p>
<p>Will kick out some packages once it&#8217;s released.</p>
<p>(And yep, it supports ZFS)</p>
<p>If you juuuuuuust can&#8217;t wait, here are some simple instructions on building it:</p>
<p>Download and extract the 4.83K tar.bz2:</p>
<blockquote><p>houston@charon:~/lsof &gt; wget ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/lsof_4.83K.sun.tar.bz2<br />
&#8211;2010-01-03 20:33:41&#8211;  ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/lsof_4.83K.sun.tar.bz2<br />
           =&gt; `lsof_4.83K.sun.tar.bz2&#8242;<br />
Resolving lsof.itap.purdue.edu&#8230; 128.210.7.20<br />
Connecting to lsof.itap.purdue.edu|128.210.7.20|:21&#8230; connected.<br />
Logging in as anonymous &#8230; Logged in!<br />
==&gt; SYST &#8230; done.    ==&gt; PWD &#8230; done.<br />
==&gt; TYPE I &#8230; done.  ==&gt; CWD /pub/tools/unix/lsof/NEW &#8230; done.<br />
==&gt; SIZE lsof_4.83K.sun.tar.bz2 &#8230; 560608<br />
==&gt; PASV &#8230; done.    ==&gt; RETR lsof_4.83K.sun.tar.bz2 &#8230; done.<br />
Length: 560608 (547K)</p>
<p>100%[======================================&gt;] 560,608      367K/s   in 1.5s    </p>
<p>2010-01-03 20:33:43 (367 KB/s) &#8211; `lsof_4.83K.sun.tar.bz2&#8242; saved [560608]</p>
<p>houston@charon:~/lsof &gt; bzcat lsof_4.83K.sun.tar.bz2 | gtar -xf -<br />
houston@charon:~/lsof &gt;                                                            </p></blockquote>
<p>Be slightly baffled by the confgure script, but continue on as follows:</p>
<blockquote><p>houston@charon:~/lsof/lsof_4.83K.sun &gt; ./Configure solaris<br />
Testing prdata.h for PR_GWINDOWS, using gcc<br />
Testing prdata.h for PR_LDT, using gcc<br />
Testing gcc for 64 bit support</p>
<p>*********************************<br />
* Configuring for 64 bit kernel *<br />
*********************************</p>
<p>Testing vnode.h for VSOCK, using gcc</p>
<p>This configuration step (the Inventory script) takes inventory of<br />
the lsof distribution.  The script runs for a minute or two while<br />
it checks that all the subdirectories, information files, scripts,<br />
header files and source files that should be present really are.</p>
<p>It&#8217;s not absolutely necessary that you take inventory, but it&#8217;s a<br />
good idea to do it right after the lsof distribution has been<br />
unpacked.  Once the inventory has been taken, this script creates<br />
the file ./.ck00MAN as a signal that the inventory step has been<br />
done.</p>
<p>You can call the Inventory script directly at any time to take<br />
inventory.  You can inhibit the inventory step permanently by<br />
creating the file ./.neverInv, and you can tell the Configure script<br />
to skip the inventory and customization steps with the -n option.</p>
<p>Do you want to take inventory (y|n) [y]? n<br />
rm -f ddev.c dfile.c dlsof.h dmnt.c dnode*.c dproc.c dproto.h dsock.c dstore.c dzfs.h kernelbase.h machine.h machine.h.old new_machine.h __lseek.s Makefile Makefile.zfs ./tests/config.cflags<br />
rm -f ./tests/config.cc ./tests/config.xobj ./tests/config.ldflags<br />
Testing C library for localtime() and strftime(), using gcc &#8230; present<br />
ln -s dialects/sun/ddev.c ddev.c<br />
ln -s dialects/sun/dfile.c dfile.c<br />
ln -s dialects/sun/dlsof.h dlsof.h<br />
ln -s dialects/sun/dmnt.c dmnt.c<br />
ln -s dialects/sun/dnode.c dnode.c<br />
ln -s dialects/sun/dnode1.c dnode1.c<br />
ln -s dialects/sun/dnode2.c dnode2.c<br />
ln -s dialects/sun/dproc.c dproc.c<br />
ln -s dialects/sun/dproto.h dproto.h<br />
ln -s dialects/sun/dsock.c dsock.c<br />
ln -s dialects/sun/dstore.c dstore.c<br />
ln -s dialects/sun/machine.h machine.h<br />
kernelbase.h assembled.<br />
Makefile and lib/Makefile created.<br />
./tests/config.cc created<br />
./tests/config.cflags created<br />
./tests/config.ldflags created<br />
./tests/config.xobj created</p>
<p>You may now customize the machine.h header file for this UNIX<br />
dialect.  The customizations will take effect when you compile<br />
lsof.  You may also choose to skip customization and proceed to<br />
the compilation of lsof.</p>
<p>If you don&#8217;t know if you need to customize or want to know more<br />
about what you can customize, consult the 00DCACHE, 00FAQ, 00PORTING,<br />
and 00README files of the lsof distribution.  You might also find<br />
it helpful to examine the machine.h header file for the dialect<br />
you&#8217;re customizing.</p>
<p>You don&#8217;t need to use this procedure to customize lsof; you can<br />
edit the machine.h header file directly.  If you later decide you<br />
want to use this procedure to customize machine.h, execute the<br />
./Customize script.</p>
<p>Do you want to customize (y|n) [y]? n</p>
<p>houston@charon:~/lsof/lsof_4.83K.sun &gt; gcc -v<br />
Using built-in specs.<br />
Target: sparc-sun-solaris2.8<br />
Configured with: ../gcc-4.3.4/configure &#8211;with-gnu-as &#8211;with-as=/opt/csw/bin/gas &#8211;without-gnu-ld &#8211;with-ld=/usr/ccs/bin/ld &#8211;with-cpu=v7 &#8211;enable-threads=posix &#8211;enable-nls &#8211;prefix=/opt/csw/gcc4 &#8211;with-local-prefix=/opt/csw &#8211;enable-shared &#8211;enable-multilib &#8211;with-included-gettext &#8211;with-libiconv-prefix=/opt/csw &#8211;with-system-zlib &#8211;with-gmp=/opt/csw &#8211;with-mpfr=/opt/csw &#8211;enable-languages=c,c++,fortran,java,objc,ada &#8211;enable-bootstrap<br />
Thread model: posix<br />
gcc version 4.3.4 (GCC) </p>
</blockquote>
<p>run gmake (output snipped):</p>
<blockquote><p>
houston@charon:~/lsof/lsof_4.83K.sun &gt; gmake<br />
houston@charon:~/lsof/lsof_4.83K.sun &gt;
</p></blockquote>
<p>Appears to have linked OK:</p>
<blockquote><p>houston@charon:~/lsof/lsof_4.83K.sun &gt; ldd lsof<br />
        libctf.so.1 =&gt;   /lib/64/libctf.so.1<br />
        libkvm.so.1 =&gt;   /usr/lib/64/libkvm.so.1<br />
        libelf.so.1 =&gt;   /lib/64/libelf.so.1<br />
        libsocket.so.1 =&gt;        /lib/64/libsocket.so.1<br />
        libnsl.so.1 =&gt;   /lib/64/libnsl.so.1<br />
        libc.so.1 =&gt;     /lib/64/libc.so.1<br />
        libmp.so.2 =&gt;    /lib/64/libmp.so.2<br />
        libmd.so.1 =&gt;    /lib/64/libmd.so.1<br />
        libscf.so.1 =&gt;   /lib/64/libscf.so.1<br />
        libdoor.so.1 =&gt;  /lib/64/libdoor.so.1<br />
        libuutil.so.1 =&gt;         /lib/64/libuutil.so.1<br />
        libgen.so.1 =&gt;   /lib/64/libgen.so.1<br />
        libm.so.2 =&gt;     /lib/64/libm.so.2<br />
        /platform/SUNW,Sun-Blade-2500/lib/sparcv9/libc_psr.so.1<br />
        /platform/SUNW,Sun-Blade-2500/lib/sparcv9/libmd_psr.so.1
</p></blockquote>
<p>Finally, we&#8217;ll copy it to a global zone and test it out:</p>
<blockquote><p>
root@snappy:~ &gt; ./lsof_sparc -p  12151<br />
COMMAND   PID USER   FD   TYPE        DEVICE SIZE/OFF    NODE NAME<br />
sshd    12151 root  cwd   VDIR         136,8     1024       2 /<br />
sshd    12151 root  txt   VREG         136,8   359244  228943 /usr/lib/ssh/sshd<br />
sshd    12151 root  txt   VREG         136,8   392036   22431 /usr/lib/security/pkcs11_softtoken_extra.so.1<br />
sshd    12151 root  txt   VREG         136,8    41124    3067 /platform/sun4u/lib/libmd_psr.so.1<br />
sshd    12151 root  txt   VREG         136,8   149428    2659 /usr/lib/security/pkcs11_kernel.so.1<br />
sshd    12151 root  txt   VREG         136,8    20572    4091 /lib/libdoor.so.1<br />
sshd    12151 root  txt   VREG         136,8    55312    2586 /usr/lib/libcryptoutil.so.1<br />
sshd    12151 root  txt   VREG         136,8   155092    2612 /usr/lib/libpkcs11.so.1<br />
sshd    12151 root  txt   VREG         136,8   135100   22434 /usr/sfw/lib/libcrypto_extra.so.0.9.7<br />
sshd    12151 root  txt   VREG         136,8    42084    4110 /lib/libnvpair.so.1<br />
sshd    12151 root  txt   VREG         136,8   100972    4105 /lib/libmd.so.1<br />
sshd    12151 root  txt   VREG         136,8  1639032    4412 /lib/libc.so.1<br />
sshd    12151 root  txt   VREG         136,8    37400    4123 /lib/libsecdb.so.1<br />
sshd    12151 root  txt   VREG         136,8    33348    4080 /lib/libcontract.so.1<br />
sshd    12151 root  txt   VREG         136,8  1444348    5037 /usr/sfw/lib/libcrypto.so.0.9.7<br />
sshd    12151 root  txt   VREG         136,8    27100    4078 /lib/libcmd.so.1<br />
sshd    12151 root  txt   VREG         136,8    77228    6346 /usr/lib/libgss.so.1<br />
sshd    12151 root  txt   VREG         136,8    62504    2740 /usr/sfw/lib/libwrap.so.1.0<br />
sshd    12151 root  txt   VREG         136,8   229232    4075 /lib/libbsm.so.1<br />
sshd    12151 root  txt   VREG         136,8    52920    3101 /lib/libpam.so.1<br />
sshd    12151 root  txt   VREG         136,8   870128   45032 /lib/libnsl.so.1<br />
sshd    12151 root  txt   VREG         136,8    80200    3850 /usr/lib/libz.so.1<br />
sshd    12151 root  txt   VREG         136,8    93924    4125 /lib/libsocket.so.1<br />
sshd    12151 root  txt   VREG         136,8    16856    3066 /platform/sun4u/lib/libc_psr.so.1<br />
sshd    12151 root  txt   VREG         136,8   280840    4071 /lib/ld.so.1<br />
sshd    12151 root    0u  VCHR          13,2          6815752 /devices/pseudo/mm@0:null<br />
sshd    12151 root    1u  VCHR          13,2          6815752 /devices/pseudo/mm@0:null<br />
sshd    12151 root    2u  VCHR          13,2          6815752 /devices/pseudo/mm@0:null<br />
sshd    12151 root    3u  IPv6 0x30005e8c980  0t47908     TCP snappy:ssh-&gt;insomnia.lan:43612 (ESTABLISHED)<br />
sshd    12151 root    4r  DOOR                    0t0      58 /var/run/name_service_door (door to nscd[133]) (FA:-&gt;0x3000236f580)<br />
sshd    12151 root    5u  FIFO 0x300016ca900     0t16    7062 (fifofs) PIPE-&gt;0x300016ca990<br />
sshd    12151 root    6u  FIFO 0x300016ca180      0t0    7067 (fifofs) PIPE-&gt;0x300016ca210<br />
sshd    12151 root    7u  FIFO 0x300016ca900     0t16    7062 (fifofs) PIPE-&gt;0x300016ca990<br />
sshd    12151 root    8u  FIFO 0x300016ca210      0t0    7067 (fifofs) PIPE-&gt;0x300016ca180
</p></blockquote>
<p>Enjoy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/houst0n.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/houst0n.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/houst0n.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/houst0n.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/houst0n.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/houst0n.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/houst0n.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/houst0n.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/houst0n.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/houst0n.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/houst0n.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/houst0n.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/houst0n.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/houst0n.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=118&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://houst0n.wordpress.com/2010/01/03/lsof-on-solaris-10-update-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8ca575e8d2faf6e77f82b3dd214ef92?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">houst0n</media:title>
		</media:content>
	</item>
		<item>
		<title>DWM &#8211; The Dynamic Window Manager for Solaris</title>
		<link>http://houst0n.wordpress.com/2009/12/20/dwm-the-dynamic-window-manager-for-solaris/</link>
		<comments>http://houst0n.wordpress.com/2009/12/20/dwm-the-dynamic-window-manager-for-solaris/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 06:09:36 +0000</pubDate>
		<dc:creator>houst0n</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://houst0n.wordpress.com/?p=105</guid>
		<description><![CDATA[I finally reached melting point with the gnome which ships with Solaris 10, and so I decided to take a look at some other window managers. A bit bored of Flux and Openbox, I finally settled on DWM. For those of you who don&#8217;t know &#8211; DWM is an exceptionally lightweight window manager (weighing in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=105&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I finally reached melting point with the gnome which ships with Solaris 10, and so I decided to take a look at some other window managers.</p>
<p>A bit bored of Flux and Openbox, I finally settled on DWM.</p>
<p>For those of you who don&#8217;t know &#8211; DWM is an exceptionally lightweight window manager (weighing in at just over 2000 lines of C) which has no configuration outside of config.h, and should be pushed out with the next release over at blastwave (my sources tell me this will be today).</p>
<p>To get started:</p>
<blockquote><p># /opt/csw/bin/pkgutil -U<br />
# /opt/csw/bin/pkgutil -i dwm-dtlogin</p></blockquote>
<p>This will pull down DWM itself, the dtlogin integration files (/etc/dt/config), urxvt and the artwiz fonts. Select DWM from your sessions list in dtlogin, and press MOD4(Windows Key) + Shift + Enter to open a terminal.</p>
<p>I&#8217;ve added DMENU to the repo for those who want it, too.</p>
<p>Some obligatory screenies.</p>
<p>&#8220;Floating Layout&#8221;</p>
<p><a href="http://houst0n.files.wordpress.com/2009/12/dwm_floating.png"><img class="alignnone size-medium wp-image-106" title="dwm_floating" src="http://houst0n.files.wordpress.com/2009/12/dwm_floating.png?w=300&#038;h=187" alt="" width="300" height="187" /></a></p>
<p>&#8220;Tiled Layout&#8221;</p>
<p><a href="http://houst0n.files.wordpress.com/2009/12/dwm_tiled.png"><img class="alignnone size-medium wp-image-107" title="dwm_tiled" src="http://houst0n.files.wordpress.com/2009/12/dwm_tiled.png?w=300&#038;h=187" alt="" width="300" height="187" /></a></p>
<p>The patch for the zenburn-esque colour theme is <a title="http://www.blastwave.org/houston/colors.diff" href="http://www.blastwave.org/houston/colors.diff">here</a></p>
<p>Have fun! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/houst0n.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/houst0n.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/houst0n.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/houst0n.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/houst0n.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/houst0n.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/houst0n.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/houst0n.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/houst0n.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/houst0n.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/houst0n.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/houst0n.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/houst0n.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/houst0n.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=105&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://houst0n.wordpress.com/2009/12/20/dwm-the-dynamic-window-manager-for-solaris/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8ca575e8d2faf6e77f82b3dd214ef92?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">houst0n</media:title>
		</media:content>

		<media:content url="http://houst0n.files.wordpress.com/2009/12/dwm_floating.png?w=300" medium="image">
			<media:title type="html">dwm_floating</media:title>
		</media:content>

		<media:content url="http://houst0n.files.wordpress.com/2009/12/dwm_tiled.png?w=300" medium="image">
			<media:title type="html">dwm_tiled</media:title>
		</media:content>
	</item>
		<item>
		<title>ISAEXEC and Solaris 8 pains</title>
		<link>http://houst0n.wordpress.com/2009/12/11/isaexec-and-solaris-8-pains/</link>
		<comments>http://houst0n.wordpress.com/2009/12/11/isaexec-and-solaris-8-pains/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:06:41 +0000</pubDate>
		<dc:creator>houst0n</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://houst0n.wordpress.com/?p=90</guid>
		<description><![CDATA[Over at blastwave, we&#8217;ve been hard at work getting a new perl package togeather, and one of the things we like to do is have 64 bit binaries in the same package as the 32 bit binaries.. We achieve this with the help of a binary called isaexec; our packages install their binaries into (e.g [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=90&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Over at blastwave, we&#8217;ve been hard at work getting a new perl package togeather, and one of the things we like to do is have 64 bit binaries in the same package as the 32 bit binaries..</p>
<p>We achieve this with the help of a binary called <a title="ISAEXEC.c" href="http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/isaexec/isaexec.c">isaexec</a>; our packages install their binaries into (e.g for perl) /opt/csw/bin/sparcv9/perl and /opt/csw/bin/sparcv8/perl, and then a hard link is created as /opt/csw/bin/perl=isaexec in our package prototype.</p>
<p>When /opt/csw/bin/perl (which is actually isaexec) is run, it uses getexecname() and isaexec() to run the correct binary for that host.</p>
<p>On solaris 8 however, we noticed a bit of a strange problem. The /opt/csw/bin/perl link was working as expected, but when we use it in a script #!, we were seeing some unusl behaviour.</p>
<p>To demonstrate this, we&#8217;ll set up some isaexec links for bash:</p>
<blockquote><p>root@mimas:/opt/csw/bin &gt; cp bash sparcv8/bash_2<br />
root@mimas:/opt/csw/bin &gt; cp bash sparcv9/bash_2<br />
root@mimas:/opt/csw/bin &gt; ln isaexec bash_2</p></blockquote>
<p>Next, a little script which calls the isaexec&#8217;d up /opt/csw/bin/bash_2:</p>
<blockquote><p>houston@mimas:/tmp &gt; cat test.sh<br />
#!/opt/csw/bin/bash_2<br />
echo test<br />
houston@mimas:/tmp &gt; ./test.sh<br />
/opt/csw/bin/bash_2: cannot find/execute &#8220;test.sh&#8221; in ISA subdirectories
</p></blockquote>
<p>To cut a very long story very short &#8211; there is no trivial way around this, the problem lies deep within exec on Solaris 8.</p>
<p>As a result, we&#8217;re making the sparcv8 binaries for perl (and anything else) the default for Solaris 8.</p>
<p>The v9 bins are still there, but if you want them you&#8217;ll need to use /opt/csw/bin/sparcv9/foo in your scripts.</p>
<p>Peace!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/houst0n.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/houst0n.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/houst0n.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/houst0n.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/houst0n.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/houst0n.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/houst0n.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/houst0n.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/houst0n.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/houst0n.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/houst0n.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/houst0n.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/houst0n.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/houst0n.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=90&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://houst0n.wordpress.com/2009/12/11/isaexec-and-solaris-8-pains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8ca575e8d2faf6e77f82b3dd214ef92?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">houst0n</media:title>
		</media:content>
	</item>
		<item>
		<title>Solaris 10 as a workstation&#8230;</title>
		<link>http://houst0n.wordpress.com/2009/12/10/solaris-10-as-a-workstation/</link>
		<comments>http://houst0n.wordpress.com/2009/12/10/solaris-10-as-a-workstation/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 19:15:53 +0000</pubDate>
		<dc:creator>houst0n</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://houst0n.wordpress.com/?p=83</guid>
		<description><![CDATA[Not a very interesting update, but I felt compelled to write something: I&#8217;ve been back in the real world for a few weeks now, and of course the first thing I needed to do was set up a workstation. Initially, my first choice was opensolaris-dev (in this instance, build 127) which turned out to be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=83&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Not a very interesting update, but I felt compelled to write something:</p>
<p>I&#8217;ve been back in the real world for a few weeks now, and of course the first thing I needed to do was set up a workstation.</p>
<p>Initially, my first choice was opensolaris-dev (in this instance, build 127) which turned out to be a rather painful experience. Besides the random crashes, 10 minute boot times and broken audio drivers, the real problem for me is that opensolaris has one of the worst packaging systems ever made.</p>
<p>Many people with much better prose than mine can explain the problems with IPS, if they weren&#8217;t painstakingly obvious from the moment you first used it &#8211; so I&#8217;ll leave that rant for another day.</p>
<p>So, I went off to sun.com and downloaded the latest Solaris 10 release and stuck it on my machine, and so far everything is working great &#8211; and compared to OpenSolaris it&#8217;s rock solid stable.</p>
<p>To make it more usable, the first thing I had to take care of was the lack of a decent terminal program, the gnome-terminal that ships with Solaris 10 is terribly dated, and when I&#8217;m inside vim and the cursor is over a comment, it disappears!</p>
<p>So I logged into the <a title="Blastwave.org" href="http://www.blastwave.org" target="_blank">blastwave</a> farm and made a package for urxvt, which should be available in the repo soon!</p>
<p>Some obligatory screenshots:</p>
<p>vim with a 256 color theme (zenburn)</p>
<p><a href="http://houst0n.files.wordpress.com/2009/12/screenshot-urxvt-1.png"><img class="alignnone size-medium wp-image-84" title="Screenshot-URxvt-1" src="http://houst0n.files.wordpress.com/2009/12/screenshot-urxvt-1.png?w=300&#038;h=202" alt="" width="300" height="202" /></a></p>
<p>Color test:</p>
<p><a href="http://houst0n.files.wordpress.com/2009/12/screenshot-urxvt-2.png"><img class="alignnone size-medium wp-image-85" title="Screenshot-URxvt-2" src="http://houst0n.files.wordpress.com/2009/12/screenshot-urxvt-2.png?w=300&#038;h=201" alt="" width="300" height="201" /></a></p>
<p>Next up was to install the latest Firefox which you can download from their website.</p>
<p>My next task is to get a proper window manager on there, such as <a title="Awesome Window Manager" href="http://awesome.naquadah.org/" target="_blank">awesomewm</a> &#8211; which&#8217;ll come when I find some free time! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/houst0n.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/houst0n.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/houst0n.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/houst0n.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/houst0n.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/houst0n.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/houst0n.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/houst0n.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/houst0n.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/houst0n.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/houst0n.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/houst0n.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/houst0n.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/houst0n.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=83&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://houst0n.wordpress.com/2009/12/10/solaris-10-as-a-workstation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8ca575e8d2faf6e77f82b3dd214ef92?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">houst0n</media:title>
		</media:content>

		<media:content url="http://houst0n.files.wordpress.com/2009/12/screenshot-urxvt-1.png?w=300" medium="image">
			<media:title type="html">Screenshot-URxvt-1</media:title>
		</media:content>

		<media:content url="http://houst0n.files.wordpress.com/2009/12/screenshot-urxvt-2.png?w=300" medium="image">
			<media:title type="html">Screenshot-URxvt-2</media:title>
		</media:content>
	</item>
		<item>
		<title>lost in the wilderness &#8230; and returning to civilization</title>
		<link>http://houst0n.wordpress.com/2009/10/31/lost-in-the-wilderness-and-returning-to-civilization/</link>
		<comments>http://houst0n.wordpress.com/2009/10/31/lost-in-the-wilderness-and-returning-to-civilization/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 08:57:53 +0000</pubDate>
		<dc:creator>houst0n</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://houst0n.wordpress.com/?p=79</guid>
		<description><![CDATA[Gah! That was a very long time without an update! I shall be returning to the &#8216;real&#8217; world soon; having found exactly how deep the rabbit hole goes, I&#8217;ve consumed the blue pill and am working on a return plan to the UK. &#160; Bah! But, for the best Expect some cool stuff soon, I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=79&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Gah!</p>
<p>That was a very long time without an update!</p>
<p>I shall be returning to the &#8216;real&#8217; world soon; having found exactly how deep the rabbit hole goes, I&#8217;ve consumed the blue pill and am working on a return plan to the UK.</p>
<p>&nbsp;</p>
<p>Bah! But, for the best <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Expect some cool stuff soon, I will be returning to my old projects, finally!</p>
<p>-houst0n</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/houst0n.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/houst0n.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/houst0n.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/houst0n.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/houst0n.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/houst0n.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/houst0n.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/houst0n.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/houst0n.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/houst0n.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/houst0n.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/houst0n.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/houst0n.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/houst0n.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=79&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://houst0n.wordpress.com/2009/10/31/lost-in-the-wilderness-and-returning-to-civilization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8ca575e8d2faf6e77f82b3dd214ef92?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">houst0n</media:title>
		</media:content>
	</item>
		<item>
		<title>Off to see the wizard&#8230;</title>
		<link>http://houst0n.wordpress.com/2009/08/04/off-to-see-the-wizard/</link>
		<comments>http://houst0n.wordpress.com/2009/08/04/off-to-see-the-wizard/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 00:31:18 +0000</pubDate>
		<dc:creator>houst0n</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://houst0n.wordpress.com/?p=75</guid>
		<description><![CDATA[Apologies for the lack of updates! (although, as of this moment hardly anyone is reading this, so I&#8217;m not sure exactly who I&#8217;m apologizing to!) Things have been pretty crazy with quitting my job and getting prepared to relocate 10,081 miles from here in Scotland to Brisbane, Australia. So, the gory details: I&#8217;m landing in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=75&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Apologies for the lack of updates! (although, as of this moment hardly anyone is reading this, so I&#8217;m not sure exactly who I&#8217;m apologizing to!)</p>
<p>Things have been pretty crazy with quitting my job and getting prepared to relocate 10,081 miles from here in Scotland to Brisbane, Australia.</p>
<p>So, the gory details: I&#8217;m landing in Brisbane on the 13th if anyone wants to hook up for a beer, if not &#8211; I might catch you at the next QOSUG!</p>
<p>I&#8217;ll post some more Solaris related stuff as I get the chance.</p>
<p>In related news &#8211; we over at Blastwave have been rather busy, expect some cool new things (Including FreeNX!!!) soon!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/houst0n.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/houst0n.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/houst0n.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/houst0n.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/houst0n.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/houst0n.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/houst0n.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/houst0n.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/houst0n.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/houst0n.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/houst0n.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/houst0n.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/houst0n.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/houst0n.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=75&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://houst0n.wordpress.com/2009/08/04/off-to-see-the-wizard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8ca575e8d2faf6e77f82b3dd214ef92?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">houst0n</media:title>
		</media:content>
	</item>
		<item>
		<title>Accessing an Oracle 10g database with perl</title>
		<link>http://houst0n.wordpress.com/2009/06/25/accessing-an-oracle-10g-database-with-perl/</link>
		<comments>http://houst0n.wordpress.com/2009/06/25/accessing-an-oracle-10g-database-with-perl/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 11:45:01 +0000</pubDate>
		<dc:creator>houst0n</dc:creator>
				<category><![CDATA[Blastwave]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[dbi]]></category>
		<category><![CDATA[oracle_express]]></category>

		<guid isPermaLink="false">http://houst0n.wordpress.com/?p=62</guid>
		<description><![CDATA[I've been given the task of writing some perl scripts which will run on a Solaris 10 machine and communicate with an Oracle 10g XE database which is living on a RHEL5 box.

While I have some experience installing/patching Oracle, I've never written a script which communicates directly with it - so this should be a good learning exercise.

<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=62&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been given the task of writing some perl scripts which will run on a Solaris 10 machine and communicate with an Oracle 10g XE database which in turn is living on a RHEL5 box.</p>
<p>While I have some experience installing/patching Oracle, I&#8217;ve never written a script which communicates directly with it &#8211; so this should be a good learning exercise.</p>
<p>There&#8217;s a simple table in the database called &#8220;SM_USER_CONFIG&#8221; which contains a few rows just for testing.</p>
<p>The first step I feel, is to get the machine communicating with the database via sqlplus.</p>
<p>To do this, we need to install &#8220;Instant Client&#8221; &#8211; We want &#8220;Basic&#8221; &#8220;Sqlplus&#8221; and &#8220;SDK&#8221;</p>
<p>(available from <a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/solx86soft.html">http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/solx86soft.html</a>)</p>
<p>I extracted all of these to /opt/instantclient:</p>
<blockquote><p>(TCSUNDEV01:/opt/instantclient) sysmgr &gt; ls<br />
classes12.jar  libclntsh.so.10.1*  libocci.so.10.1*  libsqlplus.so*    sdk/        tnsnames.ora<br />
glogin.sql     libnnz10.so*        libociei.so*      libsqlplusic.so*  sqlnet.log<br />
libclntsh.so@  libocci.so@         libocijdbc10.so*  ojdbc14.jar       sqlplus*</p></blockquote>
<p>We need to create a /opt/instantclient/tnsnames.ora file like this:</p>
<blockquote><p>XE.WORLD =<br />
  (DESCRIPTION =<br />
    (ADDRESS_LIST =<br />
        (ADDRESS =<br />
          (COMMUNITY = tcp.world)<br />
          (PROTOCOL = TCP)<br />
          (Host = 10.17.58.22)<br />
          (Port = 1521)<br />
        )<br />
    )<br />
    (CONNECT_DATA = (SID = XE)<br />
    )<br />
  )</p></blockquote>
<p>Lets try and connect with SQL plus:</p>
<blockquote><p>(TCSUNDEV01:~) sysmgr &gt; setenv TNS_ADMIN /opt/instantclient/<br />
(TCSUNDEV01:~) sysmgr &gt; /opt/instantclient/sqlplus <a href="mailto:smuser/smuserpw@XE.WORLD">username/password@XE.WORLD</a></p>
<p>SQL*Plus: Release 10.2.0.2.0 &#8211; Production on Thu Jun 25 19:16:00 2009<br />
Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.<br />
Connected to:<br />
Oracle Database 10g Express Edition Release 10.2.0.1.0 &#8211; Production</p>
<p>SQL&gt; SELECT USERNAME<br />
  2  FROM SM_USER_CONFIG<br />
  3  /</p>
<p>USERNAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
HoustonN<br />
UserTest<br />
TestUser </p>
<p>SQL&gt;</p></blockquote>
<p>Cool, it works.</p>
<p>Next up is perl. We will build DBD::Oracle for this. Head over to cpan and download the src. We&#8217;re using CSWperl from blastwave.</p>
<blockquote><p>(TCSUNDEV01:/var/tmp) sysmgr &gt; gzcat /tmp/DBD-Oracle-1.23.tar.gz | gtar -xf -<br />
(TCSUNDEV01:/var/tmp) sysmgr &gt;cd DBD-Oracle-1.23<br />
(TCSUNDEV01:/var/tmp/DBD-Oracle-1.23) sysmgr &gt; setenv TNS_ADMIN /opt/instantclient/<br />
(TCSUNDEV01:/var/tmp/DBD-Oracle-1.23) sysmgr &gt; setenv LD_LIBRARY_PATH /opt/instantclient/<br />
(TCSUNDEV01:/var/tmp/DBD-Oracle-1.23) sysmgr &gt; setenv ORACLE_SID XE<br />
(TCSUNDEV01:/var/tmp/DBD-Oracle-1.23) sysmgr &gt; perl Makefile.PL -V 10.2.0.1</p>
<p>Using DBI 1.604 (for perl 5.008008 on i86pc-solaris-thread-multi) installed in /opt/csw/lib/perl/csw/auto/DBI/</p>
<p>Configuring DBD::Oracle for perl 5.008008 on solaris (i86pc-solaris-thread-multi)</p>
<p>Remember to actually *READ* the README file! Especially if you have any problems.</p>
<p>Trying to find an ORACLE_HOME<br />
Found /opt/instantclient/</p>
<p>WARNING: Setting ORACLE_HOME env var to /opt/instantclient/ for you.<br />
WARNING: If these tests fail you may have to set ORACLE_HOME yourself!<br />
Installing on a solaris, Ver#2.8<br />
Using Oracle in /opt/instantclient/<br />
SP2-1503: Unable to initialize Oracle call interface<br />
SP2-0152: ORACLE may not be functioning properly</p>
<p>            If sqlplus failed due to a linker/symbol/relocation/library error or similar problem<br />
            then it&#8217;s likely that you&#8217;ve not configured your environment correctly.<br />
            Specifically, your LD_LIBRARY_PATH environment variable<br />
            set to include the directory containing the Oracle libraries.</p>
<p>Forcing Oracle version to be treated as 10.2.0.1<br />
Oracle version 10.2.0.1 (10.2)<br />
Looks like an Instant Client installation, okay<br />
Your LD_LIBRARY_PATH env var is set to &#8216;/opt/instantclient/&#8217;<br />
Oracle sysliblist:<br />
Found header files in /opt/instantclient//sdk/include.</p>
<p>Checking for functioning wait.ph<br />
System: perl5.008008 sunos thor 5.8 generic_117351-51 i86pc i386 i86pc<br />
Compiler:   cc -xO3 -xtarget=generic -xarch=generic -D_REENTRANT -xO3 -xtarget=generic -xarch=generic -I/opt/csw/bdb44/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br />
Linker:     /usr/ccs/bin/ld<br />
Sysliblist:<br />
Linking with -lclntsh.</p>
<p>LD_RUN_PATH=/opt/instantclient<br />
Using DBD::Oracle 1.23.<br />
Using DBD::Oracle 1.23.<br />
Using DBI 1.604 (for perl 5.008008 on i86pc-solaris-thread-multi) installed in /opt/csw/lib/perl/csw/auto/DBI/<br />
Writing Makefile for DBD::Oracle</p></blockquote>
<blockquote><p>***  If you have problems&#8230;<br />
     read all the log printed above, and the README and README.help.txt files.<br />
     (Of course, you have read README by now anyway, haven&#8217;t you?)</p></blockquote>
<p>Notice the warning about sqlplus failing above. As we&#8217;re building this on a CLIENT, when sqlplus is invoked it doesn&#8217;t specify @XE.WORLD (default is to connect to a local database)- We can just ignore this.</p>
<p>Go ahead and run &#8220;make install&#8221;</p>
<blockquote><p>(TCSUNDEV01:/var/tmp/DBD-Oracle-1.23) sysmgr &gt; pfexec gmake install<br />
Skip blib/lib/DBD/Oracle.pm (unchanged)<br />
Skip blib/lib/oraperl.ph (unchanged)<br />
Skip blib/arch/auto/DBD/Oracle/dbdimp.h (unchanged)<br />
Skip blib/arch/auto/DBD/Oracle/ocitrace.h (unchanged)<br />
Skip blib/lib/Oraperl.pm (unchanged)<br />
Skip blib/arch/auto/DBD/Oracle/Oracle.h (unchanged)<br />
Skip blib/lib/DBD/Oracle/Object.pm (unchanged)<br />
Skip blib/arch/auto/DBD/Oracle/mk.pm (unchanged)<br />
Skip blib/lib/DBD/Oracle/GetInfo.pm (unchanged)<br />
cc -c  -I/opt/instantclient//sdk/include -I/opt/csw/lib/perl/csw/auto/DBI -D_REENTRANT -xO3 -xtarget=generic -xarch=generic -I/opt/csw/bdb44/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xtarget=generic -xarch=generic   -DVERSION=\&#8221;1.23\&#8221; -DXS_VERSION=\&#8221;1.23\&#8221; -KPIC &#8220;-I/opt/csw/lib/perl/5.8.8/CORE&#8221;  -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\&#8221;10.2.0.1\&#8221; Oracle.c<br />
cc -c  -I/opt/instantclient//sdk/include -I/opt/csw/lib/perl/csw/auto/DBI -D_REENTRANT -xO3 -xtarget=generic -xarch=generic -I/opt/csw/bdb44/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xtarget=generic -xarch=generic   -DVERSION=\&#8221;1.23\&#8221; -DXS_VERSION=\&#8221;1.23\&#8221; -KPIC &#8220;-I/opt/csw/lib/perl/5.8.8/CORE&#8221;  -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\&#8221;10.2.0.1\&#8221; dbdimp.c<br />
cc -c  -I/opt/instantclient//sdk/include -I/opt/csw/lib/perl/csw/auto/DBI -D_REENTRANT -xO3 -xtarget=generic -xarch=generic -I/opt/csw/bdb44/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xtarget=generic -xarch=generic   -DVERSION=\&#8221;1.23\&#8221; -DXS_VERSION=\&#8221;1.23\&#8221; -KPIC &#8220;-I/opt/csw/lib/perl/5.8.8/CORE&#8221;  -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\&#8221;10.2.0.1\&#8221; oci8.c<br />
Running Mkbootstrap for DBD::Oracle ()<br />
chmod 644 Oracle.bs<br />
rm -f blib/arch/auto/DBD/Oracle/Oracle.so<br />
LD_RUN_PATH=&#8221;/opt/instantclient&#8221; cc  -G -L/opt/csw/bdb44/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -L/lib Oracle.o dbdimp.o oci8.o  -o blib/arch/auto/DBD/Oracle/Oracle.so  \<br />
           -L/opt/instantclient/ -lclntsh       \</p>
<p>chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so<br />
cp Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs<br />
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs<br />
/opt/csw/bin/perl &#8220;-Iblib/arch&#8221; &#8220;-Iblib/lib&#8221; ora_explain.PL ora_explain<br />
Extracted ora_explain from ora_explain.PL with variable substitutions.<br />
cp ora_explain blib/script/ora_explain<br />
/opt/csw/bin/perl &#8220;-MExtUtils::MY&#8221; -e &#8220;MY-&gt;fixin(shift)&#8221; blib/script/ora_explain<br />
Manifying blib/man1/ora_explain.1<br />
Manifying blib/man3/DBD::Oracle.3perl<br />
Manifying blib/man3/DBD::Oraperl.3perl<br />
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree<br />
Writing /opt/csw/lib/perl/site_perl/auto/DBD/Oracle/.packlist<br />
Appending installation info to /opt/csw/lib/perl/5.8.8/perllocal.pod<br />
(TCSUNDEV01:/var/tmp/DBD-Oracle-1.23) sysmgr &gt;</p></blockquote>
<p>And test:</p>
<blockquote><p>(TCSUNDEV01:/var/tmp/DBD-Oracle-1.23) sysmgr &gt; perl -MDBD::Oracle -le &#8216;print $DBD::Oracle::VERSION;&#8217;<br />
1.23</p></blockquote>
<p>Finally, lets put togeather a little perl script to query our sample table:</p>
<p> </p>
<blockquote><p>use DBI;</p>
<p>$dbh = DBI-&gt;connect(&#8216;dbi:Oracle:&#8217;, <a href="mailto:q{smuser/smuserpw@(DESCRIPTION">q{USER/PASSWORD@(DESCRIPTION</a> =<br />
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.17.58.22)(PORT = 1521))<br />
    (CONNECT_DATA =<br />
      (SERVER = DEDICATED)<br />
      (SERVICE_NAME = XE)<br />
    )<br />
  )},&#8221;") or die DBI::errstr;</p>
<p>$dbstr = $dbh-&gt;prepare(&#8220;SELECT id, username, hostname FROM sm_user_config&#8221;);<br />
$dbstr-&gt;execute;<br />
$~ = TABLEHEADER;<br />
write;</p>
<p>while (($rdbid, $rdbu, $rdbv) = $dbstr-&gt;fetchrow_array()) {<br />
        $~ = TABLEENTRY;<br />
        write;<br />
}</p>
<p>$~ = TABLEBOTTOM;<br />
write;<br />
print &#8220;\n&#8221;;</p>
<p> </p>
<p>format TABLEHEADER =</p>
<p>+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| ID     |   User          |  VMName        |<br />
+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
.</p>
<p>format TABLEENTRY =<br />
| @&lt;&lt;&lt;&lt;&lt; | @&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;   | @&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; |<br />
 $rdbid,   $rdbu,            $rdbv<br />
.</p>
<p>format TABLEBOTTOM =<br />
+&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
.</p>
<p> </p></blockquote>
<p>Running it, we get:</p>
<p> </p>
<blockquote><p>
<code><br />
(TCSUNDEV01:~) sysmgr &gt; perl ora2.pl</p>
<p>+--------+-----------------+---------+<br />
| ID        |   User          |  VMName     |<br />
+--------+-----------------+---------+<br />
| 1         | HoustonN     | VXPTEST39   |<br />
| 3         | UserTest      | VXPTEST2    |<br />
| 2         | TestUser      | VXPTEST5    |<br />
+--------+-------------+-------------+<br />
</code></p>
<p> </p></blockquote>
<p>(Formatting got a bit messed up when I pasted, but you get the idea =)<br />
Party on!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/houst0n.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/houst0n.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/houst0n.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/houst0n.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/houst0n.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/houst0n.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/houst0n.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/houst0n.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/houst0n.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/houst0n.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/houst0n.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/houst0n.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/houst0n.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/houst0n.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=houst0n.wordpress.com&amp;blog=8001186&amp;post=62&amp;subd=houst0n&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://houst0n.wordpress.com/2009/06/25/accessing-an-oracle-10g-database-with-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8ca575e8d2faf6e77f82b3dd214ef92?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">houst0n</media:title>
		</media:content>
	</item>
	</channel>
</rss>
