Skip Headers
Oracle® TimesTen In-Memory Database Reference
Release 11.2.1

Part Number E13069-03
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

PL/SQL first connection attributes

PL/SQL connection attributes are set by each connection and persist for the duration of the connection. These attributes control the behaviors of the data store. PL/SQL first connection attributes are listed Table 1-5, "PL/SQL first connection attributes" and described in detail in this section.


PLSQL

This attribute determines whether PL/SQL is configured for the data store.

Specifying PLSQL=1 enables PL/SQL use in the data store. Specifying PLSQL=0 disables PL/SQL use in the data store.

On platforms where PL/SQL is supported, and in TimesTen installations where PL/SQL support was enabled at installation time, the default is PLSQL=1. In other environments the default is PLSQL=0.

PL/SQL may be enabled when the data store is initially created, or at any first connect afterwards. However, once PL/SQL support is enabled in a data store, you cannot disable it later.

Configuring PL/SQL support in a data store results in the creation of a number of "built-in" PL/SQL packages and procedures that are defined in Oracle TimesTen In-Memory Database PL/SQL Developer's Guide.

Some things to be aware of when setting this attribute are:

Required privilege

Only the instance administrator can change the value of this attribute.

Setting

Set PLSQL as follows:

Where to set the attribute How the attribute is represented Setting
C or Java programs or UNIX ODBC.INI file PLSQL 0 - Indicates that PL/SQL is not enabled for the data store.

1 - Enables PL/SQL for the data store.



PLSQL_MEMORY_ADDRESS

This attribute determines the virtual address at which this shared memory segment is loaded into each process that makes use of the TimesTen "direct" drivers. This memory address must be identical in each process using TimesTen. You must specify the value as a hexadecimal address.

Use of PL/SQL requires a shared memory segment. This shared memory contains recently-executed PL/SQL code, shared package state, and metadata associated with the operation of PL/SQL. This shared memory segment is separate from the one containing the TimesTen data store.

If PL/SQL use is enabled (PLSQL=1) and you have not specified a value for PLSQL_MEMORY_ADDRESS, TimesTen uses a platform-dependent default value.

The default values for each platform are designed to:1) Maximize the amount of virtual space for your TimesTen database and for your applications.2) Minimize the fragmentation of the virtual address space.3) Avoid conflicts with other uses of virtual address apace.

The platform specific default memory addresses are:

Operating system Address
32-bit Linux 10000000
64-bit Linux 0000007fa0000000
32-bit AIX c0000000
64-bit AIX 06ffffff00000000
32-bit Solaris 10000000
64-bit Solaris ffffff0000000000
HP-UX systems Do not specify a value. The operating system automatically manages the address of the memory segment.
Other platforms To be determined.

Some things to consider when setting this attribute are:

Required privilege

Only the instance administrator can change the value of this attribute.

Setting

Set PLSQL_MEMORY_ADDRESS as follows:

Where to set the attribute How the attribute is represented Setting
C or Java programs or UNIX ODBC.INI file PLSQL_MEMORY_ADDRESS A hexidecimal value that indicates the memory address for PL/SQL process.


PLSQL_MEMORY_SIZE

Use of PL/SQL requires a shared memory segment. This attribute determines the size in megabytes of the shared memory segment used by PL/SQL.

This shared memory contains recently-executed PL/SQL code, the shared package state, and metadata associated with the operation of PL/SQL. This shared memory segment is separate from the one containing the TimesTen database.

Some things to consider when setting this attribute are:

For more information on how to calculate the size for PLSQL_MEMORY_SIZE, see "Calculate shared memory size for PL/SQL runtime" inOracle TimesTen In-Memory Database Operations Guide

Required privilege

Only the instance administrator can change the value of this attribute.

Setting

Set PLSQL_MEMORY_SIZE as follows:

Where to set the attribute How the attribute is represented Setting
C or Java programs or UNIX ODBC.INI file PLSQL_MEMORY_SIZE Specify a positive integer greater than 2 representing the size of the shared memory segment in megabytes. The default size is 32 MB.