- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Connect Perl to ORACLE Database
Operating System - HP-UX
1821656
Members
3266
Online
109634
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2003 06:00 AM
тАО07-03-2003 06:00 AM
Hi All,
I have some doubts:
- I want to connect to a database called tpn1
using the shell script I do this:
ORACLE_HOME=/oracle
ORACLE_SID=SMP
sqlplus tpn1/tpn1 << EOF
set pages 0;
set colsep ";";
set linesize 0;
col cus_nbr for a10;
col acc_nbr justify left for 999999;
col use_hour for 99:99:99;
col max_per for 99;
set feed off;
spool card_used.txt;
select acc_nbr,curcred,exp_dat3,max_cred,max_per,use_date,use_hour,cli_call,
cus_nbr from card where cus_nbr is not null;
spool off
exit;
EOF
- For Perl I know that I need to use DBI, but is a little confused to me how to implement it.
- After I want to use the fields that I got from the select command and compare a with a parameter is newer than the sysdate ( How to get the sysdate ? ), if its is so I change the state.
If you never try, never will work
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2003 08:51 AM
тАО07-03-2003 08:51 AM
Re: Connect Perl to ORACLE Database
Anybody have an idea ?
If you never try, never will work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2003 12:41 AM
тАО07-04-2003 12:41 AM
Re: Connect Perl to ORACLE Database
Hi Ricardo
Honestly i do not understand exactly what you want to do. But maybe it is somehow a hint .
Why not using SYSDATE in oracle ?
If you just need the day an easy example can be :
select SYSDATE from dual;
or what you can try also is : search the web
maybe you find a solution that just needs minor adaptions to what yopu want to do
Honestly i do not understand exactly what you want to do. But maybe it is somehow a hint .
Why not using SYSDATE in oracle ?
If you just need the day an easy example can be :
select SYSDATE from dual;
or what you can try also is : search the web
maybe you find a solution that just needs minor adaptions to what yopu want to do
keep it simple
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2003 05:15 AM
тАО07-07-2003 05:15 AM
Solution
Ricardo,
You will need to install DBI and DBD. DBD is specific to the database type, in your case Oracle.
There is a lot of information on line about using DBD. There are also "Programming the Perl DBI" published by O'Reilly.
Once you have things loaded you basicly connect to the database and issue SQL statments by way of the methods defined in DBI.
It is pretty straight foward once you get it loaded and try a couple of examples you can find online.
http://www.saturn5.com/~jwb/dbi-examples.html
http://www.they.com/doc/local/perl/DBI.html
Those are just a couple of many you can find by searching the web.
Steve
You will need to install DBI and DBD. DBD is specific to the database type, in your case Oracle.
There is a lot of information on line about using DBD. There are also "Programming the Perl DBI" published by O'Reilly.
Once you have things loaded you basicly connect to the database and issue SQL statments by way of the methods defined in DBI.
It is pretty straight foward once you get it loaded and try a couple of examples you can find online.
http://www.saturn5.com/~jwb/dbi-examples.html
http://www.they.com/doc/local/perl/DBI.html
Those are just a couple of many you can find by searching the web.
Steve
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP