17、因为文件$ORACLE_HOME/rdbms/demo/oratypes.h有错,如果要用OCI或PRO*C写程序,需要修改该文件,将第445行 typedef int boolean; 注释掉。
自动开关oracle ==============
1、修改文件/etc/oratab,将相应的SID设为Y
2、在/etc/init.d目录下建立一个dbora文件,并设为可执行。文件内容如下:
#!/bin/sh # Set ORA_HOME to be equivalent to the ORACLE_HOME # from which you wish to execute dbstart and dbshut # set ORA_OWNER to the user id of the owner of the # Oracle database in ORA_HOME
ORA_HOME=/oracle ORA_OWNER=oracle
if [ ! -f $ORA_HOME/bin/dbstart ] then echo "Oracle startup: cannot start" exit fi
case "$1" in
'start')
# Start the Oracle databases: # The following command assumes that the oracle login will not prompt the # user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart & su - $ORA_OWNER -c $ORA_HOME/bin/lsnrstart &
;;
'stop')
# Stop the Oracle databases: # The following command assumes that the oracle login will not prompt the # user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/lsnrshut & su - $ORA_OWNER -c $ORA_HOME/bin/dbshut & ;; esac