oracle复习整理(一)//创建空间CREATETABLESPACE"ISTAUDIT"LOGGINGDATAFILE'E:\ORACLE\ORADATA\ISTAUDIT\ISTAUDIT
ora'SIZE2048MAUTOEXTENDONNEXT1024MMAXSIZEUNLIMITEDEXTENTMANAGEMENTLOCALSEGMENTSPACEMANAGEMENTAUTO;createusercamsidentifiedbycamsdefaulttablespacemagl;grantresource,connect,dbatocams;dropusercamscascade--CreatetheusercreateuserCAMSidentifiedby"CAMS"defaulttablespacemagltemporarytablespaceTEMPprofileDEFAULT;--Grant/RevokeroleprivilegesgrantconnecttoCAMSwithadminoption;grantdbatoCAMSwithadminoption;grantresourcetoCAMSwithadminoption;--Grant/RevokesystemprivilegesgrantalteranytabletoCAMS;grantcreateanytabletoCAMS;grantcreateanyviewtoCAMSwithadminoption;grantcreatesessiontoCAMSwithadminoption;grantdeleteanytabletoCAMS;grantselectanytabletoCAMS;grantunlimitedtablespacetoCAMSwithadminoption;