###########################################################
# #
# (C) Ciber Nederland John Minkjan OMB101.blogspot.com #
# V001 Init Version #
# V002 Validated against OWB11gR2 #
# #
############################################################
#OMBCONNECT rep_owner/rep_owner@localhost:1521:orcl;
set ProjectList [list ENECO_DWH]
set GrantList [list READ]
set RoleList [list EVERYONE READ_ONLY]
foreach Project $ProjectList {
OMBCC '/$Project';
set OracleModuleList [OMBLIST ORACLE_MODULES]
foreach OracleModule $OracleModuleList {
put $OracleModule
foreach Role $RoleList {
foreach Grant $GrantList {
OMBGRANT OBJECT_PRIVILEGE $Grant \
ON ORACLE_MODULE '$OracleModule' \
CASCADE TO ROLE '$Role' ;
}
}
OMBCOMMIT;
OMBSAVE;
}
}
Till Next Time
No comments:
Post a Comment