SQL/MX 3.2 Installation and Upgrade Guide (H06.25+, J06.14+)
Table Of Contents
- HP NonStop SQL/MX Release 3.2 Installation and Upgrade Guide
- Contents
- About this manual
- 1 Preparing to install SQL/MX
- 2 Installing SQL/MX
- Summary of installation tasks
- Preinstallation tasks
- Using the InstallSqlmx script
- Installing SQL/MX
- Verifying the SQL/MX installation
- Post-Installation tasks
- 3 Installing a sample database
- 4 Overview of SQL/MX system upgrade
- 5 Considerations for upgrading the system to SQL/MX Release 3.2
- 6 Upgrading the system to SQL/MX Release 3.2
- 7 Falling back from SQL/MX Release 3.2
- A Removing security administrator grants
- B Identifying tables that contain an IDENTITY Column
- C Identifying tables where the ownership has changed
- D Version management and interoperability
- SQL/MX releases
- Interoperability of SQL/MX releases
- Versions of SQL/MX software components
- E Conversions
- Index
?CATALOG_NAME
from definition_schema_version_3100.col_privileges as col_privileges
where col_privileges.grantor != -2
and not exists
( select
col_privileges2.table_uid,col_privileges2.grantor,col_privileges2.grantee,
col_privileges2.privilege_type,col_privileges.column_number
from definition_schema_version_3100.col_privileges as col_privileges2
where
(col_privileges.grantor = col_privileges2.grantee
or
col_privileges2.grantee = -1
)
and
col_privileges2.table_uid = col_privileges.table_uid
and
col_privileges.privilege_type = col_privileges2.privilege_type
and
col_privileges.column_number = col_privileges2.column_number
and
col_privileges2.is_grantable = 'Y'
);
insert into $$COMMANDS_TABLE$$
select distinct
'REVOKE ' ||
case privilege_type
when 'D' then 'DELETE'
when 'E' then 'EXECUTE'
when 'I' then 'INSERT'
when 'R' then 'REFERENCE'
when 'S' then 'SELECT'
else 'UPDATE'
end ||
case grants.column_number
when -1 then ''
else '(' || trim( cols.column_name ) || ')'
end ||
' ON ' ||
trim( catsys.cat_name ) ||
'.' ||
trim( schemata.schema_name ) ||
'.' ||
trim( objects.object_name ) ||
' FROM "' ||
user( grantee ) ||
'";'
from $$GRANTS_TABLE$$ as grants,
nonstop_sqlmx_$$SYSTEM$$.system_schema.schemata as schemata,
nonstop_sqlmx_$$SYSTEM$$.system_schema.catsys as catsys,
definition_schema_version_3100.cols as cols,
definition_schema_version_3100.objects as objects
where grants.catalog_name = ucase( ?CATALOG_NAME )
and
schemata.cat_uid = catsys.cat_uid
and
objects.schema_uid = schemata.schema_uid
and
objects.object_uid = grants.table_uid
and
cols.object_uid = grants.table_uid
and
(grants.column_number = -1 OR cols.column_number =
grants.column_number);
-- End Repeat for every catalog on the system...
-- Execute the following three statements only after repeating the above loop
-- for every catalog in the system...
log $$COMMANDS_FILE$$ clear;
select * from $$COMMANDS_TABLE$$;
56 Removing security administrator grants










