Administration Guide

 Previous Next Contents View as PDF  

Overview of WebLogic System Administration

Introduction to System Administration

WebLogic Server Domains

System Administration Infrastructure

The Administration Server and Managed Servers

Failover for the Administration Server

Failover for Managed Servers

Domain-Wide Administration Port

Service Packs and WebLogic Server Instances

System Administration Tools

Security Protections for System Administration Tools

System Administration Console

Command-Line Interface

JMX

Configuration Wizard

Java Utilities

Node Manager

SNMP

Logs

Editing config.xml

Resources You Can Manage in a WebLogic Server Domain

Servers

Clusters

Machines

Network Channels

JDBC

JMS

WebLogic Messaging Bridge

Web Servers and Web Components

Applications

Application Formats

Editing Deployment Descriptors Using the Administration Console

Editing and Creating Deployment Descriptors with WebLogic Builder

Startup and Shutdown Classes

JNDI

Transactions

XML

Security

WebLogic Tuxedo Connector

Jolt

Mail

Starting and Using the Administration Console

Browser Support for the Administration Console

Starting the Administration Console

Using the Administration Console

Navigating in the Administration Console

Configuring Objects or Resources

Using the Administration Console to Manage Multiple Domains

Monitoring a Domain Using the Administration Console

Monitoring Administration Console Tasks

Getting Help for Using the Administration Console

Using WebLogic Server with Web Servers

Monitoring

Licenses

Starting and Stopping WebLogic Servers

The Server Lifecycle

Controlling the Server Lifecycle

Timeout Period for LifeCycle Operations

Providing Usernames and Passwords to Start a Server

Specifying an Initial Administrative Username

Bypassing the Prompt for Username and Password

Creating a Boot Identity File for an Administration Server

Creating a Boot Identity File for a Managed Server

Using a Boot Identity File

Removing a Boot Identity File After Startup

Alternate Method: Passing Identity Information on the Command Line

Starting an Administration Server

Starting an Administration Server from the Windows Start Menu

Starting an Administration Server Using a Script

Using the Configuration Wizard Scripts to Start an Administration Server

Creating Your Own Script to Start an Administration Server

Using a Non-Default JVM with WebLogic Server

Using the weblogic.Server Command

Setting the Classpath

Command Syntax for weblogic.Server

Required Arguments

Frequently Used Optional Arguments

Other Optional Arguments

Development Mode vs. Production Mode

Startup Arguments for the Administration Port and the weblogic.Admin Utility

A Server's Root Directory

Using the Default Configuration to Start a Server

Starting a Managed Server

Adding a Managed Server to a Domain

Starting a Managed Server from the Windows Start Menu

Starting a Managed Server Using a Script

Using the Configuration Wizard Scripts to Start a Managed Server

Creating Your Own Script to Start a Managed Server

Starting a Managed Server from the Command Line

Configuring a Connection to the Administration Server

Specifying the Default Startup State

Starting a Remote Managed Server

Starting and Killing All WebLogic Servers in a Domain or Cluster

Starting All Managed Servers in a Domain

Starting All Managed Servers in a Cluster

Killing All Servers in a Domain

Killing All Servers in a Cluster

Shutting Down WebLogic Servers

Configuring Startup and Shutdown Classes

Setting Up a WebLogic Server Instance as a Windows Service

Setting Up a Windows Service: Main Steps

Create a Server-Specific Script

Set Additional Values for Managed Servers

Require Managed Servers to Start After Administration Servers

Enable Graceful Shutdowns from the Control Panel

Redirecting Standard Out and Standard Error to a File

Adding Classes to the Classpath

Run the Server-Specific Script

Verifying the Setup

Verifying the User Account Under Which the Service Runs

Using the Control Panel to Stop or Restart a Server Instance

Removing a Server as a Windows Service

Changing Startup Credentials for a Server Set Up as a Windows Service

Protecting System Administration Operations

Operations Available to Each Role

Default Group Associations

Protected User Interfaces

Layered Security Scheme for Server Resources

Security Policies for Server Resources

MBean Protections

How the WebLogic Security Service Verifies Layered Protections

Example

Part 1: MBean Protections

Part 2: Security Policy on the Server Resource

Maintaining a Consistent Security Scheme

Permissions for Starting and Shutting Down Servers

Permissions for Using the weblogic.Server Command

Permissions for Using the Node Manager

Shutting Down a WebLogic Server Instance

Using Log Messages to Manage WebLogic Server

WebLogic Server Log Messages

Message Attributes

Message Severity

Message Output

Exceptions and Stack Traces

WebLogic Server Log Files

Local Log Files and Domain Log Files

Log File Names and Locations

Log File Rotation

WebLogic Log File Viewer

Output to Standard Out

Redirecting System.out and System.err to a File

Garbage Collection Comments

Configuration Auditing

Enabling Configuration Auditing

Configuration Auditing Messages

Additional Log Files

Deploying Applications

Supported Formats for Deployment

Deploying a Web Application Using the (deprecated) weblogic.deploy Utility

Deployment Documentation

Configuring WebLogic Server Web Components

Overview

HTTP Parameters

Configuring the Listen Port

Web Applications

Web Applications and Clustering

Designating a Default Web Application

Configuring Virtual Hosting

Virtual Hosting and the Default Web Application

Setting Up a Virtual Host

How WebLogic Server Resolves HTTP Requests

Setting Up HTTP Access Logs

Log Rotation

Common Log Format

Setting Up HTTP Access Logs by Using Extended Log Format

Creating the Fields Directive

Supported Field identifiers

Creating Custom Field Identifiers

Preventing POST Denial-of-Service Attacks

Setting Up WebLogic Server for HTTP Tunneling

Configuring the HTTP Tunneling Connection

Connecting to WebLogic Server from the Client

Using Native I/O for Serving Static Files (Windows Only)

Managing Transactions

Overview of Transaction Management

Configuring Transactions

Additional Attributes for Managing Transactions

Configuring Domains for Inter-Domain Transactions

Limitations for Inter-Domain Transactions

Inter-Domain Transactions for WebLogic Server Domains

Using Security Interoperability Mode

Configuring Security Interoperability Mode

Determining the Security Interoperability Mode

Monitoring and Logging Transactions

Transaction Monitoring

Transaction Log Files

Setting the Transaction Log File Write Policy

Heuristic Log Files

Handling Heuristic Completions

Moving a Server

Moving a Server to Another Machine

Abandoning Transactions

Transaction Recovery After a Server Fails

Transaction Recovery Service Actions After a Crash

Recovering Transactions for a Failed Non-Clustered Server

Recovering Transactions for a Failed Clustered Server

Limitations of Migrating the Transaction Recovery Service

Preparing to Migrate the Transaction Recovery Service

Managing JDBC Connectivity

Overview of JDBC Administration

About the Administration Console

About the Command-Line Interface

About the JDBC API

Related Information

Administration and Management

JDBC and WebLogic jDrivers

Transactions (JTA)

JDBC Components—Connection Pools, Data Sources, and MultiPools

Connection Pools

Application-Scoped JDBC Connection Pools

MultiPools

Data Sources

JDBC Data Source Factories

Security for JDBC Connection Pools

Security for JDBC Connection Pools in Compatibility Mode

Configuring and Managing JDBC Connection Pools, MultiPools, and DataSources Using the Administration Console

JDBC Configuration

Creating the JDBC Objects

Targeting the JDBC Objects

Configuring JDBC Connectivity Using the Administration Console

Database Passwords in Connection Pool Configuration

JDBC Configuration Tasks Using the Command-Line Interface

Managing and Monitoring Connectivity

JDBC Management Using the Administration Console

JDBC Management Using the Command-Line Interface

JDBC Configuration Guidelines for Connection Pools, MultiPools, and DataSources

Overview of JDBC Configuration

When to Use a Tx Data Source

Drivers Supported for Local Transactions

Drivers Supported for Distributed Transactions Using XA

Drivers Supported for Distributed Transactions without XA

Avoiding Server Lockup with the Correct Number of Connections

Configuring JDBC Drivers for Local Transactions

Configuring XA JDBC Drivers for Distributed Transactions

WebLogic jDriver for Oracle/XA Data Source Properties

Additional XA Connection Pool Properties

Configuring Non-XA JDBC Drivers for Distributed Transactions

Non-XA Driver/Single Resource

Non-XA Driver/Multiple Resources

Limitations and Risks When Using a Non-XA Driver in Global Transactions

Non-XA Connection Pool and Tx Data Source Configuration Example

Increasing Performance with the Prepared Statement Cache

Non-XA Prepared Statement Cache

XA Prepared Statement Cache

Usage Restrictions for the Prepared Statement Cache

Calling a Stored Prepared Statement After a Database Change May Cause Errors

Using setNull In a Prepared Statement

Prepared Statements in the Cache May Reserve Database Cursors

Determining the Proper Prepared Statement Cache Size

Using a Startup Class to Load the Non-XA Prepared Statement Cache

Managing JMS

JMS and WebLogic Server

Configuring JMS

JMS Resource Naming Rules for Domain Interoperability

Naming Rules for JMS Resources In a Single Domain Environment

Naming Rules for JMS Resources In a Multi-Domain Environment

Starting WebLogic Server and Configuring JMS

Starting the Default WebLogic Server

Starting the Administration Console

Configuring a Basic JMS Implementation

Configuring JMS Servers

Configuring Connection Factories

Configuring Destinations

Configuring JMS Templates

Configuring Destination Keys

Configuring Stores

About JMS JDBC Stores

Using Oracle Primary Keys with a JMS JDBC Store

About JMS JDBC Store Table Prefixes

Recommended JDBC Connection Pool Settings for JMS JDBC Stores

Configuring Session Pools

Configuring Connection Consumers

Monitoring JMS

Monitoring JMS Objects

Monitoring Durable Subscribers

Monitoring Distributed Destination System Subscriptions and Proxy Topic Members

Tuning JMS

Persistent Stores

Configuring a Synchronous Write Policy for JMS File Stores

Using Message Paging

Configuring Paging

JMS Paging Attributes

Establishing Message Flow Control

Configuring Flow Control

Flow Control Thresholds

Tuning a Distributed Destination

Configuring Message Load Balancing for a Distributed Destination

Configuring Server Affinity for a Distributed Destination

Configuring Distributed Destinations

Guidelines for Configuring Distributed Destinations

Configuration Best Practices for Distributed Destinations

Load Balancing and Server Affinity Tuning

Automatic JMS Template Creation

JMS Server Removal Precaution

Creating a Distributed Topic and Creating Members Automatically

Creating a Distributed Topic and Adding Existing Physical Topics as Members Manually

Creating a Distributed Queue and Creating Members Automatically

Creating a Distributed Queue and Adding Existing Physical Queues as Members Manually

Creating a JMS Distributed Queue Member

Deleting a JMS Distributed Queue Member

Creating a JMS Distributed Topic Member

Deleting a JMS Distributed Topic Member

Deleting a Distributed Destination

Monitoring Distributed Destinations

Recovering from a WebLogic Server Failure

Programming Considerations

Migrating JMS Data to a New Server

Using the WebLogic Messaging Bridge

What Is a Messaging Bridge?

Messaging Bridge Configuration Tasks

About the Bridge's Resource Adapters

Deploying the Bridge's Resource Adapters

Configuring the Source and Target Bridge Destinations

Configuring a JMS Bridge Destination

Configuring a General Bridge Destination

Configuring a Messaging Bridge Instance

Using the Messaging Bridge to Interoperate with Different WebLogic Server Releases and Domains

Naming Guidelines for WebLogic Servers and Domains

Message Properties

Configuring Interoperability for WebLogic Domains

Using the Messaging Bridge To Access Destinations In a Release 6.1 or Later Domain

Using the Messaging Bridging To Access Destinations In a Release 6.0 Domain

Using the Messaging Bridging To Access Destinations In a Release 5.1 Domain

Using the Messaging Bridge to Access a Third-Party Messaging Provider

Managing a Messaging Bridge

Stopping and Restarting a Messaging Bridge

Monitoring Messaging Bridges

Configuring the Execute Thread Pool Size

Managing JNDI

Overview of JNDI Management

What Do JNDI and Naming Services Do?

Viewing the JNDI Tree

Loading Objects in the JNDI Tree

Managing the WebLogic J2EE Connector Architecture

Overview of WebLogic J2EE Connectors

Configuring Resource Adapters (Connectors) for Deployment

Configuring a Connector to Display a Connection Profile

Deploying Resource Adapters (Connectors)

Viewing Deployed Resource Adapters (Connectors)

Undeploying Deployed Resource Adapters (Connectors)

