摘要:
一、主从应用模式 1、ADG与普通归档模式 col name for a50;set lines 300;-- SWITCHOVER_STATUS:SESSIONS ACTIVEselect SWITCHOVER_STATUS,NAME,PROTECTION_MODE,OPEN_MODE,LOG_M 阅读全文
摘要:
UNDO段头块损坏测试与修复,本次案例通过BBED工具模拟UNDO段头坏块,并在没有备份情况下启动数据库; 1 查看UNDO段头块位置 select header_file, header_block from dba_segments where segment_name like '_SYSSM 阅读全文
摘要:
1、numtodsinterval就是用来给时间类型加上n 天,n时, n分,或者n秒 alter table t set interval numtodsinterval(1,'day')); alter table t store in (tablespace1,tablespace2); 2、 阅读全文
摘要:
正在执行的存储过程 select owner,name from v$db_object_cache where type like '%PROCE%' and locks >0 and pins >0; 查找正在执行的存储过程的sid select b.sid,b.SERIAL#,a.OBJECT 阅读全文
摘要:
数据库的归档, 是为了更好的保证数据库的数据安全不可或缺的功能, 无论是什么数据库都应开启归档模式! 检查当前数据库情况 检查数据库是否为归档模式 postgres=# \cYou are now connected to database "postgres" as user "postgres" 阅读全文