新安装的oracle添加用户并修改system的密码

来源:互联网 发布:windows补丁清理工具 编辑:程序博客网 时间:2024/06/05 15:51

        最近因为项目需要在Win2008R2上安装例如oracle 11, 选择简单模式。安装完成后需要添加一下数据库用户并修改system的密码。


     1,  如何添加用户

          在命令行使用sqlplus / as sysdba ,  进入到命令行管理界面。 如图开始添加用户userA,密码为xxxxx

          create user userA   profile "DEFAULT" identified by "xxxxxxx" account unlock;


    2, 如何修改system账户的密码并给帐号解锁

          alter user system identified by "xxxxxxx"
           -如果被锁定了 可以用下面语句解锁
         alter user 账户 account unlock



3, 新创建的用户没有create session权限需要授权。必须把create session, connect, create table的权限给用户,用户才可以实际工作

SQL> grant create table to xxOR02;

Grant succeeded.

SQL> grant connect,resource to xxOR02;

Grant succeeded.

 

0 0
原创粉丝点击