你的dz.ora应该是pfile,如果是oracle9I安装在windows,把ora文件放到pfile文件夹下,比如在D盘某处,然后启动时使用startup pfile='d:\...\dz.ora'的方式找到你指定的文件,启动数据库后,再通过create spfile from pfile 的方式重新生成spfile。
startup pfile='d:\...\dz.ora' 在哪里,在DOS命令窗口吗?create spfile from pfile 方式在那里启动?谢谢
你的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;
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;