??
采用Qt's Undo Framework实现undo和redo操作。
比如在做一个记事本程序 想要实现一个删除文本的操作,这个操作可以撤销和重现,即可以实现所谓的undo()和redo()操作。
此时只需让删除操作继承至QUndoCommand类,比如叫做DeleteTextCommand,并实现redo和undo这两个虚函数。在删除操作的响应槽函数SlotDeleteText()...
分类:
其他好文 时间:
2014-12-31 18:29:50
阅读次数:
322
system毁坏恢复建议做整个库的冷备(datafile+controlfile+redo log file)(1)shutdowm (2)拷贝文件datafile+controlfile+redo log file(3)startup (5)rm system01.dbf(6)再次打开数据库,报....
分类:
其他好文 时间:
2014-12-30 18:53:44
阅读次数:
198
our database operates in ARCHIVELOGmode. The redo log files are
not multiplexed and one of the online redo logs is missing. The missi
ng redo log sequence, 230, is not archived and it contained inf...
分类:
数据库 时间:
2014-12-26 09:41:12
阅读次数:
236
CKPT进程工作示意图2.CKPT进程工作机制检查点进程被触发的条件为:a>当发生日志组切换时;b> 用户提交了事务时(commit);c> Redo log buffer容量达到总容量的1/3或1M时。d>手动alter system checkpoint 的时候。e> 系统正常关闭时。f> 其他...
分类:
系统相关 时间:
2014-12-25 14:30:16
阅读次数:
228
The current time is 12:00 noon. You want to recover the USERS tablespace
from a failure that occurred at 11:50 a.m. You discover that
the only member of an unarchived redo log group containing inf...
分类:
数据库 时间:
2014-12-25 10:01:47
阅读次数:
264
-------physical standby database:real-time apply 需要配置 standby redo log;启用实时应用, 日志应用服务会直接应用接收的redo 数据,而不需要等待当前standby redo log 归档对于failover 和switchover...
分类:
数据库 时间:
2014-12-22 19:17:38
阅读次数:
160
-------physical standby database:
real-time apply 需要配置 standby redo log;
启用实时应用, 日志应用服务会直接应用接收的redo 数据,而不需要等待当前standby redo log 归档
对于failover 和switchover 的时间会大大的减小,因为在failover or switchover 时st...
分类:
数据库 时间:
2014-12-22 14:29:38
阅读次数:
273
Because of hardware failure, you decided to drop a redo log memb
er from the database.
Which condition should be met to drop a redo log file?
A. The redo log file should belong to an active gro...
分类:
数据库 时间:
2014-12-22 11:09:05
阅读次数:
158
In your database, online redo log files are multiplexed and one of the
members in a group is lost due to media failure?
How would you recover the lost redo log member?
A.import the database fr...
分类:
数据库 时间:
2014-12-21 19:31:51
阅读次数:
253
A redo log file is corrupted while the database is open; as a con
sequence, database operations are stopped because archiving cannot co
ntinue. What would you do to solve the problem?
A. clear th...
分类:
数据库 时间:
2014-12-21 19:30:02
阅读次数:
239