Results 1 to 4 of 4

Thread: [RESOLVED] [2.0] Generating a dump file from an Oracle DB with C#

  1. #1

    Thread Starter
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    Resolved [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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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#.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    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

  4. #4

    Thread Starter
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    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
  •  



Click Here to Expand Forum to Full Width