Applied Biosystems SQL*LIMS Technical Support Technical Note

Similar documents
How To Reduce Temp Tablespace Size In Oracle 11g

Tablespaces and Datafiles

PERMANENT TABLESPACE MANAGEMENT:

Tablespace Usage By Schema In Oracle 11g Query To Check Temp

Oracle Tuning Pack. Table Of Contents. 1 Introduction. 2 Installation and Configuration. 3 Documentation and Help. 4 Oracle SQL Analyze

Tablespace Usage By Schema In Oracle 11g Rac

INSTALL GUIDE BIOVIA INSIGHT 2.6

Oracle.ActualTests.1Z0-023.v by.Ramon.151q

Oracle 12C DBA Online Training. Course Modules of Oracle 12C DBA Online Training: 1 Oracle Database 12c: Introduction to SQL:

INSTALL GUIDE BIOVIA INSIGHT 2016

CHAPTER. Planning and Managing Tablespaces

Customer PTC E-Newsletter Date: 4/9/03

Explore the Oracle 10g database architecture. Install software with the Oracle Universal Installer (OUI)

ENHANCING DATABASE PERFORMANCE

9i RAC: Manual Backup and Recovery Shankar Govindan

COMPRESS TEST FOR HISTORIC DATABASES

ABSTRACT INTRODUCTION. Bhaskar Himatsingka, Oracle Corporation & Juan Loaiza, Oracle Corporation

MDCStore 2.0 DATABASE. Installation Guide

Setting Up Oracle for ISC

RNDr. Michal Kopecký, Ph.D. Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague

Enabling Seamless Data Access for JD Edwards EnterpriseOne

Change Default Temporary Tablespace Usage Oracle 10g

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Installing and Configuring Oracle 10g Express Edition. for use with the ETM System

Guide to installing Oracle 10G Enterprise Edition Server (and creating databases) on Windows, for Controller 8.2

Oracle EBS Monitoring Scripts

Oracle 1Z Oracle Database 12c - Installation and Administration. Download Full version :

IT100: Oracle Administration

Change Default Temporary Tablespace Use Oracle 11g Create

Setting Up Oracle for Prime Fulfillment

ORACLE DBA TRAINING IN BANGALORE

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

Author: Mounir Babari. Senior Technical Support Engineer UK. IBM B2B & Commerce - Industry Solutions. 1 Reclaiming wasted space in Oracle database

Frequently Asked Questions

ROLLBACK SEGMENTS. In this chapter, you will learn about: Rollback Segment Management Page 272

Oracle Database 11g for Experienced 9i Database Administrators

DumpsKing. Latest exam dumps & reliable dumps VCE & valid certification king

ORACLE 11gR2 DBA. by Mr. Akal Singh ( Oracle Certified Master ) COURSE CONTENT. INTRODUCTION to ORACLE

Alter Change Default Schema Oracle Sql Developer

Backing Up Oracle with TSM

LOSS OF FULL DATABASE AND DATABASE RECOVERY ORACLE 11g

Oracle Database: SQL and PL/SQL Fundamentals

A Robust Blueprint to Performance Optimization in Multiblock Databases. Anthony D. Noriega.

Oracle Database 10g : Administration Workshop II (Release 2) Course 36 Contact Hours

Projects. Corporate Trainer s Profile. CMM (Capability Maturity Model) level Project Standard:- TECHNOLOGIES

Oracle Utilities Customer Care and Billing

Project management integrated into Outlook

Question: 1 Identify three components of an Oracle instance for which you can change the size dynamically. (Choose three.)

Exam Name: Oracle 11i Applications DBA: Fundamentals I Exam Type Oracle Exam Code: 1z0-235 Total Questions: 108

Oracle 1Z0-053 Exam Questions and Answers (PDF) Oracle 1Z0-053 Exam Questions 1Z0-053 BrainDumps

DBA_VIEWS DBA_SEQUENCES

TECHNOLOGY: Security Encrypting Tablespaces

Course Contents of ORACLE 9i

ORANET- Course Contents

