0

我在尝试为 SSMA for Oracle 版本 6.0.1 构建受保护的存储文件时遇到重复错误。我做了各种尝试;没有任何效果!SSMA 坚持写入漫游配置文件目录,并且它写入的文件始终在使用中。即使我重新启动它也被报告为“正在使用”。即使我掉电重启,也报在使用中。即使我使用我的家用计算机(配置了本地配置文件并且没有地方可以漫游),应用程序也会写入漫游配置文件并且报告该文件正在使用中。SSMA 5.3 也是如此。我还尝试启动具有相同结果的特殊命令 shell。与2012服务器版本相同。我还尝试使用硬编码值并跳过变量文件。

没有其他人报告此问题。有谁知道我做错了什么或如何解决这个问题?

这是命令和错误文本:

C:\Windows\System32>SSMAforORacleConsole.exe -securepassword -add DEV -s "y:\dba\projects\OracleToSQLServerMigration\SSMAProjects\DEV_Migration\command-config\DataMigrationDEV.xml" -v y:\dba\projects\OracleToSQLServerMigration\SSMAProjects\DEV_Migration\command-config\VariableValueFileSample - DEV.xml"

[5/19/2016 10:32:33 AM]    INPUT Enter password for server id 'DEV': ****
[5/19/2016 10:32:36 AM]    INPUT Re-enter password for server id 'DEV': ****

[5/19/2016 10:32:38 AM] FATALERR Unexpected error during addition of servers to protected storage
[5/19/2016 10:32:38 AM]   **NESTED The process cannot access the file 'C:\Users\amorris\AppData\Roaming\Microsoft SQL Server Migration Assistant\Oracle\ProtectedStorage.ssma' because it is being used by another process.**

这是连接文件 DataMigrationDEV.xml(已编辑以删除服务器信息):

<?xml version="1.0" encoding="UTF-8"?>  

-<ssma-script-file   xsi:noNamespaceSchemaLocation="..\Schemas\O2SSConsoleScriptSchema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


-<config>


-<output-providers>

<data-migration-connection target-server="AAA_DEV" source-server="DEV"/>

<log-verbosity level="debug"/>

</output-providers>

</config>


-<servers>


-<sql-server name="AAA_DEV">


-<windows-authentication>

<server value="$SQLServerName$"/>

<database value="$SQLServerDb$"/>

<encrypt value="true"/>

<trust-server-certificate value="true"/>

</windows-authentication>

</sql-server>


-<oracle name="DEV">


-<tns-name-mode>

<connection-provider value="Oracle Client Provider"/>

<service-name value="$OracleInstance$"/>

<user-id value="$OracleUserName$"/>

</tns-name-mode>

</oracle>

</servers>


-<script-commands>

<connect-source-database server="DEV"/>

<connect-target-database server="AAA_DEV"/>

<map-schema sql-server-schema="$SQLServerDb$.dbo" source-   schema="$OracleSchemaName$"/>

<migrate-data verbose="true" report-errors="true" write-summary-report-    to="$SummaryReports$" object-type="category" object-name="$OracleSchemaName$.Tables"/>

</script-commands>

</ssma-script-file>

这是变量文件(经过编辑以删除识别信息):

<?xml version="1.0" encoding="utf-8"?>
<!--
        Variable value file for SSMA-v4.2 Console for Oracle adapted for AIMS.
        Specified name and value attribute values are mandatory
        Name values should begin and end with '$'
        Use of this file is NOT mandatory
        option -v[ariable]. See the documentation for SSMA-v4.2 Console for  more information.
-->
<variables xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\Schemas\ConsoleScriptVariablesSchema.xsd">
  <!--
      ********************************** MUST DO **************************************************
      ***** MUST replace occurrences of {<value>} with appropriate values wherever necessary  *****
           *********************************************************************************************
  -->

  <!--
        ***************************************************************************
        ***** The "working folder" {Working Folder Path} should exist         *****
        ***** prior to console script execution                               *****
            ***************************************************************************
    -->
  <variable name="$WorkingFolder$"      value="d:\app\OracleToSQLServerMigration\DEV_Migration\"/>

  <variable-group name="OracleConnection">
    <variable name="$OracleInstance$"  value="DEV"/>
    <variable name="$OracleUserName$"  value="USERA"/>
    <variable name="$OraclePassword$"  value="{password}"/>
    <variable name="$OracleSchemaName$" value="SCHEMAA"/>
 </variable-group>

  <variable-group name="SQLServerConnection">
    <variable name="$SQLServerName$"   value="dev.sample.edu\DEV"/>
    <variable name="$SQLServerDb$"     value="MigrationTest"/>
  </variable-group>

  <variable-group name="Report">
    <variable name="$SummaryReports$"               value="$WorkingFolder$"/>
    <variable name="$AssessmentReportFolderName$"   value="AssessmentReports"/>
    <variable name="$AssessmentReports$"               value="$WorkingFolder$\$AssessmentReportFolderName$"/>
     <variable name="$RefreshDBFolder$"              value="$WorkingFolder$"/>
    <variable name="$ConvertARReportsFolder$"           value="$WorkingFolder$\$AssessmentReportFolderName$"/>
    <variable name="$SynchronizationReports$"       value="$WorkingFolder$"/>
    <variable name="$SaveScriptFolder$"             value="$WorkingFolder$"/>
    <variable name="$ConvertSQLReports$"            value="$WorkingFolder$"/>
    <!--
        ***************************************************************************
        ***** The folder {Folder where sql files are stored} needs to exists  ***** 
        ***** and should contain the *.sql files that need to be converted    *****
        ***** using convert-sql-statement command                             *****
        ***************************************************************************
    -->
    <variable name="$ConvertSqlSampleFiles$"        value="$WorkingFolder$\   {Folder where sql files are stored}"/>
  </variable-group>

  <variable-group name="ProjectSpecs">
    <variable name="$project_name$" value="DEV_Migration"/>
    <variable name="$project_overwrite$" value="true"/>
    <variable name="$project_type$" value="sql-server-2014"/>
    <variable name="$project_folder$" value="$WorkingFolder$\$project_name$"/>
  </variable-group>

</variables>

我已经通过一些网页获取另一个进程错误使用的文件。我只是看不到另一个进程如何使用该文件。它是由这个应用程序创建的!并且所有服务器上的重复使得合法错误或任何类型的服务器权限错误的可能性降低。

有任何想法吗?

谢谢你,艾尔莫里斯

4

0 回答 0