自学内容网 自学内容网

Oracle常规操作

1、查看用户和密码

 

select username,password from dba_users;
 --修改用户和密码
 alter user system identified by manager;
 alter user system identified by values '2D594E86F93B17A1';
 --解锁用户
  alter user system account unlock;
 
-- 用SYSDBA身份进入数据库,然后查询到要更改的用户信息:
  select username ,user_id ,password from dba_users where username = 'DJJ_TEST';
-- 更改用户名并提交:
     update dba_users set username ='DJJ_DD' where user_id=87; --user_id为上一步查出的编号
     commit;
-- 强制刷新:
     alter system checkpoint;
     alter system flush shared_pool;
-- 更新用户的密码:
     alter user new_username identified by new_username;
-- 方法二:
    a

原文地址:https://blog.csdn.net/u010438126/article/details/137379329

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!