利用ODBC作为数据源连接Oracle数据库的问题。。。

时间:2022-10-22 21:52:35
我的操作系统是Windows98,用的是PB6.5,本机已经安装了Oracle的客户端并经测试能够成功连接数据库,但在PB中利用ODBC作为数据源连接Oracle数据库时,出错提示:“Catalog tables could not be created and are not available for use.”谁能告诉我这是为什么???

7 个解决方案

#1


你先用缺省用户连接。就是SYSTEM!

#2


你用你创建的用户上去。干吗要用odbc连接oracle?

#3


这样其实也没什么大不了的,只是不能通过PB进行表操作,其他的功能都能完成
为什么不使用专用接口呢?

#4


你用mirsoft的ODBC驱动试一下

#5


我试过用“Microsoft ODBC for Oracle”和“Oracle ODBC Driver”做ODBC的驱动程序,结果在PB6.5中进行连接时都出现“Catalog tables could not be created and are not available for use”的提示,按照 alwaystar(恒星) 的说法,确实是连上去了,但我需要的是在我的PB应用程序中进行表操作啊。 
我又试着给PB6打了补丁,打了补丁后,在“DB Profiles”中多了有“OR8 Oracle 8.0”的专用接口,但在企图New一个Profiles时又出现错误提示:“Unable to load the requested Powersoft database interface. Please make sure both the interface and client software are properly installed.”而我认为我的Oracle客户端是已经正确安装的,因为我都可以用Oracle的SQL Plus进行SQL操作了。

#6


在AUTOEXEC.BAT中加上path=c:\ora95(你自己的安装目录)
一般安装oracle时都会自动加上,但这条语句太长就会无效,把不重要路径去掉,

#7


这个是asa的,odbc配置我想可能可以作为参考。
有数据库的机器作为服务器
//服务器端
userid:dba
password:sql
database name:c:\serverdatabase\myserver.db
//客户端
[odbc]
data source name:myserver
[login]
user id:dba
password:sql
[database]
server name:myserver
[network]
tcp/ip 打勾
spx 打勾
netbios 打勾
shared memory 打勾
//配置db profile
profile name:myserver
datasource:myserver
userid:dba
password:sql
//服务器端启动数据库
作一个批处理
C:\Program files\Sybase\SQLAnYwhere 7\win32\dbsrv7.exe -c 100M,0 -n myserver myserver.db//把这个改成你的数据库驱动,数据库

#1


你先用缺省用户连接。就是SYSTEM!

#2


你用你创建的用户上去。干吗要用odbc连接oracle?

#3


这样其实也没什么大不了的,只是不能通过PB进行表操作,其他的功能都能完成
为什么不使用专用接口呢?

#4


你用mirsoft的ODBC驱动试一下

#5


我试过用“Microsoft ODBC for Oracle”和“Oracle ODBC Driver”做ODBC的驱动程序,结果在PB6.5中进行连接时都出现“Catalog tables could not be created and are not available for use”的提示,按照 alwaystar(恒星) 的说法,确实是连上去了,但我需要的是在我的PB应用程序中进行表操作啊。 
我又试着给PB6打了补丁,打了补丁后,在“DB Profiles”中多了有“OR8 Oracle 8.0”的专用接口,但在企图New一个Profiles时又出现错误提示:“Unable to load the requested Powersoft database interface. Please make sure both the interface and client software are properly installed.”而我认为我的Oracle客户端是已经正确安装的,因为我都可以用Oracle的SQL Plus进行SQL操作了。

#6


在AUTOEXEC.BAT中加上path=c:\ora95(你自己的安装目录)
一般安装oracle时都会自动加上,但这条语句太长就会无效,把不重要路径去掉,

#7


这个是asa的,odbc配置我想可能可以作为参考。
有数据库的机器作为服务器
//服务器端
userid:dba
password:sql
database name:c:\serverdatabase\myserver.db
//客户端
[odbc]
data source name:myserver
[login]
user id:dba
password:sql
[database]
server name:myserver
[network]
tcp/ip 打勾
spx 打勾
netbios 打勾
shared memory 打勾
//配置db profile
profile name:myserver
datasource:myserver
userid:dba
password:sql
//服务器端启动数据库
作一个批处理
C:\Program files\Sybase\SQLAnYwhere 7\win32\dbsrv7.exe -c 100M,0 -n myserver myserver.db//把这个改成你的数据库驱动,数据库