- Oracle Database XE 11gR2 Jump Start Guide
- Asif Momen
- 119字
- 2021-08-13 18:28:14
Unlocking sample user accounts
Oracle Database 11g XE comes with sample database users such as HR, MDSYS, and others. Some of the user accounts are by default locked. In the rest of the chapters, we will use HR schema objects for our testing and building applications.
Log on to SQL*Plus as SYSDBA, query account status for all users, and unlock the HR account as shown below:
SQL> connect /as sysdba SQL> select username, account_status from dba_users; SQL> alter user hr account unlock; # Unlock the locked account SQL> alter user hr identified by hr; # Open the expired account
Or:
SQL> alter user hr identified by hr account unlock; #Unlock and open in a single statement SQL> connect hr/hr
推薦閱讀
- Microsoft Exchange Server PowerShell Cookbook(Third Edition)
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- Getting Started with React
- 兩周自制腳本語言
- Mastering QGIS
- 算法大爆炸:面試通關步步為營
- C語言課程設計
- Mastering Android Game Development
- Java程序設計入門
- Kivy Cookbook
- Kubernetes源碼剖析
- IoT Projects with Bluetooth Low Energy
- PHP+MySQL動態網站開發從入門到精通(視頻教學版)
- Greenplum構建實時數據倉庫實踐
- JSP應用與開發技術(第3版)