<?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>BlueGecko Denmark</title>
	<atom:link href="https://bluegecko.dk/category/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://bluegecko.dk</link>
	<description>Your remote dba</description>
	<lastBuildDate>Thu, 25 Aug 2011 18:23:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.2</generator>
	<item>
		<title>Finding non-default configuration settings in SQL Server</title>
		<link>https://bluegecko.dk/finding-non-default-configuration-settings-in-sql-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=finding-non-default-configuration-settings-in-sql-server</link>
		
		<dc:creator><![CDATA[jwilton]]></dc:creator>
		<pubDate>Thu, 25 Aug 2011 18:23:40 +0000</pubDate>
				<category><![CDATA[Jeremiah Wilton's Oradeblog]]></category>
		<category><![CDATA[Remote DBA]]></category>
		<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=3289</guid>

					<description><![CDATA[In our Remote DBA practice, we frequently perform comprehensive system reviews for our customers on their database services. Among the things we always check for are non-default settings for the database software. We want to validate that any non-default setting is set that way for a good reason, and that any setting that is default [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/sql-server/finding-thread-ids-and-names-of-sql-server-background-threads/" rel="bookmark" title="Permanent Link: Finding thread IDs and names of SQL Server background threads">Finding thread IDs and names of SQL Server background threads</a></li>
<li><a href="http://www.bluegecko.net/remote-dba-services/sql-server/" rel="bookmark" title="Permanent Link: SQL Server">SQL Server</a></li>
<li><a href="http://www.bluegecko.net/oracle/deriving-optional-configuration-values-using-11g-database-replay/" rel="bookmark" title="Permanent Link: Deriving Optimal Configuration Values Using 11g Database Replay">Deriving Optimal Configuration Values Using 11g Database Replay</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>In our <a href="http://www.bluegecko.dk/remote-dba-services/">Remote DBA</a> practice, we frequently perform comprehensive system reviews for our customers on their database services. Among the things we always check for are non-default settings for the database software.  We want to validate that any non-default setting is set that way for a good reason, and that any setting that is default really should be that way.</p>
<p>In Oracle, this is easy.  The &lt;code&gt;gv$parameter&lt;/code&gt; view has a column, &lt;code&gt;ISDEFAULT&lt;/code&gt;, that allows a simple SQL query to show which settings are set to non-default values.</p>
<p>It&#8217;s not so easy in SQL Server.  There is a view, master.sys.configurations, but it doesn&#8217;t have a way to tell if the setting is default or modified or anything.</p>
<p>That&#8217;s why I was pleased to find that <a href="http://sqlserverperformance.idera.com/authors/" >Michael Campbell</a> came up with a <a href="http://sqlserverperformance.idera.com/uncategorized/quickly-validating-sql-server-configuration-settings/" >good solution that hard codes known default values into a script</a> that works for SQL Server 2008 and up.</p>
<p>The style of insert used in the above script doesn&#8217;t work for SQL Server versions lower than 2008, so I made slight changes to allow it to work on 2005 and lower.  Here it is, with full attribution to Michael Campbell for developing the underlying script and technique. I can&#8217;t guarantee all the default values are valid for earlier versions, but the script runs and shows results for SQL Server 2005.</p>
<pre class="brush: plain; title: ;">
-- Server Configuration (find any non-standard settings)
--        for SQL Server 2008.
DECLARE @config_defaults TABLE (
    name nvarchar(35),
    default_value sql_variant
)

INSERT INTO @config_defaults (name, default_value) VALUES ('access check cache bucket count',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('access check cache quota',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('Ad Hoc Distributed Queries',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('affinity I/O mask',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('affinity mask',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('affinity64 I/O mask',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('affinity64 mask',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('Agent XPs',1)
INSERT INTO @config_defaults (name, default_value) VALUES ('allow updates',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('awe enabled',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('backup compression default',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('blocked process threshold (s)',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('c2 audit mode',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('clr enabled',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('common criteria compliance enabled',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('cost threshold for parallelism',5)
INSERT INTO @config_defaults (name, default_value) VALUES ('cross db ownership chaining',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('cursor threshold',-1)
INSERT INTO @config_defaults (name, default_value) VALUES ('Database Mail XPs',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('default full-text language',1033)
INSERT INTO @config_defaults (name, default_value) VALUES ('default language',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('default trace enabled',1)
INSERT INTO @config_defaults (name, default_value) VALUES ('disallow results from triggers',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('EKM provider enabled',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('filestream access level',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('fill factor (%)',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('ft crawl bandwidth (max)',100)
INSERT INTO @config_defaults (name, default_value) VALUES ('ft crawl bandwidth (min)',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('ft notify bandwidth (max)',100)
INSERT INTO @config_defaults (name, default_value) VALUES ('ft notify bandwidth (min)',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('index create memory (KB)',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('in-doubt xact resolution',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('lightweight pooling',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('locks',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('max degree of parallelism',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('max full-text crawl range',4)
INSERT INTO @config_defaults (name, default_value) VALUES ('max server memory (MB)',2147483647)
INSERT INTO @config_defaults (name, default_value) VALUES ('max text repl size (B)',65536)
INSERT INTO @config_defaults (name, default_value) VALUES ('max worker threads',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('media retention',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('min memory per query (KB)',1024)
-- NOTE: SQL Server may change the min server
--   memory value 'in flight' in some environments
--    so it may commonly show up as being 'non default'
INSERT INTO @config_defaults (name, default_value) VALUES ('min server memory (MB)',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('nested triggers',1)
INSERT INTO @config_defaults (name, default_value) VALUES ('network packet size (B)',4096)
INSERT INTO @config_defaults (name, default_value) VALUES ('Ole Automation Procedures',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('open objects',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('optimize for ad hoc workloads',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('PH timeout (s)',60)
INSERT INTO @config_defaults (name, default_value) VALUES ('precompute rank',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('priority boost',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('query governor cost limit',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('query wait (s)',-1)
INSERT INTO @config_defaults (name, default_value) VALUES ('recovery interval (min)',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('remote access',1)
INSERT INTO @config_defaults (name, default_value) VALUES ('remote admin connections',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('remote login timeout (s)',20)
INSERT INTO @config_defaults (name, default_value) VALUES ('remote proc trans',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('remote query timeout (s)',600)
INSERT INTO @config_defaults (name, default_value) VALUES ('Replication XPs',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('scan for startup procs',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('server trigger recursion',1)
INSERT INTO @config_defaults (name, default_value) VALUES ('set working set size',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('show advanced options',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('SMO and DMO XPs',1)
INSERT INTO @config_defaults (name, default_value) VALUES ('SQL Mail XPs',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('transform noise words',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('two digit year cutoff',2049)
INSERT INTO @config_defaults (name, default_value) VALUES ('user connections',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('user options',0)
INSERT INTO @config_defaults (name, default_value) VALUES ('xp_cmdshell',0)

SELECT c.name, value, value_in_use, d.default_value
from sys.configurations c
INNER JOIN @config_defaults d ON c.name = d.name
where
    c.value != c.value_in_use
    OR c.value_in_use != d.default_value
go
</pre>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/sql-server/finding-thread-ids-and-names-of-sql-server-background-threads/' rel='bookmark' title='Permanent Link: Finding thread IDs and names of SQL Server background threads'>Finding thread IDs and names of SQL Server background threads</a></li>
<li><a href='http://www.bluegecko.dk/remote-dba-services/sql-server/' rel='bookmark' title='Permanent Link: SQL Server'>SQL Server</a></li>
<li><a href='http://www.bluegecko.dk/oracle/deriving-optional-configuration-values-using-11g-database-replay/' rel='bookmark' title='Permanent Link: Deriving Optimal Configuration Values Using 11g Database Replay'>Deriving Optimal Configuration Values Using 11g Database Replay</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Determining optimal Amazon S3 transfer parallelism</title>
		<link>https://bluegecko.dk/determining-optimal-amazon-s3-transfer-parallelism/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=determining-optimal-amazon-s3-transfer-parallelism</link>
		
		<dc:creator><![CDATA[jwilton]]></dc:creator>
		<pubDate>Sat, 23 Apr 2011 20:37:28 +0000</pubDate>
				<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[Jeremiah Wilton's Oradeblog]]></category>
		<category><![CDATA[parallel]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[S3]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[aws]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2906</guid>

					<description><![CDATA[Amazon&#8217;s Simple Storage Service (S3) is a robust, inexpensive and highly-available internet data storage service.  At Blue Gecko, we occasionally help our customers design and implement S3-based backup strategies. Compared to conventional off site tape vaulting services, the advantages of vaulting database and other backups to S3 are many.  S3 backups are always on line, [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/amazon-web-services/s3fox-does-not-create-valid-export-manifest-files/" rel="bookmark" title="Permanent Link: s3fox does not create valid export manifest files">s3fox does not create valid export manifest files</a></li>
<li><a href="http://www.bluegecko.net/database-hosting-services/aws-faq/" rel="bookmark" title="Permanent Link: Amazon Web Services FAQ">Amazon Web Services FAQ</a></li>
<li><a href="http://www.bluegecko.net/database-hosting-services/database-hosting-on-amazon-web-services/" rel="bookmark" title="Permanent Link: Amazon Web Services Packages">Amazon Web Services Packages</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p><a href="http://aws.amazon.com/s3/" >Amazon&#8217;s Simple Storage Service (S3)</a> is a robust, inexpensive and highly-available internet data storage service.  At <a href="http://www.bluegecko.dk/" >Blue Gecko</a>, we occasionally help our customers design and implement S3-based backup strategies.</p>
<p>Compared to <a href="http://www.complaintsboard.com/complaints/iron-mountain-storage-c424703.html" >conventional off site tape vaulting services</a>, the advantages of vaulting database and other backups to S3 are many.  S3 backups are always on line, so you never have to wait for a  truck to arrive with your tapes. S3 backups are replicated, so if one of Amazon&#8217;s availability zones experiences a failure, your data is still intact and available at one of their other zones. Best of all, Amazon also offers the <a href="https://aws.amazon.com/ec2/">Elastic Compute Cloud</a> (AKA EC2, virtual server hosts by the hour), so your S3 backups double as a super-low-cost disaster recovery strategy. S3 is low-cost, starting at just 3.7¢ / GB / month for storage, and 10¢ / GB for uploads.<span id="more-2906"></span></p>
<p>I back up all my home computers to S3 using third-party software called <a href="https://www.jungledisk.com/" >Jungle Disk</a>.  Jungle Disk runs in the background on a Mac or PC and backs up new data to the cloud ever five minutes (or whatever frequency you specify). Many times these backups have come in handy for me, as I am able to browse and retrieve files from my home computers (such as photos and documents) from the office, without my home computers even being on.</p>
<p>Sounds like an ideal backup solution for small to medium-sized business, right?  So what&#8217;s the catch?</p>
<p>The catch is your Internet connection.  Consider the following:</p>
<p>A typical cable Internet connection with an actual upload rate of 2.8 Mb/s could transfer a 100G file to Amazon S3 in just over ten hours.  For many businesses, that&#8217;s the whole backup window. If there is more than 100G to transfer, you&#8217;re out of luck.  If your servers are co-located somewhere with a fast connection to the Internet, you might get better transfer rates, but there are other limiting factors, like number of hops to Amazon S3 and overall latency.</p>
<h3>Compress before uploading</h3>
<p>If the backup files are not already compressed, you can almost always dramatically improve upload times by compressing them before uploading them.</p>
<h3>Parallel uploads save the day</h3>
<p>Upload performance to Amazon S3 can almost always be improved by running uploads in parallel.  Choosing a degree of parallelism depends on the connection between your site and Amazon, the host from which you are uploading, and several other factors.  The best way to determine your optimal degree of parallelism is to test it!</p>
<p>Blue Gecko happens to have a customer who wants to vault their <a href="http://www.bluegecko.dk/remote-dba-services/sql-server/" >Microsoft SQL Server</a> backups to Amazon S3.  Unlike Oracle, SQL Server has no native facility that allows it to stream backups directly to S3 like tape. Instead, with this customer, we will compress and upload their database backups after they complete each night. To make it easy to find the optimal degree of parallelism, I delved into the murky world of Windows command shell programming. Against all instincts, I wrote this tool in Batch so that it would work easily on any of this customer SQL Server hosts.</p>
<p>This tool is designed to allow you to effectively determine the optimal parallel degree for backing up data from a particular server over the Internet to Amazon S3. It generates its own large files to upload.  All you need is an Amazon S3 account.  The tool comes as a pair of scripts that call a Ruby tool called s3cmd. To use it, follow these steps:</p>
<ol>
<li>Download and install Ruby <a href="http://rubyforge.org/frs/download.php/74296/ruby-1.8.7-p334-i386-mingw32.7z" >1.8.7-p334 for Windows</a>.</li>
<li>Download <a href="http://s3.amazonaws.com/ServEdge_pub/s3sync/s3sync.tar.gz" >S3Sync</a> into a convenient directory.</li>
<li>Download and install <a href="http://gnuwin32.sourceforge.net/downlinks/gzip.php" >gnuwin gzip</a> and <a href="http://gnuwin32.sourceforge.net/downlinks/tar-bin.php" >gnuwin tar</a> for Windows</li>
<li>Open a command prompt window, and change to the directory where you downloaded S3Sync
<pre class="brush: plain; title: ;">c:&gt; cd my_directory</pre>
</li>
<li>Unzip and untar the S3Sync package, then change to the S3Sync directory:
<pre class="brush: plain; title: ;">
c:my_directory&gt; &quot;Program FilesGnuWin32bingzip.exe&quot; -d s3sync.tar.gz
c:my_directory&gt; &quot;Program FilesGnuWin32bintar.exe&quot; xvf s3sync.tar
c:my_directory&gt; cd s3sync
</pre>
</li>
<li>Edit a file called test_parallel.bat, and paste the following contents into the file:
<pre class="brush: plain; title: ;">
echo off
set /a filesize = %1 / %2
for /l %%v in (1,1,%2) do (
 fsutil file createnew dummy.%%v %filesize%
 )
for /l %%v in (1,1,%2) do (
 start /b upload %3 %%v
 )
echo on
</pre>
</li>
<li>Create a bucket for testing. Make sure to substitute your AWS security credentials in the appropriate places:
<pre class="brush: plain; title: ;">
c:my_directory&gt; set AWS_ACCESS_KEY=&lt;em&gt;your AWS access key ID&lt;/em&gt;
c:my_directory&gt; set AWS_SECRET_ACCESS_KEY=&lt;em&gt;your AWS secret access key&lt;/em&gt;
c:my_directory&gt; set AWS_CALLING_FORMAT=SUBDOMAIN
c:my_directory&gt; s3cmd.rb createbucket my_test_bucket_1234
</pre>
</li>
<li>Edit a file called upload.bat, and paste the following contents into the file. Make sure to substitute your AWS security credentials in the appropriate places:
<pre class="brush: plain; title: ;">
echo off
set AWS_ACCESS_KEY_ID=&lt;em&gt;your AWS access key id&lt;/em&gt;
set AWS_SECRET_ACCESS_KEY=&lt;em&gt;your AWS secret access key&lt;/em&gt;
set AWS_CALLING_FORMAT=SUBDOMAIN
echo %time%
s3cmd.rb put %1:dummy.%2 dummy.%2
echo %time%
del dummy.%2
</pre>
</li>
<li>Now you can start testing parallel uploads to AWS. The syntax to call test_parallel.bat is:
<pre class="brush: plain; title: ;">
c:my_directory&gt; test_parallel file_size degree bucket
</pre>
<p>Here is an upload example for 128M at parallel 10 to a bucket called my_test_bucket_1234:</p>
<pre class="brush: plain; title: ;">
c:my_directory&gt; test_parallel 125829120 10 my_test_bucket_1234
</pre>
<p>The elapsed time can be determined as follows:</li>
</ol>
<ul>
<li>Look for the first timestamp displayed in the output and note it.</li>
<li>Waitfor the last timestamp to display.  Note it.</li>
<li>The intervening time is the elapsed time for the upload. You can use Ex el or any other tool you like to calculate time deltas.</li>
</ul>
<p>I typically run the upload without parallelism (degree = 1), then increase it in increments of five.  If there is any doubt as to which S3 region will provide the best performance, I create a bucket in each region (US-West and US-East), then perform identical tests against each.</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/amazon-web-services/s3fox-does-not-create-valid-export-manifest-files/' rel='bookmark' title='Permanent Link: s3fox does not create valid export manifest files'>s3fox does not create valid export manifest files</a></li>
<li><a href='http://www.bluegecko.dk/database-hosting-services/aws-faq/' rel='bookmark' title='Permanent Link: Amazon Web Services FAQ'>Amazon Web Services FAQ</a></li>
<li><a href='http://www.bluegecko.dk/database-hosting-services/database-hosting-on-amazon-web-services/' rel='bookmark' title='Permanent Link: Amazon Web Services Packages'>Amazon Web Services Packages</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>YPDNGG: You Probably Don’t Need Golden Gate</title>
		<link>https://bluegecko.dk/ypdngg-you-probably-dont-need-golden-gate/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ypdngg-you-probably-dont-need-golden-gate</link>
					<comments>https://bluegecko.dk/ypdngg-you-probably-dont-need-golden-gate/#comments</comments>
		
		<dc:creator><![CDATA[jwilton]]></dc:creator>
		<pubDate>Mon, 22 Nov 2010 23:01:54 +0000</pubDate>
				<category><![CDATA[Jeremiah Wilton's Oradeblog]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[goldengate]]></category>
		<category><![CDATA[streams]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2283</guid>

					<description><![CDATA[Why would Oracle essentially abandon ten years of development and stabilization on a platform like Streams for a less mature, rudimentary product like Golden Gate?


Related posts:<ol><li><a href="http://www.bluegecko.net/oracle/oracle-education-our-first-dba-class/" rel="bookmark" title="Permanent Link: Oracle Education – Our First DBA Class!!">Oracle Education &#8211; Our First DBA Class!!</a></li>
<li><a href="http://www.bluegecko.net/news-events/blue-gecko-is-one-of-the-fastest-growing-private-companies/" rel="bookmark" title="Permanent Link: Blue Gecko named to 2010 Inc. Magazine’s 5000 fastest growing companies in America!">Blue Gecko named to 2010 Inc. Magazine&#8217;s 5000 fastest growing companies in America!</a></li>
<li><a href="http://www.bluegecko.net/oracle/report-from-oracle-openworld/" rel="bookmark" title="Permanent Link: Report from Oracle Openworld">Report from Oracle Openworld</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>Before launching into this, I must give due deference to Mogens Nørgaard&#8217;s landmark article, <em>You Probably Don&#8217;t Need RAC</em> (YPDNR), available <a href="http://www.my-idconcept.de/downloads/You_Probably_Dont_Need_RAC.pdf" >here</a>, but originally published Q3 2003 in IOUG <em>Select Journal</em>.  Mogens showed that you can be a friend of Oracle without always agreeing with everything they do.<span id="more-2283"></span></p>
<p>At <a title="Blue Gecko Remote DBA" href="http://www.bluegecko.dk" >Blue Gecko</a>, many of our <a title="Remote DBA Services" href="http://www.bluegecko.dk/remote-dba-services/" >remote DBA</a> customers have been asking us about Golden Gate.  In July 2009, Oracle bought Golden Gate Software, just one of several companies that have developed log-based replication mechanisms for Oracle and other databases.  This was one of many major acquisitions by Oracle in 2009, including Sun and Relsys. But unlike most of Oracle&#8217;s acquisitions, Golden Gate provides very little new functionality not already available in Oracle Streams. Nevertheless, at OpenWorld 2009, Oracle made a shocking announcement.  They declared that Golden Gate would be the primary replication channel for Oracle, and that development would cease on Streams and related components.</p>
<p>Usually, Oracle watches these little third-party products for good ideas, then implements them independently (and better) on their own in the Oracle kernel, then watches as the little third-party companies fizzle out.  A case in point is direct memory access performance sampling.  Precise Software and several other companies in the early 2000s developed  low-impact performance sampling and visualization products for Oracle based on sampling the SGA periodically from an external program.  In version 10g, Oracle answered them with Active Session History (ASH), which did the same thing but better.  Although ASH required customers to purchase the Diagnostic Pack, it still more or less spelled the downfall of competing products.</p>
<p>But in the case of Golden Gate, Oracle already has a log-based replication technology (Streams) built into the kernel, available for a very reasonable price (<strong>free</strong> with Enterprise Edition).  The only major components that Streams lacks compared to Golden Gate is the ability to replicate across database platforms (Oracle to MSSQL, MySQL, etc. and vice versa).  Even that capability was clearly around the corner: In 11g, Logical Standby (Data Guard), a technology that uses essentially the same stack of components as Streams, gained cross-platform capabilities.</p>
<p>By 11g, Streams has become a mature and stable product, and is far more scalable and configurable than Golden Gate in many ways.  Streams can mine logs on the source or the target, or even a third system.  Depending on the load profile, you can use a wide variety of configuration choices, including parallelism at almost any point.  Streams also allows customers to choose to enforce transaction order or not.</p>
<p>In contrast, Golden Gate&#8217;s parallelism is restricted to the apply side, and in parallel mode, does not have the option of guaranteeing transaction order (it is non-ACID). Golden Gate&#8217;s parallel apply splits work up by schema, relying on the assumption that interdependent data at the business process level is confined to a single schema at a time.  In other words, if all the tables reside in one schema, then parallel apply doesn&#8217;t work, and if they reside in many schemas, the changes in one schema may be applied out of order vis à vis the changes to the other schemas.</p>
<p>Streams is only one of Oracle&#8217;s preexisting features that can compete successfully in specific use cases with Golden Gate.  Even more ancient and time-tested solutions such as advanced replication and remote materialized views remain supported and highly effective, depending on the requirement.</p>
<p>If you look at many of the use cases where our customers have deployed Golden Gate, I find that the simplest and most scalable engineering solution would have been remote fast-refresh materialized views.  Our customers often replicate core look-up data, like exchange rates, inventory levels, and other slowly-changing data between Oracle databases within an enterprise.  For this, Golden Gate is completely unjustified, due to cost and complexity compared to remote materialized views.  If it were a question of heterogeneous (inter database product) replication, I completely understand.  But in the majority of situations where we see Golden Gate in use, it is Oracle to Oracle. Given that, I wonder how it could come to pass that responsible people would recommend and implement a solution for such a requirement involving Golden Gate.  Why would Oracle essentially abandon ten years of development and  stabilization on a platform like Streams for a less mature, rudimentary  product like Golden Gate? Oracle can&#8217;t possibly be  asking customers to pay additional license fees for a worse version of a product they already own.</p>
<p>So let&#8217;s review&#8230;</p>
<p>Streams: Mature, complex, requires engineering, highly configurable, scalable, Oracle-only, free.</p>
<p>Golden Gate: Simple, east to deploy, few configuration options, less scalable, expensive, heterogeneous (inter-RDBMS), might break your data.</p>
<p>For me, the corporate direction with regard to Golden Gate is perplexing and smacks of sales-driven (as opposed to requirements and cost-driven) engineering.  I can only imagine what it must be like for the team at Oracle that built Log Miner and AQ into an impressive suite of options including Streams.</p>
<p>UPDATE</p>
<p>Since I posted this, a colleague inside Oracle reassured me that although the product will bear the name &#8216;Golden Gate,&#8217; it will incorporate features and capabilities of Streams and Golden Gate into a single suite of functions as versions are released over time.  This means that the declarations from inside Oracle do not represent the abandonment of ten years of development.</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/oracle/oracle-education-our-first-dba-class/' rel='bookmark' title='Permanent Link: Oracle Education &#8211; Our First DBA Class!!'>Oracle Education &#8211; Our First DBA Class!!</a></li>
<li><a href='http://www.bluegecko.dk/news-events/blue-gecko-is-one-of-the-fastest-growing-private-companies/' rel='bookmark' title='Permanent Link: Blue Gecko named to 2010 Inc. Magazine&#8217;s 5000 fastest growing companies in America!'>Blue Gecko named to 2010 Inc. Magazine&#8217;s 5000 fastest growing companies in America!</a></li>
<li><a href='http://www.bluegecko.dk/oracle/report-from-oracle-openworld/' rel='bookmark' title='Permanent Link: Report from Oracle Openworld'>Report from Oracle Openworld</a></li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/ypdngg-you-probably-dont-need-golden-gate/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Finding thread IDs and names of SQL Server background threads</title>
		<link>https://bluegecko.dk/finding-thread-ids-and-names-of-sql-server-background-threads/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=finding-thread-ids-and-names-of-sql-server-background-threads</link>
					<comments>https://bluegecko.dk/finding-thread-ids-and-names-of-sql-server-background-threads/#respond</comments>
		
		<dc:creator><![CDATA[jwilton]]></dc:creator>
		<pubDate>Wed, 18 Aug 2010 22:57:09 +0000</pubDate>
				<category><![CDATA[Jeremiah Wilton's Oradeblog]]></category>
		<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=1821</guid>

					<description><![CDATA[In Microsoft SQL Server, session IDs of 50 or less are dedicated background threads. These are analogous to Oracle&#8217;s background processes.  Suppose you needed to obtain the Windows thread ID of a SQL server background thread.  Just try finding out how to do that in the Microsoft documentation or by Googling.  I tried, and came [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/sql-server/finding-non-default-configuration-settings-in-sql-server/" rel="bookmark" title="Permanent Link: Finding non-default configuration settings in SQL Server">Finding non-default configuration settings in SQL Server</a></li>
<li><a href="http://www.bluegecko.net/remote-dba-services/sql-server/" rel="bookmark" title="Permanent Link: SQL Server">SQL Server</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>In Microsoft SQL Server, session IDs of 50 or less are dedicated background threads. These are analogous to Oracle&#8217;s background processes.  Suppose you needed to obtain the Windows thread ID of a SQL server background thread.  Just try finding out how to do that in the Microsoft documentation or by Googling.  I tried, and came up empty-handed.</p>
<p>Why might you need to know this kind of thing?  Well suppose one of those threads was misbehaving or hanging. You would need to debug it and obtain a stack trace.  For that you would need the OS thread ID.<span id="more-1821"></span></p>
<p>A little sleuthing shows that you need to query three dynamic system views<em>: sys.dm_os_threads</em>, <em>sys.dm_os_workers</em> and <em>sys.dm_exec_requests</em>.  The following SQL should do the trick in MSSS 2005 and 2008:</p>
<pre>1&gt; select session_id, command, os_thread_id
2&gt; from sys.dm_exec_requests as r
3&gt; join sys.dm_os_workers as w on r.task_address = w.task_address
4&gt; join sys.dm_os_threads as t on t.thread_address = w.thread_address
5&gt; where session_id &lt;= 50
6&gt; order by session_id
7&gt; go</pre>
<pre>session_id command          os_thread_id
---------- ---------------- ------------
1          RESOURCE MONITOR         2776
2          XE TIMER                 2908
3          XE DISPATCHER            2416
4          LAZY WRITER              1316
5          LOG WRITER               2404
6          LOCK MONITOR             1592
7          SIGNAL HANDLER           1516
9          TRACE QUEUE TASK         1544
10         BRKR TASK                1540
11         TASK MANAGER             1524
13         CHECKPOINT               1520
14         BRKR EVENT HNDLR         1556
15         BRKR TASK                1552
16         BRKR TASK                1536
</pre>
<p>With these IDs in hand, you can use a thread debugging tool like Sysinternals Process Explorer to kill, debug or otherwise troubleshoot the problem.</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/sql-server/finding-non-default-configuration-settings-in-sql-server/' rel='bookmark' title='Permanent Link: Finding non-default configuration settings in SQL Server'>Finding non-default configuration settings in SQL Server</a></li>
<li><a href='http://www.bluegecko.dk/remote-dba-services/sql-server/' rel='bookmark' title='Permanent Link: SQL Server'>SQL Server</a></li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/finding-thread-ids-and-names-of-sql-server-background-threads/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 1/149 objects using disk
Page Caching using disk: enhanced 

Served from: bluegecko.dk @ 2026-10-16 23:41:26 by W3 Total Cache
-->