Presentation is loading. Please wait.

Presentation is loading. Please wait.

Oracle 9I Application Server Release 2 – Basic Administration

Similar presentations


Presentation on theme: "Oracle 9I Application Server Release 2 – Basic Administration"— Presentation transcript:

1 Oracle 9I Application Server Release 2 – Basic Administration
Tracie A. Thomas MFG Systems Corporation

2 Objectives Review 9iAS release 2 installation types
Explain 9iAS architecture Introduce Oracle Enterprise Manager for 9iAS release 2 administration Review basic deployment of J2EE, PL/SQL and HTML applications Discuss basic troubleshooting techniques

3 9iAS Release 2 - Architecture
Oracle 9iAS METADATA Repository Single Sign-On Oracle Internet Directory Oracle Management Server Portal and Wireless J2EE and WebCache Business Intelligence / Forms MIDDLE TIER 9I APPLICATION SERVER INFRASTRUCTURE browser

4 Installing 9i Application Server

5 Installation Options Oracle 9iAS Infrastructure (includes):
Repository Database ( ) Oracle Internet Directory (LDAP) server Single Sign-On HTTP Server 9i Application Server (Middle Tier) Runs all 9iAS release 2 applications Many applications connect to infrastructure 9iAS Developer Kits

6 Middle Tier Installation Options
Infrastructure Not Required: J2EE and WebCache Infrastructure Required: Portal and Wireless Business Intelligence and Forms Discoverer Plus/Viewer Forms and Reports Unified Messaging

7 Managing 9iAS Release 2

8 Managing with Enterprise Manager
Secure, graphical interface Performance metrics for all 9iAS components Wizard-based component configuration Access to error logs

9 Oracle Enterprise Manager

10 Managing the HTTP Server

11 Key URLs Oracle Enterprise Manager http://servername.com:1810
HTTP Server (midtier and infrastructure) Default unix midtier: Default unix single-sign on (infrastructure): Verify Installation with Demos: Single Sign-on Portal

12 Key Configuration Files
./Apache/Apache/conf/httpd.conf Contains HTTP Server directives Main Configuration File Three sections of the httpd.conf file: Directives that affect all http server processes and installation Directives that define the default apache server process Virtual hosts (running multiple web sites from single http server) ./Apache/modplsql/conf/dads.conf Contains database access descriptor information for mod_plsql applications including portal. Modified through OEM or manually.

13 Using the DCMCTL utility
Distributed Configuration Management (DCM) Can be used alternatively to OEM Starting/Stopping Registering new applications Managing components Documented in Oracle9i Application Server Administrator's Guide Release 2

14 Starting/Stopping 9iAS Release 2

15 Start the Infrastructure
Oracle 9iAS METADATA Repository Single Sign-On Oracle Internet Directory Oracle Management Server Portal and Wireless J2EE and WebCache Business Intelligence / Forms MIDDLE TIER 9I APPLICATION SERVER INFRASTRUCTURE browser

16 Start Infrastructure Step 1: Start TNS listener
Step 2: Startup the Infrastructure DB $ sqlplus SQL*Plus: Release Production on Fri Oct 25 13:49: (c) Copyright 2001 Oracle Corporation. All rights reserved. Enter user-name: sys/manager as sysdba Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area bytes Fixed Size bytes Variable Size bytes Database Buffers bytes Redo Buffers bytes Database mounted. Database opened.

17 Start Infrastructure Step 3: Start Oracle Internet Directory
$ oidmon start Starting the Monitor process. $ oidctl server=oidldapd instance=1 configset=1 start $ ps -ef | grep oid oracle :52:59 pts/2 0:00 grep oid oracle :52:58 pts/2 0:01 oidldapd -p i 1 -conf 1 -s port sslenable 2 key= oracle :52:45 pts/2 0:02 oidmon start

18 Start Infrastructure Step 4: Start Oracle Enterprise Manager
$ emctl start Waiting for EM to initialize ...Started Step 5: Start infrastructure instance In OEM, click infrastructure instance Click Start All

19 Start the Middle Tier Oracle 9iAS METADATA Repository Single Sign-On
Oracle Internet Directory Oracle Management Server Portal and Wireless J2EE and WebCache Business Intelligence / Forms MIDDLE TIER 9I APPLICATION SERVER INFRASTRUCTURE browser

20 Start the Middle Tier Step 6: Start middle tier applications
In OEM, click middle tier instance Click Start All

21 Stop the Middle Tier Oracle 9iAS METADATA Repository Single Sign-On
Oracle Internet Directory Oracle Management Server Portal and Wireless J2EE and WebCache Business Intelligence / Forms MIDDLE TIER 9I APPLICATION SERVER INFRASTRUCTURE browser

22 Stop the Middle Tier Step 1: Stop Middle Tier components:
From OEM, click ‘middle tier instance’, click ‘Stop All’ Unix: from a command prompt, verify that all processes in the middle tier have stopped. $ ps –ef | grep _apps Win2K: Verify that all middle tier services have stopped.

23 Stop the Infrastructure
Oracle 9iAS METADATA Repository Single Sign-On Oracle Internet Directory Oracle Management Server Portal and Wireless J2EE and WebCache Business Intelligence / Forms MIDDLE TIER 9I APPLICATION SERVER INFRASTRUCTURE browser

24 Stop the Infrastructure
Step 2: Stop Infrastructure components: From OEM, click ‘infrastructure’ instance, click ‘Stop All’ Unix: from a command prompt, verify that all processes in the middle tier have stopped. $ ps –ef | grep _infra Win2K: Verify that all middle tier services have stopped

