Showing posts with label nodes. Show all posts
Showing posts with label nodes. Show all posts

Monday, March 19, 2012

Applying SP3a to SQL 2000 cluster - Problem

I have added two new nodes to the cluster and successfully installed SQL 2000
on both. I am trying to apply SP3a to both and am getting the message
"18:01:30 One or more errors occurred while running remote setup on the
clustered machines.
18:01:35 Setup failed to perform required operations on the cluster nodes."
Active/passive cluster. active node is up and working. But I have only a 1
node cluster at the moment.
Additonal from sqlsp.log:
17:55:49 Begin Action : Run setup on cluster nodes
[args]
NumRemoteServers=1
Server.1=GSOSVSQLCLS1D
[Server.1]
NumRemoteServices=1
1.app="\\GSOSVSQLCLS1A\C$\Service_Packs\sql2ksp3a\ x86\setup\setupsql.exe"
1.server=GSOSVSQLCLS1D
1.script=\\GSOSVSQLCLS1A\admin$\GSOSVSQLCLS1D_MSSQ LSERVER.iss
1.cmdlineformat=%s k=ClSec k=Rm k=Cl -SMS -s -f
"\\GSOSVSQLCLS1A\C$\Service_Packs\sql2ksp3a\x86\se tup\setup.ins" -f1 %s -f2
"\\GSOSVSQLCLS1D\admin$\setup.log" -e "stpsilnt._ex" -x "C:\"
1.user=GILBARCO\skipper
1.name=SQLSetup1
1.sqlsetup=Y
1.copyexe=cnvsvc1.exe
17:55:49 Setup is performing required operations on cluster nodes. This may
take a few minutes...
17:55:49 "C:\DOCUME~1\hall\LOCALS~1\Temp\SqlSetup\Bin\remse tup.exe"
C:\WINNT\remsetup.ini
18:01:30 Process Exit Code: (-12)
18:01:30 Begin Action : GetRemsetupRetCode
18:01:30 Installation return status on GSOSVSQLCLS1D : -12
18:01:30 End Action : GetRemsetupRetCode
#### SQL Server Remote Setup - Start Time 05/26/07 17:55:49 ####
CThreadPool::RunUntilCompleteHlpr create thread, index=0
CThread::Run thread [0x84] created for execution.
CThread::Process [0x84]
CThreadPool::RunUntilCompleteHlpr start thread [0x84],index=0
Script file copied to '\\GSOSVSQLCLS1D\ADMIN$\GSOSVSQLCLS1D_MSSQLSERVER. iss'
successfully.
Installing remote service (GSOSVSQLCLS1D)...
CRemoteProcess::RunUntilComplete [0x84] exit code: -12
Remote process exit code was '-12' (GSOSVSQLCLS1D).
CThreadPool::RunUntilCompleteHlpr WaitForMultipleObjects returned: 0
CThreadPool::RunUntilCompleteHlpr signaled thread [0x84]
Thread [0x84] exit code: [0xfffffff4]
CThreadPool::RunUntilComplete returned -12
CThreadPool::RunUntilComplete execution level=1, need execution: 0
One or more errors occurred while running the remote/unattended setups.
Disconnecting from remote machine (GSOSVSQLCLS1D)...
Service removed successfully.
Remote files removed successfully.
#### SQL Server Remote Setup - Stop Time 05/26/07 18:01:30 ####
18:01:30 End Action : Run setup on cluster nodes
18:01:30 One or more errors occurred while running remote setup on the
clustered machines.
18:01:35 Setup failed to perform required operations on the cluster nodes.
18:01:35 Begin Action : ClusterErrorCleanup
18:01:35 End Action : ClusterErrorCleanup
18:01:35 End Action : ClusterSetupHelper
18:01:35 Begin Action : LogEvent
18:01:35 End Action : LogEvent
18:01:35 Begin Action : CloseEventLog
18:01:35 End Action : CloseEventLog
Pat is there anything in the cluster log, application log or the system log.
Need more information so troubleshoot.
Thanks
John Vandervliet
"Pat Hall" wrote:

