<?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/"
	>

<channel>
	<title>Oracle Database Experts &#187; Unix</title>
	<atom:link href="http://www.dbaexpert.com/blog/category/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbaexpert.com/blog</link>
	<description>By Charles Kim</description>
	<lastBuildDate>Mon, 06 Sep 2010 14:07:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>View your alert.log file in Oracle Database 11g</title>
		<link>http://www.dbaexpert.com/blog/2010/08/view-your-alert-log-file-in-oracle-database-11g/</link>
		<comments>http://www.dbaexpert.com/blog/2010/08/view-your-alert-log-file-in-oracle-database-11g/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 04:52:50 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[ASM]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RAC]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=874</guid>
		<description><![CDATA[
function ALERT {
export DB1=$ORACLE_SID
export DB=$(echo $ORACLE_SID&#124;tr '[A-Z]' '[a-z]' &#124;sed -e '$s/.$//')
export ASMDB=rdbms
if [ &#34;$DB&#34; = &#34;+asm&#34; ]; then export ASMDB=asm ; fi
if [ &#34;$DB&#34; = &#34;+as&#34; ]; then export ASMDB=asm ; export DB=&#34;+asm&#34;; fi
[ -d &#34;$ORACLE_BASE/diag/$ASMDB/$DB/$ORACLE_SID/trace&#34; ] &#38;&#38; view $ORACLE_BASE/diag/$ASMDB/$DB/$ORACLE_SID/trace/alert_$ORACLE_SID.log &#124;&#124;view $ORACLE_BASE/diag/$ASMDB/$DB1/$ORACLE_SID/trace/alert_$ORACLE_SID.log
}

Notes:
*  Works in both RAC and non-RAC.
*  Works for ASM and non-ASM [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2010/08/view-your-alert-log-file-in-oracle-database-11g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change directory to the trace directory in Oracle Database 11g</title>
		<link>http://www.dbaexpert.com/blog/2010/08/change-directory-to-the-trace-directory-in-11g/</link>
		<comments>http://www.dbaexpert.com/blog/2010/08/change-directory-to-the-trace-directory-in-11g/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 04:43:58 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=858</guid>
		<description><![CDATA[
function trace {
# DB = The sed command strips off the last character of ORACLE_SID off
export DB1=$ORACLE_SID
export DB=$(echo $ORACLE_SID&#124;tr '[A-Z]' '[a-z]' &#124;sed -e '$s/.$//')
export ASMDB=rdbms
if [ &#34;$DB&#34; = &#34;+asm&#34; ]; then export ASMDB=asm ; fi
if [ &#34;$DB&#34; = &#34;+as&#34; ]; then export ASMDB=asm ; fi
[ -d &#34;$ORACLE_BASE/diag/$ASMDB/$DB/$ORACLE_SID/trace&#34; ] &#38;&#38; cd $ORACLE_BASE/diag/$ASMDB/$DB/$ORACLE_SID/trace &#124;&#124; cd $ORACLE_BASE/diag/$ASMDB/$DB1/$ORACLE_SID/trace
}

Notes:
*  [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2010/08/change-directory-to-the-trace-directory-in-11g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One Liner to View the Inventory XML file</title>
		<link>http://www.dbaexpert.com/blog/2009/12/view-inventory-xml-file-with-a-single-command/</link>
		<comments>http://www.dbaexpert.com/blog/2009/12/view-inventory-xml-file-with-a-single-command/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 14:04:36 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=772</guid>
		<description><![CDATA[Solaris:

cat /var/opt/oracle/oraInst.loc &#124;grep inventory_loc &#124;cut -d= -f2 &#124;xargs -I {} -t cat {}/ContentsXML/inventory.xml

Linux and other Unix OS:

cat /etc/oraInst.loc &#124;grep inventory_loc &#124;cut -d= -f2 &#124;xargs -I {} -t cat {}/ContentsXML/inventory.xml

Notes:
1.  The -t option tells it to display out the syntax before execution
2.  The -I is for Insert mode. utility is  executed  for [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2009/12/view-inventory-xml-file-with-a-single-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tablespace Monitoring Script</title>
		<link>http://www.dbaexpert.com/blog/2008/01/tablespace-monitoring-script/</link>
		<comments>http://www.dbaexpert.com/blog/2008/01/tablespace-monitoring-script/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 22:55:00 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=107</guid>
		<description><![CDATA[Imagine a comprehensive monitoring script that will allow you to customize how many times an alert will be sent. Not only does it tell you the alert but it also informs you the incident number of the alert. Here&#8217;s an example of the subject of the message that you will receive:
Tablespace Threshold:DB:WARNING:rac01.dbaexpert.com:gc::Alert#: 5 for Tbsp_Free [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2008/01/tablespace-monitoring-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Database Related Daily Cleanup Job</title>
		<link>http://www.dbaexpert.com/blog/2008/01/oracle-database-related-daily-cleanup-job/</link>
		<comments>http://www.dbaexpert.com/blog/2008/01/oracle-database-related-daily-cleanup-job/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 18:38:58 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=105</guid>
		<description><![CDATA[#!/bin/ksh
# Script: oracle_cleanup.daily.ksh
# Purpose: remove unneeded files
# Note:
#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
# Modifications
# Date By Change Made
# &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
#
#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
# This script runs weekly on an UNIX system and performs a cleanup on
# Oracle files and/or logs that accumulate on a UNIX system. In some cases,
# the files are truncated; in other cases they are simply removed.
#
# Any and [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2008/01/oracle-database-related-daily-cleanup-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using rdist to synchronize file systems</title>
		<link>http://www.dbaexpert.com/blog/2008/01/using-rdist-to-synchronize-file-systems/</link>
		<comments>http://www.dbaexpert.com/blog/2008/01/using-rdist-to-synchronize-file-systems/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 08:23:00 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=104</guid>
		<description><![CDATA[rdist versions 6.1 and greater can use ssh instead of rsh using the -P option:
-P &#60;transport-path&#62;Set the path to the transport command to be used. This is normally rsh(1c) but can be any other program &#8211; such asssh(1) &#8211; which understands rsh(1c) command line syntax and which provides an appropriate connection to the remotehost. The [...]]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2008/01/using-rdist-to-synchronize-file-systems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use uuencode from unix to attach files to mail recipients</title>
		<link>http://www.dbaexpert.com/blog/2007/11/use-uuencode-from-unix-to-attach-files-to-mail-recipients/</link>
		<comments>http://www.dbaexpert.com/blog/2007/11/use-uuencode-from-unix-to-attach-files-to-mail-recipients/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 23:23:22 +0000</pubDate>
		<dc:creator>ckim</dc:creator>
				<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.dbaexpert.com/blog/?p=95</guid>
		<description><![CDATA[The rpm that is required to install uucp in Redhat is sharutils:
root# rpm -ihv sharutils-4.2.1-22.2.x86_64.rpm
Preparing&#8230; ########################################### [100%]
1:sharutils ########################################### [100%]
Once you have uuencode installed and configured, you can attach file using the example code below:
uuencode rman_backup.ksh rman_backup.ksh &#124;mailx -s &#8220;Attached rman backup shell script&#8221; oradba@dbaexpert.com
Posted by:  Charles Kim @ DBAExpert.com
]]></description>
		<wfw:commentRss>http://www.dbaexpert.com/blog/2007/11/use-uuencode-from-unix-to-attach-files-to-mail-recipients/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
