[[oracle]]

いわゆるオラクル11gリリース2を入れてみる。評価版。
1.setup.exeを起動 &ref(2012y12m01d_221226378.png,nolink);
2.セキュリティ・アップデートの構成で
  「電子メール」はnull
  「セキュリティ・アップデートをMyOracleSupport経由で受け取ります」もnull
   &ref(2012y12m01d_221322187.png,nolink);
3.インストール・オプションの選択で
  &ref(2012y12m01d_221538338.png,nolink);
4.システム・クラスで
  &ref(2012y12m01d_221702938.png,nolink);
5.Gridインストール・オプションで
  &ref(2012y12m01d_221803947.png,nolink);
6.インストール・タイプの選択
  &ref(2012y12m01d_221909538.png,nolink);
7.製品言語の選択は
  &ref(2012y12m01d_222013394.png,nolink);
8.データベース・エディションの選択で
  &ref(2012y12m01d_222112130.png,nolink);
  加えオプション選択で
  &ref(2012y12m01d_222216954.png,nolink);
  すべて選択解除する
  &ref(2012y12m01d_222338051.png,nolink);
9.インストール場所の指定で
  &ref(2012y12m01d_222510498.png,nolink);
  &ref(2012y12m01d_222546330.png,nolink);
10.構成タイプの選択で
   &ref(2012y12m01d_222651338.png,nolink);
11.データベース識別子の指定で
   &ref(2012y12m01d_222812962.png,nolink);
   &ref(2012y12m01d_222823066.png,nolink);
12.構成オプションの指定で
   メモリ:
    &ref(2012y12m01d_223035267.png,nolink);
   キャラクタ・セット:
    &ref(2012y12m01d_223200298.png,nolink);
   セキュリティ:
    &ref(2012y12m01d_223349074.png,nolink);
   サンプル・スキーマ:
    &ref(2012y12m01d_223450810.png,nolink);
13.管理オプションの指定で
   &ref(2012y12m01d_223602354.png,nolink);
14.データベース記憶域オプションの指定
   &ref(2012y12m01d_223707314.png,nolink);
   &ref(2012y12m01d_223717875.png,nolink);
15.リカバリ・オプションの指定
   &ref(2012y12m01d_223937874.png,nolink);
16.スキーマ・パスワードの指定
   &ref(2012y12m01d_224041578.png,nolink);
   そしてパスワードを入力する
17.前提条件のチェックが走り、
18.サマリーが表示される
   &ref(2012y12m01d_224500456.png,nolink);
19.製品のインストール
   &ref(2012y12m01d_224625405.png,nolink);
20.終了
   &ref(2012y12m01d_230642427.png,nolink);

***OracleAdministrationAssistant for Windows [#x15ef11b]
必要なのか不明なのだが、このアプリの中に起動時・停止時のオプションが指定できる。
&ref(2012y12m01d_232408674.png,nolink);
これを開くとORACLEインスタンスに起動/停止オプションとしてサービスとの連携を指定できる。
ここでは、「サービス停止時にインスタンスを停止」を有効にさせて、即時停止を選択した。
&ref(2012y12m01d_232757931.png,nolink);

***OracleEnterpriseManagerへのアクセスをhttp(80)で行う [#q7ff183b]
webアクセスの際、常に問われるのが鬱陶しいので、httpsアクセスを辞めて、httpで受け付けるように変更した。
#code{{
C:\Users\Administrator>set ORACLE_UNQNAME=aers

C:\Users\Administrator>emctl stop dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
https://xxxxxxx:1158/em/console/aboutApplication
OracleDBConsoleaers サービスを停止中です..........
OracleDBConsoleaers サービスは正常に停止されました。


C:\Users\Administrator>emctl unsecure dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
https://xxxxxxx:1158/em/console/aboutApplication
Configuring DBConsole for HTTP...   Done.
DBCONSOLE already stopped...   Done.
Agent is already stopped...   Done.
Unsecuring dbconsole...   Started.
DBConsole is now unsecured...  Done.
Unsecuring dbconsole...  Sucessful.

C:\Users\Administrator>emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
http://xxxxxxx:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ...OracleDBConsoleaers
サービスを開始します...................
OracleDBConsoleaers サービスは正常に開始されました。


C:\Users\Administrator>
}}

***ログイン [#l8b67ef5]
OracleEnterpriseManagerへのログインは
 sys  --> &ref(2013y01m23d_225912672.png,nolink);
 system --> &ref(2013y01m23d_230057504.png,nolink);
としてログイン可能。
っで、オラクルサーバのコンソールでは、&color(green){''OS認証''};なる特典が使えて、ORA_DBAグループに所属していれば、
パスワード指定なしでログインできます。
#code(nonumber){{
$ sqlplus sys/manager as sysdba      *ログイン可能
$ sqlplus / as sysdba                *OS認証でsysはログイン可能
}}
となる。&color(green){''サーバマシン''};で、&color(green){''ORA_DBA''};に所属なユーザ限定らしい

***ユーザ作成 [#i76be2d2]
OracleEnterpriseManagerにてお気楽に作るのが一番かも知れないが、ここではsqlplusで接続してでの想定で新規ユーザを作ってみる。
|BGCOLOR(yellow):ユーザ名|BGCOLOR(yellow):パスワード|BGCOLOR(yellow):常用表領域|BGCOLOR(yellow):一時表領域|BGCOLOR(yellow):付与ロール|BGCOLOR(yellow):システム権限|
|foo|foo|USERS|TEMP|CONNECT&br;CTXAPP&br;RESOURCE||
っでSQL文
#code(sql,number,nooutline,noblock,nomenu){{
CREATE USER "foo" PROFILE "DEFAULT" IDENTIFIED BY "foo" 
DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" ACCOUNT UNLOCK
GRANT "CONNECT" TO "foo"
GRANT "CTXAPP" TO "foo"
GRANT "RESOURCE" TO "foo"
}}

皆に見せたいテーブル(パブリック・テーブル)を作る場合には&color(green){システム権限};として&color(green){CREATE PUBLIC SYNONYM};と&color(green){DROP PUBLIC SYNONYM};を用意する必要がある。特定のユーザだけなら&color(green){CREATE SYNONYM};と&color(green){DROP SYNONYM};でいいのかと。あるいは一段上の視線で自分以外のユーザのテーブルを特定のユーザに参照させるとした&color(green){CREATE ANY SYNONYM};と&color(green){DROP ANY SYNONYM};もある
ここでは特定ユーザ&color(blue){AERS};がパブリック・シノニム権限を有するとして、SQL文は下記になる
|BGCOLOR(yellow):ユーザ名|BGCOLOR(yellow):パスワード|BGCOLOR(yellow):常用表領域|BGCOLOR(yellow):一時表領域|BGCOLOR(yellow):付与ロール|BGCOLOR(yellow):システム権限|
|aers|aers|AERS|AERSTMP|CONNECT&br;CTXAPP&br;RESOURCE|CREATE PUBLIC SYNONYM&br;DROP PUBLIC SYNONYM|
#code(sql,number,nooutline,noblock,nomenu){{
CREATE USER "AERS" PROFILE "DEFAULT" IDENTIFIED BY "aers"
DEFAULT TABLESPACE "AERS" TEMPORARY TABLESPACE "AERSTMP" ACCOUNT UNLOCK
GRANT CREATE PUBLIC SYNONYM TO "AERS"
GRANT DROP PUBLIC SYNONYM TO "AERS"
GRANT "CONNECT" TO "AERS"
GRANT "CTXAPP" TO "AERS"
GRANT "RESOURCE" TO "AERS"
}}
1

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS