Hi,
I experienced similar problems with another component running on a big endian machine and dealing with byte wise encoding of native data formats (FlexCel).
They used the System.BitConverter class, which encodes and decodes multi byte data types with the endianess of the particular platform. This is not desired behavior, if you deal with platform independent native data types. Maybe this is the problem here as well?
Greetings - Richie
Search found 14 matches
- Wed 10 Feb 2010 11:41
- Forum: dotConnect for Oracle
- Topic: AIX: Year of Oracle DATE datatype is not properly sent to Se
- Replies: 6
- Views: 1650
- Tue 01 Sep 2009 16:19
- Forum: dotConnect for Oracle
- Topic: Problems with OracleCommandBuilder on mono
- Replies: 9
- Views: 2928
- Tue 01 Sep 2009 11:34
- Forum: dotConnect for Oracle
- Topic: Problems with OracleCommandBuilder on mono
- Replies: 9
- Views: 2928
Problems with OracleCommandBuilder on mono
Hello,
I encountered problems with the OracleCommandBuilder on mono. Basically, it seems that the OracleCommandBuilder is not working at all with mono 2.0.1 running on Ubuntu 9.04 x86. On Windows 7 x64 Ultimate, everything runs fine.
You can find a sample project and the console output dumps here.
I always connected to the same Oracle XE 10g Server running on the Windows 7 x64 machine.
Can you reproduce the problems? If not, what do I wrong? If yes, can I expect a fix for this? If yes, when?
Thank you very much in advance for any help!
Greetings - Richie
I encountered problems with the OracleCommandBuilder on mono. Basically, it seems that the OracleCommandBuilder is not working at all with mono 2.0.1 running on Ubuntu 9.04 x86. On Windows 7 x64 Ultimate, everything runs fine.
You can find a sample project and the console output dumps here.
I always connected to the same Oracle XE 10g Server running on the Windows 7 x64 machine.
Can you reproduce the problems? If not, what do I wrong? If yes, can I expect a fix for this? If yes, when?
Thank you very much in advance for any help!
Greetings - Richie
- Fri 13 Jun 2008 08:52
- Forum: dotConnect for Oracle
- Topic: Example code for asyncroneous notification with OracleQueue
- Replies: 1
- Views: 2329
Example code for asyncroneous notification with OracleQueue
Hello,
I am looking for an example code on how to properly dequeue a message in the OracleQueue.OnMessage handler.
...or should it be more like this:
...or more like this?
Thanks in advance for any help!
Greetings - Richie
I am looking for an example code on how to properly dequeue a message in the OracleQueue.OnMessage handler.
- Is OracleQueue thread safe so that concurrent invokes of Dequeue() (from the OnMessage handler) are supported?
- Is it asserted that OnMessage is invoked for each and every received message?
- Is there a possibility to invoke OracleQueue.Dequeue() in nonblocking mode or is it possible to check for pending messages?
- The OracleQueueMessageEventArgs only provides OracleQueueMessageProperties, but not the OracleQueueMessage itself. What is the best way to fetch the acutal OracleMessage that raises the OnMessage event?
Code: Select all
private void OracleQueue_OnMessage(object sender,
OracleQueueMessageEventArgs args)
{
OracleQueue oracleQueue = (OracleQueue)sender;
//We tweack the DequeueOptions of the oracle queue to only dequeue
//the message of out interest
OracleQueueMessageId originalMessageId =
oracleQueue.DequeueOptions.MessageId;
oracleQueue.DequeueOptions.MessageId = args.MessageId;
OracleQueueMessage message = oracleQueue.Dequeue();
oracleQueue.DequeueOptions.MessageId = originalMessageId;
//proceed with message from here
}
Code: Select all
private void OracleQueue_OnMessage(object sender,
OracleQueueMessageEventArgs args)
{
OracleQueue oracleQueue = (OracleQueue)sender;
//Dirty HACK because OracleQueueDequeueOptions does not implement ICloneable
OracleQueueDequeueOptions dequeueOptions = (OracleQueueDequeueOptions)
typeof(OracleQueueDequeueOptions).GetMethod("MemberwiseClone",
BindingFlags.NonPublic | BindingFlags.Instance, null,
Type.EmptyTypes, null).Invoke(oracleQueue, null);
dequeueOptions.MessageId = args.MessageId;
OracleQueueMessage message = oracleQueue.Dequeue(dequeueOptions);
//proceed with message from here
}
Code: Select all
private void OracleQueue_OnMessage(object sender,
OracleQueueMessageEventArgs args)
{
OracleQueue oracleQueue = (OracleQueue)sender;
//Ignore args.MessageId because it cannot be decently handeled
//We just get any next message and dont care which message it has
OracleQueueMessage message = oracleQueue.Dequeue();
//proceed with message from here
}
Greetings - Richie
- Tue 29 Jan 2008 14:50
- Forum: dotConnect for Oracle
- Topic: Use OracleCommandBuilder with database linked objects
- Replies: 7
- Views: 2761
- Mon 28 Jan 2008 13:27
- Forum: dotConnect for Oracle
- Topic: Use OracleCommandBuilder with database linked objects
- Replies: 7
- Views: 2761
Hello Alexey,
I updated the test project so that it uses the assemblies i added in the lib folder.
Also, i added a ConsoleDump.txt that shows a dump of the console output as i get it. The english translation of the exception message is: "Dynamic SQL generation is not supported against a SelectCommand that does not return any base table information."
I'll check if OraDirect .NET 4.35.28 will work with this test program in my environment.
Greetings - Richie
I updated the test project so that it uses the assemblies i added in the lib folder.
Also, i added a ConsoleDump.txt that shows a dump of the console output as i get it. The english translation of the exception message is: "Dynamic SQL generation is not supported against a SelectCommand that does not return any base table information."
I'll check if OraDirect .NET 4.35.28 will work with this test program in my environment.
Greetings - Richie
- Fri 25 Jan 2008 15:37
- Forum: dotConnect for Oracle
- Topic: Use OracleCommandBuilder with database linked objects
- Replies: 7
- Views: 2761
Hello Alexey
You can find a test project here.
The file schema.sql creates a test table and a database link to itself. It is supposed to be executed on an empty schema named SCOTT of a local Oracle XE instance.
You may need to adapt the connection string in the Program.cs and the connection information in the database link to your environment.
If I run this test program, an exception is thrown in Program.cs line 37.
Greetings - Richie
You can find a test project here.
The file schema.sql creates a test table and a database link to itself. It is supposed to be executed on an empty schema named SCOTT of a local Oracle XE instance.
You may need to adapt the connection string in the Program.cs and the connection information in the database link to your environment.
If I run this test program, an exception is thrown in Program.cs line 37.
Greetings - Richie
- Fri 25 Jan 2008 12:11
- Forum: dotConnect for Oracle
- Topic: Use OracleCommandBuilder with database linked objects
- Replies: 7
- Views: 2761
Use OracleCommandBuilder with database linked objects
Hello,
I have the following command as OracleDataAdapter.SelectCommand:
HR is the name of the database link which connects to the equally named schema shipped with OracleXE.
I successfully used the Fill() method to fetch the countries into a DataSet.
Then I initialized an OracleCommandBuilder for generating Insert/Update/Delete statements and tried to use the Update() method.
While this works perfectly with Tables in the same schema and even tables of another schema, it does not seem to work with database objects of another schema.
Does anyone have an idea how to circumvent this issue, except manually creating the Insert/Update/Delete statements?
Thanks for any help!
Greetings - Richie
I have the following command as OracleDataAdapter.SelectCommand:
Code: Select all
select * from COUNTRIES@HR
I successfully used the Fill() method to fetch the countries into a DataSet.
Then I initialized an OracleCommandBuilder for generating Insert/Update/Delete statements and tried to use the Update() method.
While this works perfectly with Tables in the same schema and even tables of another schema, it does not seem to work with database objects of another schema.
Does anyone have an idea how to circumvent this issue, except manually creating the Insert/Update/Delete statements?
Thanks for any help!
Greetings - Richie
- Tue 21 Aug 2007 11:26
- Forum: dotConnect for Oracle
- Topic: How to set Execution Timeout for OracleScript?
- Replies: 12
- Views: 4999
Hello Alexey,
I downloaded the most current version of OraDirect .NET Professional version 4.00.16 (13.08.07). I still cannot find the "CommandTimeout" property - neither in class DbScript not in class OracleScript.
I try to find the property by investigating the OracleScript class in the Object browser. The IntelliSense has no knowledge about the Property as well. Also i added an OracleScript as component to a Windows.Forms class. The Properties window (right click on the "oracleScript1" component and selecting "Properties"), I find the Properties "Connection", "ScriptText", "GenerateMember" and "Modifiers", but no Porperty "CommandTimeout".
Actually, I still dont know how to access or modify the Command Timeout with the most current Version of OraDirect .NET Professional version 4.00.16 (13.08.07).
Would you be so kind and send me a sample project that set the CommandTimeout property or give me a step-by-step-explanation how to make the CommandTimeout property visible in the Properties window?
I noted that the version of assembly CoreLab.Data.dll is still 4.0.11.0. And since DbScript is implemented in there, could be possible that you use a more current version of the assemblies which are not accessible to me?
Greetings - Richie
I downloaded the most current version of OraDirect .NET Professional version 4.00.16 (13.08.07). I still cannot find the "CommandTimeout" property - neither in class DbScript not in class OracleScript.
I try to find the property by investigating the OracleScript class in the Object browser. The IntelliSense has no knowledge about the Property as well. Also i added an OracleScript as component to a Windows.Forms class. The Properties window (right click on the "oracleScript1" component and selecting "Properties"), I find the Properties "Connection", "ScriptText", "GenerateMember" and "Modifiers", but no Porperty "CommandTimeout".
Actually, I still dont know how to access or modify the Command Timeout with the most current Version of OraDirect .NET Professional version 4.00.16 (13.08.07).
Would you be so kind and send me a sample project that set the CommandTimeout property or give me a step-by-step-explanation how to make the CommandTimeout property visible in the Properties window?
I noted that the version of assembly CoreLab.Data.dll is still 4.0.11.0. And since DbScript is implemented in there, could be possible that you use a more current version of the assemblies which are not accessible to me?
Greetings - Richie
- Tue 07 Aug 2007 14:08
- Forum: dotConnect for Oracle
- Topic: How to set Execution Timeout for OracleScript?
- Replies: 12
- Views: 4999
- Tue 07 Aug 2007 13:23
- Forum: dotConnect for Oracle
- Topic: How to set Execution Timeout for OracleScript?
- Replies: 12
- Views: 4999
Hey Alexey,
I just downloaded the most current licensed version of OraDirect .NET Professional for .NET Framework 2.0 dated 25.06.07. The Version of CoreLab.Data.dll is 4.0.11.0 and the Version of CoreLab.Oracle.dll is 4.0.15.0.
However I still did not find the craved property OracleScript.CommandTimeout. Since the date of your post about acknowledgement that the property is implemented laid a few days before the release date of the most current library versions, I hoped that the property is already available.
When can I expect the first release that supports a command timeout in the class OracleScript?
Greetings - Richie
I just downloaded the most current licensed version of OraDirect .NET Professional for .NET Framework 2.0 dated 25.06.07. The Version of CoreLab.Data.dll is 4.0.11.0 and the Version of CoreLab.Oracle.dll is 4.0.15.0.
However I still did not find the craved property OracleScript.CommandTimeout. Since the date of your post about acknowledgement that the property is implemented laid a few days before the release date of the most current library versions, I hoped that the property is already available.
When can I expect the first release that supports a command timeout in the class OracleScript?
Greetings - Richie
- Mon 18 Jun 2007 08:09
- Forum: dotConnect for Oracle
- Topic: How to set Execution Timeout for OracleScript?
- Replies: 12
- Views: 4999
- Fri 15 Jun 2007 15:46
- Forum: dotConnect for Oracle
- Topic: How to set Execution Timeout for OracleScript?
- Replies: 12
- Views: 4999
- Thu 14 Jun 2007 09:21
- Forum: dotConnect for Oracle
- Topic: How to set Execution Timeout for OracleScript?
- Replies: 12
- Views: 4999
How to set Execution Timeout for OracleScript?
Hello,
apparently we have the problem reported here if we try to execute an OracleScript with an OracleConnection in direct mode.
We are using OraDirect Version 4.0.14.
However, i was not able to find out how to increase the execution timeout - neither in OracleConnection not in OracleScript. Does somebody know how to solve this?
Thanks for any help!
Greetings - Richie
apparently we have the problem reported here if we try to execute an OracleScript with an OracleConnection in direct mode.
We are using OraDirect Version 4.0.14.
However, i was not able to find out how to increase the execution timeout - neither in OracleConnection not in OracleScript. Does somebody know how to solve this?
Thanks for any help!
Greetings - Richie