First Day using Oracle 11.g
-
I'm confused here on Oracle 11.g Express. This is my first day using it, I read some of the documentation, but some things are not clear. I was trying to create a database, but it seems like you just create connections, and that XE is the default database. My question is XE the only database you can work with because it's the express edition?, or am I just completely missing something here. It's been over 5 years since I have worked with anything other that SQL Server 2005+, so I'm kind of fuzzy here on the Oracle. I was able to setup user accounts, and write my stuff for asp,net to connect using the Oracle DLL.
-
I'm confused here on Oracle 11.g Express. This is my first day using it, I read some of the documentation, but some things are not clear. I was trying to create a database, but it seems like you just create connections, and that XE is the default database. My question is XE the only database you can work with because it's the express edition?, or am I just completely missing something here. It's been over 5 years since I have worked with anything other that SQL Server 2005+, so I'm kind of fuzzy here on the Oracle. I was able to setup user accounts, and write my stuff for asp,net to connect using the Oracle DLL.
[SOLVED] I think I figured it out. I think XE is the sample database. So I was able to create a new database, and then a tablespace, and made my tables, and was able to connect to it using asp.net, and read the data. So far so good, until something else comes up.
-
[SOLVED] I think I figured it out. I think XE is the sample database. So I was able to create a new database, and then a tablespace, and made my tables, and was able to connect to it using asp.net, and read the data. So far so good, until something else comes up.
You're on the right track. But Oracle has a different archtecture than SQLServer. You are not supposed to create several databases on one computer, that's just a waste of resources. So a few concepts:
Quote: René Nyffenegger
In Oracle terminology, a user is someone who can connect to a database (if granted enough privileges) and optionally (again, if granted the appropriate privileges) can own objects (such as tables) in the database. The objects a user owns are collectively called >schema. A schema, on its part, is always bound to exactly one user. Because there is obviously a 1 to 1 relationship between a user and a schema, these two terms are often used interchangeable.
The tablespace is a logical storage area containing of one or more physical datafiles. There can be one or more Schema's stored in one tablespace. The tablespace is the equivalent to the database in a SQLServer, except that that would be a lie. It's just not the same thing Now you have all the keywords you need to google all the info you need. What you should do when you create a new application is to create a tablespace for it, to separate the data for easier handling when exporting for example. Then create a new user having this new tablespace as the default tablespace. And using this user, create your objects, and you will have a new schema that your application can use.
People say nothing is impossible, but I do nothing every day.
-
You're on the right track. But Oracle has a different archtecture than SQLServer. You are not supposed to create several databases on one computer, that's just a waste of resources. So a few concepts:
Quote: René Nyffenegger
In Oracle terminology, a user is someone who can connect to a database (if granted enough privileges) and optionally (again, if granted the appropriate privileges) can own objects (such as tables) in the database. The objects a user owns are collectively called >schema. A schema, on its part, is always bound to exactly one user. Because there is obviously a 1 to 1 relationship between a user and a schema, these two terms are often used interchangeable.
The tablespace is a logical storage area containing of one or more physical datafiles. There can be one or more Schema's stored in one tablespace. The tablespace is the equivalent to the database in a SQLServer, except that that would be a lie. It's just not the same thing Now you have all the keywords you need to google all the info you need. What you should do when you create a new application is to create a tablespace for it, to separate the data for easier handling when exporting for example. Then create a new user having this new tablespace as the default tablespace. And using this user, create your objects, and you will have a new schema that your application can use.
People say nothing is impossible, but I do nothing every day.
Thank you, for the clear explanation of differences between Oracle and SQL Server. I just wasn't able to put the relationships together, but now I get it. It seemed so different, and when I searched the terms, I would get fragments of information. I never did understand the schema, and sort of ignored it in exchange for hey it works, but I can see how I need to learn that now. That was a well written explanation that I'm sure others will stumble upon in their search.
-
Thank you, for the clear explanation of differences between Oracle and SQL Server. I just wasn't able to put the relationships together, but now I get it. It seemed so different, and when I searched the terms, I would get fragments of information. I never did understand the schema, and sort of ignored it in exchange for hey it works, but I can see how I need to learn that now. That was a well written explanation that I'm sure others will stumble upon in their search.
Thanks! I just didn't feel that it was very clear myself. But if you know the keywords and concepts you can google it. If you don't know what to google for, you can be stuck. Here's[^] a comparison that I find very useful when I need to "translate" functionality between SQLServer and Oracle.
People say nothing is impossible, but I do nothing every day.
-
Thanks! I just didn't feel that it was very clear myself. But if you know the keywords and concepts you can google it. If you don't know what to google for, you can be stuck. Here's[^] a comparison that I find very useful when I need to "translate" functionality between SQLServer and Oracle.
People say nothing is impossible, but I do nothing every day.
I needed that chart. I used a char for boolean Y/N, just going to change it to a number with 0/1. At the moment, I'm not that thrilled with using it, but on day 2, I got all my stuff working fine. I won't see any thing that I can measure till Friday, when I put the 1000 parts in it, and take it for a test drive. Guess I made the right choice on using the ODP.Net, instead of the Microsoft equivalent, since the latter is being phased out. Today is day 3, guess I'm making good progress with it. I decided to try it because of the complaints I received using SQL Server 2008 from customers that refused to buy my ecommerce software. They said they used a Java SQL Server, and that they wouldn't use that piece of junk, I didn't know what to make of that comment. So when I mentioned to this customer that I would use Oracle for there project, they got all excited about it. Just out of curiosity, what do think of the Oracle 11.g Express?
-
I needed that chart. I used a char for boolean Y/N, just going to change it to a number with 0/1. At the moment, I'm not that thrilled with using it, but on day 2, I got all my stuff working fine. I won't see any thing that I can measure till Friday, when I put the 1000 parts in it, and take it for a test drive. Guess I made the right choice on using the ODP.Net, instead of the Microsoft equivalent, since the latter is being phased out. Today is day 3, guess I'm making good progress with it. I decided to try it because of the complaints I received using SQL Server 2008 from customers that refused to buy my ecommerce software. They said they used a Java SQL Server, and that they wouldn't use that piece of junk, I didn't know what to make of that comment. So when I mentioned to this customer that I would use Oracle for there project, they got all excited about it. Just out of curiosity, what do think of the Oracle 11.g Express?
I have never used the express version, but I understand that functionality is almost the same as the standard version except that it uses only one processor and maximum database size of 4GB. There's You will also only find bitmap and cluster indexes on the enterprise edition So for development and small applications with low performance demands it should be just fine. Just keep in mind that there is no built in backup in the express version, so if you're having a catastrophic failure you're fucked. Unless you create your own backup, which isn't overly easy. But flashback queries works, and that's what I use in 99% of the cases anyway.
People say nothing is impossible, but I do nothing every day.
-
I needed that chart. I used a char for boolean Y/N, just going to change it to a number with 0/1. At the moment, I'm not that thrilled with using it, but on day 2, I got all my stuff working fine. I won't see any thing that I can measure till Friday, when I put the 1000 parts in it, and take it for a test drive. Guess I made the right choice on using the ODP.Net, instead of the Microsoft equivalent, since the latter is being phased out. Today is day 3, guess I'm making good progress with it. I decided to try it because of the complaints I received using SQL Server 2008 from customers that refused to buy my ecommerce software. They said they used a Java SQL Server, and that they wouldn't use that piece of junk, I didn't know what to make of that comment. So when I mentioned to this customer that I would use Oracle for there project, they got all excited about it. Just out of curiosity, what do think of the Oracle 11.g Express?
jkirkerx wrote:
I needed that chart. I used a char for boolean Y/N, just going to change it to a number with 0/1.
There's nothing wrong with using Y/N as such, it uses only one byte of storage just like the zero, while the one uses two bytes. But 0/1 implicitly translates to boolean TRUE/FALSE in dot.net, while Y/N needs a bit of logic to convert to a boolean. Not that I recommend implicit conversions.
People say nothing is impossible, but I do nothing every day.
-
jkirkerx wrote:
I needed that chart. I used a char for boolean Y/N, just going to change it to a number with 0/1.
There's nothing wrong with using Y/N as such, it uses only one byte of storage just like the zero, while the one uses two bytes. But 0/1 implicitly translates to boolean TRUE/FALSE in dot.net, while Y/N needs a bit of logic to convert to a boolean. Not that I recommend implicit conversions.
People say nothing is impossible, but I do nothing every day.
I think it's 11 gigs, thus the name 11g. I'm going to 0/1 on the boolean, just use to it. I'll have to look up the backup feature, but it's 1 cpu 1 core, 1 gig, oh well it's free to use. I'm starting to like it, makes sense now. [Day3] I got the ODP client software working on the web server, the xcopy version. And the 11gXE working on the database server and tested the connection added SQL Explorer and EMS SQLServer, took about an hour to download, extract and run. My asp.net code is working using the ODP client, so far so good. I need to get my tables or my table file from my computer to the database server. In SQL Server 2008, I can just copy the files over and attach, is that possible on Oracle?