BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          TrueOrders Data Export & Import

          Posted on 2009-02-16 22:52 logicgate 閱讀(110) 評論(0)  編輯  收藏

          Data Export on Source Server

          1. Open Windchil Shell and login to SQL Plus as user OB80

          2. Execute the following SQL statement:

          select * from nls_database_parameters t where t.parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET');

          ?

          The result in the testing system is:
          NLS_LANGUAGE: AMERICAN
          NLS_TERRITORY: AMERICA
          NLS_CHARACTERSET: UTF8

          ?

          3. Exit SQL Plus

          4. Execute the following command:

          set NLS_LANG=AMERICAN_AMERICA.UTF8
          ?

          5. Execute the following command to export TrueOrders data:

          exp ob80/ob80 file=epcit.dmp log=epcit_exp.log compress=y;

          ?

          Please make sure Export terminated successfully without warning.

          6. TrueOrders data is exported to epcit.dmp located under the directory in which you run the export command (in this case, it’s D:\ptc\Windchill_8.0\db\sql).

          7. Copy epcit.dmp to a directory on target server (e.g., D:\ptc\Windchill_8.0\db\sql).

          ?

          Data Import on Source Server

          1. Open Windchil Shell and login to SQL Plus as SYSDBA

          2. Drop user OB80

          drop user ob80 cascade;

          ?

          The user ob80 is dropped, including all the objects (table, index, view, procedure...) belong to ob80. It may take several minutes.

          3. Re-create user OB80

          @create_user


          Enter value for user: ob80
          Enter value for temporary_tablespace: temp
          Enter value for userdata_tablespace: users

          4. Repeat Steps 2, 3, 4 from the Data Export phase

          5. From the directory where you put the epcit.dmp (e.g., D:\ptc\Windchill_8.0\db\sql), execute the following command to import TrueOrders data:

          imp ob80/ob80 file=epcit.dmp log=epcit_imp.log full=y commit=y;


          Please make sure Import terminated successfully without warning.

          6. Data migration completes.



          已有 0 人發表留言,猛擊->>這里<<-參與討論


          JavaEye推薦



          主站蜘蛛池模板: 汉阴县| 精河县| 津南区| 濉溪县| 福安市| 墨江| 乌鲁木齐县| 连山| 长沙县| 昭通市| 桐乡市| 孟津县| 监利县| 萍乡市| 兖州市| 宜黄县| 高青县| 岢岚县| 漾濞| 营山县| 嘉定区| 湄潭县| 黑河市| 罗平县| 抚远县| 扶风县| 广德县| 成都市| 东丽区| 潼南县| 灵寿县| 靖宇县| 上蔡县| 琼结县| 安康市| 商洛市| 绿春县| 漾濞| 普兰县| 蒙自县| 长顺县|