oracle 数据库登陆
管理员登陆语句
账号要加上 as sysdba 例如:sys as sysdba
显示当前用户 SHOW USER;
显示系统拥有哪些用户 SELECT * FROM all_users;
新建用户并授权 CREATE USER USER_NAME IDENTIFIED BY USER_PASSWORD; (默认建在SYSTEM表空间下)
GRANT CONNECT,RESOURCE TO A;(授权)
连接到新用户 conn USER_NAME/ USER_PASSWORD
对普通账号解锁 ALTER USER scott ACCOUNT UNLOCK;
对口令进行修改 ALTER USER soctt IDENTIFIED BY tiger;
查询当前用户下所有的对象 SELECT * FROM tab;