安裝完oracle 11g,過了好久才用,已經忘了初始化的用戶名和密碼了,怎么辦?
↓↓↓
運行cmd命令行
錄入 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 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;