> I have added two new nodes to the cluster and successfully installed SQL 2000
> on both. I am trying to apply SP3a to both and am getting the message
> "18:01:30 One or more errors occurred while running remote setup on the
> clustered machines.
> 18:01:35 Setup failed to perform required operations on the cluster nodes."
> Active/passive cluster. active node is up and working. But I have only a 1
> node cluster at the moment.
> Additonal from sqlsp.log:
> 17:55:49 Begin Action : Run setup on cluster nodes
> [args]
> NumRemoteServers=1
> Server.1=GSOSVSQLCLS1D
> [Server.1]
> NumRemoteServices=1
> 1.app="\\GSOSVSQLCLS1A\C$\Service_Packs\sql2ksp3a\ x86\setup\setupsql.exe"
> 1.server=GSOSVSQLCLS1D
> 1.script=\\GSOSVSQLCLS1A\admin$\GSOSVSQLCLS1D_MSSQ LSERVER.iss
> 1.cmdlineformat=%s k=ClSec k=Rm k=Cl -SMS -s -f
> "\\GSOSVSQLCLS1A\C$\Service_Packs\sql2ksp3a\x86\se tup\setup.ins" -f1 %s -f2
> "\\GSOSVSQLCLS1D\admin$\setup.log" -e "stpsilnt._ex" -x "C:\"
> 1.user=GILBARCO\skipper
> 1.name=SQLSetup1
> 1.sqlsetup=Y
> 1.copyexe=cnvsvc1.exe
> 17:55:49 Setup is performing required operations on cluster nodes. This may
> take a few minutes...
> 17:55:49 "C:\DOCUME~1\hall\LOCALS~1\Temp\SqlSetup\Bin\remse tup.exe"
> C:\WINNT\remsetup.ini
> 18:01:30 Process Exit Code: (-12)
> 18:01:30 Begin Action : GetRemsetupRetCode
> 18:01:30 Installation return status on GSOSVSQLCLS1D : -12
> 18:01:30 End Action : GetRemsetupRetCode
> #### SQL Server Remote Setup - Start Time 05/26/07 17:55:49 ####
> CThreadPool::RunUntilCompleteHlpr create thread, index=0
> CThread::Run thread [0x84] created for execution.
> CThread::Process [0x84]
> CThreadPool::RunUntilCompleteHlpr start thread [0x84],index=0
> Script file copied to '\\GSOSVSQLCLS1D\ADMIN$\GSOSVSQLCLS1D_MSSQLSERVER. iss'
> successfully.
> Installing remote service (GSOSVSQLCLS1D)...
> CRemoteProcess::RunUntilComplete [0x84] exit code: -12
> Remote process exit code was '-12' (GSOSVSQLCLS1D).
> CThreadPool::RunUntilCompleteHlpr WaitForMultipleObjects returned: 0
> CThreadPool::RunUntilCompleteHlpr signaled thread [0x84]
> Thread [0x84] exit code: [0xfffffff4]
> CThreadPool::RunUntilComplete returned -12
> CThreadPool::RunUntilComplete execution level=1, need execution: 0
> One or more errors occurred while running the remote/unattended setups.
> Disconnecting from remote machine (GSOSVSQLCLS1D)...
> Service removed successfully.
> Remote files removed successfully.
> #### SQL Server Remote Setup - Stop Time 05/26/07 18:01:30 ####
>
>
>
>
>
>
>
> 18:01:30 End Action : Run setup on cluster nodes
> 18:01:30 One or more errors occurred while running remote setup on the
> clustered machines.
> 18:01:35 Setup failed to perform required operations on the cluster nodes.
> 18:01:35 Begin Action : ClusterErrorCleanup
> 18:01:35 End Action : ClusterErrorCleanup
> 18:01:35 End Action : ClusterSetupHelper
> 18:01:35 Begin Action : LogEvent
> 18:01:35 End Action : LogEvent
> 18:01:35 Begin Action : CloseEventLog
> 18:01:35 End Action : CloseEventLog
>
|||Found the problem, a bug in the SP3a install that will not let youi apply
SP3a to 2 new nodes at the same time. See KB318672.
Got SP3a applied and will be failing over tonight.
"John Vandervliet" wrote:
[vbcol=seagreen]
> Pat is there anything in the cluster log, application log or the system log.
> Need more information so troubleshoot.
> Thanks
> John Vandervliet
> "Pat Hall" wrote:

