c/fe

http://d.hatena.ne.jp/uzulla から移行しました。

OracleをLinuxにいれとる

http://www.oracle.com/technology/software/products/database/index.html
Oracleはこっからゲッチュー。

http://otndnld.oracle.co.jp/document/products/oracle10g/102/linux/B50706-01/toc.htm
知ってたけど、GUI、つかXがないとインストールできないとか、なんなの、なめてんの。
sshx11フォワードしてインストールすることにした、x11が最初からはいってるMac万歳ですね。


Macx11.appを起動しつつ、 ssh -X hostname してrunInstallerした、けど
libXp.so.6: cannot open shared object file
とかいわれたので
yum install libXp*
とかやった、んだけど

DISPLAY not set. Please set the DISPLAY and try again.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:

  • For csh: % setenv DISPLAY 192.168.1.128:0.0
  • For sh, ksh and bash: $ DISPLAY=192.168.1.128:0.0; export DISPLAY

Use the following command to see what shell is being used:
echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
echo $DISPLAY

  • Make sure that client users are authorized to connect to the X Server.

To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
%
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for xclock: /usr/X11R6/bin/xclock

とかいわれてしもた、アルェー?X11Forwardうごいてない?
サーバー側の問題か…sshd_configにX11Forwarding yesして…あるな…

ssh -v -X hostnameしたら
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Requesting authentication agent forwarding.
debug1: Remote: No xauth program; cannot forward with spoofing.
とかさー、xauthないかー。

yum install xauthした。
オッケー、インストーラー立ち上がったー!

  • -

oracleはなんでこんなよくわからない独自の作法が多いのだろう…死ねばいいのに。

  • -

インストールおわった、
http://remotehost:1158/em/
アクセスして設定するし。
日本語出たーっておもったけど、ボタンが文字化けしちょるし。
http://concept.likeit.jp/modules/xoopsfaq/index.php?cat_id=1
ふむー、ALBANWTJ.TTFやALBANWTK.TTFとかが無いとー。
Oracle Warehouse Builderとかに同梱されてるので入手。
http://www.oracle.com/technology/software/products/warehouse/index.html *1

http://concept.likeit.jp/modules/xoopsfaq/index.php?cat_id=1
1) $ORACLE_HOME/jdk/jre/lib/fonts/ に ALBANWTJ.TTF をコピー
2) $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/ja 以下のファイル(キャッシュファイル)を全て削除
3) emを再起動

em再起動は
./emctl stop dbconsole
./emctl start dbconsole
Environment variable ORACLE_SID not defined. Please define it.
とかいわれたら

export ORACLE_HOME="/opt/orahome"
export ORACLE_SID=orcl

とか設定しとく。

*1:OWB_10.2.0.1.linux.tar.gzとか