35. Логическая архитектура Applications Applications Applications Applications Schema A Applications Schema B Applications Schema C Finance Human Resources Payroll Oracle HTML DB
I settled on the following LAMP options: Apache 2.0.55 PHP 5.0.5 MySQL 5.0.15 I decided that I'd stick Oracle XE on as well, and have a play with that. Surely if MySQL is that simple to install then Oracle can't be that much harder! Or so I thought... Heading over to the Oracle XE home page allows you to download the Oracle DB System. Here's what I did from then on to get this baby installed: Installing Oracle I grabbed the RPM version, weighing in at a hefty 200Mb, and installed it. rpm -ivh oracle-xe-10.2.0.1-0.1.i386.rpm At this point, it was kindly noted out that I needed the libaio libraries as well: yum install libaio will sort out that dependancy. If you don't have yum installed and configured, then you can install the RPM directly .Re-run the RPM installation line, and follow the onscreen instructions. Following the Getting Started Guide assumes you are installing on either Windows, or using a GUI such as KDE on Linux. If you are installing remotely as I was, then ignore the first step of that guide, and instead point your web browser to http://Your_Server:8080/htmldb. Make sure that you have opened port 8080 on your server's firewall (You do have a firewall running don't you?!) You should get a nice login screen where you can continue the Getting Started Guide Compiling Oracle Support into PHP Next step you need to take is to compile the Oracle extension into PHP. Grab the latest source for PHP and start the installation: tar -zxf php-5.0.5.tar.gz cd php-5.0.5 ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-oci8=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server --with-oci8-instant-client=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/ Of course, add other modules as you see fit. Once the configure routine has completed, its time to make and install. Note that you may need to copy php.ini into /etc as well: make make install cp php.ini-dist /etc/ You'll also need to add the PHP Handlers to your apache configuration file httpd.conf: AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps Restart Apache and test if Oracle support is working by creating a phpinfo page and verifying the contents under the oci8 heading: After the installation you can go to $ORACLE_HOME and change the configuration in init file or login to the database and change the parameters. Also start/stop the database commands are simple: [Remember only one instance allowed. But you can have multiple schema] You start and stop with any of these commands: /etc/init.d/oracle-xe start/stop or service oracle-xe start/stop
Free to Develop, Deploy and Distribute Oracle Database XE is generally available on a wide range of 32-bit Linux operating systems, including Mandriva Linux 2006 Power Pack+, Novell's SUSE Linux Enterprise Server 9 and SUSE Linux 10, Red Hat Enterprise Linux 4, Fedora and Ubuntu and Windows. The software can be downloaded for free from the Oracle Technology Network at: http:// www.oracle.com/technology/xe . Oracle Database XE is available for download, usage and distribution at no charge. For terms, conditions and restrictions read the FAQ at: http://www.oracle.com/technology/products/database/xe/pdf/dbxe_faq.pdf . Oracle offers a free online forum for registered users to discuss topics related to Oracle Database XE usage. The forum is community based, engages many active participants, is monitored by Oracle Database experts and is available through: http://www.oracle.com/technology/products/database/xe/forum.html .