<?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>RomanT.net &#187; vcenter</title>
	<atom:link href="http://blog.romant.net/tag/vcenter/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.romant.net</link>
	<description>… hilariously not funny</description>
	<lastBuildDate>Fri, 25 Nov 2011 01:09:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Re-Installing vCenter with new DSN credentials</title>
		<link>http://blog.romant.net/technology/re-installing-vcenter-with-new-dsn-credentials/</link>
		<comments>http://blog.romant.net/technology/re-installing-vcenter-with-new-dsn-credentials/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 02:57:56 +0000</pubDate>
		<dc:creator>Roman Tarnavski</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[job_name]]></category>
		<category><![CDATA[msdb]]></category>
		<category><![CDATA[odbc]]></category>
		<category><![CDATA[sp_delete_job]]></category>
		<category><![CDATA[vcenter]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.romant.net/?p=285</guid>
		<description><![CDATA[How to clear MSDB Database jobs so that vCenter can re-use the an ODBC connection after a previous owner.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re ever in a situation where you&#8217;ve moved the vCenter database, and have actually changed the login details for the database that the DSN points to, and you&#8217;re using SQL Server. Then upon re-installing vCenter, you will be greeted with:</p>
<blockquote><p>&#8220;Database job [Past day stats rollupvcenter] was created by another user. Please use the same user to setup your DSN or remove the job. ODBC Error: [Microsoft][SQL Native Client][SQL Server]The specified @job_name (&#8216;Past Day stats rollupvcenter&#8217;) does not exist.</p></blockquote>
<p><a href="http://blog.romant.net/wp-content/uploads/2010/01/vCenter_Install.png" rel="lightbox[285]" title="vCenter Install ODBC DSN Error"><img src="http://blog.romant.net/wp-content/uploads/2010/01/vCenter_Install-600x220.png" alt="" title="vCenter Install ODBC DSN Error" width="600" height="220" class="aligncenter size-large wp-image-293" /></a></p>
<p>When vCenter is first installed, it schedules jobs with the help of the system DB &#8211; MSDB. What&#8217;s left to do, is just remove the jobs created by the previous dbo of your vCenter data. You achieve this by first listing what jobs are created on the SQL Server.</p>
<p><code><br />
SELECT [job_id],<br />
[originating_server_id],<br />
[name],<br />
[enabled],<br />
[description],<br />
[start_step_id],<br />
[category_id],<br />
[owner_sid],<br />
[notify_level_eventlog],<br />
[notify_level_email],<br />
[notify_level_netsend],<br />
[notify_level_page],<br />
[notify_email_operator_id],<br />
[notify_netsend_operator_id],<br />
[notify_page_operator_id],<br />
[delete_level],<br />
[date_created],<br />
[date_modified],<br />
[version_number]<br />
FROM [msdb].[dbo].[sysjobs]<br />
</code></p>
<p><a href="http://blog.romant.net/wp-content/uploads/2010/01/sql_server.png" rel="lightbox[285]" title="SQL Server Query"><img src="http://blog.romant.net/wp-content/uploads/2010/01/sql_server-600x493.png" alt="" title="SQL Server Query" width="600" height="493" class="aligncenter size-large wp-image-287" /></a></p>
<p>As you can see, four scheduled operations exist. Thankfully you don&#8217;t have to worry about just clearing this table, as there&#8217;s a stored procedure that comes within MSDB -&gt; sp_delete_job</p>
<p>Run it for each of the jobs, and you&#8217;ll be ready to continue installing vCenter.<!-- PHP 5.x --></p>

	Tags: <a href="http://blog.romant.net/tag/job_name/" title="job_name" rel="tag">job_name</a>, <a href="http://blog.romant.net/tag/msdb/" title="msdb" rel="tag">msdb</a>, <a href="http://blog.romant.net/tag/odbc/" title="odbc" rel="tag">odbc</a>, <a href="http://blog.romant.net/tag/sp_delete_job/" title="sp_delete_job" rel="tag">sp_delete_job</a>, <a href="http://blog.romant.net/tag/vcenter/" title="vcenter" rel="tag">vcenter</a>, <a href="http://blog.romant.net/tag/vmware/" title="vmware" rel="tag">vmware</a><br />
]]></content:encoded>
			<wfw:commentRss>http://blog.romant.net/technology/re-installing-vcenter-with-new-dsn-credentials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

