473,405 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Calling Oracle OCI from C#

Hi All
I would like to call the following:

OCIAttrGet(ParamHandle,
OCI_DTYPE_PARAM,
HasDefault,
Nil,
OCI_ATTR_HAS_DEFAULT,
ErrorHandle);

from C#. Does anyone have any examples of how you go about calling
OCI? I am trying to find out if a stored procedure has a default
value, and there is now way to do this using any of the ADO drivers
for .NET.

Thanks in advance
Kevin

Jul 25 '07 #1
2 2719
Kevin,

You could easily call this through the P/Invoke layer. You left out the
return type of the call to OCIAttrGet. If you know what the types are for
the parameters as well, then you should easily be able to create a
declaration to call through P/Invoke.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Kevin" <ke**********@lycos.co.ukwrote in message
news:11**********************@o61g2000hsh.googlegr oups.com...
Hi All
I would like to call the following:

OCIAttrGet(ParamHandle,
OCI_DTYPE_PARAM,
HasDefault,
Nil,
OCI_ATTR_HAS_DEFAULT,
ErrorHandle);

from C#. Does anyone have any examples of how you go about calling
OCI? I am trying to find out if a stored procedure has a default
value, and there is now way to do this using any of the ADO drivers
for .NET.

Thanks in advance
Kevin

Jul 25 '07 #2
On 25 Jul, 17:50, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Kevin,

You could easily call this through the P/Invoke layer. You left out the
return type of the call to OCIAttrGet. If you know what the types are for
the parameters as well, then you should easily be able to create a
declaration to call through P/Invoke.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"Kevin" <kevinherr...@lycos.co.ukwrote in message

news:11**********************@o61g2000hsh.googlegr oups.com...
Hi All
I would like to call the following:
OCIAttrGet(ParamHandle,
OCI_DTYPE_PARAM,
HasDefault,
Nil,
OCI_ATTR_HAS_DEFAULT,
ErrorHandle);
from C#. Does anyone have any examples of how you go about calling
OCI? I am trying to find out if a stored procedure has a default
value, and there is now way to do this using any of the ADO drivers
for .NET.
Thanks in advance
Kevin- Hide quoted text -

- Show quoted text -
Thanks Nicholas, I will check it out.

Jul 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: vhvoun | last post by:
Hi, I've encountered this problem as below: I tried to called Oracle Store Procedure from VBS and it failed. The VBS is scheduled using NT Task Scheduler in Win 2000 environment using...
2
by: Raj | last post by:
Hi, Does anybody know how to call an oracle stored procedure ( with parameters ofcourse) from MS Access 2002. I want to invoke an oracle stored procedure which takes 2 parameters. Thanks,...
4
by: Jeff | last post by:
Help!! I'm trying to convert a visual basic stand alone program into a Web Program using C#. There are a lot of Oracle packages already written that I am trying to use (unsuccessfully). Can...
1
by: Sudhish K V | last post by:
Hi all, How can i pass parameters to an oracle stored procedure from c# application? And also i need to read the return value. TIA, Sudhish.
6
by: JV | last post by:
A ref cursor data type can obviously be returned as an output parameter of a stored procedure, but can an ASP.NET application call an oracle proc that uses a ref cursor as an input parameter? If...
1
by: burtonl | last post by:
I'm using the ADODB abstraction layer and trying to figure out how to call an Oracle stored procedure. It has the following types defined: CREATE OR REPLACE TYPE varchar2_3200_array IS TABLE...
0
by: TattedProgrammer | last post by:
Hello All, I am completely stuck, I have tried for an entire day to get a simple procedure call to my Oracle Db via the enterprise Library 06. I am not an oracle fan to start, but have to deal...
1
by: cwendell | last post by:
Hello; I am a DBA working on a new project with a developer using .NET and C#. I have created a Package (RECORDER_API) with a very simple Procedure in it (add_row). This package is owned by...
3
by: Muhammad Intikhab Qaiser | last post by:
Hi I have following code and problem in calling the oracle stored procedure "DEPTREE_FILL" Here is the Code: Command.Connection = connection; ...
3
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I am trying to call a oracle stored proc from .net code and I am getting an error PLS-00306: wrong number or types of arguments in call to KSSP_MEMBER_NEW. I counted all the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.