文档详情

吉林大学大型数据库设计与实现dba-15.ppt

发布:2025-06-08约2.09千字共18页下载文档
文本预览下载声明

ManagingUsers

ObjectivesAftercompletingthislesson,youshouldbeabletodothefollowing:CreatenewdatabaseusersAlteranddropexistingdatabaseusersMonitorinformationaboutexistingusers

Account

lockingTablespace

quotasTemporarytablespaceDefaulttablespaceRoleprivilegesResourcelimitsSecuritydomainDirectprivilegesAuthenticationmechanismUsersandSecurity

DatabaseSchemaSchemaObjectsTablesTriggersConstraintsIndexesViewsSequencesStoredprogramunitsSynonymsUser-defineddatatypesDatabaselinksAschemaisanamedcollectionofobjectsAuseriscreated,andacorrespondingschemaiscreatedUsercanbeassociatedonlywithoneschemaUsernameandschemaareoftenusedinterchangeably

ChecklistforCreatingUsersIdentifytablespacesinwhichtheuserneedstostoreobjects.Decideonquotasforeachtablespace.Assignadefaulttablespaceandtemporarytablespace.Createauser.Grantprivilegesandrolestotheuser.

CreatingaNewUser:

DatabaseAuthenticationSettheinitialpassword:CREATEUSERaaronIDENTIFIEDBYsoccerDEFAULTTABLESPACEdataTEMPORARYTABLESPACEtempQUOTA15mONdataPASSWORDEXPIRE;

CreatingaNewUser:

OperatingSystemAuthenticationCREATEUSERaaronIDENTIFIEDEXTERNALLYDEFAULTTABLESPACEUSERSTEMPORARYTABLESPACEtempQUOTA15mONdataPASSWORDEXPIRE;OS_AUTHENT_PREFIXinitializationparameterspecifiestheformatoftheusernamesDefaultstoOPS$

ChangingUserQuotaonTablespaceALTERUSERaaronQUOTA0ONUSERS;

DroppingaUserUsetheCASCADEclausetodropallobjectsintheschemaiftheschemacontainsobjects.UserscurrentlyconnectedtotheOracleservercannotbedropped

DROPUSERaaron;DROPUSERaaronCASCADE;

ObtainingUserInformationInformationaboutuserscanbeobtainedbyqueryingthedatadictionary.DBA_USERSDBA_TS_QUOTAS

SummaryInthislesson,youshouldhavelearnedhowto:CreateusersspecifyingtheappropriatepasswordmechanismControlusageofspacebyusers

Practice15OverviewThispracticecoversthefollowingtopics:

显示全部
相似文档