Applying SP on SQL Cluster (active/passive) after new nodes Added

Ran into a problem in scheduling applying the Service Pack to our SQL
2000 active/passive cluster when we add new nodes. 50 plus databases and an
unknown number of apps.
I'm wondering what people do to ensure that no apps/people are trying to
access the databases when the service pack is applied.
Our application staff says there is no way they can guarantee that an
app or person will not try to access one of the databases while the service
pack is being installed.
My plan is to evict one of the existing nodes then add the two new nodes
one at a time and set up the heartbeat. Then install SQL 2000; then apply
SP3a. Yes I know SP4 is available; however, one of the apps will not run
with SP4.
The service pack brings the database engine up in single-user mode during
the SP install. Unless your applications are connecting as SA or
equivalent, there should be no conflict.
If the apps are connecting as SA, change the password before applying the SP
and change it back when you are done. Then fix that glaring security and
managability hole.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Pat Hall" <PatHall@.discussions.microsoft.com> wrote in message
news:FA6E93F9-78FC-497E-A4F0-E4D459F85CA9@.microsoft.com...
> Ran into a problem in scheduling applying the Service Pack to our SQL
> 2000 active/passive cluster when we add new nodes. 50 plus databases and
> an
> unknown number of apps.
> I'm wondering what people do to ensure that no apps/people are trying
> to
> access the databases when the service pack is applied.
> Our application staff says there is no way they can guarantee that an
> app or person will not try to access one of the databases while the
> service
> pack is being installed.
> My plan is to evict one of the existing nodes then add the two new
> nodes
> one at a time and set up the heartbeat. Then install SQL 2000; then
> apply
> SP3a. Yes I know SP4 is available; however, one of the apps will not run
> with SP4.
|||I thought in single-user mode, that any ID could be used and the 1st one
wins. SA or not. I also thought that the service pack brings the database
engine up and down several times while it is applying the service pack.
The other restriction (db_owner, sysadmin, bd_creator) isn't an option for
us either since many of the app IDs are db_owner in their database.
"Geoff N. Hiten" wrote:

> The service pack brings the database engine up in single-user mode during
> the SP install. Unless your applications are connecting as SA or
> equivalent, there should be no conflict.
>
> If the apps are connecting as SA, change the password before applying the SP
> and change it back when you are done. Then fix that glaring security and
> managability hole.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
>
> "Pat Hall" <PatHall@.discussions.microsoft.com> wrote in message
> news:FA6E93F9-78FC-497E-A4F0-E4D459F85CA9@.microsoft.com...
>
|||There is single-user mode for a database, and then there is single-user mode
for the entire database service. The SP starts the entire service in
single-user mode and immediately claims the connection.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Pat Hall" <PatHall@.discussions.microsoft.com> wrote in message
news:98107803-0953-4B12-986E-FB82CDCBA45B@.microsoft.com...[vbcol=seagreen]
>I thought in single-user mode, that any ID could be used and the 1st one
> wins. SA or not. I also thought that the service pack brings the
> database
> engine up and down several times while it is applying the service pack.
> The other restriction (db_owner, sysadmin, bd_creator) isn't an option for
> us either since many of the app IDs are db_owner in their database.
> "Geoff N. Hiten" wrote:
|||Thanks. So do I even need to get all the apps down before I start applying
a service pack? I would think so, so they close out of what they are doing
in an orderly fashion. Just not worry about them trying to get in while the
service pack is running.
"Geoff N. Hiten" wrote:

> There is single-user mode for a database, and then there is single-user mode
> for the entire database service. The SP starts the entire service in
> single-user mode and immediately claims the connection.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
>
> "Pat Hall" <PatHall@.discussions.microsoft.com> wrote in message
> news:98107803-0953-4B12-986E-FB82CDCBA45B@.microsoft.com...
>
|||You need a standard practice for maintenance, regardless of whether you are
applying a hotfix or an internal update. This includes procedures for
stopping and starting the entire system.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Pat Hall" <PatHall@.discussions.microsoft.com> wrote in message
news:D497CBD2-637D-490C-9BAD-6AA49F145000@.microsoft.com...[vbcol=seagreen]
> Thanks. So do I even need to get all the apps down before I start
> applying
> a service pack? I would think so, so they close out of what they are
> doing
> in an orderly fashion. Just not worry about them trying to get in while
> the
> service pack is running.
> "Geoff N. Hiten" wrote:

Sunday, February 19, 2012

append xml nodes

I'm searching for a way to insert nodes from an xml document into an other.
My solution to the problem is something like this:
ALTER PROCEDURE [dbo].[insertOrder]
@.Customer xml (dbo.schemaCustomer),
@.Product xml (dbo.schemaProduct)
AS
BEGIN
declare @.app varchar(1024)
declare @.x xml
set @.app = '<Order><Product>' + CAST(@.Product as varchar(1024)) +
'</Product>'+ CAST(@.Customer as varchar(1024)) +
'<id_order>0</id_order></Order>'
insert into xOrder (doc) values (@.app)
END
but I think there's a better way to solve the problem.
Is it possible to do this witout any casting operation?
Thank you, Luca.Hello luca,

> I'm searching for a way to insert nodes from an xml document into an
> other. My solution to the problem is something like this:
> ALTER PROCEDURE [dbo].[insertOrder]
> @.Customer xml (dbo.schemaCustomer),
> @.Product xml (dbo.schemaProduct)
> AS
> BEGIN
> declare @.app varchar(1024)
> declare @.x xml
> set @.app = '<Order><Product>' + CAST(@.Product as varchar(1024)) +
> '</Product>'+ CAST(@.Customer as varchar(1024)) +
> '<id_order>0</id_order></Order>'
> insert into xOrder (doc) values (@.app)
> END
> but I think there's a better way to solve the problem. Is it possible
> to do this witout any casting operation? Thank you, Luca.
Not that I've found. Something like this would be ideal if doc was XML-typed
as X1 is here:
declare @.x1 xml,@.x2 xml
set @.x1 = '<pet id="1" ownerID="1"><name>Jack</name></pet>'
set @.x2 = '<descr>Grey<descr>'
set @.x1.modify('insert sql:variable("@.x2") into /pet[1]')
However, the modify method won't work with XML-type variables. Nor does trea
ting
@.x2 as a varchar(x) really get you any place since when you do try that,
you get:
XQuery [modify()]: Only non-document nodes can be inserted. Found "xs:string
?".
.modify() also requires the use of string literal as the query. So, Ick.
Thank you,
Kent Tegels
DevelopMentor
http://staff.develop.com/ktegels/|||Try:
CREATE TABLE xOrder(doc xml)
go
CREATE PROCEDURE [dbo].[insertOrder]
@.Customer xml, --(dbo.schemaCustomer),
@.Product xml --(dbo.schemaProduct)
AS
BEGIN
insert into xOrder (doc) select (
select @.Customer, @.Product as "Product", 0 as "id_order"
FOR XML PATH('Order'), TYPE
)
END
go
exec insertOrder '<a/>', '<b/>'
select * from xOrder
Best regards
Michael
"luca" <luca@.discussions.microsoft.com> wrote in message
news:1F06F5E3-E9C9-4B40-ACFE-2784345D1F40@.microsoft.com...
> I'm searching for a way to insert nodes from an xml document into an
> other.
> My solution to the problem is something like this:
> ALTER PROCEDURE [dbo].[insertOrder]
> @.Customer xml (dbo.schemaCustomer),
> @.Product xml (dbo.schemaProduct)
> AS
> BEGIN
> declare @.app varchar(1024)
> declare @.x xml
> set @.app = '<Order><Product>' + CAST(@.Product as varchar(1024)) +
> '</Product>'+ CAST(@.Customer as varchar(1024)) +
> '<id_order>0</id_order></Order>'
> insert into xOrder (doc) values (@.app)
>
> END
> but I think there's a better way to solve the problem.
> Is it possible to do this witout any casting operation?
> Thank you, Luca.
>

