录入 sqlplus /nolog 无用户名登录
conn /as sysdba 连接到数据本地数据
alter user system identified by password; 修改System 密码 为password
或者打开sqlplus软件:
窗口用户名录入:/nolog
D:\oracle\ora92\bin>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on 星期四 8月 16 11:32:22 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> conn /as sysdba
已连接。
SQL> alter user system identified by password;
用户已更改。
SQL> alter user sys identified by password;
用户已更改。
SQL> alter user system identified by manger;
解锁方法
alter user system account unlock;
这样密码修改成功了
分配用户名和密码
CREATE USER username(用户名) IDENTIFIED BY password(密码);
GRANT CONNECT TO username(用户名);
GRANT CREATE SESSION TO username(用户名);
ALTER USER username(用户名) DEFAULT ROLE NONE;
GRANT SELECT ON v_user_to_bdcom(表或视图) TO username(用户名);
jdbc:oracle:thin:@192.168.XXX.XXX(IP):1521:实例名
用户 username ;密码 password;
select * from usr_zsj.v_user_to_bdcom;
原文地址:https://www.cnblogs.com/majw/p/11415635.html