Download presentation
Presentation is loading. Please wait.
Published byByron Gordon Modified over 8 years ago
1
Beware of the Dark Side A Guided Tour of Oracle for the SQL Server DBA David Postlethwaite
2
SQLSaturday #467 Sponsors
3
About Me David Postlethwaite Liverpool Victoria LV= SQL and Oracle DBA MCSE 2012 Data Platform MCITP 2008, 2005 Oracle OCA 25 years IT Experience 6 years as DBA david@clunyweb.co.uk Blog: gethynellis.com 3 |
4
Introduction Oracle “Selecting a database is a bit like picking a religion. There are pros and cons to each, and the discussions run hot and heavy. ” “Love it or hate it, you can’t hide from it Oracle is out there” 4 |
5
Lies, Statistics and Prejudice The Passion The Internet is full of articles extolling the virtues of SQL and Oracle And plenty criticising them All are biased
6
History 1979 Oracle first released 1985 Oracle Client Server 1989 SQL Server v1 on OS/2 (16 Bit) 1992 Oracle supports 64 Bit 1993 SQL Server 4.2 on Windows NT (16 Bit) 1997 Oracle supports java, http and Linux 1997 SQL Server 7.0 2001 Oracle RAC (Real Application Clusters) 2003 Oracle 64 Bit for Linux 2003 SQL 2000 on 64 Bit 2007 Oracle 11g supports Windows 2012 SQL Always On
7
Oracle Platforms (12c) Microsoft Windows (64 bit) Linux x86 64 Solaris (SPARC and x86-64) HP-UX Itanium OpenVMS (IA64) AIX zLinux 64 Oracle Cloud Microsoft Azure
8
Oracle Add Ons More than just a DBMS Development Tools Oracle Forms Oracle Apex Oracle Edge Java Middleware PeopleSoft E Business Suite Oracle Financials JD Edwards WebCenter BI Tools Web Logic Operating Systems Solaris Linux Physical Servers Sun Sparc Sun x86 Oracle Super Cluster Sun Blade Servers Virtual Servers Oracle Private Cloud Appliance Cloud Oracle Managed Cloud Services
9
Oracle Editions Express Edition Standard Edition One Standard Edition Enterprise Edition Maximum 1 CPU2 Sockets4 SocketsNo Limit RAM 1GBOS Max Database Size 11GBNo Limit Download from oracle.com Many Enterprise features require extra licence
10
Oracle Certification Oracle Certified Associate (OCA) Oracle Certified Professional (OCP) Oracle Certified Master (OCM) (11g)
11
Instance, Database and Schema memory processes master Data file Data file Log file Log file File group model Data file Data file Log file Log file File group tempdb Data file Data file Log file Log file File group msdb Data file Data file Log file Log file File group User DB 1 Data file Data file Log file Log file File group schema User DB 2 Data file Data file Log file Log file File group schema SQL Server Instance
12
Instance, Database and Schema memory processes system Data file Data file Table space Oracle Instance undo Data file Data file Table space sysaux Data file Data file Table space temp Data file Data file Table space Redo Log Data file Data file tablespace (s)Pfile (init.ora) (s)Pfile (init.ora) Control file database JohnSmith AdventureWorks UserSchema1 Data file Data file tablespace Data file Data file tablespace
13
Instance, Database and Schema
14
Storage Structure Log file Log file User Schema 1 Data file Data file Tablespace 1Tablespace 2 Data file Data file Data file Data file Data file Data file User Database 1 Data file Data file primary filegroupfilegroup 2 Data file Data file Data file Data file Data file Data file User Schema 2 Oracle Schema SQL Server Database undo tablespace redo logs User Schema 3
15
File Structure 2k, 4k,8k,16k or 32k 8k only
16
Mapping of Tablespaces to Databases master database resource database tempdb database model database msdb database system tablespace sysaux tablespace temporary tablespace user file Transaction log user tablespace undo tablespace redo logs data dictionary Oracle SQL Server User database User schema
17
Start up Procedure Sqlserver.exe oracle.exe registry master database tempdb database model database msdb database user database transaction log control file system tablespace sysaux tablespace temporary tablespace user tablespace undo tablespace redo logs Spfile (init.ora) idle nomount mount open
18
Viewing Oracle Tools for Oracle SQL Plus SQL Developer OEM Oracle Enterprise Manager (Grid) Third Party Toad
19
DEMO Sqlplus / as sysdba show user startup - nomount - mount - open Select * from v$instance (don’t forget the semi colon) Select status from v$instance; Create user JohnSmith identified by password123
20
Backups SQL Backups.BAK file Oracle Backup Backup is literally copying files to another location Cold /Offline (or consistent) backups Hot / Online (or inconsistent) backups Archive log Mode “alter tablespace begin backup” Recover Manager RMAN Automates and configures backups and restores But you still need a scheduler to run RMAN commands
21
TNS and How to Connect TNS Transparent Network Substrate SET TNS_Admin= C:\app\oracle\product\12.1.0\dbhome\NETWORK\ADMIN TNSNames.ora Production = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = server1)(PORT = 1521) ) (CONNECT_DATA = (SERVICE_NAME= ora12c) ) ) Listener Listener.ora Sqlnet.ora sqlplus.exe davidp@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=server1t)(PORT=1521)) (CONNECT_DATA=(SID=ora12c)))
22
SQL Linked Server Linked Server on SQL to Oracle
23
Mapping of Objects Microsoft SQL ServerOracle instance (server)database schema no direct equivalent. file grouptable space loginuser /schema useruser / schema permissionprivilege indexed viewmaterialized view (snapshot) t-sqlpl-sql error Logsalert log transaction Log fileredo logs execution planexplain plan
24
Architecture
25
Any Questions Conclusion Hopefully you now have a better understanding of Oracle And will be able to converse with Oracle DBAs more easily Q & A david@clunyweb.co.uk Blog: gethynellis.com www.linkedin.com/in/davidpostlethwaite/
26
SQLSaturday #467 Sponsors
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.