想将历史数据专储到光盘中,怎样能方便的挂接到运行系统中?
在oracle中能否将光盘上的data file直接挂入正在运行的数据库中?
我有很多海量的历史数据需要处理,想把它做成多个光盘,按照需要挂入oracle数据库中。
我需要一种最方便的方法,也就是说不要exp/imp,最好是分区/表空间的方式,我只要换盘和online/offline tablespace/datafile就可以了。请高手指教。

解决方案 »

  1.   


     想法不错DI 在oracle中能否将光盘上的data file直接挂入正在运行的数据库中
     ----------------------------------------------------------
     光盘只读:应该不行
     光盘可读可写:没试过.  海量的历史数据可以选择备份到磁带上啊.
      

  2.   

    数据文件直接放入系统,它也不认啊除非你有全部的控制、数据、redo、pfile……那不就是冷备份了?
      

  3.   

    应该是可以的:
    创建READONLY tablespace 
    alter tablepace readonly_tablespace_name offline;
    copy table datafile to the disc
    alter tablespace rename datafile 'old_file_name' to 'new_file_name';
    alter tablepace readonly_tablespace_name online; 
      

  4.   

    tsj68(tsj):
     
      我把文件放在光盘上,不用复制到硬盘上也可以吧?1 alter tablepace readonly_tablespace_name offline;
    2 换盘
    3 alter tablespace rename datafile 'old_file_name' to 'new_file_name';
    4 alter tablepace readonly_tablespace_name online; 
      

  5.   

    可以,你ONLINE的只读的TABLESPACE,所以对这样的数据文件,没有写的操作.
      

  6.   

    GOD !
    At least I am not going to do it .
      

  7.   

    to: tsj68(tsj)  &  tsj68(tsj) 
    是alter database rename file 'old_file' to 'new_file' 吧!
      

  8.   

    回godblessu(上帝保佑):
    将表空间的数据文件COPY到光碟并修改表空间文件的位置后,不放入光碟是不能是表空间ONLINE 的.
    回bunnysky(松鼠):
    alter database rename file 'old_file' to 'new_file' 
    与alter tablespace rename datafile 'old_file_name' to 'new_file_name';
    是一样的.