单项选择题

Examinethecommandsexecutedinthefollowingsequence:1:SQL>CREATEROLEmgrrole;2:SQL>GRANTcreateuser,selectanytable,connect,resourceTOmgrrole;3:SQL>GRANTselect,updateONsh.salesTOmgrrole;4:SQL>CREATEROLEceoIDENTIFIEDBYboss;5:SQL>GRANTmgrrole,dropanytable,createanydirectoryTOceo;6:SQL>GRANTceoTOmgrrole;Whichstatementistrueabouttheabovecommands()
A.Thecommandsexecutesuccessfully.
B.Command6producesanerrorbecauseofcircularrolegrant.
C.Command5producesanerrorbecausearolecannotbegrantedtoanotherrole.
D.Command3producesanerrorbecausetheMGRROLErolealreadycontainssystemprivileges.
E.ThetablecreatedbyHRremainsandHRstillhastheCREATETABLEsystemprivilege.
F.ThetablecreatedbyHRremainsandHRcangranttheCREATETABLEsystemprivilegetootherusers.

A.salesTOmgrrole;4:SQL>CREATEROLEceoIDENTIFIEDBYboss;5:SQL>GRANTmgrrole,dropanytable,createanydirectoryTOceo;6:SQL>GRANTceoTOmgrrole;Whichstatementistrueabouttheabovecommands()
A.Thecommandsexecutesuccessfully.
B.Command6producesanerrorbecauseofcircularrolegrant.
C.Command5producesanerrorbecausearolecannotbegrantedtoanotherrole.
D.Command3producesanerrorbecausetheMGRROLErolealreadycontainssystemprivileges.
E.ThetablecreatedbyHRremainsandHRstillhastheCREATETABLEsystemprivilege.
F.ThetablecreatedbyHRremainsandHRcangranttheCREATETABLEsystemprivilegetootherusers.
热门 试题