<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>rami.info</title>
	<atom:link href="http://rami.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://rami.info</link>
	<description>Whatever goes... AtWork, AtHome, or just AtWherever...</description>
	<pubDate>Wed, 02 Jul 2008 09:23:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Importing An ORACLE Schema Into A Different Schema With A Different Tablespace</title>
		<link>http://rami.info/2007/03/18/importing-an-oracle-schema-into-a-different-tablespace/</link>
		<comments>http://rami.info/2007/03/18/importing-an-oracle-schema-into-a-different-tablespace/#comments</comments>
		<pubDate>Sat, 17 Mar 2007 21:30:07 +0000</pubDate>
		<dc:creator>Rami</dc:creator>
		
		<category><![CDATA[DBA]]></category>

		<category><![CDATA[RDBMS]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://rami.info/2007/03/18/importing-an-oracle-schema-into-a-different-tablespace/</guid>
		<description><![CDATA[Change the new user&#8217;s default tablespace to the new tablespace:
alter user scott default tablespace newspace;
Revoke the unlimited tablespace and change the new user&#8217;s quota to have space only on the new tablespace:
revoke unlimited tablespace from scott;
alter user scott quota unlimited on newspace quota 0 on oldspace;
Do the import.
]]></description>
			<content:encoded><![CDATA[<p>Change the new user&#8217;s default tablespace to the new tablespace:<br />
<code>alter user scott default tablespace newspace;</code><br />
Revoke the unlimited tablespace and change the new user&#8217;s quota to have space only on the new tablespace:<br />
<code>revoke unlimited tablespace from scott;<br />
alter user scott quota unlimited on newspace quota 0 on oldspace;</code><br />
Do the import.</p>
]]></content:encoded>
			<wfw:commentRss>http://rami.info/2007/03/18/importing-an-oracle-schema-into-a-different-tablespace/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Generating A Self Signed Certificate For IIS</title>
		<link>http://rami.info/2007/03/09/generating-a-self-signed-certificate-for-iis/</link>
		<comments>http://rami.info/2007/03/09/generating-a-self-signed-certificate-for-iis/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 16:40:19 +0000</pubDate>
		<dc:creator>Rami</dc:creator>
		
		<category><![CDATA[Sysadmin]]></category>

		<category><![CDATA[TechNotes]]></category>

		<category><![CDATA[UNIX]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://rami.info/2007/03/09/generating-a-self-signed-certificate-for-iis/</guid>
		<description><![CDATA[Generate the CA key:
openssl genrsa -des3 -out ca.key 1024
Generate the CA certificate:
openssl req -new -key ca.key -x509 -days 1095 -out ca.crt
Generate the IIS certificate by using the CSR generated from IIS:
openssl x509 -req -days 1095 -in certreq.txt -CA ca.crt -CAkey ca.key -CAcreateserial -out cer.crt
Export the CA certificate to DER encoded binary format if needed to [...]]]></description>
			<content:encoded><![CDATA[<p>Generate the CA key:<br />
<code>openssl genrsa -des3 -out ca.key 1024</code><br />
Generate the CA certificate:<br />
<code>openssl req -new -key ca.key -x509 -days 1095 -out ca.crt</code><br />
Generate the IIS certificate by using the CSR generated from IIS:<br />
<code>openssl x509 -req -days 1095 -in certreq.txt -CA ca.crt -CAkey ca.key -CAcreateserial -out cer.crt</code><br />
Export the CA certificate to DER encoded binary format if needed to be installed on a WM5 device:<br />
<code>openssl x509 -in ca.crt -outform DER -out ca.cer</code></p>
]]></content:encoded>
			<wfw:commentRss>http://rami.info/2007/03/09/generating-a-self-signed-certificate-for-iis/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Solving System Headers Problems When Using sunfreeware.com&#8217;s GCC</title>
		<link>http://rami.info/2006/08/09/solving-system-headers-problems-when-using-sunfreewarecoms-gcc/</link>
		<comments>http://rami.info/2006/08/09/solving-system-headers-problems-when-using-sunfreewarecoms-gcc/#comments</comments>
		<pubDate>Wed, 09 Aug 2006 10:25:27 +0000</pubDate>
		<dc:creator>Rami</dc:creator>
		
		<category><![CDATA[Errors]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Solaris]]></category>

		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://rami.info/2006/08/09/solving-system-headers-problems-when-using-sunfreewarecom</guid>
		<description><![CDATA[When getting an error like:
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/unixish.h:106,
from /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:2220,
from u32align.c:10:
/usr/include/sys/siginfo.h:259: error: parse error before &#8220;ctid_t&#8221;
/usr/include/sys/siginfo.h:292: error: parse error before &#8216;}&#8217; token
/usr/include/sys/siginfo.h:294: error: parse error before &#8216;}&#8217; token
/usr/include/sys/siginfo.h:390: error: parse error before &#8220;ctid_t&#8221;
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc&#8217;
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc&#8217;
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault&#8217;
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault&#8217;
/usr/include/sys/siginfo.h:404: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>When getting an error like:</strong></p>
<p>In file included from /usr/include/sys/signal.h:34,<br />
from /usr/include/signal.h:26,<br />
from /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/unixish.h:106,<br />
from /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:2220,<br />
from u32align.c:10:<br />
/usr/include/sys/siginfo.h:259: error: parse error before &#8220;ctid_t&#8221;<br />
/usr/include/sys/siginfo.h:292: error: parse error before &#8216;}&#8217; token<br />
/usr/include/sys/siginfo.h:294: error: parse error before &#8216;}&#8217; token<br />
/usr/include/sys/siginfo.h:390: error: parse error before &#8220;ctid_t&#8221;<br />
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc&#8217;<br />
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc&#8217;<br />
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault&#8217;<br />
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault&#8217;<br />
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file&#8217;<br />
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file&#8217;<br />
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof&#8217;<br />
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof&#8217;<br />
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl&#8217;<br />
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl&#8217;<br />
/usr/include/sys/siginfo.h:426: error: parse error before &#8216;}&#8217; token<br />
/usr/include/sys/siginfo.h:428: error: parse error before &#8216;}&#8217; token<br />
/usr/include/sys/siginfo.h:432: error: parse error before &#8220;k_siginfo_t&#8221;<br />
/usr/include/sys/siginfo.h:437: error: parse error before &#8216;}&#8217; token</p>
<p><strong> It&#8217;s possible to solve the problem using:</strong></p>
<p><code>cd /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/install-tools<br />
./mkheaders </code></p>
]]></content:encoded>
			<wfw:commentRss>http://rami.info/2006/08/09/solving-system-headers-problems-when-using-sunfreewarecoms-gcc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>10 on 10</title>
		<link>http://rami.info/2006/08/07/10-on-10/</link>
		<comments>http://rami.info/2006/08/07/10-on-10/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 12:51:48 +0000</pubDate>
		<dc:creator>Rami</dc:creator>
		
		<category><![CDATA[RDBMS]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Solaris]]></category>

		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://rami.info/2006/08/07/10-on-10/</guid>
		<description><![CDATA[To install Oracle 10g on Solaris 10 do the following:

Add the SUNWi15cs and the SUNWi1cs packages.
Create the needed groups:

 groupadd -g 100 oinstall
groupadd -g 101 dba

Create the oracle user:

 useradd -u 100 -g 100 -G 101 -d /data/oracle -m -s /bin/tcsh oracle

Create the oracle project:

projadd oracle

Edit /etc/user_attr and add the following:

oracle::::project=oracle

Set the max.shm.memory and max.sem.ids [...]]]></description>
			<content:encoded><![CDATA[<p>To install Oracle 10g on Solaris 10 do the following:</p>
<ul>
<li>Add the SUNWi15cs and the SUNWi1cs packages.</li>
<li>Create the needed groups:</li>
</ul>
<p><code> groupadd -g 100 oinstall<br />
groupadd -g 101 dba</code></p>
<ul>
<li>Create the oracle user:</li>
</ul>
<p><code> useradd -u 100 -g 100 -G 101 -d /data/oracle -m -s /bin/tcsh oracle</code></p>
<ul>
<li>Create the oracle project:</li>
</ul>
<p><code>projadd oracle</code></p>
<ul>
<li>Edit /etc/user_attr and add the following:</li>
</ul>
<p><code>oracle::::project=oracle</code></p>
<ul>
<li>Set the max.shm.memory and max.sem.ids for the project:</li>
</ul>
<p><code>projmod -s -K "project.max-shm-memory=(priv,4gb,deny)" oracle<br />
projmod -s -K "project.max-sem-ids=(priv,100,deny)" oracle</code></p>
<ul>
<li>Edit /etc/system and add the following:</li>
</ul>
<p><code>set noexec_user_stack=1</code></p>
<ul>
<li>Reboot</li>
<li>Install ORACLE using the installer by running the following:</li>
</ul>
<p><code>./runInstaller -ignoreSysPrereqs</code></p>
<ul>
<li>Enjoy</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://rami.info/2006/08/07/10-on-10/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cloning A Drive Under Solaris</title>
		<link>http://rami.info/2006/05/15/cloning-a-drive-under-solaris/</link>
		<comments>http://rami.info/2006/05/15/cloning-a-drive-under-solaris/#comments</comments>
		<pubDate>Mon, 15 May 2006 08:07:04 +0000</pubDate>
		<dc:creator>Rami</dc:creator>
		
		<category><![CDATA[Solaris]]></category>

		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://rami.info/2006/05/15/cloning-a-drive-under-solaris/</guid>
		<description><![CDATA[1. Find the device names of the source and destination drives:
  format < /dev/null 
2. run the following sh script:
  SRC=c0t0d0
DEST=c0t1d0
MOUNTDIR=/clone
SLICES="s0 s1 s2 s3 s4"
mkdir ${MOUNTDIR}
prtvtoc /dev/rdsk/${SRC}s2  > /tmp/vtoc
fmthard -s /tmp/vtoc /dev/rdsk/${DEST}s2
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/${DEST}s2
# OR installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk   /dev/rdsk/${DEST}s0
for i in $SLICES; do
newfs /dev/dsk/${DEST}${i} < /dev/null
mount /dev/dsk/${DEST}${i} ${MOUNTDIR}
cd ${MOUNTDIR}
ufsdump [...]]]></description>
			<content:encoded><![CDATA[<p>1. Find the device names of the source and destination drives:<br />
<code>  format < /dev/null </code></p>
<p>2. run the following sh script:<br />
<code>  SRC=c0t0d0<br />
DEST=c0t1d0<br />
MOUNTDIR=/clone<br />
SLICES="s0 s1 s2 s3 s4"<br />
mkdir ${MOUNTDIR}<br />
prtvtoc /dev/rdsk/${SRC}s2  > /tmp/vtoc<br />
fmthard -s /tmp/vtoc /dev/rdsk/${DEST}s2<br />
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/${DEST}s2<br />
# OR installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk   /dev/rdsk/${DEST}s0<br />
for i in $SLICES; do<br />
newfs /dev/dsk/${DEST}${i} < /dev/null<br />
mount /dev/dsk/${DEST}${i} ${MOUNTDIR}<br />
cd ${MOUNTDIR}<br />
ufsdump 0f - /dev/dsk/${SRC}${i}| ufsrestore rf -<br />
cd /<br />
umount ${MOUNTDIR}<br />
done<br />
rmdir ${MOUNTDIR}<br />
rm /tmp/vtoc  </code></p>
]]></content:encoded>
			<wfw:commentRss>http://rami.info/2006/05/15/cloning-a-drive-under-solaris/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Updating Solaris 10</title>
		<link>http://rami.info/2006/05/15/updating-solaris-10/</link>
		<comments>http://rami.info/2006/05/15/updating-solaris-10/#comments</comments>
		<pubDate>Mon, 15 May 2006 07:57:34 +0000</pubDate>
		<dc:creator>Rami</dc:creator>
		
		<category><![CDATA[Solaris]]></category>

		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://rami.info/2006/05/15/updating-solaris-10/</guid>
		<description><![CDATA[In order to update Solaris 10 with the latest OS updates the following is needed to be done:
1. Create a file /tmp/registration.properties with the following:
  userName=sunusername
password=sunpassword
hostName=
subscriptionKey=
portalEnabled=false
proxyHostName=
proxyPort=
proxyUserName=
proxyPassword=

2. Run the following command:
  sconadm register -a -r /tmp/registration.properties

3. To perform the update do the following:
  smpatch update

]]></description>
			<content:encoded><![CDATA[<p>In order to update Solaris 10 with the latest OS updates the following is needed to be done:</p>
<p>1. Create a file /tmp/registration.properties with the following:<br />
<code>  userName=sunusername<br />
password=sunpassword<br />
hostName=<br />
subscriptionKey=<br />
portalEnabled=false<br />
proxyHostName=<br />
proxyPort=<br />
proxyUserName=<br />
proxyPassword=<br />
</code><br />
2. Run the following command:<br />
<code>  sconadm register -a -r /tmp/registration.properties<br />
</code><br />
3. To perform the update do the following:<br />
<code>  smpatch update<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://rami.info/2006/05/15/updating-solaris-10/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Calling JAVA code from Oracle</title>
		<link>http://rami.info/2006/03/19/calling-java-code-from-oracle/</link>
		<comments>http://rami.info/2006/03/19/calling-java-code-from-oracle/#comments</comments>
		<pubDate>Sun, 19 Mar 2006 13:27:50 +0000</pubDate>
		<dc:creator>Rami</dc:creator>
		
		<category><![CDATA[RDBMS]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[TechNotes]]></category>

		<guid isPermaLink="false">http://rami.info/2006/03/19/calling-java-code-from-oracle/</guid>
		<description><![CDATA[To run java code from oracle do the following:
1. Create the java code on the server:
CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "hello" AS
public class hello {
public static String world() {
return "Hello World";
}
}
/
2. Create the oracle function on the server:
CREATE OR REPLACE FUNCTION hellofunction RETURN VARCHAR2 AS
LANGUAGE JAVA NAME 'hello.world() return java.lang.String';
/
3. Call the [...]]]></description>
			<content:encoded><![CDATA[<p>To run java code from oracle do the following:</p>
<p>1. Create the java code on the server:</p>
<p><code>CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "hello" AS<br />
public class hello {<br />
public static String world() {<br />
return "Hello World";<br />
}<br />
}<br />
/</p>
<p></code>2. Create the oracle function on the server:</p>
<p><code>CREATE OR REPLACE FUNCTION hellofunction RETURN VARCHAR2 AS<br />
LANGUAGE JAVA NAME 'hello.world() return java.lang.String';<br />
/</p>
<p></code>3. Call the function using a SELECT:</p>
<p><code>SELECT hellofunction() from DUAL;</p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://rami.info/2006/03/19/calling-java-code-from-oracle/feed/</wfw:commentRss>
		</item>
		<item>
		<title>root.cache Update</title>
		<link>http://rami.info/2006/03/15/rootcache-update/</link>
		<comments>http://rami.info/2006/03/15/rootcache-update/#comments</comments>
		<pubDate>Wed, 15 Mar 2006 13:00:58 +0000</pubDate>
		<dc:creator>Rami</dc:creator>
		
		<category><![CDATA[AtWork]]></category>

		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://rami.info/2006/03/15/rootcache-update/</guid>
		<description><![CDATA[Update root.cache or named.ca files for DNS servers using the following command:
 dig @a.root-servers.net. . ns 
UPDATE: a better command:
dig +bufsize=1200 +norec NS . @a.root-servers.net &#62; /var/named/named.root [Link]

]]></description>
			<content:encoded><![CDATA[<p>Update root.cache or named.ca files for DNS servers using the following command:</p>
<p><code> dig @a.root-servers.net. . ns </code></p>
<p><strong>UPDATE:</strong> a better command:</p>
<p><code>dig +bufsize=1200 +norec NS . @a.root-servers.net &gt; /var/named/named.root [<a href="http://www.cyberciti.biz/faq/unix-linux-update-root-hints-data-file/" target="_blank">Link</a>]<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://rami.info/2006/03/15/rootcache-update/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Look at what I&#8217;ve got</title>
		<link>http://rami.info/2006/03/08/look-at-what-ive-got/</link>
		<comments>http://rami.info/2006/03/08/look-at-what-ive-got/#comments</comments>
		<pubDate>Wed, 08 Mar 2006 20:41:53 +0000</pubDate>
		<dc:creator>Rami</dc:creator>
		
		<category><![CDATA[Gadgets]]></category>

		<category><![CDATA[Gifts]]></category>

		<guid isPermaLink="false">http://rami.info/2006/03/08/look-at-what-ive-got/</guid>
		<description><![CDATA[ 
And it&#8217;s from my wife :o)
]]></description>
			<content:encoded><![CDATA[<p align="center"><img src="http://rami.info/wp-content/uploads/2006/03/DSC_0025.jpg" /> </p>
<p align="center">And it&#8217;s from my wife :o)</p>
]]></content:encoded>
			<wfw:commentRss>http://rami.info/2006/03/08/look-at-what-ive-got/feed/</wfw:commentRss>
		</item>
		<item>
		<title>URLEncode And URLDecode For Perl</title>
		<link>http://rami.info/2005/11/19/urlencode-and-urldecode-for-perl/</link>
		<comments>http://rami.info/2005/11/19/urlencode-and-urldecode-for-perl/#comments</comments>
		<pubDate>Sat, 19 Nov 2005 14:50:36 +0000</pubDate>
		<dc:creator>Rami</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://rami.info/2005/11/19/urlencode-and-urldecode-for-perl/</guid>
		<description><![CDATA[PHP has builtin functions for urlencode and urldecode functions but for perl I&#8217;ve found the following from HERE that does the same thing:
sub URLDecode {
    my $theURL = $_[0];
    $theURL =~ tr/+/ /;
    $theURL =~ s/%([a-fA-F0-9]{2,2})/chr(hex($1))/eg;
    $theURL =~ s/&#60;!&#8211;(.&#124;\n)*&#8211;&#62;//g;
    return [...]]]></description>
			<content:encoded><![CDATA[<p>PHP has builtin functions for urlencode and urldecode functions but for perl I&#8217;ve found the following from <a href="http://glennf.com/writing/hexadecimal.url.encoding.html">HERE</a> that does the same thing:</p>
<p><code>sub URLDecode {<br />
    my $theURL = $_[0];<br />
    $theURL =~ tr/+/ /;<br />
    $theURL =~ s/%([a-fA-F0-9]{2,2})/chr(hex($1))/eg;<br />
    $theURL =~ s/&lt;!&#8211;(.|\n)*&#8211;&gt;//g;<br />
    return $theURL;<br />
}</code><br />
<code>sub URLEncode {<br />
    my $theURL = $_[0];<br />
   $theURL =~ s/([\W])/&#8221;%&#8221; . uc(sprintf(&#8221;%2.2x&#8221;,ord($1)))/eg;<br />
   return $theURL;<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://rami.info/2005/11/19/urlencode-and-urldecode-for-perl/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
