Home > Database > Mysql Tutorial > Oracle传输表空间迁移数据库

Oracle传输表空间迁移数据库

WBOY
Release: 2016-06-07 16:47:13
Original
1013 people have browsed it

本文是通过exp/imp方式实现,需要将数据库表空间处于只读模式,对于实时应用的生产数据库,可以采用rman方式进行传输表空间,本文源与目标数据库均为oralce10.2.

本文是通过exp/imp方式实现,需要将数据库表空间处于只读模式,对于实时应用的生产数据库,可以采用rman方式进行传输表空间,本文源与目标数据库均为oralce 10.2.0.5 for linux版本。
执行表空间传输有以下限制条件:    
(1)源数据库和目标数据库必须处于相同的平台,10g以后可以用RMAN命令修改数据文件实现跨平台移动表空间。    
(2)对于源数据库和目标数据库版本不同时,源数据库的版本必须低于目标数据库。    
(3)两边数据库字符集和国家字符集必须一致。    
(4)目标数据库不能存在同名的表空间。

1. 查询oracle支持的平台转换

SQL> col PLATFORM_NAME for a40;  
SQL> select * from v$transportable_platform order by 3;

PLATFORM_ID PLATFORM_NAME                            ENDIAN_FORMAT  
----------- ---------------------------------------- --------------    
          6 AIX-Based Systems (64-bit)               Big    
         18 IBM Power Based Linux                    Big    
          2 Solaris[tm] OE (64-bit)                  Big    
          4 HP-UX IA (64-bit)                        Big    
         16 Apple Mac OS                             Big    
          1 Solaris[tm] OE (32-bit)                  Big    
          9 IBM zSeries Based Linux                  Big    
          3 HP-UX (64-bit)                           Big    
         17 Solaris Operating System (x86)           Little    
         20 Solaris Operating System (x86-64)        Little    
         12 Microsoft Windows x86 64-bit             Little    
         13 Linux x86 64-bit                         Little    
          8 Microsoft Windows IA (64-bit)            Little    
         19 HP IA Open VMS                           Little    
         11 Linux IA (64-bit)                        Little    
          5 HP Tru64 UNIX                            Little    
         10 Linux IA (32-bit)                        Little    
          7 Microsoft Windows IA (32-bit)            Little    
         15 HP Open VMS                              Little

 

2. 创建测试表空间和测试用户、表

SQL> create tablespace tjoa datafile '/u01/app/oracle/oradata/orcl/tjoa.dbf' size 10m autoextend on next 10m;  
SQL> create user abc identified by abc default tablespace TJOA;    
SQL> grant connect,resource to abc;    
SQL> conn abc/abc    
SQL> create table t as select * from all_objects;

 

3. 检查自包含性
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template