简体   繁体   English

Drupal 7中的Oracle数据库连接

[英]Oracle database connection in drupal 7

I want to retrieve a list of products from an external oracle database and show it in my drupal site as a catalog. 我想从外部oracle数据库中检索产品列表,并将其作为目录显示在我的drupal站点中。 But the problem is that, how can I make the connection to oracle db from a drupal 7 site. 但是问题是,如何从drupal 7站点建立到oracle db的连接。 Please any suggestion on how to perform this operation is highly welcome. 请对如何执行此操作提出任何建议。 Thanks! 谢谢!

Connecting to an Oracle database from PHP is fairly easy: http://www.oracle.com/technetwork/topics/php/whatsnew/index.html 从PHP连接到Oracle数据库非常容易: http : //www.oracle.com/technetwork/topics/php/whatsnew/index.html

So the question is what you want to do after you connect. 所以问题是连接后您想做什么。

The simplest would be to install the PHP filter module, and insert PHP code into a node on your site. 最简单的方法是安装PHP过滤器模块,然后将PHP代码插入网站上的节点中。

A more flexible solution would be to write a little module of your own to run your Oracle queries and take the appropriate action. 更为灵活的解决方案是编写您自己的一个小模块来运行Oracle查询并采取适当的措施。 There would be a bit more learning required, but it would provide a more flexible solution in the long run. 需要更多的学习,但是从长远来看,它将提供更灵活的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM