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 Upgrade from <strong>Ingres</strong> 6.4 Using Unload/ReloadRecreate Users, Groups, and RolesNote: This step is required only for a clean-installation upgrade.If your 6.4 installation has only a few <strong>Ingres</strong> users defined, you should use theaccessdb utility or the CREATE USER SQL statement to recreate those users inthe <strong>Ingres</strong> installation. As a guide, use the file users.out or refer to the 6.4installation.If you have many users, the following procedure recreates them in mass.As the installation owner, change directory to your iidbdb unloaddb directorywhere you stored the files from the step Save Users, Groups, and Roles.Run this SQL:sql '-u$ingres' iidbdb copy iiuser(name=c0comma,status=c0comma,default_group=c0nl) from 'users.out' \go update iiuserset default_priv = status, user_priv = status, flags_mask = case when default_group ' ' then 28 else 24 endwhere user_priv = 0 and flags_mask = 0;\gocopy iiusergroup(groupid=c0comma,groupmem=c0nl)from 'groups.out'\gocommit\go\quitWindows: Omit the quotes from the sql command line.<strong>Ingres</strong> has new user privileges that do not exist in 6.4. If you recreate usersusing the above bulk load procedure, you should review the added users withaccessdb to make sure that all user privileges are set the way you want them.In particular, review the definitions for any 6.4 “superusers.”<strong>Ingres</strong> handles the “update system catalog” privilege differently than did 6.4.You must explicitly grant this privilege to the <strong>Ingres</strong> user after you recreate it,with a grant statement, as follows:grant update_syscat on current installation to user-nameIf your 6.4 installation had roles defined, recreate them with the ADD ROLESQL statement. Use the file roles.out as a guide. Roles cannot be reliably bulkloadedfrom the 6.4 installation, so you must recreate them by hand. After yourecreate each role, issue the following SQL statement:grant rolename to public; commit104 <strong>Migration</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!