<?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>EveryDay Practical Solutions for an Oracle&#124;SQL Server DBA &#187; Scripts</title>
	<atom:link href="http://www.oracledbasupport.co.uk/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oracledbasupport.co.uk</link>
	<description>This is my (Sagar PATIL ) blog to list day to day issues</description>
	<lastBuildDate>Fri, 20 Jan 2012 22:39:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Shell Script to Generate Daily/Weekly AWR reports (Email)</title>
		<link>http://www.oracledbasupport.co.uk/shell-script-to-generate-dailyweekly-awr-reports/</link>
		<comments>http://www.oracledbasupport.co.uk/shell-script-to-generate-dailyweekly-awr-reports/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 08:18:08 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[General DBA Tasks]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[AWR]]></category>
		<category><![CDATA[configuration file]]></category>
		<category><![CDATA[fi]]></category>
		<category><![CDATA[File]]></category>
		<category><![CDATA[Home]]></category>
		<category><![CDATA[OCt]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/?p=2666</guid>
		<description><![CDATA[Create  .run_awr with following details  : "TNS-connect-string : recipient-list : hrs of AWR snapshot" [oracle@ ~]$ cat .run_awr prod:root@oracledbasupport.co.uk:11 I added this script in my crontab for a daily emails: ########## Daily Export of AWR reports 02 18 * * * /home/oracle/.awr_daily.sh  &#62;&#62; /home/oracle/awr.log 2&#62;&#38;1 [oracle@awr_reports]$ ls -lrt -rw-r--r-- 1 oracle oracle 315104 Oct 26 [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/shell-script-to-generate-dailyweekly-awr-reports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compare and Display difference between 2 Files</title>
		<link>http://www.oracledbasupport.co.uk/compare-and-display-difference-between-2-files/</link>
		<comments>http://www.oracledbasupport.co.uk/compare-and-display-difference-between-2-files/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 16:04:31 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Cell]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[nline]]></category>
		<category><![CDATA[task]]></category>
		<category><![CDATA[WebSphere]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/?p=1777</guid>
		<description><![CDATA[Comparing Files is one of very common task as a DBA, System Administrator. There are tonnes of Oracle,Websphere,linux configuration files. Often I have to compare one server to another and locate changes between environments. Recently one of my websphere server broke down. Despite my good efforts I couldn&#8217;t revive it so I had to restore [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/compare-and-display-difference-between-2-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle 10g script for User/Role/Object Privileges</title>
		<link>http://www.oracledbasupport.co.uk/oracle-10g-script-for-userroleobject-privileges/</link>
		<comments>http://www.oracledbasupport.co.uk/oracle-10g-script-for-userroleobject-privileges/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 11:11:54 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[INCFIL]]></category>
		<category><![CDATA[INCVID]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[Test]]></category>
		<category><![CDATA[User]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/2009/11/oracle-10g-script-for-object-privileges/</guid>
		<description><![CDATA[Imagine you have to drop an Oracle user and create it with all privs/roles again.  This often happens in test cycle of 3rd party products. The privs are sent to user on ad hoc basis to get around the installation errors and then comes requirement to replicate it on another server.  How do you do [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/oracle-10g-script-for-userroleobject-privileges/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell Script to Delete / Copy/ Zip files older than X hours</title>
		<link>http://www.oracledbasupport.co.uk/shell-script-to-delete-copy-zip-files-older-than-x-hours/</link>
		<comments>http://www.oracledbasupport.co.uk/shell-script-to-delete-copy-zip-files-older-than-x-hours/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 09:49:55 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Delete / Copy/ Zip files older than X hours]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/shell-script-to-delete-copy-zip-files-older-than-x-hours/</guid>
		<description><![CDATA[#!/bin/bash # Delete files older than X hours. # This script will delete files older than 3 days from $GLOBALSHARE/current/Server01 # 14 days from $GLOBALSHARE/archive/Server01 &#38; 14 days from /backup CurrentPath=&#8221;/globalshare/current/Server01&#8243; ArchivePath=&#8221;/globalshare/archive/Server01&#8243; LocalPath=&#8221;/backup&#8221; log=/home/oracle/scripts/delete_old_files.log err=/home/oracle/scripts/delete_old_files.err # Use mmin variable for file modified timestamp &#38; cmin for file creation # Delete from Archive Directory # 14 [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/shell-script-to-delete-copy-zip-files-older-than-x-hours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell Script : Copy files from local folder to a Samba/NFS share</title>
		<link>http://www.oracledbasupport.co.uk/shell-script-copy-files-from-local-folder-to-a-sambanfs-share/</link>
		<comments>http://www.oracledbasupport.co.uk/shell-script-copy-files-from-local-folder-to-a-sambanfs-share/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 09:30:48 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[copy files]]></category>
		<category><![CDATA[Copy files from local folder to a Samba/NFS share]]></category>
		<category><![CDATA[Shell script to copy files]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/1514/</guid>
		<description><![CDATA[#!/bin/bash source=&#8221;/backup&#8221; remotePath=&#8221;/globalbackup/current&#8221; archivePath=&#8221;/globalbackup/archive&#8221; log=/home/oracle/scripts/cp_to_share.log err=/home/oracle/scripts/cp_to_share.err # I am going to rename files with timestamp so old shell files are preserved for future reference timestamp=`date +%Y-%m-%d-%H%M` #Move the shell file cp_to_share.sh mv -f /home/oracle/scripts/cp_to_share.sh /home/oracle/scripts/cp_to_share.sh$timestamp mv $log $log$timestamp mv $err $err$timestamp echo &#8220;### Let&#8217;s Move files copied y&#8217;day from remotePath to archivePath&#8221; &#62;&#62; /home/oracle/scripts/cp_to_share.sh # [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/shell-script-copy-files-from-local-folder-to-a-sambanfs-share/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL server Simplest data loading script</title>
		<link>http://www.oracledbasupport.co.uk/sql-server-simplest-data-loading-script/</link>
		<comments>http://www.oracledbasupport.co.uk/sql-server-simplest-data-loading-script/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 17:27:15 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[data loading]]></category>
		<category><![CDATA[data-loading script]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/simplest-data-loading-script/</guid>
		<description><![CDATA[T-SQL script to add a server load . I have used this script to test backup timings, replication latency. One run of following procedure incerased log fie to 8GB and datafile to 6GB use subscriber_A go if exists (select * from sysobjects where name = &#8216;Load_Data&#8217;) drop table Load_Data go create table Load_Data ( x [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/sql-server-simplest-data-loading-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compare and copy files remotely using SCP</title>
		<link>http://www.oracledbasupport.co.uk/compare-and-copy-files-remotely-using-scp/</link>
		<comments>http://www.oracledbasupport.co.uk/compare-and-copy-files-remotely-using-scp/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 13:30:42 +0000</pubDate>
		<dc:creator>Sagar Patil</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Archive]]></category>
		<category><![CDATA[cksum]]></category>
		<category><![CDATA[File]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[timeStamp]]></category>

		<guid isPermaLink="false">http://www.oracledbasupport.co.uk/2009/03/03/compare-and-copy-files-remotely-using-scp/</guid>
		<description><![CDATA[Following script will only work if your servers were enabled with password less login ( How to for linux /HP UNIX) For TRUE64 Unix , I am using cksum here instead of linux md5sum. To use same script for linux just change cksum to md5sum or un comment lines in script. Usage : 1. Your [...]]]></description>
		<wfw:commentRss>http://www.oracledbasupport.co.uk/compare-and-copy-files-remotely-using-scp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

