<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8381607798674183236</id><updated>2024-09-20T16:25:24.442-07:00</updated><title type='text'>The Redwood Post</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://redwood-post.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8381607798674183236/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://redwood-post.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SM2G</name><uri>http://www.blogger.com/profile/14356495408238455875</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8381607798674183236.post-2611137802363762656</id><published>2010-07-11T15:07:00.000-07:00</published><updated>2010-07-11T15:07:45.898-07:00</updated><title type='text'>Backup technique of the week - 1 : &quot;The Tablespace Begin backup&quot;</title><content type='html'>Here&#39;s the first article of the &lt;b&gt;new&lt;/b&gt; &quot;Backup technique of the week&quot; series!&lt;br /&gt;
&lt;br /&gt;
This series of posts will show you each week a new way to take a backup of your database. Hot backups, cold backups, using Oracle tool or just a simple script, you will see different ways to prepare for the worst...&lt;br /&gt;
&lt;br /&gt;
Now, let&#39;s get into the subject. This first chapter will show you a very common way to take a backup using the &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;BEGIN BACKUP&lt;/span&gt; command.&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SQL&amp;gt; ALTER TABLESPACE users BEGIN BACKUP;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This command is avaliable since oracle 9i R2 - rel. 9204. What this does is that it flags the datafile headers &quot;for backup&quot; and performs a checkpoint on the tabl&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;espace&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;so that no dirty buffer remains from modifications done before that point.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SQL&amp;gt; SELECT name, checkpoint_change#&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; FROM v$datafile_header;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMxA3_DJtKJSCd_XYYzz6yf1Zr1NPkOz0XE4l9XPjBdIt1jzY3D6HKICpKN53GYSEhRkQZFHatbneZq-YxIa4raYwNQt_6PGkSc8Fo-Fo7LYEkOeOiDtgpgJKVRyGn-AyL0DmZcG1-tsGP/s1600/Screen+shot+2010-07-11+at+11.32.51+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMxA3_DJtKJSCd_XYYzz6yf1Zr1NPkOz0XE4l9XPjBdIt1jzY3D6HKICpKN53GYSEhRkQZFHatbneZq-YxIa4raYwNQt_6PGkSc8Fo-Fo7LYEkOeOiDtgpgJKVRyGn-AyL0DmZcG1-tsGP/s320/Screen+shot+2010-07-11+at+11.32.51+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;The SCN of the datafile is frozen and all data modification in this mode will result in the affected data block to be written directly in the redo logs.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;Note&lt;/b&gt;&lt;/span&gt;: Of course, using this mode will generate a lot of redo log activity!&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;You can then use a filesystem command to make a copy of the necessary files.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SQL&amp;gt; SELECT name FROM sys.v_$datafile;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SQL&amp;gt;&amp;nbsp;SELECT&amp;nbsp;member FROM sys.v_$logfile;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SQL&amp;gt;&amp;nbsp;SELECT&amp;nbsp;name FROM sys.v_$controlfile;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQCuQjfY6f8yH_OAagM9pA9Qcx-tEZdQdYq8iUjHgfaLTubSyrxz-v8-mE4MMOSZGeXxstItmx925DjjzsMxpREU64ihyphenhyphenKUnLT6oljN2GeOPbrM_kWJgEvpCOxsEoCfDf30kn4ms9Kxu2E/s1600/Screen+shot+2010-07-11+at+5.07.21+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQCuQjfY6f8yH_OAagM9pA9Qcx-tEZdQdYq8iUjHgfaLTubSyrxz-v8-mE4MMOSZGeXxstItmx925DjjzsMxpREU64ihyphenhyphenKUnLT6oljN2GeOPbrM_kWJgEvpCOxsEoCfDf30kn4ms9Kxu2E/s320/Screen+shot+2010-07-11+at+5.07.21+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;After you have taken your backup, you can put the tablespace back in normal mode with the &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;END BACKUP &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;command.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SQL&amp;gt; ALTER TABLESPACE users END BACKUP;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY0rBaO4iCvLdAcjvrPEBcOJivoLi_9gUp68xLeHDUDBLS2PKKQZxfPtXThgShBF-uDkWZI6aRAXAgcZ2S7PVT8dUar19rr2OKpKuNzHnI1mMWEEQ1frZKoE4PVSi3n7qJn158dPdnxqN3/s1600/Screen+shot+2010-07-11+at+11.58.44+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY0rBaO4iCvLdAcjvrPEBcOJivoLi_9gUp68xLeHDUDBLS2PKKQZxfPtXThgShBF-uDkWZI6aRAXAgcZ2S7PVT8dUar19rr2OKpKuNzHnI1mMWEEQ1frZKoE4PVSi3n7qJn158dPdnxqN3/s320/Screen+shot+2010-07-11+at+11.58.44+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;When putting the tablespace out of the &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;BEGIN BACKUP&lt;/span&gt; mode, a&amp;nbsp;record in the redo file will mark the end of the backup, and the &quot;hot backup flag&quot; in the concerned datafile headers is removed.&amp;nbsp;The header SCN is written with the current one.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The backup is clean and can be restored using the archived redo logs.&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://redwood-post.blogspot.com/feeds/2611137802363762656/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://redwood-post.blogspot.com/2010/07/backup-technique-of-week-1-tablespace.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8381607798674183236/posts/default/2611137802363762656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8381607798674183236/posts/default/2611137802363762656'/><link rel='alternate' type='text/html' href='http://redwood-post.blogspot.com/2010/07/backup-technique-of-week-1-tablespace.html' title='Backup technique of the week - 1 : &quot;The Tablespace Begin backup&quot;'/><author><name>SM2G</name><uri>http://www.blogger.com/profile/14356495408238455875</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMxA3_DJtKJSCd_XYYzz6yf1Zr1NPkOz0XE4l9XPjBdIt1jzY3D6HKICpKN53GYSEhRkQZFHatbneZq-YxIa4raYwNQt_6PGkSc8Fo-Fo7LYEkOeOiDtgpgJKVRyGn-AyL0DmZcG1-tsGP/s72-c/Screen+shot+2010-07-11+at+11.32.51+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8381607798674183236.post-2171920202930751662</id><published>2010-06-27T11:17:00.000-07:00</published><updated>2010-06-27T11:21:32.637-07:00</updated><title type='text'>Useful Bash login script</title><content type='html'>Managing multiple Oracle instances on multiple servers can become a hard task if you don&#39;t standardize and organize.&lt;br /&gt;
How great could it be if you could get informations about your server &amp;amp; database&amp;nbsp;displayed&amp;nbsp;&lt;b&gt;directly&lt;/b&gt;&amp;nbsp;when you connect using SSH?&lt;br /&gt;
Information such as...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;The name of the server you are connected to&amp;nbsp;&lt;/li&gt;
&lt;li&gt;The $ORACLE_SID variable&amp;nbsp;&lt;/li&gt;
&lt;li&gt;The status of the database&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKbJymOszthS_uEPywV0HhP4wxAL-EuQ9iVV4MhTEnP7GKnqmlAtfabKz2yswF-7zeSMAobnoAs47u1EqpmLtvvenp6YrjqXBxsfu-FZISgQ93C6_Co5WjUrYzQ1tEwEq8krRCjdXp3bgN/s1600/Screen+shot+2010-06-27+at+8.13.54+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKbJymOszthS_uEPywV0HhP4wxAL-EuQ9iVV4MhTEnP7GKnqmlAtfabKz2yswF-7zeSMAobnoAs47u1EqpmLtvvenp6YrjqXBxsfu-FZISgQ93C6_Co5WjUrYzQ1tEwEq8krRCjdXp3bgN/s320/Screen+shot+2010-06-27+at+8.13.54+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;You want it, you have it!... Here is a small script that will test the status of your instance when you connect.&lt;/div&gt;That is the code you have to use in your .bash_profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;started=`sqlplus -s login/passwd @/home/oracle/test.sql | grep &quot;ACTIVE&quot;`&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;stop=`sqlplus -s&amp;nbsp;login/passwd&amp;nbsp;@/home/oracle/test.sql | grep &quot;ERROR&quot;`&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;echo -e &quot;&quot;&lt;br /&gt;
echo -e &quot;---------------------------------&quot;&lt;br /&gt;
echo -en &quot;Welcome to &quot;&lt;br /&gt;
echo &amp;nbsp;$HOSTNAME&lt;br /&gt;
echo -e &quot;---------------------------------&quot;&lt;br /&gt;
echo -e &quot;Database informations:&quot;&lt;br /&gt;
echo -n &quot; - &amp;nbsp;SID: &quot;&lt;br /&gt;
echo &amp;nbsp; $ORACLE_SID&lt;br /&gt;
echo -n &quot; - &amp;nbsp;Status: &quot;&lt;br /&gt;
if test -n &quot;$started&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;echo &quot;Started&quot;&lt;br /&gt;
elif test -n &quot;$stop&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;echo &quot;Stopped&quot;&lt;br /&gt;
else&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;echo &quot;Unknown&quot;&lt;br /&gt;
fi&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;Next, just create a file named &lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;test.sql&lt;/span&gt;&lt;/b&gt; file in the home folder of the user.&lt;/div&gt;&lt;div&gt;The file will contain this query:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SELECT STATUS,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; DATABASE_STATUS&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;FROM &amp;nbsp; V$INSTANCE;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;EXIT&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
And you&#39;re done! Just in time for the coffee.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redwood-post.blogspot.com/feeds/2171920202930751662/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://redwood-post.blogspot.com/2010/06/useful-bash-login-script.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8381607798674183236/posts/default/2171920202930751662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8381607798674183236/posts/default/2171920202930751662'/><link rel='alternate' type='text/html' href='http://redwood-post.blogspot.com/2010/06/useful-bash-login-script.html' title='Useful Bash login script'/><author><name>SM2G</name><uri>http://www.blogger.com/profile/14356495408238455875</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKbJymOszthS_uEPywV0HhP4wxAL-EuQ9iVV4MhTEnP7GKnqmlAtfabKz2yswF-7zeSMAobnoAs47u1EqpmLtvvenp6YrjqXBxsfu-FZISgQ93C6_Co5WjUrYzQ1tEwEq8krRCjdXp3bgN/s72-c/Screen+shot+2010-06-27+at+8.13.54+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8381607798674183236.post-6565834930194462741</id><published>2010-06-21T11:17:00.000-07:00</published><updated>2010-06-21T11:17:40.314-07:00</updated><title type='text'>Oracle listener statistics</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: 11px;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: 11px;&quot;&gt;When you want to look for some random hacks, the first tool that comes to you mind would obviously be &lt;a href=&quot;http://insecure.org/&quot;&gt;Nmap&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: 11px;&quot;&gt;It&#39;s a very powerful tool&lt;/span&gt;&amp;nbsp;for scanning a remote host for open ports.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;I recently found an article about Nmap statistics when looking for open TNS Listeners.&lt;/div&gt;&lt;div&gt;Here is an extract of the article:&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #444444; font-family: Verdana, sans-serif; font-size: 13px; line-height: 23px;&quot;&gt;&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;For experiment, I and my friends ran nmap with&amp;nbsp;-iR 0 -p1521&amp;nbsp;options, meaning checking for open port 1521 on randomly generated IP addresses, infinitely.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Result: one working Oracle TNS Listener among nearly 69,000 random IP addresses.&lt;/span&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;div&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;i&gt;Source:&amp;nbsp;&lt;/i&gt;&lt;i&gt;&lt;a href=&quot;http://blogs.conus.info/node/42&quot;&gt;blogs.conus.info&lt;/a&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Here is the detail of the experiment:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;Top 3 operational systems:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;52% - Windows&lt;/li&gt;
&lt;li&gt;37% - Linux&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;6% - Solaris&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Oracle TNS Listener versions:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div&gt;55% - 10.2&lt;/div&gt;&lt;div&gt;23% - 9.2&lt;/div&gt;&lt;div&gt;7% - 11.1&lt;/div&gt;&lt;div&gt;5% - 8.1&lt;/div&gt;&lt;div&gt;4% - 10.1&lt;/div&gt;&lt;div&gt;2% - 8.0&lt;/div&gt;&lt;div&gt;2% - 9.0&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;So I decided to run the test myself, and tried the Nmap command previously shown.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEKPG9HwrDaN1xo2IZydafrYjJpJdpANaMwLZ6skD03alSbeuVhZuRQNswTCR5_yPPeCMUlfQOfoYQ8vg4Cns8_s_Z9eAgSyPGa0aWUD4Zfz3jHr67-FShXkybflT74rpR-4ZH0gJwnT3M/s1600/Screen+shot+2010-06-21+at+2.38.01+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;244&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEKPG9HwrDaN1xo2IZydafrYjJpJdpANaMwLZ6skD03alSbeuVhZuRQNswTCR5_yPPeCMUlfQOfoYQ8vg4Cns8_s_Z9eAgSyPGa0aWUD4Zfz3jHr67-FShXkybflT74rpR-4ZH0gJwnT3M/s320/Screen+shot+2010-06-21+at+2.38.01+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;After 4 hours of random IP scanning, here&#39;s my personal contribution to this analysis:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;I found &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;6144&lt;/span&gt; hosts with an Oracle TNS listener.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;On the 6144 ports,&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: lime;&quot;&gt;4266&lt;/span&gt;&amp;nbsp;were closed,&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: orange;&quot;&gt;1780&lt;/span&gt; were filtered&amp;nbsp;and the &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: red;&quot;&gt;98&lt;/span&gt; remaining were simply open.&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://redwood-post.blogspot.com/feeds/6565834930194462741/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://redwood-post.blogspot.com/2010/06/oracle-listener-statistics.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8381607798674183236/posts/default/6565834930194462741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8381607798674183236/posts/default/6565834930194462741'/><link rel='alternate' type='text/html' href='http://redwood-post.blogspot.com/2010/06/oracle-listener-statistics.html' title='Oracle listener statistics'/><author><name>SM2G</name><uri>http://www.blogger.com/profile/14356495408238455875</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEKPG9HwrDaN1xo2IZydafrYjJpJdpANaMwLZ6skD03alSbeuVhZuRQNswTCR5_yPPeCMUlfQOfoYQ8vg4Cns8_s_Z9eAgSyPGa0aWUD4Zfz3jHr67-FShXkybflT74rpR-4ZH0gJwnT3M/s72-c/Screen+shot+2010-06-21+at+2.38.01+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8381607798674183236.post-489587987533381429</id><published>2010-06-20T07:11:00.000-07:00</published><updated>2010-06-21T01:08:04.243-07:00</updated><title type='text'>Downloading a Youtube video using only Safari 5</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;To download a Youtube video, there is a plethora of plugins, extensions, javascript...&lt;/div&gt;&lt;div&gt;But why do we need such softwares in order to simply download an internet ressource? In this article, I&#39;ll explain you how to achieve this with nothing more than your standard-issued web browser!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Go on the webpage of the video you want to download.&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrhc2d7xItXvoJ9oltzHIxrRIW67QZtVX1CPnlr6GNkdufrUexA7szBC0I2mwGdpL2i6wIoYsjyg2ibVh0jOGbrmaX5vEIjEJw9md6g0W_M45MEXUG-PS5qlUlTKQ7bVXUDhJfDFb_Vc9_/s1600/Screen+shot+2010-06-20+at+4.08.28+PM.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5484859614938584866&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrhc2d7xItXvoJ9oltzHIxrRIW67QZtVX1CPnlr6GNkdufrUexA7szBC0I2mwGdpL2i6wIoYsjyg2ibVh0jOGbrmaX5vEIjEJw9md6g0W_M45MEXUG-PS5qlUlTKQ7bVXUDhJfDFb_Vc9_/s320/Screen+shot+2010-06-20+at+4.08.28+PM.png&quot; style=&quot;cursor: pointer; display: block; height: 216px; margin-bottom: 10px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Display the &lt;b&gt;Web Inspector&lt;/b&gt;. This option is located under the&amp;nbsp;&lt;b&gt;Developer&lt;/b&gt;&amp;nbsp;menu, which must be activated in Safari&#39;s preference panel.&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh94hUZPxICWzX1j-6FhPK47y9o98j3TteDFflQfS-taR0T_HFsmzeJRqXvTyMFHEuS7LEs1bhz_T23PQh2qLyr6SV8yT2Mr5eDFSl6ehgJxpRzPY3OGSDFV-9b33hoCvspYLpPuOZjIKML/s1600/Screen+shot+2010-06-20+at+4.09.35+PM.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5484859993303118914&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh94hUZPxICWzX1j-6FhPK47y9o98j3TteDFflQfS-taR0T_HFsmzeJRqXvTyMFHEuS7LEs1bhz_T23PQh2qLyr6SV8yT2Mr5eDFSl6ehgJxpRzPY3OGSDFV-9b33hoCvspYLpPuOZjIKML/s320/Screen+shot+2010-06-20+at+4.09.35+PM.png&quot; style=&quot;cursor: pointer; display: block; height: 320px; margin-bottom: 10px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: center; width: 271px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The Web Inspector gives you a detailed output of the webpage, along with the location of every element of the page. &lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia8TA6oJyMtN5yos7hygMMhrc-FGXQHzfRqCBoE2VBTgw3ZoD05QMweZOb4R75HesWvRagugbRJEBaWE2vITwNE7JnMOMj4mSGZ07P7lgZ6gu1uj1NmvVBUOux5nr1OQ_pLTUb0aqE4pcE/s1600/Screen+shot+2010-06-20+at+4.10.07+PM.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5484861178961153666&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia8TA6oJyMtN5yos7hygMMhrc-FGXQHzfRqCBoE2VBTgw3ZoD05QMweZOb4R75HesWvRagugbRJEBaWE2vITwNE7JnMOMj4mSGZ07P7lgZ6gu1uj1NmvVBUOux5nr1OQ_pLTUb0aqE4pcE/s320/Screen+shot+2010-06-20+at+4.10.07+PM.png&quot; style=&quot;cursor: pointer; display: block; height: 216px; margin-bottom: 10px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: center; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Now it shouldn&#39;t be any problem finding an element named&amp;nbsp;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #006600;&quot;&gt;videoplayback.flv&amp;nbsp;&lt;/span&gt;&lt;/i&gt;who weights a lot more than every other element on the page. This is the video you want to download.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;A simple drag&#39;n drop will give you the address of the resource to get.&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho7bD6-ujkWv9jFwsy8Egp3Xix38XSe-7iEE-aWM3Wzgo22JyIV7Ru5N5ZI_ViVO5o-b3GTPMcvx6oHWXtKxTIlZtLRK88eLk07HGtcHuttXjLlEjDzPdR8P1W_YhZKSlrMQmJW12jcH7A/s1600/icon01.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5484862566194526146&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho7bD6-ujkWv9jFwsy8Egp3Xix38XSe-7iEE-aWM3Wzgo22JyIV7Ru5N5ZI_ViVO5o-b3GTPMcvx6oHWXtKxTIlZtLRK88eLk07HGtcHuttXjLlEjDzPdR8P1W_YhZKSlrMQmJW12jcH7A/s320/icon01.png&quot; style=&quot;cursor: pointer; display: block; height: 63px; margin-bottom: 10px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: center; width: 210px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;The .flv file is readable with &lt;a href=&quot;http://www.videolan.org/vlc/&quot;&gt;VLC&lt;/a&gt;, or can be easily converted to the format you prefer.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redwood-post.blogspot.com/feeds/489587987533381429/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://redwood-post.blogspot.com/2010/06/telecharger-une-video-youtube-avec.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8381607798674183236/posts/default/489587987533381429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8381607798674183236/posts/default/489587987533381429'/><link rel='alternate' type='text/html' href='http://redwood-post.blogspot.com/2010/06/telecharger-une-video-youtube-avec.html' title='Downloading a Youtube video using only Safari 5'/><author><name>SM2G</name><uri>http://www.blogger.com/profile/14356495408238455875</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrhc2d7xItXvoJ9oltzHIxrRIW67QZtVX1CPnlr6GNkdufrUexA7szBC0I2mwGdpL2i6wIoYsjyg2ibVh0jOGbrmaX5vEIjEJw9md6g0W_M45MEXUG-PS5qlUlTKQ7bVXUDhJfDFb_Vc9_/s72-c/Screen+shot+2010-06-20+at+4.08.28+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>