Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 12th, 2003, 08:54 PM
English Guy English Guy is offline
Senior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Boston MA
Posts: 100 English Guy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 8 sec
Reputation Power: 0
Viewing Oracle tables from a remote computer

I am trying to view information in an Oracle database using a perl script, but it is not working. I was trying to install DBD::Oracle thinking that was the problem, but now I am not so sure. (another thread on the errors in the perl forum.)
Can anyone tell me what modules you need to view Oracle tables? I wouldn't think i would need the complete Oracle installed? I have DBI installed, & am able to view MySQL tables fine.

I am also using the same query code as SQL, I am assuming it should work the same?
Code:
#!/usr/bin/perl -w

use CGI ':standard';
use DBI;

my $dbh = DBI->connect('DBI:Oracle:xxx.xxx.xxx.xxx', '$user', '$pass');

        $sth = $dbh->prepare("SELECT * FROM $table");

        $sth->execute();

Reply With Quote
  #2  
Old July 13th, 2003, 11:07 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
You need the DBI and you will need at least the Oracle client files since the the perl will be using the OCI. If you were using Java you could use the thin and would only need the classes.zip file.

Reply With Quote
  #3  
Old July 14th, 2003, 04:31 AM
English Guy English Guy is offline
Senior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Boston MA
Posts: 100 English Guy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 8 sec
Reputation Power: 0
Thanks! What are the oracle client files?

Reply With Quote
  #4  
Old July 15th, 2003, 02:50 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
You will need to install the Oracle network libraries. These can be obtained from
http://otn.oracle.com/software/content.html

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Viewing Oracle tables from a remote computer


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway