无密码登陆:sys as sysdba
查看当前的所有数据库:select */name from v$database;
查看当前数据库连接用户:show user
查看当前数据所有表:select table_name from all_tables;
查看结构:如表结构:desc table1 --需在命令窗口模式下
新建数据库用户:create user username identified by password
授权:grant dba to username
更改数据库用户密码:alter user username identified by password
查看数据库里面所有用户,前提是你是有dba权限的帐号,如sys,system:select * from dba_users
查看你能管理的所有用户:select * from all_users
查看当前用户信息 :select * from user_users
导出:exp system/[email protected] file=d:\daochu.dmp full=y
导入:imp
system/[email protected] file=d:\daochu.dmp
时间: 2024-11-05 18:46:41