Search found 31 matches

by flutos
Wed 31 Aug 2011 16:16
Forum: dotConnect for Oracle
Topic: Nhibernate 3.2 doesnt work related the Parameter names
Replies: 14
Views: 2329

I dont think its been done yet but technically there is still 1 day left in the month. ;)
by flutos
Wed 10 Aug 2011 11:39
Forum: dotConnect for Oracle
Topic: Nhibernate 3.2 doesnt work related the Parameter names
Replies: 14
Views: 2329

ok , that will work for us, we will just wait for the fix.

thanks

scott
by flutos
Tue 09 Aug 2011 18:16
Forum: dotConnect for Oracle
Topic: Nhibernate 3.2 doesnt work related the Parameter names
Replies: 14
Views: 2329

we actually need direct mode=true since we are running on mono so do you know if it would be fixed in the next month or 2?

thanks

scott
by flutos
Mon 08 Aug 2011 14:48
Forum: dotConnect for Oracle
Topic: Nhibernate 3.2 doesnt work related the Parameter names
Replies: 14
Views: 2329

adding OracleUtils.OracleClientCompatible = true;
generates this error:
ORA-01036 illegal variable name/number

so this doesnt seem to work either. Is there something I can do to get rid of this error?

thanks

scott
by flutos
Thu 04 Aug 2011 19:01
Forum: dotConnect for Oracle
Topic: Nhibernate 3.2 doesnt work related the Parameter names
Replies: 14
Views: 2329

Nhibernate 3.2 doesnt work related the Parameter names

Nhibernate 3.2 was just released and I was using it and found it doesnt work with the devart oracle driver anymore and I found it was related to the ParameterName field in the parameter. in a sqlstatement you will have paramters defined with a ":" , ie :P0 and if you create a new devart oracle parameter and pass in the name as ":P0" , then if you read it back it returns "p0" so it strips off the ":" . Unfortuantly this can cause some problem with nhibernate because it needs to look up parameters in the parameters collection by name and its looking for ":P0" because thats what it gave you when it created it but you are returning "P0" so it never finds the parameter and you end up with and error saying "not all paremters defined".

I wasnt sure who to blame for this but since the sqlserver pametername returns its prefix, ie "@p0" shouldnt you return the oracle prefix too ":p0" ? Also, have you noticed any problems with your driver and nhibernate 3.2?

let me know anyhow.

thanks

scott
by flutos
Thu 02 Jun 2011 14:31
Forum: dotConnect for Oracle
Topic: ORA-00932: inconsistent datatypes: expected - got BLOB
Replies: 3
Views: 4268

Well the good news is I tried this and it worked. The bad news is Im using an ORM(nhibernate) so Im not sure how I can get nhibernate to use this. Do you have any insight on how to do this with nhibernate. Is there any way at all to get this to work with the '=' compare?
by flutos
Wed 01 Jun 2011 21:32
Forum: dotConnect for Oracle
Topic: ORA-00932: inconsistent datatypes: expected - got BLOB
Replies: 3
Views: 4268

ORA-00932: inconsistent datatypes: expected - got BLOB

When I try to query against a blob field I get this erorr. is there something that Im doing wrong. This is a sample that gives the error:

