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

<channel>
	<title>EntwicklerForum.org &#187; Linux</title>
	<atom:link href="http://www.entwicklerforum.org/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.entwicklerforum.org</link>
	<description>Tipps und Tricks für Entwickler</description>
	<lastBuildDate>Fri, 09 Dec 2011 17:54:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SSH Convenience</title>
		<link>http://www.entwicklerforum.org/ssh-convenience</link>
		<comments>http://www.entwicklerforum.org/ssh-convenience#comments</comments>
		<pubDate>Fri, 14 May 2010 13:32:32 +0000</pubDate>
		<dc:creator>m.rastetter</dc:creator>
				<category><![CDATA[OS - Betriebssysteme]]></category>
		<category><![CDATA[BSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/?p=761</guid>
		<description><![CDATA[It is common practice to use ssh (= secure shell) for remote administration. Foremost because it is a very secure way doing it, and supported on a vast variety of operating systems: BSD (Free-/Net-/OpenBSD) &#8211; comes along with OpenSSH already Linux (Debian, Fedora, RedHat, SuSE, Ubuntu, etc.) &#8211; mostly comprises an optional OpenSSH software package [...]]]></description>
			<content:encoded><![CDATA[<p>It is common practice to use <a title="SSH Wikipedia" href="http://en.wikipedia.org/wiki/Secure_Shell">ssh (= secure shell)</a> for remote administration. Foremost because it is a very secure way doing it, and supported on a vast variety of operating systems:</p>
<ul>
<li>BSD (Free-/Net-/OpenBSD) &#8211; comes along with <a title="OpenSSH" href="http://www.openssh.com/">OpenSSH</a> already</li>
<li>Linux (Debian, Fedora, RedHat, SuSE, Ubuntu, etc.) &#8211; mostly comprises an   optional <a title="OpenSSH" href="http://www.openssh.com/">OpenSSH</a> software package</li>
<li>Mac OS X &#8211; comes along with <a title="OpenSSH" href="http://www.openssh.com/">OpenSSH</a> already</li>
<li>Unix (AIX, HP/UX, Solaris, etc.) &#8211; comprise all some SSH software   package</li>
<li>Windows &#8211; regularly lacks of useful tools, but <a title="putty" href="http://www.putty.org/">putty</a> fills that gap complete</li>
</ul>
<p>&nbsp;</p>
<p><span id="more-761"></span></p>
<p>Here in this article we&#8217;d like to illuminate the functionality of the ssh-agent in a little more detail. And put some emphasis on the differences between several wide spread operating systems.</p>
<p>Consequently we ought to become acquainted with following tools, their purpose and their usage.</p>
<ul>
<li>ssh-keygen (putty equivalent = puttygen.exe)</li>
<li>ssh-agent (putty equivalent = pageant.exe)</li>
<li>ssh-add (putty equivalent = pageant.exe)</li>
<li>ssh, scp, sftp (putty equivalents = putty.exe, pscp.exe, psftp.exe)</li>
</ul>
<p><br class="spacer_" /></p>
<h5>Prior to anything else install SSH if not yet done.</h5>
<p><strong>Debian</strong> (respectively for Linux)</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ aptitude install ssh
...</pre></div></div>

<p><strong>Windows</strong></p>
<p>Extract the putty.zip archive to e.g. <em>c:\bin</em></p>
<p><img class="size-full wp-image-768" title="putty_c_bin" src="http://www.entwicklerforum.org/wp-content/uploads/2010/05/putty_c_bin.png" alt="Putty Tools" width="210" height="296" /></p>
<p>Include this directory to the PATH environment variable.</p>
<p><img class="alignnone size-full wp-image-764" title="env_path" src="http://www.entwicklerforum.org/wp-content/uploads/2010/05/env_path.png" alt="env_path" width="517" height="463" /></p>
<h5>Now let&#8217;s prepare the ssh-agent</h5>
<p>Before one can use the agent a key pair (public and private key) is required which will be used by the agent to authenticate at the server.</p>
<p><strong>All kinds of Unix</strong></p>
<p>Let&#8217;s start with the easy setup, w/o any further options, otherwise consult the man page.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[martin@sequoia:~]? ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/martin/.ssh/id_rsa): .ssh/id_rsa_2
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in .ssh/id_rsa_2.
Your public key has been saved in .ssh/id_rsa_2.pub.
The key fingerprint is:
2c:20:51:9b:67:9c:78:eb:c1:4c:43:fc:88:2d:97:3b martin@sequoia.local
&nbsp;
[martin@sequoia:~]? ls -l .ssh
-rw-------   1 martin  staff    408 Sep 26  2009 authorized_keys2
-r--------   1 martin  staff   1743 Sep 26  2009 id_rsa
-r--r--r--   1 martin  staff    408 Sep 26  2009 id_rsa.pub
-rw-------   1 martin  staff   1743 May 14 12:01 id_rsa_2
-rw-r--r--   1 martin  staff    402 May 14 12:01 id_rsa_2.pub
-rw-r--r--   1 martin  staff  15036 May 14 11:03 known_hosts
&nbsp;
[martin@sequoia:~]? fold -76 .ssh/id_rsa_2.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5Y/LD6qQaCsKX6zcy/fN6Ndk/0x/o3lFq9oF4Gfq
V+r/Ny3NBJGoprI3MnlmhrWvyijHOOa8yF/83q+CGP9p/5JfRU08hB5ncCvbNRfkxxDpioRMz9Xu
NZ4TSoTu1duuTROIwQfZ6IZCbQwNWRgNLiOsGXeEcbpUDLWVSF/UfItBdM7a/hoJp/JKB9RYSxav
iGQMQqkyajfPPr9RM15kWJQy//enQE+cXo2NaXQ1GWmAs5mdOYgSioztvBZBXOluMd35DQ6jX8XV
4TVRFIa9z8J2jQVZsuLzl/CnmPY/hBPbu6QIMqrReICQJ0K/Mo8j+tz0YwCZgl8w5LnPpx47hw==
 martin@sequoia.local</pre></div></div>

<p>Perhaps you&#8217;ve recognised that I already had a key used before, which I&#8217;d like to keep. You&#8217;re able to use multiple identities!</p>
<p><strong>Windows</strong></p>
<p>Create a key pair (public and private key)</p>
<p>Therefore start <em>puttygen.exe</em> from the command line (after you&#8217;ve added the putty installation directory to the PATH variable) or double-click on the <em>puttygen.exe</em> icon</p>
<p><img class="size-full wp-image-769" title="puttygen" src="http://www.entwicklerforum.org/wp-content/uploads/2010/05/puttygen.png" alt="Generate Key Pair" width="478" height="458" /></p>
<p>In the second step while creating a new key with <em>puttygen.exe</em> you&#8217;re securing the key with a passphrase you will remember always!</p>
<p><img class="size-full wp-image-765" title="keypassphrase" src="http://www.entwicklerforum.org/wp-content/uploads/2010/05/keypassphrase.png" alt="Select a Passphrase" width="480" height="461" /></p>
<p>Don&#8217;t forget to save the key pair (public and private) in seperate files to the disk.</p>
<h5>Prapare for using the agent</h5>
<p><strong>All kinds of Unix</strong></p>
<p>Append the public key into the file with the name <em>authorized_keys2</em> which resides in the <em>.ssh</em> directory of your users home directory. Create it if it&#8217;s not existing and restrict the writing access for others.<br />
It doesn&#8217;t make any difference whether you created your key pair on Windows by using <em>puttygen.exe</em> or on a Unix system by using <em>ssh-keygen</em>. Only make sure that the public key is added to the <em>authorized_keys2</em> in a similar format as shown here.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[martin@sequoia:~]? ls -l .ssh
-rw-------  1 martin  staff    408 Sep 26  2009 authorized_keys2
-r--------  1 martin  staff   1743 Sep 26  2009 id_rsa
-r--r--r--  1 martin  staff    408 Sep 26  2009 id_rsa.pub
-rw-------  1 martin  staff   1743 May 14 12:01 id_rsa_2
-rw-r--r--  1 martin  staff    402 May 14 12:01 id_rsa_2.pub
-rw-r--r--  1 martin  staff  15036 May 14 11:03 known_hosts
[martin@sequoia:~]? cat .ssh/id_rsa_2.pub &amp;gt;&amp;gt; .ssh/authorized_keys2
[martin@sequoia:~]? fold -76 .ssh/authorized_keys2
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4scI/a9W2J8QhR2s1ySMoPuQHw266r1mRpKPQ5vM
qK4OrZjmPDi73yvy5jsjKoO5U9sYUOpjmGbJfAlYOmU2T7sNbHocPbLtuSsxhyuzQS5SPY+oyE7k
09H/ZdX5rKj/jqmKg+lVKCeY64tBXNHjXjEhCf1AKosCmAdRdjXr38fQ1OwpxkhGKL8EOqNEGtxG
0y8LUuz5XzZdaoiW2uk3UY9NzOWiEqyPO5YwvcJ7WRrD4pNxVC0Ar+NpbBZpDT0RcnIF4XE3qEh/
57dj3VfLODi4y1/ErwpLPRtpnbvyrR9N9b2y7IGf8IMO/CjCSzosibtNgsztC/U2HGRIUBXAEQ==
 Rastis key for private use
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5Y/LD6qQaCsKX6zcy/fN6Ndk/0x/o3lFq9oF4Gfq
V+r/Ny3NBJGoprI3MnlmhrWvyijHOOa8yF/83q+CGP9p/5JfRU08hB5ncCvbNRfkxxDpioRMz9Xu
NZ4TSoTu1duuTROIwQfZ6IZCbQwNWRgNLiOsGXeEcbpUDLWVSF/UfItBdM7a/hoJp/JKB9RYSxav
iGQMQqkyajfPPr9RM15kWJQy//enQE+cXo2NaXQ1GWmAs5mdOYgSioztvBZBXOluMd35DQ6jX8XV
4TVRFIa9z8J2jQVZsuLzl/CnmPY/hBPbu6QIMqrReICQJ0K/Mo8j+tz0YwCZgl8w5LnPpx47hw==
 martin@sequoia.local</pre></div></div>

<p>Make also sure that a ssh daemon process (sshd) is running. You must be root to start this process.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># /etc/init.d/sshd start</pre></div></div>

<p>Or starting the ssh daemon on Mac OS X, you open the sharing preferences and activate <em>remote login</em>. You need administrative rights to do this.</p>
<p><img class="alignnone size-full wp-image-826" title="mac-sharing" src="http://www.entwicklerforum.org/wp-content/uploads/2010/05/mac-sharing.png" alt="mac-sharing" width="519" height="417" /></p>
<p><br class="spacer_" /></p>
<p><strong>Windows</strong></p>
<p>The public key generated by putty looks similar but not exactly identical.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">C:\Dokumente und Einstellungen\rasti\Eigene Dateien\ssh-keys&amp;gt;dir
 Volume in Laufwerk C: hat keine Bezeichnung.
 Volumeseriennummer: 1805-C667
 Verzeichnis von C:\Dokumente und Einstellungen\rasti\Eigene Dateien\ssh-keys
09.04.2010  10:40              .
09.04.2010  10:40              ..
09.04.2010  10:40               869 ssh-private.ppk
09.04.2010  10:39               294 ssh-public.asc
               2 Datei(en)          1.163 Bytes
               2 Verzeichnis(se), 145.506.770.944 Bytes frei
&nbsp;
C:\Dokumente und Einstellungen\rasti\Eigene Dateien\ssh-keys&amp;gt;type ssh-public.asc
---- BEGIN SSH2 PUBLIC KEY ----
Comment: &quot;rsa-key-20100409&quot;
AAAAB3NzaC1yc2EAAAABJQAAAIBpktt0TYXr5jiQu4B/6tHUvoYkeirjq/zGpwUm
B/lPKBE+qZJd1McCXyoOqQxa37LdkTVujxAMj7OQ0VhdGQw2sU0G5oJLzxGwOIUA
3oljIgq1FamB7usFBSjKkKpsfCmz/v9ydVT9xB32ToRYO6e6ywjUlTrmjF5nMvrA
j9o+HQ==
---- END SSH2 PUBLIC KEY ----</pre></div></div>

<p>Thus one has to add the key encryption type before when adding to authorized_keys2 &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">rasti@otherhost:/home/rasti&amp;gt; fold -76 .ssh/authorized_keys2
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBpktt0TYXr5jiQu4B/6tHUvoYkeirjq/zGpwUmB/lP
KBE+qZJd1McCXyoOqQxa37LdkTVujxAMj7OQ0VhdGQw2sU0G5oJLzxGwOIUA3oljIgq1FamB7usF
BSjKkKpsfCmz/v9ydVT9xB32ToRYO6e6ywjUlTrmjF5nMvrAj9o+HQ==</pre></div></div>

<p>Thats all.</p>
<h5>Let the agent do the authentication</h5>
<p><strong>All kinds of Unix</strong></p>
<p>Start the agent and source its variables to the local environment</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[martin@sequoia:~]? ssh-agent &amp;gt;ssh-agent-env
[martin@sequoia:~]? . ssh-agent-env
Agent pid 3780</pre></div></div>

<p>Add your identity (multiple are possible) to the agent.<br />
Of course you need to add the secret keys and provide the passphrases to them!</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[martin@sequoia:~]? ssh-add
Enter passphrase for /Users/martin/.ssh/id_rsa:
Identity added: /Users/martin/.ssh/id_rsa (/Users/martin/.ssh/id_rsa)
&nbsp;
[martin@sequoia:~]? ssh-add .ssh/id_rsa_2
Enter passphrase for .ssh/id_rsa_2:
Identity added: .ssh/id_rsa_2 (.ssh/id_rsa_2)</pre></div></div>

<p><strong>Windows</strong></p>
<p>Load the agent by running <em>pageant.exe</em> either by command line or double-clicking its icon. Then a small icon with a hat on a computer symbol will appear in the toolbar.</p>
<p><img class="alignnone size-full wp-image-766" title="pageant" src="http://www.entwicklerforum.org/wp-content/uploads/2010/05/pageant.png" alt="pageant" width="232" height="34" /></p>
<p>Make a right-click on this small icon with the mouse and select add key, and navigate to your private key which is about to be added.</p>
<p><img class="alignnone size-full wp-image-770" title="select-private-key" src="http://www.entwicklerforum.org/wp-content/uploads/2010/05/select-private-key.png" alt="select-private-key" width="554" height="397" /></p>
<p>And authenticate your private key with your passphrase &#8230;</p>
<p><img class="alignnone size-full wp-image-767" title="passphrase" src="http://www.entwicklerforum.org/wp-content/uploads/2010/05/passphrase.png" alt="passphrase" width="209" height="115" /></p>
<h5>Now we can start and enjoy the benefits of this admittetly quite painful preparation</h5>
<p>None of the prepared systems will require any further password authentication!<br />
This includes login, file copy, command execution etc.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[martin@sequoia:~]? sftp rasti@testhost.local
Connecting to testhost.local...
sftp&amp;gt; ls Documents
Documents/dump_db.zip        Documents/existingfiles.lst
Documents/newerfiles.lst     Documents/missingfiles.lst
sftp&amp;gt; quit
&nbsp;
[martin@sequoia:~]? scp rasti@testhost.local:~/Documents/modfiles.zip ./Documents/
modfiles.zip                            100% 6462     6.3KB/s   00:00
&nbsp;
[martin@sequoia:Documents]? cat commands.txt
uname
hostname
[martin@sequoia:Documents]? cat commands.txt | ssh -T rasti@testhost.local
Linux
testhost.local</pre></div></div>

<p>The ssh tool comprises a plenty of other options. Which leaves room for many more articles.<br />
One is to use the ssh-agent for more than one host with the agent-forwarding option &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[martin@sequoia:Documents]? ssh -A rasti@testhost.local
Linux testhost.local 2.6.26-2-xen-amd64 #1 SMP Wed May 13 18:43:45 UTC 2009 x86_64
Last login: Fri May 14 14:40:47 2010 from 1.2.3.4
&nbsp;
rasti@test:~$ ssh -A rasti@demohost.local
Linux demohost.local 2.6.26-2-xen-amd64 #1 SMP Wed May 13 18:43:45 UTC 2009 x86_64
Last login: Mon May  3 13:38:58 2010 from 1.2.3.4
&nbsp;
rasti@demo:~$ hostname
demohost.local</pre></div></div>

<p>Another helpful option is X11 forwarding &#8230;.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[martin@sequoia:Documents]? ssh -X rasti@testhost.local
Linux testhost.local 2.6.26-2-xen-amd64 #1 SMP Wed May 13 18:43:45 UTC 2009 x86_64
Last login: Fri May 14 14:57:33 2010 from 1.2.3.4
/usr/bin/X11/xauth:  creating new authority file /home/rasti/.Xauthority
rasti@test:~$ echo $DISPLAY
localhost:10.0
rasti@test:~$ xpdf Documents/Firebird-gfix.pdf &amp;amp;
[1] 5467
rasti@test:~$</pre></div></div>

<p>For this example we used X11 which is shipped with Mac OS X. One not even needs to maintain any of the xhost display access permissions.</p>
<p><img class="alignnone size-full wp-image-818" title="xpdf-ssh" src="http://www.entwicklerforum.org/wp-content/uploads/2010/05/xpdf-ssh.png" alt="xpdf-ssh" width="565" height="526" /></p>
<p>The same way it works with the command line tools on Windows.<br />
The major difference is that X11 is not part of Windows and must be installed seperately.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/ssh-convenience/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup Oracle Instant Client</title>
		<link>http://www.entwicklerforum.org/setup-oracle-instant-client</link>
		<comments>http://www.entwicklerforum.org/setup-oracle-instant-client#comments</comments>
		<pubDate>Thu, 13 May 2010 17:06:06 +0000</pubDate>
		<dc:creator>m.rastetter</dc:creator>
				<category><![CDATA[Datenbank, SQL]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/?p=776</guid>
		<description><![CDATA[The Oracle database client installation software is rather large in size. $ ls -l *11g* -rw-r--r-- 1 rasti staff 642016988 2010-04-27 23:36 linux_11gR2_client.zip Not only the approximate 630MB in size but also the graphical installation procedure is sometimes a big shortcoming. And for simply accessing an Oracle SQL Server a lesser volume of data might [...]]]></description>
			<content:encoded><![CDATA[<p>The <a title="Oracle Database 11g" href="http://www.oracle.com/technology/software/products/database/oracle11g/112010_linuxsoft.html">Oracle database</a> client installation software is rather large in size.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ ls -l *11g*
-rw-r--r-- 1 rasti staff 642016988 2010-04-27 23:36 linux_11gR2_client.zip</pre></div></div>

<p>Not only the approximate <strong>630MB</strong> in size but also the graphical installation procedure is sometimes a big shortcoming. And for simply accessing an Oracle SQL Server a lesser volume of data might be sufficient too. There the <a title="Oracle Instant Client" href="http://www.oracle.com/technology/software/tech/oci/instantclient/index.html">Oracle Instant Client</a> comes into play.<br />
<span id="more-776"></span> <span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;">$ ls -l *11.2*</span></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">-rw-r--r-- 1 rasti staff  46299404 2010-03-19 16:10 oracle-instantclient11.2-basic-11.2.0.1.0-1.i386.rpm
-rw-r--r-- 1 rasti staff   1564168 2010-03-19 16:10 oracle-instantclient11.2-jdbc-11.2.0.1.0-1.i386.rpm
-rw-r--r-- 1 rasti staff    791567 2010-03-23 14:24 oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.i386.rpm</pre></div></div>

<p>After installation of these three software packages e.g. like this</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ rpm -ivh oracle-instantclient11.2-basic-11.2.0.1.0-1.i386.rpm
$ rpm -ivh oracle-instantclient11.2-jdbc-11.2.0.1.0-1.i386.rpm
$ rpm -ivh oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.i386.rpm</pre></div></div>

<p>You ought to see them as part of the installed software.</p>
<p><!--more--></p>
<p>$ rpm -qa|grep -E &#8220;^oracle&#8221;</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">oracle-instantclient11.2-basic-11.2.0.1.0-1
oracle-instantclient11.2-jdbc-11.2.0.1.0-1
oracle-instantclient11.2-sqlplus-11.2.0.1.0-1</pre></div></div>

<p>If not been redirected the installation of the libraries goes to the directory <em>/usr/lib/oracle/11.2/client/lib</em><br />
You can check the package content with</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ rpm -qil oracle-instantclient11.2-sqlplus-11.2.0.1.0-1.i386
...</pre></div></div>

<p>To make the tools finding their required libraries automatically linking is used frequently in the <em>/usr/lib</em> directory.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ ls -l /usr/lib/liboc* /usr/lib/libsqlpl*
lrwxrwxrwx 1 root root 38 2010-04-15 19:18 /usr/lib/libocci.so.11.1 -&amp;gt; oracle/11.2/client/lib/libocci.so.11.1
lrwxrwxrwx 1 root root 34 2010-03-23 14:36 /usr/lib/libociei.so -&amp;gt; oracle/11.2/client/lib/libociei.so
lrwxrwxrwx 1 root root 38 2010-03-23 14:36 /usr/lib/libocijdbc11.so -&amp;gt; oracle/11.2/client/lib/libocijdbc11.so
lrwxrwxrwx 1 root root 38 2010-03-23 14:36 /usr/lib/libsqlplusic.so -&amp;gt; oracle/11.2/client/lib/libsqlplusic.so
lrwxrwxrwx 1 root root 36 2010-03-23 14:36 /usr/lib/libsqlplus.so -&amp;gt; oracle/11.2/client/lib/libsqlplus.so</pre></div></div>

<p>Let&#8217;s assume we&#8217;d like to access the database HELLO and keep the connection description in the accustomed location. Thus we put the <em>tnsnames.ora</em> here &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ mkdir -p /usr/lib/oracle/11.2/network/admin
$ cd /usr/lib/oracle/11.2/network/admin ; vi tnsnames.ora
...
$ cat tnsnames.ora
HELLO.WORLD = (
  DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hello.equitania.de)(PORT = 1527))
    (CONNECT_DATA = (SERVER = DEDICATED)(SID = HELLO))
 )</pre></div></div>

<p>To prepare the tools using this definition we hat the choice whether we&#8217;d like to append our settings to <em>/etc/profile.local</em> or create a seperate file for our needs like <em>/etc/profile.d/sqlplus</em>.<br />
Either way we&#8217;ve added the following lines.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ cat /etc/profile.d/sqlplus
ORACLE_HOME=/usr/lib/oracle/11.2
export ORACLE_HOME
TNS_ADMIN=${ORACLE_HOME}/network/admin
export TNS_ADMIN</pre></div></div>

<p>After these variables had been sourced into the shell environment, we can logon to the database.</p>

<div class="wp_syntax"><div class="code"><pre class="oracle8" style="font-family:monospace;">$ sqlplus <span style="color: #66cc66;">/</span>nolog
SQL&amp;gt; <span style="color: #993333; font-weight: bold; text-transform: uppercase;">CONNECT</span> rasti<span style="color: #66cc66;">/</span>T0pS3cr3T@hello.world
SQL&amp;gt; <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> user_tables;
...
SQL&amp;gt; disconnect;
SQL&amp;gt; <span style="color: #993333; font-weight: bold; text-transform: uppercase;">EXIT</span>;</pre></div></div>

<p>Very well, it worked properly!</p>
<p>Please consult the <a title="SQLplus FAQ" href="http://www.orafaq.com/wiki/SQL*Plus_FAQ">SQL*Plus FAQ</a> for further information about the clients capabilities.</p>
<p>Please also bear in mind that the <em>tnsnames.ora</em> won&#8217;t be used if accessing the database by PHP via the OCI library for instance. In this case you must know exactly how the database is defined on the server host. You can&#8217;t redefine the connection attributes in the <em>tnsnames.ora</em> file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/setup-oracle-instant-client/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux &amp; NTFS are best friends</title>
		<link>http://www.entwicklerforum.org/linux-ntfs-are-best-friends</link>
		<comments>http://www.entwicklerforum.org/linux-ntfs-are-best-friends#comments</comments>
		<pubDate>Wed, 27 Aug 2008 15:13:49 +0000</pubDate>
		<dc:creator>a.laaser</dc:creator>
				<category><![CDATA[OS - Betriebssysteme]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/?p=243</guid>
		<description><![CDATA[Fast jeder, der die &#220;berschrift liest, wird jetzt denken &#8220;Der Verfasser spinnt&#8221;. Viele Linux (Suse)-Nutzer kennen bestimmt das Problem, dass Festplatten, vorallem auf NTFS formatierte, von Linux (Suse) nicht erkannt werden. Es erscheint eine lange und komplizierte Meldung, die die &#220;berschrift &#8220;Cannot mount Volume&#8221; tr&#228;gt. Da man aber auch auf die Festplatte zugreifen m&#246;chte, sollte [...]]]></description>
			<content:encoded><![CDATA[<p>Fast jeder, der die &#220;berschrift liest, wird jetzt denken &#8220;Der Verfasser spinnt&#8221;.<br />
 Viele Linux (Suse)-Nutzer kennen bestimmt das Problem, dass Festplatten, vorallem auf NTFS formatierte, von Linux (Suse) nicht erkannt werden. Es erscheint eine lange und komplizierte Meldung, die die &#220;berschrift &#8220;Cannot mount Volume&#8221; tr&#228;gt.</p>
<p><span id="more-243"></span></p>
<p>Da man aber auch auf die Festplatte zugreifen m&#246;chte, sollte man sie mounten k&#246;nnen.<br />
 Daf&#252;r brauchen wir zuerst ein kleines Zusatzprogramm, welches auf Linux nicht immer vorinstalliert ist.</p>
<p>Dazu einfach mal Yast &#246;ffnen und links oben in die Suchleiste &#8221; Software installieren oder l&#246;schen&#8221; eingeben und rechts auf das &#8220;Software installieren oder l&#246;schen&#8221; klicken. Es &#246;ffnet sich ein Fenster in welchem wir wieder links oben in die Suchleiste &#8221; ntfs-conf&#8221; eingeben und das kleine Programm, was uns dann rechts angezeigt wird, installieren. (Sollte da kein Programm angezeigt werden nochmals die Rechtschreibung &#252;berpr&#252;fen, ansonsten ist das Programm schon installiert).</p>
<p>Yast wieder schliessen, Computer &#246;ffnen und Weitere Anwendungen ausw&#228;hlen. Links oben in die Suchleiste &#8220;NTFS&#8221; eingeben und schon sehen wir ein kleines, neues Programm &#8220;NTFS-Konfiguration&#8221;. Dieses &#246;ffnen.<br />
 Wenn die Festplatte bereits angeschlossen ist, erscheint beim ersten Mal ein gr&#246;&#223;eres Fenster, dies mit einem Klick auf „Ok“ best&#228;tigen.<br />
 Ansonsten wird dieses Fenster erscheinen :<br />
 <a href="http://www.entwicklerforum.org/wp-content/uploads/2008/08/bildschirmfoto.png"><img class="size-thumbnail wp-image-242 alignleft" title="bildschirmfoto" src="http://www.entwicklerforum.org/wp-content/uploads/2008/08/bildschirmfoto-150x150.png" alt="" width="135" height="135" /></a></p>
<p>Ich hab meine H&#228;kchen in  jedes K&#228;stchen gesetzt, auch in das, welches im unteren Abschnitt erscheint, wenn eine Festplatte angeschlossen ist.<br />
 Die Eingabe mit einem Klick auf &#8220;Schliessen&#8221; best&#228;tigen und nun sollte man auf die Festplatte zugreifen k&#246;nnen.</p>
<p>Das mounten und unmounten geht nur mit root-Rechten.<br />
 ( Linux Terminal : mount  /  umount )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/linux-ntfs-are-best-friends/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

