您的位置:首页 > 数据库 > Oracle

oracle 10g登陆及scott解锁

2008-09-12 11:50 253 查看
http://yu-gao.blogspot.com/2008/03/oracle-10g-scott.html

事先启动数据库

①用sys连接到数据库:sqlplus / as sysdba
②alter user scott account unlock
③exit
④sqlplus scott/tiger
⑤一般提示需要修改密码,修改完毕即可使用。
⑥show user; USER is "SCOTT" 修改成功!

使用scott用户,是因为一般scott用户下建立了默认的table用来使用学习,很方便。有以下几个方法可以查询scott用户下面的表:
①select table_name,column_name from dba_tab_cols where owner='SCOTT' order by table_name; (系统用户)
②select * from cat; (scott用户)
③select * from user_tables (scott用户)
④select * from tab; (scott用户)
⑤select owner,table_name from dba_tables where OWNER='SCOTT'; (系统用户)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: