Oracle® HTML DB User's Guide Release 2.0 Part Number B16373-01 |
|
|
View PDF |
Oracle HTML DB administrators are responsible for managing an entire Oracle HTML DB instance. To perform these tasks, an Oracle HTML DB administrator logs into the Oracle HTML DB Administration Services application.
This section describes tasks an Oracle HTML DB administrator performs when administering an Oracle HTML DB hosted service.
This section contains the following topics:
In the Oracle HTML DB development environment, users log in to a shared work area called a workspace. Users are divided into three primary roles:
Developers create and edit applications.
Workspace administrators perform administrator tasks specific to their workspace such as managing user accounts, monitoring workspace activity, and viewing log files. See "Managing a Development Workspace".
Oracle HTML DB administrator are superusers that manages the entire hosted instance using the Oracle HTML DB Administration Services application.
See Also: Refer to appropriate installation guide for your platform for information about installing Oracle HTML DB |
Oracle HTML DB administrators are responsible for managing an entire Oracle HTML DB instance. To perform these tasks, an Oracle HTML DB administrator logs into the Oracle HTML DB Administration Services application.
To log in to Oracle HTML DB Administration Services:
In a Web browser, navigate to the Oracle HTML DB Administration Services application:
http://hostname:port/pls/htmldb/htmldb_admin
Where:
hostname
is the name of the system where Oracle HTTP Server is installed.
port
is the port number assigned to Oracle HTTP Server. In a default installation, this number is 7777. You can find information about your Oracle HTTP Server installation's port number from either of the following files:
ORACLE_BASE
\
ORACLE_HOME
\install\portlist.ini
ORACLE_BASE
\
ORACLE_HOME
\Apache\Apache\conf\httpd.conf
htmldb
is the database access descriptor (DAD) defined in the mod_plsql configuration file.
The Login page appears.
In Username, enter admin
.
In Password, enter the Oracle HTML DB administrator account password you specified when you installed Oracle HTML DB.
Click Login.
Oracle HTML DB Administration Services appears.
See Also: Refer to the appropriate installation guide for information about installing Oracle HTML DB |
This section describes how to manage the schemas within an Oracle HTML DB instance.
Topics in this section include:
Oracle HTML DB administrators may need to perform certain actions within the HTML DB engine schema. For example, in order for an Oracle HTML DB administrator to have the ability to assign Oracle default schemas, the database administrator (DBA) must explicitly grant the privilege by running the HTMLDB_SITE_ADMIN.UNRESTRICT_SCHEMA
procedure within the HTML DB engine schema.
See Also: "Understanding Oracle Default Schema Restrictions" for information about theHTMLDB_SITE_ADMIN.UNRESTRICT_SCHEMA procedure |
To determine the current HTML DB engine schema for your Oracle HTML DB instance:
Use SQL*Plus to connect to the database.
Run the following query in a schema with DBA privileges (for example, SYSTEM
).
SELECT TABLE_OWNER FROM all_synonyms WHERE SYNONYM_NAME = 'WWV_FLOW' and OWNER = 'PUBLIC'
When Oracle HTML DB installs, the Oracle HTML DB administrator does not have the ability to assign Oracle default schemas to workspaces. Default schemas (such as SYS
, SYSTEM
, and RMAN
) are reserved by Oracle for various product features and for internal use. Access to a default schema can be a very powerful privilege. For example, a workspace with access to the default schema SYSTEM
can run applications that parse as the SYSTEM
user.
In order for an Oracle HTML DB administrator to have the ability to assign Oracle default schemas to workspaces, the database administrator (DBA) must explicitly grant the privilege using SQL*Plus to run a procedure within the HTMLDB_SITE_ADMIN_PRIVS
package.
Note: All schema and workspace names used as arguments to procedures in theHTMLDB_SITE_ADMIN_PRIVS package are used exactly as they are provided by the caller.
For example, if you pass an argument value such as |
Topics in this section include:
The DBA can grant an Oracle HTML DB administrator the ability to assign Oracle default schemas to workspaces by using SQL*Plus to run the HTMLDB_SITE_ADMIN_PRIVS.UNRESTRICT_SCHEMA
procedure from within the HTML DB engine schema. For example:
EXEC HTMLDB_SITE_ADMIN_PRIVS.UNRESTRICT_SCHEMA(p_schema => 'SYSTEM'); COMMIT:
This example would enable the Oracle HTML DB administrator to assign the SYSTEM schema to any workspace.
The DBA can revoke this privilege using SQL*Plus to run the HTMLDB_SITE_ADMIN_PRIVS.RESTRICT_SCHEMA
procedure from within the HTML DB engine schema. For example:
EXEC HTMLDB_SITE_ADMIN_PRIVS.RESTRICT_SCHEMA(p_schema => 'SYSTEM'); COMMIT;
This example would prevent the Oracle HTML DB administrator from assigning the SYSTEM schema to any workspace. It does not, however, prevent workspaces that have already had the SYSTEM schema assigned to them from using the SYSTEM schema.
If a schema has been designated as restricted using the RESTRICT_SCHEMA
procedure, the DBA can designate specific workspaces as exceptions by running the HTMLDB_SITE_ADMIN_PRIVS.CREATE_EXCEPTION
procedure. For example:
EXEC HTMLDB_SITE_ADMIN_PRIVS.CREATE_EXCEPTION(p_schema => 'SYSTEM', p_schema => 'DBA_WORKSPACE'); EXEC HTMLDB_SITE_ADMIN_PRIVS.CREATE_EXCEPTION(p_schema => 'SYSTEM', p_schema => 'AUDITOR_WORKSPACE'); COMMIT:
This example would prevent the Oracle HTML DB administrator from assigning the SYSTEM schema to the workspace named AUDITOR_WORKSPACE. However this restriction only applies to workspace provisioning requests processed after the REMOVE_EXCEPTION
procedure has been run. If the AUDITOR_WORKSPACE already had the SYSTEM schema assigned to it, this method would not prevent that workspace from continuing to use the schema.
The DBA can remove all workspace exceptions for a schema by using SQL*Plus to run the HTMLDB_SITE_ADMIN_PRIVS.REMOVE_WORKSPACE_EXCEPTIONS
procedure from within the HTML DB engine schema. For example:
EXEC HTMLDB_SITE_ADMIN_PRIVS.REMOVE_WORKSPACE_EXCEPTIONS(p_schema => 'SYSTEM'); COMMIT:
This example would prevent the Oracle HTML DB administrator from assigning the SYSTEM schema to any workspaces if the SYSTEM schema were already restricted, but had one or more exceptions previously created for it.
The DBA can remove all schema exceptions for a workspace by using SQL*Plus to run the REMOVE_SCHEMA_EXCEPTIONS
procedure from within the HTML DB engine schema. For example:
EXEC REMOVE_WORKSPACE_EXCEPTIONS(p_workspace => 'AUDITOR_WORKSPACE'); COMMIT:
This example would prevent the Oracle HTML DB administrator from assigning any restricted schemas to the workspace named AUDITOR_WORKSPACE if that workspace had exceptions previously created for it with respect to any restricted schemas.
The DBA can determine the current status of the privilege by using SQL*Plus to run the HTMLDB_SITE_ADMIN_PRIVS.REPORT
procedure. For example:
SET SERVEROUTPUT ON EXEC HTMLDB_SITE_ADMIN_PRIVS.REPORT;
This example would display the text of a query that dumps the tables that defines the schema and workspace restrictions.
SELECT a.schema "SCHEMA",b.workspace_name "WORKSPACE" FROM WWV_FLOW_RESTRICTED_SCHEMAS a, WWV_FLOW_RSCHEMA_EXCEPTIONS b WHERE b.schema_id (+)= a.id;
When reviewing the output of this query, remember the following:
A schema name in the SCHEMA column indicates that the schema is restricted.
Schemas that are not listed are not restricted and may be assigned to any workspace.
A workspace name next to a schema name means that an exception exists for the schema for the named workspace.
You can run this query in SQL*Plus as shown above, or you can change it and format the output.
When a user logs into the Oracle HTML DB, they log in to a shared work area called a workspace. Each workspace can have multiple associated schemas. By associating a workspace with a schema, developers in that workspace can:
Build applications that interact with the database objects in that schema.
Create new database objects in that schema.
To create a workspace manually:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Workspaces.
Select Manage Workspace to Schema Assignments.
The Manage Workspace to Schema Assignments page appears.
To create a new workspace to schema assignment, click Create and follow the on-screen instructions.
To edit and existing workspace to schema assignment:
Select the workspace name.
The Edit Schema to Workspace Assignment page appears.
Select a new workspace or schema.
Click Apply Changes.
When a user logs into the Oracle HTML DB they log in to a shared work area called a workspace. Each workspace is an area within the Oracle HTML DB development environment where multiple developers can create applications. Each workspace has a unique numeric ID and name. In order to make changes to their workspace, Workspace administrators submit change request to an Oracle HTML DB administrator. Only an Oracle HTML DB administrator can approve change requests or provision new workspaces.
Topics in this section include:
When an Oracle HTML DB administrator creates a new workspace with a new schema, a new tablespace and datafile are created for that schema. The datafile for the new tablespace is managed by Oracle-managed files if Oracle-managed files is enabled.
Oracle-managed files simplifies the administration of the Oracle database and eliminates the need for the database administrator (DBA) to directly manage the operating system files that comprise the database. Using Oracle-managed files the DBA specifies operations in terms of database objects rather than file names. The datafile for the any new tablespaces will be named according to the Oracle-managed files conventions and the placement of these files will be determined by the database initialization parameter DB_CREATE_FILE_DEST
.
If the Oracle-Managed Files is not enabled, the datafile will be created in the same directory as the first datafile of the tablespace in which Oracle HTML DB was installed.
See Also: Oracle Database Administrator's Guide for information about Oracle-managed files |
As an Oracle HTML DB administrator, you determine how the process of provisioning (or creating) a workspace works for your Oracle HTML DB development instance.
In manual provision mode, an Oracle HTML DB administrator creates new workspaces and notifies the Workspace administrator of the login information. In request provision mode, users request workspaces directly in a self-service fashion. In this scenario, users use a link on the login page to access a request form. After the workspace request has been granted, users are automatically e-mailed the appropriate login information.
To specify a provisioning mode:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Environment Settings.
Under Self Service, select a provisioning status:
Manual - Oracle HTML DB administrator manually creates new workspaces and notifies the Workspace administrator of the login information.
Request - Users request workspaces directly in a self-service fashion.
If you select Request in the previous step, enter a URL in Development Service URL (optional).
The value you enter will used in the e-mail when the request is approved. This setting defines the URL for the service. If this setting is not present, the URL will be derived from your environment.
Click Apply Changes.
Note: To enable users to request a workspace using a link on the login page, an Oracle HTML DB administrator must choose the provisioning status of Request as described in the previous procedure. If the provisioning status is set to Manual, no link will appear on the login page. |
Oracle HTML DB administrators can provision a workspace manually by running the Create Workspace Wizard.
To create a workspace manually:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Workspaces.
Select Create Workspace.
The Create Workspace Wizard appears.
Specify a workspace name and description and click Next.Specify whether you are re-using an existing schema or creating a new one.
If you are using an existing schema:
Re-use existing schema, select Yes.
Select a schema from the list and click Next.
If you creating a new schema:
Re-use existing schema, select No.
Enter a schema name and password.x
Specify a space quota and click Next.
Specify a Workspace administrator by providing a username, password, and e-mail address. Click Next.
Confirm your selections and click Provision.
Oracle HTML DB administrators can view detailed information about a specific workspace by viewing the Workspace Utilization Report.
To view a workspace report:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Workspaces.
Select Workspace Details.
Select a workspace from the list and click Go.
The Workspace Utilization Report appears. Table 22-1 describes the various sections of the Workspace Utilization Report.
Table 22-1 Workspace Utilization Report
Report | Description |
---|---|
Name | Displays high level information about the current workspace. |
Schemas | Displays the default tablespace associated with the workspace schema. |
Tablespace Utilization | Displays the schema that utilizing space in a tablespace. |
Applications | Lists all applications within the current workspace. |
Developers | Lists all application developers within the current workspace. |
HTML DB Users | Lists all defined users within the current workspace. |
Objects by Type | Lists objects used in the current workspace. |
Change Requests | Lists all change requests in an Oracle HTML DB development instance.
See Also: "Managing Change Requests" |
User Activity | Lists user activity by date. |
Developer Activity | Lists developer activity by developer name and application. |
An Oracle HTML DB administrator is responsible for reviewing requests for new service. In order to manage service requests, you need to have selected the Request provisioning status. In Request mode, users request workspaces directly in a self-service fashion. For example, users could click a link on the login page to access a request form. Once the service request has been approved, each user is e-mailed the appropriate login information.
Topics in this section include:
You can view existing service requests on the Notifications list on the Oracle HTML DB Administration Services home page or the Service Requests page.
Topics in this section include:
The Notifications list on the Oracle HTML DB Administration Services home page displays pending or approved service requests.
To view service requests on the Notifications list:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Locate the Notifications list.
The Notifications list displays a summary of total and pending service requests.
To view additional details, click the appropriate service request number.
To view service requests from the Service Requests page:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Service Requests.
The Service Requests page appears.
To filter the report, make a selection from the Status list and click Go.
To view request details, click the Edit icon associated with the appropriate request.
To approve or decline a pending service request:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Service Requests.
The Service Requests page appears.
From the Status list, select Requested and click Go.
Locate a request to review.
To view request details, click the Edit icon associated with the appropriate request.
Click Provision in the Actions column:
To approve the request, click Approved.
To decline the request, click Declined.
To change an existing service request:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Service Requests.
The Service Requests page appears.
To filter the report, make a selection from the Status list and click Go.
Locate a request to review.
Click Adjust in the Actions column.
The Adjust Request page appears.
Select a new status from the Project Status list.
Click Apply Changes.
Note: Be cautious when setting the Project Status to Requested. Although Requested enables you to reprovision a workspace, it could result in data corruption due to the manner in which accounts are provisioned. The provisioning system assumes Requested service requests do not have the corresponding schemas and dictionary entries for a workspace administrator or developers. If you need to change the Project Status for an Approved workspace to Requested, terminate the service first and then change the status to Requested. |
To delete an existing service or change request:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Service Request.
From Status, select the type of request you want to delete.
Click the Edit icon associated with the request you want to delete.
Click Delete.
Oracle HTML DB administrators can modify a workspace (for example, add a new schema or increase the disk space limit) by approving a change request.
Topics in this section include:
You can view existing service requests and change requests from the Notifications list on the Oracle HTML DB Administration Services home page or from the Change Requests pages.
Topics in this section include:
Viewing a Pending Change Request from the Notifications List
Viewing a Change Request from the Workspace Utilization Report
To view change requests from the Notifications list:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Locate the Notifications list.
The Notifications list displays a summary of total and pending change requests.
To view additional details, click the appropriate change request number.
The appropriate Change Request page appears.
To view pending requests from the Workspace Utilization Report:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Workspaces.
Select Workspace Details.
Locate a workspace as follows:
To locate a specific workspace, type the workspace name in the Search field and click Go.
To view all workspaces, leave the Search field blank and click Go.
To view details about a specific workspace, click the View icon to the left of the workspace name.
The Workspace Utilization Report appears.
Locate the section Service Change Requests.
To view change requests from the Service Requests page:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service Requests.
Select Manage Change Requests.
From Status, select the type of requests you want to view and click Go.
To approve or decline a pending change request:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Change Requests.
Locate the request and click View Request under the Action column.
The Process Change Request page appears.
Select one of the following:
To approve a request for a schema, click Create Schema.
To approve a request for additional disk space, click Provision Space.
To approve a request to terminate the service, click Terminate Service
To deny a request, click Deny Request.
To delete a request and deny it, select Delete this request if denying? and then click Deny Request.
Follow the on-screen instructions.
Oracle HTML DB administrators can manage all user accounts within an Oracle HTML DB instance on the Manage Application Developers and Users page. User accounts are particularly useful if a workspace utilizes HTML DB Authentication.
See Also:
|
Topics in this section include:
To create a new user account:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Workspaces.
Select Manage Developers and Users.
The Manage Application Developers and Users page appears.
Click Create.
Under User Attributes, enter the appropriate information. Fields marked with a red asterisk (*) are required.
Under Password, type a case-sensitive password for this account.
Under Developer Privileges, specify the developer's privileges:
User is a developer - These users can create and edit applications as well as view developer activity, session state, workspace activity, application, and schema reports.
User is an administrator - Workspace administrators additionally can create and edit user accounts, manage groups, alter passwords of users within the same workspace, and manage development services as described in "Managing a Development Workspace".
Click Create or Create and Create Another.
To edit an existing user account:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Workspaces.
Select Manage Developers and Users.
The Manage Application Developers and Users page appears.
Locate a user as follows:
To locate a specific user, type a username or partial string in the Find User field and click Go.
To view all users, leave the Find User field blank and click Go
To edit account details, select the user name.
Make the appropriate changes and click Apply Changes.
This section describes how to manage existing workspaces within an Oracle HTML DB instance.
Topics in this section include:
If you are managing a large hosted Oracle HTML DB instance, periodically purging inactive workspaces can free up resources for other users. The process of purging inactive workspaces consists of the following steps:
Identify inactive workspaces
Remove the resources associated with each inactive workspace
Delete the inactive workspaces
The first step in determining if a workspace is inactive is to establish some basic rules. A common approach is to base the rules on the Oracle HTML DB activity records found in the current HTML DB engine schema.
The following DDL (data definition language) creates a table of all workspaces requested before June 28, 2004 but that have been inactive since June 10, 2004. In this example, inactivity is determined by checking a key within the HTML DB engine schema for the most recent updates by each workspace.
CREATE TABLE ws_to_purge AS SELECT c.security_group_id, c.company_name, c.admin_email, c.request_date, SYSDATE last_updated_on, 'Y' ok_to_delete FROM wwv_flow_provision_company c WHERE c.request_date <= to_date('20040628','YYYYMMDD') AND ( not exists (SELECT NULL /* Activity Log */ FROM wwv_flow_activity_log l WHERE l.security_group_id = c.security_group_id AND l.time_stamp > to_date('20040610','YYYYMMDD')) ) AND NOT EXISTS (SELECT NULL /* workspace applications */ FROM wwv_flows f WHERE f.security_group_id = c.security_group_id AND f.last_updated_on > to_date('20040610','YYYYMMDD')) AND NOT EXISTS (SELECT NULL /* Pages */ FROM wwv_flow_steps s WHERE s.security_group_id = c.security_group_id AND s.last_updated_on > to_date('20040610','YYYYMMDD')) AND NOT EXISTS (SELECT NULL /* Regions */ FROM wwv_flow_page_plugs p WHERE p.security_group_id = c.security_group_id AND p.last_updated_on > to_date('20040610','YYYYMMDD')) AND NOT EXISTS (SELECT NULL /* Items */ FROM wwv_flow_step_items i WHERE i.security_group_id = c.security_group_id AND i.last_updated_on > to_date('20040610','YYYYMMDD')) AND NOT EXISTS (SELECT NULL /* Templates */ FROM wwv_flow_templates t WHERE t.security_group_id = c.security_group_id AND t.last_updated_on > to_date('20040610','YYYYMMDD')) AND NOT EXISTS (SELECT NULL /* Files uploaded */ FROM wwv_flow_file_objects$ o WHERE o.security_group_id = c.security_group_id AND o.created_on > to_date('20040610','YYYYMMDD')) AND NOT EXISTS (SELECT NULL /* SQL Workshop history */ FROM wwv_flow_sw_sql_cmds s WHERE s.security_group_id = c.security_group_id AND s.created_on > to_date('20040610','YYYYMMDD'));
After you identify inactive workspaces, you can purge them. Purging inactive workspaces is a two step process:
First, remove the resources (that is, the database schemas, tablespaces, and data files) associated with each inactive workspace
Second, drop the inactive workspaces from Oracle HTML DB
After you have identified inactive workspaces in a single table, the next step is to remove them.
Note: Before removing the schemas, tablespaces, or data files associated with inactive workspaces, make sure these resources are not being used in by any other workspace or application |
To remove the resources associated with inactive workspaces:
Identify the schemas used by the workspaces to be deleted by joining the table containing the identified inactive workspaces to wwv_flow_company_schemas.
Drop the schemas, tablespaces, and data files used exclusively by the inactive workspaces from the database. You can identify the schemas to drop by running a query similar to the following.
SELECT s.schema FROM ws_to_purge ws, wwv_flow_company_schemas s WHERE s.security_group_id = ws.security_group_id AND ws.ok_to_delete = 'Y';
Once you remove the resources associated with an inactive workspace, you can delete it. You can delete inactive workspaces manually using the Oracle HTML DB Administration Services application. Or, you can delete them programmatically as shown in the following PL/SQL example.
BEGIN FOR c1 IN (SELECT security_group_id FROM ws_to_purge WHERE ok_to_delete = 'Y') LOOP WWV_FLOW_PROVISIONING.TERMINATE_SERVICE_BY_SGID(c1.security_group_id); END LOOP; END;
Removing a workspace does not remove any of the associated database objects. To remove the associated schemas, a database administrator (DBA) must use a standard database administration tool such as Oracle Enterprise Manager or SQL*Plus.
Sees Also:
|
To remove a workspace:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Workspaces.
Select Remove Workspace.
Select a workspace name and click Next.
Follow the on-screen instructions.
To move a workspace and all associated users to a new Oracle HTML DB instance, you must export the workspace. When you export a workspace, Oracle HTML DB generates a text file. This file contains information about your workspace, all the users in your workspace, and any groups in your workspace (if applicable). You can use this file to import your workspace into another Oracle HTML DB instance.
Keep in mind, this method only imports workspace, users, and groups. This file does not contain:
The schemas associated with this workspace, or the objects in those schemas.
Any applications, images, cascading style sheets and static text files.
All of these items must be exported separately.
To export a workspace:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Workspaces.
Select Export Workspace.
Select a workspace name and click Export Workspace.
To export the selected workspace, click Save File.
Follow the on-screen instructions.
To import a workspace:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Workspaces.
Select Import Workspace.
Select a workspace name and click Next.
To install the workspace, click Install.
Follow the on-screen instructions.
Oracle HTML DB administrators can manage the following log files on the Manage Logs and Files page:
SQL Workshop logs
Page View Activity logs
Developer activity logs
External click counting log
Topics in this section include:
The SQL Workshop logs maintain a history of recent commands and scripts run in the SQL Command Processor.
To delete log files entries:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Logs.
The Manage Logs page appears.
Select SQL Workshop logs.
Select one of the following:
Script File executions log entries
SQL Command Processor history entries
To delete entries by age:
Specify the age of the entries to deleted.
Click Delete Entries.
To delete all entries, click Truncate Log.
Page view activity logs track user activity for an application. Developers enable logging within their application on the Edit Application Attributes page.
The HTML DB engine actually uses two logs to track user activity. At any given time, one log is designated as current. For each rendered page view, the HTML DB engine inserts one row into the log file. A log switch occurs at the interval listed on the Manage Activity Logs page. At that point, the HTML DB engine removes all entries in the noncurrent log and designates it as current.
To truncate the activity logs manually:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Logs.
The Manage Logs page appears.
Select Page View Activity Log, with option to truncate.
Click Truncate Logs.
Click either Truncate Log 1 or Truncate Log 2.
The Developer Activity Log tracks changes to applications within an individual workspace. Log entries older than one month are automatically deleted.
To delete Developer Activity Log entries:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Logs.
The Manage Logs page appears.
Select Developer Activity Logs, with option to delete entries.
On the Developer Activity Logs page, click Manage.
Specify the age of the entries to be deleted and click Delete Entries.
See Also: "Viewing Application Changes by Developer" for information about the Developer Activity Log |
The External Clicks Log counts clicks from an Oracle HTML DB application to an external site. You can implement this functionality using COUNT_CLICK
procedure.
To delete click counting log entries:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Logs.
The Manage Logs page appears.
Select External Click Counting Log, with option to truncate.
On the Click Counting Log page, click Manage.
Specify the age of the entries to be deleted and click Delete Entries.
The HTML DB Mail Log records message header information and send date of successfully sent mail message.
To truncate the mail log:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Logs.
The Manage Logs page appears.
Select Mail Log.
On the Manage Mail Log page, click Truncate Log.
A session is a logical construct that is used to establish persistence (or stateful behavior) across page views. Each session is assigned a unique ID which the HTML DB engine uses to store and retrieve an application's working set of data (or session state) before and after each page view. An automatic process clears sessions older than 24 hours every eight hours. As an Oracle HTML DB administrator, you can also purge them manually.
An Oracle HTML DB administrator can view session state statistics and purge session state on the Session State page.
Topics in this section include:
Using the Purge Session page, administrators can purge sessions by age.
To view specific session details:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Session State.
Select Purge Sessions by age.
On the Purge Session page, specify:
The maximum number of sessions to be purged
The age of session to be purged
To view a report of session statistics, click Count Sessions.
To purge the selected sessions, click Purge Sessions.
Before purging sessions, administrators can use the Recent Sessions page to first view a listing of recent sessions and then drill down on session details.
To purge sessions by age:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Session State.
Select Recent Sessions, with drill down to session details.
On the Recent Sessions page, you can:
Click a session ID to view additional details.
Click Purge Session to delete the displayed sessions.
On the Session State Statistics page, administrators can view statistics about current sessions prior to purging.
To view session state statistics:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Session State.
Select Session State Statistics.
Click Purge Sessions to delete the current sessions.
Oracle HTML DB administrators can monitor user activity by accessing a number of charts and reports on the Monitoring page. You can use the Monitor Activity page to view activity of all workspaces within the current Oracle HTML DB instance.
To monitor user activity:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Monitor Activity.
Select a chart or report to review.
Environment settings control HTML DB configuration and apply to all workspaces within the current Oracle HTML DB instance.
Topics in this section include:
To view existing environment settings:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Environment Settings.
Scroll down to the bottom of the page and select Settings.
The current selected settings appears
By default, developers can change and compile PL/SQL source code when browsing database procedures, packages, and functions in Object Browser. You can control PL/SQL program unit editing for an entire workspace by making a selection from Allow PL/SQL Program Unit Editing.
To disable PL/SQL program unit editing:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Environment Settings.
Locate the section Application Development.
From Allow PL/SQL Program Unit Editing, select No.
Click Apply Changes.
See Also: "Disabling PL/SQL Program Unit Editing" for information about disabling PL/SQL program unit editing for a specific workspace |
When you create a new workspace, Oracle HTML DB automatically creates demonstration applications within the workspace.
To disable the creation of demonstration applications:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Environment Settings.
Locate the section Application Development.
From Create demonstration objects in new workspaces, select No.
Click Apply Changes.
To enable users to request a workspace or reset their passwords using links on the login page, you must configure Oracle HTML DB to send mail. In order to enable Oracle HTML DB to send mail, you must configure a number of settings on the Environment Preferences page.
To configure Oracle HTML DB to send mail:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Environment Settings.
Under Email, enter the following:
SMTP Host Address - Defines the server address of the SMTP server. On installation, this will be set to localhost. If you are using another server as an SMTP relay, change localhost to that server's address.
SMTP Host Port - Defines the port the SMTP server listens to for mail requests. By default, this setting will be set to 25 at the time of installation.
Administration Email Address - Defines the "from" address for administrative tasks such as approving a provision request, or resetting a password generates an e-mail.
Click Apply Changes.
Use the attributes under SQL Workshop to configure basic SQL Workshop behavior.
To configure SQL Workshop:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Environment Settings.
Under SQL Workshop, enter the attributes described in Table 22-2.
Table 22-2 SQL Workshop Attributes
Attribute | Description |
---|---|
SQL Commands Maximum Inactivity in minutes | Identify the maximum amount of time a transactional command in the SQL Command Processor waits before timing out. |
SQL Scripts Maximum Script Output Size in bytes | Identify the maximum amount of output a single SQL script can generate. SQL scripts are run from the SQL Workshop. |
SQL Scripts Maximum Workspace Output Size in bytes | Identify the maximum amount of space all scripts within a workspace may consume. SQL script results are the output generated when running SQL scripts from the Script Editor or from the SQL Scripts home page. |
SQL Scripts Maximum Script Size in bytes | Identify the maximum size of a SQL script used within the SQL Workshop. |
Enable Transactional SQL Commands | Select Yes to enable transactional SQL commands for the entire Oracle HTML DB instance. Enabling this feature permits SQL Command Processor users to issue multiple SQL commands within the same physical database transaction.
When you select Yes, an Autocommit check box appears on the SQL Command Processor page. By default, this option is set to No. |
Click Apply Changes.
The Database Monitoring page contains a variety of reports that describe the activity, storage, and configuration of the current database instance. Once enabled, only users having a database user account that has been granted a DBA role can access the Database Monitor page.
Before you can access the Database Monitoring page, you must enable database monitoring on Manage Environment Settings page.
To enable database monitoring:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Environment Settings.
From Enable Database Monitoring, select Yes.
Click Apply Changes.
Note: Only users having a database user account that has been granted a DBA role can access the Database Monitor page. |
Use the Security section of the Manage Environment Settings page to disable administrator and workspace login as well as restrict user access by IP address.
Topics in this section include:
Oracle HTML DB administrators can restrict user access to Oracle HTML DB Administration Services by selecting Yes from Disable Administrator Login. Selecting Yes prevents unauthorized users from logging in to Oracle HTML DB Administration Services and possibly compromising user login credentials.
To disable user access to Oracle HTML DB Administration Services:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Environment Settings.
Scroll down to Security.
From Disable Administrator Login, select Yes.
Setting this value and logging out, prevents anyone from logging in to Oracle HTML DB Administration Services.
To reverse this setting, connect in SQL*Plus as the HTML DB engine schema and execute the following:
BEGIN WWV_FLOW_API.SET_SECURITY_GROUP_ID(p_security_group_id=>10); WWV_FLOW_PLATFORM.SET_PREFERENCE( p_preference_name => 'DISABLE_ADMIN_LOGIN', p_preference_value => 'N' ); end; / commit /
The applications that comprise Oracle HTML DB (such as, Application Builder and SQL Workshop) exist within a workspace named Internal. To restrict user access to Internal applications, select Yes from Disable Workspace Login. Selecting Yes in production environments prevents unauthorized users from running applications in the Internal workspace (such as, Application Builder and SQL Workshop) and possibly compromising login credentials. Administrators who use this feature should also consider disabling user access to Oracle HTML DB Administration Services.
To disable user access to the Internal workspace:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Environment Settings.
Scroll down to Security.
From Disable Workspace Login, select Yes.
Selecting Yes, prevents users for logging in to the Internal workspace.
Click Apply Changes.
Oracle HTML DB administrators can restrict user access to an Oracle HTML DB instance by creating a Runtime setting named RESTRICT_IP_RANGE
.
To restrict user access by IP address:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Environment Settings.
Scroll down to Security.
From Disable Administrator Login, select No.
In Restrict Access by IP Address, enter a comma-delimited list of IP addresses. Use an asterisk (*) to specify a wildcard.
You can enter IP addresses from one to four levels. For example:
141, 141.* ... 192.128.23.1 ...
Note: When using wildcards, do not include additional numeric values after wildcard characters. For example,138.*.41.2 . |
Click Apply Changes.
Use the Manage Applications page to change the Build Status of an application or view application reports.
Topics in this section include:
Every Oracle HTML DB application has an application-level attribute called Build Status. You can use this attribute to prevent an application from being modified by other developers. Build Status has two settings:
Run and Build Application - Developers can both run and edit an application
Run Application Only - Developers can only run an application
Setting the Build Status to Run Application Only is an effective way to prevent other developers from modifying it. You can change the Build Status by:
Changing the Build Status attribute on the Edit Application Attributes page. See "Availability".
Changing the Build Status during the deployment process. See "How to Deploy an Application to Another Oracle HTML DB Instance".
Deploying an application from one Oracle HTML DB instance to another is a four step process:
Move any supporting database objects (if appropriate).
Export the application definition and all related files
Import the exported files into the target Oracle HTML DB instance.
Note that if the target instance is a different schema, you also need to export and import any required database objects.
Install the exported files from Export Repository
During steps 1 and 2, you have the option of setting the Build Status to Run Application Only. Be aware that if you set the Build Status to Run Application Only during deployment, you can only change it in Oracle HTML DB Administration Services.
To change a Build Status set during deployment:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Applications.
Select Build Status.
The Build Status page appears.
Locate an application by making selections from the Build Status, Workspace, and Application lists and clicking Go.
Click the Edit icon adjacent to the appropriate application.
The Edit Build Status page appears.
Select an alternate build status and click Apply Changes.
Oracle HTML DB administrators can view applications by workspace on the Application Attributes page.
To view the Application Attributes page:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Applications.
Select Application Attributes.
The Application Attributes page appears.
Filter the display by making selections from the Display, Application, and Workspace lists and clicking Go.
To sort by column, select a column heading.
To change a Build Status set during deployment:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Applications.
Select Parse as Schemas.
The Parse As Schemas page appears.
Filter the display by making selections from the Parse As, Application, and Workspace lists and clicking Go.
Oracle HTML DB administrators can manage e-mail sent from an application by accessing the HTML DB Mail Queue and HTML DB Mail Log.
Topics in this section include:
Oracle HTML DB administrators can use the Manage Mail Queue page to monitor e-mail messages in the mail queue.
To monitor messages in the mail queue:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Mail Queue.
The Manage Mail Queue page appears.
To send e-mail messages, click Send All Mail.
To delete e-mail messages, select the messages to be deleted and click Delete.
The HTML DB Mail Log records message header information and send date of successfully sent mail message.
To view the mail log:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Logs.
The Manage Logs page appears.
Select Mail log.
To control the number of rows that display, make a selection from the Display list and click Go.
To delete all log entries, click Truncate Log.
The Site-Specific Tasks list is a list of links which displays on the Workspace home page. If links are defined, a Site-Specific Tasks region appears. If no Site-Specific Tasks are defined, the region will not display. This feature enables Oracle HTML DB administrators the ability to customize the Workspace home page. Typical uses for the Site-Specific Tasks list include links to training, discussion forums, and user feedback applications.
Topics in this section include:
To add new task to a Site-Specific Tasks lists:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Site-Specific Task Lists.
The Site-Specific Tasks page appears.
To create a new link, click Create.
On the Site-Specific Tasks page you can specify the following:
Display Sequence - Indicate the relative order of this task within the list.
Display Location - Indicate the page on which the task should display (that is, the Workspace Login page or Workspace home page).
Task Name - Enter a name for this task.
Tasks Link - Enter the link target for this task using either a relative URL (for example, using f?p
syntax) or an absolute URL (such as http://otn.oracle.com
).
Displayed - Determines whether a task or link displays. Select Yes to enable display, or select No to disable display.
Click Create.
To edit an existing task:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Site-Specific Task Lists.
The Site-Specific Tasks page appears.
Select the task name.
On the Site-Specific Tasks page, edit the appropriate attributes.
Click Apply Changes.
To delete an existing task:
Log in to Oracle HTML DB Administration Services. See "Logging in to Oracle HTML DB Administration Services".
Click Manage Service.
Select Manage Site-Specific Task Lists.
The Site-Specific Tasks page appears.
Select the task name.
Click Delete.