Showing posts from August, 2022

ORA-1652: unable to extend temp segment by 21446 in tablespace SYSTEM

ORA-1652: unable to extend temp segment by 21446 in tablespace SYSTEM  ORA-1652: unable to extend temp segment by 21446 in tablespace SYSTEM reported in the alert.log. This occurs when Users have the SYSTEM tablespace assigned as their default tempora…

Monitor Temporary Tablespace Usage

Monitor Temporary Tablespace Usage SELECT (s.tot_used_blocks / f.total_blocks) * 100 AS "percent used"   FROM (SELECT SUM (used_blocks) tot_used_blocks           FROM v$sort_segment          WHERE tablespace_name = 'TEMPTS1') s,   …

RENAME OR MOVE A LOGFILE IN ORACLE

RENAME AND OR MOVE A LOGFILE 1. Shutdown the database.     SQL> SHUTDOWN IMMEDIATE;    2. Copy the logfile to the new name/location at operating system level.     $cp oldfile  newfile   3. Mount the database.      SQL> STARTUP MOUNT     …

How to to rename a tempfile in Oracle 10g

In Oracle 10g there is a New syntax in the database_file_clauses lets to rename tempfiles as well as datafiles.  The following procedure to be followed to rename a tempfile  ##################################### If the file is the default temporary…

Unable to drop temporary tablespace

To drop the existing temporary tablespace    The following procedure to be followed    a. create another temporary tablespace in another  drive ( windows ) or filesystem.(linux)     CREATE TEMPORARY TABLESPACE  TEMP1 TEMPFILE '<PATH>/temp1…

ORA-03217: invalid option for alter of TEMPORARY TABLESPACE

Issue :   Error while adding another file   to the existing temporary tablespace    ALTER TABLESPACE temp ADD datafile '<path>/temp.dbf' size 1G reuse;    ALTER TABLESPACE temp ADD datafile '<path>/temp.dbf' size 1G reuse  …

How to Create Temporary Tablespace or Add /Drop tempfile

How to Create Temporary Tablespace  or Add tempfile to Temp tablespace The following issues may occur with Temporary tablespaces in Oracle 1. Monitoring  2. Running out of Space. 3. Resizing  4. Changing the default temporary tablespace for the databa…

How to manually scan windows PC

Manual scanning of a PC   Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\>cd\   C:\> sfc /scannow   C:\>

PIVOT query in Oracle

Pivot query in Oracle  report generated each hour wise   for zone and circle in the following query   select *     from (    select  ZONE,CIRCLE,TO_NUMBER(to_char(ococ_dt,'hh24'))  grp,count(*) cnt     from OCOC_CAF_JAN2022        group by  ZO…

Block changes per sec happening in the Oracle database

-- block changes per sec happening in the Oracle database declare  v_blockchg number; begin    select value    into  v_blockchg    from   v$sysstat    where  name='db block changes';    dbms_lock.sleep(60);    select (value-v_blockchg)/60    …

Monitor UNDO Recovery progress

# UNDO Recovery progress ...... select state, undoblockstotal, undoblockstotal-undoblocksdone "Still to Recover", undoblocksdone / undoblockstotal * 100 "Percentage Reconvery Done" from v$fast_start_transactions; undoblocksdone,

Oracle Session Activity

The following script shows the event that is blocking the sessions with high activity if no rows are displayed it means that the database is working fine with no blocking sessions    select    event,blocking_session,wait_class,    count( sid)  sessio…

Load More
That is All