473,473 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Administration Oracle Database in C#

17 New Member
Hello all,
I'm a new one in this forum and also the one to developpe the application database in C#.
I want to administer the Oracle database (Express Edition) in C#. It's mean to create a schema of user or delete a user etc.
In summary, i want a class that let me to do as DMO or SMO that Microsoft developpe for SQL Server.
So thanks before for all your helps.

PS:Sorry, if i post this subject in the wrong forum.
Jun 28 '07 #1
8 2830
debasisdas
8,127 Recognized Expert Expert
Hi
trakal
Welcome to TSDN.

You have reached the right place for knowledge shairing.

Here you will find a vast resource of related topics and code.

Feel free to post more doubts/questions in the forum.

But before that give a try from your side and if possible try to post what/how you have approached to solve the problem.

It will help Experts in the forum in solving/underestanding your problem in a better way.

Please follow the posting guidelines in every new post/reply.

Please specify your post/question clearly.

Dont expect others to guess and solve your problem.

Regards

Debasis
Jun 28 '07 #2
trakal
17 New Member
Hello Debasis,
Thanks for your reply.
I want to create an application in C# that let create the schema of database (or user) and objects of database ( tables, index, stored procedures,...).
Actually, i can only connect to the Oracle database (existing) by the connection string and do the query or call the procedure but i can not create schema of database or tables directly. To do that, i must to write the scripts sql and call this script to execute.
So how can i create a user, the tables, stored procedures, etc without the script sql in C#?
Thanks for your helps.
Regards,
Trakal
Jul 1 '07 #3
parag100
13 New Member
hello,

u cannot do that directly through C#.u can call procedures throgh C# or
simple sql query.To DDL operations , open your oracle database n with sql plus
run any DDL u want .then back to C#. do any DML .
Jul 7 '07 #4
trakal
17 New Member
Hello,
Thanks for your reply.
So, do you mean that i can't do any DDL operations in the script SQL through
C#?

Thanks
Jul 8 '07 #5
trakal
17 New Member
I just want to reform my question asked before.
i'm now developping a application who connect to Oracle database as a DBA. the objectif is to let a user (DBA) to connect to the schema of DB, and can display the objects owned by that schema: tables, synonyms, constraints. moreover, this user can also create the database's objects as i asked before to do DDL operations(create, drop and soon).

Now i find a assembly of ODT.Net named Oracle.Management.Omo.dll. this library can maybe answer to my question. But i can not find any documents that tell about it.
i want to know if it's possible to use this dll in my application code?
If yes, it's free? and how can i find the documents?

So thanks before hand.
Excuses me for my english.
Trakal
Jul 20 '07 #6
debasisdas
8,127 Recognized Expert Expert
You can execute any DDL command from any front end application using
EXECUTE IMMEDIATE.
Jul 20 '07 #7
trakal
17 New Member
Hello,
First, i want to say thanks to parag100 and debasisdas who answered me.
I can now find the solution for my problem.
My solution is the creation of the scripts (for exemple CREATE TABLE tab (col NUMBER); ) and i use ExecuteNonQuery to execute this scripts.
after the execution this script. the table "tab" will be created in the database.
So, i can use DDL's operation through C# by using the scripts sql.

Thanks again,
Have a nice day.
Trakal
Aug 2 '07 #8
debasisdas
8,127 Recognized Expert Expert
you are most welcome
Aug 2 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Tony Barker | last post by:
Helpful associates, We are going to acquire and new database server that is intel based and we want to have some failover capabilities. Our question now is should we go with Linux based cluster...
5
by: F. Biguet | last post by:
Hello, I want to create a generic script that connects to Oracle databases (from 7.3.4 to 9.2 version) with a guest user. This script should return 1 if connection is successful and 0 if not....
0
by: NSD | last post by:
Which Oracle program to use for adminitration and book-keeping Hello there, I am new to Oracle and I need to know how I can insert my company's data (administration and book - keeping) into an...
0
by: takveen | last post by:
The Topics Covered In This Book Are: Understanding the Oracle Environment; Understanding the Oracle Instance; Understanding the working of Oracle Instance; Understanding the Oracle Database; Oracle...
1
by: takveen | last post by:
The Topics Covered In This Book Are: Understanding the Oracle Environment; Understanding the Oracle Instance; Understanding the working of Oracle Instance; Understanding the Oracle Database; Oracle...
2
by: takveen | last post by:
Learn Oracle Database Administration in 10 Minutes. No kidding. Check it yourself, http://www.takveen.com Only good analogy makes complex concepts simple!
1
by: ZZ_Scarab | last post by:
Hi, <I posted this on the microsoft.public.dotnet.framework.aspnet.security newsgroup but before I got a reply this newsgroup has become unavailable!! So I'm posting it here again. Sorry for the...
0
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Toralf Kirsten | last post by:
Hi all, we have installed DB2 V9.5 Trial on a Fedora 6 Linux box (32bit). Since the box is included in a NIS we have manually created db2 users db2inst, dasusr and db2fenc on this box (not in the...
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
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...
1
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...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.