[Test]
public void sqlQueryTest()
{

string queryString = "select entityroot0_.ID " +
" from TESTSCOTT3.ROOTTESTOBJECT entityroot0_ where entityroot0_.ARRAY1=:p0 ";
string connectionString = "User Id=testscott3;Password=mypass;Direct=true;Data Source=drms-oracle;SID=oracle;Port=1521;Unicode=True;Pooling=True;";

using (Devart.Data.Oracle.OracleConnection connection =
new OracleConnection(connectionString))
{
// Create the Command and Parameter objects.
byte[] b1 = new byte[]{1,2,3,4,5};
OracleCommand command = new OracleCommand(queryString, connection);
OracleParameter p1 = new OracleParameter("p0" ,b1);
p1.OracleDbType = OracleDbType.Blob;
command.Parameters.Add(p1);
try
{
connection.Open();
OracleDataReader reader = command.ExecuteReader();
while (reader.Read())
{
Console.WriteLine("\t{0}",
reader[0]);
}
reader.Close();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
Console.ReadLine();
}
}

just create a table where the Array1 field is of type Blob.

Im using the most current devart driver 6.30 and oracle 11.2
by flutos
Thu 23 Dec 2010 15:17
Forum: dotConnect for Oracle
Topic: ora-01882
Replies: 11
Views: 2196

that fixed it.
by flutos
Wed 22 Dec 2010 14:07
Forum: dotConnect for Oracle
Topic: ora-01882
Replies: 11
Views: 2196

here are all my database parameters if this helps too:
DICT.BASE 2 dictionary base tables version #
DEFAULT_TEMP_TABLESPACE TEMP Name of default temporary tablespace
DEFAULT_PERMANENT_TABLESPACE USERS Name of default permanent tablespace
DEFAULT_EDITION ORA$BASE Name of the database default edition
Flashback Timestamp TimeZone GMT Flashback timestamp created in GMT
TDE_MASTER_KEY_ID
DBTIMEZONE -07:00 DB time zone
DST_UPGRADE_STATE NONE State of Day Light Saving Time Upgrade
DST_PRIMARY_TT_VERSION 11 Version of primary timezone data file
DST_SECONDARY_TT_VERSION 0 Version of secondary timezone data file
DEFAULT_TBS_TYPE SMALLFILE Default tablespace type
NLS_LANGUAGE AMERICAN Language
NLS_TERRITORY AMERICA Territory
NLS_CURRENCY $ Local currency
NLS_ISO_CURRENCY AMERICA ISO currency
NLS_NUMERIC_CHARACTERS ., Numeric characters
NLS_CHARACTERSET AL32UTF8 Character set
NLS_CALENDAR GREGORIAN Calendar system
NLS_DATE_FORMAT DD-MON-RR Date format
NLS_DATE_LANGUAGE AMERICAN Date language
NLS_SORT BINARY Linguistic definition
NLS_TIME_FORMAT HH.MI.SSXFF AM Time format
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM Time stamp format
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR Time with timezone format
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR Timestamp with timezone format
NLS_DUAL_CURRENCY $ Dual currency symbol
NLS_COMP BINARY NLS comparison
NLS_LENGTH_SEMANTICS BYTE NLS length semantics
NLS_NCHAR_CONV_EXCP FALSE NLS conversion exception
NLS_NCHAR_CHARACTERSET AL16UTF16 NCHAR Character set
NLS_RDBMS_VERSION 11.2.0.1.0 RDBMS version for NLS parameters
GLOBAL_DB_NAME DEV7 Global database name
EXPORT_VIEWS_VERSION 8 Export views revision #
WORKLOAD_CAPTURE_MODE CAPTURE implies workload capture is in progress
WORKLOAD_REPLAY_MODE PREPARE implies external replay clients can connect; REPLAY implies workload replay is in progress
by flutos
Wed 22 Dec 2010 14:02
Forum: dotConnect for Oracle
Topic: ora-01882
Replies: 11
Views: 2196

when I went to the registered users area I only see the version 6 as downloadable , the username I was given is dcoracle600pro
by flutos
Wed 22 Dec 2010 13:54
Forum: dotConnect for Oracle
Topic: ora-01882
Replies: 11
Views: 2196

this is the nls settings, not one specific thing is we are using the unicode character set if that makes any difference:

NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 11.2.0.1.0
by flutos
Tue 21 Dec 2010 18:23
Forum: dotConnect for Oracle
Topic: ora-01882
Replies: 11
Views: 2196

given that is working in the version 5 and the licenced version 6 isnt, is there a way I can get the licenced version of version 5 until this is fixed in version 6?
by flutos
Tue 21 Dec 2010 18:20
Forum: dotConnect for Oracle
Topic: ora-01882
Replies: 11
Views: 2196

its oracle enterprise server 11.2.0.1
this is the nls settings:
nls_calendar TRUE
nls_comp BINARY TRUE
nls_currency TRUE
nls_date_format TRUE
nls_date_language TRUE
nls_dual_currency TRUE
nls_iso_currency TRUE
nls_language AMERICAN TRUE
nls_length_semantics BYTE TRUE
nls_nchar_conv_excp FALSE TRUE
nls_numeric_characters TRUE
nls_sort TRUE
nls_territory AMERICA TRUE
nls_time_format TRUE
nls_time_tz_format TRUE
nls_timestamp_format TRUE
nls_timestamp_tz_format TRUE


note that the 5.170 driver didnt have this problem, just the version 6 drivers.
by flutos
Mon 20 Dec 2010 20:14
Forum: dotConnect for Oracle
Topic: ora-01882
Replies: 11
Views: 2196

forgot to mention my version is 6.0.69.0 for devart.data.oracle.dll but devart.dll.dll is 5.0.170.0
by flutos
Mon 20 Dec 2010 20:10
Forum: dotConnect for Oracle
Topic: ora-01882
Replies: 11
Views: 2196

ora-01882

I just got the licenced version of devart oracle driver and Im now getting this error trying to connect to the database:
ORA-01882: timezone region not found.

this is the connect string Im using:
User Id=system;Password=mypass;Direct=true;Server=oracle-win7;Service Name=dev7;Unicode=True;Pooling=True;

is there something different going on that Im missing?