Connecting/integrating Oracle to C#

Salvation

L'obscurité vous entoure
Dec 5, 2010
741
1
22
Osama-Land!
Salam all!
I am in dire need of your help.
Here is the problem.

We (2 of my friends and i) are working on a project, a sales information system for an organization. My part was planning, analysis and designing. I have designed the EER diagrams, the relational models, use cases, data flow models etc. This phase is complete. Now my friend told me that he does not know how to integrate the oracle datAbase into c#, and honestly neither do I. I know how to connect the database to c# but what I want is that when I install the software into my client's computer it automatically generates all the tables from the oracle in the background without installing the Oracle again into that particular computer(of course that would be stupid).

I would REALLY be thankful to any of you who can help me here. The deadline is really really close and this is seriously a big issue which I did not know of.
Please Help! and thanks.
@Shyber @staticPointer [MENTION=10790]Em0s[/MENTION]
 
Last edited:

staticPointer

PG LEGENDARY
Dec 7, 2012
3,266
0
41
افغانستان
www.pakgamers.com
Salam all!
I am in dire need of your help.
Here is the problem.

We (2 of my friends and i) are working on a project, a sales information system for an organization. My part was planning, analysis and designing. I have designed the EER diagrams, the relational models, use cases, data flow models etc. This phase is complete. Now my friend told me that he does not know how to integrate the oracle datAbase into c#, and honestly neither do I. I know how to connect the database to c# but what I want is that when I install the software into my client's computer it automatically generates all the tables from the oracle in the background without installing the Oracle again into that particular computer(of course that would be stupid).

I would REALLY be thankful to any of you who can help me here. The deadline is really really close and this is seriously a big issue which I did not know of.
Please Help! and thanks.
@Shyber @staticPointer @Em0s

dear, i understand ur problems. u have designed the phases i.e. eer, r/s models and UC, thek hy wo !!!!!
now the problem is about connectivity to db from c# to oracle, right???
 

Shyber

PG Pioneering Member
PG Pioneering Member
Oct 11, 2007
16,736
2
44
39
The Land Down Under
Is there an obligation to use Oracle? How big is the scope of the project? Is it a website?
For portable deployments, I suggest using MySQL or MS Access.

If you're in Karachi, you may visit me with your laptop and I'll set you right up.
 

Salvation

L'obscurité vous entoure
Dec 5, 2010
741
1
22
Osama-Land!
Is there an obligation to use Oracle? How big is the scope of the project? Is it a website?
For portable deployments, I suggest using MySQL or MS Access.

If you're in Karachi, you may visit me with your laptop and I'll set you right up.
The scope of the project is not too big actually. And no it is not a website. There will be no multiple users/computers connected to a server a database either.
The client is an agency, a cold drinks distributor to be exact. He needs to keep record of each and everything (on daily basis). for example, vans, salesmen, orders, stock, defectives, empty bottles, monthly profit, weekly profit and similar other stuff.

Using Oracle is not an obligation. I chose it because I had studied it quite well when I was in 3rd semester. I can do it in MySQL as well. I will need to spend some hours studying the syntax first (I have never used MYSQL). The Problem is that I am not left with much time, hardly a week.

I am from Abbottabad, the other end of the country. No coming to Karachi.
Right now I am designing the interface in C# plus all the required functions. Connecting it to the database is not an issue. What I want is that I do not have to install the Oracle database client on my client's computer.

To keep it simple, right now while designing the forms in C# I have to run the Oracle database client in the background in order to transfer the data to it from C#. of course now i will not do the same with my client. I will not install Oracle on his computer and I cannot bound hime to run Oracle in the background in order to store his data. What i want is that when I install the software in his computer it automatically generates all the tables in the background and which are connected to the interface.

I hope you're understanding.
 
Last edited:

Salvation

L'obscurité vous entoure
Dec 5, 2010
741
1
22
Osama-Land!
dear, i understand ur problems. u have designed the phases i.e. eer, r/s models and UC, thek hy wo !!!!!
now the problem is about connectivity to db from c# to oracle, right???
yes permanent connectivity after software installation. Please read the details above and answer if know. thanks
 

