LoginSignup
3
4

More than 5 years have passed since last update.

Oracle XE 11.2 にscott/tigerを作成する

Posted at

Oracleさんの勉強をしていて、scott/tigerが出てくることがあると思いますが、Oracle XE 11.2にはデフォルトではいません。

ですが、DDLは用意されているので、それを実行すればOKです。

[vagrant@localhost ~]$ ls $ORACLE_HOME/rdbms/admin/utlsampl.sql
/u01/app/oracle/product/11.2.0/xe/rdbms/admin/utlsampl.sql

sqlplusでは@をつけると@以降のファイルをreadしてくれます。

[vagrant@localhost ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.2.0 Production on 木 7月 2 21:40:30 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

SQL> conn / as sysdba
接続されました。
SQL> @/u01/app/oracle/product/11.2.0/xe/rdbms/admin/utlsampl.sql
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Productionとの接続が切断されました。
[vagrant@localhost ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.2.0 Production on 木 7月 2 21:41:02 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

SQL> conn scott/tiger
接続されました。

vagrantにOracle XEを入れるのは
https://github.com/rsakamot/vagrant-centos-oracle

これを実行する前に

http://www.oracle.com/technetwork/jp/database/database-technologies/express-edition/downloads/index.html
から、zipファイルをダウンロードして、oracleディレクトリに置いてください。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4