--建立数据库表空间
create tablespace abc
logging
datafile 'F:\oracle\db\orcl\DATAFILE\ABC.ORA' size 300M extent
management local segment space management auto;
--建立数据库用户
create user abc identified by abc default tablespace abc temporary tablespace temp;
grant connect,resource,dba to abc;
--用abc用户连接
connect abc/abc@orcl;
查询特定时间的数据,只要表没有truncate就能查询到值。
select * from eaa1 as of timestamp to_timestamp('2011-04-12 17:00','yyyy-mm-dd hh24:mi:ss')