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 95b.GOFILEGROWTH=10)If the database is in ARCHIVELOG mode, then set the database <strong>to</strong> SimpleRecovery model; if it is in NOARCHIVELOG mode, then set <strong>to</strong> Full Recoverymodel. If the tablespace corresp<strong>on</strong>ding <strong>to</strong> the database is in NOLOGGINGmode, set the database <strong>to</strong> Bulk-Logged Recovery model. For more in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong><strong>on</strong> the recovery models available in <strong>SQL</strong> <strong>Server</strong>, refer <strong>to</strong>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_bkprst_4l83.aspIf the tablespace is in read <strong>on</strong>ly or offline mode, set the database <strong>to</strong> therespective mode after migrati<strong>on</strong> of the schema and data is complete.In this example, <strong>on</strong>ly the required primary filegroup with a primary file and thetransacti<strong>on</strong> log are created as part of the database creati<strong>on</strong>, and additi<strong>on</strong>alfilegroups and files are added in subsequent steps <strong>to</strong> enable dem<strong>on</strong>strati<strong>on</strong> offuncti<strong>on</strong>s such as adding filegroups and data files.C<strong>on</strong>figure the database.The mode <str<strong>on</strong>g>for</str<strong>on</strong>g> the <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> database can be found using the following query:SELECT log_modeFROM v$database3. Add sec<strong>on</strong>dary filegroups.The HR_INDX filegroup can be added using the following commands:Use masterGOALTER DATABASE HRDATAADD FILEGROUP HR_INDXGO4. Add sec<strong>on</strong>dary datafiles.The Filename, Current Size, Au<strong>to</strong>extensibility, Max Size, and Increment Sizevalues retrieved from the <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> database are used in creating similar datafiles <str<strong>on</strong>g>for</str<strong>on</strong>g>the HRDATA database. The primary file has already been created <strong>to</strong> match thefirst file in the HR_DATA tablespace.Create additi<strong>on</strong>al datafiles <str<strong>on</strong>g>for</str<strong>on</strong>g> the filegroups using the following commands:ALTER DATABASE HRDATAADD FILE( NAME='HRDATA_02',FILENAME='E:\mssql\Mssql$corp1\data\hr_data_02.ndf',SIZE=100MB,MAXSIZE=1000MB,FILEGROWTH=100MB)GOALTER DATABASE HRDATAADD FILE( NAME='HRINDX_01',FILENAME='F:\mssql\Mssql$corp1\data\hr_indx_01.ndf',SIZE=1000MB,FILEGROWTH=0),( NAME='HRINDX_02',FILENAME='F:\mssql\Mssql$corp1\data\hr_indx_02.ndf',SIZE=100MB,

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

Saved successfully!

Ooh no, something went wrong!