modify the initialization oracle user name and password

After installing oracle 11g, only after a long use, I had forgotten to initialize the user name and password, how do?

↓↓

Run cmd command line

Entry sqlplus / nolog no user name Login

conn / as sysdba connected to the local data

alter user system identified by password; modify the System password is password

Or open sqlplus Software: 

Window into the user directory: / nolog 

D:\oracle\ora92\bin>sqlplus /nolog

SQL * Plus: Release 9.2.0.1.0 - Production on Thursday August 16 2007 11:32:22

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> conn /as sysdba
已连接。
SQL> alter user system identified by password;

User has changed.

SQL> alter user sys identified by password;

User has changed.

SQL> alter user system identified by manger;

Unlocking method
alter user system account unlock;

 Such successful password change

 Assign a user name and password

CREATE USER username (username) IDENTIFIED BY password (password);
the GRANT the CONNECT the TO username (username);
the GRANT the CREATE the SESSION the TO username (username);
the ALTER the USER username (username) the DEFAULT the ROLE NONE;
the GRANT the SELECT the ON v_user_to_bdcom (Table or view) TO username (username);


jdbc: oracle: thin: @ 192.168.XXX.XXX (IP): 1521: instance name
user username; password password;


select * from usr_zsj.v_user_to_bdcom;

Entry sqlplus / nolog no user name Login

conn / as sysdba connected to the local data

alter user system identified by password; modify the System password is password

Or open sqlplus Software: 

Window into the user directory: / nolog 

D:\oracle\ora92\bin>sqlplus /nolog

SQL * Plus: Release 9.2.0.1.0 - Production on Thursday August 16 2007 11:32:22

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> conn /as sysdba
已连接。
SQL> alter user system identified by password;

User has changed.

SQL> alter user sys identified by password;

User has changed.

SQL> alter user system identified by manger;

Unlocking method
alter user system account unlock;

 Such successful password change

 Assign a user name and password

CREATE USER username (username) IDENTIFIED BY password (password);
the GRANT the CONNECT the TO username (username);
the GRANT the CREATE the SESSION the TO username (username);
the ALTER the USER username (username) the DEFAULT the ROLE NONE;
the GRANT the SELECT the ON v_user_to_bdcom (Table or view) TO username (username);


jdbc: oracle: thin: @ 192.168.XXX.XXX (IP): 1521: instance name
user username; password password;


select * from usr_zsj.v_user_to_bdcom;

Guess you like

Origin www.cnblogs.com/majw/p/11415635.html