首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我们可以将oracle数据库10 gr2移植到跨平台吗?

我们可以将oracle数据库10 gr2移植到跨平台吗?
EN

Database Administration用户
提问于 2014-12-19 16:24:07
回答 1查看 1.3K关注 0票数 1

我想知道我们能否用oracle数据库10 gR2 (10.2.0.3.0)将基于Linux的oracle数据库10 gR2 (10.2.0.1.0)迁移到windows server 2003。我看到了与数据库迁移相关的文档,在这些文档中,我不了解兼容性部分。在迁移中,主机和目标数据库版本和修补程序级别都应该是相同的,这一点很重要。请帮帮我。

这是当我运行transport.sql将我的数据库从Linux迁移到Windows时得到的输出

代码语言:javascript
复制
E:\new\test>set ORACLE_SID=newdb
E:\new\test>sqlplus / as sysdba

SQL*Plus: Release 10.2.0.3.0 - Production on Fri Dec 19 20:49:08 2014

Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.

Connected to an idle instance.

SQL> @transport.sql
ORACLE instance started.

Total System Global Area  452984832 bytes
Fixed Size                  1291120 bytes
Variable Size             150998160 bytes
Database Buffers          293601280 bytes
Redo Buffers                7094272 bytes

Control file created.

ALTER DATABASE OPEN RESETLOGS
*
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced


ERROR:
ORA-03114: not connected to ORACLE


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Your database has been created successfully!
* There are many things to think about for the new database. Here
* is a checklist to help you stay on track:
* 1. You may want to redefine the location of the directory objects.
* 2. You may want to change the internal database identifier (DBID)
*    or the global database name for this database. Use the
*    NEWDBID Utility (nid). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SQL>
SQL> WHENEVER SQLERROR EXIT;
SQL>
SQL> DOC
DOC>#######################################################################
DOC>#######################################################################
DOC>   The following statement will cause an "ORA-01722: invalid number"
DOC>   error if there the database was not opened in UPGRADE mode
DOC>
DOC>   If you encounter this error, execute "SHUTDOWN", "STARTUP UPGRADE" and
DOC>   re-execute utlirp.sql
DOC>#######################################################################
DOC>#######################################################################
DOC>#
SQL> SELECT TO_NUMBER('MUST_BE_OPEN_UPGRADE') FROM v$instance
2  WHERE status != 'OPEN MIGRATE';
ERROR:
ORA-03114: not connected to ORACLE


Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Pr
oduction With the Partitioning, OLAP and Data Mining options
EN

回答 1

Database Administration用户

回答已采纳

发布于 2014-12-23 09:18:05

要回答您的问题,如果您可以将linux数据库迁移到windows平台上的更高级oracle版本:是的,您可以。

有几件事要记住..。

Linux和windows使用小endian,unix使用大endian --基本上它依赖于CPU,而不是操作系统。

如果希望在linux服务器仍然有效的情况下最小化停机时间并恢复windows服务器上的数据库,则必须将linux数据库中的archivelogs应用到windows数据库中,直到进行切换为止。基本上,这应该是可行的,但我在做这件事时遇到了一些错误。因此,我不推荐这个选项,至少不要用10g或11g (从未在12c中尝试过)。Oracle和Linux11gR2正式支持DataGuard,但正如我所说的,存在一些bug。5次尝试中有3次失败。

我个人不喜欢导出-导入迁移,因为在无效对象、字符集转换、丢失数据、缺少公共同义词等方面总是有一些问题。

->我建议采取以下行动计划:

  1. 关闭linux数据库
  2. 启动装入linux数据库
  3. 创建rman备份
  4. 在windows上还原数据库
  5. alter database open resetlogs upgrade打开数据库
  6. 运行catupgrd.sql
  7. 完成升级后的任务
票数 1
EN
页面原文内容由Database Administration提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://dba.stackexchange.com/questions/86627

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档