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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

148 Developing: Databases — <str<strong>on</strong>g>Migrating</str<strong>on</strong>g> the Database Usersb.Obtain the characteristics of user accounts in <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> that were identified insubstep a.The following statement can be executed <strong>to</strong> gather in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong> <strong>on</strong> each of theuse rs <strong>to</strong> be migrated:SELECT du.username,DECODE(du.password,'EXTERNAL','EXTERNAL','DB')"AUTHENTICATION MODE",du.default_tablespace, du.temporary_tablespace,dp.resource_name, dp.limitFROM dba_users du, dba_profiles dpWHERE du.profile = dp.profileAND dp.resource_type = 'PASSWORD'AND du.username = 'OE'where OE is the name of the user that is being migrated.The privileges granted <strong>to</strong> OE user are:USERNAME AUTHENTICATION MODE DEFAULT_TABLESPACETEMPORARY_TABLESPACE RESOURCE_NAMELIMITOEDBEXAMPLETEMPFAILED_LOGIN_ATTEMPTS UNLIMITEDOEDBEXAMPLETEMPPASSWORD_LIFE_TIME UNLIMITEDOEDBEXAMPLETEMPPASSWORD_REUSE_TIME UNLIMITEDOEDBEXAMPLETEMPPASSWORD_REUSE_MAX UNLIMITEDOEDBEXAMPLETEMPPASSWORD_VERIFY_FUNCTION NULLOEDBEXAMPLETEMP PASSWORD_LOCK_TIME UNLIMITEDOE DB EXAMPLETEMP PASSWORD_GRACE_TIME UNLIMITEDc.Create <strong>SQL</strong> <strong>Server</strong> login accounts that provide access <strong>to</strong> the <strong>SQL</strong> <strong>Server</strong>instance.Because the <str<strong>on</strong>g>Oracle</str<strong>on</strong>g> account in this example is database-authenticated andn<strong>on</strong>e of the password features are in use, the <strong>SQL</strong> <strong>Server</strong> login can be createdas a <strong>SQL</strong> <strong>Server</strong>-authenticated login.The following commands can be executed <strong>to</strong> create the <strong>SQL</strong> <strong>Server</strong> login <str<strong>on</strong>g>for</str<strong>on</strong>g>the user OE with the password OE in the HRDATA database in<strong>to</strong> which the HRschema's objects are migrated:Use MASTEREXEC sp_addlogin@loginame='OE',@passwd='OE',@defdb='HRDATA'd. Create a user account in each of the databases in which the schema's objectshave been migrated.The databases in which user accounts have <strong>to</strong> be created depend <strong>on</strong> the<str<strong>on</strong>g>Oracle</str<strong>on</strong>g> schemas <str<strong>on</strong>g>for</str<strong>on</strong>g> which the user has privileges and the <strong>SQL</strong> <strong>Server</strong>

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

Saved successfully!

Ooh no, something went wrong!