troubleshooting Question

Crystal Reports with Oracle PL/SQL Command Source

Avatar of dblerner
dblerner asked on
Crystal ReportsOracle Database
2 Comments1 Solution2541 ViewsLast Modified:
I am attempting to get  Crystal Reports to use an Oracle stored procedure as the command source. I have followed the instruction to use a PL/SQL package to set up a Ref Cursor type
and have populated a table with data. When I execute an anonymous block in SQL Developer, it executes successfully and retrieves the data in the table. However, when I place the anonymous block as the command source in Crystal Reports, I get a ORA-0922 error.

Here is the anonymous block:

  CensusRollup_Cursor CensusRollup.CensusRollup_Type;
  resultset CensusRollup_Cursor%rowtype;
  PC_CensusRU_Excel_Test (CensusRollup_Cursor);
  Fetch CensusRollup_Cursor into resultset;
  While CensusRollup_Cursor%found Loop
    Fetch CensusRollup_Cursor into resultset;
  End Loop;

Do I need to access some settings in Crystal Report for this to work?

I am using an Oracle 10g database, Crystal Reports 12, and a JDBC connection to access the database.
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros