分类:
2007-12-27 10:35:04
红色代表这些程序都在一个目录
tar cvfz www0727.tar.gz (0727代表当天你打包备份的日期)
注意:所有打包备份的程序都需要加上当天日期
----------------------------------------------------------------------------------------------------------------------
/www/sms/cmpp3.0platform/data/gd_cm_data/mt/problem
/www/sms/cmpp3.0platform/data/gd_cm_data/stat/problem
/www/sms/cmpp3.0platform/data/unify_cm_data/mt/problem
/home/sms/switchcenter_test/log/smsoin.log
/www/sms/cmpp3.0platform/log目录下的unifycmsync.log*目录
包月同步信息备份
/usr/local/tomcat5/webapps/SmsMisc_platform/WEB-INF/log
----------------------------------------------------------------------------------------------------------------------
35机器Wap程序更新目录
/www/webroot/wap/wap/ring
/www/webroot/wap/wap/text
/www/webroot/wap/wap/pic
/www/webroot/wap/wap/video
627 tar cvfz ring0726.tar.gz ./ring/
628 tar cvfz text0726.tar.gz ./text/
629 tar cvfz pic0726.tar.gz ./pic/
630 tar cvfz video0726.tar.gz ./video/
----------------------------------------------------------------------------------------------------------------------
36高教服务器需备份的日子目录
/www/sms/switchcenter/log/smsoin.log
包月定制接口目录
/usr/local/resin_pv/resin-
全网移动
/www/sms/newcmpp3.0platform/data/qw_cm_data_normal/mt/problem
/www/sms/newcmpp3.0platform/data/qw_cm_data_normal/stat/problem
/www/sms/switchcenter/log/smsoin.log
广东移动短信
/www/sms/newcmpp3.0platform/data/gd_cm_data/mt/problem
/www/sms/newcmpp3.0platform/data/gd_cm_datal/stat/problem
天津移动短信
/www/sms/newcmpp3.0platform/data/tj_cm_data/mt/problem
/www/sms/newcmpp3.0platform/data/tj_cm_data/stat/problem
----------------------------------------------------------------------------------------------------------------------
38机器sms备份
广西移动
/www/sms/newcmpp3.0platform/data/gx_cm_data/mt/problem
/www/sms/newcmpp3.0platform/data/gx_cm_data/stat/problem
----------------------------------------------------------------------------------------------------------------------
41机器sms备份
/www/sms/smsplatform/data/qw_sm_data/mt/problem
/www/sms/smsplatform/data/qw_sm_dataa/stat/problem
/www/sms/cmpp3.0platform/
/www/sms/sgipplatform
/www/sms/cngpplatform
/home/business
/home/switchcenter
/home/switchcenter_test
把每台机器上压缩好的tar包,都放到服务器上,放在/Data/back目录下,
有几个目录名字分别是以服务器IP地址最后数字命名。例:121bak就是这台服务器,把这台服务器所有备份东西都放在这个目录下面。
Oracle数据库的备份,目前我们有两台数据库要每天备份,分别是和这两台oracle数据库备份,用户的备份,每天都要备份,每个月做一次表分区备份。我用的是exp/imp导入导出的备份。我在服务器做了一个批处理,添加了计划任务,让他每天在凌晨1点执行任务。每天都要登陆18服务器上修改一下数据库的备份文件名字。备份出来是EXPDAT.DMP名字,修改一下文件名,以昨天日期为标准。例:1123EXPDAT.DMP,其实是11月24号备份出来。所以把文件名修改成1123EXPDAT.DMP 在18服务器上D盘根目录下分别有37备份和9备份这两个目录。
-----------------------------------------------------------------------------------------------------------------------
找个方便的时间,重新启动一下数据库:
登陆本机用oracle用户,执行下面的命令
[oracle@localhost ~]$ sqlplus " / as sysdba"
SQL*Plus: Release
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database
With the Partitioning, OLAP and Data Mining options
SQL> shutdown abort
把数据库停止,然后在去cd $ORACLEHOME/bin目录下执行下面命令
[oracle@localhost bin]$ ./lsnrctl stop
把TNS服务停止
然后在重新启动数据库
[oracle@localhost ~]$ sqlplus " / as sysdba"
SQL*Plus: Release
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database
With the Partitioning, OLAP and Data Mining options
SQL> startup
然后在去$ORACLEHOME/bin目录下执行下面命令执行
[oracle@localhost bin]$ ./lsnrctl start
然后在去查看一下进程用 ps –ef
oracle 17235 1 0 Jul14 ? 00:00:21 ora_pmon_orcl
oracle 17237 1 0 Jul14 ? 00:00:20 ora_psp0_orcl
oracle 17239 1 0 Jul14 ? 00:00:04 ora_mman_orcl
oracle 17241 1 0 Jul14 ? 00:01:40 ora_dbw0_orcl
oracle 17243 1 0 Jul14 ? 00:03:58 ora_lgwr_orcl
oracle 17245 1 0 Jul14 ? 00:02:02 ora_ckpt_orcl
oracle 17247 1 0 Jul14 ? 00:01:48 ora_smon_orcl
oracle 17249 1 0 Jul14 ? 00:00:07 ora_reco_orcl
oracle 17251 1 0 Jul14 ? 00:00:41 ora_cjq0_orcl
oracle 17253 1 0 Jul14 ? 00:02:37 ora_mmon_orcl
oracle 17255 1 0 Jul14 ? 00:01:01 ora_mmnl_orcl
oracle 17257 1 0 Jul14 ? 00:00:00 ora_d000_orcl
oracle 17259 1 0 Jul14 ? 00:00:00 ora_s000_orcl
oracle 17277 1 0 Jul14 ? 00:00:00 ora_qmnc_orcl
oracle 17285 1 0 Jul14 ? 00:00:18 ora_q000_orcl
oracle 17288 1 0 Jul14 ? 00:06:55 /Data/oracle/product/
出现以上服务证明oracle数据库启动正常