UiPath Documentation
insights
2024.10
false
Insights 用户指南
  • 入门指南
    • 关于 Insights
    • Insights 数据模型
  • 访问和权限
  • 安装和升级
    • 硬件和软件要求
    • 升级
    • 故障排除
    • 迁移到 Automation Suite
      • Google Cloud Platform 迁移说明
      • Amazon Web Services 迁移说明
      • 使用克隆的数据库升级
      • Insights 数据库验证脚本
      • 常见问题
    • 用户迁移工具
    • 架构
  • 与 Insights 交互
  • 历史数据导出
  • 日志
  • 性能和可扩展性
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

使用克隆的数据库升级

使用克隆副本将 Insights 数据库升级到版本 2023.4,以避免在本地部署到云迁移期间中断生产环境。

对于本地部署到云的迁移,需要将 Insights 数据库升级到版本 2023.4。 由于此升级会扰乱您的环境,因此可以考虑克隆数据库并升级克隆的 Insights 数据库 (DB)。

为更加谨慎起见,在以下步骤中,我们将同时克隆 Orchestrator DB 和 Insights DB。

  1. 检查 Insights 数据库版本 - 您可以通过查看dbo.__MigrationHistory表中的最新行来检查 Insights 数据库的版本。 示例:
    SELECT *
    FROM [insights].[dbo].[__MigrationHistory]
    ORDER BY MigrationId DESC;
    SELECT *
    FROM [insights].[dbo].[__MigrationHistory]
    ORDER BY MigrationId DESC;
    
  2. 克隆 Orchestrator 数据库和 Insights 数据库 - 有多个工具可用于克隆数据库。例如:a.数据迁移 Assistant 。b。Microsoft SQL Server Management Studio。
  3. 对克隆的数据库运行升级命令 - 按照说明升级 Insights DB如何为 Orchestrator PaaS 手动创建/迁移 Insights 数据库?并进行以下调整:a.在第二步,应使用以下下载内容,而不是使用 PaaS Orchestrator 安装介质链接: https://download.uipath.com/versions/23.4.3/UiPathOrchestrator.zip b.在步骤 7 中,对于 Orchestrator 数据库连接字符串,请使用克隆的 OrchDB 连接字符串。c.在步骤 9 中,对于 Insights 数据库连接字符串,使用克隆的 Insights 数据库连接字符串
    PS C:\Users\uipath\Desktop\UiPath.Orchestrator.Cli> .\UiPath.Orchestrator.Cli.exe database upgrade-database -d Insights -c ".\UiPath.Orchestrator.dll.config" --connection-string "Server=localhost;Initial Catalog=insights_clone_1; User Id=uuuuu; Password=ppppp;"
    Database upgrade started...
    Database upgrade complete.
    PS C:\Users\uipath\Desktop\UiPath.Orchestrator.Cli> .\UiPath.Orchestrator.Cli.exe database upgrade-database -d Insights -c ".\UiPath.Orchestrator.dll.config" --connection-string "Server=localhost;Initial Catalog=insights_clone_1; User Id=uuuuu; Password=ppppp;"
    Database upgrade started...
    Database upgrade complete.
    
    备注:
    • 使用克隆数据库的连接字符串可防止污染实际数据库。
    • 如果内部发生错误,该命令可能不会将错误回显到终端。 继续执行下面的第四步,以验证数据库是否已成功升级。
  4. 检查克隆的 Insights 数据库的版本。
    SELECT *
    FROM [insights_clone_1].[dbo].[__MigrationHistory]
    ORDER BY MigrationId DESC;
    SELECT *
    FROM [insights_clone_1].[dbo].[__MigrationHistory]
    ORDER BY MigrationId DESC;
    
  5. 验证每个表中是否存在以下列:
    • dbo.作业
      备注:

      Id列只能包含正数。

      Id, TenantId, CreationTime, StartTime, EndTime, JobKey,
      JobSource, EnvName, NULL as OrgUnitCode, OrgUnitName,
      OrganizationUnitId, ProcessName, DisplayName,
      OrgUnitFullyQualifiedName, RuntimeType,
      Id, TenantId, CreationTime, StartTime, EndTime, JobKey,
      JobSource, EnvName, NULL as OrgUnitCode, OrgUnitName,
      OrganizationUnitId, ProcessName, DisplayName,
      OrgUnitFullyQualifiedName, RuntimeType,
      
    • dbo.JobEvents
      Id, TenantId, ProcessVersion, RobotName, RobotType,
      HostMachineName, JobId, TimeStamp, Action, JobState,
      UserName, RuntimeType,
      Id, TenantId, ProcessVersion, RobotName, RobotType,
      HostMachineName, JobId, TimeStamp, Action, JobState,
      UserName, RuntimeType,
      
    • dbo.QueueItems
      Id, TenantId, Priority, QueueName, ProcessingStatus,
      ReviewStatus, RobotName, RobotType, CreationTime,
      StartProcessing, EndProcessing, CreatorJobId, ExecutorJobId,
      SecondsInPreviousAttempts, AncestorId, RetryNumber,
      DeferDate, DueDate, Progress, SpecificData, AnalyticsData,
      Output, ProcessingExceptionType, ProcessingExceptionReason,
      Reference, ReviewerUserName, OrgUnitCode, OrgUnitName,
      OrganizationUnitId, OrgUnitFullyQualifiedName,
      ProcessingExceptionDetails,
      Id, TenantId, Priority, QueueName, ProcessingStatus,
      ReviewStatus, RobotName, RobotType, CreationTime,
      StartProcessing, EndProcessing, CreatorJobId, ExecutorJobId,
      SecondsInPreviousAttempts, AncestorId, RetryNumber,
      DeferDate, DueDate, Progress, SpecificData, AnalyticsData,
      Output, ProcessingExceptionType, ProcessingExceptionReason,
      Reference, ReviewerUserName, OrgUnitCode, OrgUnitName,
      OrganizationUnitId, OrgUnitFullyQualifiedName,
      ProcessingExceptionDetails,
      
    • dbo.QueueItemEvents
      Id, TenantId, QueueItemId, TimeStamp, Action, UserName,
      ProcessingStatus, QueueDefinitionId,
      JobOrgUnitFullyQualifiedName, JobOrganizationUnitId,
      Id, TenantId, QueueItemId, TimeStamp, Action, UserName,
      ProcessingStatus, QueueDefinitionId,
      JobOrgUnitFullyQualifiedName, JobOrganizationUnitId,
      
    • dbo.RobotLogs
      Id, TenantId, OrganizationUnitId, TimeStamp, JobKey,
      MachineId, ProcessName, WindowsIdentity, RobotName,
      RawMessage, Message, LevelOrdinal,
      Id, TenantId, OrganizationUnitId, TimeStamp, JobKey,
      MachineId, ProcessName, WindowsIdentity, RobotName,
      RawMessage, Message, LevelOrdinal,
      
    • dbo.Tenants
      备注:

      租户 ID 必须是正数。

      Id, Name, Key
      Id, Name, Key
      

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新