どこかに向かうらしい話

迷走エンジニアの放浪記

scott/tiger @ Oracle11g

Oracleの検証において、scott/tigerを使いたい時があるが、Oracle11gで使おうとすると、アカウントロックされている旨のエラーが出る。

ERROR:
ORA-28000: the account is locked

このエラーを解決するためには、以下の通り、Oracle側で用意されているsqlを実行すればOK。

$ cd $ORACLE_HOME/rdbms/admin
$ sqlplus /nolog
SQL> conn / as sysdba
SQL> @utlsampl.sql

sqlを実行すると、

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

と出力され、接続が切れる。
その後、scott/tigerで接続できることを確認する。

$ sqlplus /nolog
SQL> conn scott/tiger