exp备份了数据将来用imp导入就可以啊

解决方案 »

  1.   

    http://cjolforajang.nease.net/backandrecover.html
      

  2.   

    大致的思路:
    1.从源端exp分用户导出;
    2.将*.dmp文件拷贝至中间机(因拷完后立即删除linix机中所有信息风险太大,建议用中间机测试);
    3.在中间机中:
      a.建立表空间;
      b.建立回滚段;
      c.创建用户;
      d.授权;
    4.在中间机中imp。
    5.对中间机进行测试,如完好后,重装遭破坏机中的操作系统,进行3,4处理即可。
      

  3.   

    ckc(火) ,BlueskyWide(谈趣者) 
    exp已经无法正常使用,因此不能使用EXP到 备份。jiezhi(浪子),asdf008(棒棒糖) 
    我想应该是使用冷备份,我把整个oradata目录都备了出来。应该怎样恢复,直接拷到安装好的目录
    下就可以么?
    jiezhi(浪子)你给的文章也没有提到冷备份的恢复。
      

  4.   

    我觉得你这个问题其实很简单的
    你用 root登陆,可以  su - oracle切换到oracle用户的
    再启动ORACLE
    实在不行新建一个用户
    useradd myoracle
    passwd myoracle test123
    然后把原来/home/oracle/.bash_profile复制一份到/home/myoracle下面
    然后用chown和 chgrp把oracle的安装目录以及所有相关目录的拥有者和组改为myoracle
    试试
      

  5.   

    ATCG(ATCG) :我已经说过,无法用其他任何用户登陆,包括新建的用户。
    使用Su切换用户也不可以,说找不到用户ID.我想应该使用冷备份,直接使用已有的数据库文件进行恢复。应该怎样进行恢复。我一恢复就出错。
      

  6.   

    那你把ORACLE的相关目录的拥有者和组都改成root,然后更改root的环境变量,再看看能不能启动数据库
      

  7.   

    你把oradata下面的数据文件和控制文件都复制出来,不知道的话全弄出来,再把Oracle的初始化文件复制出来,如果新机器上的路径什么的和原来一模一样就不用改,反之修改路径,然后用这个初始化文件启动数据库
      

  8.   

    asdf008(棒棒糖) :
    初始化文件我到没考,我测试一下。
      

  9.   

    修改pfile\init.ora文件的
    control_files参数中设定的路径
      

  10.   

    你是怎么恢复的呢?
    冷备份恢复还是逻辑备份恢复,
    看情况你应该是冷备份恢复了,修改控制文件的路径可以在./pfile里的INITSID.ORA
    文件里修改,实在不行,你可以EXP备份,再建立一个新用户,IMP进去看看是否SELECT
    表时还是有问题。如果EXP没有问题的话,IMP也不应该有问题,如果还是报控制文件出错
    那是环境参数没有找到,看看/home/oracle/.profile有什么变化,还有看INITSID.ORA
    文件,看看还有什么问题,在提出来大家一起探讨。
      

  11.   

    我已经把路径和原数据库设成一样。
    冷备份后恢复,把oradata目录数据全部拷贝。
    启动监听正常
    使用Sqlpluse 连接数据库正常
    在sql>startup
    出现如下错误:
    ORA-00221 :Error on write to controlfile
    ORA-00206 :Error in writing (block 1 #block 1) of controlfile
    ORA-00202 : Controlfile :/datadir/oracle/oradata/guoshui/control01.ctl
    ORA-27072 : skgfdisp:I/O error
    Linux Error :Badfile descriptor
    Additionl information
      

  12.   

    ORA-00221 error on write to control file Cause: An error occurred when writing to one or more of the control files. 
    Action: See accompanying messages.ORA-00206 error in writing control file name block num,  blocks num Cause: A disk write-failure occurred while attempting to write to the specified control file. The block location of the failure is given. 
    Action: Check that the disk is online. If it is not, bring it online and shut down and restart Oracle. If the disk is online, then look for operating system reasons for Oracle's inability to write to the disk or control file. See the Oracle7 Server Administrator's Guide for information on recovering from the loss of a control file.See also your operating system-specific Oracle documentation.ORA-00202 control file: name Cause: This message reports the name of the file involved in other messages. 
    Action: See the associated messages for a description of the problem. 
      

  13.   

    300fen 
    建议你做一台一抹一样的机器,包括文件系统和数据库系统以及数据库文件的物理位置,把原来服务器的文件覆盖过去就可以了
      

  14.   

    "在sql>startup
    出现如下错误:"
    这里一般是不这么用的。conn system/manager@your_host_string;
    select count(*) from cat;
    有数据吗?若有,再连接其它用户,
    如你的用户下都用数据,则数据库完全常了。
      

  15.   

    你们的数据库跑在linux上的?呵呵你的这种情况,保留四种文件即可
    参数文件
    控制文件
    联机日志
    数据文件不知道你们平时的备份与安全是怎么做的?
    在root下也能启动数据库的啊
    export ORACLE_SID=sid
    export ORACLE_HOME=ur_oracle_home
    $ORACLE_HOME\bin\svrmgrl
    startup
      

  16.   

    BlueskyWide(谈趣者) :
    我已经使用conn internal/oracle@dehui;
    连接,找不到任何表。
    我一直都启动startup的。penitent(只取一瓢) :
    参数文件
    控制文件
    联机日志
    数据文件
    伯已经把所有的数据都备出来了就是无法恢复。root
    下也无法恢复。
      

  17.   

    哈哈
    项羽兄好久不见了!
    你好少来啊
    也好少去BCB
    听说你去当公务员了?