Updating Deployed Resource Adapters (Connectors)

Monitoring Connections

Getting Started

Viewing Leaked Connections

Viewing Idle Connections

Deleting Connections

Deleting a Connector

Editing Resource Adapter Deployment Descriptors

Managing WebLogic Server Licenses

Installing a WebLogic Server License

Updating a License

Using the WebLogic Java Utilities

AppletArchiver

Syntax

CertGen

Syntax

Example

ClientDeployer

Conversion

der2pem

Syntax

Example

dbping

Syntax

Example

Deployer

Syntax

Actions (select one of the following)

Options

Examples

EJBGen

getProperty

Syntax

Example

ImportPrivateKey

Syntax

Example

logToZip

Syntax

Examples

MulticastTest

Syntax

Example

myip

Syntax

Example

pem2der

Syntax

Example

Schema

Syntax

Example

showLicenses

Syntax

Example

system

Syntax

Example

verboseToZip

Syntax

UNIX Example

NT Example

version

Syntax

Example

writeLicense

Syntax

Examples

WebLogic Server Command-Line Interface Reference

About the Command-Line Interface

Before You Begin

Using WebLogic Server Administration Commands

Syntax

Connection and User Credentials Arguments

Summary of User Credentials Arguments

Examples of Providing User Credentials

WebLogic Server Administration Command Reference

CANCEL_SHUTDOWN

Syntax

Example

CONNECT

Syntax

Example

FORCESHUTDOWN

Syntax

Example

GETSTATE

Syntax

Example

HELP

Syntax

Example

LICENSES

Syntax

Example

LIST

Syntax

Example

LOCK

Syntax

Example

MIGRATE

Syntax

Examples

PING

Syntax

Example

RESUME

Syntax

Example

SERVERLOG

Syntax

Example

SHUTDOWN

Syntax

Example

START

Syntax

Example

STARTINSTANDBY

Syntax

Example

STOREUSERCONFIG

Syntax

Configuring the Default Path Name

Creating User-Configuration and Key Files

Using a Single Key File for Multiple User-Configuration Files

Examples

THREAD_DUMP

Syntax

Example

UNLOCK

Syntax

Example

VERSION

Syntax

Example

WebLogic Server Connection Pools Administration Command Reference

CREATE_POOL

Syntax

Example

DESTROY_POOL

Syntax

Example

DISABLE_POOL

Syntax

Example

ENABLE_POOL

Syntax

Example

EXISTS_POOL

Syntax

Example

RESET_POOL

Syntax

Example

MBean Management Command Reference

Specifying MBean Types

Specifying Servers

CREATE

Syntax

Example

DELETE

Syntax

Example

GET

Syntax

Example

INVOKE

Syntax

Example

SET

Syntax

Example

Example: Targeting a JDBC Connection Pool

Using weblogic.Admin Commands to Manage Users and Groups

Finding the Object Name for an AuthenticationProvider MBean

Creating a User

Adding a User to a Group

Verifying Whether a User is a Member of a Group

Listing Groups to Which a User Belongs

Limiting Group Membership Searching in an LDAP Server

Using Ant Tasks to Configure a WebLogic Server Domain

Overview of Configuring and Starting Domains Using Ant Tasks

Starting Servers and Creating Domains Using the wlserver Ant Task

What the wlserver Ant Task Does

Basic Steps for Using wlserver

Sample build.xml Files for wlserver

wlserver Ant Task Reference

Configuring a WebLogic Server Domain Using the wlconfig Ant Task

What the wlconfig Ant Task Does

Basic Steps for Using wlconfig

Sample build.xml Files for wlconfig

Complete Example

Query and Delete Example

Example of Setting Multiple Attribute Values

wlconfig Ant Task Reference

Main Attributes

Nested Elements

WebLogic SNMP Agent Command-Line Reference

Required Environment and Syntax for the SNMP Command-Line Interface

Environment

Common Arguments

Commands for Retrieving the Value of WebLogic Server Attributes

snmpwalk

Syntax

Example

snmpgetnext

Syntax

Example

snmpget

Syntax

Example

Commands for Testing Traps

snmpv1trap

Syntax

Example

snmptrapd

Syntax

Example

Example: Sending Traps to the Trap Daemon

 

Back to Top Previous Next