当操作系统需要升级但是你们的应用不需要的时候,我们需要把一些必要的东西备份以便恢复
1、For root or all user,these items need backup
A>/etc/hosts
B>/etc/profile
C>user/group的分配,主要是数据库用户和应用用户,这样恢复应用的时候什么都不用更改。
2、For db user,these items need backup
A> db software -- 整个目录备份,恢复就很简单。譬如:/opt/oracle/product/10.2.0
B> db data -- 数据文件备份。数据库中的数据不用导入导出这么麻烦。
C> $ORACLE_HOME/dbs ,$ORACLE_HOME/network/admin/listener.ora tnsname.ora
D> db user 的bash 文件。.bash_profile
3、For application user, these items need backup
A> Application software
B> application user 的bash文件,.bash_profile
这些内容备份文件恢复的时候最好保持原来的目录结构。
恢复应用步骤:
1> create the user and assign the group
2> copy the backup file and put on the old folder
3> change the user and right of some folder
4> change the bash file same to old one : /etc/profile,.bash_profile
5> open the db and application.
Note:If login the db , some right error shows. it maybe come from the db user group is not right:
1>"$ORACLE_HOME/rdbms/lib/config.s" or "$ORACLE_HOME/rdbms/lib/config.c".
check the db software user group , if it not exsit, create it and add the db user to it.
阅读(980) | 评论(0) | 转发(0) |