在维护数据库过程中,需要把一些年份已久的数据查询出来插入到另外一张表里去,如何去实现?1.没有目标表(这里所谓的目标表就是你要插入数据的那张表)create table 表名(目标表) as select * from 表名(数据源) 条件表达式2.有目标表insert into 表名(目标表) select * from 表名(数据源) 条件表达式成功之后,...【阅读全文】
一个朋友问如何设置Oracle闪回区大小,有什么依据没有。查证官方文档,有如下描述For example, if you intend to setDB_FLASHBACK_RETENTION_TARGET to 24 hours, and if the database generates 20 GB of redo in a day, then a rule of thumb is to allow 20 GB to 30 GB disk space for the flashback logs....【阅读全文】
-- 首先,以超级管理员的身份登录oracle sqlplus sys/bjsxt as sysdba --然后,解除对scott用户的锁 alter user scott account unlock; --那么这个用户名就能使用了。 --(默认全局数据库名orcl) 1、select ename, sal * 12 from emp; --计算年薪 2、select 2*3 from dual; --计算一...【阅读全文】