各位大虾:如果用delphi开发前台程序,数据库使用ORAcle,请教如何创建多用户(1000多用户)登录程序?Oracle如何设计用户或组,如何设计用户加密及审计?如何实现前台与后台的交互,哪种方式比较安全?
望各位不吝赐教!万分感激!!!
请告知delphi中应设置控件,oracle应设置什么表.....
自己实在很菜,希望得到你们的帮助....
望各位不吝赐教!万分感激!!!
请告知delphi中应设置控件,oracle应设置什么表.....
自己实在很菜,希望得到你们的帮助....
解决方案 »
- 有人用过inno setup吗
- F1Book16.1使用问题!请高手帮帮忙!
- 如何打印光滑曲线?谢谢!!
- 200分,200分!200分求教高手!关于读取word内容的问题!高手请进,帮忙顶的也给分啦!!!帮忙解决的朋友,我会开贴专门再送100分的!
- 大量的数据用HTTP协议方式传输的问题,请大家说说
- 【求助】怎么用正则表达式求出网页链接?
- 请问在DELPHI中怎样调用存储过程的返回参数?如果是多个返回参数呢?
- 如何实现考试系统中的重考功能
- WINDOWS系统提供的窗口
- 无奈了,dll调用老提示“Access violation at address 00C.. read of address 00000”
- 关于MSIC的一些新手问题.大家别笑我哈...
- 祝各位大虾圣诞快乐!另100分请教个问题个用户权限设置的问题:怎样用程序设置mainmenu1的N30子菜单为灰白或激活状态?
下边是主要的一些程序
unit log;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Mask, StdCtrls, DB, DBTables;type
Tw_log = class(TForm)
Edit1: TEdit;
Label2: TLabel;
Label3: TLabel;
Button1: TButton;
Button2: TButton;
Button3: TButton;
MaskEdit1: TMaskEdit;
Database1: TDatabase;
Table1: TTable;
procedure Button3Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;var
w_log: Tw_log;implementationuses main;{$R *.dfm}procedure Tw_log.Button3Click(Sender: TObject);
beginw_log.hide;
w_main.Enabled:=true;
end;procedure Tw_log.Button2Click(Sender: TObject);
begin
edit1.Text:='';
maskedit1.Text:='';
edit1.SetFocus;
end;procedure Tw_log.Button1Click(Sender: TObject);
begin
try
Database1.Connected:=true;
table1.Filter:='user_name='''+edit1.Text+'''';
table1.Filtered:=true;
table1.Open;
except
application.MessageBox('请与系统管理员联系。','数据库连接错误!',mb_ok);
application.terminate;
end;
if table1.RecordCount=1 then
begin
if table1['user_password']=maskedit1.Text then
begin ////填写权限代码 w_log.Hide;
w_main.enabled:=true;
w_main.Caption:='中基资源管理系统 -用户:'+w_log.Edit1.Text;
w_main.SetFocus;
w_main.N33.Enabled:=true; //显示修改密码窗口
w_main.N2.enabled:=false; //不可重新登录
w_main.statusbar1.Panels[1].Text:='已连接数据库';
w_main.statusbar1.Panels[0].Text:='准备'; end
else
application.MessageBox('请确认您输入的密码','密码不匹配',mb_ok);
end
else
application.MessageBox('请确认用户名是否正确!','无此用户',mb_ok); end;
// if edit1.Text='' then
// begin
//edit1.SetFocus;
//showmessage('请输入您的用户名');
//end
//else
//begin
//query1.Close;
//query1.SQL.Add('select user_id,user_name,user_password,role_id from base_user');
//query1.SQL.Add('where user_name='+edit1.Text);
//query1.SQL.Add('and user_password='''+maskedit1.Text+'''');
//query1.open; //if (query1.RecordCount<>1) or (maskedit1.text<>query1.FieldValues['user_password']) then
//begin
// showmessage('口令不对,请检查。');
// edit1.SetFocus;
// end
// else
// begin
// w_main.enabled:=true; //w_main open
// close; // close w_log
//end;
//end;procedure Tw_log.FormShow(Sender: TObject);
begin
edit1.Text:='guester';
maskedit1.Text:='guest';
end;procedure Tw_log.FormClose(Sender: TObject; var Action: TCloseAction);
begin
w_log.Hide;
w_main.Enabled:=true;
end;end.
希望能得到你的帮助,大恩将铭记在心!
联系:[email protected]