Blogger Information
Blog 85
fans 0
comment 0
visits 72683
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
ORACLE忘记用户名和密码、解锁、查询
Smile
Original
14308 people have browsed it

  一、Oracle忘记用户名和密码

  1、打开命令提示符,输入命令sqlplus ,进入oracle控制台

  2、用户名输入 sqlplus/as sysdba,口令:空(回车即可)

  3、连接成功后,输入“select username from dba_users”查看用户列表

  4、若修改某一个用户密码, 修改用户口令 格式为(注意后面的分号;):

  alter user 用户名 identified by 新密码;

  以system 为例,密码修改为 123456. 可输入

  alter user system identified by 123456;

  二、Oracle 用户解锁

  SQL> ALTER USER 用户名 ACCOUNT UNLOCK;

  三、Oracle修改手游账号出售用户密码

  SQL> ALTER USER 用户名 IDENTIFIED BY 密码;

  四、SQL查询~ 存在一个表而不在另一个表中的数据

  A、B两表,找出ID字段中,存在A表,但是不存在B表的数据。

  1、select distinct A.ID from A where A.ID not in (select ID from B)

  2、使用 left join…on… , "B.ID is null" 表示左连接之后在B.ID 字段为 null的记录

  Select A.ID from A left join B on A.ID=B.ID where B.ID is null

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post