安装完oracle 11g,过了好久才用,已经忘了初始化的用户名和密码了,怎么办?
↓↓↓
运行cmd命令行
录入 sqlplus /nolog 无用户名登录
conn /as sysdba 连接到数据本地数据
alter user system identified by password; 修改System 密码 为password
或者打开sqlplus软件:
窗口用户名录入:/nolog
D:oracleora92in>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 create session to EPM;
grant create table to EPM;
grant create tablespace to EPM;
grant create view to EPM;
grant connect,resource,dba to EPM;
jdbc:oracle:thin:@192.168.XXX.XXX(IP):1521:实例名
用户 username ;密码 password;
select * from usr_zsj.v_user_to_bdcom;