我已经为我的应用程序启用了ADF Secruity,但是我有一个奇怪的问题,它很难在第一次尝试中登录。用户会随机尝试登录,有时会尝试2次或3次甚至更多次。没有错误消息显示,它只是返回到登录页面。我已经实施注销以终止会话,但不知道怎么回事。您有什么建议吗?
这是我在Jdeveloper 11.1.2.3.0中使用的代码:
ALTER Procedure [dbo].[SP_SSIS_pkg_Rfnd_BSP] (@ExcelFilePath sql_variant)
As
begin
DECLARE @FolderName nvarchar(128) = 'Import_RAData_BSP'
DECLARE @ProjectName nvarchar(128) = 'SSIS_Rfnd_App_BSP'
DECLARE @PackageName nvarchar(260) = 'pkg_Rfnd_BSP.dtsx'
DECLARE @LoggingLevel varchar(16) = 'Basic'
DECLARE @Use32BitRunTime bit = 0
DECLARE @ReferenceID bigint = NULL
DECLARE @ObjectType smallint = 50
DECLARE @ExecutionID bigint
Set NOCOUNT ON
/* Call the catalog.create_execution stored procedure
to initialize execution location and parameters */
Exec SSISDB.catalog.create_execution
@package_name = @PackageName
,@execution_id = @ExecutionID Output
,@folder_name = @FolderName
,@project_name = @ProjectName
,@use32bitruntime = @Use32BitRunTime
,@reference_id = @ReferenceID
/* Populate the @ExecutionID parameter for OUTPUT */
Select @ExecutionID As Execution_Id
/* Create a parameter (variable) named @Sql */
Declare @logging_level smallint
/* Decode the Logging Level */
Select @logging_level = Case
When Upper(@LoggingLevel) = 'BASIC'
Then 1
When Upper(@LoggingLevel) = 'PERFORMANCE'
Then 2
When Upper(@LoggingLevel) = 'VERBOSE'
Then 3
Else 0 /* 'None' */
End
/* Call the catalog.set_execution_parameter_value stored
procedure to update the LOGGING_LEVEL parameter */
Exec SSISDB.catalog.set_execution_parameter_value
@ExecutionID
,@object_type = 30
,@parameter_name = N'ExcelFilePath'
,@parameter_value = @ExcelFilePath
/* Call the catalog.set_execution_parameter_value stored
procedure to update the LOGGING_LEVEL parameter */
Exec SSISDB.catalog.set_execution_parameter_value
@ExecutionID
,@object_type = @ObjectType
,@parameter_name = N'LOGGING_LEVEL'
,@parameter_value = @logging_level
/* Call the catalog.start_execution (self-explanatory) */
Exec SSISDB.catalog.start_execution @ExecutionID
end