SlideShare ist ein Scribd-Unternehmen logo
1 von 73
Running Oracle Effectively
On Windows
1993
Oracle 7.0
1995
You are not alone
Managing Resources
v$process X$KSUPR
CODE , HANDLES, LIBRARIES,SECURITY, ENVIRONMENT,MEMORY
Thread vs Process structures
www.sysinternals.com procexp vmmap procdump
Drilling into a Problem from the O/S
Downsides
Threads vs Processes
createThreadsyscall Allocates 1mb stack space.
Potential Workarounds
/userva
/PAE
USE_INDIRECT_DATA_BUFFERS
BUFFER CACHE only
orastack
createThread(...,stacksize)
Produces non standard .exe
Unpredictable failure mode
ORA-03113
Note 46001.1
64bit Windows
But What About
Device Driver
Maturity
OK Then Mixed 32/64bit not allowed No 32bit MDAC  No 32bit AV
OK Then The 64-bit shell cannot load 32-bit Inproc shell extensions
OK Then I.E cannot use 32bit activeX !
NTFS
Never The Same
sectors
clusters
Cluster size
db_block_size
FILESYSTEMIO_OPTIONS
Data Compression
Summary Use 64bit Windows Concurrency primarily limited by thread architecture You are not alone.  I/O Far less trouble than Unix.  Think about filesystem cluster size.
Public Domain or royalty free images Thanks to:   Wikipedia AletheaKontis Mrbill Office of the President of the United States Jeff Kubina Mark.Sze Freefoto.com Credits ,[object Object]
supporthtml.oracle.com

Weitere ähnliche Inhalte

Ähnlich wie Oracle on windows

Oracle & sql server comparison 2
Oracle & sql server comparison 2Oracle & sql server comparison 2
Oracle & sql server comparison 2
Mohsen B
 
Mac Forensics
Mac ForensicsMac Forensics
Mac Forensics
CTIN
 

Ähnlich wie Oracle on windows (20)

Flash-Specific Data Protection
Flash-Specific Data ProtectionFlash-Specific Data Protection
Flash-Specific Data Protection
 
os
osos
os
 
Modern CPUs and Caches - A Starting Point for Programmers
Modern CPUs and Caches - A Starting Point for ProgrammersModern CPUs and Caches - A Starting Point for Programmers
Modern CPUs and Caches - A Starting Point for Programmers
 
Rac&asm
Rac&asmRac&asm
Rac&asm
 
Solr on Docker - the Good, the Bad and the Ugly
Solr on Docker - the Good, the Bad and the UglySolr on Docker - the Good, the Bad and the Ugly
Solr on Docker - the Good, the Bad and the Ugly
 
Solr on Docker: the Good, the Bad, and the Ugly - Radu Gheorghe, Sematext Gro...
Solr on Docker: the Good, the Bad, and the Ugly - Radu Gheorghe, Sematext Gro...Solr on Docker: the Good, the Bad, and the Ugly - Radu Gheorghe, Sematext Gro...
Solr on Docker: the Good, the Bad, and the Ugly - Radu Gheorghe, Sematext Gro...
 
DataStax: Extreme Cassandra Optimization: The Sequel
DataStax: Extreme Cassandra Optimization: The SequelDataStax: Extreme Cassandra Optimization: The Sequel
DataStax: Extreme Cassandra Optimization: The Sequel
 
Oracle & sql server comparison 2
Oracle & sql server comparison 2Oracle & sql server comparison 2
Oracle & sql server comparison 2
 
It's always sunny with OpenJ9
It's always sunny with OpenJ9It's always sunny with OpenJ9
It's always sunny with OpenJ9
 
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
 
Oct2009
Oct2009Oct2009
Oct2009
 
Evolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave ProbertEvolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave Probert
 
2337610
23376102337610
2337610
 
4.Process.ppt
4.Process.ppt4.Process.ppt
4.Process.ppt
 
Oracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningOracle R12 EBS Performance Tuning
Oracle R12 EBS Performance Tuning
 
MySQL Oslayer performace optimization
MySQL  Oslayer performace optimizationMySQL  Oslayer performace optimization
MySQL Oslayer performace optimization
 
Prm dul is an oracle database recovery tool database
Prm dul is an oracle database recovery tool   databasePrm dul is an oracle database recovery tool   database
Prm dul is an oracle database recovery tool database
 
1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software Release
1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software Release1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software Release
1Z0-027 Exam-Oracle Exadata Database Machine Administration, Software Release
 
Mac Forensics
Mac ForensicsMac Forensics
Mac Forensics
 
Raid 1 3
Raid 1 3Raid 1 3
Raid 1 3
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Kürzlich hochgeladen (20)

Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Oracle on windows

