12.07.2015 Views

Solution Guide for Migrating Oracle on UNIX to SQL Server - Willy .Net

Solution Guide for Migrating Oracle on UNIX to SQL Server - Willy .Net

Solution Guide for Migrating Oracle on UNIX to SQL Server - Willy .Net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

76Developing: Databases — <str<strong>on</strong>g>Migrating</str<strong>on</strong>g> the Database Architecturemanagement is similar <strong>to</strong> SGA sizing in <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> but without the complicati<strong>on</strong>s of tuning theindividual cache comp<strong>on</strong>ents. To c<strong>on</strong>figure <strong>SQL</strong> <strong>Server</strong> <strong>to</strong> use more than 3 GB of memory using T-<strong>SQL</strong>,enter the following commands:USE mastersp_c<strong>on</strong>figure 'show advanced opti<strong>on</strong>', 1RECONFIGUREGOsp_c<strong>on</strong>figure 'awe enabled', 1RECONFIGUREGOsp_c<strong>on</strong>figure 'max server memory', 6000RECONFIGUREGOBecause the memory requirements of a <strong>SQL</strong> <strong>Server</strong> instance are not the same as anequivalent <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> instance, the <strong>SQL</strong> <strong>Server</strong> memory size has <strong>to</strong> be tuned during amigrati<strong>on</strong>. The following Per<str<strong>on</strong>g>for</str<strong>on</strong>g>mance M<strong>on</strong>i<strong>to</strong>r counters can be used <strong>to</strong> check the amoun<strong>to</strong>f memory <strong>SQL</strong> <strong>Server</strong> is using:● <strong>SQL</strong> <strong>Server</strong>: Buffer Manager: Total Pages● <strong>SQL</strong> <strong>Server</strong>: Memory Manager: Total <strong>Server</strong> Memory (KB)● Process: Working SetThe dbcc memorystatus command can be used <strong>to</strong> view in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong> about memoryallocati<strong>on</strong>. For more in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong> about memory usage and this command, refer <strong>to</strong>http://support.microsoft.com/?id=271624.The LOCK_SGA initializati<strong>on</strong> parameter can be implemented in <strong>SQL</strong> <strong>Server</strong> using setworking set size. The allocated memory stays in physical memory and improvesper<str<strong>on</strong>g>for</str<strong>on</strong>g>mance because swapping is avoided. However, care should be taken thatallocating a fixed amount of memory <strong>to</strong> <strong>SQL</strong> <strong>Server</strong> does not impact the needs of otherapplicati<strong>on</strong>s running <strong>on</strong> the same server.Set the CPU Affinity<strong>SQL</strong> <strong>Server</strong> has the capability of defining CPU affinity where CPUs can be dedicated <strong>to</strong>an instance. This can be c<strong>on</strong>trolled using the affinity mask c<strong>on</strong>figurati<strong>on</strong> setting orEnterprise Manager. The priority boost c<strong>on</strong>figurati<strong>on</strong> setting can be used <strong>to</strong> prioritizethreads. <strong>SQL</strong> <strong>Server</strong> SP1 has added an IO_affinity_mask switch, which can used atinstance startup <strong>to</strong> reserve CPUs <strong>to</strong> handle disk I/O associated with the instance. Use ofthe IO_affinity_mask c<strong>on</strong>figurati<strong>on</strong> setting is <strong>on</strong>ly recommended <str<strong>on</strong>g>for</str<strong>on</strong>g> machines with morethan 16 CPUs.For more in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong> <strong>on</strong> setting up the I/O affinity mask, refer <strong>to</strong>http://support.microsoft.com/?kbid=298402.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!