VirtualBox2.2 のOracle Enterpriseに11gをいれてみる(4-2)
色々、調べていると。時間ばっかり食うので、先日作成したスクリプトを流してみることとする。
せっかく、VMなんだしね。スナップショットを取っておいて気に食わなければ、また戻す準備だけしておく。
LSNERを作ってなかったので、netcaで、ディフォルトだけ作成しておこう。
デェフォルトで、OK。
じゃ、スクリプトを実行しよう。。
[oracle@localhost scripts0]$ pwd
/u01/app/oracle/admin/orclstd0/scripts0
[oracle@localhost scripts0]$ ls
CreateDB.sql apex.sql lockAccount.sql postDBCreation.sql
CreateDBCatalog.sql emRepository.sql orclstd0.sh xdb_protocol.sql
CreateDBFiles.sql init.ora orclstd0.sql
JServer.sql interMedia.sql ordinst.sql
終了すると、logがのこります。
[oracle@localhost scripts0]$ ls *.log
CreateDB.log emRepository.log postDBCreation.log
CreateDBCatalog.log install2009-05-25_19-53-31.log sqlPlusHelp.log
CreateDBFiles.log interMedia.log xdb_protocol.log
JServer.log lockAccount.log
apex.log ordinst.log
うまくいったら、まずは、サーバ内で確認します。
[oracle@localhost scripts0]$ export ORACLE_SID=orclstd0
[oracle@localhost scripts0]$ sqlplus /nolog
SQL*Plus: Release 11.1.0.6.0 - Production on Mon May 25 20:57:39 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL> connect system/manager
Connected.
SQL> select * from dual;
D
-
X
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost scripts0]$
当然のように、動いております。
とりあえず、RACでないものは、これで、できると。。
では、手動で立ち上がってるので、手動で落としときましょう。
[oracle@localhost ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on Mon May 25 21:05:40 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost ~]$
ふぅ。