|
-
Jan 18th, 2007, 10:16 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [2.0] Generating a dump file from an Oracle DB with C#
Hi. My question concerns Oracle connected to C#. I'm well familiar with connecting oracle with c# so that's no problem.
I also know how to generate a dump file by typing a few commands in the cmd prompt and it works properly. However, I want to create a little application that will generate this dump file automatically to some directory which will be hardcoded for now.
Is there any way to do this? I'm thinking of a simple application that has a connection to the Oracle DB. This application has a button which when clicked will generate the dump file.
Regards,
Jennifer
-
Jan 19th, 2007, 10:59 AM
#2
Re: [2.0] Generating a dump file from an Oracle DB with C#
Whatever you normally type at the command prompt you can send programmatically. You would use Process.Start to run a console window and then send the instructions to it via its standard input. Gigemboy has submitted code in the VB.NET CodeBank to redirect the standard streams. The principles will be exactly the same in C#.
-
Jan 19th, 2007, 11:45 AM
#3
Re: [2.0] Generating a dump file from an Oracle DB with C#
Are you talking about using the exp command? IF so create a parameter file then use the process start as mentioned above.
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Jan 26th, 2007, 06:42 AM
#4
Thread Starter
Hyperactive Member
Re: [2.0] Generating a dump file from an Oracle DB with C#
Thanks. I got it to work - Jen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|