# yum install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel \
glibc glibc-common glibc-devel gcc gcc-c++ libaio libaio-devel \
libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel
# rpm -ivh oracle-xe-11.2.0-0.5.x86_64.rpm
準備中... ########################################### [100%]
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
エラー: %pre(oracle-xe-11.2.0-0.5.x86_64) scriptlet failed, exit status 255
エラー: install: スクリプト %pre の実行に失敗しました (2)。oracle-xe-11.2.0-0.5 をスキップします。
エラーにより、/etc/sysctl.conf が書き換えられる?もう一度インストールすればOK
# rpm -ivh oracle-xe-11.2.0-0.5.x86_64.rpm
# /etc/init.d/oracle-xe configure
Oracle Database 11g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 11g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press <Enter> to accept the defaults.
Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express [8080]:18080 #個人的事情により変更
Specify a port that will be used for the database listener [1521]:
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password:
Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:y
Starting Oracle Net Listener...Done
Configuring database...Done
Starting Oracle Database 11g Express Edition instance...Done
Installation completed successfully.
$ sqlplus
SQL*Plus: Release 11.2.0.2.0 Beta on 水 8月 17 23:12:47 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter user-name: system
Enter password: インストールで指定したパスワード
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Beta
SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
PL/SQL procedure successfully completed.
データベースをユーザの作成($USER/$PASWORD)
SQL> create user $USER identified by $PASSWORD;
User created.
SQL> alter user $USER default tablespace USERS;
User altered.
SQL> grant connect, resource to $USER;
Grant succeeded.
SQL> exit;
perl-DBD-Oracle
$ cd DBD-Oracle-1.27
$ perl Makefile.PL -m /u01/app/oracle/product/11.2.0/xe/rdbms/demo/demo_xe.mk
$ make
$ sudo make install
$ su
# ライブラリパスを通す
# echo '/u01/app/oracle/product/11.2.0/xe/lib' > /etc/ld.so.conf.d/oracle-x86_64.conf
# /sbin/ldconfig