Hinweis der Redaktion

  1. Hi and thanks for coming, finding your way into the bowels of Hall 9. I’m Niall Litchfield and the bio slide that isn’t here would tell you that I work as an Oracle Consultant for a company called Maxima – that means you can hire me – and that I am a member of the OakTable Network – that means you can find me upstairs or online and chat to me about Oracle related stuff. Today we’re going to be talking about running Oracle Effectively...
  2. Er, oh dear what happened there.
  3. Yep, running Oracle Effectively on the Windows platform. You might well be wondering what anyone is doing running the Oracle database on the Microsoft Windows platform. After all everyone knows that “blue screen” we just saw. That can’t be a reliable platform for Mission Critical Databases now can it. What we need is something like this.
  4. After all, surely all serious databases run on some proprietary variety of UNIX , or else on Linux platform. All serious DBAs are only happy with a screen that looks like this.
  5. On a computer that looks like this.
  6. . When it comes to database environments, surely the Windows environment is just a sideshow.
  7. Well before we get stuck in let me take you back to 1993. A time of some uncertainty
  8. People were wondering whether Steve Jobs would ever manage to sell software – since he had clearly failed at hardware, first at Apple and then at Next..
  9. Islamic terrorists were trying to blow up the World Trade Centre in New York.
  10. But it was also a time of new beginnings. A smooth talking liberal president had just been elected in the US, promising much.
  11. Czechoslovakia bloodlessly became 2 independent states.
  12. And Oracle 7.0 out a year or so got a brand new platform . Put simply, Oracle was the first relational database available on the Windows platform with Release 7 in 1993.
  13. You had to wait till 95 to get
  14. A Database coded by Microsoft on Microsofts flagship o/s.
  15. Since then Oracle has released the first 64bit DBMS on Windows, the first with support for .Net stored procedures, a complete Oracle environment integrated into the Visual Studio IDE and I’m sure a gazillion other things on Oracle’s marketing slide.
  16. Because of all this it may also surprise you to know how well Oracle competes on windows with SQL Server. Industry Figures are hard to get Actually they are easy to get by paying IDC $3.5k) but I am able to give you relative sales figures for SQL server and Oracle (on windows) from a couple of years ago now. That’s a 3rd of Oracle’s database revenue for that year.
  17. So if you are tasked with managing Oracle on Windows. Not only can it be done. It is being done, and being done in large numbers. This presentation isn’t really about how Windows is a core platform for Oracle though, its about how various decisions that Oracle and Microsoft have taken mean that resource management is a little different on Windows than on Unix alike platforms.
  18. As well as showing that I’m an old man a little earlier, now we’re going to show that I can be somewhat simplistic. The focus of today is on managing server resources
  19. As everyone with a cursory understanding of computer science is aware, there are four main resources that a computer operating system manages on behalf of the applications running on it. These are:The  CPUMemoryStorageThe  NetworkI’m only going to talk about the 3 in the diagram though – primarily for 2 reasons. I suck pretty bad at networks. And The implementation of tcp/ip is fairly standard on Windows.
  20. In system troubleshooting, you will usually be concerned about the usage of one or more of these scarce resources. We’ll manage hopefully to get through the 3 resources. Most of our focus however will be on the implications for CPU and memory usage and optimisation, particularly of some core design choice that differentiates Oracle on Windows from Oracle on every other platform.
  21. From within Oracle all looks much the same as on any other platform, on startup Oracle still allocates a process table per instance (controlled by the processes parameter) externalized as X$KSUPR. (Kernel Services User PRocess ).
  22. On windows each process executes in its own private virtual address space including the allocation of minimum and maximum working set sizes; opens handles to system objects and files; is governed by a security context a priority class and environment variables (if you’ve ever wondered why you don’t need to set Oracle SID when calling SQLPLUS on a single homed machine this is why);, and at least one thread of execution.
  23. A thread on the other hand is a much more lightweight object. (despite the diagram above). In particular thread creation and destruction is a relatively low cost operation.
  24. Just dump using livekd... Warn that this *may* kill the server.
  25. We will need a handy kitbag of available tools, at least partly because Microsoft historically have been poor at providing resource monitoring tools – though the underlying performance counter architecture is actually quite good.
  26. We have a veritable treasure trove of os level tools. Task manager – simple, basic available everywhere, Performance and Availability Monitor – more advanced – Windows 2008/Vista/Window 7Tlist – Windows debugging tools (and in some versions of resource kit) – which process has oci.dll open!!! Performance Monitor – build your own counter collections.
  27. We also have database level tools Sqldeveloper – demo the active sessions tool. Sql*plus .
  28. Talk about each – still no good free thread level monitor. Intel have a thread monitor as part of a commercial application profiling product, though it may not work with Oracle.
  29. DemoScripts on server Find_my_processGenerate_load
  30. So threads are , relatively, lightweight, fast to create, and provide easy access to shared memory
  31. As a direct result as you scale up the number of processes on 32bit windows your available working space for SGA and PGA gets smaller and smaller – typically somewhere around the 500 concurrent processes mark you’ll start hitting ORA-4030.
  32. Userva – user virtual address space bcd option – may know it as the /3gb boot ini switch. Increases userland memory to up to 3gb .
  33. The /3gb switch is not therefore useless, though it is obviously still limited. Rhetorical Question – server with 4gb or less ram.
  34. Remember thisAlso done by O/S2 – Windows Mobile &c.
  35. Only applies to
  36. 512k – 1mb – Try 700k as a start.
  37. Potentially best improvement
  38. < 700k => not safe
  39. 64 bit only
  40. Ah, so you are direct attaching the web cam to your serverOr the printer.Or installing a consumer graphics card. Or building your own database server from components.
  41. It’s been out ten years!
  42. 2 top are the important ones
  43. 2 top are the important ones
  44. 2 top are the important ones
  45. Physical disk sectors – usually but not always 512bytes
  46. Spaceallocation unit size power of 2 of sectors
  47. Chosen by volume size but usually 4k on windows boxes (medium sized business).
  48. 8k.
  49. Linux per old OTN Install Guide – Note time dominated by waits on log buffer space. – couldn’t determine test now – 7 years since I did it.
  50. Direct IO missing from howto – especially important for redo log writes.
  51. By contrast to the area of addressable memory, Windows-based systems have enjoyed an historic advantage over UNIX- and Linux-based systems in the area of disk I/O. Two particular facilities are of importance in designing a high-throughput system such as a database server: are asynchronous I/O and appropriate use of caching.
  52. Comment on idea of compressed NTFS for test/dev boxes – yes there’s a performance penalty – though not as much as you might think and yes
  53. Always 16 clusters
  54. Compressed Reads into an os buffer where it is uncompressed for both application and filesystem cache (doesn’t matter for us).