第一篇基本操作--解锁用户 alteruser 用户 accountunlock;--锁定用户 alteruser 用户 accountlock;alteruserscottaccountunlock;--创建一个用户 yc 密码为 acreateuser 用户名 identifiedby 密码;createuserycidentifiedbya;--登录不成功,会缺少 createsession 权限,赋予权限的语法 grant 权限名to 用户;grantcreatesessiontoyc;--修改密码 alteruser 用户名 identifiedby 新密码;alteruserycidentifiedbyb;--删除用户 dropuseryc;--查询表空间select*fromdba_tablespaces;--查询用户信息select*fromdba_users;--创建表空间 createtablespaceycspacedatafile'E:\oracle\app\product\11
0\dbhome_l\oradata\ycspace
dbfsize2mautoextendonnext2mmaxsize5moffline;--创建临时表空间 createtemporaryyctempspacetempfile'E:\oracle\app\product\11
0\dbhome_1\oradata\ycspace
dbfsize2mautoextendonnext2mmaxsize5moffline;--查询数据文件select*fromdba_data_files;--修改表空间--1、修改表空间的状态--默认情况下是 online,只有在非离线情况下才可以进行修改altertablespaceycspaceoffline;