Oracle ACE Pro
Oracle Solution Architect
Oracle E-Business Suite
Oracle Cloud Infrastructure
Oracle Fusion Middleware
Oracle Database Administration
Oracle Weblogic Administration
Oracle ACE Pro
Oracle Solution Architect
Oracle E-Business Suite
Oracle Cloud Infrastructure
Oracle Fusion Middleware
Oracle Database Administration
Oracle Weblogic Administration
SELECT file#,
status,
bytes / 1024 / 1024 “Size_MB”,
name
FROM v$tempfile;
SELECT file_name,
tablespace_name,
bytes / 1024 / 1024 / 1024,
status
FROM dba_temp_files;
SQL>ALTER TABLESPACE temp ADD tempfile ‘/u02/apps/oracle/temp01_01.dbf’ SIZE
2048m;
SQL>CREATE TEMPORARY TABLESPACE temp2 tempfile ‘/u02/apps/oracle/temp01.dbf’ SIZE 2g autoextend ON;
SQL>ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2;
Note: use “reuse” if datafile physically exists.
SQL>ALTER DATABASE tempfile ‘/u02/apps/oradata/temp01.dbf’ OFFLINE;
SQL>DROP TABLESPACE temp INCLUDING CONTENTS AND datafiles;
NOTE: Don’t drop immediatly, Check user is using TEMP tablespace by the Below Given Query, then you can drop
SELECT a.username,
a.osuser,
a.sid
||‘,’
||a.serial# SID_SERIAL,
c.spid Process,
b.tablespace tablespace,
a.status,
SUM(b.extents) * 1024 * 1024 SPACE
FROM v$session a,
v$sort_usage b,
v$process c,
dba_tablespaces d
WHERE a.saddr = b.session_addr
AND a.paddr = c.addr
AND b.tablespace = d.tablespace_name
GROUP BY a.username,
a.osuser,
a.sid
||‘,’
||a.serial#,
c.spid,
b.tablespace,
a.status;
SQL>ALTER TABLESPACE temp shrink tempfile ‘/u02/apps/oradata/temp01.dbf’ keep 10g;
Finding Oracle Database Version on your system through Operating System
$ cd $ORACLE_HOME
$ cd bin
$ file oracle
oracle: ELF-64 executable object file – IA64
Finding Oracle Database Version on your system through SQL Prompt
SQL> select metadata from sys.kopm$ ;
METADATA
——————————————————————————–
0000006001240F050B0C030C0C0504050D0609070805050505050F05050505050A05050505050405
0607080823472347081123081141B0470083000107D0130000000000000000000000000000000000
0000000000000000000000000000000000000000
Here As you can See the Output Contains B4047 which means Database is 64-Bit Version.
If the Output contains B4023 then the Database is 32-Bit Version.
All Rights Reserved