Advertisement

10.16.2002 at 09:55AM PDT, ID: 20374887
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

Oracle PLSQL Table Of Records Access From Perl

Asked by simontaylor1 in Oracle 3rd Party Tools

Tags: ,

I have a stored procedure which returns a PL/SQL table of records.
I need to understand how I can access this table return using Perl DBI/DBD and Oracle 8.1.7.

I use the following statement to pass in a string and 2 dates.

sub prepare_statement{

my $sp = $dbh->prepare(q{
BEGIN
sla_csv.create_csv(
:CUSTOMER,
:START_DATE,
:END_DATE,
:TBL_OUT);
END;
});

$IN1="ALL";
$IN2="01/09/2002";
$IN3="11/11/2002";
$Out1=$tbl_files_out;

$sp->trace(5);
$sp->bind_param(":CUSTOMER", $IN1);
$sp->bind_param(":START_DATE", $IN2);
$sp->bind_param(":END_DATE", $IN3);
$sp->bind_param_inout(":TBL_OUT", \$Out1,'5000',{ ora_type => ORA_RSET });
$sp->execute;

}


The script errors with the following:-

   DBI::st=HASH(0x42291c) trace level set to 1 in DBI 1.30-nothread
   <- bind_param(':CUSTOMER' 'ALL')= 1 at test.pl line 73
   <- bind_param(':START_DATE' '01/09/2002')= 1 at test.pl line 74
   <- bind_param(':END_DATE' '11/11/2002')= 1 at test.pl line 75
   <- bind_param_inout(':TBL_OUT' SCALAR(0x505610) ...)= 1 at test.pl line 76
   <- FETCH('ImplementorClass')= 'DBD::Oracle::db' ('ImplementorClass' from cache) at DBI.pm line 990
   !! ERROR: 6550 'ORA-06550: line 3, column 1:
PLS-00306: wrong number or types of arguments in call to 'CREATE_CSV'
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored (DBD ERROR: OCIStmtExecute)'
   <- execute= undef at test.pl line 77
DBD::Oracle::st execute failed: ORA-06550: line 3, column 1:
PLS-00306: wrong number or types of arguments in call to 'CREATE_CSV'
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored (DBD ERROR: OCIStmtExecute) at ./test.pl line 77.
   <- DESTROY= undef at test.pl line 24
$

I imagine there is a neat way to reference the OUT parameter from a Stored Procedure when it is a PL/SQL table. I just dont know what it is.
Start Free Trial
[+][-]10.16.2002 at 10:35AM PDT, ID: 7338077

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.16.2002 at 10:42AM PDT, ID: 7338102

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.16.2002 at 11:37AM PDT, ID: 7338336

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.16.2002 at 11:48AM PDT, ID: 7338370

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle 3rd Party Tools
Tags: oracle, perl
Sign Up Now!
Solution Provided By: pennnn
Participating Experts: 1
Solution Grade: B
 
 
[+][-]10.17.2002 at 12:55AM PDT, ID: 7340264

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.29.2003 at 03:42PM PST, ID: 8232294

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32