随笔分类 -  DB Manage

Oracle Manage、MSSQL Manage、Linux Manage、DB Backup/Restore
摘要:今早,erp兄弟妹妹们说很多表不能查询,经OEM查找,发现bach表空间的bach01.dbf损坏,需要recovery。解决方法:1,要确定你所还原的DB是一直处于Archive模式;2,用OEM确定损失的datafile的号码,比如,我丢失的bach01.dbf的号码是5,如果查不到,也没关系。... 阅读全文
posted @ 2009-07-02 08:50 中国的Amadeus 阅读(197) 评论(0) 推荐(0)
摘要:很多Junior DBA会经常遇到此种问题:在windows下安装第二个Oracle2或是第三个Oracle3,安装完后,发现以前的tns啊,oracle_home啊都默认成最新的那个参数了。造成tns ping不通,sqlplus连接不上。 对于tnsping的问题,解决方法很简单咯:在你最新的o... 阅读全文
posted @ 2009-06-24 16:59 中国的Amadeus 阅读(236) 评论(0) 推荐(0)
摘要:ORA-01092: ORACLE 实例终止。强制断开连接上次打了个10.2.0的补丁,最后忘了升级数据字典了,导致此错误。只要按照正常的升级数据字典的步骤即可解决01092问题。Code highlighting produced by Actipro CodeHighlighter (freew... 阅读全文
posted @ 2009-06-16 11:58 中国的Amadeus 阅读(309) 评论(0) 推荐(0)
摘要:开发人员经常喜欢select ...for update,如遇到关机或是死机的话,表就会被锁住。DBA则经常需要给他们解锁。情况1,如果你有9i的em,直接可以看到lock,kill掉即可。情况2,如果你是10g的em,直接看不到lock,需要以下步骤:1)确认是哪个用户lock的表;2)Code ... 阅读全文
posted @ 2009-06-11 14:10 中国的Amadeus 阅读(284) 评论(0) 推荐(0)
摘要:duplicate前提条件:1,用户名必须统一,如oracle用户2,适用于本机对本机复制例:将DTLBERP复制,命名为dtlerp。考虑到/u02磁盘空间不够,将原DTLBERP数据文件路径改为/u01路径。1,建立dtlerp密码文件:Code highlighting produced by... 阅读全文
posted @ 2009-06-05 11:14 中国的Amadeus 阅读(233) 评论(0) 推荐(0)
摘要:例:将mestest服务器的dtlbwms数据库移动到dtsoradb01服务器中。1、源数据库RMAN备份:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/... 阅读全文
posted @ 2009-05-07 14:08 中国的Amadeus 阅读(279) 评论(0) 推荐(0)
摘要:imp没有恢复package的参数,所以,只能用笨办法:rows=n,只导入表结构和物件。步骤:1,dbca新建一个test数据库;2,新增user,表空间,给user赋予权限3,Code highlighting produced by Actipro CodeHighlighter (freew... 阅读全文
posted @ 2009-05-06 17:00 中国的Amadeus 阅读(243) 评论(0) 推荐(0)
摘要:Windows版:情景:MESDB EM不能使用了,需要rebuild。解决方案:0,事先说明,此操作相当cool~ 因此,如果是online的db,请事先告知user停止操作,否则,DB会卡在那~1,drop the sysman account and mangement objects:Cod... 阅读全文
posted @ 2009-04-08 16:13 中国的Amadeus 阅读(185) 评论(0) 推荐(0)
摘要:1,查出拖延时间很长的sessionCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->selectsid,/*SessionID*/opname,/*操作... 阅读全文
posted @ 2009-04-03 15:46 中国的Amadeus 阅读(155) 评论(0) 推荐(0)
摘要:Steps to enable Mailing from Database1.Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->sqlplus‘/assy... 阅读全文
posted @ 2009-03-31 16:52 中国的Amadeus 阅读(189) 评论(0) 推荐(0)
摘要:安装LOGMINER:1,创建DBMS_LOGMNR包:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->SQL>@$ORACLE_HOME\rdbms\... 阅读全文
posted @ 2009-03-30 15:48 中国的Amadeus 阅读(174) 评论(0) 推荐(0)
摘要:今天很烦人,大早上的,公司MES的好几个Job卡在那了,不能kill,也不能broken,不过最后还是解决了~出现这种问题,restart是肯定的~以下是步骤:0,备份你的job脚本~因为后续要删除job,重建的~用PLSQL Developer.具体方法大家都知道。1,先将queue_proces... 阅读全文
posted @ 2009-03-20 14:34 中国的Amadeus 阅读(175) 评论(0) 推荐(0)
摘要:例:oracle原缺省目录为/home/oralce ,现改为/u01/app/oracle步骤:1,拷贝.bash_profileCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighl... 阅读全文
posted @ 2009-03-05 15:57 中国的Amadeus 阅读(199) 评论(0) 推荐(0)
摘要:解决方法:重建controlfile: 1)删除现在的controlfile 2)nomount DBCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->S... 阅读全文
posted @ 2009-03-05 14:14 中国的Amadeus 阅读(930) 评论(0) 推荐(0)
摘要:问题:SQL> startupORACLE instance started.Total System Global Area 1610612736 bytesFixed Size 779080 bytesVariable Size 535043256 bytesDatabase Buffers 1... 阅读全文
posted @ 2009-03-05 14:09 中国的Amadeus 阅读(499) 评论(0) 推荐(0)
摘要:例:将dtserp数据库更改为dtberp,sid也同时改为dtberp。1,Backup Database 这是必需的~2,数据库启动到mount状态Code highlighting produced by Actipro CodeHighlighter (freeware)http://www... 阅读全文
posted @ 2009-03-02 15:37 中国的Amadeus 阅读(192) 评论(0) 推荐(0)
摘要:实例:将dtserp数据库移到另一台Server target。1,建立相应的文件夹 主要的参数应该包括:*_dmpb_dest、control_files、db_recovery_file_dest、db_create_file_dest等,将这些参数用show parameter查出来,并在ta... 阅读全文
posted @ 2009-03-02 14:03 中国的Amadeus 阅读(145) 评论(0) 推荐(0)
摘要:例:新增DTSVEGAS的访问。gateway服务器:1,在$ORACLE_HOME\tg4msql\admin下新写initdtsvegas.ora:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www... 阅读全文
posted @ 2009-02-24 13:19 中国的Amadeus 阅读(192) 评论(0) 推荐(0)
摘要:配置过程:1,到OTN下载gateway:see www.oracle.com -> database -> free downloadhttp://www.oracle.com/technology/software/products/database/oracle10g/index.html2,... 阅读全文
posted @ 2009-02-24 11:49 中国的Amadeus 阅读(275) 评论(0) 推荐(0)
摘要:1,写一个批处理:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->setORACEL_SID=***C:\oracle\product\10.2.0\d... 阅读全文
posted @ 2009-01-19 11:07 中国的Amadeus 阅读(171) 评论(0) 推荐(0)