10.07.2015 Views

Ingres 9.2 Migration Guide - Actian

Ingres 9.2 Migration Guide - Actian

Ingres 9.2 Migration Guide - Actian

SHOW MORE
SHOW LESS

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

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

How You Perform an Upgrade Using Unload/ReloadSave Users, Groups, and RolesNote: This step is required only for a clean-install upgrade.To save users, groups,and roles1. As the installation owner, change directory to the iidbdb unload directorycreated in Step 1 of the upgrade procedure.2. Run the following SQL to save users, groups, and roles:sql iidbdb copy iiusergroup ( groupid=c0comma,groupmem=c0nl) into 'groups.out'\gocopy iirole(roleid=c0nl) into 'roles.out' \go create table role_tmp asselect role_name,grantee_namefrom iirolegrantwhere admin_option 'Y'\gocopy role_tmp(role_name = c0comma,grantee_name = c0nl) into 'rolegrants.out';drop role_tmp;\go\quit3. Run accessdb, and select Users, then SQLscript.A file called users.sql is written that will recreate all users, as they arecurrently defined.Note: SQLscript creates users only, and not the profiles, groups, or rolesassociated with each user. Roles and groups must be unloaded andreloaded for the script to generate the expected results.Destroy the DatabaseNote: This step is required only for an in-place upgrade.Destroy each database using the destroydb command.Upgrading Using Unload/Reload 63

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

Saved successfully!

Ooh no, something went wrong!