Projects. Corporate Trainer s Profile. CMM (Capability Maturity Model) level Project Standard:- TECHNOLOGIES

Oracle Database Administration

ASM BASED TABLESPACES BACKUP WITH RMAN FOR LONG TERM OFFLINE STORING

Oracle Database Creation for Perceptive Process Design & Enterprise

Oracle Database 12c Performance Management and Tuning

Q-DAS Database Manual

Donald K. Burleson Dave Ensor Christopher Foot Lisa Hernandez Mike Hordila Jonathan Lewis Dave Moore Arup Nanda John Weeg

Q-DAS Database Manual

Oracle Tablespaces, etc.: Managing the Disk Resource

Recovering Oracle Databases

RIIL IT Business Management. Installation Guide. Ruijie Networks Co., Ltd. All rights reserved. Ver

Tuning Considerations for Different Applications Lesson 4

Oracle Database 12c R2: Administration Workshop Ed 3 NEW

ORACLE DBA I. Exploring Oracle Database Architecture

CHAPTER. Oracle Database 11g Architecture Options

Manually configuring Oracle 12c IBM

Oracle Technical Questions. 1. What are the components of Physical database structure of Oracle Database?.

Oracle Database 12c R2: Administration Workshop Ed 3

Boost ERP/CRM Performance by Reorganizing Your Oracle Database: A Proven Reorganization Strategy Donald Bakels

Oracle Database 11g : Performance Tuning DBA Release2

ORACLE 11g RDBMS Features: Oracle Total Recall Oracle FLEXCUBE Universal Banking Release [May] [2017]

Topics - System Administration for Glovia

OL Videoscape Control Suite Database User Guide

Managing Oracle Real Application Clusters. An Oracle White Paper January 2002

CA ERwin Mart Server. Release Notes. Service Pack 9.5.2

Oracle 1Z0-031 Exam Questions & Answers

Performing a 32 bit to 64 bit migration using the Transportable Database RMAN feature

Create Undo Tablespace In Oracle 10g Syntax

Learning Objectives : This chapter provides an introduction to performance tuning scenarios and its tools.

Oracle 1Z0-235 Exam Questions & Answers

Course: Oracle Database 12c R2: Administration Workshop Ed 3

Installation and Configuration Guide

Exam Questions 1Z0-062

Installing the Oracle Database Softwar

HP OpenView Operations

Genesys App Automation Platform Deployment Guide. Pre-Installation Checklist

Electronic Presentation

The Oracle DBMS Architecture: A Technical Introduction

Information Lifecycle Management with Oracle Database 10g Release 2 and NetApp SnapLock

PERFORMANCE TUNING TRAINING IN BANGALORE

E-Guide DATABASE DESIGN HAS EVERYTHING TO DO WITH PERFORMANCE

oratop A Database Monitoring Tool May 2014

Oracle Database 11g: Performance Tuning DBA Release 2

Vendor: Oracle. Exam Code: 1Z Exam Name: Oracle database 10g:new features for adminsitrators. Version: Demo

Oracle - Oracle Database 12c R2: Administration Workshop Ed 3

Data Warehouse Installation and Configuration Guide

Transcription:

Applied Biosystems SQL*LIMS Technical Support Technical Note Document Number: DBA003 Last Revised: 5//2003 Software Versions: SQL*LIMS v4.0.6 and v4. Author: Deborah Man Subject: How to check storage space in the database and increase space if required Description: It is good practice to check regularly that an Oracle instance has ample storage space, especially since the SQL*LIMS information management system can grow rapidly in use. The tablespaces and datafiles set up at installation might not be able to cope with the increasing demand for storage space over time. This article explains how to monitor space utilization and add more storage space when needed. Errors: If the SQL*LIMS tablespace is almost full and fails to allocate another extent for a table segment, the database operation executed by the SQL command will not occur. An error message will be displayed on the screen and/or be placed in log files or the alert log. Some example error messages are: ORA-0653: Unable to extend table <name.name> by <num> in tablespace <name> PEN-6002: Error during the insertion of <object> [e.g., Attributes or Samples] These errors do not necessarily indicate that you are totally out of space in the tablespace. They do indicate that Oracle cannot find a large enough area of free contiguous space for the next extent. Diagnostic Steps:. In Oracle Enterprise Manager, the Storage Manager client interface provides updated usage information for tablespaces (first figure) and datafiles (second figure).

