Delphi5企业版使用BDE访问Oracle方法
系统环境:1、操作系统:Windows 2000 Server
2、数据库:Oracle 8i R2 (8.1.6) for NT 企业版
3、开发工具:Delphi 5 企业版
连接方法:
一、安装Oracle 8i R2 (8.1.6) for NT 企业版
使用典型安装,安装目录为D:\Oracle;
二、安装Delphi 5 企业版
把Delphi 5光盘放入光驱,使用典型安装,
安装目录为C:\Program Files\Borland\Delphi5;
三、生成Oracle实验记录
连入SQL*Plus,以system/manager用户登录
SQL> conn system/manager
创建新的用户:如user1/pass1,赋予connect,resource权限。
SQL> grant connect,resource to user1 identified by pass1;
SQL> conn user1/pass1
SQL> create table test(a number,b char(19));
SQL> insert into test values(1,to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'));
SQL> insert into test values(2,to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'));
SQL> insert into test values(3,to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'));
SQL> insert into test values(4,to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'));
SQL> insert into test values(5,to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'));
SQL> commit;