473,583 Members | 4,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to execute DBMS_DATAPUMP.A DD_FILE using .NET

Hello All

I'm unable to use the ADD_FILE procedure from .NET. I can seem to get
others to work but I think I'm passing arguments incorrecty. The
message I get is:

Message: ORA-06550: line 1, column 15:
PLS-00306: wrong number or types of arguments in call to 'ADD_FILE'
ORA-06550: line 1, column 7:

These are the arguments to be passed:

/*ParameterName: HANDLE
Direction: Input
OleDbType: Decimal
ParameterName: FILENAME
Direction: Input
OleDbType: Varchar2
ParameterName: DIRECTORY
Direction: Input
OleDbType: Varchar2
ParameterName: FILESIZE
Direction: Input
OleDbType: Varchar2
ParameterName: FILETYPE
Direction: Input
OleDbType: Decimal, KU$_FILE_TYPE_D UMP_FILE CONSTANT BINARY_INTEGER
:= 1*/

//This is what I tried:
//code snippet

OracleDecimal odec = new OracleDecimal(j obHandle);
OracleDecimal odecFileType = new OracleDecimal(1 );

cmd.CommandText = "DBMS_DATAPUMP. ADD_FILE";

cmd.Parameters. Add("HANDLE", OracleDbType.De cimal,
ParameterDirect ion.Input).Valu e = odec.Value;
cmd.Parameters. Add("FILENAME", OracleDbType.Va rchar2,
ParameterDirect ion.Input).Valu e = dumpFile;
cmd.Parameters. Add("DIRECTORY" , OracleDbType.Va rchar2,
ParameterDirect ion.Input).Valu e = dumpDirObj;
cmd.Parameters. Add("FILESIZE", OracleDbType.Va rchar2,
ParameterDirect ion.Input).Valu e = string.Empty;
cmd.Parameters. Add("FILETYPE", OracleDbType.De cimal,
ParameterDirect ion.Input).Valu e = odecFileType.Va lue;

cmd.ExecuteNonQ uery(); //Fails here

Any hints are greatly appreciated.

thanks
Sunit

Jan 20 '07 #1
0 1220

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

Similar topics

4
9887
by: Kartik | last post by:
Hi, I have an ASP.NET application using VB.NET.I am sending a DOS command to a machine on the network to print a file. This is achieved using xp_cmdshell Dim str As String = "xp_cmdshell ""type " & nwkfilepath & " > " & pPrinterName & " """
1
3105
by: Joel Finkel | last post by:
Folks, I am unable to execute any ASPX files on a Windows 2000 Server, running as a Primary Domain Controller. The error is "Error BC31019: Unable to write to output file '<filename>'" By auditing access to the directory into which files are being written, I can confirm that the IUSR_<machineName> account is able to create the all the...
5
6556
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development Environment" with this message: "Error while trying to run project: Unable to start debugging on the web server. Server-side error occurred on...
1
19961
by: Antonello Calabrò | last post by:
Hi all, I created a webservice that execute a sql query on demand. If I try to execute the query from the WebForm, all is ok. If I try to execute the query from a normal Windows Application, all is ok. The WebService run correctly.. but if I try to call the Webservice from a SmartDeviceApplication the program crash and the debug message...
7
613
by: Jed | last post by:
I am trying to open web project in VS 2003 using the File Share method. VS is running on XP Pro (Host) and I am accessing the root web of an XP Pro install on Virtual PC (Server) running on the same machine. I have the loopback adapter running on the Host. The Host is sharing it's Internet connectivity with the loopback adapter and the...
1
7949
by: geetu | last post by:
hi to all.. pls help me its urgent.. i m unable to understand the exact answer .. tell me step to be carried to set libraries or directory path so that i can execute a simple program everytime i run a program it will either show a linking error-unable to open cos.obj or unable to open tv.lib reply me as soon as possibe
6
3385
by: Solje | last post by:
Im developing an ASP.NET application used for maintinance purpose and it may be idle for some ours. The application crash with the error shown below when the user click on some contol in the appliaction. This crash occurs on every clients at same time, event for the client at the local server. I added some logging to the Application_Error...
6
8152
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql server mobile ce database. Until recently I was synching everything thru a com port serial cable. The devices would connect to the computer thru...
3
5542
by: =?Utf-8?B?TGV3aXMgTW90ZW4=?= | last post by:
Hello. We are having a problem here trying to compile C# applications. Only one developer has a problem where they attempt to compile the application and the compiler complains about being out of memory and unable to find a dll - webengine.dll. They have tried rebooting, gettling latest, and a few other things. We can not determine what is...
0
7894
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8179
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8323
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7933
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8191
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5372
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3841
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1431
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.