1、首先以DBA的身份登錄Oracle10g。
在黎川等地區,都構建了全面的區域性戰略布局,加強發展的系統性、市場前瞻性、產品創新能力,以專注、極致的服務理念,為客戶提供成都網站設計、成都網站制作 網站設計制作按需開發網站,公司網站建設,企業網站建設,品牌網站設計,全網整合營銷推廣,成都外貿網站建設,黎川網站建設費用合理。
2、修改SOCCT賬戶權限,"alter user scott account unlock;"
3、修改HR賬戶權限,"alter user hr account unlock;" ?在commit操作之后,繼續:"alter user hr identified by hr;"
4、然后檢查狀態,就會發現已經解鎖了。
希望本文對大家有所幫助。1. 安裝時選擇的自動安裝,由于時間久遠忘記用戶名、密碼了,導致現在試了幾個默認的用戶名密碼後(表格中附帶默認用戶名及密碼),都提示無效的用戶名、密碼,終于在試了下dbsnmp/dbsnmp,提示被鎖;2. 在CMD中啟動SQLPLUS;用sqlplus/as sysdba登錄源碼天空,Oracle如何解鎖用戶提示連接到:Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production3. 執行ALTER USER DBSNMP ACCOUNT UNLOCK;4. 從新用SQL/PLUS登錄,設置用戶名、密碼;注:由于剛才解鎖的用戶名是DBSNMP,所以這里設置的用戶名也是DBSNMP
Oracle 10g默認安裝帶來的用戶名/密碼UsernamePasswordDescriptionSee AlsoCTXSYSCTXSYSThe Oracle Text accountOracle Text ReferenceDBSNMPDBSNMPThe account used by the Management Agent component of Oracle Enterprise Manager to monitor and manage the databaseOracle Enterprise Manager Grid Control Installation and Basic ConfigurationLBACSYSLBACSYSThe Oracle Label Security administrator accountOracle Label Security Administrator's GuideMDDATAMDDATAThe schema used by Oracle Spatial for storing Geocoder and router dataOracle Spatial User's Guide and ReferenceMDSYSMDSYSThe Oracle Spatial and Oracle interMedia Locator administrator accountOracle Spatial User's Guide and ReferenceDMSYSDMSYSThe Oracle Data Mining account.Oracle Data Mining Administrator's GuideOracle Data Mining ConceptsOLAPSYSMANAGERThe account used to create OLAP metadata structures. It owns the OLAP Catalog (CWMLite).Oracle OLAP Application Developer's GuideORDPLUGINSORDPLUGINSThe Oracle interMedia user. Plug-ins supplied by Oracle and third party format plug-ins are installed in this schema.Oracle interMedia User's GuideORDSYSORDSYSThe Oracle interMedia administrator accountOracle interMedia User's GuideOUTLNOUTLNThe account that supports plan stability. Plan stability enables you to maintain the same execution plans for the same SQL statements. OUTLN acts as a role to centrally manage metadata associated with stored outlines.Oracle Database Performance Tuning GuideSI_INFORMTN_SCHEMASI_INFORMTN_SCHEMAThe account that stores the information views for the SQL/MM Still Image StandardOracle interMedia User's GuideSYSCHANGE_ON_INSTALLThe account used to perform database administration tasksOracle Database Administrator's GuideSYSMANCHANGE_ON_INSTALLThe account used to perform Oracle Enterprise Manager database administration tasks. Note that SYS and SYSTEM can also perform these tasks.Oracle Enterprise Manager Grid Control Installation and Basic ConfigurationSYSTEMMANAGERAnother account used to perform database administration tasks.
1、找到并進入運行窗口:(可以用windows+r快捷鍵哦)輸入sqlplus命令:如圖
2、進入新窗口后使用scott/tiger用戶和密碼進行登錄會發現登錄不成功:如圖
3、這時我們可以使用system用戶進行登錄,應為此用戶的權限排第二,并且密碼我們已經在安裝時輸入了了,所以是可以登錄進入的:如圖
4、system登錄成功之后就可以使用命令給用戶進行解鎖了:如圖
5、最后再用scott/tiger用戶時,你可以神奇的發現此時能連接成功了:如圖
1、查看環境變量ORACLE_SID的設置情況:
windows:
echo
%ORACLE_SID%
linux:
echo
$ORACLE_SID
2、
設置環境變量ORACLE_SID的值為你想登錄的oracle實例的SID:
set
ORACLE_SID=orcl
鍵入命令:sqlplus
/
as
sysdba
就可以以sysdba的身份登錄到oracle了!
linux系統下,如果找不到sqlplus命令的話,請切換到oracle用戶。
在sqlplus窗口執行命令:
alter
user
you_username
identified
by
you_password;
就可以修改你的用戶的密碼了~
如果此時用戶被鎖定,沒關系:
既然是被鎖住了,那就通過解鎖system用戶。
SQL
alter
user
system
account
unlock;
User
altered.
SQL
select
username,account_status
from
dba_users
where
username='SYSTEM';
USERNAME
ACCOUNT_STATUS
----------
--------------------------------
SYSTEM
OPEN
SQL