记录和备份用户的所有增删改操作

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
-- 用于演示FLOG系统如何使用的示例数据
-- Code by www.ultragis.com
 
--connect FLOG/FLOG
-- 创建业务用户
insert into FLOG.LOG_USER(USERNAME, PASSWORD) values ('DT', 'DT');
--connect WS/WS
 
set serveroutput on
 
var v_accredit NUMBER;
 
-- 业务用户登录
begin
    :v_accredit := 0;
    LOGON('DT','DT',:v_accredit);
    if (:v_accredit = 0) then
        dbms_output.put_line('登录失败!');
    else
        dbms_output.put_line('登录成功!');
    end if;
    exception
    when others then
        dbms_output.put_line(to_char(SQLCODE)||':'||SQLERRM);
end;
/
commit;
 
select :v_accredit from dual;
 
-- 登录成功后可进行Insert,Update和Delete操作,
-- 如果登录失败,则只能进行Select操作。