想将历史数据专储到光盘中,怎样能方便的挂接到运行系统中?
在oracle中能否将光盘上的data file直接挂入正在运行的数据库中?
我有很多海量的历史数据需要处理,想把它做成多个光盘,按照需要挂入oracle数据库中。
我需要一种最方便的方法,也就是说不要exp/imp,最好是分区/表空间的方式,我只要换盘和online/offline tablespace/datafile就可以了。请高手指教。
在oracle中能否将光盘上的data file直接挂入正在运行的数据库中?
我有很多海量的历史数据需要处理,想把它做成多个光盘,按照需要挂入oracle数据库中。
我需要一种最方便的方法,也就是说不要exp/imp,最好是分区/表空间的方式,我只要换盘和online/offline tablespace/datafile就可以了。请高手指教。
解决方案 »
- 我用Intelligent converters 连接Oracle数据库时一直报错
- 一个或多个工具出现故障,为完成安装,建议(但非必须)成功运行这些工具。
- 这样的oracle sql语句如何来写,高手请进
- like通配符语句使用and检索不出来数据,为什么呢?
- 请问这句update怎么写呀?
- 如何取出oracle中某个表的数据结构,也就是所有列名,并放到一个dataset or datatable中?
- 100分求SQLLoader中infile="d:\[email protected]"@解释成服务名ORA的解决办法。
- sql语句能解决这个问题吗? 欢迎发言!顺祝各位新年愉快!
- Oracle里面有没有分别判断英文字符串和中文字符串长度的函数?
- 关于一个select语句的问题?
- 连接names失败:ORA-12637: 包接收失败
- 出现oracle错误ORA-02085:数据库链接DB_INTERFACE与TIGER.US.ORACLE.COM相连结
想法不错DI 在oracle中能否将光盘上的data file直接挂入正在运行的数据库中
----------------------------------------------------------
光盘只读:应该不行
光盘可读可写:没试过. 海量的历史数据可以选择备份到磁带上啊.
创建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;
我把文件放在光盘上,不用复制到硬盘上也可以吧?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;
At least I am not going to do it .
是alter database rename file 'old_file' to 'new_file' 吧!
将表空间的数据文件COPY到光碟并修改表空间文件的位置后,不放入光碟是不能是表空间ONLINE 的.
回bunnysky(松鼠):
alter database rename file 'old_file' to 'new_file'
与alter tablespace rename datafile 'old_file_name' to 'new_file_name';
是一样的.