Oracle Syndication Server User's and Administrator's Guide Release 9.0.1 Part Number A88787-01 |
|
This chapter describes the basic installation and configuration Oracle Syndication Server.
The installation requires that the person installing this software have sysadmin privileges, is a database administrator, and has application development skills.
After you have completed the installation steps described in this chapter, you will have an understanding of the system requirements needed to install Syndication Server, you will have installed the Syndication Server schema, and you can begin using Syndication Server to syndicate content to subscribers.
To understand how to manage Syndication Server, you must first configure and run the OSSAdmin utility as described in Chapter 3. Then you can manage subscribers, manage affiliates or content providers, manage subscriptions, and do Syndication Server system administration operations, which are all described in Chapter 5.
The primary steps necessary to install and configure Oracle Syndication Server software are as follows:
Section 2.1, Section 2.3, and Section 2.4 describe each of these steps in more detail.
The following are the system requirements:
Be sure you have a full installation of Oracle9i Standard Edition or Enterprise Edition Release 1 (9.0.1) (a full installation in this case includes a typical Oracle9i Standard Edition or Enterprise Edition Release 1 (9.0.1) installation. Follow Oracle9i installation instructions to complete a full installation.
Important: In Section 2.2 and Section 2.3, directory paths often show only the UNIX path "/" specification. If you are installing on a Windows NT system, the path specification is "\" and you must make this change, as needed, for the installation to be successful. |
For release 9.0.1, Oracle Syndication Server is distributed as a zip archive file. Future distributions will be packaged with the Oracle Universal Installer. Unzip the archive file in the syndication directory within your <ORACLE_HOME> directory. The distribution contains the subdirectories shown in Table 2-1.
Before you install Oracle Syndication Server, make sure your servlet engine can access your Oracle Dynamic Services library.
The following libraries from Oracle9i Standard Edition or Enterprise Edition Release 1 (9.0.1) are required by Oracle Syndication Server:
<ORACLE_HOME>
/lib/classgen.jar
-- Oracle Class Generator<ORACLE_HOME>
/lib/xmlparserv2.jar
-- Oracle XML Parser (version 2.1.0.0 or later)<ORACLE_HOME>
/jdbc/lib/classes12.zip
-- Oracle JDBC Driver (compliant with JDK 1.2 (version 9.0.1))<ORACLE_HOME>
/ds/lib/ds.jar
-- Oracle Dynamic Services Library<ORACLE_HOME>
/syndication/lib/redist/dsgw.jar
-- Oracle Dynamic Services Gateway Library<ORACLE_HOME>
/syndication/lib/syndserver.jar
-- Oracle Syndication Server LibraryThe first three libraries are installed upon installing the Oracle9i Standard Edition or Enterprise Edition. The ds.jar
library is installed with an Oracle Dynamic Services installation and the dsgw.jar
and syndserver.jar
libraries are installed with the Oracle Syndication Server installation. If you are using Apache Jserv, you must put these libraries into your jserv.properties
file specified as wrapper.classpaths.
Oracle Syndication Server works with any servlet engine behind any Web listener, for example, it works with Apache Jserv installed with Oracle9i Standard Edition or Enterprise Edition Release 1 (9.0.1). The following steps assume you are using the Apache Jserv servlet engine:.
jserv.conf
in <ORACLE_HOME>
/Apache/Jserv/etc
to add a virtual path syndserver
by adding the following lines to the ApJservMount area:
# Syndication Server mountpoint ApJServMount /syndserver /syndserver
For example, if you are using iAS Apache, modify the jserv.properties
file located in <ORACLE_HOME>
/Apache/Jserv/etc
and add the zone of syndserver
, if your servlet engine permits, for example:
zones= <existing zones>,syndserver
You must also add a property file to the zones as follows:
syndserver.properties=<SYNDICATION_HOME>
/etc/syndserver.properties
syndserver.properties
, which is located in <SYNDICATION_HOME>
/etc
.
The Syndication Server library is located as:
<SYNDICATION_HOME>
/lib/syndserver.jar
For example, using iAS Apache, the repository is:
repositories=<ORACLE_HOME>/syndication/lib/syndserver.jar
syndserver.properties
file.
Create an alias, for example, "OSS" and point it to the class in the zone's property file as follows:
"servlet.OSS.code=oracle.syndication.server.servlet.OSS"
<ORACLE_HOME>
/Apache/Jserv/jserv.properties
file and include the wrapper classpath for the Dynamic Services Gateway jar (dsgw.jar)
file as follows:
wrapper.classpath=${ORACLE_HOME}/syndication/lib/redist/dsgw.jar wrapper.classpath=${ORACLE_HOME}/ds/lib/ds.jar
/admin/redist/
and run the dsgatewayinstall.sql
file as user dba. For example,
sqlplus "sys/change_on_install as sysdba"
/admin
directory, then connect as DSGATEWAY/DSGATEWAY and run the SQL script, ossinstall.sql
.
By default, running the PL/SQL script ossinstall.sql
under the /admin
directory creates the tables and packages for the database schema DSGATEWAY
for exclusive use by Syndication Server and makes DSGATEWAY the basis of communication for the OSS servlet.
Each Dynamic Services Gateway Context defines the properties for establishing an Oracle Dynamic Services Connection for the purposes of services execution. You must create one for Syndication Server.
ossinit.sql
under the /admin
directory by entering your database tnsname for oci8
or the thin
driver for where your Dynamic Services (DS) engine is installed. For example:
'jdbc:oracle:oci8:@<tns-name-entry-to-where-DSengine-is-installed>
' or 'jdbc:oracle:thin@<your-host-name>
:<your-port-number>
:<tns-name-entry-to -where-DSengine-is-installed>
'
ossinit.sql
script as user DSGATEWAY/
<DSGATEWAY-password> to create the new gateway context for Oracle Syndication Server.syndserver.properties
file.
syndserver.properties
file in etc/syndserver.properties
.
There is a list of parameters that must be added to the Aliased Servlet Init Parameters section that the servlet picks up to configure a database connection to the Gateway Context that was created in Step 6.
The parameters are:
servlets.OSS.initArgs=GWCTX_DBURL=<gwctx-db-url>
servlets.OSS.initArgs=GWCTX_USERNAME=<gwctx-db-username>
servlets.OSS.initArgs=GWCTX_PASSWORD=<gwctx-db-password>
servlets.OSS.initArgs=GWCTX_DBPOOLSIZE=<gwctx-db-pool>
servlets.OSS.imitArgs=OSS_PUSH_GWCTX_ID=<gwctx-push-gatewat-context-id>
where <gwctx-db-url>
is either jdbc:oracle:oci8:@<your-TNS-NAME-ENTRY>
or jdbc:oracle:thin:@<your-host-name>:<your-port-number>:<your-TNS-NAME-ENTRY>
, <gwctx-db-username>
is the user DSGATEWAY, <gwctx-db-password>
is the password for user DSGATEWAY, <gwctx-db-pool>
is the gateway context connection pool parameter value, and <gwctx-push-gateway-context-id>
is the gateway context entry you created in Step 6, OSS_Context_Id_0x0001
.
For example, if you are using the Apache Web server, restart Apache.
To restart Apache on UNIX systems, execute the commands shown as follows:
cd <Apache installation directory> bin/apachectl restart
On Windows NT, restart the Apache server from the Start bar. For Oracle9i 9.0.1, start from your Oracle home, select Oracle HTTP Server, then Start HTTP Server powered by Apache.
http://<your-web-server>:<port>/syndserver/OSS
You should see on the resulting page that your Syndication Server is up and running.
For example, if you are using the Apache Web server, inspect the contents of the error_log
file in the <ORACLE_HOME>
/Apache/Apache/logs
directory as well as the contents of the jserv.log
and mod_jserv.log
files in the ORACLE_HOME>
/Apache/Jserv/logs
directory.
Oracle Syndication Server has an extensibility layer for the content providers that feed into it. This is achieved through the Oracle Dynamic Services integration. Packaged with the default installation of Oracle Syndication Server, are three sample content providers that communicate with Oracle Syndication Server through the Oracle Dynamic Services framework.
The first sample content provider "eShop" is a demonstration of how a set of database-based Oracle Dynamic Services services can be used to provide content to Oracle Syndication Server.
The second sample content provider "File" is a demonstration of how a set of file-based Oracle Dynamic Services services can be used to provide content to Oracle Syndication Server.
The third sample content provider "Web" is a demonstration of how a set of Web-based Oracle Dynamic Services services can be used to provide content to Oracle Syndication Server.
These three sample content providers have been provided with the package, and can be registered and readily used, provided the appropriate properties are configured for your installation as follows:
Naturally, for the database-based Oracle Dynamic Services set of services to function, there must be a schema sitting somewhere in some database instance containing the information for which the service is asking. This is done by running the eShop_init.sql
script in any schema (user) on any database instance that you have running. For example, you can use the scott sample
schema. Read the SQL script before running it and make sure that there are no table name conflicts. For future reference, remember which schema or database on which this schema is installed because you will need this information during configuration of the services in Step 3.
NOTE: Refer to Chapter 10 Managing Job Queues in Oracle9i Database Administrator's Guide to make sure that you have enabled processes for executing jobs. The two issues to be concerned about are:
Because both of these initialization parameters are dynamic, any changes you make will take effect immediately without having to stop and restart the database instance. |
install.dss,
which is located in <SYNDICATION_HOME>
/etc/services
.
To add the categories and register the services needed for the three sample content providers, you must run the Dynamic Services DSAdmin utility script install.dss
.
Change the directory to the Oracle Syndication Server home directory at <SYNDICATION_HOME>
and execute the following command on UNIX:
<DS_HOME>
/bin/dsadmin -u<DS_USERNAME>
/<DS_PASSWORD>
@<DS_NICKNAME>
-i etc/services/install.dss
Or, execute the following command on Windows NT:
<DS_HOME>
\bin\dsadmin.bat -u<DS_USERNAME>
/<DS_PASSWORD>
@<DS_NICKNAME>
-i etc\services\install.dss
<DS_USERNAME>
and <DS_PASSWORD>
are the Oracle Dynamic Services username/password pair that is needed to connect to an Oracle Dynamic Services engine when running the DSAdmin utility. <DS_NICKNAME>
is comparable to a TNS_NAME_ENTRY for Oracle Dynamic Services (see Oracle Dynamic Services User's and Administrator's Guide for more information on how to run the DSAdmin utility).
Usually, this task should be delegated to an Oracle Dynamic Services Administrator (which may be synonymous to the Oracle Syndication Server Administrator). After this step, the services necessary for the three sample content providers are installed.
To configure the services for these sample content providers to make them usable, you must edit a configuration file before proceeding.
<SYNDICATION_HOME>
/etc/services/config_sample.xml
Or, on Windows NT:
<SYNDICATION_HOME>
\etc\services\config_sample.xml
The fields you must modify in this file are (using the XPath (XML Path Language) convention):
//OSSConfig/DSUser:
The DSUser DSSYS, is the Oracle Dynamic Services consumer name that you want to have all Oracle Dynamic Services connections using. This should correspond to the Oracle Dynamic Services user name specified in your gateway context (see the contents of the ossinit.sql
file in Step 6 in Section 2.3 to check for the presence of the DSSYS DSUser name).
//OSSConfig/Services/DB/URL:
This is the database URL to connect to for the database-based Oracle Dynamic Services service "eShop". Refer to Step 1 in this section for this information.
//OSSConfig/Services/DB/Username:
The database user name to connect to the URL mentioned previously is:
//OSSConfig/Services/DB/Password:
The database password to connect to the URL mentioned previously is:
//OSSConfig/Services/File/RootPath:
This is the path to start traversing from for all File "Catalog" listings.
Note: There is no //OSSConfig/Services/Web section. This is because the Web content provider does not need to be configured. |
After you have made all necessary modifications to this file, save it.
configure
(UNIX) or configure.bat
(Windows NT) file with the input file, config_sample.xml
. For example, on UNIX:
<SYNDICATION_HOME>
/
bin/configure.sh<SYNDICATION_ HOME>
/etc/services/config_sample.xml
Or, on Windows NT:
<SYNDICATION_HOME>
\
bin\configure.bat<SYNDICATION_ HOME>
\etc\services\config_sample.xml
Running this configuration file and its associated input file adds the necessary properties to the Oracle Dynamic Services user that your installation of Oracle Syndication Server uses.
If you are running this script for the first time, you will see some error messages, such as "object not found". You can ignore these error messages.
You are now ready to start syndicating content to your subscribers using Oracle Syndication Server by using the sample content providers to help you get started.
After the installation is complete, you can begin using Syndication Server to syndicate content to subscribers. To understand how to manage Syndication Server, you must first configure and run the OSSAdmin utility as described in Chapter 3. Then you can manage subscribers, manage affiliates, manage subscriptions, and do Syndication Server system administration operations. In addition, you can also begin to develop your own content provider adaptors, which is described in Chapter 4.
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|