This is a migrated thread and some comments may be shown as answers.

[Solved] Reverse mapping and Packages folder

17 Answers 222 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert Fischer
Top achievements
Rank 1
Robert Fischer asked on 01 Sep 2009, 10:22 AM
Hi

In our setup we use Stored Procedures in packages to retrieve our data.
I would like to know how to access the Packages folder on Oracle through the Reverse Mapping wizard? Is that possible with some configuration?

Regards,
Robert Fischer

17 Answers, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 03 Sep 2009, 04:23 PM
Hello Robert Fischer,

 Currently it is not possible to read package information using the Reverse Mapping wizard.

All the best,
Ady
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jim
Top achievements
Rank 1
answered on 12 Oct 2009, 06:22 PM
Are there any plans for this to be supported?
0
Ady
Telerik team
answered on 14 Oct 2009, 01:55 PM
Hi Juan Valenzuela,

 We need to investigate this further. We will look into this and try and get it scheduled.

Kind regards,
Ady
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ed Staffin
Top achievements
Rank 1
answered on 23 Apr 2010, 12:23 PM
So there is no way to map stored procedures that are in a package in oracle?
HUGE bummer!
What's the status of this?
Thanks ... Ed
0
Ady
Telerik team
answered on 27 Apr 2010, 09:22 AM
Hello Ed Staffin,

Oracle packages are still not supported but seeing the increasing interest we will schedule this very soon. We will keep you updated on the status.

All the best,
Ady
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jim
Top achievements
Rank 1
answered on 27 Apr 2010, 06:23 PM
Please do. This is the only reason I cannot fully use your product in production. We have a huge database with millions of records using an Oracle RAC and thousands of lines of code written in packages.

I'm willing to beta test for you when you have your first version for this support.

Thanks

- Juan
0
Ady
Telerik team
answered on 03 May 2010, 09:05 AM
Hello Juan Valenzuela,

 Thank you for the initiative. We will keep up informed.

Greetings,
Ady
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
István Görög
Top achievements
Rank 2
answered on 05 May 2010, 03:49 PM
We are interesting to use Oracle packages also, is there any chance to get this functionality in Q2?
0
Dimitar Kapitanov
Telerik team
answered on 06 May 2010, 09:35 AM
Hello István Görög,
We are not sure whether it will make it in Q2 release. The Oracle packages are on our list for some time and we realize the importance of such a feature.

Kind regards,
Dimitar Kapitanov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Carlos Sesma
Top achievements
Rank 1
answered on 12 Oct 2010, 03:06 PM
please post a workaround.

regards.
0
Jan Blessenohl
Telerik team
answered on 12 Oct 2010, 04:04 PM
Hi Carlos Sesma,
OpenAccess is now able to read stored procedures from packages. We will have a new custom build on the web by tomorrow. Can you please give it a try?

Greetings,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Carlos Sesma
Top achievements
Rank 1
answered on 13 Oct 2010, 05:31 PM
i can return a ref cursor as entity by calling a SP from oracle but if i put the SP inside a package (YIELDS_REPORT_PKG), i get this error

Telerik.OpenAccess.RT.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00201: identifier 'YIELDS_REPORT_PKG.YIELD' must be declared
ORA-06550: line 1, column 7:

public static class StoredProcedure
   {
        public static IEnumerable<Model.NavYieldsView> getYieldByDateModel(IObjectScope scope,DateTime? v_DATE_TO,DateTime? v_DATE_FROM,string v_STRMODEL)
        {
            //object v_CURSOR=new object();
            List<NavYieldsView> v_CURSOR = new List<NavYieldsView>();
            Query<Model.NavYieldsView> query = scope.GetSqlQuery<Model.NavYieldsView>("\"YIELDS_REPORT_PKG.YIELD\" ?,?,?,?", "DATE V_DATE_TO,DATE V_DATE_FROM,OUT.CURSOR V_CURSOR,VARCHAR V_STRMODEL");
            QueryResultEnumerable<Model.NavYieldsView> res = query.ExecuteEnumerable(new object[] {v_DATE_TO,v_DATE_FROM,v_CURSOR,v_STRMODEL});
             
            return res;
        }
}}
Im using  2009.3.131 version
0
Carlos Sesma
Top achievements
Rank 1
answered on 13 Oct 2010, 09:38 PM
never mind, I just removed the quotes and it worked, so , I was able to run stored procedures from packages without problems.

thanks.
0
Carlos Sesma
Top achievements
Rank 1
answered on 19 Oct 2010, 10:29 PM
as I stated in previous post I was able to run packages from openaccess, my issue now is that ExecuteEnumerable return only 13 rows.

here is my code:
public static IEnumerable<Model.NavYieldsView> getYieldByDateModel(IObjectScope scope,DateTime? v_DATE_TO,DateTime? v_DATE_FROM,string v_STRMODEL)
{
    object v_CURSOR=new object();
    Query<Model.NavYieldsView> query = scope.GetSqlQuery<Model.NavYieldsView>("YIELDS_REPORT_PKG.YIELD ?,?,?,?", "DATE V_DATE_TO,DATE V_DATE_FROM,OUT.CURSOR V_CURSOR,VARCHAR V_STRMODEL");
    var res = query.ExecuteEnumerable(new object[] { v_DATE_TO, v_DATE_FROM, v_CURSOR, v_STRMODEL });           
    return res;
}

Then from the Context i cast the value as my Entity as follow:

public IEnumerable<NavYieldsView> NavYieldsView(DateTime? v_DATE_FROM, DateTime? v_DATE_TO, string v_STRMODEL)
{
    return StoredProcedure.getYieldByDateModel(Scope, v_DATE_FROM, v_DATE_TO, v_STRMODEL);
}

this gives only the 13 first rows, could it be a limitation on output parameter return value size?, in my case im returning a ref cursor...
btw, if i test my package from plsql the ref cursor gives 63 rows.

regards.

Edit: I just find out executeenumarable trunc the string parameter at 256 max length only, when i need it to be 4000 chars length.
how can i pass a parameter this long?
regards.

Edit2: I just figured out using Longvarchar fix the problem, thanks!.
0
Ady
Telerik team
answered on 22 Oct 2010, 01:44 PM
Hi Carlos Sesma,

 When you execute the procedure from plsql and get 63 rows, are there duplicates in the result set?
 The GetSqlQuery call will eliminate duplicates in order to ensure unique in-memory representations of the returned rows.

Sincerely yours,
Ady
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Carlos Sesma
Top achievements
Rank 1
answered on 25 Oct 2010, 03:52 PM
my issue was fixed by using Lonvarchar parameter type, I was passing a very long parameter having comma separated values and those were truncated to 256 chars long.

thank you.

0
Ady
Telerik team
answered on 29 Oct 2010, 08:59 AM
Hello Carlos Sesma,
 
 Glad to know your problem was fixed. Do get back to us in case you need further assistance.

Greetings,
Ady
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Robert Fischer
Top achievements
Rank 1
Answers by
Ady
Telerik team
Jim
Top achievements
Rank 1
Ed Staffin
Top achievements
Rank 1
István Görög
Top achievements
Rank 2
Dimitar Kapitanov
Telerik team
Carlos Sesma
Top achievements
Rank 1
Jan Blessenohl
Telerik team
Share this question
or