Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_ORAXactSetJob

  No additional text.


Syntax


-- Name:
--		sp_ORAXactSetJob

-- Description:
--		Manage the Oracle XactSet Job

-- Inputs:
--		@publisher		== name of Oracle publisher
--		@enabled		== enabled flag
--		@interval		== minutes between job execution
--		@threshold		== changes needed to force new interval
--		@LRinterval		== minutes between job execution when log reader is active
--		@LRthreshold	== changes needed to force new interval when log reader is active

-- Returns:
--		Return code (0 for success, 1 for failure)

-- Security:
--		internal stored procedure
-- Requires Certificate signature for catalog access

CREATE PROCEDURE sys.sp_ORAXactSetJob
(
	@publisher		sysname,
	@enabled		bit = NULL,
	@interval		int = NULL,
	@threshold		int = NULL,
	@LRinterval		int = NULL,
	@LRthreshold	int = NULL
)
AS
BEGIN
	DECLARE @retcode	int
	DECLARE @pubid		int
	DECLARE @cmd			nvarchar(400)
	DECLARE	@InsColumnList		nvarchar(200)
	DECLARE	@SelectColumnList	nvarchar(200)
	
	SET NOCOUNT ON

	
	-- Security Check: require sysadmin
	
	IF (ISNULL(IS_SRVROLEMEMBER('sysadmin'),0) = 0)
	BEGIN
		RAISERROR(21089,16,-1)
		RETURN (1)
	END

	-- Get publisher ID
	SELECT @pubid = srvid
	FROM	master.dbo.sysservers
	WHERE	UPPER(srvname collate database_default) = UPPER(@publisher)
	
	IF @pubid IS NULL
	BEGIN
		RAISERROR(21600, 16, -1, @publisher)
		RETURN (1)
	END

	-- Define sp_ORAremotequery support table
	create table #hquery
	(
		seq	int identity(2,1),
		cmd	nvarchar(4000)
	)

	-- call HREPL.RefreshXactSetJob to refresh Oracle XactSet job
	INSERT INTO #hquery(cmd) VALUES (N'{CALL HREPL.REFRESHXactSetJob(')
	IF @enabled IS NULL
		INSERT INTO #hquery(cmd) VALUES ( N'NULL,')
	ELSE
		INSERT INTO #hquery(cmd) VALUES (CONVERT(NVARCHAR(255), @enabled) + N',')
		
	IF @interval IS NULL
		INSERT INTO #hquery(cmd) VALUES ( N'NULL,')
	ELSE
		INSERT INTO #hquery(cmd) VALUES (CONVERT(NVARCHAR(255), @interval) + N',')
		
	IF @threshold IS NULL
		INSERT INTO #hquery(cmd) VALUES ( N'NULL,')
	ELSE
		INSERT INTO #hquery(cmd) VALUES (CONVERT(NVARCHAR(255), @threshold) + N',')
		
	IF @LRinterval IS NULL
		INSERT INTO #hquery(cmd) VALUES ( N'NULL,')
	ELSE
		INSERT INTO #hquery(cmd) VALUES (CONVERT(NVARCHAR(255), @LRinterval) + N',')
	
	IF @LRthreshold IS NULL
		INSERT INTO #hquery(cmd) VALUES ( N'NULL)}')
	ELSE
		INSERT INTO #hquery(cmd) VALUES (CONVERT(NVARCHAR(255), @LRthreshold) + N')}')

	EXEC @retcode = sys.sp_IHquery @publisher
	IF  (@@error <> 0 OR @retcode <> 0 )
	BEGIN
		RAISERROR (21786, 16, -1, @publisher)
		RETURN (1)
	END

	RETURN(0)
END

 
Last revision 2008RTM
See also

  sp_IHXactSetJob (Procedure)
sp_MSdrop_repltran (Procedure)
sp_publisherproperty (Procedure)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash