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.

<str<strong>on</strong>g>Soluti<strong>on</strong></str<strong>on</strong>g> <str<strong>on</strong>g>Guide</str<strong>on</strong>g> <str<strong>on</strong>g>for</str<strong>on</strong>g> <str<strong>on</strong>g>Migrating</str<strong>on</strong>g> <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> <strong>on</strong> <strong>UNIX</strong> <strong>to</strong> <strong>SQL</strong> <strong>Server</strong> <strong>on</strong> Windows 81Table 5.2 captures some of the relati<strong>on</strong>s between tablespaces in <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> and databasesin <strong>SQL</strong> <strong>Server</strong> that are not obvious in Figure 5.2.Table 5.2: <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> Tablespaces and <strong>SQL</strong> <strong>Server</strong> Functi<strong>on</strong>al Equivalents<str<strong>on</strong>g>Oracle</str<strong>on</strong>g>System tablespaceTemporary tablespaceUndo (Rollback) tablespaceOnline Redo log"App Data" tablespace"App Index" tablespaceN/AN/A<strong>SQL</strong> <strong>Server</strong>master databasetempdb databaseTransacti<strong>on</strong> logTransacti<strong>on</strong> log"App" database —"Data" filegroup"App" database —"Index" filegroupmodel databasemsdb databaseThe following list describes how <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> functi<strong>on</strong>ality is implemented in <strong>SQL</strong> <strong>Server</strong>:●●●●●Each of the <strong>SQL</strong> <strong>Server</strong> databases has its own security structures, such as users,privileges (permissi<strong>on</strong>s), and roles.Each of the <strong>SQL</strong> <strong>Server</strong> databases has its own administrative roles that bes<strong>to</strong>wprivileges <strong>on</strong> the database.In <strong>SQL</strong> <strong>Server</strong>, the system catalog — which is analogous <strong>to</strong> the <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> datadicti<strong>on</strong>ary — is broken up between the individual databases and the masterdatabase.In <strong>SQL</strong> <strong>Server</strong>, each of the databases has its own transacti<strong>on</strong> log files, whichcombine the functi<strong>on</strong>s of the <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> <strong>on</strong>line redo logs and rollback segments.The tempdb database provides temporary s<strong>to</strong>rage <str<strong>on</strong>g>for</str<strong>on</strong>g> the entire <strong>SQL</strong> <strong>Server</strong>instance, and the temporary tablespace in <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> is comm<strong>on</strong> <strong>to</strong> the entire <str<strong>on</strong>g>Oracle</str<strong>on</strong>g>instance.Tablespaces and filegroups provide the ability <strong>to</strong> better distribute data across multiplefiles <str<strong>on</strong>g>for</str<strong>on</strong>g> the purposes of per<str<strong>on</strong>g>for</str<strong>on</strong>g>mance. The grouping also helps ease administrati<strong>on</strong> ofbackup and recovery, maintenance, availability, and so <strong>on</strong>.Each <strong>SQL</strong> <strong>Server</strong> database is created with a primary file bel<strong>on</strong>ging <strong>to</strong> the default primaryfilegroup. Opti<strong>on</strong>ally, sec<strong>on</strong>dary datafiles can be added <strong>to</strong> the primary filegroup, oradditi<strong>on</strong>al filegroups can be created. The locati<strong>on</strong> of the files bel<strong>on</strong>ging <strong>to</strong> a database isrecorded in the master database and the primary file <str<strong>on</strong>g>for</str<strong>on</strong>g> the database. Data added <strong>to</strong>objects of a filegroup are proporti<strong>on</strong>ally filled across all files bel<strong>on</strong>ging <strong>to</strong> the filegroup.A comm<strong>on</strong> c<strong>on</strong>cern am<strong>on</strong>g users when creating <strong>SQL</strong> <strong>Server</strong> databases is the lack of themultiplexing feature available in <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> <str<strong>on</strong>g>for</str<strong>on</strong>g> c<strong>on</strong>trol files and redo logs. This is not ac<strong>on</strong>cern because <strong>SQL</strong> <strong>Server</strong> recommends the use of striped and mirrored devices(RAID 0+1) <str<strong>on</strong>g>for</str<strong>on</strong>g> transacti<strong>on</strong> logs <strong>to</strong> preserve the level of protecti<strong>on</strong> against hardwarefailure obtained by log multiplexing. <strong>SQL</strong> <strong>Server</strong> recommends using RAID 0+1 <str<strong>on</strong>g>for</str<strong>on</strong>g> alldatabase datafiles. If RAID 0+1 cannot be implemented, at a minimum RAID 5 should beused <strong>to</strong> provide <strong>to</strong>lerance <str<strong>on</strong>g>for</str<strong>on</strong>g> hard disk failure. Apart from file systems, <strong>SQL</strong> <strong>Server</strong> alsosupports the use of raw partiti<strong>on</strong>s.S<strong>to</strong>rage Definiti<strong>on</strong> <str<strong>on</strong>g>for</str<strong>on</strong>g> Tables and IndexesIn <str<strong>on</strong>g>Oracle</str<strong>on</strong>g>, the s<strong>to</strong>rage definiti<strong>on</strong> is used <strong>to</strong> specify the characteristics of tables andindexes. The following list provides in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong> <strong>on</strong> how these characteristics migrate <strong>to</strong><strong>SQL</strong> <strong>Server</strong>.

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

Saved successfully!

Ooh no, something went wrong!