Data Security with Flex2SQL and BTR2SQL Connectivity Products
The most common reason for Enterprises looking to migrate from legacy Btrieve or DataFlex databases is the urgent need to address security and...
My disk was full because the USERS Tablespace was bigger than 17Gb. Here are the steps to shrink an Oracle Tablespace:
1. PURGE TABLESPACE;
Example:
purge tablespace USERS;
2. ALTER TABLESPACE <TableSpace> COALESCE;
Example:
alter tablespace USERS coalesce;
3. Change the TableSpace Size:
alter database datafile '<FullTableSpacePathWithName>'resize <NewSize>M;
Example:
alter database datafile 'C:ORACLEPRODUCT10.1.0ORADATAORA10GUSERS01.DBF'resize 10000M;
Errors you might get:
ORA-03297: file contains used data beyond requested RESIZE value
It means that the new size is too small. You must increase the number of the size you want.
You can use the SQL statement bellow to see the max values for the Tablespaces:
select a.tablespace_name, a.file_name,(b.maximum+c.blocks-1)*d.db_block_size highwater
from dba_data_files a,(select file_id,max(block_id) maximum from dba_extents group by file_id) b ,dba_extents c , (select value db_block_size from v$parameter where name='db_block_size') d where a.file_id = b.file_id and c.file_id = b.file_id and c.block_id = b.maximum order by a.tablespace_name,a.file_name
 
                  
                
                The most common reason for Enterprises looking to migrate from legacy Btrieve or DataFlex databases is the urgent need to address security and...
 
                  
                
                 Riaz Merchant:  Oct 28, 2024 6:12:41 AM
                    
                    Riaz Merchant:  Oct 28, 2024 6:12:41 AM
                  Introduction Many independent software vendors (ISV) and corporate users still rely on applications that use a category of database collective called...
 
                  
                
                 Riaz Merchant:  Oct 18, 2024 9:21:56 AM
                    
                    Riaz Merchant:  Oct 18, 2024 9:21:56 AM
                  COBOL applications are the foundation of numerous essential business functions, especially within the banking, insurance, and government sectors....