Showing posts with label servers. Show all posts
Showing posts with label servers. Show all posts

Friday, March 30, 2012

RE-add witness fails

I start with 3 servers, in High Safety mode with witness. I disconnect the network cable for the witness. Then I remove the witness from the mirroring session:

ALTER DATABASE db1 SET WITNESS OFF

I reconnect the witness network cable. Now I cannot add the witness back to the mirroring session (either with TSQL or thru the GUI). Here is the error message:

Msg 1433, Level 16, State 4, Server SERVERA, Line 1
All three server instances did not remain interconnected for the duration of the ALTER DATABASE SET WITNESS command. There may be no witness associated with the database. Verify the status and when necessary repeat the command.

I have to stop mirroring (SET PARTNER OFF) and then reconfigure a new mirroring session to be able to include the witness.

If I don't disconnect the network cable, I am able to remove and re-add the witness to the session, no problem.

Is this behavior expected?

Thanks in advance.

Regards,

Michael Lawson

I found my problem: my witness was at RTM. After upgrading to SP1 I was able to re-add the witness in the scenario I gave.

Tuesday, March 20, 2012

re IP servers in a cluster and cluster resources

I have a three node cluster that I have to move to a different subnet. Here
is my plan
1) fail all resources over to third node in cluster
2) change IP's of the physical nics in the two nodes without resources
3) run SQL server setup on the third node to change the cluster IP and the
virtual SQL server IP to the new subnet
4) move cluster over to the nodes that I have already changed the IP's of.
5) change the physical nics IP on the third node to the new subnet.
Does this sound like a resonable plan or do you have any suggestions?
How about instructions from Microsoft:
How to change the network IP addresses of SQL Server virtual servers
http://support.microsoft.com/kb/244980/en-us
Also, make sure you don't lose connectivity with your SAN if it uses
out-of-band IP communication. It shouldn't affect the actual operation, but
it can make maintenance difficult.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"RG" <RG@.discussions.microsoft.com> wrote in message
news:088C254A-B229-4912-9354-57CB6665995E@.microsoft.com...
>I have a three node cluster that I have to move to a different subnet.
>Here
> is my plan
> 1) fail all resources over to third node in cluster
> 2) change IP's of the physical nics in the two nodes without resources
> 3) run SQL server setup on the third node to change the cluster IP and the
> virtual SQL server IP to the new subnet
> 4) move cluster over to the nodes that I have already changed the IP's of.
> 5) change the physical nics IP on the third node to the new subnet.
> Does this sound like a resonable plan or do you have any suggestions?
|||I saw that article, but that only explains changing the IP of the virtual sql
server. That doesn't explain what should be done first or how chaning the
IP's on the machines with a cluster should go. That is why I was wondering
what I should do first?
"Geoff N. Hiten" wrote:

> How about instructions from Microsoft:
> How to change the network IP addresses of SQL Server virtual servers
> http://support.microsoft.com/kb/244980/en-us
> Also, make sure you don't lose connectivity with your SAN if it uses
> out-of-band IP communication. It shouldn't affect the actual operation, but
> it can make maintenance difficult.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
> "RG" <RG@.discussions.microsoft.com> wrote in message
> news:088C254A-B229-4912-9354-57CB6665995E@.microsoft.com...
>
>
|||You have to change the machine's IP Addr first, then follow the Q.
Cheers,
Rodney R. Fournier
MVP - Windows Server - Clustering
http://www.nw-america.com - Clustering Website
http://www.msmvps.com/clustering - Blog
http://www.clusterhelp.com - Cluster Training
ClusterHelp.com is a Microsoft Certified Gold Partner
"RG" <RG@.discussions.microsoft.com> wrote in message
news:C7D1E071-473D-46FC-AFFD-C7800B6D0CB3@.microsoft.com...[vbcol=seagreen]
>I saw that article, but that only explains changing the IP of the virtual
>sql
> server. That doesn't explain what should be done first or how chaning the
> IP's on the machines with a cluster should go. That is why I was
> wondering
> what I should do first?
> "Geoff N. Hiten" wrote:
|||The key to the whole thing is to make sure the cluster services on each host
node always have a working communications path. If you have that,
everything else is fixable.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"RG" <RG@.discussions.microsoft.com> wrote in message
news:C7D1E071-473D-46FC-AFFD-C7800B6D0CB3@.microsoft.com...[vbcol=seagreen]
>I saw that article, but that only explains changing the IP of the virtual
>sql
> server. That doesn't explain what should be done first or how chaning the
> IP's on the machines with a cluster should go. That is why I was
> wondering
> what I should do first?
> "Geoff N. Hiten" wrote:

Wednesday, March 7, 2012

RDA with Linked Servers

I am developing a WM5 program (C#.NET) using SQL Server Mobile, using RDA to pull and push data from/to SQL2005.

The question/issue is this: Does RDA work with linked servers, more specifically, if the RDA table is an Oracle table accessed through a linked server? I have a linked server defined in SQL2005, using the .NET Oracle provider (MSDAORA) linked to Oracle 10g. When I try to perform an RDA PULL operation from Windows Mobile 5 (Smartphone emulator) I get the following error:

“The query cannot be tracked. There might not be a primary key, or the query might involve multiple tables. [ Query string = SELECT * FROM DATABASE_NAME..SCHEMA_NAME.TABLE_NAME ]”

I have used at least 3 different test tables in Oracle, trying different options. The error message above implies that the table may not have a primary key but it does (constraint and index) and I have tried a few options with this. The message also implies that multiple tables may be involved but this is not the case either. I have tried variations on the select statement including specifying the columns. I tried building the CREATE TABLE statements with the PK using SQLServer to generate the SQL DDL to see if SQLServer might build the table, constraint, index with options the way it wants to see them – same result.

I can run most any queries (select, insert, etc.) from SQLServer using the linked server and the queries work. The only problems involve RDA to the linked server.

I tried turning tracking off on RDA and was able to pull the entire table from the linked server. However, RDA requires that you can only push a tracked table (change tracking on). I tried to push a non-tracked table and it fails.

Make sure that the table you are referring to is under DBO schema. If it is under any other schema, then RDA might be encountering problem in finding the Primary Key for that table.

Let me know the details after your trials!

Thanks,

Laxmi Narsimha Rao ORUGANTI, SQL Server Everywhere, Microsoft Corporation

|||

All of the objects in the SQL2005 database are in the dbo schema. However, the query from RDA pull references an Oracle table in a named schema, using 4-part name notation "SELECT * FROM DATABASE_NAME..SCHEMA_NAME.TABLE_NAME " per the SQL2005 distributed query guidelines. In this case, the credentials for the linked server Oracle access are for the owner of the named schema.

Thanks,

MattR-KS

|||

Hi Matt,

Just to narrow down the problem. What happens when you are pulling a table in a named schema from SQL Server than from oracle via linked SQL Server. What I mean is have the table in a name schema in SQL Server itself and do a RDA with that.

Thanks,

Laxmi Narsimha Rao ORUGANTI, SQL Server Everywhere, Microsoft Corporation