首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

请救急小弟我如何把以前数据库下创建的ora 文件加载到现在数据库中? 多谢

2012-04-09 
请救急!我怎么把以前数据库下创建的ora 文件加载到现在数据库中? 谢谢请教一个问题.我系统重做了,新安装了

请救急!我怎么把以前数据库下创建的ora 文件加载到现在数据库中? 谢谢
请教一个问题.
我系统重做了,
新安装了oracle  
我怎么把以前数据库下创建的ora   文件加载到现在数据库中?

请知道的说一下步骤?谢谢    

设以前数据库文件     dz.ora
{当时创建时表空间:dz.ora   用户:dz     }

[解决办法]
你的dz.ora应该是pfile,如果是oracle9I安装在windows,把ora文件放到pfile文件夹下,比如在D盘某处,然后启动时使用startup pfile= 'd:\...\dz.ora '的方式找到你指定的文件,启动数据库后,再通过create spfile from pfile 的方式重新生成spfile。
[解决办法]
你的dz.ora应该不是pfile,是数据文件吧?

用下面类似下面方法试看看?


Moving and Renaming Example
This example moves and renames a datafile associated with the accounting tablespace from 'diska:pay1:dat ' to 'diskb:receive1:dat ':

Take the tablespace offline using an ALTER TABLESPACE statement with the OFFLINE clause:

ALTER TABLESPACE accounting OFFLINE NORMAL;


Copy the file from 'diska:pay1.dat ' to 'diskb:receive1.dat ' using your operating system 's commands.

Rename the datafile using the ALTER TABLESPACE statement with the RENAME DATAFILE clause:

ALTER TABLESPACE accounting
RENAME DATAFILE 'diska:pay1.dbf '
TO 'diskb:receive1.dbf ';


Bring the tablespace back online using an ALTER TABLESPACE statement with the ONLINE clause:

ALTER TABLESPACE accounting ONLINE;



[解决办法]
就把正个库复制过来..
启动服务,启动数据库就可以了

热点排行