Shyber

PG Pioneering Member
PG Pioneering Member
Oct 11, 2007
16,736
2
44
39
The Land Down Under
The scope of the project is not too big actually. And no it is not a website. There will be no multiple users/computers connected to a server a database either.
The client is an agency, a cold drinks distributor to be exact. He needs to keep record of each and everything (on daily basis). for example, vans, salesmen, orders, stock, defectives, empty bottles, monthly profit, weekly profit and similar other stuff.

Using Oracle is not an obligation. I chose it because I had studied it quite well when I was in 3rd semester. I can do it in MySQL as well. I will need to spend some hours studying the syntax first (I have never used MYSQL). The Problem is that I am not left with much time, hardly a week.

I am from Abbottabad, the other end of the country. No coming to Karachi.
Right now I am designing the interface in C# plus all the required functions. Connecting it to the database is not an issue. What I want is that I do not have to install the Oracle database client on my client's computer.

To keep it simple, right now while designing the forms in C# I have to run the Oracle database client in the background in order to transfer the data to it from C#. of course now i will not do the same with my client. I will not install Oracle on his computer and I cannot bound hime to run Oracle in the background in order to store his data. What i want is that when I install the software in his computer it automatically generates all the tables in the background and which are connected to the interface.

I hope you're understanding.
I understand your problem.
You're trying to hunt a mosquito with a bazooka here.

Ditch Oracle. Use MS Access. It's a simple DB file on HDD and C# based .NET desktop apps can read/write directly to a file on HDD. You need not to run complex DB systems/services.
Access has a very user friendly GUI for tables design etc and uses SQL just like Oracle DB. Just export all your tables and relations from Oracle as an SQL query, run it on Access and you'll have your DB file ready in Access. Then simply use this file for all storage actions in your app and simply put it on the PC where you deploy your app.
 

Salvation

L'obscurité vous entoure
Dec 5, 2010
741
1
22
Osama-Land!
I understand your problem.
You're trying to hunt a mosquito with a bazooka here.

Ditch Oracle. Use MS Access. It's a simple DB file on HDD and C# based .NET desktop apps can read/write directly to a file on HDD. You need not to run complex DB systems/services.
Access has a very user friendly GUI for tables design etc and uses SQL just like Oracle DB. Just export all your tables and relations from Oracle as an SQL query, run it on Access and you'll have your DB file ready in Access. Then simply use this file for all storage actions in your app and simply put it on the PC where you deploy your app.
Thanks a lot. I will start working on it now :) I will post if I see any other hurdle.

- - - Updated - - -

In order to connect c# to oracle, you will be needing Oracle Data Provider for .NET

Used it myself works just fine, the link contains the basic information and all. Should be enough to get you started.
Thanks a lot for this! Studying it right now. :)
 

Azimiester

PG Lover
Dec 22, 2009
135
0
21
Karachi
www.facebook.com
there are ADO.NET classes through which you can easily connect to an oracle database and manipulate it using its classes ..

use Oracleconnection class to connect to a database ..
Oraclecommand object to put in your quries/stored procedure..
 

Salvation

L'obscurité vous entoure
Dec 5, 2010
741
1
22
Osama-Land!
project completed and delivered :)
had to ditch Oracle unfortunately. I designed the database in Access because it was a lot more simpler and the client wasn't using a server giving access to multiple users.

But I am still open to suggestions if anyone can tell me how to create a database in oracle and integrate it with C# or any other language such that I do not have to install the Oracle software itself in the client machine?

Or is that even possible? Like maybe Oracle can only be used for creating server databases?
 

abdulrahim

Tadpoles are innocent!!!!
Dec 25, 2008
736
1
23
33
Islamabad
project completed and delivered :)
had to ditch Oracle unfortunately. I designed the database in Access because it was a lot more simpler and the client wasn't using a server giving access to multiple users.

But I am still open to suggestions if anyone can tell me how to create a database in oracle and integrate it with C# or any other language such that I do not have to install the Oracle software itself in the client machine?

