Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1038574
  • 博文数量: 239
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 3618
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-12 13:17
文章分类

全部博文(239)

文章存档

2021年(1)

2016年(1)

2015年(30)

2014年(91)

2013年(116)

发布时间:2014-01-30 16:50:45

闪回版本查询SQL> select salary from hr.employees where employee_id = 200;    SALARY----------      4400SQL> update hr.employees set salary = 11111 where employee_id = 200;1 row updated.SQL> commit;Commit complete.SQL> update hr.employees set salary = 22222.........【阅读全文】

阅读(627) | 评论(0) | 转发(0)

发布时间:2014-01-30 15:37:33

1.闪回时间点查询1.查询hr.employess在2014年1月30号下午1点40分37秒所有的行SQL> select * from hr.employees as of timestamp to_timestamp('2014-01-30 13:40:37','YYYY-MM-DD HH24:MI:SS');2.查询100号员工在2014年1月30号下午1点40分37年时候的薪水SQL> select salary from hr.employees as of timestamp to_ti.........【阅读全文】

阅读(565) | 评论(0) | 转发(0)

发布时间:2014-01-30 14:30:43

在做闪回实验时候遇到一个问题,如下,SQL> select * from hr.employees as of timestamp to_timestamp('2012-09-10 18:40:37','YYYY-MM-DD HH24:MI:SS');select * from hr.employees as of timestamp to_timestamp('2011-10-10 18:40:37','YYYY-MM-DD HH24:MI:SS')              &n.........【阅读全文】

阅读(5853) | 评论(0) | 转发(0)

发布时间:2014-01-30 13:10:20

(1)初始化参数undo_retention[oracle@oracle11g ~]$ sqlplus "/as sysdba"SQL*Plus: Release 11.2.0.3.0 Production on Thu Jan 30 11:58:55 2014Copyright (c) 1982, 2011, Oracle.  All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith the .........【阅读全文】

阅读(740) | 评论(0) | 转发(0)

发布时间:2014-01-30 11:47:35

如果装完数据库没有该用户,你可以用unistall重新把他装上去的。程序运行执行dbca默认情况下与Scott用户一样是未被激活的。以dba身份登录为hr用户解锁.SQL> alter user hr account unlock;User altered.SQL> alter user hr identified by wwwwww;User altered.SQL> quitDisconnected from Oracle Database 11g E.........【阅读全文】

阅读(1046) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册