- 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
推薦閱讀
- Facebook Application Development with Graph API Cookbook
- Spring Cloud Alibaba微服務(wù)架構(gòu)設(shè)計(jì)與開發(fā)實(shí)戰(zhàn)
- Web交互界面設(shè)計(jì)與制作(微課版)
- 軟件測試項(xiàng)目實(shí)戰(zhàn)之性能測試篇
- Hands-On JavaScript High Performance
- INSTANT Mercurial SCM Essentials How-to
- C語言程序設(shè)計(jì)案例精粹
- 編程數(shù)學(xué)
- 前端HTML+CSS修煉之道(視頻同步+直播)
- 微服務(wù)架構(gòu)深度解析:原理、實(shí)踐與進(jìn)階
- Android驅(qū)動(dòng)開發(fā)權(quán)威指南
- Oracle數(shù)據(jù)庫編程經(jīng)典300例
- 奔跑吧 Linux內(nèi)核
- RESTful Web API Design with Node.js(Second Edition)
- 微服務(wù)設(shè)計(jì)