Page History
...
- Prerequisites for configuring the PMDB in an SQL Server
- Prerequisites for configuring the PMDB in an Oracle Server
- Additional DBA settings
- How to disable the recycle bin in Oracle version 10gEnabling Automatic Undo Management (AUM)
- About backing up the database and creating archiving
- About maintenance operations
- About changing the size of tables and index extents
...
Install the Precise environment before configuring the SQL Server-based PMDB. Before applying the information in this section, refer to the Installing Precise Installation GuideComponents.
For an SQL Server-based PMDB, use an MS-SQL dedicated instance.
...
The results should be that the " Extent Scan Fragmentation " is less than 50 and the " Logical Scan Fragmentation " is low; otherwise, it will damage the index scans.
...
Info |
---|
Be aware that the index and the table will not be available is unavailable during the rebuild. |
Backing up the database and creating archiving
...
If you choose the simple recovery mode for the database (the transaction log can be deleted after a commit or checkpoint), the recovery will not be able to cannot work to a point in time, but only to the backup time.
...
If you do not create a backup, information will be is lost when you have a database crash and you will not be able to cannot recover data.
Additional DBA settings for an SQL Server-based PMDB
...
Install the Precise environment before configuring the Oracle-based PMDB. Before applying the information in this section, refer to the Precise Installation Guide. For an Oracle-based PMDB, use an Oracle dedicated instance.
...
The configuration that is recommended when the PMDB is based on an Oracle database can be found in the following paragraphs. For updated information, also see: my.precise.com/
If you install the PMDB on an Oracle legacy database, verify that the database block size is at least 8 KB. If not, try to install the PMDB on a different Oracle instance.
...
Parameter | Value | Improvement | |
---|---|---|---|
db_block_size | Minimum 8 KB (16 KB recommended) | This value defines the Oracle block size. The block size is set when creating the database and cannot be changed afterwards. A value of at least 8 KB ensures that the PMDB can perform smoothly. A lower value may cause serious performance problems. If you are installing on a legacy database, verify that the database block size is 8 KB or higher. If not, try to install the PMDB on a different Oracle instance. Info | db_block_size parameter in the init. ora file. |
Required INIT.ORA changes
...
Parameter | Value | Improvement / Remarks | ||
---|---|---|---|---|
log_ buffer | If the version <9.2.0.7, then the log_buffer = 3 MB, else the log_buffer= 16 MB. | |||
shared_pool_size | 1/4 of the physical memory. | The shared pool should not be too small (< 250 MB) or too large (>2 GB). | ||
log_checkpoint_timeout | 900 | |||
open_cursors | 300 | Verify that you have enough open cursors for the application to execute. | ||
Processes | 300 | Verify that you have enough processes for the application to execute. | db_writer_processes | Should be set according to the number of I/O devices you have for the database. |
Parameter | Value | Improvement / Remarks | ||
Improves I/O performance in cases of large I/O. Each writer is writing to different disks (improves loads, for example) . |
Table 4 Oracle 8i parameters
(1/8th of the physical memory) / (concurrent users + 10), up to 6 MB. | For example: If you have 2 GB of Physical Memory and 90 users, then the calculation will be: (2 GB / 8) / 100 ~= 2.5 MB | |
db_block_buffers | 1/3rd of the physical memory divided by the size of the | The given values help to keep the I/O wait of the PMDB queries low. |
...
db_cache_size
...
Replaces parameter db_block_buffers
. Sets the final size of the buffer pool to 1/3rd of the physical memory.
...
pga_aggregate_target
...
1/3rd of the physical memory.
...
workarea_size_policy
...
DB-cache_advice
...
Verify that this parameter is set to off
because the default value is on
.
...
Table 6 Oracle 10g parameter
...
sga_target
...
Automatic memory management. 1/4th of the physical memory.
...
Replaces the following parameters:
- db_cache_size
- shared_pool_size
- large_pool_size
- java_pool_size
Verify that they are initialized with either 0 or the minimum value you need.
INIT.ORA example
The following is an example of the init.ora
file for a an Oracle 912.2 server with 2 GB RAM and 2 disksinstance.
db_block_size=16384 # 16K
db_cache_size=268435456 # 256MB
log_buffer=5242880 # 5 MB
shared_pool_size=471859200 # 450MB
log_checkpoint_timeout=900 # 15 minutes
pga_aggregate_target=262144000 # 256MB
session_cached_cursors=300 name='ORCL' memory_target=1G processes=300 db_block_size=8192db_domain='' db_recovery_file_dest='<ORACLE_BASE>/flash_recovery_area'
db_recovery_file_dest_size=2G diagnostic_dest='<ORACLE_BASE>'dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'
open_cursors=300
processes=300
undo_management=AUTO remote_login_passwordfile='EXCLUSIVE'
undo_tablespace='UNDOTBS1'
undo_retention=900 # 15 minutes
...
To improve performance, the DBA on site must modify the Rollback segment settings and the Redo log file settings. The following table describes those settings.
...
Rollback segments (For Oracle 8i)
...
Minimum tablespace size
...
Rollback segments (For Oracle 8i)
...
Rollback segments (For Oracle 8i)
...
5 MB
Info |
---|
Each rollback segment should be able to grow to the size of the tablespace. |
...
Enable AUM (For Oracle 9i and later)
...
Automatic Undo Management
...
Temporary tablespace
...
Minimum temporary tablespace size
...
2 GB
Info |
---|
The temporary tablespace is most likely to grow (according to the PMDB load). |
...
Redo log file
...
Minimum redo log file size
...
1 GB (4 GB in large installations)
Info |
---|
If the redo file is switching every 20 minutes, enlarge the file. |
...
Each Rollback segment should contain a minimum of 5 extents. The size of each extent within a Rollback segment should be at least 1MB each. Their optimal size should be set to the summed size of those extents. For example, if creating a rollback segment with 5 extents of 1MB each, you should set the optimal size to 5MB. This is to prevent the changing size of the rollback segment to exhaust the tablespace's free space.
If possible, keep data tablespace indexes and temporary tablespace on different disk drives. Verify that the recycle bin in Oracle version 10 is disabled. See How to disable the recycle bin in Oracle version 10g . For more information refer to the Using Flashback Drop and Managing the Recycle Bin section in the Oracle Administration Guide.
Four Redo logs should be created, each with 1 mirror (2 members for each group). Remember that hardware mirroring is better than software mirroring.
In Oracle version 9i and higher, it is recommended to configure the Undo space management; otherwise, you must configure the rollback segments according to the rules in Table 6-7.
...
# You may want to ensure that control files are created on separate physical
# devices
control_files = (ora_control1, ora_control2)
compatible ='12.0.0'
Anchor | ||||
---|---|---|---|---|
|
...
Our recommendation is to disable the recycle bin and this section describes the background and the action on how to disable the recycle bin.
...
alter system set recyclebin=off scope=BOTH
Anchor | ||||
---|---|---|---|---|
|
The PMDB holds information for up to three years by default. If you want to backup this information, you should enable the Redo log archiving, and create a backup using RMAN. For more information, refer to the official Oracle Backup and Recovery documentation. If you do not create a backup, information will be lost when you have a database crash and you will not be able to recover data. If you create a backup without using the archive mode, you will be able to recover data to the time of the backup. All new operations (after the logs were archived) will be lost.
Anchor | ||||
---|---|---|---|---|
|
To enable Automatic Undo Management (AUM), you must create a new tablespace and set the init.ora
parameters. For additional information on how to enable AUM, see the Oracle Database Administrator's Guide, "Managing Undo Space."
To enable Automatic Undo Management (AUM)
- Create the
undo tablespace
by running the following command:CREATE UNDO TABLESPACE tablespace_name DATAFILE 'datafile name' SIZE 32M REUSE AUTOEXTEND ON EXTENT MANAGEMENT LOCAL
- Set the following
init.ora
parameters:- undo_management = AUTO
- undo_tablespace = tablespace_name
- undo_retention = 900
If the undo tablespace
size is too large, you may decrease the number of seconds.
Anchor |
---|
...
The PMDB holds information for up to 3 years by default. If you want to backup this information, you should enable the Redo log archiving, and create a backup using RMAN
or the Precise backup utility. For more information, refer to the official Oracle Backup and Recovery documentation.
If you do not create a backup, information will be lost when you have a database crash and you will not be able to recover data. If you create a backup without using the archive mode, you will be able to recover data to the time of the backup. All new operations (after the logs were archived) will be lost.
Anchor | |||
---|---|---|---|
|
...
The following table shows the default extents sizes.
Table 8 Default 4 Default extents sizes
Tablespace | Size |
---|---|
Large table | 2 MB |
Medium table | 512 KB |
Small table | 80 KB |
Large index | 1 MB |
Medium index | 256 KB |
Small index | 80 KB |