读书人

Installing Oracle 11g On Ubuntu 十

发布时间: 2012-10-25 10:58:57 作者: rapoo

Installing Oracle 11g On Ubuntu 10 32 bit

??? start)
??????? # Oracle listener and instance startup
??????? echo -n "Starting Oracle: "
??????? su $ORACLE_OWNR -c "$ORACLE_HOME/bin/lsnrctl start"
??????? su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME"
??????? touch /var/lock/oracle
??????? echo "OK"
??????? ;;
??? stop)
??????? # Oracle listener and instance shutdown
??????? echo -n "Shutdown Oracle: "
??????? su $ORACLE_OWNR -c "$ORACLE_HOME/bin/lsnrctl stop"
??????? su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME"
??????? rm -f /var/lock/oracle
??????? echo "OK"
??????? ;;
??? reload|restart)
??????? $0 stop
??????? $0 start
??????? ;;
??? \*)
??????? echo "Usage: `basename $0` start|stop|restart|reload"
??????? exit 1
esac

exit 0

Execute :

cd /etc/init.d
update-rc.d oracledb defaults 99

The above will create links within the rc\*.d directories.

jdbc:oracle:thin:@oracle11gdb:1521/ORCL

This should connect and allow you access to the database.

读书人网 >编程

热点推荐