在运行安装程序之前,请执行以下操作以克服一些奇怪的错误
在/home/oracle,创建名为libwait.c的文件,并按照下述步骤编译它
Ceate a file called libcwait.c in the
oracle
user's home directory to avoid getting
an error when running the Oracle installer. The libcwait.c file should contain the
following text:
/*
gcc -O2 -shared -o $HOME/libcwait.so -fpic $HOME/libcwait.c
*/
#include
#include
#include
Deploying Oracle 9i on Red Hat Enterprise Linux AS 3
Page 11
#include
pid_t
__libc_wait (int *status)
{
int res;
asm volatile ("pushl %%ebx\n\t"
"movl %2, %%ebx\n\t"
"movl %1, %%eax\n\t"
"int $0x80\n\t"
"popl %%ebx"
: "=a" (res)
: "i" (__NR_wait4), "0" (WAIT_ANY), "c" (status), "d" (0), "S" (0));
return res;
}
Next, compile this file in the
oracle
user's home directory by executing the
following command:
gcc -02 -shared -o $HOME/libcwait.so -fpic $HOME/libwait.c
|
gcc-shared -o libcwait.so libcwait.c -fpic -O
然后将此库添加到数据库用户的环境变量中
exportLD_PRELOAD=/home/oracle/libcwait.so
之前,我们将类似的行放在了.bash_profile.
以 oracle 用户身份执行以下命令
oracle@9iserver ~> xhost +localhost oracle@9iserver ~> export DISPLAY=localhost:0.0 |
现在您可以连接到您的桌面,或者选择远程运行安装程序,例如使用 VNC。例如从您的 Windows 桌面运行安装程序