25 Stop the Infrastructure
Step 3: Stop OID If OID is still running, use the following commands to stop OID: $ oidctl server=oidldapd instance=1 configset=1 stop $ oidmon stop Monitor Process Terminated Step 4: Stop Enterprise Manager $ emctl stop

26 Stop the Infrastructure
Step 5: Kill any remaining processes Step 6: Stop TNS listener $ lsnrctl stop LSNRCTL for Solaris: Version Production on 25-OCT :44:15 Copyright (c) 1991, 2001, Oracle Corporation. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) The command completed successfully

27 Stop the Infrastructure
Step 7: Shutdown infrastructure database $ sqlplus SQL*Plus: Release Production on Fri Oct 25 13:45: (c) Copyright 2001 Oracle Corporation. All rights reserved. Enter user-name: sys/manager as sysdba Connected to: Oracle9i Enterprise Edition Release Production With the Partitioning option JServer Release Production SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down.

28 Monitoring 9iAS Server Activity

29 Enterprise Manager Instance Management

30 Manage Your OC4J Apps

31 Web Application Deployment with HTML, Java, and PL/SQL

32 Applications are deployed to middle tier
Oracle 9iAS METADATA Repository Single Sign-On Oracle Internet Directory Oracle Management Server Portal and Wireless J2EE and WebCache Business Intelligence / Forms MIDDLE TIER 9I APPLICATION SERVER INFRASTRUCTURE browser

33 HTML Site Deployment

34 Identify Document Root

35 Deploying an html web site
Create a subdirectory below ‘document root’ of middle tier application server Copy all application html and image files to new directory. $ mkdir MyNewApp $ cp index.html ./MyNewApp $ cp *.html ./MyNewApp

36 Run the web app…

37 Create a Java App Developers build an application using JDeveloper or other Java development tools Developers may package the application to: .ear file [Enterprise ARchive] – J2EE Packaged Application. May contain XML, .java, .war files, classes .war file [Web ARchive] – Packaged JSPs and Servlets

38 Deploying a Java App (using a WAR file)
In OEM, select middle tier instance Click ‘Create OC4J Instance’ Add ‘Instance Name’ Click ‘Create’ New OC4J app will appear in the System Components list of middle tier

39 OEM System Components

40 Deploy WAR (con’d) Enter path to WAR file or use the Browse button
Enter Application Name In “Map to URL” Enter a virtual path (i.e. MyDemo) Click Deploy

41 Deploy Java App (con’d)
Receive success message During deployment WAR files are ‘wrapped’ to EAR files before deployment You are returned to administration screen in OEM for your application. Click ‘Start’ to start the OC4J application You can then run the application from the browser: (i.e.

42 Deploy a PL/SQL Application
Requires Database Access Descriptor (DAD) configuration PL/SQL packages, procedures in the database using web toolkit

43 Sample Stored Procedure
In a schema, create a stored procedure: connect scott/tiger create or replace procedure hello_oracle is begin htp.print ('<h1>Hello oracle</h1>'); end; / Setup a tnsnames.ora entry if one does not exist in middle tier to target database

44 Define the DAD in OEM Access the middle tier instance
Click ‘HTTP Server’ Click ‘PL/SQL Properties’ under Administration Click ‘Create’ in DAD Status

45 Define the DAD in OEM (con’d)
Step 1 – Create DAD: DAD Type Portal or General Step 2 – Username, password, connect string Authentication Mode = Basic Finish & Restart HTTP Server

46 Run the PL/SQL App (con’d)
Run the url:

47 Troubleshooting

48 Troubleshooting 9iAS rel2
I can’t connect!

49 Troubleshooting Can you connect from your browser to the middle tier http server? Is network connectivity available to the server? ‘ping servername’ Does sql*net connectivity exist between the middle tier and infrastructure?

50 Troubleshooting Is Oracle Internet Directory running?
$ ps -ef | grep oid oracle Oct 04 ? :05 /d01/oracle/product/9ias_infra/bin/oidmon start oracle Oct 04 ? :07 oidldapd -p i 1 -conf 0 –s port sslenable 2 key= Can you connect to the infrastructure database? Attempt a client/server connection to the database verifying the listener is listening for incoming requests Connect to the database using sql*plus

51 Win2K Services Panel Are your middle tier and infrastructure services running?

52 Using RDA Remote Diagnostic Agent from Oracle Support
Gathers Oracle environment information Gathers hardware and operating system information Download RDA from metalink.oracle.com Set environment to middle tier or infrastructure $ORACLE_HOME Run rda.sh script Unix Tip: Create a directory beneath document root and copy RDA_OUTPUT files

53 Using RDA (continued)

54 Review Error Logs Middle Tier from $ORACLE_HOME :
./Apache/Apache/logs/error_log ./opmn/logs/ons.log ./opmn/logs/ipm.log ./webcache/logs/event_log ./webcache/logs/access_log

55 Review Error Logs Infrastructure from $ORACLE_HOME:
./Apache/Apache/logs/error_log ./ldap/log/* ./sysman/log/* ./opmn/logs/ons.log ./opmn/logs/ipm.log

56 Where to go from here... Oracle Education: http://technet.oracle.com
Oracle 9iAS Basic Administration – 5 days Oracle 9iAS: Advanced Administration for J2EE and Web Cache – 2 days Oracle9i: Administer Oracle Internet Directory – 3 days Discussion Groups groups.google.com technet discussion forums

57 Tracie Thomas – thomas@mfgsys.com
Thank You!!!! Tracie Thomas –


Download ppt "Oracle 9I Application Server Release 2 – Basic Administration"

Similar presentations


Ads by Google