Or is that even possible? Like maybe Oracle can only be used for creating server databases?
It is possible but not advisable if you want to make seperate Database server use Ms SQL Server with .net. It will be alot more faster and efficient.
 
General chit-chat
Help Users
We have disabled traderscore and are working on a fix. There was a bug with the plugin | Click for Discord
  • Chandoo Chandoo:
    LegacyGamerGuy said:
    Gradually transitioning from console gaming to PC as the games are not worth it. 6 hours of Hellblade 2 is just not worth the $50 price tag.
    Score 1 for game pass. I wouldn't pay full price for this at retail either.
    Link
  • L LegacyGamerGuy:
    Gradually transitioning from console gaming to PC as the games are not worth it. 6 hours of Hellblade 2 is just not worth the $50 price tag.
    Link
  • L LegacyGamerGuy:
    Just downloaded my first legit digital PC game on GoG at a discount of $8: Two Point Hospital. The same team behind Theme Hospital Two Point Studios now part of Sega. And I am having more fun than most recent AAA games except of course BG3.
    Link
  • Chandoo Chandoo:
    gottdamnnn HB2 looks amazing. UE5 finally living up to its potential.
    Link
  • L LegacyGamerGuy:
    Still, I don't like either Sony or Microsoft as they are focusing more on corporate greed than delighting customers. PC gaming is best of gaming and worth every penny.
    Link
  • L LegacyGamerGuy:
    PC Gamer score of 58/100 for Hellblade 2??? Is it really worse than Gollum that was 64/100? Microsoft games can't even come close to high scores of Sony exclusives apparently.
    Link
  • Necrokiller Necrokiller:
    Chandoo said:
    Hellblade 2 83 OpenCritic, not bad at all. 2 points higher than the first game.
    first one is 84 Opencritic. Saga dropped to 82.
    Link
  • Necrokiller Necrokiller:
    Saeen abhi tak to first one was better in every way. Atleast the first hour-ish
    Link
  • Chandoo Chandoo:
    Hellblade 2 83 OpenCritic, not bad at all. 2 points higher than the first game.
    Link
  • L LegacyGamerGuy:
    About the Microsoft (and Sony) debate, I feel both have become too greedy and losing their minds over corporate greed. Personally, I will never buy any console next gen and switch to PC gaming where democracy reins.
    Link
  • L LegacyGamerGuy:
    No news about Google Play Store hacking. What is the source?
    Link
  • Link
  • Aciel Aciel:
    This is the error.
    Link
  • Aciel Aciel:
    Online session is enabled for UBL. I have an active subscription with my NayaPay card (it is already added to Google Payment Methods).
    Link
  • B Baghi:
    did you try setting up Google Payments? For UBL you may have to get it enabled for internet transactions, Naya should work without it!
    Link
  • Aciel Aciel:
    I tried both NayaPay, and UBL, but I keep getting "correct country selected..." error. I already have PK set there 🤦‍♂️
    Link
  • Aciel Aciel:
    Baghi said:
    Link
  • B Baghi:
    Yes
    Link
  • Aciel Aciel:
    Does your VISA Cards work on Google Play Store?
    Link
  • M murtaza12:
    XPremiuM said:
    Why? Was the site hacked or something?
    Yes
    Link
  • XPremiuM XPremiuM:
    GloriousChicken said:
    Everyone, please change your passwords.
    Why? Was the site hacked or something?
    Link
  • GloriousChicken GloriousChicken:
    Everyone, please change your passwords.
    Link
  • Necrokiller Necrokiller:
    The only valid thing from his pov he said in the video is AC dead since Black Flag. According to woke police that game was woke too. Welsh man in West Indies. So atleast he's consistent I guess lol
    Link
  • Link
  • XPremiuM XPremiuM:
    Necrokiller said:
    It's based on an actual real life person so I don't think the woke police have a valid case here.
    Nope. They have a very valid case. The above video explains it all.
    Link
    Chandoo Chandoo: Gradually transitioning from console gaming to PC as the games are not worth it. 6 hours of...