Oracle默认有多个用户,最基本的有2个,分别是sys,system。
查看用户相关命名:
select * from dba_users; 查看数据库所有用户信息,前提是dba账号,如sys,system。
select * from user_users;查询当前用户信息。
select * from all_users; 查询当前用户所能管理的所有用户。
修改账号信息
alter user user_name account unlock;解锁账号user_name
alter user user_name identified by password;修改账号user_name的密码
查询表空间信息
select tablespace_name from dba_tablespaces;所有的表空间select table_name from dba_all_tables where tablespace_name = tablespacename;//查询具体表空间下的所有表
Oracle导入dmp文件
imp system/AntThinkingor23@orcl file=D:/tchevadb/tchevadb.dmp log=D:/tchevadb/log.txt ignore=y full=y