Kam*_*ely 5 mysql sql-server-2012
我正在尝试使用SQL Server Migration Assistant for MySQL将几个 mySQL 表转换为 Microsoft SQL Server 2012 表。小表得到了转换,但是当涉及到大表(略小于 4 GB)时,经过大约 1:30 小时的处理,它给出了以下错误:
(经过时间 = 00:01:24:32:197)。无法截断目标表。原因: ExecuteReader 需要打开且可用的连接。连接的当前状态是关闭的。
这是输出:
Migrating data...
Analyzing metadata...
Preparing table `big fmail user`.conversionlog...
Preparing data migration package...
Starting data migration Engine
Starting data migration...
The data migration engine is migrating table '`big fmail user`.conversionlog': > [big fmail user].dbo.conversionlog, 87489673 rows total
Table `big fmail user`.conversionlog data migration: 8760542 rows processed.
Table `big fmail user`.conversionlog data migration: 17510722 rows processed.
Table `big fmail user`.conversionlog data migration: 26249995 rows processed.
Table `big fmail user`.conversionlog data migration: 34998808 rows processed.
Table `big fmail user`.conversionlog data migration: 43757368 rows processed.
Table `big fmail user`.conversionlog data migration: 52494656 rows processed.
Table `big fmail user`.conversionlog data migration: 61254458 rows processed.
Cannot truncate target table. Reason: ExecuteReader requires an open and available Connection. The connection's current state is closed.
Errors: Cannot truncate target table. Reason: ExecuteReader requires an open and available Connection. The connection's current state is closed.
Table `big fmail user`.conversionlog data migration: 0 rows processed.
Completing migration of table `big fmail user`.conversionlog...
Migration complete for table '`big fmail user`.conversionlog': > [big fmail user].dbo.conversionlog, 0 rows migrated (Elapsed Time = 00:01:24:32:197).
ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.
Information: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.
Data migration operation has finished.
0 table(s) successfully migrated.
0 table(s) partially migrated.
1 table(s) failed to migrate.
Run Code Online (Sandbox Code Playgroud)
关于什么可能导致此错误以及我应该如何解决它的任何建议?
我解决了这个问题。问题是财产的价值Data migration timeout in minutes。
转到Tools > Project Settings > General左侧窗格中,单击Migration,然后在右侧窗格的 部分中Misc,将属性更改Data migration timeout in minutes为更大的值(默认值为 15;我将其更改为 300)。
| 归档时间: |
|
| 查看次数: |
5677 次 |
| 最近记录: |