【问题标题】:Migrating from mysql to oracle 12c从 mysql 迁移到 oracle 12c
【发布时间】:2015-01-09 17:04:41
【问题描述】:

我正在从 MySQL 迁移到 oracle,我得到了在 MySQL 上生成的脚本,并在创建视图 MySQL 时添加:

 Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "TB"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 114
               Right = 189
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End

我在 oracle 上创建了没有问题的视图 但由于我是 oracle 的新手,我不知道这段代码是必要的还是它只是在 MySQL 上是必要的,如果有必要,我该如何在 oracle 上完成它?

【问题讨论】:

    标签: oracle12c


    【解决方案1】:

    此代码看起来像添加到视图中的 SQL Server Management Studio (SSMS) 的扩展属性,因此如果您在 GUI 中再次打开该视图,您的 GUI 设计布局将再次加载 - 但您说您正在执行 MySQL到 Oracle 而不是 SQL Server 到 Oracle,所以不确定你为什么使用 SSMS。

    这不是视图工作(在任何数据库中)所必需的,只是为了在 SSMS 中设置设计器视图的布局,因此无需将其添加到您的 Oracle 视图中。

    如果您使用 Tasks -> Generate Scripts 通过 SSMS 导出您的 VIEW 代码,您可以在高级选项中通过将 Script Extended Properties 设置为 false 来禁用扩展属性的脚本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-26
      • 2020-05-12
      • 1970-01-01
      • 1970-01-01
      • 2012-12-13
      • 2011-08-25
      • 1970-01-01
      • 2010-09-24
      相关资源
      最近更新 更多