- 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
推薦閱讀
- Java多線程編程實戰指南:設計模式篇(第2版)
- Learning Apex Programming
- Mastering phpMyAdmin 3.4 for Effective MySQL Management
- Xcode 7 Essentials(Second Edition)
- The React Workshop
- Java面向對象程序開發及實戰
- Rust Essentials(Second Edition)
- Learning Continuous Integration with TeamCity
- Julia 1.0 Programming Complete Reference Guide
- 深入理解C指針
- Python數據可視化之美:專業圖表繪制指南(全彩)
- Scala Functional Programming Patterns
- Java并發實現原理:JDK源碼剖析
- Web前端開發最佳實踐
- CryENGINE Game Programming with C++,C#,and Lua