Click here to Skip to main content
15,891,828 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Moving into new territory... Pin
kmoorevs6-Aug-15 12:57
kmoorevs6-Aug-15 12:57 
GeneralRe: Moving into new territory... Pin
Sander Rossel6-Aug-15 20:32
professionalSander Rossel6-Aug-15 20:32 
GeneralRe: Moving into new territory... Pin
Thornik7-Aug-15 1:15
Thornik7-Aug-15 1:15 
GeneralRe: Moving into new territory... Pin
Sander Rossel7-Aug-15 1:25
professionalSander Rossel7-Aug-15 1:25 
GeneralRe: Moving into new territory... Pin
Jan Holst Jensen27-Aug-15 1:37
Jan Holst Jensen27-Aug-15 1:37 
GeneralRe: Moving into new territory... Pin
Bruce Patin7-Aug-15 4:15
Bruce Patin7-Aug-15 4:15 
GeneralRe: Moving into new territory... Pin
Sander Rossel7-Aug-15 5:20
professionalSander Rossel7-Aug-15 5:20 
GeneralRe: Moving into new territory... Pin
Kirk 103898217-Aug-15 5:45
Kirk 103898217-Aug-15 5:45 
Sander,
It is much harder to go the other way for me.
Utter shock when my coworker hit a breakpoint, and the SQL Server locked up until he continued.
I can HONESTLY SAY I have never seen Oracle do that. Report blocks because user is editing a record. Ouch.

Okay, so after MANY MANY years of doing Oracle. Get a decent tool to work with Oracle.
I use Toad, SQL Navigator (both too expensive), and recently: DevArt dbForge Studio for Oracle.

Straight up, SQL Server is easier to backup/restore since it is built into the tool.
Integration to VS is not as nice.

But with dbForge, you should be able to navigate the DB and write the code you want.
They have a free version! Play with it. The paid version is well worth it (I Pay).
I put the free version out on servers I maintain for quick access.

Oracle suffers because it is NOT a user-driven environment. It was designed for SysAdmins,
and DBAs who had been trained to use it properly.

PL/SQL does not have many limitations. And the best part. I have ported the entire DB from Windows 32 bit to a Linux 64 Bit, without changing a single line of PL/SQL. For many years, PL/SQL was so stable that testing our apps in new versions requires ZERO changes. Just import the DB. Done. (BTW, I feel that importing an OLD DB into a new version of Oracle is much more transparent/easier than learning how to do it in MSSQL Server)

BTW, you lose #TempTables. this sucks, but Oracle supports nested SQL in ways that I never really needed the #TempTables:
Select A., B. from (SELECT something from XXX) A, (SELECT other from ZZZ) B where A.X=B.X;

I have nested them about 7 deep, never had an issue.

Read: AskTom.Oracle.Com
Just about Every question asked is answered in a strict Engineering Approach.
Also, you will learn how to see the internals of what the query does, how, why, and where it is slow.

Google most of your answers with Oracle as the first string: "Oracle create table as"
And you will find a ton of references. CTAS is one of the differences between oracle and T-SQL.
I prefer: Create Table XYZ as Select * from ...;

You must select from a table. There is no "Select 'Hello'" in Oracle.
you do "Select 'Hello' from Dual' (Dual is a simple table with a dummy column and only one row).

You will have more powerful functions and procedures than you get inside of T-SQL (IMO).
Functions can cache results for speed. be tied to table, so updates on a table clear the cache!!!

In general, I feel the difference is:
- Oracle was Designed for Large Databases, with DBAs (sometimes multiple), with an eye on SPEED,
and GUARANTEEING no key violations, and supporting thousands of users with low impact on each other
- SQL Server was gradually upgraded to add features, and is MUCH easier to manage, but behaves more like a desktop DB. I have seen serious issues with scaling, and witnessed duplicate primary keys!

We have single Oracle Boxes that search C1 LIKE 'XXX%' or C2 LIKE 'XXX%'...
Across 60 million rows of data, and average about 8-10ms with 5ms - 20ms response.
WHILE users are deleting 200,000 rows and inserting 200,000 rows at the same time!!!
(20-30% of the DB is completed deleted, re-inserted (ie, updated) every day while being used)
With FULLY CONSISTENT Queries (no dirty reads).

