四 数据库环境为Oracle9i。已知表TRUNCATE_PLAN定义如下:
create table TRUNCATE_PLAN
(
  PARAM NVARCHAR2(50) not null,
  VALUE NUMBER(10) not null
);
alter table TRUNCATE_PLAN
  add constraint PK_TRUNC_PLAN primary key (PARAM)
  using index;
另有序列定义如下:
create sequence BUFFERDATA_SEQ
minvalue 1
maxvalue 9999999
start with 1
increment by 1
nocache
cycle;
请写一个PRO*C程序,每隔一小时,将数据库当前日期时间,以及序列BUFFERDATA_SEQ的当前值,存入表TRUNCATE_PLAN。假设数据库连接串为user1/password1@db1。