Search found 7 matches

by histu
Tue 07 Sep 2010 08:56
Forum: dotConnect for Oracle
Topic: Difference between the MaxPoolSize and the OciSessionMaxSize
Replies: 1
Views: 1510

Difference between the MaxPoolSize and the OciSessionMaxSize

Hello,

There are two properties which can be used in a connectionstring: MaxPoolSize, OciSessionPoolMaxSize. What is the difference between them? What is the difference between a connection and a session?

Thank you for your information in advance.

Istvan Hegyes
(L-Soft Kft.)
by histu
Thu 13 May 2010 09:43
Forum: dotConnect for Oracle
Topic: Dataset, stored procedure whitout schemaname
Replies: 3
Views: 1140

Hello

Sorry, when I created the sample project I got in the swing of I was made a mistake and the process of the creating a dataset is good.
So after I set the dataset, connect the datatabel to the stored procedure it created a commandtype = text, commandtext = begin sampleproce(:cursor) end; command. I made a mistake after that because I change it in the properties menu to commandtype = stored procedure, commandtext = stored procedure name. But when I changed the type of the command, the textbox next to the commandtext changed to a combobox. This combobox was filled up with names of the stored procedures of the database in the format of schemaname.stored_procedure.
So if I would left as default the commandtype and commandtext I hadn't run into this problem.
Maybe there is a bug because the combobox filled up with the names of the stored procedure in a wrong format, but it can be avoidable.

Thanks for your time and your help StanislavK

Istvan
by histu
Tue 11 May 2010 13:43
Forum: dotConnect for Oracle
Topic: Dataset, stored procedure whitout schemaname
Replies: 3
Views: 1140

Dataset, stored procedure whitout schemaname

Hello,

Is it possible to add a devart dataset to the project, set it to an oracle stored procedure which has an out refcursor parameter and NOT save the name of the schema of the developer database.

When I browse for the stored procedure in the list it is listed as database_schema_name.stored_procedure_name. So when I found my sp it saves it with the schema name and If i change the connectionstring (dinamically) it throws an exception because it would like to call the sp in the other schema.

Is it a bug? Are there any workaround to solve this problem?

Thanks
Istvan
by histu
Thu 21 Jan 2010 15:28
Forum: dotConnect for Oracle
Topic: ORA-01036 illegal variable name/number
Replies: 8
Views: 11718

Hello

It seems the problem is solved. I forget to use Original_ pretag in the where clause.
by histu
Thu 21 Jan 2010 12:28
Forum: dotConnect for Oracle
Topic: ORA-01036 illegal variable name/number
Replies: 8
Views: 11718

Hello Devart Team,

I have got the same problem.

When you said this:
This error was generated because only one parameter is set in your code but our provider generates the whole set of parameters if at least one parameter is set.

The whole set of parameters is the hole fields of the record, or the hole fields of the table? In my case selects only select some fields from the table without parameters.

When I see what sent to the database with the dbmonitor I see that the params are sent like strings and not like values.

Prepare: update iban_felhaszn_jog_fej set C_ELONEV = :C_ELONEV , C_NEV1 = :C_NEV1 where C_OPERNEV = :C_OPERNEV
It means that the parameters are handled like strings or just hide the values and change the parameter names with their value in the background?
by histu
Mon 23 Nov 2009 10:05
Forum: dotConnect for Oracle
Topic: Stored Function call problem
Replies: 2
Views: 1945

Stored Function call problem

Hi

I use Oracle 10g database and VS2008 with devart Linq To Sql technology. I have a Stored Function with 3 varchar2 params and a varchar2 return value. After I generated the mapping classes I get this code:

Code: Select all

[Function(Name=@"xxx", IsComposable=true)]
public System.String xxx(
[Parameter(Name="p1", DbType="VARCHAR2")]  
string p1,
[Parameter(Name="p2", DbType="VARCHAR2")]  
string p2,
[Parameter(Name="p3", DbType="VARCHAR2")]
string p3)
{
    return ((System.String)(this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), p1, p2, p3).ReturnValue));
}
When I try to run the function I get an exception:
Error on reading data from IDataReader.
This exception has a message:
Ora-14551 Cannot perform DML operation inside a query.

But this function works right when I call it from PL/SQL Developer.

Why do I get this exception? Did I forgot something?

Thanks for your help in advance

Istvan Hegyes
by histu
Fri 09 Oct 2009 09:04
Forum: dotConnect for Oracle
Topic: Bind Grid and OracleCursor
Replies: 1
Views: 1481

Bind Grid and OracleCursor

My basic problem is that I can’t understand how to show data in a gridview returned with a ref cursor from a stored procedure. I found some solutions that use programmatic ways, but it is more safer and maybe quicker if I can bind the grid to the cursor with the designer. Is there any way to solve this issue?
If the above problem can only be solved in only programmatic way, if there any way to give back query data from a stored procedure to a grid, and bind it with the designer?

Thanks in advance