I have NEVER been able to get that kind of performance out of MSSQL. In fact, this started as an MSSQL DB many years ago, and it could not keep up. Had to use dirty reads, which gave "funky" results, and still could not keep up.

Finally, this is REALLY important to understand:
oracle uses UNDO and REDO to give you a CONSISTENT View @ a specific time (the time you ran your query). NOTHING that happens to the DB after you open a query impacts your query. Even dropping the table!

Select * from t; -- Session 1, returns 10 rows
truncate table t; -- Session 2: has no affect on the query, it still has 10 rows to loop over!
drop table t; -- Session 3; has no affect on the query, it still has 10 rows to loop over!

Oracle uses the UNDO/REDO data to make YOUR SESSION (ie, every session) see only committed data that was visible at the time the query was open. This is REALLY AWESOME.

The tools for debugging Oracle exist. Spend some time, play with the tools. Tom Kyte has a couple of books, check them out on Amazon. I think one or more of them may be available as a PDF.

If you ask SPECIFIC questions, I will be willing to share what I know. TOAD is the most popular tool among the professionals, but I find it WAY over priced (I consult, I paid $1,500 for SQL Navigator many years ago, and I loved it, but I felt crippled without it. The choice to go to DevArt was based on having a Free Version that worked the same with fewer features that could be on the Servers I have to support).

I believe Oracle is "harder" to work with, but more accurately reflects how things should be done. AutoIncrement keys are great in a single user DB. Oracles Sequences make a LOT more sense. especially when you have to scale to massive levels.

HTH
GeneralRe: Moving into new territory... Pin
Sander Rossel7-Aug-15 12:58
professionalSander Rossel7-Aug-15 12:58 
GeneralRe: Moving into new territory... Pin
Kirk 103898217-Aug-15 13:21
Kirk 103898217-Aug-15 13:21 
GeneralRe: Moving into new territory... Pin
Sander Rossel7-Aug-15 23:37
professionalSander Rossel7-Aug-15 23:37 
GeneralRe: Moving into new territory... Pin
jschell7-Aug-15 11:47
jschell7-Aug-15 11:47 
GeneralRe: Moving into new territory... Pin
Sander Rossel7-Aug-15 12:46
professionalSander Rossel7-Aug-15 12:46 
GeneralRe: Moving into new territory... Pin
BrainiacV10-Aug-15 4:22
BrainiacV10-Aug-15 4:22 
GeneralRe: Moving into new territory... Pin
Mark-Harrington10-Aug-15 12:01
Mark-Harrington10-Aug-15 12:01 
GeneralRe: Moving into new territory... Pin
Sander Rossel10-Aug-15 12:49
professionalSander Rossel10-Aug-15 12:49 
GeneralWSO FOSW OTD 06. Aug 2015 Pin
HobbyProggy5-Aug-15 22:07
professionalHobbyProggy5-Aug-15 22:07 
GeneralRe: WSO FOSW OTD 06. Aug 2015 Pin
OriginalGriff5-Aug-15 22:24
mveOriginalGriff5-Aug-15 22:24 
GeneralRe: WSO FOSW OTD 06. Aug 2015 Pin
super5-Aug-15 22:39
professionalsuper5-Aug-15 22:39 
GeneralRe: WSO FOSW OTD 06. Aug 2015 We have a winner! Pin
HobbyProggy5-Aug-15 22:42
professionalHobbyProggy5-Aug-15 22:42 
GeneralRe: WSO FOSW OTD 06. Aug 2015 We have a winner! Pin
OriginalGriff5-Aug-15 22:48
mveOriginalGriff5-Aug-15 22:48 
GeneralRe: WSO FOSW OTD 06. Aug 2015 We have a winner! Pin
Power Puff Boy5-Aug-15 23:01
Power Puff Boy5-Aug-15 23:01 
GeneralRe: WSO FOSW OTD 06. Aug 2015 We have a winner! Pin
HobbyProggy5-Aug-15 23:07
professionalHobbyProggy5-Aug-15 23:07 
GeneralRe: WSO FOSW OTD 06. Aug 2015 We have a winner! Pin
OriginalGriff5-Aug-15 23:26
mveOriginalGriff5-Aug-15 23:26 
GeneralRe: WSO FOSW OTD 06. Aug 2015 We have a winner! Pin
HobbyProggy5-Aug-15 23:29
professionalHobbyProggy5-Aug-15 23:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.