append xml nodes

I'm searching for a way to insert nodes from an xml document into an other.
My solution to the problem is something like this:
ALTER PROCEDURE [dbo].[insertOrder]
@.Customer xml (dbo.schemaCustomer),
@.Product xml (dbo.schemaProduct)
AS
BEGIN
declare @.app varchar(1024)
declare @.x xml
set @.app = '<Order><Product>' + CAST(@.Product as varchar(1024)) +
'</Product>'+ CAST(@.Customer as varchar(1024)) +
'<id_order>0</id_order></Order>'
insert into xOrder (doc) values (@.app)
END
but I think there's a better way to solve the problem.
Is it possible to do this witout any casting operation?
Thank you, Luca.
Hello luca,

> I'm searching for a way to insert nodes from an xml document into an
> other. My solution to the problem is something like this:
> ALTER PROCEDURE [dbo].[insertOrder]
> @.Customer xml (dbo.schemaCustomer),
> @.Product xml (dbo.schemaProduct)
> AS
> BEGIN
> declare @.app varchar(1024)
> declare @.x xml
> set @.app = '<Order><Product>' + CAST(@.Product as varchar(1024)) +
> '</Product>'+ CAST(@.Customer as varchar(1024)) +
> '<id_order>0</id_order></Order>'
> insert into xOrder (doc) values (@.app)
> END
> but I think there's a better way to solve the problem. Is it possible
> to do this witout any casting operation? Thank you, Luca.
Not that I've found. Something like this would be ideal if doc was XML-typed
as X1 is here:
declare @.x1 xml,@.x2 xml
set @.x1 = '<pet id="1" ownerID="1"><name>Jack</name></pet>'
set @.x2 = '<descr>Grey<descr>'
set @.x1.modify('insert sql:variable("@.x2") into /pet[1]')
However, the modify method won't work with XML-type variables. Nor does treating
@.x2 as a varchar(x) really get you any place since when you do try that,
you get:
XQuery [modify()]: Only non-document nodes can be inserted. Found "xs:string
?".
..modify() also requires the use of string literal as the query. So, Ick.
Thank you,
Kent Tegels
DevelopMentor
http://staff.develop.com/ktegels/
|||Try:
CREATE TABLE xOrder(doc xml)
go
CREATE PROCEDURE [dbo].[insertOrder]
@.Customer xml, --(dbo.schemaCustomer),
@.Product xml --(dbo.schemaProduct)
AS
BEGIN
insert into xOrder (doc) select (
select @.Customer, @.Product as "Product", 0 as "id_order"
FOR XML PATH('Order'), TYPE
)
END
go
exec insertOrder '<a/>', '<b/>'
select * from xOrder
Best regards
Michael
"luca" <luca@.discussions.microsoft.com> wrote in message
news:1F06F5E3-E9C9-4B40-ACFE-2784345D1F40@.microsoft.com...
> I'm searching for a way to insert nodes from an xml document into an
> other.
> My solution to the problem is something like this:
> ALTER PROCEDURE [dbo].[insertOrder]
> @.Customer xml (dbo.schemaCustomer),
> @.Product xml (dbo.schemaProduct)
> AS
> BEGIN
> declare @.app varchar(1024)
> declare @.x xml
> set @.app = '<Order><Product>' + CAST(@.Product as varchar(1024)) +
> '</Product>'+ CAST(@.Customer as varchar(1024)) +
> '<id_order>0</id_order></Order>'
> insert into xOrder (doc) values (@.app)
>
> END
> but I think there's a better way to solve the problem.
> Is it possible to do this witout any casting operation?
> Thank you, Luca.
>