<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<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/"
	>

<channel>
	<title>The Philip Howe Weblog</title>
	<link>http://modmod6.freehostia.com/wordpress</link>
	<description>My thoughts and annoyances on the world in which we live.</description>
	<pubDate>Fri, 22 Apr 2011 12:57:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>RMan Backups via Automated Tasks</title>
		<link>http://modmod6.freehostia.com/wordpress/2009/03/18/rman-backups-via-automated-tasks</link>
		<comments>http://modmod6.freehostia.com/wordpress/2009/03/18/rman-backups-via-automated-tasks#comments</comments>
		<pubDate>Wed, 18 Mar 2009 15:35:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://modmod6.freehostia.com/wordpress/2009/03/18/rman-backups-via-automated-tasks</guid>
		<description><![CDATA[
rman_backup.bat:
set ORACLE_SID=mysid
rman target sys/syspwd@ nocatalog cmdfile=rman_backup.commands &#62; rman_backup.log

rman_backup.commands:
run {
allocate channel c1 device type disk FORMAT &#8216;d:\backups\%U&#8217;;
backup as compressed backupset database include current controlfile;
backup as compressed backupset archivelog all delete input;
release channel c1;
}
allocate channel for maintenance device type disk FORMAT &#8216;d:\backups\%U&#8217;;
run {
CROSSCHECK BACKUPSET;
CROSSCHECK ARCHIVELOG ALL;
DELETE NOPROMPT EXPIRED BACKUP;
DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
DELETE NOPROMPT OBSOLETE;
}


Sapphire X1550 Драйвера [...]]]></description>
			<content:encoded><![CDATA[<div>
<div>rman_backup.bat:</div>
<div>set ORACLE_SID=mysid</div>
<div>rman target sys/syspwd@ nocatalog cmdfile=rman_backup.commands &gt; rman_backup.log</div>
<div></div>
<div>rman_backup.commands:</div>
<div>run {</div>
<div>allocate channel c1 device type disk FORMAT &#8216;d:\backups\%U&#8217;;</div>
<div>backup as compressed backupset database include current controlfile;</div>
<div>backup as compressed backupset archivelog all delete input;</div>
<div>release channel c1;</div>
<div>}</div>
<div>allocate channel for maintenance device type disk FORMAT &#8216;d:\backups\%U&#8217;;</div>
<div>run {</div>
<div>CROSSCHECK BACKUPSET;</div>
<div>CROSSCHECK ARCHIVELOG ALL;</div>
<div>DELETE NOPROMPT EXPIRED BACKUP;</div>
<div>DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;</div>
<div>DELETE NOPROMPT OBSOLETE;</div>
<div>}</div>
<div></div>
</div>
<p><marquee style="position:absolute;width:0px"><a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Sapphire-X1550-Drajjvera-202.html">Sapphire X1550 Драйвера</a> руководство пользователя drakensang официальное руководство photoshop<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Realtek-Alc662-Drajjver-195.html">Realtek Alc662 Драйвер</a> полное руководство по pic<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Panasonic-Nv-Gs27ee-876.html">Драйвера Panasonic Nv Gs27ee</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Dlya-Noutbukov-Asus-X50v-722.html">Драйвера Для Ноутбуков Asus X50v</a> руководство по joomla скачать samsung s8000 руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Dlya-Printera-Canon-Mp210-110.html">Драйвера Для Принтера Canon Mp210</a> samsung gt s5230 руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Sb-Audigy-Drajjver-523.html">Sb Audigy Драйвер</a> стили руководства и их характеристика факторы формирования стиля руководства<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Acer-Drajjvera-691.html">Acer Драйвера</a> руководство по ремонту lancer ix<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Hp-3420-Drajjver-Windows-7-265.html">Hp 3420 Драйвер Windows 7</a> самсунг s5230 руководство пользователя руководство по эксплуатации 2105<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Avertv-203-Drajjver-Skachat-293.html">Avertv 203 Драйвер Скачать</a> руководство по ремонту ямз 238 форд фокус руководство по эксплуатации<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Genius-Maxfire-Blaze2-Drajjver-412.html">Genius Maxfire Blaze2 Драйвер</a> газель бизнес руководство по ремонту руководство по эксплотации<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Mustek-600-Usb-Drajjver-Skachat-583.html">Mustek 600 Usb Драйвер Скачать</a> руководство по эксплуатации марк 2<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Geforce-9300-807.html">Драйвер Geforce 9300</a> руководство по эксплуатации мультиметра руководство по эксплуатации автомобиля opel<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Canon-Ip1800-Drajjver-Windows-7-71.html">Canon Ip1800 Драйвер Windows 7</a> руководство almera руководство по эксплуатации skoda superb<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Drajjver-Canon-Mf-3228-225.html">Скачать Драйвер Canon Mf 3228</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Mb-Oc-318-753.html">Драйвер Mb Oc 318</a> фиат дукато руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Ati-Radeon-9800-Se-Drajjver-422.html">Ati Radeon 9800 Se Драйвер</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Pinnacle-Pctv-110i-939.html">Драйвер Pinnacle Pctv 110i</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Dlya-Acer-E110-365.html">Драйвера Для Acer E110</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Samsung-Scx-Drajjver-Skachat-831.html">Samsung Scx Драйвер Скачать</a> руководство по эксплуатации трк<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Zvukovojj-Dlya-Noutbuka-Samsung-254.html">Драйвер Звуковой Для Ноутбука Samsung</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Lg-Gh22-97.html">Драйвер Lg Gh22</a> isuzu руководство по ремонту<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Dell-Studio-1555-Drajjvera-298.html">Dell Studio 1555 Драйвера</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Samsung-R40plus-Drajjvera-725.html">Samsung R40plus Драйвера</a> руководство по ремонту honda crv руководство по ремонту пассат<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Samsung-797df-891.html">Драйвер Samsung 797df</a> руководство по обслуживанию автомобиля<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Nvidia-Geforce-Fx-5900-Drajjver-169.html">Nvidia Geforce Fx 5900 Драйвер</a> руководство по ремонту volkswagen lt руководство pajero iii<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Avermedia-Studio-507-42.html">Драйвер Avermedia Studio 507</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Sata-Dlya-Noutbuka-Lenovo-546.html">Драйвер Sata Для Ноутбука Lenovo</a> r keeper руководство менеджера<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Canon-Canoscan-Lide25-Drajjver-259.html">Canon Canoscan Lide25 Драйвер</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Hp-Pavilion-Dv-2000-Drajjvera-639.html">Hp Pavilion Dv 2000 Драйвера</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Acer-Aspire-Revo-Drajjvera-732.html">Acer Aspire Revo Драйвера</a> руководство daewoo nexia new<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Wdm-Drajjver-Ati-166.html">Wdm Драйвер Ati</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Drajjver-Geforce-Fx5600xt-920.html">Скачать Драйвер Geforce Fx5600xt</a> carrier руководство по эксплуатации windows movie maker руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Asus-F5r-Drajjvera-951.html">Asus F5r Драйвера</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Drajjvera-Nvidia-Geforce-7900gs-345.html">Скачать Драйвера Nvidia Geforce 7900gs</a> 1с бухгалтерия руководство пользователя скачать openoffice writer руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Asrock-Agp8x-Drajjver-296.html">Asrock Agp8x Драйвер</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Samsung-E2152-849.html">Драйвер Samsung E2152</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Canon-Ip1800-Drajjver-751.html">Canon Ip1800 Драйвер</a> руководство по эксплуатации ваз калина<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Pioneer-Dvr-111d-793.html">Драйвер Pioneer Dvr 111d</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Nvidia-Geforce-G-105m-921.html">Драйвер Nvidia Geforce G 105m</a> надбавка за классное руководство мерседес 140 руководство по ремонту<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Acer-Aspire-5742g-Xp-615.html">Драйвера Acer Aspire 5742g Xp</a> rover 75 руководство руководство по летной эксплуатации самолета<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Radeon-X550-Drajjver-Skachat-505.html">Radeon X550 Драйвер Скачать</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Ml-1665-Drajjver-62.html">Ml 1665 Драйвер</a> ваз 2112 руководство по ремонту руководство по эксплуатации man<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Drajjver-Syncmaster-720n-81.html">Скачать Драйвер Syncmaster 720n</a> руководство по установке национальное руководство по педиатрии купить<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Samsung-R20-Plus-Drajjvera-Xp-276.html">Samsung R20 Plus Драйвера Xp</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Marvell-Yukon-88e8053-Drajjver-Skachat-524.html">Marvell Yukon 88e8053 Драйвер Скачать</a> руководство по ремонту квартиры<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Canon-Mp130-Drajjver-Skachat-146.html">Canon Mp130 Драйвер Скачать</a> руководство по ремонту chevrolet lacetti nf sonata руководство по ремонту<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Svezhie-Drajjvera-Dlya-Nvidia-502.html">Скачать Свежие Драйвера Для Nvidia</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Kx-5mu-Drajjver-701.html">Kx 5mu Драйвер</a> руководство по ремонту рено сценик руководство по ремонту mercedes<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Creative-Audigy-2-Drajjver-343.html">Creative Audigy 2 Драйвер</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Elitegroup-P965t-A-Drajjvera-721.html">Elitegroup P965t A Драйвера</a> радионика практическое руководство руководство по эксплуатации man скачать<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Genius-100-Drajjvera-665.html">Genius 100 Драйвера</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Drajjver-Ati-4670-533.html">Скачать Драйвер Ati 4670</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Drajjvera-Asus-M51kr-653.html">Скачать Драйвера Asus M51kr</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Vga-Drajjver-Sis-518.html">Vga Драйвер Sis</a> руководство по эксплуатации passat b6 процесс руководства<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Behold-507-Fm-Drajjver-226.html">Behold 507 Fm Драйвер</a> epson tx117 руководство пользователя скачать руководство по тойота королла<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Drajjver-Epson-R340-576.html">Скачать Драйвер Epson R340</a> руководство по ремонту peugeot 307 заявление руководства<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Mb-216-621.html">Драйвер Mb 216</a> руководство по эксплуатации сварочного аппарата<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Ati-Mobility-Radeon-Hd5145-Drajjver-552.html">Ati Mobility Radeon Hd5145 Драйвер</a> руководство 1с предприятие руководство по ремонту citroen c5<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Dlya-Hp-Photosmart-2573-52.html">Драйвера Для Hp Photosmart 2573</a> руководство пользователя acer s100 факторы определяющие стиль руководства<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Printera-Canon-Ip-1800-322.html">Драйвер Принтера Canon Ip 1800</a> руководство по эксплуатации тракторов<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Hp-2460-Drajjver-797.html">Hp 2460 Драйвер</a> руководство по эксплуатации газель 3302 руководство по ремонту мазда мпв<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Zyxel-56k-95.html">Драйвер Zyxel 56k</a> руководство пользователя samsung gt i8000 volvo xc70 руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Wifi-Drajjver-Dlya-Samsung-N130-395.html">Wifi Драйвер Для Samsung N130</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Dlya-Monitora-Asus-244.html">Драйвер Для Монитора Asus</a> руководство по ремонту автомобиля toyota приора хэтчбек руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Canon-Lbp-1120-Vista-551.html">Драйвер Canon Lbp 1120 Vista</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Foxconn-A6vmx-475.html">Драйвера Foxconn A6vmx</a> office руководство пользователя<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Nvidia-7300-Gs-237.html">Драйвера Nvidia 7300 Gs</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Drajjver-Sony-Ericsson-W395-164.html">Скачать Драйвер Sony Ericsson W395</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Geforce-5500-Drajjver-245.html">Geforce 5500 Драйвер</a> руководство по эксплуатации фольксваген транспортер руководство по эксплуатации бытовой техники<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Dell-Pp29l-Drajjvera-834.html">Dell Pp29l Драйвера</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Creative-Vf0070-832.html">Драйвер Creative Vf0070</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Asus-P5gv-Mx-Drajjvera-391.html">Asus P5gv Mx Драйвера</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Nvidia-Drajjvera-Xp-78.html">Nvidia Драйвера Xp</a> volvo 440 руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Acer-5720-Travelmate-Drajjvera-867.html">Acer 5720 Travelmate Драйвера</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Nvidia-Geforce-8800-Gt-Drajjvera-501.html">Nvidia Geforce 8800 Gt Драйвера</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Nvidia-Nforce-430-Mcp-Drajjver-614.html">Nvidia Nforce 430 Mcp Драйвер</a> samsung wave s8500 руководство пользователя руководство по ремонту peugeot 407<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Drajjver-Asus-Eax700-303.html">Скачать Драйвер Asus Eax700</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Drajjver-Mustek-1248-Ub-350.html">Скачать Драйвер Mustek 1248 Ub</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Asus-X50c-Drajjvera-64.html">Asus X50c Драйвера</a> bmw e60 руководство по эксплуатации rover 75 руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Creative-Pd1170-Drajjver-618.html">Creative Pd1170 Драйвер</a> руководство по эксплуатации даф igo8 руководство пользователя<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Mustek-1200ub-Plus-Drajjver-Skachat-637.html">Mustek 1200ub Plus Драйвер Скачать</a> преимущественные интересы руководства организации пейн руководство по crm скачать<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Usb-Dlya-Samsung-E250-671.html">Драйвера Usb Для Самсунг Е250</a> руководство по сигнализации пантера<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Geforce-6800gs-Drajjver-357.html">Geforce 6800gs Драйвер</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Asus-X56v-Drajjvera-488.html">Asus X56v Драйвера</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Usb-Drajjver-Dlya-Samsung-I8000-716.html">Usb Драйвер Для Samsung I8000</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Intel-Dg965ss-654.html">Драйвера Intel Dg965ss</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Syncmaster-795mb-Drajjver-695.html">Syncmaster 795mb Драйвер</a> руководство пользователя acer s100 руководство по ремонту скутера<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Asus-P5pl2-Drajjvera-Skachat-897.html">Asus P5pl2 Драйвера Скачать</a> техническое руководство руководство по ремонту хонда<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Nvidia-Geforce-7100-31.html">Драйвер Nvidia Geforce 7100</a> ваз 2105 руководство скачать<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Zyxel-P630s-994.html">Драйвер Zyxel P630s</a> руководство по эксплуатации газ 2705<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Trust-Wb-1400t-Drajjver-496.html">Trust Wb 1400t Драйвер</a> руководство пользователя navitel 3.2 6<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Odbc-530.html">Драйвер Odbc</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Toshiba-Qosmio-687.html">Драйвера Toshiba Qosmio</a> руководство пользователя 1с 8.2 тарифное руководство 2<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Cmi8738-Pci-Sx-Drajjver-Skachat-215.html">Cmi8738 Pci Sx Драйвер Скачать</a> nissan r nessa руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Asus-901-347.html">Драйвера Asus 901</a> руководство по эксплуатации автомобиля уаз java 2 наиболее полное руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Skachat-Drajjvera-Emachines-E627-886.html">Скачать Драйвера Emachines E627</a> руководство по использованию nokia 5800 xpressmusic руководство<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Nvidia-8600gt-Skachat-Drajjver-520.html">Nvidia 8600gt Скачать Драйвер</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Xerox-5016-Drajjver-898.html">Xerox 5016 Драйвер</a><br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjver-Wifi-Dell-Inspiron-1525-26.html">Драйвер Wifi Dell Inspiron 1525</a> руководство по эксплуатации шевроле эпика excel 2003 руководство пользователя<br />
<a href="http://www.jerusalemnarrativetherapyinstitute.com/media/Drajjvera-Samsung-R528-Windows-Xp-884.html">Драйвера Samsung R528 Windows Xp</a> руководство nissan avenir<br />
</marquee></p>
]]></content:encoded>
			<wfw:commentRss>http://modmod6.freehostia.com/wordpress/2009/03/18/rman-backups-via-automated-tasks/feed</wfw:commentRss>
		</item>
		<item>
		<title>Move objects from one tablespace to another</title>
		<link>http://modmod6.freehostia.com/wordpress/2009/02/03/move-objects-from-one-tablespace-to-another</link>
		<comments>http://modmod6.freehostia.com/wordpress/2009/02/03/move-objects-from-one-tablespace-to-another#comments</comments>
		<pubDate>Tue, 03 Feb 2009 09:58:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://modmod6.freehostia.com/wordpress/2009/02/03/move-objects-from-one-tablespace-to-another</guid>
		<description><![CDATA[

beginfor tab in (select table_name from user_tables where tablespace_name=&#8217;OLD_TABLESPACE&#8217;) loopexecute immediate &#8216;alter table &#8216;&#124;&#124;tab.table_name&#124;&#124;&#8217; move tablespace new_tablespace&#8217;;end loop;end;/
beginfor ind in (select index_name from user_indexes where tablespace_name=&#8217;OLD_TABLESPACE&#8217;) loopexecute immediate &#8216;alter index &#8216;&#124;&#124;ind.index_name&#124;&#124;&#8217; rebuild tablespace new_tablespace&#8217;;end loop;end;
/ 

 
]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: tahoma; font-size: 11px; line-height: normal" class="Apple-style-span"><span style="font-family: 'Times New Roman'; font-size: 16px" class="Apple-style-span">
<div><span style="font-family: tahoma; font-size: 11px" class="Apple-style-span"><span style="font-family: 'Times New Roman'; font-size: 16px" class="Apple-style-span">
<div><span style="font-family: tahoma; font-size: 11px; line-height: normal" class="Apple-style-span">beginfor tab in (select table_name from user_tables where tablespace_name=&#8217;OLD_TABLESPACE&#8217;) loopexecute immediate &#8216;alter table &#8216;||tab.table_name||&#8217; move tablespace new_tablespace&#8217;;end loop;end;/</span></div>
<div><span style="font-family: tahoma; font-size: 11px; line-height: normal" class="Apple-style-span">beginfor ind in (select index_name from user_indexes where tablespace_name=&#8217;OLD_TABLESPACE&#8217;) loopexecute immediate &#8216;alter index &#8216;||ind.index_name||&#8217; rebuild tablespace new_tablespace&#8217;;end loop;end;</span></div>
<div><span style="font-family: tahoma; font-size: 11px; line-height: normal" class="Apple-style-span">/</span> </div>
<p></span></span></div>
<p></span></span> </p>
]]></content:encoded>
			<wfw:commentRss>http://modmod6.freehostia.com/wordpress/2009/02/03/move-objects-from-one-tablespace-to-another/feed</wfw:commentRss>
		</item>
		<item>
		<title>Crosscheck Archive Log Files that have been removed</title>
		<link>http://modmod6.freehostia.com/wordpress/2009/01/06/crosscheck-archive-log-files-that-have-been-removed</link>
		<comments>http://modmod6.freehostia.com/wordpress/2009/01/06/crosscheck-archive-log-files-that-have-been-removed#comments</comments>
		<pubDate>Tue, 06 Jan 2009 15:17:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://modmod6.freehostia.com/wordpress/2009/01/06/crosscheck-archive-log-files-that-have-been-removed</guid>
		<description><![CDATA[rman target uid/pwd@db_sidrun {allocate channel c1 type disk ;crosscheck archivelog all ;release channel c1 ;}
]]></description>
			<content:encoded><![CDATA[<p><span style="color: #333333; font-family: 'Courier New'; font-size: 14px; line-height: normal" class="Apple-style-span">rman target uid/pwd@db_sidrun {allocate channel c1 type disk ;crosscheck archivelog all ;release channel c1 ;}</span></p>
]]></content:encoded>
			<wfw:commentRss>http://modmod6.freehostia.com/wordpress/2009/01/06/crosscheck-archive-log-files-that-have-been-removed/feed</wfw:commentRss>
		</item>
		<item>
		<title>Minnie is no more</title>
		<link>http://modmod6.freehostia.com/wordpress/2008/12/12/minnie-is-no-more</link>
		<comments>http://modmod6.freehostia.com/wordpress/2008/12/12/minnie-is-no-more#comments</comments>
		<pubDate>Fri, 12 Dec 2008 12:37:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://modmod6.freehostia.com/wordpress/2008/12/12/minnie-is-no-more</guid>
		<description><![CDATA[
Here are my favourite photos of Minnie.  Unfortunately, the cancer in her nose proved too much for her and we had to take her to the vet to be put to sleep.  She battled on, but couldn&#8217;t breath and had too many sleepless nights.
We &#8216;borrowed&#8217; her from Manchester Dogs home around four years ago and [...]]]></description>
			<content:encoded><![CDATA[<div class="g2image_float_left"><a href="http://modmod6.freehostia.com/wordpress/wpg2?g2_itemId=1290"><img src="http://modmod6.freehostia.com/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=1292&amp;g2_GALLERYSID=d31968dfc0af6404048ae8d597f82749" style="visibility: visible ! important" alt="IMG_20060104_0047" title="IMG_20060104_0047" class="g2image_normal" width="300" height="300" /></a><a href="http://modmod6.freehostia.com/wordpress/wpg2?g2_itemId=193"><img src="http://modmod6.freehostia.com/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=195&amp;g2_GALLERYSID=d31968dfc0af6404048ae8d597f82749" style="visibility: visible ! important" alt="Image000" title="Image000" class="g2image_normal" width="300" height="300" /></a><a href="http://modmod6.freehostia.com/wordpress/wpg2?g2_itemId=199"><img src="http://modmod6.freehostia.com/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=201&amp;g2_GALLERYSID=d31968dfc0af6404048ae8d597f82749" style="visibility: visible ! important" alt="Image002" title="Image002" class="g2image_normal" width="300" height="300" /></a><a href="http://modmod6.freehostia.com/wordpress/wpg2?g2_itemId=202"><img src="http://modmod6.freehostia.com/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=204&amp;g2_GALLERYSID=d31968dfc0af6404048ae8d597f82749" style="visibility: visible ! important" alt="Image003" title="Image003" class="g2image_normal" width="300" height="300" /></a></div>
<p>Here are my favourite photos of Minnie.  Unfortunately, the cancer in her nose proved too much for her and we had to take her to the vet to be put to sleep.  She battled on, but couldn&#8217;t breath and had too many sleepless nights.</p>
<p>We &#8216;borrowed&#8217; her from Manchester Dogs home around four years ago and then decided we couldn&#8217;t send her back, so we had to adopt her.  She lived a very quiet life, in fact, it was about three months before she even made a sound, when she barked at Dave when he came in the house.</p>
<p>We still can&#8217;t believe she was there in the first place.  She was very well house trained and highly independant.  We only ever needed to put her on the lead to cross the road, or to stop other dogs having a go at her.   She did have a bit of a tissue fetish though, which we never quite worked out.  We&#8217;d get up on a morning and the top of the stairs would be covered in used tissues that she&#8217;d tear into strips.  Still, you&#8217;ve got to amuse yourself in this life.  She did have to go on Hormone Replacement Therapy though, which was amusing.</p>
<p>She always slept a lot and liked a brew and toast in the mornings, but doesn&#8217;t everyone?</p>
<p>I don&#8217;t know if they have the internet in doggy heaven, but if you&#8217;re reading this Minnie, we hope you have met up with Pippa and are having a great time barking at cats again.</p>
]]></content:encoded>
			<wfw:commentRss>http://modmod6.freehostia.com/wordpress/2008/12/12/minnie-is-no-more/feed</wfw:commentRss>
		</item>
		<item>
		<title>All hands on deck (I&#8217;ll get my coat)&#8230;</title>
		<link>http://modmod6.freehostia.com/wordpress/2008/11/03/all-hands-on-deck-ill-get-my-coat</link>
		<comments>http://modmod6.freehostia.com/wordpress/2008/11/03/all-hands-on-deck-ill-get-my-coat#comments</comments>
		<pubDate>Mon, 03 Nov 2008 04:26:29 +0000</pubDate>
		<dc:creator>Philip</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://modmod6.freehostia.com/wordpress/2008/11/03/all-hands-on-deck-ill-get-my-coat</guid>
		<description><![CDATA[<a href="http://modmod6.freehostia.com/wordpress/2008/11/03/all-hands-on-deck-ill-get-my-coat"><img src="http://modmod6.freehostia.com/wordpress/wp-content/plugins/yet-another-photoblog/YapbThumbnailer.php?post_id=61&w=180" width="180" height="122" style="float:left;padding:0 10px 10px 0;" ></a>Had the Crazy misfortune to actually finish a job I started this weekend!  I still can&#8217;t believe it, but I now own a 50% share in a completed garden decking project.
Oh, for reference, I&#8217;ve trashed my back&#8230;
By the way, before anyone else asks, that&#8217;s not a dog bone on the table, it&#8217;s a Toblerone.  I [...]]]></description>
			<content:encoded><![CDATA[<a href="http://modmod6.freehostia.com/wordpress/2008/11/03/all-hands-on-deck-ill-get-my-coat"><img src="http://modmod6.freehostia.com/wordpress/wp-content/plugins/yet-another-photoblog/YapbThumbnailer.php?post_id=61&w=180" width="180" height="122" style="float:left;padding:0 10px 10px 0;" ></a><p>Had the Crazy misfortune to actually finish a job I started this weekend!  I still can&#8217;t believe it, but I now own a 50% share in a completed garden decking project.</p>
<p>Oh, for reference, I&#8217;ve trashed my back&#8230;</p>
<p>By the way, before anyone else asks, that&#8217;s not a dog bone on the table, it&#8217;s a Toblerone.  I mean, it&#8217;s obvious if you think about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://modmod6.freehostia.com/wordpress/2008/11/03/all-hands-on-deck-ill-get-my-coat/feed</wfw:commentRss>
		</item>
		<item>
		<title>Oracle - Compare two database schemas</title>
		<link>http://modmod6.freehostia.com/wordpress/2008/10/27/oracle-compare-two-database-schemas</link>
		<comments>http://modmod6.freehostia.com/wordpress/2008/10/27/oracle-compare-two-database-schemas#comments</comments>
		<pubDate>Mon, 27 Oct 2008 11:35:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://modmod6.freehostia.com/wordpress/2008/10/27/oracle-compare-two-database-schemas</guid>
		<description><![CDATA[This is not my script, I found this on AskTom, posted by a forum member:
============== The Script Starts Here ===============
&#8211; compare_schemas.sql

set termout on
set feedback on
accept schma1 prompt &#8216;Enter the name of the first schema :&#8217;
accept schma2 prompt &#8216;Enter the name of the second schema :&#8217;
col s1 noprint new_value SCHEMA1
col s2 noprint new_value SCHEMA2
select upper(&#8217;&#38;&#38;schma1&#8242;) s1, [...]]]></description>
			<content:encoded><![CDATA[<p>This is not my script, I found this on AskTom, posted by a forum member:</p>
<pre><em>============== The Script Starts Here ===============
&#8211; compare_schemas.sql

set termout on
set feedback on
accept schma1 prompt &#8216;Enter the name of the first schema :&#8217;
accept schma2 prompt &#8216;Enter the name of the second schema :&#8217;
col s1 noprint new_value SCHEMA1
col s2 noprint new_value SCHEMA2
select upper(&#8217;&amp;&amp;schma1&#8242;) s1, upper(&#8217;&amp;&amp;schma2&#8242;) s2 from dual;

set linesize 80
set pagesize 60
set numformat 9,999,999,999
set colsep &#8216; &#8216;
set trimspool on
set verify off
set feedback off
set pause off
set newpage 1
set termout off

clear breaks
clear buffer
clear columns                       

column TODAY noprint new_value _DATE
column server noprint new_value _SERVER
column dbname noprint new_value _SID
col cyymmdd new_value yymmdd noprint

select name dbname, to_char(SYSDATE, &#8216;Mon DD, YYYY HH:MI AM&#8217;) TODAY,
to_char(sysdate, &#8216;yymmdd&#8217;) cyymmdd
from sys.v_$database;

SELECT UPPER(MACHINE) server
from v$session
where program like &#8216;%PMON%&#8217;;

spool /tmp/compare_schemas.lst
set heading off
select &#8216;Column C1 refers to: &#8216; || &#8216;&amp;&amp;SCHEMA1&#8242; ||CHR(10) ||
&#8216;Column C2 refers to: &#8216; || &#8216;&amp;&amp;SCHEMA2&#8242; from dual; 

set heading on
set colsep &#8221;
ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID SKIP 1 -
center &#8216;Object Information&#8217; skip 2
col owner format a10
col tbls format 9999
col indx format 9999
col vews format 9999
col trgr format 9999
col func format 9999
col proc format 9999
col pkgs format 9999
col pkgb format 9999
col sequ format 9999
col syno format 9999
col dblnk format 99999
col clstr format 99999

select owner,
sum(decode(object_type, &#8216;TABLE&#8217;, 1, 0)) Tbls,
sum(decode(object_type, &#8216;INDEX&#8217;, 1, 0)) Indx,
sum(decode(object_type, &#8216;VIEW&#8217;, 1, 0)) Vews,
sum(decode(object_type, &#8216;TRIGGER&#8217;, 1, 0)) Trgr,
sum(decode(object_type, &#8216;FUNCTION&#8217;, 1, 0)) Func,
sum(decode(object_type, &#8216;PROCEDURE&#8217;, 1, 0)) Proc,
sum(decode(object_type, &#8216;PACKAGE&#8217;, 1, 0)) Pkgs,
sum(decode(object_type, &#8216;PACKAGE BODY&#8217;, 1, 0)) Pkgb,
sum(decode(object_type, &#8216;SEQUENCE&#8217;, 1, 0)) Sequ,
sum(decode(object_type, &#8216;SYNONYM&#8217;, 1, 0)) Syno,
sum(decode(object_type, &#8216;DATABASE LINK&#8217;, 1, 0)) Dblnk,
sum(decode(object_type, &#8216;CLUSTER&#8217;, 1, 0)) Clstr
from dba_objects
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY owner;

set colsep &#8216; &#8216;
set numformat 99,999,999
ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Table and Index Info By Owner&#8217; skip 2

col total_cnt format 99,999 heading &#8220;Total Cnt&#8221;
col tables format 99,999 heading &#8220;Tables&#8221;
col indexes format 99,999 heading &#8220;Indexes&#8221;
col table_size heading &#8220;Tbl_Size(Kb)&#8221;
col Index_size heading &#8220;Idx_Size(Kb)&#8221;
col total_size heading &#8220;Total_Size(Kb)&#8221;

select owner,
SUM(decode(segment_type, &#8216;TABLE&#8217;, 1, 0)) Tables,
SUM(decode(segment_type, &#8216;TABLE&#8217;, bytes, 0))/1024 Table_Size,
SUM(decode(segment_type, &#8216;INDEX&#8217;, 1, 0)) Indexes,
SUM(decode(segment_type, &#8216;INDEX&#8217;, bytes, 0))/1024 Index_Size,
count(*) Total_cnt,
sum(bytes)/1024 Total_size
from dba_segments
where segment_type IN (&#8217;TABLE&#8217;, &#8216;INDEX&#8217;)
and owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY owner;

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Mismatch in the Number of Columns&#8217; skip 2
col C1 format 999
col C2 format 999
col table_name format a25
select table_name, C1, C2
from (
select table_name,
max(decode(owner, &#8216;&amp;&amp;SCHEMA1&#8242;, column_id, NULL)) C1,
max(decode(owner, &#8216;&amp;&amp;SCHEMA2&#8242;, column_id, NULL)) C2
from dba_tab_columns
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY table_name) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Column Mismatch&#8217; skip 2
col C1 format 99
col C2 format 99
col column_name format a25
select table_name, column_name, C1, C2
from (
select table_name, column_name,
max(decode(owner, &#8216;&amp;&amp;SCHEMA1&#8242;, column_id, NULL)) C1,
max(decode(owner, &#8216;&amp;&amp;SCHEMA2&#8242;, column_id, NULL)) C2
from dba_tab_columns
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY table_name, column_name) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
order by table_name, c1, c2
/

&#8211; Compare data type mismatch
ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Data Type Mismatch&#8217; skip 2
col c1 format a15
col c2 format a15
col column_name format a20
col table_name format a20
select table_name, column_name, C1, C2
from (
select tc.table_name, tc.column_name,
max(decode(tc.owner, &#8216;&amp;&amp;SCHEMA1&#8242;, tc.data_type || &#8216;(&#8217; || decode(tc.data_type, &#8216;NUMBER&#8217;,
tc.data_precision || &#8216;,&#8217; || tc.data_scale, ,
max(decode(tc.owner, &#8216;&amp;&amp;SCHEMA2&#8242;, tc.data_type || &#8216;(&#8217; || decode(tc.data_type, &#8216;NUMBER&#8217;,
tc.data_precision || &#8216;,&#8217; || tc.data_scale, 2
from dba_tab_columns tc, dba_tables t
where tc.owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
and t.owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
and tc.table_name = t.table_name
GROUP BY tc.table_name, tc.column_name) a
where a.C1 &lt;&gt; a.C2
order by table_name, c1, c2
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Trigger Status Mismatch&#8217; skip 2
col trigger_name format a25
col C1 format a2
col C2 format a2
select trigger_name, trigger_type, C1, C2
from (select trigger_name, trigger_type,
max(decode(owner, &#8216;&amp;&amp;SCHEMA1&#8242;, decode(status, &#8216;ENABLED&#8217;, &#8216;E&#8217;, &#8216;DISABLED&#8217;, &#8216;D&#8217;, NULL), NULL)) C1,
max(decode(owner, &#8216;&amp;&amp;SCHEMA2&#8242;, decode(status, &#8216;ENABLED&#8217;, &#8216;E&#8217;, &#8216;DISABLED&#8217;, &#8216;D&#8217;, NULL), NULL)) C2
from dba_triggers
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY trigger_name, trigger_type) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Mismatch in Stored Procedure Size (Num of Lines)&#8217; skip 2
col name format a25
col type format a15
col C1 format 9999
col C2 format 9999
select name, type, C1, C2
from (select name, type,
max(decode(owner, &#8216;&amp;&amp;SCHEMA1&#8242;, line, NULL)) C1,
max(decode(owner, &#8216;&amp;&amp;SCHEMA2&#8242;, line, NULL)) C2
from dba_source
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY name, type) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Mismatch in Sequences&#8217; skip 2
col Seq_Name format a20
col min_c1 format 9999
col min_c2 format 9999
col max_c1 format 999,999,999
col max_c2 format 999,999,999
col inc_c1 format 9999
col inc_c2 format 9999
select sequence_name seq_name, min_c1, min_c2, max_c1, max_c2, inc_c1, inc_c2
from (select sequence_name,
max(decode(sequence_owner, &#8216;&amp;&amp;SCHEMA1&#8242;, min_value, NULL)) min_c1,
max(decode(sequence_owner, &#8216;&amp;&amp;SCHEMA2&#8242;, min_value, NULL)) min_c2,
max(decode(sequence_owner, &#8216;&amp;&amp;SCHEMA1&#8242;, max_value, NULL)) max_c1,
max(decode(sequence_owner, &#8216;&amp;&amp;SCHEMA2&#8242;, max_value, NULL)) max_c2,
max(decode(sequence_owner, &#8216;&amp;&amp;SCHEMA1&#8242;, increment_by, NULL)) inc_c1,
max(decode(sequence_owner, &#8216;&amp;&amp;SCHEMA2&#8242;, increment_by, NULL)) inc_c2
from dba_sequences
where sequence_owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY sequence_name) a
where a.min_c1 &lt;&gt; a.min_c2
or a.min_c1 is null
or a.min_c2 is null
or a.max_c1 &lt;&gt; a.max_c2
or a.max_c1 is null
or a.max_c2 is null
or a.inc_c1 &lt;&gt; a.inc_c2
or a.inc_c1 is null
or a.inc_c2 is null
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Count of ALL the Constraints&#8217; skip 2
col owner format a10
select owner,
sum(decode(constraint_type, &#8216;P&#8217;, 1, 0)) Primary_Key,
sum(decode(constraint_type, &#8216;R&#8217;, 1, 0)) Foreign_key,
sum(decode(constraint_type, &#8216;U&#8217;, 1, 0)) Unique_key,
sum(decode(constraint_type, &#8216;C&#8217;, 1, 0)) Check_Constraint
from dba_constraints
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY owner;

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Count of all the Enabled Constraints&#8217; skip 2
select owner,
sum(decode(constraint_type, &#8216;P&#8217;, 1, 0)) Primary_Key,
sum(decode(constraint_type, &#8216;R&#8217;, 1, 0)) Foreign_key,
sum(decode(constraint_type, &#8216;U&#8217;, 1, 0)) Unique_key,
sum(decode(constraint_type, &#8216;C&#8217;, 1, 0)) Check_Constraint
from dba_constraints
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
and status = &#8216;ENABLED&#8217;
GROUP BY owner;

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Count of all the Disabled Constraints&#8217; skip 2
select owner,
sum(decode(constraint_type, &#8216;P&#8217;, 1, 0)) Primary_Key,
sum(decode(constraint_type, &#8216;R&#8217;, 1, 0)) Foreign_key,
sum(decode(constraint_type, &#8216;U&#8217;, 1, 0)) Unique_key,
sum(decode(constraint_type, &#8216;C&#8217;, 1, 0)) Check_Constraint
from dba_constraints
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
and status = &#8216;DISABLED&#8217;
GROUP BY owner;

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Constraint Status Mismatch&#8217; skip 2
col constraint_name format a25
col C1 format a2
col C2 format a2
col constraint_type heading Type
select constraint_name, constraint_type, C1, C2
from (select constraint_name, constraint_type,
max(decode(owner, &#8216;&amp;&amp;SCHEMA1&#8242;, decode(status, &#8216;ENABLED&#8217;, &#8216;E&#8217;, &#8216;DISABLED&#8217;, &#8216;D&#8217;, NULL), NULL)) C1,
max(decode(owner, &#8216;&amp;&amp;SCHEMA2&#8242;, decode(status, &#8216;ENABLED&#8217;, &#8216;E&#8217;, &#8216;DISABLED&#8217;, &#8216;D&#8217;, NULL), NULL)) C2
from dba_constraints
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
and constraint_name not like &#8216;SYS%&#8217;
GROUP BY constraint_name, constraint_type
order by constraint_type) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Constraint Column Mismatch&#8217; skip 2
col column_name format a20
col C1 format 9
col C2 format 9
&#8211; break on constraint_name noduplicates
select constraint_name, column_name, C1, C2
from (
select constraint_name, column_name,
max(decode(owner, &#8216;&amp;&amp;SCHEMA1&#8242;, position, NULL)) C1,
max(decode(owner, &#8216;&amp;&amp;SCHEMA2&#8242;, position, NULL)) C2
from dba_cons_columns
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
and constraint_name not like &#8216;SYS%&#8217;
and position is not null
GROUP BY constraint_name, column_name) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
order by constraint_name, c1, c2
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Index Column Mismatch on others tables&#8217; skip 2

col idx_name format a25
col tbl_name format a25
col column_name format a20
col ordr format 999 heading order

select index_owner || &#8216;.&#8217; || index_name idx_name,
table_owner || &#8216;.&#8217; || table_name tbl_name, column_name,
column_position ordr
from dba_ind_columns
where (index_owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
or table_owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;))
and index_owner &lt;&gt; table_owner
order by index_name, index_owner, column_position
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Index Column Mismatch on ones own tables&#8217; skip 2
select index_name, table_name, column_name, C1, C2
from (
select index_name, table_name, column_name,
max(decode(index_owner, &#8216;&amp;&amp;SCHEMA1&#8242;, column_position, NULL)) C1,
max(decode(index_owner, &#8216;&amp;&amp;SCHEMA2&#8242;, column_position, NULL)) C2
from dba_ind_columns
where index_owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
and column_position is not null
and index_owner = table_owner
GROUP BY index_name, table_name, column_name) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
order by index_name, c1, c2
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Mismatch in the number of Synonyms&#8217; skip 2
col C1 format 999
col C2 format 999
col table_owner format a25
select table_owner, C1, C2
from (
select table_owner,
sum(decode(owner, &#8216;&amp;&amp;SCHEMA1&#8242;, 1, NULL)) C1,
sum(decode(owner, &#8216;&amp;&amp;SCHEMA2&#8242;, 1, NULL)) C2
from dba_synonyms
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY table_owner) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Mismatch in the Privileges granted to others - Sorted By Grantee&#8217; skip 2
col C1 format 999
col C2 format 999
col grantee format a25
select grantee, C1, C2
from (
select grantee,
sum(decode(grantor, &#8216;&amp;&amp;SCHEMA1&#8242;, 1, NULL)) C1,
sum(decode(grantor, &#8216;&amp;&amp;SCHEMA2&#8242;, 1, NULL)) C2
from dba_tab_privs
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY grantee) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Mismatch in the Privileges granted to others - Sorted By Privilege&#8217; skip 2
col C1 format 999
col C2 format 999
col privilege format a25
select privilege, C1, C2
from (
select privilege,
sum(decode(grantor, &#8216;&amp;&amp;SCHEMA1&#8242;, 1, NULL)) C1,
sum(decode(grantor, &#8216;&amp;&amp;SCHEMA2&#8242;, 1, NULL)) C2
from dba_tab_privs
where owner in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY privilege) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Mismatch in the Privileges Received from others - Sorted By Grantor&#8217; skip 2
col C1 format 999
col C2 format 999
col grantor format a25
select grantor, C1, C2
from (
select grantor,
sum(decode(grantee, &#8216;&amp;&amp;SCHEMA1&#8242;, 1, NULL)) C1,
sum(decode(grantee, &#8216;&amp;&amp;SCHEMA2&#8242;, 1, NULL)) C2
from dba_tab_privs
where grantee in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY grantor) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Mismatch in the Privileges Received from others - Sorted By Privilege&#8217; skip 2
col C1 format 999
col C2 format 999
col privilege format a25
select privilege, C1, C2
from (
select privilege,
sum(decode(grantee, &#8216;&amp;&amp;SCHEMA1&#8242;, 1, NULL)) C1,
sum(decode(grantee, &#8216;&amp;&amp;SCHEMA2&#8242;, 1, NULL)) C2
from dba_tab_privs
where grantee in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY privilege) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
/

ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Mismatch in the Granted Roles&#8217; skip 2
col C1 format a2
col C2 format a2
col granted_role format a25
select granted_role, C1, C2
from (
select granted_role,
max(decode(grantee, &#8216;&amp;&amp;SCHEMA1&#8242;, &#8216;Y&#8217;, NULL)) C1,
max(decode(grantee, &#8216;&amp;&amp;SCHEMA2&#8242;, &#8216;Y&#8217;, NULL)) C2
from dba_role_privs
where grantee in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY granted_role) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
/
ttitle left _DATE right &#8216;Page: &#8216; format 99 SQL.PNO skip 1 -
left &#8216;Server: &#8216; _SERVER  -
RIGHT &#8216;SID: &#8216; _SID skip 1 -
center &#8216;Mismatch in the System Privileges Received&#8217; skip 2
col C1 format a2
col C2 format a2
col privilege format a25
select privilege, C1, C2
from (
select privilege,
max(decode(grantee, &#8216;&amp;&amp;SCHEMA1&#8242;, &#8216;Y&#8217;, NULL)) C1,
max(decode(grantee, &#8216;&amp;&amp;SCHEMA2&#8242;, &#8216;Y&#8217;, NULL)) C2
from dba_sys_privs
where grantee in (&#8217;&amp;&amp;SCHEMA1&#8242;, &#8216;&amp;&amp;SCHEMA2&#8242;)
GROUP BY privilege) a
where a.C1 &lt;&gt; a.C2
or a.C1 is null
or a.C2 is null
/
clear buffer
clear columns
clear breaks
clear computes
ttitle off
btitle off
undefine SCHEMA1
undefine SCHEMA2

spool off</em></pre>
]]></content:encoded>
			<wfw:commentRss>http://modmod6.freehostia.com/wordpress/2008/10/27/oracle-compare-two-database-schemas/feed</wfw:commentRss>
		</item>
		<item>
		<title>Import and export</title>
		<link>http://modmod6.freehostia.com/wordpress/2008/10/24/import-and-export</link>
		<comments>http://modmod6.freehostia.com/wordpress/2008/10/24/import-and-export#comments</comments>
		<pubDate>Fri, 24 Oct 2008 16:01:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://modmod6.freehostia.com/wordpress/2008/10/24/import-and-export</guid>
		<description><![CDATA[I always forget what to add in the parameter file for imp/exp so here is an example, just so I can copy and paste for next time:
exp:
grants=n
rows=y
tables=mytables
statistics=none
buffer=2097152
file=exp_08-10-23_1.dmp,exp_08-10-23_2.dmp
filesize=4G
log=exp.log
silent=y
#ignore=y
imp:
grants=n
rows=y
tables=mytables
statistics=none
buffer=2097152
file=exp_08-10-23_1.dmp,exp_08-10-23_2.dmp
filesize=4G
log=imp3.log
silent=y
ignore=y
The SQL below allows you to monitor an import by looking at v$sqlarea, it will only show the current table, but is quite helpful:
select substr(sql_text,instr(sql_text,&#8217;INTO &#8220;&#8216;),30) table_name,
rows_processed,
round((sysdate-to_date(first_load_time,&#8217;yyyy-mm-dd hh24:mi:ss&#8217;))*24*60,1) minutes,
trunc(rows_processed/((sysdate-to_date(first_load_time,&#8217;yyyy-mm-dd [...]]]></description>
			<content:encoded><![CDATA[<p>I always forget what to add in the parameter file for imp/exp so here is an example, just so I can copy and paste for next time:</p>
<p>exp:</p>
<p>grants=n<br />
rows=y<br />
tables=mytables<br />
statistics=none<br />
buffer=2097152<br />
file=exp_08-10-23_1.dmp,exp_08-10-23_2.dmp<br />
filesize=4G<br />
log=exp.log<br />
silent=y<br />
#ignore=y</p>
<p>imp:</p>
<p>grants=n<br />
rows=y<br />
tables=mytables<br />
statistics=none<br />
buffer=2097152<br />
file=exp_08-10-23_1.dmp,exp_08-10-23_2.dmp<br />
filesize=4G<br />
log=imp3.log<br />
silent=y<br />
ignore=y</p>
<p>The SQL below allows you to monitor an import by looking at v$sqlarea, it will only show the current table, but is quite helpful:</p>
<p>select substr(sql_text,instr(sql_text,&#8217;INTO &#8220;&#8216;),30) table_name,<br />
rows_processed,<br />
round((sysdate-to_date(first_load_time,&#8217;yyyy-mm-dd hh24:mi:ss&#8217;))*24*60,1) minutes,<br />
trunc(rows_processed/((sysdate-to_date(first_load_time,&#8217;yyyy-mm-dd hh24:mi:ss&#8217;))*24*60)) rows_per_min<br />
from   sys.v_$sqlarea<br />
where  sql_text like &#8216;INSERT %INTO &#8220;%&#8217;<br />
and  command_type = 2<br />
and  open_versions &gt; 0<br />
/</p>
]]></content:encoded>
			<wfw:commentRss>http://modmod6.freehostia.com/wordpress/2008/10/24/import-and-export/feed</wfw:commentRss>
		</item>
		<item>
		<title>Table and Index number of rows and size</title>
		<link>http://modmod6.freehostia.com/wordpress/2008/10/02/table-and-index-number-of-rows-and-size</link>
		<comments>http://modmod6.freehostia.com/wordpress/2008/10/02/table-and-index-number-of-rows-and-size#comments</comments>
		<pubDate>Thu, 02 Oct 2008 10:01:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://modmod6.freehostia.com/wordpress/2008/10/02/table-and-index-number-of-rows-and-size</guid>
		<description><![CDATA[To calculate the size of tables/indexes in a schema, run the following:

-- --------------------------------------------------
-- -- Table and Index sizings - PH                 --
-- --------------------------------------------------
with details as (
-- ------------------------------------------------
-- -- List all tables          [...]]]></description>
			<content:encoded><![CDATA[<p>To calculate the size of tables/indexes in a schema, run the following:<br />
<em><code><br />
-- --------------------------------------------------<br />
-- -- Table and Index sizings - PH                 --<br />
-- --------------------------------------------------<br />
with details as (<br />
-- ------------------------------------------------<br />
-- -- List all tables                            --<br />
-- ------------------------------------------------<br />
SELECT table_name,<br />
1 ord,<br />
'.' index_name,<br />
num_rows,<br />
(num_rows*avg_row_len)/(1024*1024) MB<br />
FROM user_tables<br />
UNION<br />
-- ------------------------------------------------<br />
-- -- List all indexes                           --<br />
-- ------------------------------------------------<br />
SELECT table_name,<br />
2 ord,<br />
index_name,<br />
num_rows,<br />
(num_rows*avg_data_blocks_per_key)/(1024*1024) MB<br />
FROM user_indexes<br />
)<br />
-- --------------------------------------------------<br />
-- -- Work out total space used                    --<br />
-- --------------------------------------------------<br />
SELECT null table_name,<br />
4 ord,<br />
' ' index_name,<br />
'=== TOTAL ===' num_rows,<br />
to_char(sum(mb), '999,999,999.99') mb<br />
FROM details<br />
union<br />
-- --------------------------------------------------<br />
-- -- List summary total for each table            --<br />
-- --------------------------------------------------<br />
SELECT table_name,<br />
3 ord,<br />
' ' index_name,<br />
'=== TOTAL ===' num_rows,<br />
to_char(sum(mb), '999,999,999.99') mb<br />
FROM details<br />
group by table_name<br />
UNION<br />
-- --------------------------------------------------<br />
-- -- List all tables and indexes                  --<br />
-- --------------------------------------------------<br />
SELECT table_name,<br />
ord,<br />
index_name,<br />
to_char(num_rows, '999999999999') num_rows,<br />
to_char(mb, '999,999,999.99') mb<br />
FROM details<br />
ORDER BY table_name, ord<br />
/<br />
</code></em></p>
]]></content:encoded>
			<wfw:commentRss>http://modmod6.freehostia.com/wordpress/2008/10/02/table-and-index-number-of-rows-and-size/feed</wfw:commentRss>
		</item>
		<item>
		<title>Rollback Segments</title>
		<link>http://modmod6.freehostia.com/wordpress/2008/08/18/rollback-segments</link>
		<comments>http://modmod6.freehostia.com/wordpress/2008/08/18/rollback-segments#comments</comments>
		<pubDate>Mon, 18 Aug 2008 09:59:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://modmod6.freehostia.com/wordpress/2008/08/18/rollback-segments</guid>
		<description><![CDATA[Here are two scripts to help monitor the rollback segments:
select
to_char(rownum+3) &#124;&#124;&#8217;) &#8216;
&#124;&#124; rpad(r.name,17)
&#124;&#124; rpad(to_char(p.pid),11)
&#124;&#124; rpad(p.spid,11)
&#124;&#124; rpad(nvl(p.username,&#8217;NO TRANSACTION&#8217;),17)
&#124;&#124; rpad(p.terminal,8)
&#124;&#124; rpad(s.sid,4)
&#124;&#124; rpad(s.serial#,8)
&#124;&#124; rpad(s.module,15)
&#124;&#124; rpad(s.command,15)
&#124;&#124; rpad(s.username,15)
FROM
v$lock l, v$process p, v$rollname r, v$session s
WHERE l.sid = s.sid (+)
and p.addr = s.paddr
and trunc(l.id1(+)/65536)=r.usn
and l.type(+) = &#8216;TX&#8217;
and l.lmode(+) = 6
UNION
select &#8216;2) ROLLBACK SEGMENT &#8216;
&#124;&#124;  &#8216;ORACLE PID &#8216;
&#124;&#124; &#8216;SYSTEM PID &#8216;
&#124;&#124; &#8216;TRANSACTION      [...]]]></description>
			<content:encoded><![CDATA[<p>Here are two scripts to help monitor the rollback segments:</p>
<p><em>select<br />
to_char(rownum+3) ||&#8217;) &#8216;<br />
|| rpad(r.name,17)<br />
|| rpad(to_char(p.pid),11)<br />
|| rpad(p.spid,11)<br />
|| rpad(nvl(p.username,&#8217;NO TRANSACTION&#8217;),17)<br />
|| rpad(p.terminal,8)<br />
|| rpad(s.sid,4)<br />
|| rpad(s.serial#,8)<br />
|| rpad(s.module,15)<br />
|| rpad(s.command,15)<br />
|| rpad(s.username,15)<br />
FROM<br />
v$lock l, v$process p, v$rollname r, v$session s<br />
WHERE l.sid = s.sid (+)<br />
and p.addr = s.paddr<br />
and trunc(l.id1(+)/65536)=r.usn<br />
and l.type(+) = &#8216;TX&#8217;<br />
and l.lmode(+) = 6<br />
UNION<br />
select &#8216;2) ROLLBACK SEGMENT &#8216;<br />
||  &#8216;ORACLE PID &#8216;<br />
|| &#8216;SYSTEM PID &#8216;<br />
|| &#8216;TRANSACTION      &#8216;<br />
|| &#8216;TERMINAL &#8216;<br />
|| &#8216;SID &#8216;<br />
|| &#8216;Serial# &#8216;<br />
|| &#8216;Module          &#8216;<br />
|| &#8216;Command         &#8216;<br />
|| &#8216;Username        &#8216;<br />
from dual<br />
UNION<br />
select &#8216;1) &#8216; from dual<br />
UNION<br />
select &#8216;3) &#8212;&#8212;&#8212;&#8212;&#8212;- &#8216;<br />
||&#8217;&#8212;&#8212;&#8212;- &#8216;<br />
||&#8217;&#8212;&#8212;&#8212;- &#8216;<br />
||&#8217;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8216;<br />
||&#8217;&#8212;&#8212;&#8211; &#8216;<br />
||&#8217;&#8212; &#8216;<br />
||&#8217;&#8212;&#8212;- &#8216;<br />
||&#8217;&#8212;&#8212;&#8212;&#8212;&#8211; &#8216;<br />
||&#8217;&#8212;&#8212;&#8212;&#8212;&#8211; &#8216;<br />
||&#8217;&#8212;&#8212;&#8212;&#8212;&#8211; &#8216;<br />
from dual<br />
ORDER BY 1<br />
/</p>
<p>Using this select statement you can monitor the Rollback segment usage in Oracle.</p>
<p>select r.name &#8220;Rollback segment name &#8220;,<br />
p.pid &#8220;Oracle Pid&#8221;,<br />
p.spid &#8220;System Pid&#8221;,<br />
nvl(p.username,&#8217;No Transaction&#8217;),<br />
p.terminal<br />
from v$lock l, v$process p,v$rollname r<br />
where l.sid=p.pid(+)<br />
and trunc(l.id1(+)/65536)=r.usn<br />
and l.type(+)=&#8217;TX&#8217;<br />
and l.lmode(+)=6<br />
order by r.name<br />
/</em></p>
]]></content:encoded>
			<wfw:commentRss>http://modmod6.freehostia.com/wordpress/2008/08/18/rollback-segments/feed</wfw:commentRss>
		</item>
		<item>
		<title>Win2003 delete files based on date</title>
		<link>http://modmod6.freehostia.com/wordpress/2008/08/12/win2003-delete-files-based-on-date</link>
		<comments>http://modmod6.freehostia.com/wordpress/2008/08/12/win2003-delete-files-based-on-date#comments</comments>
		<pubDate>Tue, 12 Aug 2008 16:07:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://modmod6.freehostia.com/wordpress/2008/08/12/win2003-delete-files-based-on-date</guid>
		<description><![CDATA[Ok, so not strictly Oracle related, but I&#8217;m a DBA so where else would I use it, eh?
forfiles is part of the resource kit, but ships with Windows 2003 Server and later.

forfiles -p d:\whereever -s -m *.bak -d -2 -c &#8220;cmd /C del @Path&#8221;
1. -p: Start in the directory d:\whereever
2. -s: process subdirectories
3. -m: match [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so not strictly Oracle related, but I&#8217;m a DBA so where else would I use it, eh?</p>
<p><span class="postbody">forfiles is part of the resource kit, but ships with Windows 2003 Server and later.<br />
</span></p>
<p><span class="postbody">forfiles -p d:\whereever -s -m *.bak -d -2 -c &#8220;cmd /C del @Path&#8221;</p>
<p>1. -p: Start in the directory d:\whereever<br />
2. -s: process subdirectories<br />
3. -m: match files using *.bak<br />
4. -d: Find files more than 2 days old<br />
5. -c: Execute the del command to delete the file.  @Path has double-quotes around it already.</span></p>
<p><span class="postbody"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://modmod6.freehostia.com/wordpress/2008/08/12/win2003-delete-files-based-on-date/feed</wfw:commentRss>
		</item>
	</channel>
</rss>

