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

Create successful ePaper yourself

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

User-Visible DBA EnhancementsAutomated Creation of Location DirectoriesBefore Version 2.6, the <strong>Ingres</strong> DBA had to manually create the directories foralternate locations as prescribed in the Database Administrator <strong>Guide</strong>. Thisstep had to be performed prior to creating a Location with accessdb, or couldbe deferred if Locations were created using EXEC SQL CREATE LOCATIONsyntax. To circumvent directory permissions problems, accessdb had to be runby the <strong>Ingres</strong> user whenever Locations were created, altered, or extended.This process is clarified and simplified in <strong>Ingres</strong> 2.6 with the following changes:• The <strong>Ingres</strong> server performs all manipulations of Location directories. Thisresolves the permissions problems of earlier releases and allows anyaccessdb user with the “maintain_locations” privilege to create, alter, orextend Locations.• The server automatically creates Location directories when aCREATE/ALTER LOCATION statement is executed, whether by accessdb oruser-invoked SQL. Because only missing directories are created, the DBAretains the ability to manually create as much, or all, of the Location pathas wanted before creating the Location.Using the example from the section Create an Area in UNIX in the DatabaseAdministrator <strong>Guide</strong>, the following directories will be verified or createdautomatically during the execution of:CREATE LOCATION new_loc WITH AREA='/otherplace/new_area', USAGE=(DATABASE)PermsDirectory/otherplace755 /otherplace/new_area755 /otherplace/new_area/ingres700 /otherplace/new_area/ingres/data777 /otherplace/new_area/ingres/data/defaultNotes:• Permissions are not changed for extant directories.• The top-level directory “/otherplace” must exist and will not be created bythe server.• Raw location directories (UNIX only) cannot be automatically created andmust be made with the MKRAWAREA utility, which must be run by “root.”The Locations may be created prior to MKRAWAREA but a warning will beissued noting that the utility must be run prior to their use.Features Introduced in <strong>Ingres</strong> 2.6 197

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

Saved successfully!

Ooh no, something went wrong!