<?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>Oracle 48</title>
	<atom:link href="http://blog.oracle48.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.oracle48.nl</link>
	<description>A fresh view on Oracle</description>
	<lastBuildDate>Thu, 03 May 2012 06:44:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Adding VirtualBox &#8216;Simple&#8217; External authentication</title>
		<link>http://blog.oracle48.nl/adding-virtualbox-simple-external-authentication/</link>
		<comments>http://blog.oracle48.nl/adding-virtualbox-simple-external-authentication/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 13:04:32 +0000</pubDate>
		<dc:creator>Ian Hoogeboom</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://blog.oracle48.nl/?p=818</guid>
		<description><![CDATA[If you don&#8217;t want to use Guest or External (host) authentication when using VirtualBox Remote Display, one can add an extra external option called VBoxAuthSimple as explained here: http://www.virtualbox.org/manual/ch07.html#vbox-auth . This username/password will be stored in the machine&#8217;s XML settings file. Simple steps for (scott/tiger): &#62; VBoxManage setproperty vrdeauthlibrary "VBoxAuthSimple" &#62; VBoxManage modifyvm &#60;uuid&#124;name&#62; --vrdeauthtype [...]]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t want to use Guest or External (host) authentication when using <strong>VirtualBox Remote Display</strong>, one can add an extra external option called <a title="VBoxAuthSimple" href="http://www.virtualbox.org/manual/ch07.html#vbox-auth" target="_blank">VBoxAuthSimple</a> as explained here:<a title="http://www.virtualbox.org/manual/ch07.html#vbox-auth" href="http://www.virtualbox.org/manual/ch07.html#vbox-auth" target="_blank"> http://www.virtualbox.org/manual/ch07.html#vbox-auth</a> . This username/password will be stored in the machine&#8217;s XML settings file.</p>
<p>Simple steps for (scott/tiger):<span id="more-818"></span></p>
<pre>&gt; VBoxManage setproperty vrdeauthlibrary "VBoxAuthSimple"

&gt; VBoxManage modifyvm &lt;uuid|name&gt; --vrdeauthtype external

&gt; VBoxManage internalcommands passwordhash "<span style="text-decoration: underline"><strong>tiger</strong></span>"
Password hash: <em>f15c16b99f82d8201767d3a841ff40849c8a1b812ffbfd2e393d2b6aa6682a6e</em>

&gt; VBoxManage setextradata &lt;uuid|name&gt; "VBoxAuthSimple/users/<span style="text-decoration: underline"><strong>scott</strong></span>" <em>f15c16b99f82d8201767d3a841ff40849c8a1b812ffbfd2e393d2b6aa6682a6e</em>
</pre>
<p>(I had to add the VirtualBox install directory %VBOX_INSTALL_PATH% to my path&#8230;)</p>
<p>Happy connecting!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oracle48.nl/adding-virtualbox-simple-external-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox VRDP authentication fails with mstsc.exe</title>
		<link>http://blog.oracle48.nl/virtualbox-vrdp-authentication-fails-with-mstsc-exe/</link>
		<comments>http://blog.oracle48.nl/virtualbox-vrdp-authentication-fails-with-mstsc-exe/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 12:42:55 +0000</pubDate>
		<dc:creator>Ian Hoogeboom</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://blog.oracle48.nl/?p=813</guid>
		<description><![CDATA[I had this problem, when trying to connect with the External Authentication Method, using the Remote Display server in VirtualBox (4.1.8). When I want to connect with Microsoft&#8217;s Remote Desktop (mstsc.exe), it failed every time. It seems it only works when one selects Allow me to save credentials in the Options -&#62; General Tab in Remote [...]]]></description>
			<content:encoded><![CDATA[<p>I had this problem, when trying to connect with the <strong>External Authentication Method</strong>, using the <strong>Remote Display</strong> server in VirtualBox (4.1.8). When I want to connect with Microsoft&#8217;s Remote Desktop (mstsc.exe), it failed every time.<span id="more-813"></span></p>
<div id="attachment_816" class="wp-caption alignnone" style="width: 572px"><a rel="attachment wp-att-816" href="http://blog.oracle48.nl/virtualbox-vrdp-authentication-fails-with-mstsc-exe/vrdp1-2/"><img class="size-full wp-image-816" src="http://blog.oracle48.nl/wordpress/wp-content/uploads/vrdp11.png" alt="VirtualBox Remote Display Properties" width="562" height="423" /></a><p class="wp-caption-text">VirtualBox Remote Display Properties</p></div>
<p>It seems it only works when one selects <strong>Allow me to save credentials</strong> in the Options -&gt; General Tab in Remote Desktop Connection screen.</p>
<div id="attachment_815" class="wp-caption alignnone" style="width: 431px"><a rel="attachment wp-att-815" href="http://blog.oracle48.nl/virtualbox-vrdp-authentication-fails-with-mstsc-exe/vrdp2/"><img class="size-full wp-image-815" src="http://blog.oracle48.nl/wordpress/wp-content/uploads/vrdp2.png" alt="Remote Desktop properties" width="421" height="480" /></a><p class="wp-caption-text">Remote Desktop properties</p></div>
<p>Happy connecting!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oracle48.nl/virtualbox-vrdp-authentication-fails-with-mstsc-exe/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oracle SQL Developer and a SQL Server Instance</title>
		<link>http://blog.oracle48.nl/oracle-sql-developer-and-a-sql-server-instance/</link>
		<comments>http://blog.oracle48.nl/oracle-sql-developer-and-a-sql-server-instance/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 13:30:40 +0000</pubDate>
		<dc:creator>Ian Hoogeboom</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[SQL Developer]]></category>

		<guid isPermaLink="false">http://blog.oracle48.nl/?p=810</guid>
		<description><![CDATA[Sometimes&#8230; as Oracle DBA you need to connect to SQL Server (with Oracle SQL Developer and jTDS plug-in installed). When using &#8216;SQL Server Management Studio&#8217;, the &#8216;Server name&#8217; is in the format: SERVERNAME\INSTANCE. This won&#8217;t work in SQL Developer: Status : Failure -Unknown server host name 'SERVERNAME\INSTANCE'. This can be solved using the Hostname in [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes&#8230; as Oracle DBA you need to connect to SQL Server (with Oracle SQL Developer and <a title="jTDS" href="http://jtds.sourceforge.net/" target="_blank">jTDS</a> plug-in installed).</p>
<p>When using &#8216;SQL Server Management Studio&#8217;, the &#8216;Server name&#8217; is in the format:</p>
<pre>SERVERNAME\INSTANCE.</pre>
<p>This won&#8217;t work in SQL Developer:</p>
<pre>Status : Failure -Unknown server host name 'SERVERNAME\INSTANCE'.</pre>
<p>This can be solved using the Hostname in the next format in SQL Developer:</p>
<pre>SERVERNAME;instance=INSTANCE</pre>
<p>For me it worked :)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oracle48.nl/oracle-sql-developer-and-a-sql-server-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox, Google Calendar and &#8220;The page isn&#8217;t redirecting properly&#8221;</title>
		<link>http://blog.oracle48.nl/firefox-google-calendar-and-the-page-isnt-redirecting-properly/</link>
		<comments>http://blog.oracle48.nl/firefox-google-calendar-and-the-page-isnt-redirecting-properly/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 08:07:43 +0000</pubDate>
		<dc:creator>Ian Hoogeboom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Calendar]]></category>

		<guid isPermaLink="false">http://blog.oracle48.nl/?p=804</guid>
		<description><![CDATA[Wipe-out! Do you have a problem loading Google Calendar in Firefox and getting: &#8220;The page isn&#8217;t redirecting properly&#8220;, &#8220;This problem can sometimes be caused by disabling or refusing to accept cookies.&#8220;? I only removed one cookie for Domain &#8216;.www.google.com&#8216; and Path &#8216;/calendar/&#8216; and problem was solved! The dot prefixing the &#8216;www&#8217; is causing the problem [...]]]></description>
			<content:encoded><![CDATA[<p>Wipe-out! Do you have a problem loading Google Calendar in Firefox and getting:</p>
<p>&#8220;<strong>The page isn&#8217;t redirecting properly</strong>&#8220;, &#8220;<strong>This problem can sometimes be caused by disabling or refusing to accept cookies.</strong>&#8220;?</p>
<p>I only removed <strong>one</strong> cookie for Domain &#8216;<strong>.www.google.com</strong>&#8216; and Path &#8216;<strong>/calendar/</strong>&#8216; and problem was solved!</p>
<p>The <strong>dot</strong> prefixing the &#8216;www&#8217; is causing the problem I think.</p>
<p>Happy surfing!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oracle48.nl/firefox-google-calendar-and-the-page-isnt-redirecting-properly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get wget command for a Metalink / My Oracle Support download with FireFox cliget add-on</title>
		<link>http://blog.oracle48.nl/get-wget-command-for-metalink-download-with-firefox-add-on/</link>
		<comments>http://blog.oracle48.nl/get-wget-command-for-metalink-download-with-firefox-add-on/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 17:33:46 +0000</pubDate>
		<dc:creator>Ian Hoogeboom</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Metalink]]></category>
		<category><![CDATA[My Oracle Support]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://blog.oracle48.nl/?p=798</guid>
		<description><![CDATA[Today I ran into an add-on for FireFox which can create a wget command from a download file dialog box. First thing that came in mind was; Will this work for Metalink / My Oracle Support? Yes is does! The add-on is called &#8216;cliget&#8217; and can be downloaded here: cliget add-on for FireFox. Get wget [...]]]></description>
			<content:encoded><![CDATA[<p>Today I ran into an add-on for FireFox which can create a wget command from a download file dialog box. First thing that came in mind was; Will this work for Metalink / My Oracle Support? <em><strong>Yes is does</strong></em>!</p>
<p>The add-on is called &#8216;cliget&#8217; and can be downloaded here: <a title="cliget add-on for FireFox" href="https://addons.mozilla.org/en-US/firefox/addon/cliget/" target="_blank">cliget add-on for FireFox</a>.<span id="more-798"></span></p>
<h2>Get wget command from cliget download dialog</h2>
<ol>
<li>Go to the Oracle support site: <a title="HTML Oracle Support" href="http://support.oracle.com/" target="_blank">support.oracle.com</a>;</li>
<li>Search for the patch or donwload you need and click on the file to download it;</li>
<li>In the download dialog an extra section is added with the wget command and a copy button:</li>
</ol>
<div id="attachment_799" class="wp-caption alignnone" style="width: 620px"><a rel="attachment wp-att-799" href="http://blog.oracle48.nl/get-wget-command-for-metalink-download-with-firefox-add-on/cliget/"><img class="size-full wp-image-799  " src="http://blog.oracle48.nl/wordpress/wp-content/uploads/cliget.jpg" alt="cliget add-on for FireFox" width="610" height="590" /></a><p class="wp-caption-text">cliget add-on for FireFox</p></div>
<h2>Paste wget command in Linux</h2>
<p>Paste this wget command in a Linux command line and hit enter:</p>
<pre>[oracle::/u01/download]$ <strong>wget</strong> --header="Host: aru-llnw-dl.oracle.com" --header="User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0" --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" --header="Accept-Language: en" --header="Accept-Encoding: gzip, deflate" --header="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" --header="DNT: 1" --header="Connection: keep-alive" --header="Cookie: ORA_UCM_SRVC=3*ORA~1~0~//~null~*OTN~1~0~//~null~
(...)
ZD0yNzMxOTU5&amp;e=1312565455&amp;h=a6261356a8937ecf2ecdad0f6ae6e629
Resolving aru-llnw-dl.oracle.com... 87.248.203.253, 87.248.203.254
Connecting to aru-llnw-dl.oracle.com|87.248.203.253|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: <strong>226118567</strong> (216M) [application/zip]
Saving to: '<strong>p12398567_112022_SOLARIS64.zip</strong>'

100%[=========================================&gt;] 226,118,567 4.72M/s in 56s

2011-08-05 19:21:58 (3.87 MB/s) - '<strong>p12398567_112022_SOLARIS64.zip</strong>' saved [226118567/<strong>226118567</strong>]</pre>
<p>The link must be used &#8216;immediately&#8217;, when I tried to use it again 60 minutes later, the result was:</p>
<pre>Connecting to aru-llnw-dl.oracle.com|87.248.203.254|:80... connected.
HTTP request sent, awaiting response... 400 Bad Request
2011-08-05 19:20:15 ERROR 400: Bad Request.</pre>
<h2>Google Chrome</h2>
<p>I have found something similar for Google Chrome, but I involves some steps in exporting a cookie.txt file: <a title="wget cookie.txt export for Google Chrome" href="https://chrome.google.com/webstore/detail/lopabhfecdfhgogdbojmaicoicjekelh" target="_blank">wget cookie.txt export</a> add-on for Google Chrome.</p>
<h2>Metalink Flash wget</h2>
<p>The Flash site of My Oracle Support also lets you create wget commands, but this will be a script which must be edited with your password before it can be used. It includes logging and creating temporary cookie files, but the advantage is it will be usable for 48 hours.</p>
<div id="attachment_803" class="wp-caption alignnone" style="width: 544px"><a rel="attachment wp-att-803" href="http://blog.oracle48.nl/get-wget-command-for-metalink-download-with-firefox-add-on/oracle_patch_wget_options/"><img class="size-full wp-image-803" src="http://blog.oracle48.nl/wordpress/wp-content/uploads/oracle_patch_wget_options.jpg" alt="Oracle patch wget options" width="534" height="422" /></a><p class="wp-caption-text">Oracle patch wget options</p></div>
<p>Happy downloading!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oracle48.nl/get-wget-command-for-metalink-download-with-firefox-add-on/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding shared folders to VirtualBox guest using the command line</title>
		<link>http://blog.oracle48.nl/adding-shared-folders-to-virtual-box-guest-using-the-command-line/</link>
		<comments>http://blog.oracle48.nl/adding-shared-folders-to-virtual-box-guest-using-the-command-line/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 11:47:36 +0000</pubDate>
		<dc:creator>Ian Hoogeboom</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://blog.oracle48.nl/?p=791</guid>
		<description><![CDATA[Sometimes you don&#8217;t want to use a lot of disk space on your VirtualBox for install software or any &#8216;temporary&#8217; need of space. Adding shared folders from your host to your VirtualBox guest is a good option to use. If you have a Windows guest and a GUI based Host, it it&#8217;s very easy; click, [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you don&#8217;t want to use a lot of disk space on your VirtualBox for install software or any &#8216;temporary&#8217; need of space.</p>
<p>Adding shared folders from your host to your VirtualBox guest is a good option to use. If you have a Windows guest and a GUI based Host, it it&#8217;s very easy; click, click, done.</p>
<p>BUt if you are stuck with only a command line based guest and or host, it a bit more complex. Please use this post a guideline, Linux knowledge is assumed&#8230; <span id="more-791"></span></p>
<h2>Adding/removing shared folders to VirtualBox</h2>
<pre>[<span style="text-decoration: underline">host</span>] # vboxmanage sharedfolder add "vbox_name" --name install --hostpath /install --automount
[<span style="text-decoration: underline">host</span>] # vboxmanage sharedfolder remove "vbox_name" --name install</pre>
<p>On guest automounted to &#8216;/media/sf_install&#8217;, otherwise mount (again) with:</p>
<pre>[<span style="text-decoration: underline">guest</span>] # mount -t vboxsf install /mnt/install</pre>
<h2>What if in case of the vboxfs mounting error</h2>
<pre>/sbin/mount.vboxsf: mounting failed with the error: No such device</pre>
<p>We are probably missing VBoxGuestAdditions (vboxfs). For a Windows guest we can use the following command:</p>
<pre>[<span style="text-decoration: underline">host</span>] # vboxmanage guestcontrol updateadditions "vbox_name" --source /usr/share/virtualbox/VBoxGuestAdditions.iso --verbose</pre>
<p>If we are using Linux, we might need to do it manually!</p>
<h2>Manually installing VBoxGuestAdditions</h2>
<h3>0. Make sure GCC, MAKE and KERNEL-DEVEL are installed&#8230;</h3>
<pre>[<span style="text-decoration: underline">guest</span>] # yum install gcc make kernel-devel
(or similar package command for your distribution)</pre>
<p>If not installed, you might run into next troubles:</p>
<pre>[<span style="text-decoration: underline">guest</span>] # cat /var/log/vboxadd-install.log
Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=&lt;directory&gt; and run Make again..  Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.</pre>
<p>[GOTO 1. if you do not see these errors...]</p>
<p>To see what went wrong run &#8216;/etc/init.d/vboxadd setup&#8217;:</p>
<pre>[<span style="text-decoration: underline">guest</span>] # /etc/init.d/vboxadd setup
Removing existing VirtualBox DKMS kernel modules           [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
<strong>yum install kernel-devel-2.6.18-238.el5</strong>                    [FAILED]

Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
Once you have corrected it, you can run</pre>
<pre><strong>/etc/init.d/vboxadd setup</strong></pre>
<pre>to build them.</pre>
<pre>Doing non-kernel setup of the Guest Additions              [  OK  ]</pre>
<p>Correct what went wrong and run &#8216;/etc/init.d/vboxadd setup&#8217; again:</p>
<pre>[<span style="text-decoration: underline">guest</span>] # <strong>yum install gcc make kernel-devel</strong>
(yada yada yada)</pre>
<pre>[<span style="text-decoration: underline">guest</span>] # <strong>/etc/init.d/vboxadd setup</strong>
Removing existing VirtualBox DKMS kernel modules           [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
Your guest system does not seem to have sufficient OpenGL support to enable
accelerated 3D effects (this requires Linux 2.6.27 or later in the guest
system).  This Guest Additions feature will be disabled.</pre>
<pre>Building the main Guest Additions module                   [  OK  ]
Building the shared folder support module                  [  OK  ]
Doing non-kernel setup of the Guest Additions              [  OK  ]
Starting the VirtualBox Guest Additions                    [  OK  ]</pre>
<h3>1a. Find the IDE Controller device numbers</h3>
<pre>[<span style="text-decoration: underline">host</span>] # vboxmanage showvminfo "vbox_name" | grep "Storage Controller Name"
 Storage Controller Name (0):            IDE controller</pre>
<h3>1b.Get the port and device numbers</h3>
<pre>[<span style="text-decoration: underline">host</span>] # vboxmanage showvminfo "vbox_name" | grep "IDE controller"
 IDE controller (1, 0): Empty</pre>
<h3>1c. If not found, add it</h3>
<pre>[<span style="text-decoration: underline">host</span>] # vboxmanage storagectl "vbox_name" --name "IDE controller" --add ide</pre>
<h3>2. Attach the VBoxGuestAdditions.iso as dvddrive</h3>
<p>Port and device numbers needed here!</p>
<pre>[<span style="text-decoration: underline">host</span>] # vboxmanage storageattach "vbox_name" --storagectl "IDE controller" \
<strong>--port 1 --device 0</strong> --type dvddrive \
--medium /usr/share/virtualbox/VBoxGuestAdditions.iso</pre>
<h3>3. Mount the DVD drive on Guest OS</h3>
<pre>[<span style="text-decoration: underline">guest</span>] # mkdir /mnt/dvd
[<span style="text-decoration: underline">guest</span>] # mount -t iso9660 -o ro /dev/dvd /mnt/dvd</pre>
<h3>4. Install VBoxLinuxAdditions</h3>
<pre>[<span style="text-decoration: underline">guest</span>] # cd /mnt/dvd
[<span style="text-decoration: underline">guest</span>] # ./VBoxLinuxAdditions.run</pre>
<h3>5. Done? Unmount and remove</h3>
<pre>[<span style="text-decoration: underline">guest</span>] # umount /dev/dvd</pre>
<pre>[<span style="text-decoration: underline">host</span>] # vboxmanage controlvm "vbox_name" poweroff
[<span style="text-decoration: underline">host</span>] # vboxmanage storageattach "vbox_name" --storagectl "IDE controller" \
--port 1 --device 0 --type dvddrive --medium emptydrive</pre>
<h2>Uninstall VBoxGuestAdditions</h2>
<pre>[<span style="text-decoration: underline">guest</span>] # /opt/VBoxGuestAdditions-4.0.8/uninstall.sh</pre>
<h2>VirtualBox downloads</h2>
<p><a title="VirtualBox downloads" href="http://download.virtualbox.org/virtualbox/" target="_blank">http://download.virtualbox.org/virtualbox/</a></p>
<p>Done&#8230; Happy sharing!</p>
<div class="mcePaste" style="width: 1px;height: 1px;overflow: hidden">
<pre>[<span style="text-decoration: underline">guest</span>]</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.oracle48.nl/adding-shared-folders-to-virtual-box-guest-using-the-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kill, cancel and resume or restart datapump expdp and impdp jobs</title>
		<link>http://blog.oracle48.nl/killing-and-resuming-datapump-expdp-and-impdp-jobs/</link>
		<comments>http://blog.oracle48.nl/killing-and-resuming-datapump-expdp-and-impdp-jobs/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 09:08:43 +0000</pubDate>
		<dc:creator>Ian Hoogeboom</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[datapump]]></category>
		<category><![CDATA[expdp]]></category>
		<category><![CDATA[impdp]]></category>

		<guid isPermaLink="false">http://blog.oracle48.nl/?p=788</guid>
		<description><![CDATA[The expdp and impdp utilities are command-line driven, but when starting them from the OS-prompt, one does not notice it. When you want to kill, cancel, start or resume a job, you will and up in the datapump command prompt&#8230; now what?! All command shown here can be used with expdp and impdp datapump. Identifying [...]]]></description>
			<content:encoded><![CDATA[<p>The expdp and impdp utilities are command-line driven, but when starting them from the OS-prompt, one does not notice it. When you want to kill, cancel, start or resume a job, you will and up in the datapump command prompt&#8230; now what?!</p>
<p>All command shown here can be used with expdp and impdp datapump.<span id="more-788"></span></p>
<h2>Identifying datapump jobs</h2>
<p>Do a select from dba_datapump_jobs in sqlplus to get the job name:</p>
<pre>&gt; expdp system full=y

SELECT owner_name, job_name, operation, job_mode, state
FROM dba_datapump_jobs;

OWNER_NAME JOB_NAME             OPERATION  JOB_MODE   STATE
---------- -------------------- ---------- ---------- ------------
SYSTEM     <strong>SYS_EXPORT_FULL_01</strong>   EXPORT     FULL       EXECUTING</pre>
<p>Or when you use the <strong>JOB_NAME</strong> parameter when datapumping, you already identified the job with a name. You don&#8217;t need to look up afterwards&#8230;</p>
<pre>expdp system full=y <strong>JOB_NAME=EXP_FULL</strong>

OWNER_NAME JOB_NAME             OPERATION  JOB_MODE   STATE
---------- -------------------- ---------- ---------- ------------
SYSTEM     <strong>EXP_FULL</strong>             EXPORT     FULL       EXECUTING</pre>
<h2>Killing or stopping a running datapump job</h2>
<p>The difference between Kill and Stop is simple to explain. When killing a job, you won&#8217;t be able to resume or start it again. Also logs and dumpfiles will be removed!</p>
<p>When exporting (or importing), press Ctrl-c to show the datapump prompt and type <strong>KILL_JOB</strong> or <strong>STOP_JOB</strong>[=IMMEDIATE]. You will be prompted to confirm if you are sure&#8230;</p>
<p>Adding &#8216;<strong>=IMMEDIATE</strong>&#8216; to <strong>STOP_JOB</strong> will not finish currently running &#8216;sub-job&#8217; and must be redone when starting it again.</p>
<pre>Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
[Ctrl-c]
Export&gt; <strong>KILL_JOB</strong>
..or..
Export&gt; <strong>STOP_JOB=IMMEDIATE</strong>
Are you sure you wish to stop this job ([yes]/no): yes</pre>
<h2>Resuming a stopped job</h2>
<p>Identify your job with SQL or you already knew it because you used &#8216;<strong>JOB_NAME=</strong>&#8216; ;)</p>
<pre>SELECT owner_name, job_name, operation, job_mode, state
FROM dba_datapump_jobs;

OWNER_NAME JOB_NAME             OPERATION  JOB_MODE   STATE      
---------- -------------------- ---------- ---------- ------------
SYSTEM     <strong>EXP_FULL</strong>             EXPORT     FULL       NOT RUNNING</pre>
<p>Now we can <strong>ATTACH</strong> to the job using it as a parameter to the expdp or impdp command, and a lot of gibberish is shown:</p>
<pre>&gt; expdp system <strong>ATTACH=EXP_FULL</strong>

Job: <strong>EXP_FULL</strong>
 Owner: SYSTEM
 Operation: EXPORT
 Creator Privs: TRUE
 GUID: A5441357B472DFEEE040007F0100692A
 Start Time: Thursday, 08 June, 2011 20:23:39
 Mode: FULL
 Instance: db1
 Max Parallelism: 1
 EXPORT Job Parameters:
 Parameter Name      Parameter Value:
 CLIENT_COMMAND        system/******** full=y <strong>JOB_NAME=EXP_FULL</strong>
 State: IDLING
 Bytes Processed: 0
 Current Parallelism: 1
 Job Error Count: 0
 Dump File: /u01/app/oracle/admin/db1/dpdump/expdat.dmp
 bytes written: 520,192

Worker 1 Status:
 Process Name: DW00
 State: UNDEFINED</pre>
<p>(Re)start the job with <strong>START_JOB</strong>, use &#8216;<strong>=SKIP_CURRENT</strong>&#8216; if you want to skip the current job. To show progress again, type <strong>CONTINUE_CLIENT</strong> (Job will be restarted if idle).</p>
<pre>Export&gt; <strong>START_JOB</strong>[=SKIP_CURRENT]
Export&gt; <strong>CONTINUE_CLIENT</strong>
Job EXP_FULL has been reopened at Thursday, 09 June, 2011 10:26
Restarting "SYSTEM"."EXP_FULL":  system/******** full=y <strong>JOB_NAME=EXP_FULL</strong>

Processing object type DATABASE_EXPORT/TABLESPACE
Processing object type DATABASE_EXPORT/PROFILE</pre>
<p>Done&#8230;</p>
<p>Happy pumping!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oracle48.nl/killing-and-resuming-datapump-expdp-and-impdp-jobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is your PC IPv6 ready?</title>
		<link>http://blog.oracle48.nl/is-your-pc-ipv6-ready/</link>
		<comments>http://blog.oracle48.nl/is-your-pc-ipv6-ready/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 09:28:06 +0000</pubDate>
		<dc:creator>Ian Hoogeboom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IPv6]]></category>

		<guid isPermaLink="false">http://blog.oracle48.nl/?p=786</guid>
		<description><![CDATA[When checking for the latest version of Wireshark, I came across their IPv4/IPv6 test page. Of course a lot more IPv6 test pages can be found here: http://www.google.com/search?q=ipv6+test Happy testing!]]></description>
			<content:encoded><![CDATA[<p>When checking for the latest version of Wireshark, I came across their <a title="IPv4/IPv6 test page" href="http://www.wireshark.org/tools/v46status.html" target="_blank">IPv4/IPv6 test page</a>.</p>
<p>Of course a lot more IPv6 test pages can be found here:<br />
<a href="http://www.google.com/search?q=ipv6+test" target="_blank">http://www.google.com/search?q=ipv6+test</a></p>
<p>Happy testing!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oracle48.nl/is-your-pc-ipv6-ready/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The expdp equivalent of &#8216;exp consistent=y&#8217;&#8230;</title>
		<link>http://blog.oracle48.nl/the-expdp-equivalent-of-exp-consistent_y/</link>
		<comments>http://blog.oracle48.nl/the-expdp-equivalent-of-exp-consistent_y/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 10:59:28 +0000</pubDate>
		<dc:creator>Ian Hoogeboom</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[expdp]]></category>
		<category><![CDATA[Flashback]]></category>
		<category><![CDATA[Undo]]></category>

		<guid isPermaLink="false">http://blog.oracle48.nl/?p=781</guid>
		<description><![CDATA[Last few weeks I have been exporting 10g databases for migrating them to 11g. I knew Export Data Pump was read consistent (I have been running into ORA-01555&#8216;s), but I was surprised to see a ORA-02298 (parent keys not found) when importing: Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT ORA-39083: Object type REF_CONSTRAINT failed to create with error: [...]]]></description>
			<content:encoded><![CDATA[<p>Last few weeks I have been exporting 10g databases for migrating them to 11g. I knew Export Data Pump was read consistent (I have been running into <a title="ORA-01555" href="http://blog.oracle48.nl/oracle-database-undo-space-explained/" target="_blank">ORA-01555</a>&#8216;s), but I was surprised to see a ORA-02298 (parent keys not found) when importing:</p>
<pre>Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
ORA-39083: Object type REF_CONSTRAINT failed to create with error:
ORA-02298: cannot validate (SCOTT.FK_SCALE_ID) - parent keys not found
Failing sql is:
ALTER TABLE "SCOTT"."SCALE_ID" ADD CONSTRAINT "FK_SCALE_ID" FOREIGN KEY ("SCALE_ID") REFERENCES "SCOTT"."SCALE" ("ID") ENABLE</pre>
<p>I thought the expdp had made an consistent database dump, but didn&#8217;t! The FK&#8217;s present in SALARY were not present as PK&#8217;s in the SCALE table, so this could only mean the dump was not database consistent at all!</p>
<h2>Solution: Using the flashback_time option</h2>
<p><span id="more-781"></span>I found a discussion about &#8216;exp consistent=y&#8217; on <a title="AskTom" href="http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:21545894805637#2655344700346147877" target="_blank">AskTom</a>. Check the followup on June 6, 2010:</p>
<p><em><strong>Followup</strong><br />
&#8220;in all cases, a table is always exported &#8220;as of a single point in time&#8221;. However, many times you want ALL tables exported as of a single point in time. If you want the equivalent of the old export &#8220;consistent=y&#8221;, you would use</em> <strong><span style="text-decoration: underline"><em>flashback_time=systimestamp</em></span></strong><em> to get the data pump export to be &#8220;as of the point in time the export began, every table will be as of the same commit point in time&#8221; &#8221;<br />
</em></p>
<p>According to the <a id="external_link" title="docs" rel="nofollow" href="http://download.oracle.com/docs/cd/E14072_01/server.112/e10701/dp_export.htm" target="_blank">docs</a>:</p>
<p><em>&#8220;The SCN that most closely matches  the specified time is found, and this SCN is used to enable the  Flashback utility. The export operation is performed with data that is  consistent as of this SCN.&#8221;</em></p>
<p>Using the &#8216;systimestamp&#8217; option will pass the current time value, as easy as that!</p>
<h2>Example</h2>
<pre>expdp scott dumpfile=expdp.dmp logfile=expdp.log <strong>flashback_time=systimestamp</strong></pre>
<h2>Update: Legacy Mode</h2>
<p>Since 11.2, Oracle introduced &#8216;<a title="legacy mode" href="http://download.oracle.com/docs/cd/E11882_01/server.112/e22490/dp_legacy.htm">legacy mode</a>&#8216; options for expdp and impdp.</p>
<p>One now can use the old exp and imp parameters, including &#8216;CONSISTENT=Y&#8217;.</p>
<h2>Summary</h2>
<ul>
<li>By default expdp is consistent only for the table it is currently exporting.</li>
<li>Use &#8216;<span style="text-decoration: underline">flashback_time=systimestamp</span>&#8216; to simulate the old export &#8216;consistent=y&#8217;.</li>
</ul>
<p>Happy Data Pumping!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oracle48.nl/the-expdp-equivalent-of-exp-consistent_y/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQLPlus and Easy Connect without password on the command line</title>
		<link>http://blog.oracle48.nl/sqlplus-and-easy-connect-without-password-on-the-command-line/</link>
		<comments>http://blog.oracle48.nl/sqlplus-and-easy-connect-without-password-on-the-command-line/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 14:04:38 +0000</pubDate>
		<dc:creator>Ian Hoogeboom</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Easy Connect]]></category>
		<category><![CDATA[EZCONNECT]]></category>
		<category><![CDATA[SQLNET]]></category>
		<category><![CDATA[sqlplus]]></category>

		<guid isPermaLink="false">http://blog.oracle48.nl/?p=777</guid>
		<description><![CDATA[The Easy Connect Naming Method allows you to connect to a database service without having to configure Net Service Names. The most found example on internet is the one with typing the password at the command prompt when starting sqlplus: sqlplus username/password@[//]host[:port][/service_name] $&#62; sqlplus system/manager@db_machine:1521/db_servicename However, this means that the password will be stored in [...]]]></description>
			<content:encoded><![CDATA[<p>The Easy Connect Naming Method allows you to connect to a database service without having to configure Net Service Names.</p>
<p>The most found example on internet is the one with typing the password at the command prompt when starting sqlplus:</p>
<pre>sqlplus username/password@[//]host[:port][/service_name]</pre>
<pre>$&gt; sqlplus system/manager@db_machine:1521/db_servicename</pre>
<p>However, this means that the password will be stored in you history of commands (linux). This is not really secure&#8230; but sqlplus does not accept it when no password is supplied when using easy connect.</p>
<h2>Two solutions</h2>
<p>If you want to login with easy connect without typing the password on the command line, you have two options:<span id="more-777"></span></p>
<p>1. Start sqlplus with the /nolog option and connect with easy connect on the sqlplus prompt:</p>
<pre>$&gt; sqlplus /nolog
(...)
SQL&gt; conn system/manager@<span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;font-size: 12px;line-height: 18px">db_machine:1521</span>/<span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;font-size: 12px;line-height: 18px">db_servicename
</span>Connected.
SQL&gt;</pre>
<p>2. Start sqlplus on the command line with the following easy connect syntax in order to be prompted for a password:</p>
<pre>$&gt; sqlplus system@\"db_machine:1521/db_servicename\"
Enter password:
Connected to:
(...)
SQL&gt;</pre>
<p>Important: The  \&#8221;  in the beginning and end of the server:port/service is part of the syntax!<br />
This last option is documented at <a id="external_link" title="Oracle Support" rel="nofollow" href="http://support.oracle.com" target="_blank">Oracle Support</a> Note [ID 274757.1].</p>
<h2>SQLNET.ORA</h2>
<p>If there is no SQLNET.ORA present or NAMES.DIRECTORY_PATH is not defined, EZCONNECT is enabled by default (as is TNSNAMES and HOSTNAME). Otherwise add the following to SQLNET.ORA:</p>
<pre>NAMES.DIRECTORY_PATH=(ezconnect)</pre>
<p>Happy connecting!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oracle48.nl/sqlplus-and-easy-connect-without-password-on-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

