请教一个问题.
我系统重做了,
新安装了oracle 
我怎么把以前数据库下创建的ora 文件加载到现在数据库中?请知道的说一下步骤?谢谢  设以前数据库文件  dz.ora
{当时创建时表空间:dz.ora 用户:dz  }

解决方案 »

  1.   

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

  2.   

    startup pfile='d:\...\dz.ora'  在哪里,在DOS命令窗口吗?create spfile from pfile  方式在那里启动?谢谢
      

  3.   

    你的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; 
      

  4.   

    他要把以前数据库下创建的ora 文件加载到现在数据库中。并不想把现在库中所有的文件都覆盖掉吧?