2. You can also use the Oracle tool DBA Studio to view the storage space status. The views are similar to those in the Storage Manager (shown above). 3. Use the following SQL*Plus scripts to display a snapshot of your storage space. a. Oracle Technical Note ID# 020090.6 presents useful scripts to report space available in a tablespace. (Please refer to that technical note for more information.) To obtain information about the free space in a tablespace, examine DBA_FREE_SPACE, DBA_DATA_FILES, DBA_SEGMENTS, and DBA_EXTENTS. SQL> select a.tablespace_name, sum(a.tots) Tot_Size, sum(a.sumb) Tot_Free, sum(a.sumb)*00/sum(a.tots) Pct_Free, sum(a.largest) Max_Free, sum(a.chunks) Chunks_Free from (select tablespace_name,0 tots,sum(bytes) sumb, max(bytes) largest,count(*) chunks from dba_free_space a group by tablespace_name union select tablespace_name,sum(bytes) tots,0,0,0 from dba_data_files group by tablespace_name) a group by a.tablespace_name;

A sample output is: TABLESPACE_NAME TOT_SIZE TOT_FREE PCT_FREE MAX_FREE CHUNKS_FREE DRSYS INDX RBS SQLLIMS SQLLIMS_INDEX SQLLIMS_MULTIMEDIA SQLLIMS_QA SQLLIMS_TEMPORARY SYSTEM TEMP TOOLS USERS 20,97,520 20,97,520 73,400,320 04,857,600 04,857,600 04,857,600 20,97,520 4,943,040 27,843,328 20,97,520 0,485,760 20,97,520 6,965,632 44,032,000 78,487,552 84,484,096 03,743,488 20,635,648 33,742,848 393,26 0,477,568 8 00 60 75 8 99 98 80 0 00 00 00 b. To obtain information about extents, use this check_nextextent.sql script: 6,965,632 32,505,856 78,487,552 84,484,096 03,743,488 20,635,648 3,694,848 327,680 9,78,44 0,477,568 /* File: check_nextextent.sql This script takes into account Dictionary Managed Tablespaces as well as Locally Managed Tablespaces. This tip also takes into account whether a datafile is set to Autoextend ON. Oracle versions tested: 8..6, 8..7 and 9.0., and it will also work on 9.2. -- ================================= -- Modification History -- --------------------------------- 2-Apr-2003 JAZollars Modified formatting 6-Apr-2003 Sanjay Gupta Original */ Set Linesize 30 Set Trims on Column Tablespace Format A30 Column SegmentType Format A2 Column Owner Format A2 Column Segment Format A30 Column "Required Extent(KB)" Format 999,999,999.99 Column "MaxAvail(KB)" Format 999,999,999.99 SELECT /*+ RULE */ seg.tablespace_name "Tablespace", seg.segment_type "SegmentType", ext.owner, ext.segment_name "Segment", DECODE (freespace.extent_management, 'DICTIONARY', DECODE (seg.extents,, seg.next_extent, 'LOCAL', ext.bytes * ( + seg.pct_increase / 00) ), DECODE (freespace.allocation_type, 'UNIFORM', freespace.initial_extent, 'SYSTEM', ext.bytes) ) / 024 AS "Required Extent(KB)", freespace.largest / 024 "MaxAvail(KB)" FROM dba_extents ext, dba_segments seg, ( SELECT /*+ RULE */ maxsize_perfile.tablespace_name, tbs.extent_management, tbs.allocation_type, tbs.initial_extent, tbs.next_extent, 0 3 2 20

MAX (maxsize_perfile.maxsizebytes) AS largest FROM ( SELECT /*+ RULE */ ddf.tablespace_name, ddf.file_id, DECODE ( autoextensible, 'YES', (ddf.maxbytes - ddf.bytes), 0 ) + NVL (MAX (dfs.bytes), 0) AS maxsizebytes, NVL (MAX (dfs.bytes), 0) AS maxfreeextentsizebytes FROM dba_free_space dfs, dba_data_files ddf, dba_tablespaces tbsp WHERE dfs.file_id(+) = ddf.file_id AND tbsp.tablespace_name = ddf.tablespace_name AND tbsp.contents = 'PERMANENT' AND tbsp.status = 'ONLINE' GROUP BY ddf.tablespace_name, ddf.file_id, DECODE ( autoextensible, 'YES', (ddf.maxbytes - ddf.bytes), 0) ) maxsize_perfile, dba_tablespaces tbs WHERE maxsize_perfile.tablespace_name = tbs.tablespace_name AND tbs.status = 'ONLINE' GROUP BY maxsize_perfile.tablespace_name, tbs.extent_management, tbs.allocation_type, tbs.initial_extent, tbs.next_extent) freespace WHERE seg.owner = ext.owner AND seg.segment_type = ext.segment_type AND seg.segment_name = ext.segment_name AND seg.tablespace_name = ext.tablespace_name AND seg.extents - = ext.extent_id AND seg.tablespace_name = freespace.tablespace_name AND DECODE (freespace.extent_management, 'DICTIONARY', DECODE (seg.extents,, (seg.next_extent), ext.bytes * ( + seg.pct_increase / 00) ), 'LOCAL', DECODE (freespace.allocation_type, 'UNIFORM', freespace.initial_extent, 'SYSTEM', ext.bytes) ) > freespace.largest ORDER BY seg.tablespace_name, seg.segment_type, seg.segment_name / If the check_nextextent.sql script returns no rows, it means that the database has enough extents for growth next time. If it returns one or more rows, the tables or indexes listed will have a problem when they next try to extend. A sample output in the latter case is: Tablespace SegmentType OWNER Segment RequiredExtent (KB) MaxAvail (KB) SQLLIMS NESTED TABLE OPS$PENLIMS LRH_ATTRIBUTES 2,520.00 2,368.00 SQLLIMS NESTED TABLE OPS$PENLIMS RESULT_ATTRIBUTES 2,520.00 2,368.00 SQLLIMS NESTED TABLE OPS$PENLIMS TASK_ATTRIBUTES 3,780.00 2,368.00 SQLLIMS TABLE OPS$PENLIMS NAI_RESULTS 24,300.00 2,368.00 In this example, the SQLLIMS tablespace will run out of extents in the segments LRH_ATTRIBUTES, RESULT_ATTRIBUTES, TASK_ATTRIBUTES, and NAI_RESULTS. The respective required extents as compared with the largest freespace available are displayed so that you can determine the size of the datafile to be added to cope with the demand. This script warns you of any immediate space problem. It is advisable to run this script on a weekly basis, especially for a production environment.

Providing more space for your database: The following steps can be performed separately to provide more space:. If the extents are adjacent to each other, you can manually coalesce the adjacent free extents: ALTER TABLESPACE <tablespace name> COALESCE; 2. If you have enough disk space, add a datafile: ALTER TABLESPACE <tablespace name> ADD DATAFILE '<full path and file name>' SIZE <integer>; For example: ALTER TABLESPACE SQLLIMS ADD DATAFILE '/space/limsdata/lims6/sqllims_tablespace02.dbf' SIZE 200M; 3. If you have enough disk space, resize the datafile: ALTER DATABASE DATAFILE '<full path and file name>' RESIZE <integer> <k m>; Adding and resizing datafiles are the most direct and effective ways to fix the storage space problem. 4. If you have enough disk space, enable AUTOEXTEND: ALTER DATABASE DATAFILE <full path and file name> AUTOEXTEND ON MAXSIZE UNLIMITED; This temporary measure may not work if the tablespace is almost full. 5. Defragment the tablespace: Perform an export and then an import of the database to reorganize the tablespace. Then run the v4. to v4. migration procedures to revalidate all the synonyms, views, and packages.