DB command


DB command ===================

sqlplus / as sysdba

lsnrctl status

export ORACLE_SID=ngn02

/opt/oracle/product/10.2.0/bin/exp ngn/ngn buffer=4096000 file=/u03/backup/exp_ngn02_`date +%Y%m%d%H%M%S`.dmp

imp ngn3/ngn3 buffer=4096000 fromuser=ngn touser=ngn3 file=/u03/backup/exp_ngn02_20080110150000.dmp

imp ngn09/ngn09 buffer=4096000 fromuser=ngn01 touser=ngn09 file=/u03/backup/ngn2_2_ngn01.dmp

imp it01/it01 buffer=4096000 fromuser=ngn22 touser=it01 file=/u03/backup/ngn2_2_r04_ngn22.dmp


PURGE RECYCLEBIN;
begin
  dbms_aqadm.drop_queue_table(queue_table => 'que_ev_otsd_lnk_rslt', force => true);
end;

  # cd /opt/bea/user_projects/domains/ngn_domain/bin/

  # nohup ./startWebLogic.sh &
  # ps ?exf | grep java
  # kill -9 psid


/opt/app/weblogic/eqm/user_projects/domains/dev01/release/cmm/logs

oracle>crontab -e

root#/sbin/init.d/cron stop
root#/sbin/init.d/cron start

imp ngn24/ngn24 buffer=4096000 fromuser=ngn23 touser=ngn24 file=/u03/backup/exp_2_2_ngn23_20080928000207.dmp
ngn2_3
imp it01/it01 buffer=4096000 fromuser=ngn24 touser=it01 file=/u03/backup/exp_2_2_ngn24_20081203183749.dmp

imp it02/it02 buffer=4096000 fromuser=ngn22 touser=it02 file=/u03/backup/exp_2_2_ngn22_20081118120000.dmp

DB backup:

ngnap01: /var/dbback

你可能感兴趣的:(oracle,weblogic,CMM)