我正在尝试将mongo db快速启动部署为seen here。
不幸的是,它很快失败,状态为CREATE_FAILED,出现以下错误,我无法理解:
IF (SELECT COUNT(name) FROM sysobjects WHERE name = 'PerfTest') >0
BEGIN
DROP TABLE PerfTest
CREATE TABLE [dbo].[PerfTest](
[PerfID] [int] NOT NULL,
[PerfTX] [varchar](20) COLLATE Latin1_General_CI_AI NULL,
[PerfDT] [datetime] NULL,
[PerfNm] [int] NULL,
CONSTRAINT [PK_PerfTest] PRIMARY KEY CLUSTERED
([PerfID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
END
ELSE
BEGIN
CREATE TABLE [dbo].[PerfTest](
[PerfID] [int] NOT NULL,
[PerfTX] [varchar](20) COLLATE Latin1_General_CI_AI NULL,
[PerfDT] [datetime] NULL,
[PerfNm] [int] NULL,
CONSTRAINT [PK_PerfTest] PRIMARY KEY CLUSTERED
([PerfID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
END
DECLARE
@InsertStart DATETIME,
@InsertEnd DATETIME,
@DeleteStart DATETIME,
@DeleteEnd DATETIME,
@UpdateStart DATETIME,
@UpdateEnd DATETIME,
@PID AS INT,
@PTX AS VARCHAR(20),
@PDT AS DATETIME,
@PNM AS INT
BEGIN
PRINT 'Timings will be at the bottom of this result set'
SET @PID = 0
SET @PNM = 0
SET @PTX = 'ABCDEFGHIJABCDEFGHIJ'
SET @InsertStart = GETDATE()
--Insert Test
WHILE (@PID < 1000000)
BEGIN
SET @PID = @PID + 1
SET @PNM = @PNM + 1
SET @PDT = GETDATE()
INSERT INTO PerfTest VALUES(@PID, @PTX, @PDT, @PNM)
END
SET @InsertEnd = GETDATE()
--Begin Update Test
SET @UpdateStart = GETDATE()
UPDATE PerfTest SET PerfNm = PerfNm + 1
SET @UpdateEnd = GETDATE()
--Begin Delete Test
SET @DeleteStart = GETDATE()
DELETE FROM PerfTest
SET @DeleteEnd = GETDATE()
PRINT 'Insert Duration = ' ++ CAST(DATEDIFF(SS,@InsertStart, @InsertEnd) AS CHAR(5)) ++ ' Seconds'
PRINT 'Update Duration = ' ++ CAST(DATEDIFF(SS,@UpdateStart, @UpdateEnd) AS CHAR(5)) ++ ' Seconds'
PRINT 'Delete Duration = ' ++ CAST(DATEDIFF(SS,@DeleteStart, @DeleteEnd) AS CHAR(5)) ++ ' Seconds'
DROP TABLE PerfTest
END
我尝试使用我自己的用户角色和我创建的新角色,其中可信实体是CF和高级用户的权限。两种情况都失败了。
我肯定错过了一些非常基本的想法?
谢谢
答案 0 :(得分:0)
如果您无法创建这些网络资源,那么由于IAM用户限制,它可能会非常好。